lightning-sdk 0.1.31__py3-none-any.whl → 0.1.33__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 +3 -1
- lightning_sdk/ai_hub.py +110 -0
- lightning_sdk/api/__init__.py +2 -0
- lightning_sdk/api/ai_hub_api.py +61 -0
- lightning_sdk/api/studio_api.py +15 -8
- lightning_sdk/api/user_api.py +8 -2
- lightning_sdk/api/utils.py +8 -1
- lightning_sdk/cli/upload.py +10 -6
- lightning_sdk/lightning_cloud/openapi/__init__.py +26 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +101 -0
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +396 -0
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +25 -0
- lightning_sdk/lightning_cloud/openapi/models/create.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_shared_metrics_stream_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +69 -17
- 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_folder_data_connection.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_app.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_model.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/validate.py +81 -3
- lightning_sdk/lightning_cloud/rest_client.py +2 -0
- lightning_sdk/studio.py +6 -5
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/RECORD +71 -43
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
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 V1CreateSharedMetricsStreamRequest(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
|
+
'allowed_org_id': 'str',
|
|
45
|
+
'allowed_user_ids': 'list[str]',
|
|
46
|
+
'metrics_stream_id': 'str',
|
|
47
|
+
'public': 'bool'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
attribute_map = {
|
|
51
|
+
'allowed_org_id': 'allowedOrgId',
|
|
52
|
+
'allowed_user_ids': 'allowedUserIds',
|
|
53
|
+
'metrics_stream_id': 'metricsStreamId',
|
|
54
|
+
'public': 'public'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, allowed_org_id: 'str' =None, allowed_user_ids: 'list[str]' =None, metrics_stream_id: 'str' =None, public: 'bool' =None): # noqa: E501
|
|
58
|
+
"""V1CreateSharedMetricsStreamRequest - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._allowed_org_id = None
|
|
60
|
+
self._allowed_user_ids = None
|
|
61
|
+
self._metrics_stream_id = None
|
|
62
|
+
self._public = None
|
|
63
|
+
self.discriminator = None
|
|
64
|
+
if allowed_org_id is not None:
|
|
65
|
+
self.allowed_org_id = allowed_org_id
|
|
66
|
+
if allowed_user_ids is not None:
|
|
67
|
+
self.allowed_user_ids = allowed_user_ids
|
|
68
|
+
if metrics_stream_id is not None:
|
|
69
|
+
self.metrics_stream_id = metrics_stream_id
|
|
70
|
+
if public is not None:
|
|
71
|
+
self.public = public
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def allowed_org_id(self) -> 'str':
|
|
75
|
+
"""Gets the allowed_org_id of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The allowed_org_id of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._allowed_org_id
|
|
82
|
+
|
|
83
|
+
@allowed_org_id.setter
|
|
84
|
+
def allowed_org_id(self, allowed_org_id: 'str'):
|
|
85
|
+
"""Sets the allowed_org_id of this V1CreateSharedMetricsStreamRequest.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param allowed_org_id: The allowed_org_id of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
89
|
+
:type: str
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._allowed_org_id = allowed_org_id
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def allowed_user_ids(self) -> 'list[str]':
|
|
96
|
+
"""Gets the allowed_user_ids of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:return: The allowed_user_ids of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
100
|
+
:rtype: list[str]
|
|
101
|
+
"""
|
|
102
|
+
return self._allowed_user_ids
|
|
103
|
+
|
|
104
|
+
@allowed_user_ids.setter
|
|
105
|
+
def allowed_user_ids(self, allowed_user_ids: 'list[str]'):
|
|
106
|
+
"""Sets the allowed_user_ids of this V1CreateSharedMetricsStreamRequest.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param allowed_user_ids: The allowed_user_ids of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
110
|
+
:type: list[str]
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
self._allowed_user_ids = allowed_user_ids
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def metrics_stream_id(self) -> 'str':
|
|
117
|
+
"""Gets the metrics_stream_id of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The metrics_stream_id of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
121
|
+
:rtype: str
|
|
122
|
+
"""
|
|
123
|
+
return self._metrics_stream_id
|
|
124
|
+
|
|
125
|
+
@metrics_stream_id.setter
|
|
126
|
+
def metrics_stream_id(self, metrics_stream_id: 'str'):
|
|
127
|
+
"""Sets the metrics_stream_id of this V1CreateSharedMetricsStreamRequest.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param metrics_stream_id: The metrics_stream_id of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
131
|
+
:type: str
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._metrics_stream_id = metrics_stream_id
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def public(self) -> 'bool':
|
|
138
|
+
"""Gets the public of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The public of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
142
|
+
:rtype: bool
|
|
143
|
+
"""
|
|
144
|
+
return self._public
|
|
145
|
+
|
|
146
|
+
@public.setter
|
|
147
|
+
def public(self, public: 'bool'):
|
|
148
|
+
"""Sets the public of this V1CreateSharedMetricsStreamRequest.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param public: The public of this V1CreateSharedMetricsStreamRequest. # noqa: E501
|
|
152
|
+
:type: bool
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._public = public
|
|
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(V1CreateSharedMetricsStreamRequest, 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: 'V1CreateSharedMetricsStreamRequest') -> bool:
|
|
193
|
+
"""Returns true if both objects are equal"""
|
|
194
|
+
if not isinstance(other, V1CreateSharedMetricsStreamRequest):
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return self.__dict__ == other.__dict__
|
|
198
|
+
|
|
199
|
+
def __ne__(self, other: 'V1CreateSharedMetricsStreamRequest') -> bool:
|
|
200
|
+
"""Returns true if both objects are not equal"""
|
|
201
|
+
return not self == other
|
|
@@ -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 V1CreateSharedMetricsStreamResponse(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
|
+
'id': 'str'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'id': 'id'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, id: 'str' =None): # noqa: E501
|
|
52
|
+
"""V1CreateSharedMetricsStreamResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._id = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if id is not None:
|
|
56
|
+
self.id = id
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def id(self) -> 'str':
|
|
60
|
+
"""Gets the id of this V1CreateSharedMetricsStreamResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The id of this V1CreateSharedMetricsStreamResponse. # noqa: E501
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._id
|
|
67
|
+
|
|
68
|
+
@id.setter
|
|
69
|
+
def id(self, id: 'str'):
|
|
70
|
+
"""Sets the id of this V1CreateSharedMetricsStreamResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param id: The id of this V1CreateSharedMetricsStreamResponse. # noqa: E501
|
|
74
|
+
:type: str
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._id = id
|
|
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(V1CreateSharedMetricsStreamResponse, 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: 'V1CreateSharedMetricsStreamResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1CreateSharedMetricsStreamResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1CreateSharedMetricsStreamResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -47,7 +47,9 @@ class V1DataConnection(object):
|
|
|
47
47
|
'cluster_id': 'str',
|
|
48
48
|
'created_at': 'datetime',
|
|
49
49
|
'efs': 'V1EfsDataConnection',
|
|
50
|
+
'efs_folder': 'V1EFSFolderDataConnection',
|
|
50
51
|
'gcp': 'V1GcpDataConnection',
|
|
52
|
+
'gcs_folder': 'V1GCSFolderDataConnection',
|
|
51
53
|
'id': 'str',
|
|
52
54
|
'index': 'V1Index',
|
|
53
55
|
'is_managed': 'bool',
|
|
@@ -56,6 +58,7 @@ class V1DataConnection(object):
|
|
|
56
58
|
'number_of_files': 'str',
|
|
57
59
|
'project_id': 'str',
|
|
58
60
|
'run_cmds': 'list[str]',
|
|
61
|
+
's3_folder': 'V1S3FolderDataConnection',
|
|
59
62
|
'snowflake': 'V1SnowflakeDataConnection',
|
|
60
63
|
'state': 'V1DataConnectionState',
|
|
61
64
|
'total_size_bytes': 'str',
|
|
@@ -71,7 +74,9 @@ class V1DataConnection(object):
|
|
|
71
74
|
'cluster_id': 'clusterId',
|
|
72
75
|
'created_at': 'createdAt',
|
|
73
76
|
'efs': 'efs',
|
|
77
|
+
'efs_folder': 'efsFolder',
|
|
74
78
|
'gcp': 'gcp',
|
|
79
|
+
'gcs_folder': 'gcsFolder',
|
|
75
80
|
'id': 'id',
|
|
76
81
|
'index': 'index',
|
|
77
82
|
'is_managed': 'isManaged',
|
|
@@ -80,6 +85,7 @@ class V1DataConnection(object):
|
|
|
80
85
|
'number_of_files': 'numberOfFiles',
|
|
81
86
|
'project_id': 'projectId',
|
|
82
87
|
'run_cmds': 'runCmds',
|
|
88
|
+
's3_folder': 's3Folder',
|
|
83
89
|
'snowflake': 'snowflake',
|
|
84
90
|
'state': 'state',
|
|
85
91
|
'total_size_bytes': 'totalSizeBytes',
|
|
@@ -88,7 +94,7 @@ class V1DataConnection(object):
|
|
|
88
94
|
'writable': 'writable'
|
|
89
95
|
}
|
|
90
96
|
|
|
91
|
-
def __init__(self, access_cluster_ids: 'list[str]' =None, accessible: 'bool' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, efs: 'V1EfsDataConnection' =None, gcp: 'V1GcpDataConnection' =None, id: 'str' =None, index: 'V1Index' =None, is_managed: 'bool' =None, lock_out: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, project_id: 'str' =None, run_cmds: 'list[str]' =None, snowflake: 'V1SnowflakeDataConnection' =None, state: 'V1DataConnectionState' =None, total_size_bytes: 'str' =None, type: 'str' =None, updated_at: 'datetime' =None, writable: 'bool' =None): # noqa: E501
|
|
97
|
+
def __init__(self, access_cluster_ids: 'list[str]' =None, accessible: 'bool' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, efs: 'V1EfsDataConnection' =None, efs_folder: 'V1EFSFolderDataConnection' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, id: 'str' =None, index: 'V1Index' =None, is_managed: 'bool' =None, lock_out: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, project_id: 'str' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, state: 'V1DataConnectionState' =None, total_size_bytes: 'str' =None, type: 'str' =None, updated_at: 'datetime' =None, writable: 'bool' =None): # noqa: E501
|
|
92
98
|
"""V1DataConnection - a model defined in Swagger""" # noqa: E501
|
|
93
99
|
self._access_cluster_ids = None
|
|
94
100
|
self._accessible = None
|
|
@@ -96,7 +102,9 @@ class V1DataConnection(object):
|
|
|
96
102
|
self._cluster_id = None
|
|
97
103
|
self._created_at = None
|
|
98
104
|
self._efs = None
|
|
105
|
+
self._efs_folder = None
|
|
99
106
|
self._gcp = None
|
|
107
|
+
self._gcs_folder = None
|
|
100
108
|
self._id = None
|
|
101
109
|
self._index = None
|
|
102
110
|
self._is_managed = None
|
|
@@ -105,6 +113,7 @@ class V1DataConnection(object):
|
|
|
105
113
|
self._number_of_files = None
|
|
106
114
|
self._project_id = None
|
|
107
115
|
self._run_cmds = None
|
|
116
|
+
self._s3_folder = None
|
|
108
117
|
self._snowflake = None
|
|
109
118
|
self._state = None
|
|
110
119
|
self._total_size_bytes = None
|
|
@@ -124,8 +133,12 @@ class V1DataConnection(object):
|
|
|
124
133
|
self.created_at = created_at
|
|
125
134
|
if efs is not None:
|
|
126
135
|
self.efs = efs
|
|
136
|
+
if efs_folder is not None:
|
|
137
|
+
self.efs_folder = efs_folder
|
|
127
138
|
if gcp is not None:
|
|
128
139
|
self.gcp = gcp
|
|
140
|
+
if gcs_folder is not None:
|
|
141
|
+
self.gcs_folder = gcs_folder
|
|
129
142
|
if id is not None:
|
|
130
143
|
self.id = id
|
|
131
144
|
if index is not None:
|
|
@@ -142,6 +155,8 @@ class V1DataConnection(object):
|
|
|
142
155
|
self.project_id = project_id
|
|
143
156
|
if run_cmds is not None:
|
|
144
157
|
self.run_cmds = run_cmds
|
|
158
|
+
if s3_folder is not None:
|
|
159
|
+
self.s3_folder = s3_folder
|
|
145
160
|
if snowflake is not None:
|
|
146
161
|
self.snowflake = snowflake
|
|
147
162
|
if state is not None:
|
|
@@ -281,6 +296,27 @@ class V1DataConnection(object):
|
|
|
281
296
|
|
|
282
297
|
self._efs = efs
|
|
283
298
|
|
|
299
|
+
@property
|
|
300
|
+
def efs_folder(self) -> 'V1EFSFolderDataConnection':
|
|
301
|
+
"""Gets the efs_folder of this V1DataConnection. # noqa: E501
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
:return: The efs_folder of this V1DataConnection. # noqa: E501
|
|
305
|
+
:rtype: V1EFSFolderDataConnection
|
|
306
|
+
"""
|
|
307
|
+
return self._efs_folder
|
|
308
|
+
|
|
309
|
+
@efs_folder.setter
|
|
310
|
+
def efs_folder(self, efs_folder: 'V1EFSFolderDataConnection'):
|
|
311
|
+
"""Sets the efs_folder of this V1DataConnection.
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
:param efs_folder: The efs_folder of this V1DataConnection. # noqa: E501
|
|
315
|
+
:type: V1EFSFolderDataConnection
|
|
316
|
+
"""
|
|
317
|
+
|
|
318
|
+
self._efs_folder = efs_folder
|
|
319
|
+
|
|
284
320
|
@property
|
|
285
321
|
def gcp(self) -> 'V1GcpDataConnection':
|
|
286
322
|
"""Gets the gcp of this V1DataConnection. # noqa: E501
|
|
@@ -302,6 +338,27 @@ class V1DataConnection(object):
|
|
|
302
338
|
|
|
303
339
|
self._gcp = gcp
|
|
304
340
|
|
|
341
|
+
@property
|
|
342
|
+
def gcs_folder(self) -> 'V1GCSFolderDataConnection':
|
|
343
|
+
"""Gets the gcs_folder of this V1DataConnection. # noqa: E501
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
:return: The gcs_folder of this V1DataConnection. # noqa: E501
|
|
347
|
+
:rtype: V1GCSFolderDataConnection
|
|
348
|
+
"""
|
|
349
|
+
return self._gcs_folder
|
|
350
|
+
|
|
351
|
+
@gcs_folder.setter
|
|
352
|
+
def gcs_folder(self, gcs_folder: 'V1GCSFolderDataConnection'):
|
|
353
|
+
"""Sets the gcs_folder of this V1DataConnection.
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
:param gcs_folder: The gcs_folder of this V1DataConnection. # noqa: E501
|
|
357
|
+
:type: V1GCSFolderDataConnection
|
|
358
|
+
"""
|
|
359
|
+
|
|
360
|
+
self._gcs_folder = gcs_folder
|
|
361
|
+
|
|
305
362
|
@property
|
|
306
363
|
def id(self) -> 'str':
|
|
307
364
|
"""Gets the id of this V1DataConnection. # noqa: E501
|
|
@@ -470,6 +527,27 @@ class V1DataConnection(object):
|
|
|
470
527
|
|
|
471
528
|
self._run_cmds = run_cmds
|
|
472
529
|
|
|
530
|
+
@property
|
|
531
|
+
def s3_folder(self) -> 'V1S3FolderDataConnection':
|
|
532
|
+
"""Gets the s3_folder of this V1DataConnection. # noqa: E501
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
:return: The s3_folder of this V1DataConnection. # noqa: E501
|
|
536
|
+
:rtype: V1S3FolderDataConnection
|
|
537
|
+
"""
|
|
538
|
+
return self._s3_folder
|
|
539
|
+
|
|
540
|
+
@s3_folder.setter
|
|
541
|
+
def s3_folder(self, s3_folder: 'V1S3FolderDataConnection'):
|
|
542
|
+
"""Sets the s3_folder of this V1DataConnection.
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
:param s3_folder: The s3_folder of this V1DataConnection. # noqa: E501
|
|
546
|
+
:type: V1S3FolderDataConnection
|
|
547
|
+
"""
|
|
548
|
+
|
|
549
|
+
self._s3_folder = s3_folder
|
|
550
|
+
|
|
473
551
|
@property
|
|
474
552
|
def snowflake(self) -> 'V1SnowflakeDataConnection':
|
|
475
553
|
"""Gets the snowflake of this V1DataConnection. # noqa: E501
|
|
@@ -0,0 +1,175 @@
|
|
|
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 V1DataPath(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
|
+
'single_file': 'bool',
|
|
45
|
+
'stored_path': 'str',
|
|
46
|
+
'target_path': 'str'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'single_file': 'singleFile',
|
|
51
|
+
'stored_path': 'storedPath',
|
|
52
|
+
'target_path': 'targetPath'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, single_file: 'bool' =None, stored_path: 'str' =None, target_path: 'str' =None): # noqa: E501
|
|
56
|
+
"""V1DataPath - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._single_file = None
|
|
58
|
+
self._stored_path = None
|
|
59
|
+
self._target_path = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if single_file is not None:
|
|
62
|
+
self.single_file = single_file
|
|
63
|
+
if stored_path is not None:
|
|
64
|
+
self.stored_path = stored_path
|
|
65
|
+
if target_path is not None:
|
|
66
|
+
self.target_path = target_path
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def single_file(self) -> 'bool':
|
|
70
|
+
"""Gets the single_file of this V1DataPath. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The single_file of this V1DataPath. # noqa: E501
|
|
74
|
+
:rtype: bool
|
|
75
|
+
"""
|
|
76
|
+
return self._single_file
|
|
77
|
+
|
|
78
|
+
@single_file.setter
|
|
79
|
+
def single_file(self, single_file: 'bool'):
|
|
80
|
+
"""Sets the single_file of this V1DataPath.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param single_file: The single_file of this V1DataPath. # noqa: E501
|
|
84
|
+
:type: bool
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._single_file = single_file
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def stored_path(self) -> 'str':
|
|
91
|
+
"""Gets the stored_path of this V1DataPath. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The stored_path of this V1DataPath. # noqa: E501
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._stored_path
|
|
98
|
+
|
|
99
|
+
@stored_path.setter
|
|
100
|
+
def stored_path(self, stored_path: 'str'):
|
|
101
|
+
"""Sets the stored_path of this V1DataPath.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param stored_path: The stored_path of this V1DataPath. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._stored_path = stored_path
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def target_path(self) -> 'str':
|
|
112
|
+
"""Gets the target_path of this V1DataPath. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The target_path of this V1DataPath. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._target_path
|
|
119
|
+
|
|
120
|
+
@target_path.setter
|
|
121
|
+
def target_path(self, target_path: 'str'):
|
|
122
|
+
"""Sets the target_path of this V1DataPath.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param target_path: The target_path of this V1DataPath. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._target_path = target_path
|
|
130
|
+
|
|
131
|
+
def to_dict(self) -> dict:
|
|
132
|
+
"""Returns the model properties as a dict"""
|
|
133
|
+
result = {}
|
|
134
|
+
|
|
135
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
+
value = getattr(self, attr)
|
|
137
|
+
if isinstance(value, list):
|
|
138
|
+
result[attr] = list(map(
|
|
139
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
+
value
|
|
141
|
+
))
|
|
142
|
+
elif hasattr(value, "to_dict"):
|
|
143
|
+
result[attr] = value.to_dict()
|
|
144
|
+
elif isinstance(value, dict):
|
|
145
|
+
result[attr] = dict(map(
|
|
146
|
+
lambda item: (item[0], item[1].to_dict())
|
|
147
|
+
if hasattr(item[1], "to_dict") else item,
|
|
148
|
+
value.items()
|
|
149
|
+
))
|
|
150
|
+
else:
|
|
151
|
+
result[attr] = value
|
|
152
|
+
if issubclass(V1DataPath, dict):
|
|
153
|
+
for key, value in self.items():
|
|
154
|
+
result[key] = value
|
|
155
|
+
|
|
156
|
+
return result
|
|
157
|
+
|
|
158
|
+
def to_str(self) -> str:
|
|
159
|
+
"""Returns the string representation of the model"""
|
|
160
|
+
return pprint.pformat(self.to_dict())
|
|
161
|
+
|
|
162
|
+
def __repr__(self) -> str:
|
|
163
|
+
"""For `print` and `pprint`"""
|
|
164
|
+
return self.to_str()
|
|
165
|
+
|
|
166
|
+
def __eq__(self, other: 'V1DataPath') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, V1DataPath):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'V1DataPath') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|