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.
Files changed (65) 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/user_api.py +8 -2
  6. lightning_sdk/cli/upload.py +10 -6
  7. lightning_sdk/lightning_cloud/openapi/__init__.py +26 -0
  8. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  9. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +101 -0
  10. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
  11. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +396 -0
  12. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +1 -0
  13. lightning_sdk/lightning_cloud/openapi/models/__init__.py +25 -0
  14. lightning_sdk/lightning_cloud/openapi/models/create.py +79 -1
  15. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +79 -1
  16. lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
  17. lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
  18. lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +79 -1
  19. lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
  20. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  21. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +79 -1
  22. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
  23. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
  24. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
  25. lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +175 -0
  26. lightning_sdk/lightning_cloud/openapi/models/v1_delete_shared_metrics_stream_response.py +97 -0
  27. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +123 -0
  28. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +79 -1
  29. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +69 -17
  30. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +1 -0
  31. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +27 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_efs_folder_data_connection.py +201 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_app.py +227 -0
  34. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
  42. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -1
  44. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
  45. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_model.py +6 -6
  52. lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +53 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
  55. lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +81 -3
  58. lightning_sdk/lightning_cloud/openapi/models/validate.py +81 -3
  59. lightning_sdk/lightning_cloud/rest_client.py +2 -0
  60. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/METADATA +1 -1
  61. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/RECORD +65 -37
  62. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/LICENSE +0 -0
  63. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/WHEEL +0 -0
  64. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/entry_points.txt +0 -0
  65. {lightning_sdk-0.1.31.dist-info → lightning_sdk-0.1.32.dist-info}/top_level.txt +0 -0
@@ -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
@@ -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 V1FilesystemJob(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
+ }
48
+
49
+ attribute_map = {
50
+ 'id': 'id',
51
+ 'name': 'name',
52
+ 'run_id': 'runId'
53
+ }
54
+
55
+ def __init__(self, id: 'str' =None, name: 'str' =None, run_id: 'str' =None): # noqa: E501
56
+ """V1FilesystemJob - a model defined in Swagger""" # noqa: E501
57
+ self._id = None
58
+ self._name = None
59
+ self._run_id = None
60
+ self.discriminator = None
61
+ if id is not None:
62
+ self.id = id
63
+ if name is not None:
64
+ self.name = name
65
+ if run_id is not None:
66
+ self.run_id = run_id
67
+
68
+ @property
69
+ def id(self) -> 'str':
70
+ """Gets the id of this V1FilesystemJob. # noqa: E501
71
+
72
+
73
+ :return: The id of this V1FilesystemJob. # noqa: E501
74
+ :rtype: str
75
+ """
76
+ return self._id
77
+
78
+ @id.setter
79
+ def id(self, id: 'str'):
80
+ """Sets the id of this V1FilesystemJob.
81
+
82
+
83
+ :param id: The id of this V1FilesystemJob. # noqa: E501
84
+ :type: str
85
+ """
86
+
87
+ self._id = id
88
+
89
+ @property
90
+ def name(self) -> 'str':
91
+ """Gets the name of this V1FilesystemJob. # noqa: E501
92
+
93
+
94
+ :return: The name of this V1FilesystemJob. # noqa: E501
95
+ :rtype: str
96
+ """
97
+ return self._name
98
+
99
+ @name.setter
100
+ def name(self, name: 'str'):
101
+ """Sets the name of this V1FilesystemJob.
102
+
103
+
104
+ :param name: The name of this V1FilesystemJob. # noqa: E501
105
+ :type: str
106
+ """
107
+
108
+ self._name = name
109
+
110
+ @property
111
+ def run_id(self) -> 'str':
112
+ """Gets the run_id of this V1FilesystemJob. # noqa: E501
113
+
114
+
115
+ :return: The run_id of this V1FilesystemJob. # noqa: E501
116
+ :rtype: str
117
+ """
118
+ return self._run_id
119
+
120
+ @run_id.setter
121
+ def run_id(self, run_id: 'str'):
122
+ """Sets the run_id of this V1FilesystemJob.
123
+
124
+
125
+ :param run_id: The run_id of this V1FilesystemJob. # noqa: E501
126
+ :type: str
127
+ """
128
+
129
+ self._run_id = run_id
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(V1FilesystemJob, 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: 'V1FilesystemJob') -> bool:
167
+ """Returns true if both objects are equal"""
168
+ if not isinstance(other, V1FilesystemJob):
169
+ return False
170
+
171
+ return self.__dict__ == other.__dict__
172
+
173
+ def __ne__(self, other: 'V1FilesystemJob') -> bool:
174
+ """Returns true if both objects are not equal"""
175
+ return not self == other