lightning-sdk 0.1.58__py3-none-any.whl → 0.2.1__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 (121) hide show
  1. lightning_sdk/__init__.py +5 -3
  2. lightning_sdk/api/deployment_api.py +23 -11
  3. lightning_sdk/api/job_api.py +42 -7
  4. lightning_sdk/api/lit_container_api.py +23 -3
  5. lightning_sdk/api/mmt_api.py +46 -8
  6. lightning_sdk/api/pipeline_api.py +50 -0
  7. lightning_sdk/api/teamspace_api.py +2 -2
  8. lightning_sdk/api/utils.py +15 -5
  9. lightning_sdk/cli/ai_hub.py +30 -65
  10. lightning_sdk/cli/coloring.py +60 -0
  11. lightning_sdk/cli/configure.py +25 -40
  12. lightning_sdk/cli/connect.py +7 -20
  13. lightning_sdk/cli/create.py +83 -0
  14. lightning_sdk/cli/delete.py +72 -75
  15. lightning_sdk/cli/docker.py +22 -0
  16. lightning_sdk/cli/download.py +78 -113
  17. lightning_sdk/cli/entrypoint.py +44 -65
  18. lightning_sdk/cli/generate.py +28 -43
  19. lightning_sdk/cli/inspect.py +22 -50
  20. lightning_sdk/cli/list.py +281 -222
  21. lightning_sdk/cli/mmts_menu.py +1 -1
  22. lightning_sdk/cli/open.py +62 -0
  23. lightning_sdk/cli/run.py +430 -263
  24. lightning_sdk/cli/serve.py +128 -191
  25. lightning_sdk/cli/start.py +55 -36
  26. lightning_sdk/cli/stop.py +97 -55
  27. lightning_sdk/cli/switch.py +53 -36
  28. lightning_sdk/cli/upload.py +318 -255
  29. lightning_sdk/deployment/__init__.py +2 -0
  30. lightning_sdk/deployment/deployment.py +33 -8
  31. lightning_sdk/lightning_cloud/openapi/__init__.py +23 -0
  32. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  33. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +10 -6
  34. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +355 -4
  35. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +4 -4
  36. lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +14 -2
  37. lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +674 -0
  38. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +303 -4
  39. lightning_sdk/lightning_cloud/openapi/models/__init__.py +22 -0
  40. lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +17 -69
  41. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/create.py +27 -1
  43. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +53 -1
  44. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +105 -1
  45. lightning_sdk/lightning_cloud/openapi/models/id_visibility_body1.py +1 -27
  46. lightning_sdk/lightning_cloud/openapi/models/id_visibility_body2.py +149 -0
  47. lightning_sdk/lightning_cloud/openapi/models/org_id_memberships_body.py +27 -1
  48. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +157 -1
  49. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +461 -0
  50. lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +227 -0
  51. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +157 -1
  52. lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +79 -1
  53. lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body.py +1 -27
  54. lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +175 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +79 -1
  56. lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +17 -69
  57. lightning_sdk/lightning_cloud/openapi/models/v1_capacity_block_offering.py +27 -1
  58. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_artifact_event_type.py +1 -1
  59. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +131 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +79 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
  62. lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload_temporary_artifact_request.py +175 -0
  63. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +461 -0
  64. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +27 -1
  65. lightning_sdk/lightning_cloud/openapi/models/v1_create_job_request.py +201 -0
  66. lightning_sdk/lightning_cloud/openapi/models/v1_create_managed_endpoint_response.py +149 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_create_multi_machine_job_request.py +253 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_delete_pipeline_response.py +149 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +105 -1
  71. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_details.py +175 -0
  72. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +53 -1
  73. lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +201 -0
  74. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +53 -1
  75. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_mmt.py +53 -1
  76. lightning_sdk/lightning_cloud/openapi/models/v1_find_capacity_block_offering_response.py +29 -3
  77. lightning_sdk/lightning_cloud/openapi/models/v1_job.py +133 -3
  78. lightning_sdk/lightning_cloud/openapi/models/v1_job_artifacts_type.py +103 -0
  79. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +53 -1
  80. lightning_sdk/lightning_cloud/openapi/models/v1_job_timing.py +27 -1
  81. lightning_sdk/lightning_cloud/openapi/models/v1_list_pipelines_response.py +123 -0
  82. lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_artifact.py +27 -1
  83. lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +29 -1
  84. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
  85. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +27 -1
  86. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +2 -0
  87. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +209 -1
  88. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +513 -0
  89. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_schedule.py +149 -0
  90. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step.py +253 -0
  91. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_status.py +331 -0
  92. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_step_type.py +104 -0
  93. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +157 -1
  94. lightning_sdk/lightning_cloud/openapi/models/v1_restart_timing.py +27 -1
  95. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
  96. lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +201 -0
  97. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +27 -1
  98. lightning_sdk/lightning_cloud/openapi/models/v1_update_job_visibility_response.py +97 -0
  99. lightning_sdk/lightning_cloud/openapi/models/v1_upload_temporary_artifact_request.py +123 -0
  100. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +95 -355
  101. lightning_sdk/lightning_cloud/openapi/models/validate.py +27 -1
  102. lightning_sdk/lightning_cloud/rest_client.py +4 -2
  103. lightning_sdk/machine.py +25 -1
  104. lightning_sdk/models.py +18 -12
  105. lightning_sdk/pipeline/__init__.py +4 -0
  106. lightning_sdk/pipeline/pipeline.py +109 -0
  107. lightning_sdk/pipeline/types.py +268 -0
  108. lightning_sdk/pipeline/utils.py +69 -0
  109. lightning_sdk/plugin.py +9 -10
  110. lightning_sdk/serve.py +134 -0
  111. lightning_sdk/services/utilities.py +2 -2
  112. lightning_sdk/studio.py +5 -1
  113. lightning_sdk/teamspace.py +1 -1
  114. lightning_sdk/utils/resolve.py +12 -1
  115. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/METADATA +6 -8
  116. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/RECORD +120 -88
  117. lightning_sdk/cli/legacy.py +0 -135
  118. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/LICENSE +0 -0
  119. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/WHEEL +0 -0
  120. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/entry_points.txt +0 -0
  121. {lightning_sdk-0.1.58.dist-info → lightning_sdk-0.2.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,175 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1CompleteUploadTemporaryArtifactRequest(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
+ 'filename': 'str',
45
+ 'parts': 'list[V1CompleteUpload]',
46
+ 'upload_id': 'str'
47
+ }
48
+
49
+ attribute_map = {
50
+ 'filename': 'filename',
51
+ 'parts': 'parts',
52
+ 'upload_id': 'uploadId'
53
+ }
54
+
55
+ def __init__(self, filename: 'str' =None, parts: 'list[V1CompleteUpload]' =None, upload_id: 'str' =None): # noqa: E501
56
+ """V1CompleteUploadTemporaryArtifactRequest - a model defined in Swagger""" # noqa: E501
57
+ self._filename = None
58
+ self._parts = None
59
+ self._upload_id = None
60
+ self.discriminator = None
61
+ if filename is not None:
62
+ self.filename = filename
63
+ if parts is not None:
64
+ self.parts = parts
65
+ if upload_id is not None:
66
+ self.upload_id = upload_id
67
+
68
+ @property
69
+ def filename(self) -> 'str':
70
+ """Gets the filename of this V1CompleteUploadTemporaryArtifactRequest. # noqa: E501
71
+
72
+
73
+ :return: The filename of this V1CompleteUploadTemporaryArtifactRequest. # noqa: E501
74
+ :rtype: str
75
+ """
76
+ return self._filename
77
+
78
+ @filename.setter
79
+ def filename(self, filename: 'str'):
80
+ """Sets the filename of this V1CompleteUploadTemporaryArtifactRequest.
81
+
82
+
83
+ :param filename: The filename of this V1CompleteUploadTemporaryArtifactRequest. # noqa: E501
84
+ :type: str
85
+ """
86
+
87
+ self._filename = filename
88
+
89
+ @property
90
+ def parts(self) -> 'list[V1CompleteUpload]':
91
+ """Gets the parts of this V1CompleteUploadTemporaryArtifactRequest. # noqa: E501
92
+
93
+
94
+ :return: The parts of this V1CompleteUploadTemporaryArtifactRequest. # noqa: E501
95
+ :rtype: list[V1CompleteUpload]
96
+ """
97
+ return self._parts
98
+
99
+ @parts.setter
100
+ def parts(self, parts: 'list[V1CompleteUpload]'):
101
+ """Sets the parts of this V1CompleteUploadTemporaryArtifactRequest.
102
+
103
+
104
+ :param parts: The parts of this V1CompleteUploadTemporaryArtifactRequest. # noqa: E501
105
+ :type: list[V1CompleteUpload]
106
+ """
107
+
108
+ self._parts = parts
109
+
110
+ @property
111
+ def upload_id(self) -> 'str':
112
+ """Gets the upload_id of this V1CompleteUploadTemporaryArtifactRequest. # noqa: E501
113
+
114
+
115
+ :return: The upload_id of this V1CompleteUploadTemporaryArtifactRequest. # noqa: E501
116
+ :rtype: str
117
+ """
118
+ return self._upload_id
119
+
120
+ @upload_id.setter
121
+ def upload_id(self, upload_id: 'str'):
122
+ """Sets the upload_id of this V1CompleteUploadTemporaryArtifactRequest.
123
+
124
+
125
+ :param upload_id: The upload_id of this V1CompleteUploadTemporaryArtifactRequest. # noqa: E501
126
+ :type: str
127
+ """
128
+
129
+ self._upload_id = upload_id
130
+
131
+ def to_dict(self) -> dict:
132
+ """Returns the model properties as a dict"""
133
+ result = {}
134
+
135
+ for attr, _ in six.iteritems(self.swagger_types):
136
+ value = getattr(self, attr)
137
+ if isinstance(value, list):
138
+ result[attr] = list(map(
139
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
140
+ value
141
+ ))
142
+ elif hasattr(value, "to_dict"):
143
+ result[attr] = value.to_dict()
144
+ elif isinstance(value, dict):
145
+ result[attr] = dict(map(
146
+ lambda item: (item[0], item[1].to_dict())
147
+ if hasattr(item[1], "to_dict") else item,
148
+ value.items()
149
+ ))
150
+ else:
151
+ result[attr] = value
152
+ if issubclass(V1CompleteUploadTemporaryArtifactRequest, dict):
153
+ for key, value in self.items():
154
+ result[key] = value
155
+
156
+ return result
157
+
158
+ def to_str(self) -> str:
159
+ """Returns the string representation of the model"""
160
+ return pprint.pformat(self.to_dict())
161
+
162
+ def __repr__(self) -> str:
163
+ """For `print` and `pprint`"""
164
+ return self.to_str()
165
+
166
+ def __eq__(self, other: 'V1CompleteUploadTemporaryArtifactRequest') -> bool:
167
+ """Returns true if both objects are equal"""
168
+ if not isinstance(other, V1CompleteUploadTemporaryArtifactRequest):
169
+ return False
170
+
171
+ return self.__dict__ == other.__dict__
172
+
173
+ def __ne__(self, other: 'V1CompleteUploadTemporaryArtifactRequest') -> bool:
174
+ """Returns true if both objects are not equal"""
175
+ return not self == other
@@ -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