lightning-sdk 0.1.37__py3-none-any.whl → 0.1.39__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/__init__.py +1 -1
- lightning_sdk/ai_hub.py +21 -23
- lightning_sdk/api/ai_hub_api.py +29 -4
- lightning_sdk/api/deployment_api.py +0 -2
- lightning_sdk/api/job_api.py +10 -2
- lightning_sdk/api/teamspace_api.py +22 -16
- lightning_sdk/api/utils.py +25 -3
- lightning_sdk/cli/ai_hub.py +1 -1
- lightning_sdk/cli/download.py +3 -5
- lightning_sdk/cli/run.py +24 -0
- lightning_sdk/cli/upload.py +3 -10
- lightning_sdk/job/base.py +35 -0
- lightning_sdk/job/job.py +18 -1
- lightning_sdk/job/v1.py +10 -1
- lightning_sdk/job/v2.py +16 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +13 -2
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +6 -1
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +680 -62
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +118 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +13 -2
- lightning_sdk/lightning_cloud/openapi/models/create.py +6 -32
- lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +32 -6
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/id_start_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/multimachinejobs_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_agents_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_multimachinejobs_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/update.py +6 -32
- lightning_sdk/lightning_cloud/openapi/models/v1_api_pricing_spec.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +32 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +6 -32
- lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_multi_machine_job_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +43 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_performance.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +32 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_efs_data_connection.py → v1_efs_config.py} +22 -22
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +53 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +125 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_multi_machine_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machines_selector.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_message_content.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_message_content_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_status.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_system_info.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +6 -32
- lightning_sdk/lightning_cloud/openapi/models/validate.py +6 -32
- lightning_sdk/models.py +132 -0
- lightning_sdk/teamspace.py +8 -2
- {lightning_sdk-0.1.37.dist-info → lightning_sdk-0.1.39.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.37.dist-info → lightning_sdk-0.1.39.dist-info}/RECORD +70 -59
- lightning_sdk/cli/models.py +0 -68
- lightning_sdk/lightning_cloud/openapi/models/v1_efs_folder_data_connection.py +0 -201
- {lightning_sdk-0.1.37.dist-info → lightning_sdk-0.1.39.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.37.dist-info → lightning_sdk-0.1.39.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.37.dist-info → lightning_sdk-0.1.39.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.37.dist-info → lightning_sdk-0.1.39.dist-info}/top_level.txt +0 -0
|
@@ -1,201 +0,0 @@
|
|
|
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 V1EFSFolderDataConnection(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
|
-
'file_system_id': 'str',
|
|
45
|
-
'mount_targets': 'list[V1MountTarget]',
|
|
46
|
-
'region': 'str',
|
|
47
|
-
'source': 'str'
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
attribute_map = {
|
|
51
|
-
'file_system_id': 'fileSystemId',
|
|
52
|
-
'mount_targets': 'mountTargets',
|
|
53
|
-
'region': 'region',
|
|
54
|
-
'source': 'source'
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
def __init__(self, file_system_id: 'str' =None, mount_targets: 'list[V1MountTarget]' =None, region: 'str' =None, source: 'str' =None): # noqa: E501
|
|
58
|
-
"""V1EFSFolderDataConnection - a model defined in Swagger""" # noqa: E501
|
|
59
|
-
self._file_system_id = None
|
|
60
|
-
self._mount_targets = None
|
|
61
|
-
self._region = None
|
|
62
|
-
self._source = None
|
|
63
|
-
self.discriminator = None
|
|
64
|
-
if file_system_id is not None:
|
|
65
|
-
self.file_system_id = file_system_id
|
|
66
|
-
if mount_targets is not None:
|
|
67
|
-
self.mount_targets = mount_targets
|
|
68
|
-
if region is not None:
|
|
69
|
-
self.region = region
|
|
70
|
-
if source is not None:
|
|
71
|
-
self.source = source
|
|
72
|
-
|
|
73
|
-
@property
|
|
74
|
-
def file_system_id(self) -> 'str':
|
|
75
|
-
"""Gets the file_system_id of this V1EFSFolderDataConnection. # noqa: E501
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
:return: The file_system_id of this V1EFSFolderDataConnection. # noqa: E501
|
|
79
|
-
:rtype: str
|
|
80
|
-
"""
|
|
81
|
-
return self._file_system_id
|
|
82
|
-
|
|
83
|
-
@file_system_id.setter
|
|
84
|
-
def file_system_id(self, file_system_id: 'str'):
|
|
85
|
-
"""Sets the file_system_id of this V1EFSFolderDataConnection.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
:param file_system_id: The file_system_id of this V1EFSFolderDataConnection. # noqa: E501
|
|
89
|
-
:type: str
|
|
90
|
-
"""
|
|
91
|
-
|
|
92
|
-
self._file_system_id = file_system_id
|
|
93
|
-
|
|
94
|
-
@property
|
|
95
|
-
def mount_targets(self) -> 'list[V1MountTarget]':
|
|
96
|
-
"""Gets the mount_targets of this V1EFSFolderDataConnection. # noqa: E501
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
:return: The mount_targets of this V1EFSFolderDataConnection. # noqa: E501
|
|
100
|
-
:rtype: list[V1MountTarget]
|
|
101
|
-
"""
|
|
102
|
-
return self._mount_targets
|
|
103
|
-
|
|
104
|
-
@mount_targets.setter
|
|
105
|
-
def mount_targets(self, mount_targets: 'list[V1MountTarget]'):
|
|
106
|
-
"""Sets the mount_targets of this V1EFSFolderDataConnection.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
:param mount_targets: The mount_targets of this V1EFSFolderDataConnection. # noqa: E501
|
|
110
|
-
:type: list[V1MountTarget]
|
|
111
|
-
"""
|
|
112
|
-
|
|
113
|
-
self._mount_targets = mount_targets
|
|
114
|
-
|
|
115
|
-
@property
|
|
116
|
-
def region(self) -> 'str':
|
|
117
|
-
"""Gets the region of this V1EFSFolderDataConnection. # noqa: E501
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
:return: The region of this V1EFSFolderDataConnection. # noqa: E501
|
|
121
|
-
:rtype: str
|
|
122
|
-
"""
|
|
123
|
-
return self._region
|
|
124
|
-
|
|
125
|
-
@region.setter
|
|
126
|
-
def region(self, region: 'str'):
|
|
127
|
-
"""Sets the region of this V1EFSFolderDataConnection.
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
:param region: The region of this V1EFSFolderDataConnection. # noqa: E501
|
|
131
|
-
:type: str
|
|
132
|
-
"""
|
|
133
|
-
|
|
134
|
-
self._region = region
|
|
135
|
-
|
|
136
|
-
@property
|
|
137
|
-
def source(self) -> 'str':
|
|
138
|
-
"""Gets the source of this V1EFSFolderDataConnection. # noqa: E501
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
:return: The source of this V1EFSFolderDataConnection. # noqa: E501
|
|
142
|
-
:rtype: str
|
|
143
|
-
"""
|
|
144
|
-
return self._source
|
|
145
|
-
|
|
146
|
-
@source.setter
|
|
147
|
-
def source(self, source: 'str'):
|
|
148
|
-
"""Sets the source of this V1EFSFolderDataConnection.
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
:param source: The source of this V1EFSFolderDataConnection. # noqa: E501
|
|
152
|
-
:type: str
|
|
153
|
-
"""
|
|
154
|
-
|
|
155
|
-
self._source = source
|
|
156
|
-
|
|
157
|
-
def to_dict(self) -> dict:
|
|
158
|
-
"""Returns the model properties as a dict"""
|
|
159
|
-
result = {}
|
|
160
|
-
|
|
161
|
-
for attr, _ in six.iteritems(self.swagger_types):
|
|
162
|
-
value = getattr(self, attr)
|
|
163
|
-
if isinstance(value, list):
|
|
164
|
-
result[attr] = list(map(
|
|
165
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
166
|
-
value
|
|
167
|
-
))
|
|
168
|
-
elif hasattr(value, "to_dict"):
|
|
169
|
-
result[attr] = value.to_dict()
|
|
170
|
-
elif isinstance(value, dict):
|
|
171
|
-
result[attr] = dict(map(
|
|
172
|
-
lambda item: (item[0], item[1].to_dict())
|
|
173
|
-
if hasattr(item[1], "to_dict") else item,
|
|
174
|
-
value.items()
|
|
175
|
-
))
|
|
176
|
-
else:
|
|
177
|
-
result[attr] = value
|
|
178
|
-
if issubclass(V1EFSFolderDataConnection, dict):
|
|
179
|
-
for key, value in self.items():
|
|
180
|
-
result[key] = value
|
|
181
|
-
|
|
182
|
-
return result
|
|
183
|
-
|
|
184
|
-
def to_str(self) -> str:
|
|
185
|
-
"""Returns the string representation of the model"""
|
|
186
|
-
return pprint.pformat(self.to_dict())
|
|
187
|
-
|
|
188
|
-
def __repr__(self) -> str:
|
|
189
|
-
"""For `print` and `pprint`"""
|
|
190
|
-
return self.to_str()
|
|
191
|
-
|
|
192
|
-
def __eq__(self, other: 'V1EFSFolderDataConnection') -> bool:
|
|
193
|
-
"""Returns true if both objects are equal"""
|
|
194
|
-
if not isinstance(other, V1EFSFolderDataConnection):
|
|
195
|
-
return False
|
|
196
|
-
|
|
197
|
-
return self.__dict__ == other.__dict__
|
|
198
|
-
|
|
199
|
-
def __ne__(self, other: 'V1EFSFolderDataConnection') -> bool:
|
|
200
|
-
"""Returns true if both objects are not equal"""
|
|
201
|
-
return not self == other
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|