lightning-sdk 0.2.3__py3-none-any.whl → 0.2.5__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 (110) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/ai_hub.py +10 -17
  3. lightning_sdk/api/ai_hub_api.py +20 -3
  4. lightning_sdk/api/studio_api.py +0 -8
  5. lightning_sdk/cli/serve.py +139 -22
  6. lightning_sdk/deployment/deployment.py +32 -4
  7. lightning_sdk/lightning_cloud/openapi/__init__.py +49 -1
  8. lightning_sdk/lightning_cloud/openapi/api/__init__.py +4 -0
  9. lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +537 -0
  10. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +10 -6
  11. lightning_sdk/lightning_cloud/openapi/api/lit_dataset_service_api.py +1973 -0
  12. lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +5 -1
  13. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +20 -20
  14. lightning_sdk/lightning_cloud/openapi/api/pipeline_templates_service_api.py +339 -0
  15. lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +5 -1
  16. lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +573 -0
  17. lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +202 -0
  18. lightning_sdk/lightning_cloud/openapi/models/__init__.py +45 -1
  19. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
  20. lightning_sdk/lightning_cloud/openapi/models/cluster_id_slurmusers_body.py +201 -0
  21. lightning_sdk/lightning_cloud/openapi/models/dataset_id_versions_body.py +149 -0
  22. lightning_sdk/lightning_cloud/openapi/models/dataset_id_visibility_body.py +149 -0
  23. lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +227 -0
  24. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +69 -69
  25. lightning_sdk/lightning_cloud/openapi/models/litdatasets_dataset_id_body.py +149 -0
  26. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +69 -17
  28. lightning_sdk/lightning_cloud/openapi/models/pipelinetemplates_id_body.py +331 -0
  29. lightning_sdk/lightning_cloud/openapi/models/project_id_litdatasets_body.py +227 -0
  30. lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +17 -17
  31. lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +201 -0
  32. lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +383 -0
  33. lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +15 -15
  34. lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body1.py +149 -0
  35. lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body1.py +149 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +124 -20
  37. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +2 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  40. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +253 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_multi_part_upload_response.py +97 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_upload_response.py +97 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +149 -0
  45. lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_dataset_multi_part_upload_response.py +123 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +27 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_create_pipeline_template_request.py +383 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
  49. lightning_sdk/lightning_cloud/openapi/models/{v1_pipeline_schedule.py → v1_delete_cloud_space_environment_template_response.py} +32 -32
  50. lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_response.py +97 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_version_response.py +97 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_delete_schedule_response.py +175 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_size_response.py +79 -1
  54. lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_file_upload_urls_response.py +123 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_files_url_response.py +149 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +79 -27
  58. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  59. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_environment_templates_response.py +123 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_dataset_versions_response.py +123 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_datasets_response.py +123 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_list_schedules_response.py +123 -0
  63. lightning_sdk/lightning_cloud/openapi/models/v1_list_slurm_cluster_users_response.py +123 -0
  64. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset.py +539 -0
  65. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_file.py +175 -0
  66. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_version_archive.py +435 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +27 -1
  68. lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
  70. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +107 -3
  71. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
  72. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +69 -17
  73. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter.py +435 -0
  74. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement.py +149 -0
  75. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement_type.py +106 -0
  76. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_type.py +106 -0
  77. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template.py +513 -0
  78. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template_visibility_type.py +105 -0
  79. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
  80. lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +435 -0
  81. lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +103 -0
  82. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_cluster_user.py +227 -0
  83. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +58 -6
  84. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +31 -291
  85. lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_dataset_visibility_response.py +123 -0
  86. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  87. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -105
  88. lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +27 -1
  89. lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +203 -0
  90. lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +29 -29
  91. lightning_sdk/lightning_cloud/openapi/models/version_default_body1.py +149 -0
  92. lightning_sdk/lightning_cloud/openapi/models/version_uploads_body1.py +123 -0
  93. lightning_sdk/lightning_cloud/openapi/models/versions_version_body1.py +123 -0
  94. lightning_sdk/lightning_cloud/rest_client.py +2 -0
  95. lightning_sdk/lit_container.py +8 -1
  96. lightning_sdk/mmt/mmt.py +1 -18
  97. lightning_sdk/mmt/v1.py +1 -28
  98. lightning_sdk/models.py +15 -6
  99. lightning_sdk/pipeline/pipeline.py +2 -2
  100. lightning_sdk/pipeline/types.py +28 -2
  101. lightning_sdk/pipeline/utils.py +1 -1
  102. lightning_sdk/plugin.py +0 -6
  103. lightning_sdk/serve.py +55 -22
  104. lightning_sdk/utils/resolve.py +1 -0
  105. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/METADATA +1 -1
  106. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/RECORD +110 -62
  107. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/WHEEL +1 -1
  108. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/LICENSE +0 -0
  109. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/entry_points.txt +0 -0
  110. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/top_level.txt +0 -0
@@ -45,10 +45,12 @@ class PipelinesIdBody(object):
45
45
  'created_at': 'datetime',
46
46
  'display_name': 'str',
47
47
  'error': 'str',
48
+ 'is_published': 'bool',
48
49
  'message': 'str',
49
50
  'name': 'str',
51
+ 'parameters': 'list[V1PipelineParameter]',
50
52
  'parent_pipeline_id': 'str',
51
- 'schedules': 'list[V1PipelineSchedule]',
53
+ 'schedule_id': 'str',
52
54
  'shared_filesystem': 'V1SharedFilesystem',
53
55
  'state': 'str',
54
56
  'statuses': 'list[V1PipelineStepStatus]',
@@ -62,10 +64,12 @@ class PipelinesIdBody(object):
62
64
  'created_at': 'createdAt',
63
65
  'display_name': 'displayName',
64
66
  'error': 'error',
67
+ 'is_published': 'isPublished',
65
68
  'message': 'message',
66
69
  'name': 'name',
70
+ 'parameters': 'parameters',
67
71
  'parent_pipeline_id': 'parentPipelineId',
68
- 'schedules': 'schedules',
72
+ 'schedule_id': 'scheduleId',
69
73
  'shared_filesystem': 'sharedFilesystem',
70
74
  'state': 'state',
71
75
  'statuses': 'statuses',
@@ -74,16 +78,18 @@ class PipelinesIdBody(object):
74
78
  'user_id': 'userId'
75
79
  }
76
80
 
77
- def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, display_name: 'str' =None, error: 'str' =None, message: 'str' =None, name: 'str' =None, parent_pipeline_id: 'str' =None, schedules: 'list[V1PipelineSchedule]' =None, shared_filesystem: 'V1SharedFilesystem' =None, state: 'str' =None, statuses: 'list[V1PipelineStepStatus]' =None, steps: 'list[V1PipelineStep]' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
81
+ def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, display_name: 'str' =None, error: 'str' =None, is_published: 'bool' =None, message: 'str' =None, name: 'str' =None, parameters: 'list[V1PipelineParameter]' =None, parent_pipeline_id: 'str' =None, schedule_id: 'str' =None, shared_filesystem: 'V1SharedFilesystem' =None, state: 'str' =None, statuses: 'list[V1PipelineStepStatus]' =None, steps: 'list[V1PipelineStep]' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
78
82
  """PipelinesIdBody - a model defined in Swagger""" # noqa: E501
79
83
  self._cluster_id = None
80
84
  self._created_at = None
81
85
  self._display_name = None
82
86
  self._error = None
87
+ self._is_published = None
83
88
  self._message = None
84
89
  self._name = None
90
+ self._parameters = None
85
91
  self._parent_pipeline_id = None
86
- self._schedules = None
92
+ self._schedule_id = None
87
93
  self._shared_filesystem = None
88
94
  self._state = None
89
95
  self._statuses = None
@@ -99,14 +105,18 @@ class PipelinesIdBody(object):
99
105
  self.display_name = display_name
100
106
  if error is not None:
101
107
  self.error = error
108
+ if is_published is not None:
109
+ self.is_published = is_published
102
110
  if message is not None:
103
111
  self.message = message
104
112
  if name is not None:
105
113
  self.name = name
114
+ if parameters is not None:
115
+ self.parameters = parameters
106
116
  if parent_pipeline_id is not None:
107
117
  self.parent_pipeline_id = parent_pipeline_id
108
- if schedules is not None:
109
- self.schedules = schedules
118
+ if schedule_id is not None:
119
+ self.schedule_id = schedule_id
110
120
  if shared_filesystem is not None:
111
121
  self.shared_filesystem = shared_filesystem
112
122
  if state is not None:
@@ -204,6 +214,27 @@ class PipelinesIdBody(object):
204
214
 
205
215
  self._error = error
206
216
 
217
+ @property
218
+ def is_published(self) -> 'bool':
219
+ """Gets the is_published of this PipelinesIdBody. # noqa: E501
220
+
221
+
222
+ :return: The is_published of this PipelinesIdBody. # noqa: E501
223
+ :rtype: bool
224
+ """
225
+ return self._is_published
226
+
227
+ @is_published.setter
228
+ def is_published(self, is_published: 'bool'):
229
+ """Sets the is_published of this PipelinesIdBody.
230
+
231
+
232
+ :param is_published: The is_published of this PipelinesIdBody. # noqa: E501
233
+ :type: bool
234
+ """
235
+
236
+ self._is_published = is_published
237
+
207
238
  @property
208
239
  def message(self) -> 'str':
209
240
  """Gets the message of this PipelinesIdBody. # noqa: E501
@@ -246,6 +277,27 @@ class PipelinesIdBody(object):
246
277
 
247
278
  self._name = name
248
279
 
280
+ @property
281
+ def parameters(self) -> 'list[V1PipelineParameter]':
282
+ """Gets the parameters of this PipelinesIdBody. # noqa: E501
283
+
284
+
285
+ :return: The parameters of this PipelinesIdBody. # noqa: E501
286
+ :rtype: list[V1PipelineParameter]
287
+ """
288
+ return self._parameters
289
+
290
+ @parameters.setter
291
+ def parameters(self, parameters: 'list[V1PipelineParameter]'):
292
+ """Sets the parameters of this PipelinesIdBody.
293
+
294
+
295
+ :param parameters: The parameters of this PipelinesIdBody. # noqa: E501
296
+ :type: list[V1PipelineParameter]
297
+ """
298
+
299
+ self._parameters = parameters
300
+
249
301
  @property
250
302
  def parent_pipeline_id(self) -> 'str':
251
303
  """Gets the parent_pipeline_id of this PipelinesIdBody. # noqa: E501
@@ -268,25 +320,25 @@ class PipelinesIdBody(object):
268
320
  self._parent_pipeline_id = parent_pipeline_id
269
321
 
270
322
  @property
271
- def schedules(self) -> 'list[V1PipelineSchedule]':
272
- """Gets the schedules of this PipelinesIdBody. # noqa: E501
323
+ def schedule_id(self) -> 'str':
324
+ """Gets the schedule_id of this PipelinesIdBody. # noqa: E501
273
325
 
274
326
 
275
- :return: The schedules of this PipelinesIdBody. # noqa: E501
276
- :rtype: list[V1PipelineSchedule]
327
+ :return: The schedule_id of this PipelinesIdBody. # noqa: E501
328
+ :rtype: str
277
329
  """
278
- return self._schedules
330
+ return self._schedule_id
279
331
 
280
- @schedules.setter
281
- def schedules(self, schedules: 'list[V1PipelineSchedule]'):
282
- """Sets the schedules of this PipelinesIdBody.
332
+ @schedule_id.setter
333
+ def schedule_id(self, schedule_id: 'str'):
334
+ """Sets the schedule_id of this PipelinesIdBody.
283
335
 
284
336
 
285
- :param schedules: The schedules of this PipelinesIdBody. # noqa: E501
286
- :type: list[V1PipelineSchedule]
337
+ :param schedule_id: The schedule_id of this PipelinesIdBody. # noqa: E501
338
+ :type: str
287
339
  """
288
340
 
289
- self._schedules = schedules
341
+ self._schedule_id = schedule_id
290
342
 
291
343
  @property
292
344
  def shared_filesystem(self) -> 'V1SharedFilesystem':
@@ -0,0 +1,331 @@
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 PipelinetemplatesIdBody(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
+ 'about_page_content': 'str',
45
+ 'description': 'str',
46
+ 'featured': 'bool',
47
+ 'image_url': 'str',
48
+ 'name': 'str',
49
+ 'org_id': 'str',
50
+ 'thumbnail': 'str',
51
+ 'thumbnail_file_type': 'str',
52
+ 'visibility': 'V1PipelineTemplateVisibilityType'
53
+ }
54
+
55
+ attribute_map = {
56
+ 'about_page_content': 'aboutPageContent',
57
+ 'description': 'description',
58
+ 'featured': 'featured',
59
+ 'image_url': 'imageUrl',
60
+ 'name': 'name',
61
+ 'org_id': 'orgId',
62
+ 'thumbnail': 'thumbnail',
63
+ 'thumbnail_file_type': 'thumbnailFileType',
64
+ 'visibility': 'visibility'
65
+ }
66
+
67
+ def __init__(self, about_page_content: 'str' =None, description: 'str' =None, featured: 'bool' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, thumbnail: 'str' =None, thumbnail_file_type: 'str' =None, visibility: 'V1PipelineTemplateVisibilityType' =None): # noqa: E501
68
+ """PipelinetemplatesIdBody - a model defined in Swagger""" # noqa: E501
69
+ self._about_page_content = None
70
+ self._description = None
71
+ self._featured = None
72
+ self._image_url = None
73
+ self._name = None
74
+ self._org_id = None
75
+ self._thumbnail = None
76
+ self._thumbnail_file_type = None
77
+ self._visibility = None
78
+ self.discriminator = None
79
+ if about_page_content is not None:
80
+ self.about_page_content = about_page_content
81
+ if description is not None:
82
+ self.description = description
83
+ if featured is not None:
84
+ self.featured = featured
85
+ if image_url is not None:
86
+ self.image_url = image_url
87
+ if name is not None:
88
+ self.name = name
89
+ if org_id is not None:
90
+ self.org_id = org_id
91
+ if thumbnail is not None:
92
+ self.thumbnail = thumbnail
93
+ if thumbnail_file_type is not None:
94
+ self.thumbnail_file_type = thumbnail_file_type
95
+ if visibility is not None:
96
+ self.visibility = visibility
97
+
98
+ @property
99
+ def about_page_content(self) -> 'str':
100
+ """Gets the about_page_content of this PipelinetemplatesIdBody. # noqa: E501
101
+
102
+
103
+ :return: The about_page_content of this PipelinetemplatesIdBody. # noqa: E501
104
+ :rtype: str
105
+ """
106
+ return self._about_page_content
107
+
108
+ @about_page_content.setter
109
+ def about_page_content(self, about_page_content: 'str'):
110
+ """Sets the about_page_content of this PipelinetemplatesIdBody.
111
+
112
+
113
+ :param about_page_content: The about_page_content of this PipelinetemplatesIdBody. # noqa: E501
114
+ :type: str
115
+ """
116
+
117
+ self._about_page_content = about_page_content
118
+
119
+ @property
120
+ def description(self) -> 'str':
121
+ """Gets the description of this PipelinetemplatesIdBody. # noqa: E501
122
+
123
+
124
+ :return: The description of this PipelinetemplatesIdBody. # noqa: E501
125
+ :rtype: str
126
+ """
127
+ return self._description
128
+
129
+ @description.setter
130
+ def description(self, description: 'str'):
131
+ """Sets the description of this PipelinetemplatesIdBody.
132
+
133
+
134
+ :param description: The description of this PipelinetemplatesIdBody. # noqa: E501
135
+ :type: str
136
+ """
137
+
138
+ self._description = description
139
+
140
+ @property
141
+ def featured(self) -> 'bool':
142
+ """Gets the featured of this PipelinetemplatesIdBody. # noqa: E501
143
+
144
+
145
+ :return: The featured of this PipelinetemplatesIdBody. # noqa: E501
146
+ :rtype: bool
147
+ """
148
+ return self._featured
149
+
150
+ @featured.setter
151
+ def featured(self, featured: 'bool'):
152
+ """Sets the featured of this PipelinetemplatesIdBody.
153
+
154
+
155
+ :param featured: The featured of this PipelinetemplatesIdBody. # noqa: E501
156
+ :type: bool
157
+ """
158
+
159
+ self._featured = featured
160
+
161
+ @property
162
+ def image_url(self) -> 'str':
163
+ """Gets the image_url of this PipelinetemplatesIdBody. # noqa: E501
164
+
165
+
166
+ :return: The image_url of this PipelinetemplatesIdBody. # noqa: E501
167
+ :rtype: str
168
+ """
169
+ return self._image_url
170
+
171
+ @image_url.setter
172
+ def image_url(self, image_url: 'str'):
173
+ """Sets the image_url of this PipelinetemplatesIdBody.
174
+
175
+
176
+ :param image_url: The image_url of this PipelinetemplatesIdBody. # noqa: E501
177
+ :type: str
178
+ """
179
+
180
+ self._image_url = image_url
181
+
182
+ @property
183
+ def name(self) -> 'str':
184
+ """Gets the name of this PipelinetemplatesIdBody. # noqa: E501
185
+
186
+
187
+ :return: The name of this PipelinetemplatesIdBody. # noqa: E501
188
+ :rtype: str
189
+ """
190
+ return self._name
191
+
192
+ @name.setter
193
+ def name(self, name: 'str'):
194
+ """Sets the name of this PipelinetemplatesIdBody.
195
+
196
+
197
+ :param name: The name of this PipelinetemplatesIdBody. # noqa: E501
198
+ :type: str
199
+ """
200
+
201
+ self._name = name
202
+
203
+ @property
204
+ def org_id(self) -> 'str':
205
+ """Gets the org_id of this PipelinetemplatesIdBody. # noqa: E501
206
+
207
+
208
+ :return: The org_id of this PipelinetemplatesIdBody. # noqa: E501
209
+ :rtype: str
210
+ """
211
+ return self._org_id
212
+
213
+ @org_id.setter
214
+ def org_id(self, org_id: 'str'):
215
+ """Sets the org_id of this PipelinetemplatesIdBody.
216
+
217
+
218
+ :param org_id: The org_id of this PipelinetemplatesIdBody. # noqa: E501
219
+ :type: str
220
+ """
221
+
222
+ self._org_id = org_id
223
+
224
+ @property
225
+ def thumbnail(self) -> 'str':
226
+ """Gets the thumbnail of this PipelinetemplatesIdBody. # noqa: E501
227
+
228
+
229
+ :return: The thumbnail of this PipelinetemplatesIdBody. # noqa: E501
230
+ :rtype: str
231
+ """
232
+ return self._thumbnail
233
+
234
+ @thumbnail.setter
235
+ def thumbnail(self, thumbnail: 'str'):
236
+ """Sets the thumbnail of this PipelinetemplatesIdBody.
237
+
238
+
239
+ :param thumbnail: The thumbnail of this PipelinetemplatesIdBody. # noqa: E501
240
+ :type: str
241
+ """
242
+
243
+ self._thumbnail = thumbnail
244
+
245
+ @property
246
+ def thumbnail_file_type(self) -> 'str':
247
+ """Gets the thumbnail_file_type of this PipelinetemplatesIdBody. # noqa: E501
248
+
249
+
250
+ :return: The thumbnail_file_type of this PipelinetemplatesIdBody. # noqa: E501
251
+ :rtype: str
252
+ """
253
+ return self._thumbnail_file_type
254
+
255
+ @thumbnail_file_type.setter
256
+ def thumbnail_file_type(self, thumbnail_file_type: 'str'):
257
+ """Sets the thumbnail_file_type of this PipelinetemplatesIdBody.
258
+
259
+
260
+ :param thumbnail_file_type: The thumbnail_file_type of this PipelinetemplatesIdBody. # noqa: E501
261
+ :type: str
262
+ """
263
+
264
+ self._thumbnail_file_type = thumbnail_file_type
265
+
266
+ @property
267
+ def visibility(self) -> 'V1PipelineTemplateVisibilityType':
268
+ """Gets the visibility of this PipelinetemplatesIdBody. # noqa: E501
269
+
270
+
271
+ :return: The visibility of this PipelinetemplatesIdBody. # noqa: E501
272
+ :rtype: V1PipelineTemplateVisibilityType
273
+ """
274
+ return self._visibility
275
+
276
+ @visibility.setter
277
+ def visibility(self, visibility: 'V1PipelineTemplateVisibilityType'):
278
+ """Sets the visibility of this PipelinetemplatesIdBody.
279
+
280
+
281
+ :param visibility: The visibility of this PipelinetemplatesIdBody. # noqa: E501
282
+ :type: V1PipelineTemplateVisibilityType
283
+ """
284
+
285
+ self._visibility = visibility
286
+
287
+ def to_dict(self) -> dict:
288
+ """Returns the model properties as a dict"""
289
+ result = {}
290
+
291
+ for attr, _ in six.iteritems(self.swagger_types):
292
+ value = getattr(self, attr)
293
+ if isinstance(value, list):
294
+ result[attr] = list(map(
295
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
296
+ value
297
+ ))
298
+ elif hasattr(value, "to_dict"):
299
+ result[attr] = value.to_dict()
300
+ elif isinstance(value, dict):
301
+ result[attr] = dict(map(
302
+ lambda item: (item[0], item[1].to_dict())
303
+ if hasattr(item[1], "to_dict") else item,
304
+ value.items()
305
+ ))
306
+ else:
307
+ result[attr] = value
308
+ if issubclass(PipelinetemplatesIdBody, dict):
309
+ for key, value in self.items():
310
+ result[key] = value
311
+
312
+ return result
313
+
314
+ def to_str(self) -> str:
315
+ """Returns the string representation of the model"""
316
+ return pprint.pformat(self.to_dict())
317
+
318
+ def __repr__(self) -> str:
319
+ """For `print` and `pprint`"""
320
+ return self.to_str()
321
+
322
+ def __eq__(self, other: 'PipelinetemplatesIdBody') -> bool:
323
+ """Returns true if both objects are equal"""
324
+ if not isinstance(other, PipelinetemplatesIdBody):
325
+ return False
326
+
327
+ return self.__dict__ == other.__dict__
328
+
329
+ def __ne__(self, other: 'PipelinetemplatesIdBody') -> bool:
330
+ """Returns true if both objects are not equal"""
331
+ return not self == other