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.
Files changed (71) hide show
  1. lightning_sdk/__init__.py +3 -1
  2. lightning_sdk/ai_hub.py +110 -0
  3. lightning_sdk/api/__init__.py +2 -0
  4. lightning_sdk/api/ai_hub_api.py +61 -0
  5. lightning_sdk/api/studio_api.py +15 -8
  6. lightning_sdk/api/user_api.py +8 -2
  7. lightning_sdk/api/utils.py +8 -1
  8. lightning_sdk/cli/upload.py +10 -6
  9. lightning_sdk/lightning_cloud/openapi/__init__.py +26 -0
  10. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  11. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +101 -0
  12. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
  13. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +396 -0
  14. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +1 -0
  15. lightning_sdk/lightning_cloud/openapi/models/__init__.py +25 -0
  16. lightning_sdk/lightning_cloud/openapi/models/create.py +79 -1
  17. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
  18. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  19. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +79 -1
  20. lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
  21. lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
  22. lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +79 -1
  23. lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
  24. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  25. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +79 -1
  26. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
  27. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
  28. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
  29. lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +175 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_delete_shared_metrics_stream_response.py +97 -0
  31. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +123 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +79 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +69 -17
  35. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +1 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +27 -1
  37. lightning_sdk/lightning_cloud/openapi/models/v1_efs_folder_data_connection.py +201 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_app.py +227 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
  42. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
  45. lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
  47. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  48. lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -1
  49. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_model.py +6 -6
  57. lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +53 -1
  58. lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
  62. lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +81 -3
  63. lightning_sdk/lightning_cloud/openapi/models/validate.py +81 -3
  64. lightning_sdk/lightning_cloud/rest_client.py +2 -0
  65. lightning_sdk/studio.py +6 -5
  66. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/METADATA +1 -1
  67. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/RECORD +71 -43
  68. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/LICENSE +0 -0
  69. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/WHEEL +0 -0
  70. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.33.dist-info}/entry_points.txt +0 -0
  71. {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 V1EFSFolderDataConnection(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+ """
37
+ Attributes:
38
+ swagger_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ swagger_types = {
44
+ 'file_system_id': 'str',
45
+ 'mount_targets': 'list[V1MountTarget]',
46
+ 'region': 'str',
47
+ 'source': 'str'
48
+ }
49
+
50
+ attribute_map = {
51
+ 'file_system_id': 'fileSystemId',
52
+ 'mount_targets': 'mountTargets',
53
+ 'region': 'region',
54
+ 'source': 'source'
55
+ }
56
+
57
+ def __init__(self, file_system_id: 'str' =None, mount_targets: 'list[V1MountTarget]' =None, region: 'str' =None, source: 'str' =None): # noqa: E501
58
+ """V1EFSFolderDataConnection - a model defined in Swagger""" # noqa: E501
59
+ self._file_system_id = None
60
+ self._mount_targets = None
61
+ self._region = None
62
+ self._source = None
63
+ self.discriminator = None
64
+ if file_system_id is not None:
65
+ self.file_system_id = file_system_id
66
+ if mount_targets is not None:
67
+ self.mount_targets = mount_targets
68
+ if region is not None:
69
+ self.region = region
70
+ if source is not None:
71
+ self.source = source
72
+
73
+ @property
74
+ def file_system_id(self) -> 'str':
75
+ """Gets the file_system_id of this V1EFSFolderDataConnection. # noqa: E501
76
+
77
+
78
+ :return: The file_system_id of this V1EFSFolderDataConnection. # noqa: E501
79
+ :rtype: str
80
+ """
81
+ return self._file_system_id
82
+
83
+ @file_system_id.setter
84
+ def file_system_id(self, file_system_id: 'str'):
85
+ """Sets the file_system_id of this V1EFSFolderDataConnection.
86
+
87
+
88
+ :param file_system_id: The file_system_id of this V1EFSFolderDataConnection. # noqa: E501
89
+ :type: str
90
+ """
91
+
92
+ self._file_system_id = file_system_id
93
+
94
+ @property
95
+ def mount_targets(self) -> 'list[V1MountTarget]':
96
+ """Gets the mount_targets of this V1EFSFolderDataConnection. # noqa: E501
97
+
98
+
99
+ :return: The mount_targets of this V1EFSFolderDataConnection. # noqa: E501
100
+ :rtype: list[V1MountTarget]
101
+ """
102
+ return self._mount_targets
103
+
104
+ @mount_targets.setter
105
+ def mount_targets(self, mount_targets: 'list[V1MountTarget]'):
106
+ """Sets the mount_targets of this V1EFSFolderDataConnection.
107
+
108
+
109
+ :param mount_targets: The mount_targets of this V1EFSFolderDataConnection. # noqa: E501
110
+ :type: list[V1MountTarget]
111
+ """
112
+
113
+ self._mount_targets = mount_targets
114
+
115
+ @property
116
+ def region(self) -> 'str':
117
+ """Gets the region of this V1EFSFolderDataConnection. # noqa: E501
118
+
119
+
120
+ :return: The region of this V1EFSFolderDataConnection. # noqa: E501
121
+ :rtype: str
122
+ """
123
+ return self._region
124
+
125
+ @region.setter
126
+ def region(self, region: 'str'):
127
+ """Sets the region of this V1EFSFolderDataConnection.
128
+
129
+
130
+ :param region: The region of this V1EFSFolderDataConnection. # noqa: E501
131
+ :type: str
132
+ """
133
+
134
+ self._region = region
135
+
136
+ @property
137
+ def source(self) -> 'str':
138
+ """Gets the source of this V1EFSFolderDataConnection. # noqa: E501
139
+
140
+
141
+ :return: The source of this V1EFSFolderDataConnection. # noqa: E501
142
+ :rtype: str
143
+ """
144
+ return self._source
145
+
146
+ @source.setter
147
+ def source(self, source: 'str'):
148
+ """Sets the source of this V1EFSFolderDataConnection.
149
+
150
+
151
+ :param source: The source of this V1EFSFolderDataConnection. # noqa: E501
152
+ :type: str
153
+ """
154
+
155
+ self._source = source
156
+
157
+ def to_dict(self) -> dict:
158
+ """Returns the model properties as a dict"""
159
+ result = {}
160
+
161
+ for attr, _ in six.iteritems(self.swagger_types):
162
+ value = getattr(self, attr)
163
+ if isinstance(value, list):
164
+ result[attr] = list(map(
165
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
166
+ value
167
+ ))
168
+ elif hasattr(value, "to_dict"):
169
+ result[attr] = value.to_dict()
170
+ elif isinstance(value, dict):
171
+ result[attr] = dict(map(
172
+ lambda item: (item[0], item[1].to_dict())
173
+ if hasattr(item[1], "to_dict") else item,
174
+ value.items()
175
+ ))
176
+ else:
177
+ result[attr] = value
178
+ if issubclass(V1EFSFolderDataConnection, dict):
179
+ for key, value in self.items():
180
+ result[key] = value
181
+
182
+ return result
183
+
184
+ def to_str(self) -> str:
185
+ """Returns the string representation of the model"""
186
+ return pprint.pformat(self.to_dict())
187
+
188
+ def __repr__(self) -> str:
189
+ """For `print` and `pprint`"""
190
+ return self.to_str()
191
+
192
+ def __eq__(self, other: 'V1EFSFolderDataConnection') -> bool:
193
+ """Returns true if both objects are equal"""
194
+ if not isinstance(other, V1EFSFolderDataConnection):
195
+ return False
196
+
197
+ return self.__dict__ == other.__dict__
198
+
199
+ def __ne__(self, other: 'V1EFSFolderDataConnection') -> bool:
200
+ """Returns true if both objects are not equal"""
201
+ return not self == other
@@ -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 V1FilesystemApp(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
+ 'name': 'str',
46
+ 'run_id': 'str',
47
+ 'type': 'V1AppType',
48
+ 'works': 'list[V1FilesystemWork]'
49
+ }
50
+
51
+ attribute_map = {
52
+ 'id': 'id',
53
+ 'name': 'name',
54
+ 'run_id': 'runId',
55
+ 'type': 'type',
56
+ 'works': 'works'
57
+ }
58
+
59
+ def __init__(self, id: 'str' =None, name: 'str' =None, run_id: 'str' =None, type: 'V1AppType' =None, works: 'list[V1FilesystemWork]' =None): # noqa: E501
60
+ """V1FilesystemApp - a model defined in Swagger""" # noqa: E501
61
+ self._id = None
62
+ self._name = None
63
+ self._run_id = None
64
+ self._type = None
65
+ self._works = None
66
+ self.discriminator = None
67
+ if id is not None:
68
+ self.id = id
69
+ if name is not None:
70
+ self.name = name
71
+ if run_id is not None:
72
+ self.run_id = run_id
73
+ if type is not None:
74
+ self.type = type
75
+ if works is not None:
76
+ self.works = works
77
+
78
+ @property
79
+ def id(self) -> 'str':
80
+ """Gets the id of this V1FilesystemApp. # noqa: E501
81
+
82
+
83
+ :return: The id of this V1FilesystemApp. # noqa: E501
84
+ :rtype: str
85
+ """
86
+ return self._id
87
+
88
+ @id.setter
89
+ def id(self, id: 'str'):
90
+ """Sets the id of this V1FilesystemApp.
91
+
92
+
93
+ :param id: The id of this V1FilesystemApp. # noqa: E501
94
+ :type: str
95
+ """
96
+
97
+ self._id = id
98
+
99
+ @property
100
+ def name(self) -> 'str':
101
+ """Gets the name of this V1FilesystemApp. # noqa: E501
102
+
103
+
104
+ :return: The name of this V1FilesystemApp. # noqa: E501
105
+ :rtype: str
106
+ """
107
+ return self._name
108
+
109
+ @name.setter
110
+ def name(self, name: 'str'):
111
+ """Sets the name of this V1FilesystemApp.
112
+
113
+
114
+ :param name: The name of this V1FilesystemApp. # noqa: E501
115
+ :type: str
116
+ """
117
+
118
+ self._name = name
119
+
120
+ @property
121
+ def run_id(self) -> 'str':
122
+ """Gets the run_id of this V1FilesystemApp. # noqa: E501
123
+
124
+
125
+ :return: The run_id of this V1FilesystemApp. # noqa: E501
126
+ :rtype: str
127
+ """
128
+ return self._run_id
129
+
130
+ @run_id.setter
131
+ def run_id(self, run_id: 'str'):
132
+ """Sets the run_id of this V1FilesystemApp.
133
+
134
+
135
+ :param run_id: The run_id of this V1FilesystemApp. # noqa: E501
136
+ :type: str
137
+ """
138
+
139
+ self._run_id = run_id
140
+
141
+ @property
142
+ def type(self) -> 'V1AppType':
143
+ """Gets the type of this V1FilesystemApp. # noqa: E501
144
+
145
+
146
+ :return: The type of this V1FilesystemApp. # noqa: E501
147
+ :rtype: V1AppType
148
+ """
149
+ return self._type
150
+
151
+ @type.setter
152
+ def type(self, type: 'V1AppType'):
153
+ """Sets the type of this V1FilesystemApp.
154
+
155
+
156
+ :param type: The type of this V1FilesystemApp. # noqa: E501
157
+ :type: V1AppType
158
+ """
159
+
160
+ self._type = type
161
+
162
+ @property
163
+ def works(self) -> 'list[V1FilesystemWork]':
164
+ """Gets the works of this V1FilesystemApp. # noqa: E501
165
+
166
+
167
+ :return: The works of this V1FilesystemApp. # noqa: E501
168
+ :rtype: list[V1FilesystemWork]
169
+ """
170
+ return self._works
171
+
172
+ @works.setter
173
+ def works(self, works: 'list[V1FilesystemWork]'):
174
+ """Sets the works of this V1FilesystemApp.
175
+
176
+
177
+ :param works: The works of this V1FilesystemApp. # noqa: E501
178
+ :type: list[V1FilesystemWork]
179
+ """
180
+
181
+ self._works = works
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(V1FilesystemApp, 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: 'V1FilesystemApp') -> bool:
219
+ """Returns true if both objects are equal"""
220
+ if not isinstance(other, V1FilesystemApp):
221
+ return False
222
+
223
+ return self.__dict__ == other.__dict__
224
+
225
+ def __ne__(self, other: 'V1FilesystemApp') -> bool:
226
+ """Returns true if both objects are not equal"""
227
+ return not self == other
@@ -0,0 +1,149 @@
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 V1FilesystemCloudSpace(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
+ 'name': 'str'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'id': 'id',
50
+ 'name': 'name'
51
+ }
52
+
53
+ def __init__(self, id: 'str' =None, name: 'str' =None): # noqa: E501
54
+ """V1FilesystemCloudSpace - a model defined in Swagger""" # noqa: E501
55
+ self._id = None
56
+ self._name = None
57
+ self.discriminator = None
58
+ if id is not None:
59
+ self.id = id
60
+ if name is not None:
61
+ self.name = name
62
+
63
+ @property
64
+ def id(self) -> 'str':
65
+ """Gets the id of this V1FilesystemCloudSpace. # noqa: E501
66
+
67
+
68
+ :return: The id of this V1FilesystemCloudSpace. # noqa: E501
69
+ :rtype: str
70
+ """
71
+ return self._id
72
+
73
+ @id.setter
74
+ def id(self, id: 'str'):
75
+ """Sets the id of this V1FilesystemCloudSpace.
76
+
77
+
78
+ :param id: The id of this V1FilesystemCloudSpace. # noqa: E501
79
+ :type: str
80
+ """
81
+
82
+ self._id = id
83
+
84
+ @property
85
+ def name(self) -> 'str':
86
+ """Gets the name of this V1FilesystemCloudSpace. # noqa: E501
87
+
88
+
89
+ :return: The name of this V1FilesystemCloudSpace. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._name
93
+
94
+ @name.setter
95
+ def name(self, name: 'str'):
96
+ """Sets the name of this V1FilesystemCloudSpace.
97
+
98
+
99
+ :param name: The name of this V1FilesystemCloudSpace. # noqa: E501
100
+ :type: str
101
+ """
102
+
103
+ self._name = name
104
+
105
+ def to_dict(self) -> dict:
106
+ """Returns the model properties as a dict"""
107
+ result = {}
108
+
109
+ for attr, _ in six.iteritems(self.swagger_types):
110
+ value = getattr(self, attr)
111
+ if isinstance(value, list):
112
+ result[attr] = list(map(
113
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
114
+ value
115
+ ))
116
+ elif hasattr(value, "to_dict"):
117
+ result[attr] = value.to_dict()
118
+ elif isinstance(value, dict):
119
+ result[attr] = dict(map(
120
+ lambda item: (item[0], item[1].to_dict())
121
+ if hasattr(item[1], "to_dict") else item,
122
+ value.items()
123
+ ))
124
+ else:
125
+ result[attr] = value
126
+ if issubclass(V1FilesystemCloudSpace, dict):
127
+ for key, value in self.items():
128
+ result[key] = value
129
+
130
+ return result
131
+
132
+ def to_str(self) -> str:
133
+ """Returns the string representation of the model"""
134
+ return pprint.pformat(self.to_dict())
135
+
136
+ def __repr__(self) -> str:
137
+ """For `print` and `pprint`"""
138
+ return self.to_str()
139
+
140
+ def __eq__(self, other: 'V1FilesystemCloudSpace') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, V1FilesystemCloudSpace):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'V1FilesystemCloudSpace') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ 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 V1FilesystemDataset(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
+ 'storage_dir': 'str'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'storage_dir': 'storageDir'
49
+ }
50
+
51
+ def __init__(self, storage_dir: 'str' =None): # noqa: E501
52
+ """V1FilesystemDataset - a model defined in Swagger""" # noqa: E501
53
+ self._storage_dir = None
54
+ self.discriminator = None
55
+ if storage_dir is not None:
56
+ self.storage_dir = storage_dir
57
+
58
+ @property
59
+ def storage_dir(self) -> 'str':
60
+ """Gets the storage_dir of this V1FilesystemDataset. # noqa: E501
61
+
62
+
63
+ :return: The storage_dir of this V1FilesystemDataset. # noqa: E501
64
+ :rtype: str
65
+ """
66
+ return self._storage_dir
67
+
68
+ @storage_dir.setter
69
+ def storage_dir(self, storage_dir: 'str'):
70
+ """Sets the storage_dir of this V1FilesystemDataset.
71
+
72
+
73
+ :param storage_dir: The storage_dir of this V1FilesystemDataset. # noqa: E501
74
+ :type: str
75
+ """
76
+
77
+ self._storage_dir = storage_dir
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(V1FilesystemDataset, 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: 'V1FilesystemDataset') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1FilesystemDataset):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1FilesystemDataset') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other