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.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/ai_hub.py +10 -17
- lightning_sdk/api/ai_hub_api.py +20 -3
- lightning_sdk/api/studio_api.py +0 -8
- lightning_sdk/cli/serve.py +139 -22
- lightning_sdk/deployment/deployment.py +32 -4
- lightning_sdk/lightning_cloud/openapi/__init__.py +49 -1
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +4 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +537 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +10 -6
- lightning_sdk/lightning_cloud/openapi/api/lit_dataset_service_api.py +1973 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +20 -20
- lightning_sdk/lightning_cloud/openapi/api/pipeline_templates_service_api.py +339 -0
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +573 -0
- lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +45 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_slurmusers_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_versions_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_visibility_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +69 -69
- lightning_sdk/lightning_cloud/openapi/models/litdatasets_dataset_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/pipelinetemplates_id_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_litdatasets_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +17 -17
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +124 -20
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_multi_part_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_dataset_multi_part_upload_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_pipeline_template_request.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_pipeline_schedule.py → v1_delete_cloud_space_environment_template_response.py} +32 -32
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_version_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_schedule_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_size_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_file_upload_urls_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_files_url_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +79 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_environment_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_dataset_versions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_datasets_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_schedules_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_slurm_cluster_users_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_file.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_version_archive.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template_visibility_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_cluster_user.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +58 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +31 -291
- lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_dataset_visibility_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -105
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +203 -0
- lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +29 -29
- lightning_sdk/lightning_cloud/openapi/models/version_default_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/version_uploads_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/versions_version_body1.py +123 -0
- lightning_sdk/lightning_cloud/rest_client.py +2 -0
- lightning_sdk/lit_container.py +8 -1
- lightning_sdk/mmt/mmt.py +1 -18
- lightning_sdk/mmt/v1.py +1 -28
- lightning_sdk/models.py +15 -6
- lightning_sdk/pipeline/pipeline.py +2 -2
- lightning_sdk/pipeline/types.py +28 -2
- lightning_sdk/pipeline/utils.py +1 -1
- lightning_sdk/plugin.py +0 -6
- lightning_sdk/serve.py +55 -22
- lightning_sdk/utils/resolve.py +1 -0
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/RECORD +110 -62
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/WHEEL +1 -1
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,106 @@
|
|
|
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 V1PipelineParameterType(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
|
+
"""
|
|
38
|
+
allowed enum values
|
|
39
|
+
"""
|
|
40
|
+
SELECT = "SELECT"
|
|
41
|
+
INPUT = "INPUT"
|
|
42
|
+
DATA_PATH = "DATA_PATH"
|
|
43
|
+
CHECKBOX = "CHECKBOX"
|
|
44
|
+
MACHINES_SELECTOR = "MACHINES_SELECTOR"
|
|
45
|
+
"""
|
|
46
|
+
Attributes:
|
|
47
|
+
swagger_types (dict): The key is attribute name
|
|
48
|
+
and the value is attribute type.
|
|
49
|
+
attribute_map (dict): The key is attribute name
|
|
50
|
+
and the value is json key in definition.
|
|
51
|
+
"""
|
|
52
|
+
swagger_types = {
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
attribute_map = {
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
def __init__(self): # noqa: E501
|
|
59
|
+
"""V1PipelineParameterType - a model defined in Swagger""" # noqa: E501
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
|
|
62
|
+
def to_dict(self) -> dict:
|
|
63
|
+
"""Returns the model properties as a dict"""
|
|
64
|
+
result = {}
|
|
65
|
+
|
|
66
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
67
|
+
value = getattr(self, attr)
|
|
68
|
+
if isinstance(value, list):
|
|
69
|
+
result[attr] = list(map(
|
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
71
|
+
value
|
|
72
|
+
))
|
|
73
|
+
elif hasattr(value, "to_dict"):
|
|
74
|
+
result[attr] = value.to_dict()
|
|
75
|
+
elif isinstance(value, dict):
|
|
76
|
+
result[attr] = dict(map(
|
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
|
79
|
+
value.items()
|
|
80
|
+
))
|
|
81
|
+
else:
|
|
82
|
+
result[attr] = value
|
|
83
|
+
if issubclass(V1PipelineParameterType, dict):
|
|
84
|
+
for key, value in self.items():
|
|
85
|
+
result[key] = value
|
|
86
|
+
|
|
87
|
+
return result
|
|
88
|
+
|
|
89
|
+
def to_str(self) -> str:
|
|
90
|
+
"""Returns the string representation of the model"""
|
|
91
|
+
return pprint.pformat(self.to_dict())
|
|
92
|
+
|
|
93
|
+
def __repr__(self) -> str:
|
|
94
|
+
"""For `print` and `pprint`"""
|
|
95
|
+
return self.to_str()
|
|
96
|
+
|
|
97
|
+
def __eq__(self, other: 'V1PipelineParameterType') -> bool:
|
|
98
|
+
"""Returns true if both objects are equal"""
|
|
99
|
+
if not isinstance(other, V1PipelineParameterType):
|
|
100
|
+
return False
|
|
101
|
+
|
|
102
|
+
return self.__dict__ == other.__dict__
|
|
103
|
+
|
|
104
|
+
def __ne__(self, other: 'V1PipelineParameterType') -> bool:
|
|
105
|
+
"""Returns true if both objects are not equal"""
|
|
106
|
+
return not self == other
|
|
@@ -0,0 +1,513 @@
|
|
|
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 V1PipelineTemplate(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
|
+
'about_page_id': 'str',
|
|
46
|
+
'created_at': 'datetime',
|
|
47
|
+
'description': 'str',
|
|
48
|
+
'featured': 'bool',
|
|
49
|
+
'id': 'str',
|
|
50
|
+
'image_url': 'str',
|
|
51
|
+
'name': 'str',
|
|
52
|
+
'org_id': 'str',
|
|
53
|
+
'pipeline_id': 'str',
|
|
54
|
+
'project_id': 'str',
|
|
55
|
+
'steps': 'list[V1PipelineStep]',
|
|
56
|
+
'thumbnail_updated_at': 'datetime',
|
|
57
|
+
'thumbnail_url': 'str',
|
|
58
|
+
'updated_at': 'datetime',
|
|
59
|
+
'user_id': 'str'
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
attribute_map = {
|
|
63
|
+
'about_page_content': 'aboutPageContent',
|
|
64
|
+
'about_page_id': 'aboutPageId',
|
|
65
|
+
'created_at': 'createdAt',
|
|
66
|
+
'description': 'description',
|
|
67
|
+
'featured': 'featured',
|
|
68
|
+
'id': 'id',
|
|
69
|
+
'image_url': 'imageUrl',
|
|
70
|
+
'name': 'name',
|
|
71
|
+
'org_id': 'orgId',
|
|
72
|
+
'pipeline_id': 'pipelineId',
|
|
73
|
+
'project_id': 'projectId',
|
|
74
|
+
'steps': 'steps',
|
|
75
|
+
'thumbnail_updated_at': 'thumbnailUpdatedAt',
|
|
76
|
+
'thumbnail_url': 'thumbnailUrl',
|
|
77
|
+
'updated_at': 'updatedAt',
|
|
78
|
+
'user_id': 'userId'
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
def __init__(self, about_page_content: 'str' =None, about_page_id: 'str' =None, created_at: 'datetime' =None, description: 'str' =None, featured: 'bool' =None, id: 'str' =None, image_url: 'str' =None, name: 'str' =None, org_id: 'str' =None, pipeline_id: 'str' =None, project_id: 'str' =None, steps: 'list[V1PipelineStep]' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
82
|
+
"""V1PipelineTemplate - a model defined in Swagger""" # noqa: E501
|
|
83
|
+
self._about_page_content = None
|
|
84
|
+
self._about_page_id = None
|
|
85
|
+
self._created_at = None
|
|
86
|
+
self._description = None
|
|
87
|
+
self._featured = None
|
|
88
|
+
self._id = None
|
|
89
|
+
self._image_url = None
|
|
90
|
+
self._name = None
|
|
91
|
+
self._org_id = None
|
|
92
|
+
self._pipeline_id = None
|
|
93
|
+
self._project_id = None
|
|
94
|
+
self._steps = None
|
|
95
|
+
self._thumbnail_updated_at = None
|
|
96
|
+
self._thumbnail_url = None
|
|
97
|
+
self._updated_at = None
|
|
98
|
+
self._user_id = None
|
|
99
|
+
self.discriminator = None
|
|
100
|
+
if about_page_content is not None:
|
|
101
|
+
self.about_page_content = about_page_content
|
|
102
|
+
if about_page_id is not None:
|
|
103
|
+
self.about_page_id = about_page_id
|
|
104
|
+
if created_at is not None:
|
|
105
|
+
self.created_at = created_at
|
|
106
|
+
if description is not None:
|
|
107
|
+
self.description = description
|
|
108
|
+
if featured is not None:
|
|
109
|
+
self.featured = featured
|
|
110
|
+
if id is not None:
|
|
111
|
+
self.id = id
|
|
112
|
+
if image_url is not None:
|
|
113
|
+
self.image_url = image_url
|
|
114
|
+
if name is not None:
|
|
115
|
+
self.name = name
|
|
116
|
+
if org_id is not None:
|
|
117
|
+
self.org_id = org_id
|
|
118
|
+
if pipeline_id is not None:
|
|
119
|
+
self.pipeline_id = pipeline_id
|
|
120
|
+
if project_id is not None:
|
|
121
|
+
self.project_id = project_id
|
|
122
|
+
if steps is not None:
|
|
123
|
+
self.steps = steps
|
|
124
|
+
if thumbnail_updated_at is not None:
|
|
125
|
+
self.thumbnail_updated_at = thumbnail_updated_at
|
|
126
|
+
if thumbnail_url is not None:
|
|
127
|
+
self.thumbnail_url = thumbnail_url
|
|
128
|
+
if updated_at is not None:
|
|
129
|
+
self.updated_at = updated_at
|
|
130
|
+
if user_id is not None:
|
|
131
|
+
self.user_id = user_id
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def about_page_content(self) -> 'str':
|
|
135
|
+
"""Gets the about_page_content of this V1PipelineTemplate. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The about_page_content of this V1PipelineTemplate. # noqa: E501
|
|
139
|
+
:rtype: str
|
|
140
|
+
"""
|
|
141
|
+
return self._about_page_content
|
|
142
|
+
|
|
143
|
+
@about_page_content.setter
|
|
144
|
+
def about_page_content(self, about_page_content: 'str'):
|
|
145
|
+
"""Sets the about_page_content of this V1PipelineTemplate.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param about_page_content: The about_page_content of this V1PipelineTemplate. # noqa: E501
|
|
149
|
+
:type: str
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._about_page_content = about_page_content
|
|
153
|
+
|
|
154
|
+
@property
|
|
155
|
+
def about_page_id(self) -> 'str':
|
|
156
|
+
"""Gets the about_page_id of this V1PipelineTemplate. # noqa: E501
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
:return: The about_page_id of this V1PipelineTemplate. # noqa: E501
|
|
160
|
+
:rtype: str
|
|
161
|
+
"""
|
|
162
|
+
return self._about_page_id
|
|
163
|
+
|
|
164
|
+
@about_page_id.setter
|
|
165
|
+
def about_page_id(self, about_page_id: 'str'):
|
|
166
|
+
"""Sets the about_page_id of this V1PipelineTemplate.
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
:param about_page_id: The about_page_id of this V1PipelineTemplate. # noqa: E501
|
|
170
|
+
:type: str
|
|
171
|
+
"""
|
|
172
|
+
|
|
173
|
+
self._about_page_id = about_page_id
|
|
174
|
+
|
|
175
|
+
@property
|
|
176
|
+
def created_at(self) -> 'datetime':
|
|
177
|
+
"""Gets the created_at of this V1PipelineTemplate. # noqa: E501
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
:return: The created_at of this V1PipelineTemplate. # noqa: E501
|
|
181
|
+
:rtype: datetime
|
|
182
|
+
"""
|
|
183
|
+
return self._created_at
|
|
184
|
+
|
|
185
|
+
@created_at.setter
|
|
186
|
+
def created_at(self, created_at: 'datetime'):
|
|
187
|
+
"""Sets the created_at of this V1PipelineTemplate.
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
:param created_at: The created_at of this V1PipelineTemplate. # noqa: E501
|
|
191
|
+
:type: datetime
|
|
192
|
+
"""
|
|
193
|
+
|
|
194
|
+
self._created_at = created_at
|
|
195
|
+
|
|
196
|
+
@property
|
|
197
|
+
def description(self) -> 'str':
|
|
198
|
+
"""Gets the description of this V1PipelineTemplate. # noqa: E501
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
:return: The description of this V1PipelineTemplate. # noqa: E501
|
|
202
|
+
:rtype: str
|
|
203
|
+
"""
|
|
204
|
+
return self._description
|
|
205
|
+
|
|
206
|
+
@description.setter
|
|
207
|
+
def description(self, description: 'str'):
|
|
208
|
+
"""Sets the description of this V1PipelineTemplate.
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
:param description: The description of this V1PipelineTemplate. # noqa: E501
|
|
212
|
+
:type: str
|
|
213
|
+
"""
|
|
214
|
+
|
|
215
|
+
self._description = description
|
|
216
|
+
|
|
217
|
+
@property
|
|
218
|
+
def featured(self) -> 'bool':
|
|
219
|
+
"""Gets the featured of this V1PipelineTemplate. # noqa: E501
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
:return: The featured of this V1PipelineTemplate. # noqa: E501
|
|
223
|
+
:rtype: bool
|
|
224
|
+
"""
|
|
225
|
+
return self._featured
|
|
226
|
+
|
|
227
|
+
@featured.setter
|
|
228
|
+
def featured(self, featured: 'bool'):
|
|
229
|
+
"""Sets the featured of this V1PipelineTemplate.
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
:param featured: The featured of this V1PipelineTemplate. # noqa: E501
|
|
233
|
+
:type: bool
|
|
234
|
+
"""
|
|
235
|
+
|
|
236
|
+
self._featured = featured
|
|
237
|
+
|
|
238
|
+
@property
|
|
239
|
+
def id(self) -> 'str':
|
|
240
|
+
"""Gets the id of this V1PipelineTemplate. # noqa: E501
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
:return: The id of this V1PipelineTemplate. # noqa: E501
|
|
244
|
+
:rtype: str
|
|
245
|
+
"""
|
|
246
|
+
return self._id
|
|
247
|
+
|
|
248
|
+
@id.setter
|
|
249
|
+
def id(self, id: 'str'):
|
|
250
|
+
"""Sets the id of this V1PipelineTemplate.
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
:param id: The id of this V1PipelineTemplate. # noqa: E501
|
|
254
|
+
:type: str
|
|
255
|
+
"""
|
|
256
|
+
|
|
257
|
+
self._id = id
|
|
258
|
+
|
|
259
|
+
@property
|
|
260
|
+
def image_url(self) -> 'str':
|
|
261
|
+
"""Gets the image_url of this V1PipelineTemplate. # noqa: E501
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
:return: The image_url of this V1PipelineTemplate. # noqa: E501
|
|
265
|
+
:rtype: str
|
|
266
|
+
"""
|
|
267
|
+
return self._image_url
|
|
268
|
+
|
|
269
|
+
@image_url.setter
|
|
270
|
+
def image_url(self, image_url: 'str'):
|
|
271
|
+
"""Sets the image_url of this V1PipelineTemplate.
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
:param image_url: The image_url of this V1PipelineTemplate. # noqa: E501
|
|
275
|
+
:type: str
|
|
276
|
+
"""
|
|
277
|
+
|
|
278
|
+
self._image_url = image_url
|
|
279
|
+
|
|
280
|
+
@property
|
|
281
|
+
def name(self) -> 'str':
|
|
282
|
+
"""Gets the name of this V1PipelineTemplate. # noqa: E501
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
:return: The name of this V1PipelineTemplate. # noqa: E501
|
|
286
|
+
:rtype: str
|
|
287
|
+
"""
|
|
288
|
+
return self._name
|
|
289
|
+
|
|
290
|
+
@name.setter
|
|
291
|
+
def name(self, name: 'str'):
|
|
292
|
+
"""Sets the name of this V1PipelineTemplate.
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
:param name: The name of this V1PipelineTemplate. # noqa: E501
|
|
296
|
+
:type: str
|
|
297
|
+
"""
|
|
298
|
+
|
|
299
|
+
self._name = name
|
|
300
|
+
|
|
301
|
+
@property
|
|
302
|
+
def org_id(self) -> 'str':
|
|
303
|
+
"""Gets the org_id of this V1PipelineTemplate. # noqa: E501
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
:return: The org_id of this V1PipelineTemplate. # noqa: E501
|
|
307
|
+
:rtype: str
|
|
308
|
+
"""
|
|
309
|
+
return self._org_id
|
|
310
|
+
|
|
311
|
+
@org_id.setter
|
|
312
|
+
def org_id(self, org_id: 'str'):
|
|
313
|
+
"""Sets the org_id of this V1PipelineTemplate.
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
:param org_id: The org_id of this V1PipelineTemplate. # noqa: E501
|
|
317
|
+
:type: str
|
|
318
|
+
"""
|
|
319
|
+
|
|
320
|
+
self._org_id = org_id
|
|
321
|
+
|
|
322
|
+
@property
|
|
323
|
+
def pipeline_id(self) -> 'str':
|
|
324
|
+
"""Gets the pipeline_id of this V1PipelineTemplate. # noqa: E501
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
:return: The pipeline_id of this V1PipelineTemplate. # noqa: E501
|
|
328
|
+
:rtype: str
|
|
329
|
+
"""
|
|
330
|
+
return self._pipeline_id
|
|
331
|
+
|
|
332
|
+
@pipeline_id.setter
|
|
333
|
+
def pipeline_id(self, pipeline_id: 'str'):
|
|
334
|
+
"""Sets the pipeline_id of this V1PipelineTemplate.
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
:param pipeline_id: The pipeline_id of this V1PipelineTemplate. # noqa: E501
|
|
338
|
+
:type: str
|
|
339
|
+
"""
|
|
340
|
+
|
|
341
|
+
self._pipeline_id = pipeline_id
|
|
342
|
+
|
|
343
|
+
@property
|
|
344
|
+
def project_id(self) -> 'str':
|
|
345
|
+
"""Gets the project_id of this V1PipelineTemplate. # noqa: E501
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
:return: The project_id of this V1PipelineTemplate. # noqa: E501
|
|
349
|
+
:rtype: str
|
|
350
|
+
"""
|
|
351
|
+
return self._project_id
|
|
352
|
+
|
|
353
|
+
@project_id.setter
|
|
354
|
+
def project_id(self, project_id: 'str'):
|
|
355
|
+
"""Sets the project_id of this V1PipelineTemplate.
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
:param project_id: The project_id of this V1PipelineTemplate. # noqa: E501
|
|
359
|
+
:type: str
|
|
360
|
+
"""
|
|
361
|
+
|
|
362
|
+
self._project_id = project_id
|
|
363
|
+
|
|
364
|
+
@property
|
|
365
|
+
def steps(self) -> 'list[V1PipelineStep]':
|
|
366
|
+
"""Gets the steps of this V1PipelineTemplate. # noqa: E501
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
:return: The steps of this V1PipelineTemplate. # noqa: E501
|
|
370
|
+
:rtype: list[V1PipelineStep]
|
|
371
|
+
"""
|
|
372
|
+
return self._steps
|
|
373
|
+
|
|
374
|
+
@steps.setter
|
|
375
|
+
def steps(self, steps: 'list[V1PipelineStep]'):
|
|
376
|
+
"""Sets the steps of this V1PipelineTemplate.
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
:param steps: The steps of this V1PipelineTemplate. # noqa: E501
|
|
380
|
+
:type: list[V1PipelineStep]
|
|
381
|
+
"""
|
|
382
|
+
|
|
383
|
+
self._steps = steps
|
|
384
|
+
|
|
385
|
+
@property
|
|
386
|
+
def thumbnail_updated_at(self) -> 'datetime':
|
|
387
|
+
"""Gets the thumbnail_updated_at of this V1PipelineTemplate. # noqa: E501
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
:return: The thumbnail_updated_at of this V1PipelineTemplate. # noqa: E501
|
|
391
|
+
:rtype: datetime
|
|
392
|
+
"""
|
|
393
|
+
return self._thumbnail_updated_at
|
|
394
|
+
|
|
395
|
+
@thumbnail_updated_at.setter
|
|
396
|
+
def thumbnail_updated_at(self, thumbnail_updated_at: 'datetime'):
|
|
397
|
+
"""Sets the thumbnail_updated_at of this V1PipelineTemplate.
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
:param thumbnail_updated_at: The thumbnail_updated_at of this V1PipelineTemplate. # noqa: E501
|
|
401
|
+
:type: datetime
|
|
402
|
+
"""
|
|
403
|
+
|
|
404
|
+
self._thumbnail_updated_at = thumbnail_updated_at
|
|
405
|
+
|
|
406
|
+
@property
|
|
407
|
+
def thumbnail_url(self) -> 'str':
|
|
408
|
+
"""Gets the thumbnail_url of this V1PipelineTemplate. # noqa: E501
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
:return: The thumbnail_url of this V1PipelineTemplate. # noqa: E501
|
|
412
|
+
:rtype: str
|
|
413
|
+
"""
|
|
414
|
+
return self._thumbnail_url
|
|
415
|
+
|
|
416
|
+
@thumbnail_url.setter
|
|
417
|
+
def thumbnail_url(self, thumbnail_url: 'str'):
|
|
418
|
+
"""Sets the thumbnail_url of this V1PipelineTemplate.
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
:param thumbnail_url: The thumbnail_url of this V1PipelineTemplate. # noqa: E501
|
|
422
|
+
:type: str
|
|
423
|
+
"""
|
|
424
|
+
|
|
425
|
+
self._thumbnail_url = thumbnail_url
|
|
426
|
+
|
|
427
|
+
@property
|
|
428
|
+
def updated_at(self) -> 'datetime':
|
|
429
|
+
"""Gets the updated_at of this V1PipelineTemplate. # noqa: E501
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
:return: The updated_at of this V1PipelineTemplate. # noqa: E501
|
|
433
|
+
:rtype: datetime
|
|
434
|
+
"""
|
|
435
|
+
return self._updated_at
|
|
436
|
+
|
|
437
|
+
@updated_at.setter
|
|
438
|
+
def updated_at(self, updated_at: 'datetime'):
|
|
439
|
+
"""Sets the updated_at of this V1PipelineTemplate.
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
:param updated_at: The updated_at of this V1PipelineTemplate. # noqa: E501
|
|
443
|
+
:type: datetime
|
|
444
|
+
"""
|
|
445
|
+
|
|
446
|
+
self._updated_at = updated_at
|
|
447
|
+
|
|
448
|
+
@property
|
|
449
|
+
def user_id(self) -> 'str':
|
|
450
|
+
"""Gets the user_id of this V1PipelineTemplate. # noqa: E501
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
:return: The user_id of this V1PipelineTemplate. # noqa: E501
|
|
454
|
+
:rtype: str
|
|
455
|
+
"""
|
|
456
|
+
return self._user_id
|
|
457
|
+
|
|
458
|
+
@user_id.setter
|
|
459
|
+
def user_id(self, user_id: 'str'):
|
|
460
|
+
"""Sets the user_id of this V1PipelineTemplate.
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
:param user_id: The user_id of this V1PipelineTemplate. # noqa: E501
|
|
464
|
+
:type: str
|
|
465
|
+
"""
|
|
466
|
+
|
|
467
|
+
self._user_id = user_id
|
|
468
|
+
|
|
469
|
+
def to_dict(self) -> dict:
|
|
470
|
+
"""Returns the model properties as a dict"""
|
|
471
|
+
result = {}
|
|
472
|
+
|
|
473
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
474
|
+
value = getattr(self, attr)
|
|
475
|
+
if isinstance(value, list):
|
|
476
|
+
result[attr] = list(map(
|
|
477
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
478
|
+
value
|
|
479
|
+
))
|
|
480
|
+
elif hasattr(value, "to_dict"):
|
|
481
|
+
result[attr] = value.to_dict()
|
|
482
|
+
elif isinstance(value, dict):
|
|
483
|
+
result[attr] = dict(map(
|
|
484
|
+
lambda item: (item[0], item[1].to_dict())
|
|
485
|
+
if hasattr(item[1], "to_dict") else item,
|
|
486
|
+
value.items()
|
|
487
|
+
))
|
|
488
|
+
else:
|
|
489
|
+
result[attr] = value
|
|
490
|
+
if issubclass(V1PipelineTemplate, dict):
|
|
491
|
+
for key, value in self.items():
|
|
492
|
+
result[key] = value
|
|
493
|
+
|
|
494
|
+
return result
|
|
495
|
+
|
|
496
|
+
def to_str(self) -> str:
|
|
497
|
+
"""Returns the string representation of the model"""
|
|
498
|
+
return pprint.pformat(self.to_dict())
|
|
499
|
+
|
|
500
|
+
def __repr__(self) -> str:
|
|
501
|
+
"""For `print` and `pprint`"""
|
|
502
|
+
return self.to_str()
|
|
503
|
+
|
|
504
|
+
def __eq__(self, other: 'V1PipelineTemplate') -> bool:
|
|
505
|
+
"""Returns true if both objects are equal"""
|
|
506
|
+
if not isinstance(other, V1PipelineTemplate):
|
|
507
|
+
return False
|
|
508
|
+
|
|
509
|
+
return self.__dict__ == other.__dict__
|
|
510
|
+
|
|
511
|
+
def __ne__(self, other: 'V1PipelineTemplate') -> bool:
|
|
512
|
+
"""Returns true if both objects are not equal"""
|
|
513
|
+
return not self == other
|