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
@@ -51,6 +51,7 @@ class V1DeploymentTemplate(object):
51
51
  'globally_visible': 'bool',
52
52
  'id': 'str',
53
53
  'image_url': 'str',
54
+ 'metrics': 'list[V1DeploymentMetrics]',
54
55
  'name': 'str',
55
56
  'org_id': 'str',
56
57
  'parameter_spec': 'V1ParameterizationSpec',
@@ -58,6 +59,8 @@ class V1DeploymentTemplate(object):
58
59
  'spec': 'V1JobSpec',
59
60
  'spec_v2': 'V1DeploymentSpec',
60
61
  'tags': 'list[V1ResourceTag]',
62
+ 'thumbnail_updated_at': 'datetime',
63
+ 'thumbnail_url': 'str',
61
64
  'unpublished': 'bool',
62
65
  'updated_at': 'datetime',
63
66
  'user_id': 'str'
@@ -74,6 +77,7 @@ class V1DeploymentTemplate(object):
74
77
  'globally_visible': 'globallyVisible',
75
78
  'id': 'id',
76
79
  'image_url': 'imageUrl',
80
+ 'metrics': 'metrics',
77
81
  'name': 'name',
78
82
  'org_id': 'orgId',
79
83
  'parameter_spec': 'parameterSpec',
@@ -81,12 +85,14 @@ class V1DeploymentTemplate(object):
81
85
  'spec': 'spec',
82
86
  'spec_v2': 'specV2',
83
87
  'tags': 'tags',
88
+ 'thumbnail_updated_at': 'thumbnailUpdatedAt',
89
+ 'thumbnail_url': 'thumbnailUrl',
84
90
  'unpublished': 'unpublished',
85
91
  'updated_at': 'updatedAt',
86
92
  'user_id': 'userId'
87
93
  }
88
94
 
89
- def __init__(self, about_page_content: 'str' =None, about_page_id: 'str' =None, categories: 'list[str]' =None, created_at: 'datetime' =None, deployment_id: 'str' =None, description: 'str' =None, featured: 'bool' =None, globally_visible: 'bool' =None, id: 'str' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =None, spec: 'V1JobSpec' =None, spec_v2: 'V1DeploymentSpec' =None, tags: 'list[V1ResourceTag]' =None, unpublished: 'bool' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
95
+ def __init__(self, about_page_content: 'str' =None, about_page_id: 'str' =None, categories: 'list[str]' =None, created_at: 'datetime' =None, deployment_id: 'str' =None, description: 'str' =None, featured: 'bool' =None, globally_visible: 'bool' =None, id: 'str' =None, image_url: 'str' =None, metrics: 'list[V1DeploymentMetrics]' =None, name: 'str' =None, org_id: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =None, spec: 'V1JobSpec' =None, spec_v2: 'V1DeploymentSpec' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, unpublished: 'bool' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
90
96
  """V1DeploymentTemplate - a model defined in Swagger""" # noqa: E501
91
97
  self._about_page_content = None
92
98
  self._about_page_id = None
@@ -98,6 +104,7 @@ class V1DeploymentTemplate(object):
98
104
  self._globally_visible = None
99
105
  self._id = None
100
106
  self._image_url = None
107
+ self._metrics = None
101
108
  self._name = None
102
109
  self._org_id = None
103
110
  self._parameter_spec = None
@@ -105,6 +112,8 @@ class V1DeploymentTemplate(object):
105
112
  self._spec = None
106
113
  self._spec_v2 = None
107
114
  self._tags = None
115
+ self._thumbnail_updated_at = None
116
+ self._thumbnail_url = None
108
117
  self._unpublished = None
109
118
  self._updated_at = None
110
119
  self._user_id = None
@@ -129,6 +138,8 @@ class V1DeploymentTemplate(object):
129
138
  self.id = id
130
139
  if image_url is not None:
131
140
  self.image_url = image_url
141
+ if metrics is not None:
142
+ self.metrics = metrics
132
143
  if name is not None:
133
144
  self.name = name
134
145
  if org_id is not None:
@@ -143,6 +154,10 @@ class V1DeploymentTemplate(object):
143
154
  self.spec_v2 = spec_v2
144
155
  if tags is not None:
145
156
  self.tags = tags
157
+ if thumbnail_updated_at is not None:
158
+ self.thumbnail_updated_at = thumbnail_updated_at
159
+ if thumbnail_url is not None:
160
+ self.thumbnail_url = thumbnail_url
146
161
  if unpublished is not None:
147
162
  self.unpublished = unpublished
148
163
  if updated_at is not None:
@@ -360,6 +375,27 @@ class V1DeploymentTemplate(object):
360
375
 
361
376
  self._image_url = image_url
362
377
 
378
+ @property
379
+ def metrics(self) -> 'list[V1DeploymentMetrics]':
380
+ """Gets the metrics of this V1DeploymentTemplate. # noqa: E501
381
+
382
+
383
+ :return: The metrics of this V1DeploymentTemplate. # noqa: E501
384
+ :rtype: list[V1DeploymentMetrics]
385
+ """
386
+ return self._metrics
387
+
388
+ @metrics.setter
389
+ def metrics(self, metrics: 'list[V1DeploymentMetrics]'):
390
+ """Sets the metrics of this V1DeploymentTemplate.
391
+
392
+
393
+ :param metrics: The metrics of this V1DeploymentTemplate. # noqa: E501
394
+ :type: list[V1DeploymentMetrics]
395
+ """
396
+
397
+ self._metrics = metrics
398
+
363
399
  @property
364
400
  def name(self) -> 'str':
365
401
  """Gets the name of this V1DeploymentTemplate. # noqa: E501
@@ -507,6 +543,48 @@ class V1DeploymentTemplate(object):
507
543
 
508
544
  self._tags = tags
509
545
 
546
+ @property
547
+ def thumbnail_updated_at(self) -> 'datetime':
548
+ """Gets the thumbnail_updated_at of this V1DeploymentTemplate. # noqa: E501
549
+
550
+
551
+ :return: The thumbnail_updated_at of this V1DeploymentTemplate. # noqa: E501
552
+ :rtype: datetime
553
+ """
554
+ return self._thumbnail_updated_at
555
+
556
+ @thumbnail_updated_at.setter
557
+ def thumbnail_updated_at(self, thumbnail_updated_at: 'datetime'):
558
+ """Sets the thumbnail_updated_at of this V1DeploymentTemplate.
559
+
560
+
561
+ :param thumbnail_updated_at: The thumbnail_updated_at of this V1DeploymentTemplate. # noqa: E501
562
+ :type: datetime
563
+ """
564
+
565
+ self._thumbnail_updated_at = thumbnail_updated_at
566
+
567
+ @property
568
+ def thumbnail_url(self) -> 'str':
569
+ """Gets the thumbnail_url of this V1DeploymentTemplate. # noqa: E501
570
+
571
+
572
+ :return: The thumbnail_url of this V1DeploymentTemplate. # noqa: E501
573
+ :rtype: str
574
+ """
575
+ return self._thumbnail_url
576
+
577
+ @thumbnail_url.setter
578
+ def thumbnail_url(self, thumbnail_url: 'str'):
579
+ """Sets the thumbnail_url of this V1DeploymentTemplate.
580
+
581
+
582
+ :param thumbnail_url: The thumbnail_url of this V1DeploymentTemplate. # noqa: E501
583
+ :type: str
584
+ """
585
+
586
+ self._thumbnail_url = thumbnail_url
587
+
510
588
  @property
511
589
  def unpublished(self) -> 'bool':
512
590
  """Gets the unpublished of this V1DeploymentTemplate. # noqa: E501
@@ -41,10 +41,12 @@ class V1DeploymentTemplateParameter(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'data_path': 'V1DataPath',
45
+ 'display_name': 'str',
44
46
  'input': 'V1Input',
45
47
  'long_description': 'str',
46
48
  'name': 'str',
47
- 'placement': 'V1DeploymentTemplateParameterPlacement',
49
+ 'placements': 'list[V1DeploymentTemplateParameterPlacement]',
48
50
  'readonly': 'bool',
49
51
  'required': 'bool',
50
52
  'select': 'V1Select',
@@ -53,10 +55,12 @@ class V1DeploymentTemplateParameter(object):
53
55
  }
54
56
 
55
57
  attribute_map = {
58
+ 'data_path': 'dataPath',
59
+ 'display_name': 'displayName',
56
60
  'input': 'input',
57
61
  'long_description': 'longDescription',
58
62
  'name': 'name',
59
- 'placement': 'placement',
63
+ 'placements': 'placements',
60
64
  'readonly': 'readonly',
61
65
  'required': 'required',
62
66
  'select': 'select',
@@ -64,26 +68,32 @@ class V1DeploymentTemplateParameter(object):
64
68
  'type': 'type'
65
69
  }
66
70
 
67
- def __init__(self, input: 'V1Input' =None, long_description: 'str' =None, name: 'str' =None, placement: 'V1DeploymentTemplateParameterPlacement' =None, readonly: 'bool' =None, required: 'bool' =None, select: 'V1Select' =None, short_description: 'str' =None, type: 'V1DeploymentTemplateParameterType' =None): # noqa: E501
71
+ def __init__(self, data_path: 'V1DataPath' =None, display_name: 'str' =None, input: 'V1Input' =None, long_description: 'str' =None, name: 'str' =None, placements: 'list[V1DeploymentTemplateParameterPlacement]' =None, readonly: 'bool' =None, required: 'bool' =None, select: 'V1Select' =None, short_description: 'str' =None, type: 'V1DeploymentTemplateParameterType' =None): # noqa: E501
68
72
  """V1DeploymentTemplateParameter - a model defined in Swagger""" # noqa: E501
73
+ self._data_path = None
74
+ self._display_name = None
69
75
  self._input = None
70
76
  self._long_description = None
71
77
  self._name = None
72
- self._placement = None
78
+ self._placements = None
73
79
  self._readonly = None
74
80
  self._required = None
75
81
  self._select = None
76
82
  self._short_description = None
77
83
  self._type = None
78
84
  self.discriminator = None
85
+ if data_path is not None:
86
+ self.data_path = data_path
87
+ if display_name is not None:
88
+ self.display_name = display_name
79
89
  if input is not None:
80
90
  self.input = input
81
91
  if long_description is not None:
82
92
  self.long_description = long_description
83
93
  if name is not None:
84
94
  self.name = name
85
- if placement is not None:
86
- self.placement = placement
95
+ if placements is not None:
96
+ self.placements = placements
87
97
  if readonly is not None:
88
98
  self.readonly = readonly
89
99
  if required is not None:
@@ -95,6 +105,48 @@ class V1DeploymentTemplateParameter(object):
95
105
  if type is not None:
96
106
  self.type = type
97
107
 
108
+ @property
109
+ def data_path(self) -> 'V1DataPath':
110
+ """Gets the data_path of this V1DeploymentTemplateParameter. # noqa: E501
111
+
112
+
113
+ :return: The data_path of this V1DeploymentTemplateParameter. # noqa: E501
114
+ :rtype: V1DataPath
115
+ """
116
+ return self._data_path
117
+
118
+ @data_path.setter
119
+ def data_path(self, data_path: 'V1DataPath'):
120
+ """Sets the data_path of this V1DeploymentTemplateParameter.
121
+
122
+
123
+ :param data_path: The data_path of this V1DeploymentTemplateParameter. # noqa: E501
124
+ :type: V1DataPath
125
+ """
126
+
127
+ self._data_path = data_path
128
+
129
+ @property
130
+ def display_name(self) -> 'str':
131
+ """Gets the display_name of this V1DeploymentTemplateParameter. # noqa: E501
132
+
133
+
134
+ :return: The display_name of this V1DeploymentTemplateParameter. # noqa: E501
135
+ :rtype: str
136
+ """
137
+ return self._display_name
138
+
139
+ @display_name.setter
140
+ def display_name(self, display_name: 'str'):
141
+ """Sets the display_name of this V1DeploymentTemplateParameter.
142
+
143
+
144
+ :param display_name: The display_name of this V1DeploymentTemplateParameter. # noqa: E501
145
+ :type: str
146
+ """
147
+
148
+ self._display_name = display_name
149
+
98
150
  @property
99
151
  def input(self) -> 'V1Input':
100
152
  """Gets the input of this V1DeploymentTemplateParameter. # noqa: E501
@@ -159,25 +211,25 @@ class V1DeploymentTemplateParameter(object):
159
211
  self._name = name
160
212
 
161
213
  @property
162
- def placement(self) -> 'V1DeploymentTemplateParameterPlacement':
163
- """Gets the placement of this V1DeploymentTemplateParameter. # noqa: E501
214
+ def placements(self) -> 'list[V1DeploymentTemplateParameterPlacement]':
215
+ """Gets the placements of this V1DeploymentTemplateParameter. # noqa: E501
164
216
 
165
217
 
166
- :return: The placement of this V1DeploymentTemplateParameter. # noqa: E501
167
- :rtype: V1DeploymentTemplateParameterPlacement
218
+ :return: The placements of this V1DeploymentTemplateParameter. # noqa: E501
219
+ :rtype: list[V1DeploymentTemplateParameterPlacement]
168
220
  """
169
- return self._placement
221
+ return self._placements
170
222
 
171
- @placement.setter
172
- def placement(self, placement: 'V1DeploymentTemplateParameterPlacement'):
173
- """Sets the placement of this V1DeploymentTemplateParameter.
223
+ @placements.setter
224
+ def placements(self, placements: 'list[V1DeploymentTemplateParameterPlacement]'):
225
+ """Sets the placements of this V1DeploymentTemplateParameter.
174
226
 
175
227
 
176
- :param placement: The placement of this V1DeploymentTemplateParameter. # noqa: E501
177
- :type: V1DeploymentTemplateParameterPlacement
228
+ :param placements: The placements of this V1DeploymentTemplateParameter. # noqa: E501
229
+ :type: list[V1DeploymentTemplateParameterPlacement]
178
230
  """
179
231
 
180
- self._placement = placement
232
+ self._placements = placements
181
233
 
182
234
  @property
183
235
  def readonly(self) -> 'bool':
@@ -39,6 +39,7 @@ class V1DeploymentTemplateParameterType(object):
39
39
  """
40
40
  SELECT = "DEPLOYMENT_TEMPLATE_SELECT"
41
41
  INPUT = "DEPLOYMENT_TEMPLATE_INPUT"
42
+ DATA_PATH = "DEPLOYMENT_TEMPLATE_DATA_PATH"
42
43
  """
43
44
  Attributes:
44
45
  swagger_types (dict): The key is attribute name
@@ -54,6 +54,7 @@ class V1DeploymentTemplateSummary(object):
54
54
  'name': 'str',
55
55
  'org_id': 'str',
56
56
  'project_id': 'str',
57
+ 'thumbnail_url': 'str',
57
58
  'unpublished': 'bool',
58
59
  'updated_at': 'datetime',
59
60
  'user_id': 'str',
@@ -74,13 +75,14 @@ class V1DeploymentTemplateSummary(object):
74
75
  'name': 'name',
75
76
  'org_id': 'orgId',
76
77
  'project_id': 'projectId',
78
+ 'thumbnail_url': 'thumbnailUrl',
77
79
  'unpublished': 'unpublished',
78
80
  'updated_at': 'updatedAt',
79
81
  'user_id': 'userId',
80
82
  'version': 'version'
81
83
  }
82
84
 
83
- def __init__(self, about_page_content: 'str' =None, about_page_id: 'str' =None, categories: 'list[str]' =None, created_at: 'datetime' =None, deployment_id: 'str' =None, description: 'str' =None, featured: 'bool' =None, globally_visible: 'bool' =None, id: 'str' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, unpublished: 'bool' =None, updated_at: 'datetime' =None, user_id: 'str' =None, version: 'str' =None): # noqa: E501
85
+ def __init__(self, about_page_content: 'str' =None, about_page_id: 'str' =None, categories: 'list[str]' =None, created_at: 'datetime' =None, deployment_id: 'str' =None, description: 'str' =None, featured: 'bool' =None, globally_visible: 'bool' =None, id: 'str' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, thumbnail_url: 'str' =None, unpublished: 'bool' =None, updated_at: 'datetime' =None, user_id: 'str' =None, version: 'str' =None): # noqa: E501
84
86
  """V1DeploymentTemplateSummary - a model defined in Swagger""" # noqa: E501
85
87
  self._about_page_content = None
86
88
  self._about_page_id = None
@@ -95,6 +97,7 @@ class V1DeploymentTemplateSummary(object):
95
97
  self._name = None
96
98
  self._org_id = None
97
99
  self._project_id = None
100
+ self._thumbnail_url = None
98
101
  self._unpublished = None
99
102
  self._updated_at = None
100
103
  self._user_id = None
@@ -126,6 +129,8 @@ class V1DeploymentTemplateSummary(object):
126
129
  self.org_id = org_id
127
130
  if project_id is not None:
128
131
  self.project_id = project_id
132
+ if thumbnail_url is not None:
133
+ self.thumbnail_url = thumbnail_url
129
134
  if unpublished is not None:
130
135
  self.unpublished = unpublished
131
136
  if updated_at is not None:
@@ -408,6 +413,27 @@ class V1DeploymentTemplateSummary(object):
408
413
 
409
414
  self._project_id = project_id
410
415
 
416
+ @property
417
+ def thumbnail_url(self) -> 'str':
418
+ """Gets the thumbnail_url of this V1DeploymentTemplateSummary. # noqa: E501
419
+
420
+
421
+ :return: The thumbnail_url of this V1DeploymentTemplateSummary. # noqa: E501
422
+ :rtype: str
423
+ """
424
+ return self._thumbnail_url
425
+
426
+ @thumbnail_url.setter
427
+ def thumbnail_url(self, thumbnail_url: 'str'):
428
+ """Sets the thumbnail_url of this V1DeploymentTemplateSummary.
429
+
430
+
431
+ :param thumbnail_url: The thumbnail_url of this V1DeploymentTemplateSummary. # noqa: E501
432
+ :type: str
433
+ """
434
+
435
+ self._thumbnail_url = thumbnail_url
436
+
411
437
  @property
412
438
  def unpublished(self) -> 'bool':
413
439
  """Gets the unpublished of this V1DeploymentTemplateSummary. # noqa: E501
@@ -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