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
|
@@ -50,6 +50,7 @@ class V1KubernetesPod(object):
|
|
|
50
50
|
'namespace': 'str',
|
|
51
51
|
'node_name': 'str',
|
|
52
52
|
'pod': 'str',
|
|
53
|
+
'pod_id': 'str',
|
|
53
54
|
'preemption_event': 'V1PodPreemptionEvent',
|
|
54
55
|
'priority': 'str',
|
|
55
56
|
'queue_name': 'str',
|
|
@@ -66,13 +67,14 @@ class V1KubernetesPod(object):
|
|
|
66
67
|
'namespace': 'namespace',
|
|
67
68
|
'node_name': 'nodeName',
|
|
68
69
|
'pod': 'pod',
|
|
70
|
+
'pod_id': 'podId',
|
|
69
71
|
'preemption_event': 'preemptionEvent',
|
|
70
72
|
'priority': 'priority',
|
|
71
73
|
'queue_name': 'queueName',
|
|
72
74
|
'user_id': 'userId'
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, deleted_at: 'datetime' =None, id: 'str' =None, job_name: 'str' =None, name: 'str' =None, namespace: 'str' =None, node_name: 'str' =None, pod: 'str' =None, preemption_event: 'V1PodPreemptionEvent' =None, priority: 'str' =None, queue_name: 'str' =None, user_id: 'str' =None): # noqa: E501
|
|
77
|
+
def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, deleted_at: 'datetime' =None, id: 'str' =None, job_name: 'str' =None, name: 'str' =None, namespace: 'str' =None, node_name: 'str' =None, pod: 'str' =None, pod_id: 'str' =None, preemption_event: 'V1PodPreemptionEvent' =None, priority: 'str' =None, queue_name: 'str' =None, user_id: 'str' =None): # noqa: E501
|
|
76
78
|
"""V1KubernetesPod - a model defined in Swagger""" # noqa: E501
|
|
77
79
|
self._cluster_id = None
|
|
78
80
|
self._created_at = None
|
|
@@ -83,6 +85,7 @@ class V1KubernetesPod(object):
|
|
|
83
85
|
self._namespace = None
|
|
84
86
|
self._node_name = None
|
|
85
87
|
self._pod = None
|
|
88
|
+
self._pod_id = None
|
|
86
89
|
self._preemption_event = None
|
|
87
90
|
self._priority = None
|
|
88
91
|
self._queue_name = None
|
|
@@ -106,6 +109,8 @@ class V1KubernetesPod(object):
|
|
|
106
109
|
self.node_name = node_name
|
|
107
110
|
if pod is not None:
|
|
108
111
|
self.pod = pod
|
|
112
|
+
if pod_id is not None:
|
|
113
|
+
self.pod_id = pod_id
|
|
109
114
|
if preemption_event is not None:
|
|
110
115
|
self.preemption_event = preemption_event
|
|
111
116
|
if priority is not None:
|
|
@@ -304,6 +309,27 @@ class V1KubernetesPod(object):
|
|
|
304
309
|
|
|
305
310
|
self._pod = pod
|
|
306
311
|
|
|
312
|
+
@property
|
|
313
|
+
def pod_id(self) -> 'str':
|
|
314
|
+
"""Gets the pod_id of this V1KubernetesPod. # noqa: E501
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
:return: The pod_id of this V1KubernetesPod. # noqa: E501
|
|
318
|
+
:rtype: str
|
|
319
|
+
"""
|
|
320
|
+
return self._pod_id
|
|
321
|
+
|
|
322
|
+
@pod_id.setter
|
|
323
|
+
def pod_id(self, pod_id: 'str'):
|
|
324
|
+
"""Sets the pod_id of this V1KubernetesPod.
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
:param pod_id: The pod_id of this V1KubernetesPod. # noqa: E501
|
|
328
|
+
:type: str
|
|
329
|
+
"""
|
|
330
|
+
|
|
331
|
+
self._pod_id = pod_id
|
|
332
|
+
|
|
307
333
|
@property
|
|
308
334
|
def preemption_event(self) -> 'V1PodPreemptionEvent':
|
|
309
335
|
"""Gets the preemption_event of this V1KubernetesPod. # noqa: E501
|
|
@@ -0,0 +1,227 @@
|
|
|
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 V1KubernetesPodLogsPage(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
|
+
'end': 'datetime',
|
|
45
|
+
'page_number': 'str',
|
|
46
|
+
'start': 'datetime',
|
|
47
|
+
'total_lines': 'str',
|
|
48
|
+
'url': 'str'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
attribute_map = {
|
|
52
|
+
'end': 'end',
|
|
53
|
+
'page_number': 'pageNumber',
|
|
54
|
+
'start': 'start',
|
|
55
|
+
'total_lines': 'totalLines',
|
|
56
|
+
'url': 'url'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def __init__(self, end: 'datetime' =None, page_number: 'str' =None, start: 'datetime' =None, total_lines: 'str' =None, url: 'str' =None): # noqa: E501
|
|
60
|
+
"""V1KubernetesPodLogsPage - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
self._end = None
|
|
62
|
+
self._page_number = None
|
|
63
|
+
self._start = None
|
|
64
|
+
self._total_lines = None
|
|
65
|
+
self._url = None
|
|
66
|
+
self.discriminator = None
|
|
67
|
+
if end is not None:
|
|
68
|
+
self.end = end
|
|
69
|
+
if page_number is not None:
|
|
70
|
+
self.page_number = page_number
|
|
71
|
+
if start is not None:
|
|
72
|
+
self.start = start
|
|
73
|
+
if total_lines is not None:
|
|
74
|
+
self.total_lines = total_lines
|
|
75
|
+
if url is not None:
|
|
76
|
+
self.url = url
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def end(self) -> 'datetime':
|
|
80
|
+
"""Gets the end of this V1KubernetesPodLogsPage. # noqa: E501
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:return: The end of this V1KubernetesPodLogsPage. # noqa: E501
|
|
84
|
+
:rtype: datetime
|
|
85
|
+
"""
|
|
86
|
+
return self._end
|
|
87
|
+
|
|
88
|
+
@end.setter
|
|
89
|
+
def end(self, end: 'datetime'):
|
|
90
|
+
"""Sets the end of this V1KubernetesPodLogsPage.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:param end: The end of this V1KubernetesPodLogsPage. # noqa: E501
|
|
94
|
+
:type: datetime
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
self._end = end
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def page_number(self) -> 'str':
|
|
101
|
+
"""Gets the page_number of this V1KubernetesPodLogsPage. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The page_number of this V1KubernetesPodLogsPage. # noqa: E501
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
107
|
+
return self._page_number
|
|
108
|
+
|
|
109
|
+
@page_number.setter
|
|
110
|
+
def page_number(self, page_number: 'str'):
|
|
111
|
+
"""Sets the page_number of this V1KubernetesPodLogsPage.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param page_number: The page_number of this V1KubernetesPodLogsPage. # noqa: E501
|
|
115
|
+
:type: str
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._page_number = page_number
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def start(self) -> 'datetime':
|
|
122
|
+
"""Gets the start of this V1KubernetesPodLogsPage. # noqa: E501
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:return: The start of this V1KubernetesPodLogsPage. # noqa: E501
|
|
126
|
+
:rtype: datetime
|
|
127
|
+
"""
|
|
128
|
+
return self._start
|
|
129
|
+
|
|
130
|
+
@start.setter
|
|
131
|
+
def start(self, start: 'datetime'):
|
|
132
|
+
"""Sets the start of this V1KubernetesPodLogsPage.
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:param start: The start of this V1KubernetesPodLogsPage. # noqa: E501
|
|
136
|
+
:type: datetime
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
self._start = start
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def total_lines(self) -> 'str':
|
|
143
|
+
"""Gets the total_lines of this V1KubernetesPodLogsPage. # noqa: E501
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
:return: The total_lines of this V1KubernetesPodLogsPage. # noqa: E501
|
|
147
|
+
:rtype: str
|
|
148
|
+
"""
|
|
149
|
+
return self._total_lines
|
|
150
|
+
|
|
151
|
+
@total_lines.setter
|
|
152
|
+
def total_lines(self, total_lines: 'str'):
|
|
153
|
+
"""Sets the total_lines of this V1KubernetesPodLogsPage.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:param total_lines: The total_lines of this V1KubernetesPodLogsPage. # noqa: E501
|
|
157
|
+
:type: str
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
self._total_lines = total_lines
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
def url(self) -> 'str':
|
|
164
|
+
"""Gets the url of this V1KubernetesPodLogsPage. # noqa: E501
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
:return: The url of this V1KubernetesPodLogsPage. # noqa: E501
|
|
168
|
+
:rtype: str
|
|
169
|
+
"""
|
|
170
|
+
return self._url
|
|
171
|
+
|
|
172
|
+
@url.setter
|
|
173
|
+
def url(self, url: 'str'):
|
|
174
|
+
"""Sets the url of this V1KubernetesPodLogsPage.
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:param url: The url of this V1KubernetesPodLogsPage. # noqa: E501
|
|
178
|
+
:type: str
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
self._url = url
|
|
182
|
+
|
|
183
|
+
def to_dict(self) -> dict:
|
|
184
|
+
"""Returns the model properties as a dict"""
|
|
185
|
+
result = {}
|
|
186
|
+
|
|
187
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
188
|
+
value = getattr(self, attr)
|
|
189
|
+
if isinstance(value, list):
|
|
190
|
+
result[attr] = list(map(
|
|
191
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
192
|
+
value
|
|
193
|
+
))
|
|
194
|
+
elif hasattr(value, "to_dict"):
|
|
195
|
+
result[attr] = value.to_dict()
|
|
196
|
+
elif isinstance(value, dict):
|
|
197
|
+
result[attr] = dict(map(
|
|
198
|
+
lambda item: (item[0], item[1].to_dict())
|
|
199
|
+
if hasattr(item[1], "to_dict") else item,
|
|
200
|
+
value.items()
|
|
201
|
+
))
|
|
202
|
+
else:
|
|
203
|
+
result[attr] = value
|
|
204
|
+
if issubclass(V1KubernetesPodLogsPage, dict):
|
|
205
|
+
for key, value in self.items():
|
|
206
|
+
result[key] = value
|
|
207
|
+
|
|
208
|
+
return result
|
|
209
|
+
|
|
210
|
+
def to_str(self) -> str:
|
|
211
|
+
"""Returns the string representation of the model"""
|
|
212
|
+
return pprint.pformat(self.to_dict())
|
|
213
|
+
|
|
214
|
+
def __repr__(self) -> str:
|
|
215
|
+
"""For `print` and `pprint`"""
|
|
216
|
+
return self.to_str()
|
|
217
|
+
|
|
218
|
+
def __eq__(self, other: 'V1KubernetesPodLogsPage') -> bool:
|
|
219
|
+
"""Returns true if both objects are equal"""
|
|
220
|
+
if not isinstance(other, V1KubernetesPodLogsPage):
|
|
221
|
+
return False
|
|
222
|
+
|
|
223
|
+
return self.__dict__ == other.__dict__
|
|
224
|
+
|
|
225
|
+
def __ne__(self, other: 'V1KubernetesPodLogsPage') -> bool:
|
|
226
|
+
"""Returns true if both objects are not equal"""
|
|
227
|
+
return not self == other
|
|
@@ -0,0 +1,357 @@
|
|
|
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 V1KubevirtConfig(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
|
+
'api_key': 'str',
|
|
45
|
+
'api_url': 'str',
|
|
46
|
+
'k8s_node_count': 'int',
|
|
47
|
+
'node_count': 'int',
|
|
48
|
+
'node_family': 'str',
|
|
49
|
+
'provider': 'str',
|
|
50
|
+
'show_as_lightning': 'bool',
|
|
51
|
+
'supported': 'bool',
|
|
52
|
+
'uuid': 'str',
|
|
53
|
+
'vm_node_count': 'int'
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
attribute_map = {
|
|
57
|
+
'api_key': 'apiKey',
|
|
58
|
+
'api_url': 'apiUrl',
|
|
59
|
+
'k8s_node_count': 'k8sNodeCount',
|
|
60
|
+
'node_count': 'nodeCount',
|
|
61
|
+
'node_family': 'nodeFamily',
|
|
62
|
+
'provider': 'provider',
|
|
63
|
+
'show_as_lightning': 'showAsLightning',
|
|
64
|
+
'supported': 'supported',
|
|
65
|
+
'uuid': 'uuid',
|
|
66
|
+
'vm_node_count': 'vmNodeCount'
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
def __init__(self, api_key: 'str' =None, api_url: 'str' =None, k8s_node_count: 'int' =None, node_count: 'int' =None, node_family: 'str' =None, provider: 'str' =None, show_as_lightning: 'bool' =None, supported: 'bool' =None, uuid: 'str' =None, vm_node_count: 'int' =None): # noqa: E501
|
|
70
|
+
"""V1KubevirtConfig - a model defined in Swagger""" # noqa: E501
|
|
71
|
+
self._api_key = None
|
|
72
|
+
self._api_url = None
|
|
73
|
+
self._k8s_node_count = None
|
|
74
|
+
self._node_count = None
|
|
75
|
+
self._node_family = None
|
|
76
|
+
self._provider = None
|
|
77
|
+
self._show_as_lightning = None
|
|
78
|
+
self._supported = None
|
|
79
|
+
self._uuid = None
|
|
80
|
+
self._vm_node_count = None
|
|
81
|
+
self.discriminator = None
|
|
82
|
+
if api_key is not None:
|
|
83
|
+
self.api_key = api_key
|
|
84
|
+
if api_url is not None:
|
|
85
|
+
self.api_url = api_url
|
|
86
|
+
if k8s_node_count is not None:
|
|
87
|
+
self.k8s_node_count = k8s_node_count
|
|
88
|
+
if node_count is not None:
|
|
89
|
+
self.node_count = node_count
|
|
90
|
+
if node_family is not None:
|
|
91
|
+
self.node_family = node_family
|
|
92
|
+
if provider is not None:
|
|
93
|
+
self.provider = provider
|
|
94
|
+
if show_as_lightning is not None:
|
|
95
|
+
self.show_as_lightning = show_as_lightning
|
|
96
|
+
if supported is not None:
|
|
97
|
+
self.supported = supported
|
|
98
|
+
if uuid is not None:
|
|
99
|
+
self.uuid = uuid
|
|
100
|
+
if vm_node_count is not None:
|
|
101
|
+
self.vm_node_count = vm_node_count
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def api_key(self) -> 'str':
|
|
105
|
+
"""Gets the api_key of this V1KubevirtConfig. # noqa: E501
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
:return: The api_key of this V1KubevirtConfig. # noqa: E501
|
|
109
|
+
:rtype: str
|
|
110
|
+
"""
|
|
111
|
+
return self._api_key
|
|
112
|
+
|
|
113
|
+
@api_key.setter
|
|
114
|
+
def api_key(self, api_key: 'str'):
|
|
115
|
+
"""Sets the api_key of this V1KubevirtConfig.
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
:param api_key: The api_key of this V1KubevirtConfig. # noqa: E501
|
|
119
|
+
:type: str
|
|
120
|
+
"""
|
|
121
|
+
|
|
122
|
+
self._api_key = api_key
|
|
123
|
+
|
|
124
|
+
@property
|
|
125
|
+
def api_url(self) -> 'str':
|
|
126
|
+
"""Gets the api_url of this V1KubevirtConfig. # noqa: E501
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:return: The api_url of this V1KubevirtConfig. # noqa: E501
|
|
130
|
+
:rtype: str
|
|
131
|
+
"""
|
|
132
|
+
return self._api_url
|
|
133
|
+
|
|
134
|
+
@api_url.setter
|
|
135
|
+
def api_url(self, api_url: 'str'):
|
|
136
|
+
"""Sets the api_url of this V1KubevirtConfig.
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
:param api_url: The api_url of this V1KubevirtConfig. # noqa: E501
|
|
140
|
+
:type: str
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
self._api_url = api_url
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def k8s_node_count(self) -> 'int':
|
|
147
|
+
"""Gets the k8s_node_count of this V1KubevirtConfig. # noqa: E501
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
:return: The k8s_node_count of this V1KubevirtConfig. # noqa: E501
|
|
151
|
+
:rtype: int
|
|
152
|
+
"""
|
|
153
|
+
return self._k8s_node_count
|
|
154
|
+
|
|
155
|
+
@k8s_node_count.setter
|
|
156
|
+
def k8s_node_count(self, k8s_node_count: 'int'):
|
|
157
|
+
"""Sets the k8s_node_count of this V1KubevirtConfig.
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
:param k8s_node_count: The k8s_node_count of this V1KubevirtConfig. # noqa: E501
|
|
161
|
+
:type: int
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
self._k8s_node_count = k8s_node_count
|
|
165
|
+
|
|
166
|
+
@property
|
|
167
|
+
def node_count(self) -> 'int':
|
|
168
|
+
"""Gets the node_count of this V1KubevirtConfig. # noqa: E501
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:return: The node_count of this V1KubevirtConfig. # noqa: E501
|
|
172
|
+
:rtype: int
|
|
173
|
+
"""
|
|
174
|
+
return self._node_count
|
|
175
|
+
|
|
176
|
+
@node_count.setter
|
|
177
|
+
def node_count(self, node_count: 'int'):
|
|
178
|
+
"""Sets the node_count of this V1KubevirtConfig.
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
:param node_count: The node_count of this V1KubevirtConfig. # noqa: E501
|
|
182
|
+
:type: int
|
|
183
|
+
"""
|
|
184
|
+
|
|
185
|
+
self._node_count = node_count
|
|
186
|
+
|
|
187
|
+
@property
|
|
188
|
+
def node_family(self) -> 'str':
|
|
189
|
+
"""Gets the node_family of this V1KubevirtConfig. # noqa: E501
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
:return: The node_family of this V1KubevirtConfig. # noqa: E501
|
|
193
|
+
:rtype: str
|
|
194
|
+
"""
|
|
195
|
+
return self._node_family
|
|
196
|
+
|
|
197
|
+
@node_family.setter
|
|
198
|
+
def node_family(self, node_family: 'str'):
|
|
199
|
+
"""Sets the node_family of this V1KubevirtConfig.
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
:param node_family: The node_family of this V1KubevirtConfig. # noqa: E501
|
|
203
|
+
:type: str
|
|
204
|
+
"""
|
|
205
|
+
|
|
206
|
+
self._node_family = node_family
|
|
207
|
+
|
|
208
|
+
@property
|
|
209
|
+
def provider(self) -> 'str':
|
|
210
|
+
"""Gets the provider of this V1KubevirtConfig. # noqa: E501
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
:return: The provider of this V1KubevirtConfig. # noqa: E501
|
|
214
|
+
:rtype: str
|
|
215
|
+
"""
|
|
216
|
+
return self._provider
|
|
217
|
+
|
|
218
|
+
@provider.setter
|
|
219
|
+
def provider(self, provider: 'str'):
|
|
220
|
+
"""Sets the provider of this V1KubevirtConfig.
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
:param provider: The provider of this V1KubevirtConfig. # noqa: E501
|
|
224
|
+
:type: str
|
|
225
|
+
"""
|
|
226
|
+
|
|
227
|
+
self._provider = provider
|
|
228
|
+
|
|
229
|
+
@property
|
|
230
|
+
def show_as_lightning(self) -> 'bool':
|
|
231
|
+
"""Gets the show_as_lightning of this V1KubevirtConfig. # noqa: E501
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
:return: The show_as_lightning of this V1KubevirtConfig. # noqa: E501
|
|
235
|
+
:rtype: bool
|
|
236
|
+
"""
|
|
237
|
+
return self._show_as_lightning
|
|
238
|
+
|
|
239
|
+
@show_as_lightning.setter
|
|
240
|
+
def show_as_lightning(self, show_as_lightning: 'bool'):
|
|
241
|
+
"""Sets the show_as_lightning of this V1KubevirtConfig.
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
:param show_as_lightning: The show_as_lightning of this V1KubevirtConfig. # noqa: E501
|
|
245
|
+
:type: bool
|
|
246
|
+
"""
|
|
247
|
+
|
|
248
|
+
self._show_as_lightning = show_as_lightning
|
|
249
|
+
|
|
250
|
+
@property
|
|
251
|
+
def supported(self) -> 'bool':
|
|
252
|
+
"""Gets the supported of this V1KubevirtConfig. # noqa: E501
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
:return: The supported of this V1KubevirtConfig. # noqa: E501
|
|
256
|
+
:rtype: bool
|
|
257
|
+
"""
|
|
258
|
+
return self._supported
|
|
259
|
+
|
|
260
|
+
@supported.setter
|
|
261
|
+
def supported(self, supported: 'bool'):
|
|
262
|
+
"""Sets the supported of this V1KubevirtConfig.
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
:param supported: The supported of this V1KubevirtConfig. # noqa: E501
|
|
266
|
+
:type: bool
|
|
267
|
+
"""
|
|
268
|
+
|
|
269
|
+
self._supported = supported
|
|
270
|
+
|
|
271
|
+
@property
|
|
272
|
+
def uuid(self) -> 'str':
|
|
273
|
+
"""Gets the uuid of this V1KubevirtConfig. # noqa: E501
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
:return: The uuid of this V1KubevirtConfig. # noqa: E501
|
|
277
|
+
:rtype: str
|
|
278
|
+
"""
|
|
279
|
+
return self._uuid
|
|
280
|
+
|
|
281
|
+
@uuid.setter
|
|
282
|
+
def uuid(self, uuid: 'str'):
|
|
283
|
+
"""Sets the uuid of this V1KubevirtConfig.
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
:param uuid: The uuid of this V1KubevirtConfig. # noqa: E501
|
|
287
|
+
:type: str
|
|
288
|
+
"""
|
|
289
|
+
|
|
290
|
+
self._uuid = uuid
|
|
291
|
+
|
|
292
|
+
@property
|
|
293
|
+
def vm_node_count(self) -> 'int':
|
|
294
|
+
"""Gets the vm_node_count of this V1KubevirtConfig. # noqa: E501
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
:return: The vm_node_count of this V1KubevirtConfig. # noqa: E501
|
|
298
|
+
:rtype: int
|
|
299
|
+
"""
|
|
300
|
+
return self._vm_node_count
|
|
301
|
+
|
|
302
|
+
@vm_node_count.setter
|
|
303
|
+
def vm_node_count(self, vm_node_count: 'int'):
|
|
304
|
+
"""Sets the vm_node_count of this V1KubevirtConfig.
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
:param vm_node_count: The vm_node_count of this V1KubevirtConfig. # noqa: E501
|
|
308
|
+
:type: int
|
|
309
|
+
"""
|
|
310
|
+
|
|
311
|
+
self._vm_node_count = vm_node_count
|
|
312
|
+
|
|
313
|
+
def to_dict(self) -> dict:
|
|
314
|
+
"""Returns the model properties as a dict"""
|
|
315
|
+
result = {}
|
|
316
|
+
|
|
317
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
318
|
+
value = getattr(self, attr)
|
|
319
|
+
if isinstance(value, list):
|
|
320
|
+
result[attr] = list(map(
|
|
321
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
322
|
+
value
|
|
323
|
+
))
|
|
324
|
+
elif hasattr(value, "to_dict"):
|
|
325
|
+
result[attr] = value.to_dict()
|
|
326
|
+
elif isinstance(value, dict):
|
|
327
|
+
result[attr] = dict(map(
|
|
328
|
+
lambda item: (item[0], item[1].to_dict())
|
|
329
|
+
if hasattr(item[1], "to_dict") else item,
|
|
330
|
+
value.items()
|
|
331
|
+
))
|
|
332
|
+
else:
|
|
333
|
+
result[attr] = value
|
|
334
|
+
if issubclass(V1KubevirtConfig, dict):
|
|
335
|
+
for key, value in self.items():
|
|
336
|
+
result[key] = value
|
|
337
|
+
|
|
338
|
+
return result
|
|
339
|
+
|
|
340
|
+
def to_str(self) -> str:
|
|
341
|
+
"""Returns the string representation of the model"""
|
|
342
|
+
return pprint.pformat(self.to_dict())
|
|
343
|
+
|
|
344
|
+
def __repr__(self) -> str:
|
|
345
|
+
"""For `print` and `pprint`"""
|
|
346
|
+
return self.to_str()
|
|
347
|
+
|
|
348
|
+
def __eq__(self, other: 'V1KubevirtConfig') -> bool:
|
|
349
|
+
"""Returns true if both objects are equal"""
|
|
350
|
+
if not isinstance(other, V1KubevirtConfig):
|
|
351
|
+
return False
|
|
352
|
+
|
|
353
|
+
return self.__dict__ == other.__dict__
|
|
354
|
+
|
|
355
|
+
def __ne__(self, other: 'V1KubevirtConfig') -> bool:
|
|
356
|
+
"""Returns true if both objects are not equal"""
|
|
357
|
+
return not self == other
|