lightning-sdk 0.1.57__py3-none-any.whl → 0.2.0__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 +5 -3
- lightning_sdk/api/deployment_api.py +23 -11
- lightning_sdk/api/job_api.py +42 -7
- lightning_sdk/api/lit_container_api.py +88 -22
- lightning_sdk/api/mmt_api.py +46 -8
- lightning_sdk/api/pipeline_api.py +50 -0
- lightning_sdk/api/teamspace_api.py +2 -2
- lightning_sdk/api/utils.py +15 -5
- lightning_sdk/cli/ai_hub.py +30 -65
- lightning_sdk/cli/coloring.py +60 -0
- lightning_sdk/cli/configure.py +25 -40
- lightning_sdk/cli/connect.py +7 -20
- lightning_sdk/cli/create.py +83 -0
- lightning_sdk/cli/delete.py +72 -75
- lightning_sdk/cli/docker.py +77 -0
- lightning_sdk/cli/download.py +71 -111
- lightning_sdk/cli/entrypoint.py +44 -65
- lightning_sdk/cli/generate.py +28 -43
- lightning_sdk/cli/inspect.py +22 -50
- lightning_sdk/cli/list.py +281 -222
- lightning_sdk/cli/mmts_menu.py +1 -1
- lightning_sdk/cli/open.py +62 -0
- lightning_sdk/cli/run.py +430 -263
- lightning_sdk/cli/serve.py +162 -189
- lightning_sdk/cli/start.py +55 -36
- lightning_sdk/cli/stop.py +97 -55
- lightning_sdk/cli/switch.py +53 -36
- lightning_sdk/cli/upload.py +318 -245
- lightning_sdk/deployment/__init__.py +2 -0
- lightning_sdk/deployment/deployment.py +33 -8
- lightning_sdk/lightning_cloud/openapi/__init__.py +21 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +10 -6
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +355 -4
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +4 -4
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +14 -2
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +670 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +303 -4
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +20 -0
- lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +17 -69
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/create.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body1.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body2.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/org_id_memberships_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +157 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +157 -1
- lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +17 -69
- lightning_sdk/lightning_cloud/openapi/models/v1_capacity_block_offering.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event_type.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload_temporary_artifact_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_job_request.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_managed_endpoint_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_multi_machine_job_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_pipeline_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_details.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_find_capacity_block_offering_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +133 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_timing.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pipelines_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_artifact.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +29 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +157 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +487 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_status.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +157 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_restart_timing.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_job_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_upload_temporary_artifact_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +95 -355
- lightning_sdk/lightning_cloud/openapi/models/validate.py +27 -1
- lightning_sdk/lightning_cloud/rest_client.py +4 -2
- lightning_sdk/machine.py +25 -1
- lightning_sdk/models.py +18 -12
- lightning_sdk/pipeline/__init__.py +4 -0
- lightning_sdk/pipeline/pipeline.py +109 -0
- lightning_sdk/pipeline/types.py +268 -0
- lightning_sdk/pipeline/utils.py +69 -0
- lightning_sdk/plugin.py +9 -10
- lightning_sdk/services/utilities.py +2 -2
- lightning_sdk/studio.py +5 -1
- lightning_sdk/teamspace.py +1 -1
- lightning_sdk/utils/resolve.py +12 -1
- {lightning_sdk-0.1.57.dist-info → lightning_sdk-0.2.0.dist-info}/METADATA +6 -8
- {lightning_sdk-0.1.57.dist-info → lightning_sdk-0.2.0.dist-info}/RECORD +117 -88
- lightning_sdk/cli/legacy.py +0 -135
- {lightning_sdk-0.1.57.dist-info → lightning_sdk-0.2.0.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.57.dist-info → lightning_sdk-0.2.0.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.57.dist-info → lightning_sdk-0.2.0.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.57.dist-info → lightning_sdk-0.2.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,461 @@
|
|
|
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 V1CreateDeploymentRequest(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
|
+
'api_standard': 'str',
|
|
45
|
+
'apis': 'list[V1DeploymentAPI]',
|
|
46
|
+
'autoscaling': 'V1AutoscalingSpec',
|
|
47
|
+
'cloudspace_id': 'str',
|
|
48
|
+
'cluster_id': 'str',
|
|
49
|
+
'endpoint': 'V1Endpoint',
|
|
50
|
+
'from_onboarding': 'bool',
|
|
51
|
+
'name': 'str',
|
|
52
|
+
'parameter_spec': 'V1ParameterizationSpec',
|
|
53
|
+
'parent_template_id': 'str',
|
|
54
|
+
'project_id': 'str',
|
|
55
|
+
'replicas': 'int',
|
|
56
|
+
'spec': 'V1JobSpec',
|
|
57
|
+
'strategy': 'V1DeploymentStrategy'
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
attribute_map = {
|
|
61
|
+
'api_standard': 'apiStandard',
|
|
62
|
+
'apis': 'apis',
|
|
63
|
+
'autoscaling': 'autoscaling',
|
|
64
|
+
'cloudspace_id': 'cloudspaceId',
|
|
65
|
+
'cluster_id': 'clusterId',
|
|
66
|
+
'endpoint': 'endpoint',
|
|
67
|
+
'from_onboarding': 'fromOnboarding',
|
|
68
|
+
'name': 'name',
|
|
69
|
+
'parameter_spec': 'parameterSpec',
|
|
70
|
+
'parent_template_id': 'parentTemplateId',
|
|
71
|
+
'project_id': 'projectId',
|
|
72
|
+
'replicas': 'replicas',
|
|
73
|
+
'spec': 'spec',
|
|
74
|
+
'strategy': 'strategy'
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
def __init__(self, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, endpoint: 'V1Endpoint' =None, from_onboarding: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, parent_template_id: 'str' =None, project_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, strategy: 'V1DeploymentStrategy' =None): # noqa: E501
|
|
78
|
+
"""V1CreateDeploymentRequest - a model defined in Swagger""" # noqa: E501
|
|
79
|
+
self._api_standard = None
|
|
80
|
+
self._apis = None
|
|
81
|
+
self._autoscaling = None
|
|
82
|
+
self._cloudspace_id = None
|
|
83
|
+
self._cluster_id = None
|
|
84
|
+
self._endpoint = None
|
|
85
|
+
self._from_onboarding = None
|
|
86
|
+
self._name = None
|
|
87
|
+
self._parameter_spec = None
|
|
88
|
+
self._parent_template_id = None
|
|
89
|
+
self._project_id = None
|
|
90
|
+
self._replicas = None
|
|
91
|
+
self._spec = None
|
|
92
|
+
self._strategy = None
|
|
93
|
+
self.discriminator = None
|
|
94
|
+
if api_standard is not None:
|
|
95
|
+
self.api_standard = api_standard
|
|
96
|
+
if apis is not None:
|
|
97
|
+
self.apis = apis
|
|
98
|
+
if autoscaling is not None:
|
|
99
|
+
self.autoscaling = autoscaling
|
|
100
|
+
if cloudspace_id is not None:
|
|
101
|
+
self.cloudspace_id = cloudspace_id
|
|
102
|
+
if cluster_id is not None:
|
|
103
|
+
self.cluster_id = cluster_id
|
|
104
|
+
if endpoint is not None:
|
|
105
|
+
self.endpoint = endpoint
|
|
106
|
+
if from_onboarding is not None:
|
|
107
|
+
self.from_onboarding = from_onboarding
|
|
108
|
+
if name is not None:
|
|
109
|
+
self.name = name
|
|
110
|
+
if parameter_spec is not None:
|
|
111
|
+
self.parameter_spec = parameter_spec
|
|
112
|
+
if parent_template_id is not None:
|
|
113
|
+
self.parent_template_id = parent_template_id
|
|
114
|
+
if project_id is not None:
|
|
115
|
+
self.project_id = project_id
|
|
116
|
+
if replicas is not None:
|
|
117
|
+
self.replicas = replicas
|
|
118
|
+
if spec is not None:
|
|
119
|
+
self.spec = spec
|
|
120
|
+
if strategy is not None:
|
|
121
|
+
self.strategy = strategy
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def api_standard(self) -> 'str':
|
|
125
|
+
"""Gets the api_standard of this V1CreateDeploymentRequest. # noqa: E501
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
:return: The api_standard of this V1CreateDeploymentRequest. # noqa: E501
|
|
129
|
+
:rtype: str
|
|
130
|
+
"""
|
|
131
|
+
return self._api_standard
|
|
132
|
+
|
|
133
|
+
@api_standard.setter
|
|
134
|
+
def api_standard(self, api_standard: 'str'):
|
|
135
|
+
"""Sets the api_standard of this V1CreateDeploymentRequest.
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:param api_standard: The api_standard of this V1CreateDeploymentRequest. # noqa: E501
|
|
139
|
+
:type: str
|
|
140
|
+
"""
|
|
141
|
+
|
|
142
|
+
self._api_standard = api_standard
|
|
143
|
+
|
|
144
|
+
@property
|
|
145
|
+
def apis(self) -> 'list[V1DeploymentAPI]':
|
|
146
|
+
"""Gets the apis of this V1CreateDeploymentRequest. # noqa: E501
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
:return: The apis of this V1CreateDeploymentRequest. # noqa: E501
|
|
150
|
+
:rtype: list[V1DeploymentAPI]
|
|
151
|
+
"""
|
|
152
|
+
return self._apis
|
|
153
|
+
|
|
154
|
+
@apis.setter
|
|
155
|
+
def apis(self, apis: 'list[V1DeploymentAPI]'):
|
|
156
|
+
"""Sets the apis of this V1CreateDeploymentRequest.
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
:param apis: The apis of this V1CreateDeploymentRequest. # noqa: E501
|
|
160
|
+
:type: list[V1DeploymentAPI]
|
|
161
|
+
"""
|
|
162
|
+
|
|
163
|
+
self._apis = apis
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
def autoscaling(self) -> 'V1AutoscalingSpec':
|
|
167
|
+
"""Gets the autoscaling of this V1CreateDeploymentRequest. # noqa: E501
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
:return: The autoscaling of this V1CreateDeploymentRequest. # noqa: E501
|
|
171
|
+
:rtype: V1AutoscalingSpec
|
|
172
|
+
"""
|
|
173
|
+
return self._autoscaling
|
|
174
|
+
|
|
175
|
+
@autoscaling.setter
|
|
176
|
+
def autoscaling(self, autoscaling: 'V1AutoscalingSpec'):
|
|
177
|
+
"""Sets the autoscaling of this V1CreateDeploymentRequest.
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
:param autoscaling: The autoscaling of this V1CreateDeploymentRequest. # noqa: E501
|
|
181
|
+
:type: V1AutoscalingSpec
|
|
182
|
+
"""
|
|
183
|
+
|
|
184
|
+
self._autoscaling = autoscaling
|
|
185
|
+
|
|
186
|
+
@property
|
|
187
|
+
def cloudspace_id(self) -> 'str':
|
|
188
|
+
"""Gets the cloudspace_id of this V1CreateDeploymentRequest. # noqa: E501
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
:return: The cloudspace_id of this V1CreateDeploymentRequest. # noqa: E501
|
|
192
|
+
:rtype: str
|
|
193
|
+
"""
|
|
194
|
+
return self._cloudspace_id
|
|
195
|
+
|
|
196
|
+
@cloudspace_id.setter
|
|
197
|
+
def cloudspace_id(self, cloudspace_id: 'str'):
|
|
198
|
+
"""Sets the cloudspace_id of this V1CreateDeploymentRequest.
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
:param cloudspace_id: The cloudspace_id of this V1CreateDeploymentRequest. # noqa: E501
|
|
202
|
+
:type: str
|
|
203
|
+
"""
|
|
204
|
+
|
|
205
|
+
self._cloudspace_id = cloudspace_id
|
|
206
|
+
|
|
207
|
+
@property
|
|
208
|
+
def cluster_id(self) -> 'str':
|
|
209
|
+
"""Gets the cluster_id of this V1CreateDeploymentRequest. # noqa: E501
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
:return: The cluster_id of this V1CreateDeploymentRequest. # noqa: E501
|
|
213
|
+
:rtype: str
|
|
214
|
+
"""
|
|
215
|
+
return self._cluster_id
|
|
216
|
+
|
|
217
|
+
@cluster_id.setter
|
|
218
|
+
def cluster_id(self, cluster_id: 'str'):
|
|
219
|
+
"""Sets the cluster_id of this V1CreateDeploymentRequest.
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
:param cluster_id: The cluster_id of this V1CreateDeploymentRequest. # noqa: E501
|
|
223
|
+
:type: str
|
|
224
|
+
"""
|
|
225
|
+
|
|
226
|
+
self._cluster_id = cluster_id
|
|
227
|
+
|
|
228
|
+
@property
|
|
229
|
+
def endpoint(self) -> 'V1Endpoint':
|
|
230
|
+
"""Gets the endpoint of this V1CreateDeploymentRequest. # noqa: E501
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
:return: The endpoint of this V1CreateDeploymentRequest. # noqa: E501
|
|
234
|
+
:rtype: V1Endpoint
|
|
235
|
+
"""
|
|
236
|
+
return self._endpoint
|
|
237
|
+
|
|
238
|
+
@endpoint.setter
|
|
239
|
+
def endpoint(self, endpoint: 'V1Endpoint'):
|
|
240
|
+
"""Sets the endpoint of this V1CreateDeploymentRequest.
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
:param endpoint: The endpoint of this V1CreateDeploymentRequest. # noqa: E501
|
|
244
|
+
:type: V1Endpoint
|
|
245
|
+
"""
|
|
246
|
+
|
|
247
|
+
self._endpoint = endpoint
|
|
248
|
+
|
|
249
|
+
@property
|
|
250
|
+
def from_onboarding(self) -> 'bool':
|
|
251
|
+
"""Gets the from_onboarding of this V1CreateDeploymentRequest. # noqa: E501
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
:return: The from_onboarding of this V1CreateDeploymentRequest. # noqa: E501
|
|
255
|
+
:rtype: bool
|
|
256
|
+
"""
|
|
257
|
+
return self._from_onboarding
|
|
258
|
+
|
|
259
|
+
@from_onboarding.setter
|
|
260
|
+
def from_onboarding(self, from_onboarding: 'bool'):
|
|
261
|
+
"""Sets the from_onboarding of this V1CreateDeploymentRequest.
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
:param from_onboarding: The from_onboarding of this V1CreateDeploymentRequest. # noqa: E501
|
|
265
|
+
:type: bool
|
|
266
|
+
"""
|
|
267
|
+
|
|
268
|
+
self._from_onboarding = from_onboarding
|
|
269
|
+
|
|
270
|
+
@property
|
|
271
|
+
def name(self) -> 'str':
|
|
272
|
+
"""Gets the name of this V1CreateDeploymentRequest. # noqa: E501
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
:return: The name of this V1CreateDeploymentRequest. # noqa: E501
|
|
276
|
+
:rtype: str
|
|
277
|
+
"""
|
|
278
|
+
return self._name
|
|
279
|
+
|
|
280
|
+
@name.setter
|
|
281
|
+
def name(self, name: 'str'):
|
|
282
|
+
"""Sets the name of this V1CreateDeploymentRequest.
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
:param name: The name of this V1CreateDeploymentRequest. # noqa: E501
|
|
286
|
+
:type: str
|
|
287
|
+
"""
|
|
288
|
+
|
|
289
|
+
self._name = name
|
|
290
|
+
|
|
291
|
+
@property
|
|
292
|
+
def parameter_spec(self) -> 'V1ParameterizationSpec':
|
|
293
|
+
"""Gets the parameter_spec of this V1CreateDeploymentRequest. # noqa: E501
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
:return: The parameter_spec of this V1CreateDeploymentRequest. # noqa: E501
|
|
297
|
+
:rtype: V1ParameterizationSpec
|
|
298
|
+
"""
|
|
299
|
+
return self._parameter_spec
|
|
300
|
+
|
|
301
|
+
@parameter_spec.setter
|
|
302
|
+
def parameter_spec(self, parameter_spec: 'V1ParameterizationSpec'):
|
|
303
|
+
"""Sets the parameter_spec of this V1CreateDeploymentRequest.
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
:param parameter_spec: The parameter_spec of this V1CreateDeploymentRequest. # noqa: E501
|
|
307
|
+
:type: V1ParameterizationSpec
|
|
308
|
+
"""
|
|
309
|
+
|
|
310
|
+
self._parameter_spec = parameter_spec
|
|
311
|
+
|
|
312
|
+
@property
|
|
313
|
+
def parent_template_id(self) -> 'str':
|
|
314
|
+
"""Gets the parent_template_id of this V1CreateDeploymentRequest. # noqa: E501
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
:return: The parent_template_id of this V1CreateDeploymentRequest. # noqa: E501
|
|
318
|
+
:rtype: str
|
|
319
|
+
"""
|
|
320
|
+
return self._parent_template_id
|
|
321
|
+
|
|
322
|
+
@parent_template_id.setter
|
|
323
|
+
def parent_template_id(self, parent_template_id: 'str'):
|
|
324
|
+
"""Sets the parent_template_id of this V1CreateDeploymentRequest.
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
:param parent_template_id: The parent_template_id of this V1CreateDeploymentRequest. # noqa: E501
|
|
328
|
+
:type: str
|
|
329
|
+
"""
|
|
330
|
+
|
|
331
|
+
self._parent_template_id = parent_template_id
|
|
332
|
+
|
|
333
|
+
@property
|
|
334
|
+
def project_id(self) -> 'str':
|
|
335
|
+
"""Gets the project_id of this V1CreateDeploymentRequest. # noqa: E501
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
:return: The project_id of this V1CreateDeploymentRequest. # noqa: E501
|
|
339
|
+
:rtype: str
|
|
340
|
+
"""
|
|
341
|
+
return self._project_id
|
|
342
|
+
|
|
343
|
+
@project_id.setter
|
|
344
|
+
def project_id(self, project_id: 'str'):
|
|
345
|
+
"""Sets the project_id of this V1CreateDeploymentRequest.
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
:param project_id: The project_id of this V1CreateDeploymentRequest. # noqa: E501
|
|
349
|
+
:type: str
|
|
350
|
+
"""
|
|
351
|
+
|
|
352
|
+
self._project_id = project_id
|
|
353
|
+
|
|
354
|
+
@property
|
|
355
|
+
def replicas(self) -> 'int':
|
|
356
|
+
"""Gets the replicas of this V1CreateDeploymentRequest. # noqa: E501
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
:return: The replicas of this V1CreateDeploymentRequest. # noqa: E501
|
|
360
|
+
:rtype: int
|
|
361
|
+
"""
|
|
362
|
+
return self._replicas
|
|
363
|
+
|
|
364
|
+
@replicas.setter
|
|
365
|
+
def replicas(self, replicas: 'int'):
|
|
366
|
+
"""Sets the replicas of this V1CreateDeploymentRequest.
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
:param replicas: The replicas of this V1CreateDeploymentRequest. # noqa: E501
|
|
370
|
+
:type: int
|
|
371
|
+
"""
|
|
372
|
+
|
|
373
|
+
self._replicas = replicas
|
|
374
|
+
|
|
375
|
+
@property
|
|
376
|
+
def spec(self) -> 'V1JobSpec':
|
|
377
|
+
"""Gets the spec of this V1CreateDeploymentRequest. # noqa: E501
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
:return: The spec of this V1CreateDeploymentRequest. # noqa: E501
|
|
381
|
+
:rtype: V1JobSpec
|
|
382
|
+
"""
|
|
383
|
+
return self._spec
|
|
384
|
+
|
|
385
|
+
@spec.setter
|
|
386
|
+
def spec(self, spec: 'V1JobSpec'):
|
|
387
|
+
"""Sets the spec of this V1CreateDeploymentRequest.
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
:param spec: The spec of this V1CreateDeploymentRequest. # noqa: E501
|
|
391
|
+
:type: V1JobSpec
|
|
392
|
+
"""
|
|
393
|
+
|
|
394
|
+
self._spec = spec
|
|
395
|
+
|
|
396
|
+
@property
|
|
397
|
+
def strategy(self) -> 'V1DeploymentStrategy':
|
|
398
|
+
"""Gets the strategy of this V1CreateDeploymentRequest. # noqa: E501
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
:return: The strategy of this V1CreateDeploymentRequest. # noqa: E501
|
|
402
|
+
:rtype: V1DeploymentStrategy
|
|
403
|
+
"""
|
|
404
|
+
return self._strategy
|
|
405
|
+
|
|
406
|
+
@strategy.setter
|
|
407
|
+
def strategy(self, strategy: 'V1DeploymentStrategy'):
|
|
408
|
+
"""Sets the strategy of this V1CreateDeploymentRequest.
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
:param strategy: The strategy of this V1CreateDeploymentRequest. # noqa: E501
|
|
412
|
+
:type: V1DeploymentStrategy
|
|
413
|
+
"""
|
|
414
|
+
|
|
415
|
+
self._strategy = strategy
|
|
416
|
+
|
|
417
|
+
def to_dict(self) -> dict:
|
|
418
|
+
"""Returns the model properties as a dict"""
|
|
419
|
+
result = {}
|
|
420
|
+
|
|
421
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
422
|
+
value = getattr(self, attr)
|
|
423
|
+
if isinstance(value, list):
|
|
424
|
+
result[attr] = list(map(
|
|
425
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
426
|
+
value
|
|
427
|
+
))
|
|
428
|
+
elif hasattr(value, "to_dict"):
|
|
429
|
+
result[attr] = value.to_dict()
|
|
430
|
+
elif isinstance(value, dict):
|
|
431
|
+
result[attr] = dict(map(
|
|
432
|
+
lambda item: (item[0], item[1].to_dict())
|
|
433
|
+
if hasattr(item[1], "to_dict") else item,
|
|
434
|
+
value.items()
|
|
435
|
+
))
|
|
436
|
+
else:
|
|
437
|
+
result[attr] = value
|
|
438
|
+
if issubclass(V1CreateDeploymentRequest, dict):
|
|
439
|
+
for key, value in self.items():
|
|
440
|
+
result[key] = value
|
|
441
|
+
|
|
442
|
+
return result
|
|
443
|
+
|
|
444
|
+
def to_str(self) -> str:
|
|
445
|
+
"""Returns the string representation of the model"""
|
|
446
|
+
return pprint.pformat(self.to_dict())
|
|
447
|
+
|
|
448
|
+
def __repr__(self) -> str:
|
|
449
|
+
"""For `print` and `pprint`"""
|
|
450
|
+
return self.to_str()
|
|
451
|
+
|
|
452
|
+
def __eq__(self, other: 'V1CreateDeploymentRequest') -> bool:
|
|
453
|
+
"""Returns true if both objects are equal"""
|
|
454
|
+
if not isinstance(other, V1CreateDeploymentRequest):
|
|
455
|
+
return False
|
|
456
|
+
|
|
457
|
+
return self.__dict__ == other.__dict__
|
|
458
|
+
|
|
459
|
+
def __ne__(self, other: 'V1CreateDeploymentRequest') -> bool:
|
|
460
|
+
"""Returns true if both objects are not equal"""
|
|
461
|
+
return not self == other
|
|
@@ -43,6 +43,7 @@ class V1CreateDeploymentTemplateRequest(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'about_page_content': 'str',
|
|
45
45
|
'categories': 'list[str]',
|
|
46
|
+
'cloud_space_id': 'str',
|
|
46
47
|
'deployment_id': 'str',
|
|
47
48
|
'description': 'str',
|
|
48
49
|
'image_url': 'str',
|
|
@@ -63,6 +64,7 @@ class V1CreateDeploymentTemplateRequest(object):
|
|
|
63
64
|
attribute_map = {
|
|
64
65
|
'about_page_content': 'aboutPageContent',
|
|
65
66
|
'categories': 'categories',
|
|
67
|
+
'cloud_space_id': 'cloudSpaceId',
|
|
66
68
|
'deployment_id': 'deploymentId',
|
|
67
69
|
'description': 'description',
|
|
68
70
|
'image_url': 'imageUrl',
|
|
@@ -80,10 +82,11 @@ class V1CreateDeploymentTemplateRequest(object):
|
|
|
80
82
|
'visibility': 'visibility'
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
def __init__(self, about_page_content: 'str' =None, categories: 'list[str]' =None, deployment_id: 'str' =None, description: 'str' =None, image_url: 'str' =None, metrics: 'V1DeploymentMetrics' =None, name: 'str' =None, org_id: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, pricing: 'V1ApiPricingSpec' =None, project_id: 'str' =None, spec: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail: 'str' =None, thumbnail_file_type: 'str' =None, version: 'str' =None, visibility: 'V1DeploymentTemplateType' =None): # noqa: E501
|
|
85
|
+
def __init__(self, about_page_content: 'str' =None, categories: 'list[str]' =None, cloud_space_id: 'str' =None, deployment_id: 'str' =None, description: 'str' =None, image_url: 'str' =None, metrics: 'V1DeploymentMetrics' =None, name: 'str' =None, org_id: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, pricing: 'V1ApiPricingSpec' =None, project_id: 'str' =None, spec: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail: 'str' =None, thumbnail_file_type: 'str' =None, version: 'str' =None, visibility: 'V1DeploymentTemplateType' =None): # noqa: E501
|
|
84
86
|
"""V1CreateDeploymentTemplateRequest - a model defined in Swagger""" # noqa: E501
|
|
85
87
|
self._about_page_content = None
|
|
86
88
|
self._categories = None
|
|
89
|
+
self._cloud_space_id = None
|
|
87
90
|
self._deployment_id = None
|
|
88
91
|
self._description = None
|
|
89
92
|
self._image_url = None
|
|
@@ -104,6 +107,8 @@ class V1CreateDeploymentTemplateRequest(object):
|
|
|
104
107
|
self.about_page_content = about_page_content
|
|
105
108
|
if categories is not None:
|
|
106
109
|
self.categories = categories
|
|
110
|
+
if cloud_space_id is not None:
|
|
111
|
+
self.cloud_space_id = cloud_space_id
|
|
107
112
|
if deployment_id is not None:
|
|
108
113
|
self.deployment_id = deployment_id
|
|
109
114
|
if description is not None:
|
|
@@ -177,6 +182,27 @@ class V1CreateDeploymentTemplateRequest(object):
|
|
|
177
182
|
|
|
178
183
|
self._categories = categories
|
|
179
184
|
|
|
185
|
+
@property
|
|
186
|
+
def cloud_space_id(self) -> 'str':
|
|
187
|
+
"""Gets the cloud_space_id of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
:return: The cloud_space_id of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
191
|
+
:rtype: str
|
|
192
|
+
"""
|
|
193
|
+
return self._cloud_space_id
|
|
194
|
+
|
|
195
|
+
@cloud_space_id.setter
|
|
196
|
+
def cloud_space_id(self, cloud_space_id: 'str'):
|
|
197
|
+
"""Sets the cloud_space_id of this V1CreateDeploymentTemplateRequest.
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
:param cloud_space_id: The cloud_space_id of this V1CreateDeploymentTemplateRequest. # noqa: E501
|
|
201
|
+
:type: str
|
|
202
|
+
"""
|
|
203
|
+
|
|
204
|
+
self._cloud_space_id = cloud_space_id
|
|
205
|
+
|
|
180
206
|
@property
|
|
181
207
|
def deployment_id(self) -> 'str':
|
|
182
208
|
"""Gets the deployment_id of this V1CreateDeploymentTemplateRequest. # noqa: E501
|