lightning-sdk 0.1.31__py3-none-any.whl → 0.1.32__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 +29 -0
- lightning_sdk/api/__init__.py +2 -0
- lightning_sdk/api/ai_hub_api.py +15 -0
- lightning_sdk/api/user_api.py +8 -2
- 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/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_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-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/RECORD +65 -37
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/top_level.txt +0 -0
|
@@ -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 V1ListFilesystemSlurmJobsResponse(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
|
+
'slurm_jobs': 'list[V1FilesystemSlurmJob]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'slurm_jobs': 'slurmJobs'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, slurm_jobs: 'list[V1FilesystemSlurmJob]' =None): # noqa: E501
|
|
52
|
+
"""V1ListFilesystemSlurmJobsResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._slurm_jobs = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if slurm_jobs is not None:
|
|
56
|
+
self.slurm_jobs = slurm_jobs
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def slurm_jobs(self) -> 'list[V1FilesystemSlurmJob]':
|
|
60
|
+
"""Gets the slurm_jobs of this V1ListFilesystemSlurmJobsResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The slurm_jobs of this V1ListFilesystemSlurmJobsResponse. # noqa: E501
|
|
64
|
+
:rtype: list[V1FilesystemSlurmJob]
|
|
65
|
+
"""
|
|
66
|
+
return self._slurm_jobs
|
|
67
|
+
|
|
68
|
+
@slurm_jobs.setter
|
|
69
|
+
def slurm_jobs(self, slurm_jobs: 'list[V1FilesystemSlurmJob]'):
|
|
70
|
+
"""Sets the slurm_jobs of this V1ListFilesystemSlurmJobsResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param slurm_jobs: The slurm_jobs of this V1ListFilesystemSlurmJobsResponse. # noqa: E501
|
|
74
|
+
:type: list[V1FilesystemSlurmJob]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._slurm_jobs = slurm_jobs
|
|
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(V1ListFilesystemSlurmJobsResponse, 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: 'V1ListFilesystemSlurmJobsResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1ListFilesystemSlurmJobsResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1ListFilesystemSlurmJobsResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
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 V1ListFilesystemSnowflakeResponse(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
|
+
'snowflake_connections': 'list[V1FilesystemSnowflakeConnection]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'snowflake_connections': 'snowflakeConnections'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, snowflake_connections: 'list[V1FilesystemSnowflakeConnection]' =None): # noqa: E501
|
|
52
|
+
"""V1ListFilesystemSnowflakeResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._snowflake_connections = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if snowflake_connections is not None:
|
|
56
|
+
self.snowflake_connections = snowflake_connections
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def snowflake_connections(self) -> 'list[V1FilesystemSnowflakeConnection]':
|
|
60
|
+
"""Gets the snowflake_connections of this V1ListFilesystemSnowflakeResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The snowflake_connections of this V1ListFilesystemSnowflakeResponse. # noqa: E501
|
|
64
|
+
:rtype: list[V1FilesystemSnowflakeConnection]
|
|
65
|
+
"""
|
|
66
|
+
return self._snowflake_connections
|
|
67
|
+
|
|
68
|
+
@snowflake_connections.setter
|
|
69
|
+
def snowflake_connections(self, snowflake_connections: 'list[V1FilesystemSnowflakeConnection]'):
|
|
70
|
+
"""Sets the snowflake_connections of this V1ListFilesystemSnowflakeResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param snowflake_connections: The snowflake_connections of this V1ListFilesystemSnowflakeResponse. # noqa: E501
|
|
74
|
+
:type: list[V1FilesystemSnowflakeConnection]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._snowflake_connections = snowflake_connections
|
|
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(V1ListFilesystemSnowflakeResponse, 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: 'V1ListFilesystemSnowflakeResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1ListFilesystemSnowflakeResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1ListFilesystemSnowflakeResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -46,7 +46,7 @@ class V1Model(object):
|
|
|
46
46
|
'description': 'str',
|
|
47
47
|
'downloads': 'str',
|
|
48
48
|
'id': 'str',
|
|
49
|
-
'latest_version': '
|
|
49
|
+
'latest_version': 'V1ModelVersionArchive',
|
|
50
50
|
'license': 'str',
|
|
51
51
|
'model_metadata': 'dict(str, str)',
|
|
52
52
|
'name': 'str',
|
|
@@ -74,7 +74,7 @@ class V1Model(object):
|
|
|
74
74
|
'user_id': 'userId'
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
def __init__(self, categories: 'list[str]' =None, created_at: 'datetime' =None, description: 'str' =None, downloads: 'str' =None, id: 'str' =None, latest_version: '
|
|
77
|
+
def __init__(self, categories: 'list[str]' =None, created_at: 'datetime' =None, description: 'str' =None, downloads: 'str' =None, id: 'str' =None, latest_version: 'V1ModelVersionArchive' =None, license: 'str' =None, model_metadata: 'dict(str, str)' =None, name: 'str' =None, private: 'bool' =None, project_id: 'str' =None, tags: 'list[str]' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
78
78
|
"""V1Model - a model defined in Swagger""" # noqa: E501
|
|
79
79
|
self._categories = None
|
|
80
80
|
self._created_at = None
|
|
@@ -226,22 +226,22 @@ class V1Model(object):
|
|
|
226
226
|
self._id = id
|
|
227
227
|
|
|
228
228
|
@property
|
|
229
|
-
def latest_version(self) -> '
|
|
229
|
+
def latest_version(self) -> 'V1ModelVersionArchive':
|
|
230
230
|
"""Gets the latest_version of this V1Model. # noqa: E501
|
|
231
231
|
|
|
232
232
|
|
|
233
233
|
:return: The latest_version of this V1Model. # noqa: E501
|
|
234
|
-
:rtype:
|
|
234
|
+
:rtype: V1ModelVersionArchive
|
|
235
235
|
"""
|
|
236
236
|
return self._latest_version
|
|
237
237
|
|
|
238
238
|
@latest_version.setter
|
|
239
|
-
def latest_version(self, latest_version: '
|
|
239
|
+
def latest_version(self, latest_version: 'V1ModelVersionArchive'):
|
|
240
240
|
"""Sets the latest_version of this V1Model.
|
|
241
241
|
|
|
242
242
|
|
|
243
243
|
:param latest_version: The latest_version of this V1Model. # noqa: E501
|
|
244
|
-
:type:
|
|
244
|
+
:type: V1ModelVersionArchive
|
|
245
245
|
"""
|
|
246
246
|
|
|
247
247
|
self._latest_version = latest_version
|
|
@@ -47,7 +47,9 @@ class V1ModelVersionArchive(object):
|
|
|
47
47
|
'index': 'int',
|
|
48
48
|
'metadata': 'dict(str, str)',
|
|
49
49
|
'model_id': 'str',
|
|
50
|
+
'number_of_files': 'str',
|
|
50
51
|
'project_id': 'str',
|
|
52
|
+
'size_bytes': 'str',
|
|
51
53
|
'updated_at': 'datetime',
|
|
52
54
|
'upload_complete': 'bool',
|
|
53
55
|
'user_id': 'str',
|
|
@@ -61,14 +63,16 @@ class V1ModelVersionArchive(object):
|
|
|
61
63
|
'index': 'index',
|
|
62
64
|
'metadata': 'metadata',
|
|
63
65
|
'model_id': 'modelId',
|
|
66
|
+
'number_of_files': 'numberOfFiles',
|
|
64
67
|
'project_id': 'projectId',
|
|
68
|
+
'size_bytes': 'sizeBytes',
|
|
65
69
|
'updated_at': 'updatedAt',
|
|
66
70
|
'upload_complete': 'uploadComplete',
|
|
67
71
|
'user_id': 'userId',
|
|
68
72
|
'version': 'version'
|
|
69
73
|
}
|
|
70
74
|
|
|
71
|
-
def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, downloads: 'str' =None, index: 'int' =None, metadata: 'dict(str, str)' =None, model_id: 'str' =None, project_id: 'str' =None, updated_at: 'datetime' =None, upload_complete: 'bool' =None, user_id: 'str' =None, version: 'str' =None): # noqa: E501
|
|
75
|
+
def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, downloads: 'str' =None, index: 'int' =None, metadata: 'dict(str, str)' =None, model_id: 'str' =None, number_of_files: 'str' =None, project_id: 'str' =None, size_bytes: 'str' =None, updated_at: 'datetime' =None, upload_complete: 'bool' =None, user_id: 'str' =None, version: 'str' =None): # noqa: E501
|
|
72
76
|
"""V1ModelVersionArchive - a model defined in Swagger""" # noqa: E501
|
|
73
77
|
self._cluster_id = None
|
|
74
78
|
self._created_at = None
|
|
@@ -76,7 +80,9 @@ class V1ModelVersionArchive(object):
|
|
|
76
80
|
self._index = None
|
|
77
81
|
self._metadata = None
|
|
78
82
|
self._model_id = None
|
|
83
|
+
self._number_of_files = None
|
|
79
84
|
self._project_id = None
|
|
85
|
+
self._size_bytes = None
|
|
80
86
|
self._updated_at = None
|
|
81
87
|
self._upload_complete = None
|
|
82
88
|
self._user_id = None
|
|
@@ -94,8 +100,12 @@ class V1ModelVersionArchive(object):
|
|
|
94
100
|
self.metadata = metadata
|
|
95
101
|
if model_id is not None:
|
|
96
102
|
self.model_id = model_id
|
|
103
|
+
if number_of_files is not None:
|
|
104
|
+
self.number_of_files = number_of_files
|
|
97
105
|
if project_id is not None:
|
|
98
106
|
self.project_id = project_id
|
|
107
|
+
if size_bytes is not None:
|
|
108
|
+
self.size_bytes = size_bytes
|
|
99
109
|
if updated_at is not None:
|
|
100
110
|
self.updated_at = updated_at
|
|
101
111
|
if upload_complete is not None:
|
|
@@ -231,6 +241,27 @@ class V1ModelVersionArchive(object):
|
|
|
231
241
|
|
|
232
242
|
self._model_id = model_id
|
|
233
243
|
|
|
244
|
+
@property
|
|
245
|
+
def number_of_files(self) -> 'str':
|
|
246
|
+
"""Gets the number_of_files of this V1ModelVersionArchive. # noqa: E501
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
:return: The number_of_files of this V1ModelVersionArchive. # noqa: E501
|
|
250
|
+
:rtype: str
|
|
251
|
+
"""
|
|
252
|
+
return self._number_of_files
|
|
253
|
+
|
|
254
|
+
@number_of_files.setter
|
|
255
|
+
def number_of_files(self, number_of_files: 'str'):
|
|
256
|
+
"""Sets the number_of_files of this V1ModelVersionArchive.
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
:param number_of_files: The number_of_files of this V1ModelVersionArchive. # noqa: E501
|
|
260
|
+
:type: str
|
|
261
|
+
"""
|
|
262
|
+
|
|
263
|
+
self._number_of_files = number_of_files
|
|
264
|
+
|
|
234
265
|
@property
|
|
235
266
|
def project_id(self) -> 'str':
|
|
236
267
|
"""Gets the project_id of this V1ModelVersionArchive. # noqa: E501
|
|
@@ -252,6 +283,27 @@ class V1ModelVersionArchive(object):
|
|
|
252
283
|
|
|
253
284
|
self._project_id = project_id
|
|
254
285
|
|
|
286
|
+
@property
|
|
287
|
+
def size_bytes(self) -> 'str':
|
|
288
|
+
"""Gets the size_bytes of this V1ModelVersionArchive. # noqa: E501
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
:return: The size_bytes of this V1ModelVersionArchive. # noqa: E501
|
|
292
|
+
:rtype: str
|
|
293
|
+
"""
|
|
294
|
+
return self._size_bytes
|
|
295
|
+
|
|
296
|
+
@size_bytes.setter
|
|
297
|
+
def size_bytes(self, size_bytes: 'str'):
|
|
298
|
+
"""Sets the size_bytes of this V1ModelVersionArchive.
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
:param size_bytes: The size_bytes of this V1ModelVersionArchive. # noqa: E501
|
|
302
|
+
:type: str
|
|
303
|
+
"""
|
|
304
|
+
|
|
305
|
+
self._size_bytes = size_bytes
|
|
306
|
+
|
|
255
307
|
@property
|
|
256
308
|
def updated_at(self) -> 'datetime':
|
|
257
309
|
"""Gets the updated_at of this V1ModelVersionArchive. # noqa: E501
|
|
@@ -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 V1S3FolderDataConnection(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
|
+
'source': 'str'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'source': 'source'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, source: 'str' =None): # noqa: E501
|
|
52
|
+
"""V1S3FolderDataConnection - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._source = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if source is not None:
|
|
56
|
+
self.source = source
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def source(self) -> 'str':
|
|
60
|
+
"""Gets the source of this V1S3FolderDataConnection. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The source of this V1S3FolderDataConnection. # noqa: E501
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._source
|
|
67
|
+
|
|
68
|
+
@source.setter
|
|
69
|
+
def source(self, source: 'str'):
|
|
70
|
+
"""Sets the source of this V1S3FolderDataConnection.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param source: The source of this V1S3FolderDataConnection. # noqa: E501
|
|
74
|
+
:type: str
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._source = source
|
|
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(V1S3FolderDataConnection, 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: 'V1S3FolderDataConnection') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1S3FolderDataConnection):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1S3FolderDataConnection') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -43,25 +43,30 @@ class V1Transaction(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'amount': 'float',
|
|
45
45
|
'created_at': 'datetime',
|
|
46
|
+
'display_name': 'str',
|
|
46
47
|
'type': 'str'
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
attribute_map = {
|
|
50
51
|
'amount': 'amount',
|
|
51
52
|
'created_at': 'createdAt',
|
|
53
|
+
'display_name': 'displayName',
|
|
52
54
|
'type': 'type'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
def __init__(self, amount: 'float' =None, created_at: 'datetime' =None, type: 'str' =None): # noqa: E501
|
|
57
|
+
def __init__(self, amount: 'float' =None, created_at: 'datetime' =None, display_name: 'str' =None, type: 'str' =None): # noqa: E501
|
|
56
58
|
"""V1Transaction - a model defined in Swagger""" # noqa: E501
|
|
57
59
|
self._amount = None
|
|
58
60
|
self._created_at = None
|
|
61
|
+
self._display_name = None
|
|
59
62
|
self._type = None
|
|
60
63
|
self.discriminator = None
|
|
61
64
|
if amount is not None:
|
|
62
65
|
self.amount = amount
|
|
63
66
|
if created_at is not None:
|
|
64
67
|
self.created_at = created_at
|
|
68
|
+
if display_name is not None:
|
|
69
|
+
self.display_name = display_name
|
|
65
70
|
if type is not None:
|
|
66
71
|
self.type = type
|
|
67
72
|
|
|
@@ -107,6 +112,27 @@ class V1Transaction(object):
|
|
|
107
112
|
|
|
108
113
|
self._created_at = created_at
|
|
109
114
|
|
|
115
|
+
@property
|
|
116
|
+
def display_name(self) -> 'str':
|
|
117
|
+
"""Gets the display_name of this V1Transaction. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The display_name of this V1Transaction. # noqa: E501
|
|
121
|
+
:rtype: str
|
|
122
|
+
"""
|
|
123
|
+
return self._display_name
|
|
124
|
+
|
|
125
|
+
@display_name.setter
|
|
126
|
+
def display_name(self, display_name: 'str'):
|
|
127
|
+
"""Sets the display_name of this V1Transaction.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param display_name: The display_name of this V1Transaction. # noqa: E501
|
|
131
|
+
:type: str
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._display_name = display_name
|
|
135
|
+
|
|
110
136
|
@property
|
|
111
137
|
def type(self) -> 'str':
|
|
112
138
|
"""Gets the type of this V1Transaction. # noqa: E501
|
|
@@ -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 V1UpdateSharedMetricsStreamResponse(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
|
+
"""V1UpdateSharedMetricsStreamResponse - 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(V1UpdateSharedMetricsStreamResponse, 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: 'V1UpdateSharedMetricsStreamResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1UpdateSharedMetricsStreamResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1UpdateSharedMetricsStreamResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|