lightning-sdk 0.1.30__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.
Files changed (80) hide show
  1. lightning_sdk/__init__.py +3 -1
  2. lightning_sdk/ai_hub.py +29 -0
  3. lightning_sdk/api/__init__.py +2 -0
  4. lightning_sdk/api/ai_hub_api.py +15 -0
  5. lightning_sdk/api/teamspace_api.py +35 -5
  6. lightning_sdk/api/user_api.py +8 -2
  7. lightning_sdk/cli/upload.py +10 -6
  8. lightning_sdk/lightning_cloud/openapi/__init__.py +30 -0
  9. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  10. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -4
  11. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -5
  12. lightning_sdk/lightning_cloud/openapi/api/deployment_templates_service_api.py +105 -0
  13. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
  14. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +5 -1
  15. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +396 -0
  16. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +118 -1
  17. lightning_sdk/lightning_cloud/openapi/models/__init__.py +29 -0
  18. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
  19. lightning_sdk/lightning_cloud/openapi/models/create.py +79 -1
  20. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  21. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +121 -17
  22. lightning_sdk/lightning_cloud/openapi/models/id_engage_body.py +3 -29
  23. lightning_sdk/lightning_cloud/openapi/models/id_engage_body1.py +149 -0
  24. lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
  25. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +123 -0
  26. lightning_sdk/lightning_cloud/openapi/models/project_id_models_body.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +79 -1
  29. lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  31. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +95 -17
  32. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
  34. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
  35. lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +175 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_delete_shared_metrics_stream_response.py +97 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +123 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +95 -17
  40. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_engagement_response.py +97 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +69 -17
  42. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_placement.py +2 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +1 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_efs_folder_data_connection.py +201 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_app.py +227 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
  55. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  56. lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
  58. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
  63. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
  64. lightning_sdk/lightning_cloud/openapi/models/v1_model.py +6 -6
  65. lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +79 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_parameterization_spec.py +227 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +76 -24
  71. lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +81 -3
  72. lightning_sdk/lightning_cloud/openapi/models/validate.py +81 -3
  73. lightning_sdk/lightning_cloud/rest_client.py +2 -0
  74. lightning_sdk/teamspace.py +11 -0
  75. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/METADATA +1 -1
  76. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/RECORD +80 -48
  77. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/LICENSE +0 -0
  78. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/WHEEL +0 -0
  79. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/entry_points.txt +0 -0
  80. {lightning_sdk-0.1.30.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': 'str',
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: 'str' =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
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) -> 'str':
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: str
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: 'str'):
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: str
244
+ :type: V1ModelVersionArchive
245
245
  """
246
246
 
247
247
  self._latest_version = latest_version
@@ -44,9 +44,12 @@ class V1ModelVersionArchive(object):
44
44
  'cluster_id': 'str',
45
45
  'created_at': 'datetime',
46
46
  'downloads': 'str',
47
+ 'index': 'int',
47
48
  'metadata': 'dict(str, str)',
48
49
  'model_id': 'str',
50
+ 'number_of_files': 'str',
49
51
  'project_id': 'str',
52
+ 'size_bytes': 'str',
50
53
  'updated_at': 'datetime',
51
54
  'upload_complete': 'bool',
52
55
  'user_id': 'str',
@@ -57,23 +60,29 @@ class V1ModelVersionArchive(object):
57
60
  'cluster_id': 'clusterId',
58
61
  'created_at': 'createdAt',
59
62
  'downloads': 'downloads',
63
+ 'index': 'index',
60
64
  'metadata': 'metadata',
61
65
  'model_id': 'modelId',
66
+ 'number_of_files': 'numberOfFiles',
62
67
  'project_id': 'projectId',
68
+ 'size_bytes': 'sizeBytes',
63
69
  'updated_at': 'updatedAt',
64
70
  'upload_complete': 'uploadComplete',
65
71
  'user_id': 'userId',
66
72
  'version': 'version'
67
73
  }
68
74
 
69
- def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, downloads: 'str' =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
70
76
  """V1ModelVersionArchive - a model defined in Swagger""" # noqa: E501
71
77
  self._cluster_id = None
72
78
  self._created_at = None
73
79
  self._downloads = None
80
+ self._index = None
74
81
  self._metadata = None
75
82
  self._model_id = None
83
+ self._number_of_files = None
76
84
  self._project_id = None
85
+ self._size_bytes = None
77
86
  self._updated_at = None
78
87
  self._upload_complete = None
79
88
  self._user_id = None
@@ -85,12 +94,18 @@ class V1ModelVersionArchive(object):
85
94
  self.created_at = created_at
86
95
  if downloads is not None:
87
96
  self.downloads = downloads
97
+ if index is not None:
98
+ self.index = index
88
99
  if metadata is not None:
89
100
  self.metadata = metadata
90
101
  if model_id is not None:
91
102
  self.model_id = model_id
103
+ if number_of_files is not None:
104
+ self.number_of_files = number_of_files
92
105
  if project_id is not None:
93
106
  self.project_id = project_id
107
+ if size_bytes is not None:
108
+ self.size_bytes = size_bytes
94
109
  if updated_at is not None:
95
110
  self.updated_at = updated_at
96
111
  if upload_complete is not None:
@@ -163,6 +178,27 @@ class V1ModelVersionArchive(object):
163
178
 
164
179
  self._downloads = downloads
165
180
 
181
+ @property
182
+ def index(self) -> 'int':
183
+ """Gets the index of this V1ModelVersionArchive. # noqa: E501
184
+
185
+
186
+ :return: The index of this V1ModelVersionArchive. # noqa: E501
187
+ :rtype: int
188
+ """
189
+ return self._index
190
+
191
+ @index.setter
192
+ def index(self, index: 'int'):
193
+ """Sets the index of this V1ModelVersionArchive.
194
+
195
+
196
+ :param index: The index of this V1ModelVersionArchive. # noqa: E501
197
+ :type: int
198
+ """
199
+
200
+ self._index = index
201
+
166
202
  @property
167
203
  def metadata(self) -> 'dict(str, str)':
168
204
  """Gets the metadata of this V1ModelVersionArchive. # noqa: E501
@@ -205,6 +241,27 @@ class V1ModelVersionArchive(object):
205
241
 
206
242
  self._model_id = model_id
207
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
+
208
265
  @property
209
266
  def project_id(self) -> 'str':
210
267
  """Gets the project_id of this V1ModelVersionArchive. # noqa: E501
@@ -226,6 +283,27 @@ class V1ModelVersionArchive(object):
226
283
 
227
284
  self._project_id = project_id
228
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
+
229
307
  @property
230
308
  def updated_at(self) -> 'datetime':
231
309
  """Gets the updated_at of this V1ModelVersionArchive. # noqa: E501
@@ -0,0 +1,227 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1ParameterizationSpec(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
+ 'command': 'str',
45
+ 'entrypoint': 'str',
46
+ 'env': 'list[V1EnvVar]',
47
+ 'image': 'str',
48
+ 'parameters': 'list[V1DeploymentTemplateParameter]'
49
+ }
50
+
51
+ attribute_map = {
52
+ 'command': 'command',
53
+ 'entrypoint': 'entrypoint',
54
+ 'env': 'env',
55
+ 'image': 'image',
56
+ 'parameters': 'parameters'
57
+ }
58
+
59
+ def __init__(self, command: 'str' =None, entrypoint: 'str' =None, env: 'list[V1EnvVar]' =None, image: 'str' =None, parameters: 'list[V1DeploymentTemplateParameter]' =None): # noqa: E501
60
+ """V1ParameterizationSpec - a model defined in Swagger""" # noqa: E501
61
+ self._command = None
62
+ self._entrypoint = None
63
+ self._env = None
64
+ self._image = None
65
+ self._parameters = None
66
+ self.discriminator = None
67
+ if command is not None:
68
+ self.command = command
69
+ if entrypoint is not None:
70
+ self.entrypoint = entrypoint
71
+ if env is not None:
72
+ self.env = env
73
+ if image is not None:
74
+ self.image = image
75
+ if parameters is not None:
76
+ self.parameters = parameters
77
+
78
+ @property
79
+ def command(self) -> 'str':
80
+ """Gets the command of this V1ParameterizationSpec. # noqa: E501
81
+
82
+
83
+ :return: The command of this V1ParameterizationSpec. # noqa: E501
84
+ :rtype: str
85
+ """
86
+ return self._command
87
+
88
+ @command.setter
89
+ def command(self, command: 'str'):
90
+ """Sets the command of this V1ParameterizationSpec.
91
+
92
+
93
+ :param command: The command of this V1ParameterizationSpec. # noqa: E501
94
+ :type: str
95
+ """
96
+
97
+ self._command = command
98
+
99
+ @property
100
+ def entrypoint(self) -> 'str':
101
+ """Gets the entrypoint of this V1ParameterizationSpec. # noqa: E501
102
+
103
+
104
+ :return: The entrypoint of this V1ParameterizationSpec. # noqa: E501
105
+ :rtype: str
106
+ """
107
+ return self._entrypoint
108
+
109
+ @entrypoint.setter
110
+ def entrypoint(self, entrypoint: 'str'):
111
+ """Sets the entrypoint of this V1ParameterizationSpec.
112
+
113
+
114
+ :param entrypoint: The entrypoint of this V1ParameterizationSpec. # noqa: E501
115
+ :type: str
116
+ """
117
+
118
+ self._entrypoint = entrypoint
119
+
120
+ @property
121
+ def env(self) -> 'list[V1EnvVar]':
122
+ """Gets the env of this V1ParameterizationSpec. # noqa: E501
123
+
124
+
125
+ :return: The env of this V1ParameterizationSpec. # noqa: E501
126
+ :rtype: list[V1EnvVar]
127
+ """
128
+ return self._env
129
+
130
+ @env.setter
131
+ def env(self, env: 'list[V1EnvVar]'):
132
+ """Sets the env of this V1ParameterizationSpec.
133
+
134
+
135
+ :param env: The env of this V1ParameterizationSpec. # noqa: E501
136
+ :type: list[V1EnvVar]
137
+ """
138
+
139
+ self._env = env
140
+
141
+ @property
142
+ def image(self) -> 'str':
143
+ """Gets the image of this V1ParameterizationSpec. # noqa: E501
144
+
145
+
146
+ :return: The image of this V1ParameterizationSpec. # noqa: E501
147
+ :rtype: str
148
+ """
149
+ return self._image
150
+
151
+ @image.setter
152
+ def image(self, image: 'str'):
153
+ """Sets the image of this V1ParameterizationSpec.
154
+
155
+
156
+ :param image: The image of this V1ParameterizationSpec. # noqa: E501
157
+ :type: str
158
+ """
159
+
160
+ self._image = image
161
+
162
+ @property
163
+ def parameters(self) -> 'list[V1DeploymentTemplateParameter]':
164
+ """Gets the parameters of this V1ParameterizationSpec. # noqa: E501
165
+
166
+
167
+ :return: The parameters of this V1ParameterizationSpec. # noqa: E501
168
+ :rtype: list[V1DeploymentTemplateParameter]
169
+ """
170
+ return self._parameters
171
+
172
+ @parameters.setter
173
+ def parameters(self, parameters: 'list[V1DeploymentTemplateParameter]'):
174
+ """Sets the parameters of this V1ParameterizationSpec.
175
+
176
+
177
+ :param parameters: The parameters of this V1ParameterizationSpec. # noqa: E501
178
+ :type: list[V1DeploymentTemplateParameter]
179
+ """
180
+
181
+ self._parameters = parameters
182
+
183
+ def to_dict(self) -> dict:
184
+ """Returns the model properties as a dict"""
185
+ result = {}
186
+
187
+ for attr, _ in six.iteritems(self.swagger_types):
188
+ value = getattr(self, attr)
189
+ if isinstance(value, list):
190
+ result[attr] = list(map(
191
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
192
+ value
193
+ ))
194
+ elif hasattr(value, "to_dict"):
195
+ result[attr] = value.to_dict()
196
+ elif isinstance(value, dict):
197
+ result[attr] = dict(map(
198
+ lambda item: (item[0], item[1].to_dict())
199
+ if hasattr(item[1], "to_dict") else item,
200
+ value.items()
201
+ ))
202
+ else:
203
+ result[attr] = value
204
+ if issubclass(V1ParameterizationSpec, dict):
205
+ for key, value in self.items():
206
+ result[key] = value
207
+
208
+ return result
209
+
210
+ def to_str(self) -> str:
211
+ """Returns the string representation of the model"""
212
+ return pprint.pformat(self.to_dict())
213
+
214
+ def __repr__(self) -> str:
215
+ """For `print` and `pprint`"""
216
+ return self.to_str()
217
+
218
+ def __eq__(self, other: 'V1ParameterizationSpec') -> bool:
219
+ """Returns true if both objects are equal"""
220
+ if not isinstance(other, V1ParameterizationSpec):
221
+ return False
222
+
223
+ return self.__dict__ == other.__dict__
224
+
225
+ def __ne__(self, other: 'V1ParameterizationSpec') -> bool:
226
+ """Returns true if both objects are not equal"""
227
+ return not self == other