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
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
|
lightning_sdk/lightning_cloud/openapi/models/cluster_service_validate_container_registry_body.py
ADDED
|
@@ -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 ClusterServiceValidateContainerRegistryBody(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
|
+
"""ClusterServiceValidateContainerRegistryBody - 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(ClusterServiceValidateContainerRegistryBody, 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: 'ClusterServiceValidateContainerRegistryBody') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, ClusterServiceValidateContainerRegistryBody):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'ClusterServiceValidateContainerRegistryBody') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
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
|
lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_create_lit_logger_media_body.py
ADDED
|
@@ -0,0 +1,305 @@
|
|
|
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 LitLoggerServiceCreateLitLoggerMediaBody(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
|
+
'caption': 'str',
|
|
45
|
+
'content_hash': 'str',
|
|
46
|
+
'epoch': 'str',
|
|
47
|
+
'media_type': 'V1MediaType',
|
|
48
|
+
'mime_type': 'str',
|
|
49
|
+
'name': 'str',
|
|
50
|
+
'size_bytes': 'str',
|
|
51
|
+
'step': 'str'
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
attribute_map = {
|
|
55
|
+
'caption': 'caption',
|
|
56
|
+
'content_hash': 'contentHash',
|
|
57
|
+
'epoch': 'epoch',
|
|
58
|
+
'media_type': 'mediaType',
|
|
59
|
+
'mime_type': 'mimeType',
|
|
60
|
+
'name': 'name',
|
|
61
|
+
'size_bytes': 'sizeBytes',
|
|
62
|
+
'step': 'step'
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
def __init__(self, caption: 'str' =None, content_hash: 'str' =None, epoch: 'str' =None, media_type: 'V1MediaType' =None, mime_type: 'str' =None, name: 'str' =None, size_bytes: 'str' =None, step: 'str' =None): # noqa: E501
|
|
66
|
+
"""LitLoggerServiceCreateLitLoggerMediaBody - a model defined in Swagger""" # noqa: E501
|
|
67
|
+
self._caption = None
|
|
68
|
+
self._content_hash = None
|
|
69
|
+
self._epoch = None
|
|
70
|
+
self._media_type = None
|
|
71
|
+
self._mime_type = None
|
|
72
|
+
self._name = None
|
|
73
|
+
self._size_bytes = None
|
|
74
|
+
self._step = None
|
|
75
|
+
self.discriminator = None
|
|
76
|
+
if caption is not None:
|
|
77
|
+
self.caption = caption
|
|
78
|
+
if content_hash is not None:
|
|
79
|
+
self.content_hash = content_hash
|
|
80
|
+
if epoch is not None:
|
|
81
|
+
self.epoch = epoch
|
|
82
|
+
if media_type is not None:
|
|
83
|
+
self.media_type = media_type
|
|
84
|
+
if mime_type is not None:
|
|
85
|
+
self.mime_type = mime_type
|
|
86
|
+
if name is not None:
|
|
87
|
+
self.name = name
|
|
88
|
+
if size_bytes is not None:
|
|
89
|
+
self.size_bytes = size_bytes
|
|
90
|
+
if step is not None:
|
|
91
|
+
self.step = step
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def caption(self) -> 'str':
|
|
95
|
+
"""Gets the caption of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:return: The caption of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
99
|
+
:rtype: str
|
|
100
|
+
"""
|
|
101
|
+
return self._caption
|
|
102
|
+
|
|
103
|
+
@caption.setter
|
|
104
|
+
def caption(self, caption: 'str'):
|
|
105
|
+
"""Sets the caption of this LitLoggerServiceCreateLitLoggerMediaBody.
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
:param caption: The caption of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
109
|
+
:type: str
|
|
110
|
+
"""
|
|
111
|
+
|
|
112
|
+
self._caption = caption
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
def content_hash(self) -> 'str':
|
|
116
|
+
"""Gets the content_hash of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
:return: The content_hash of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
120
|
+
:rtype: str
|
|
121
|
+
"""
|
|
122
|
+
return self._content_hash
|
|
123
|
+
|
|
124
|
+
@content_hash.setter
|
|
125
|
+
def content_hash(self, content_hash: 'str'):
|
|
126
|
+
"""Sets the content_hash of this LitLoggerServiceCreateLitLoggerMediaBody.
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:param content_hash: The content_hash of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
130
|
+
:type: str
|
|
131
|
+
"""
|
|
132
|
+
|
|
133
|
+
self._content_hash = content_hash
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def epoch(self) -> 'str':
|
|
137
|
+
"""Gets the epoch of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
:return: The epoch of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
141
|
+
:rtype: str
|
|
142
|
+
"""
|
|
143
|
+
return self._epoch
|
|
144
|
+
|
|
145
|
+
@epoch.setter
|
|
146
|
+
def epoch(self, epoch: 'str'):
|
|
147
|
+
"""Sets the epoch of this LitLoggerServiceCreateLitLoggerMediaBody.
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
:param epoch: The epoch of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
151
|
+
:type: str
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
self._epoch = epoch
|
|
155
|
+
|
|
156
|
+
@property
|
|
157
|
+
def media_type(self) -> 'V1MediaType':
|
|
158
|
+
"""Gets the media_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:return: The media_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
162
|
+
:rtype: V1MediaType
|
|
163
|
+
"""
|
|
164
|
+
return self._media_type
|
|
165
|
+
|
|
166
|
+
@media_type.setter
|
|
167
|
+
def media_type(self, media_type: 'V1MediaType'):
|
|
168
|
+
"""Sets the media_type of this LitLoggerServiceCreateLitLoggerMediaBody.
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:param media_type: The media_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
172
|
+
:type: V1MediaType
|
|
173
|
+
"""
|
|
174
|
+
|
|
175
|
+
self._media_type = media_type
|
|
176
|
+
|
|
177
|
+
@property
|
|
178
|
+
def mime_type(self) -> 'str':
|
|
179
|
+
"""Gets the mime_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:return: The mime_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
183
|
+
:rtype: str
|
|
184
|
+
"""
|
|
185
|
+
return self._mime_type
|
|
186
|
+
|
|
187
|
+
@mime_type.setter
|
|
188
|
+
def mime_type(self, mime_type: 'str'):
|
|
189
|
+
"""Sets the mime_type of this LitLoggerServiceCreateLitLoggerMediaBody.
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
:param mime_type: The mime_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
193
|
+
:type: str
|
|
194
|
+
"""
|
|
195
|
+
|
|
196
|
+
self._mime_type = mime_type
|
|
197
|
+
|
|
198
|
+
@property
|
|
199
|
+
def name(self) -> 'str':
|
|
200
|
+
"""Gets the name of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
:return: The name of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
204
|
+
:rtype: str
|
|
205
|
+
"""
|
|
206
|
+
return self._name
|
|
207
|
+
|
|
208
|
+
@name.setter
|
|
209
|
+
def name(self, name: 'str'):
|
|
210
|
+
"""Sets the name of this LitLoggerServiceCreateLitLoggerMediaBody.
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
:param name: The name of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
214
|
+
:type: str
|
|
215
|
+
"""
|
|
216
|
+
|
|
217
|
+
self._name = name
|
|
218
|
+
|
|
219
|
+
@property
|
|
220
|
+
def size_bytes(self) -> 'str':
|
|
221
|
+
"""Gets the size_bytes of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
:return: The size_bytes of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
225
|
+
:rtype: str
|
|
226
|
+
"""
|
|
227
|
+
return self._size_bytes
|
|
228
|
+
|
|
229
|
+
@size_bytes.setter
|
|
230
|
+
def size_bytes(self, size_bytes: 'str'):
|
|
231
|
+
"""Sets the size_bytes of this LitLoggerServiceCreateLitLoggerMediaBody.
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
:param size_bytes: The size_bytes of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
235
|
+
:type: str
|
|
236
|
+
"""
|
|
237
|
+
|
|
238
|
+
self._size_bytes = size_bytes
|
|
239
|
+
|
|
240
|
+
@property
|
|
241
|
+
def step(self) -> 'str':
|
|
242
|
+
"""Gets the step of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
:return: The step of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
246
|
+
:rtype: str
|
|
247
|
+
"""
|
|
248
|
+
return self._step
|
|
249
|
+
|
|
250
|
+
@step.setter
|
|
251
|
+
def step(self, step: 'str'):
|
|
252
|
+
"""Sets the step of this LitLoggerServiceCreateLitLoggerMediaBody.
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
:param step: The step of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
256
|
+
:type: str
|
|
257
|
+
"""
|
|
258
|
+
|
|
259
|
+
self._step = step
|
|
260
|
+
|
|
261
|
+
def to_dict(self) -> dict:
|
|
262
|
+
"""Returns the model properties as a dict"""
|
|
263
|
+
result = {}
|
|
264
|
+
|
|
265
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
266
|
+
value = getattr(self, attr)
|
|
267
|
+
if isinstance(value, list):
|
|
268
|
+
result[attr] = list(map(
|
|
269
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
270
|
+
value
|
|
271
|
+
))
|
|
272
|
+
elif hasattr(value, "to_dict"):
|
|
273
|
+
result[attr] = value.to_dict()
|
|
274
|
+
elif isinstance(value, dict):
|
|
275
|
+
result[attr] = dict(map(
|
|
276
|
+
lambda item: (item[0], item[1].to_dict())
|
|
277
|
+
if hasattr(item[1], "to_dict") else item,
|
|
278
|
+
value.items()
|
|
279
|
+
))
|
|
280
|
+
else:
|
|
281
|
+
result[attr] = value
|
|
282
|
+
if issubclass(LitLoggerServiceCreateLitLoggerMediaBody, dict):
|
|
283
|
+
for key, value in self.items():
|
|
284
|
+
result[key] = value
|
|
285
|
+
|
|
286
|
+
return result
|
|
287
|
+
|
|
288
|
+
def to_str(self) -> str:
|
|
289
|
+
"""Returns the string representation of the model"""
|
|
290
|
+
return pprint.pformat(self.to_dict())
|
|
291
|
+
|
|
292
|
+
def __repr__(self) -> str:
|
|
293
|
+
"""For `print` and `pprint`"""
|
|
294
|
+
return self.to_str()
|
|
295
|
+
|
|
296
|
+
def __eq__(self, other: 'LitLoggerServiceCreateLitLoggerMediaBody') -> bool:
|
|
297
|
+
"""Returns true if both objects are equal"""
|
|
298
|
+
if not isinstance(other, LitLoggerServiceCreateLitLoggerMediaBody):
|
|
299
|
+
return False
|
|
300
|
+
|
|
301
|
+
return self.__dict__ == other.__dict__
|
|
302
|
+
|
|
303
|
+
def __ne__(self, other: 'LitLoggerServiceCreateLitLoggerMediaBody') -> bool:
|
|
304
|
+
"""Returns true if both objects are not equal"""
|
|
305
|
+
return not self == other
|