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,149 @@
|
|
|
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 V1DeletePipelineResponse(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
|
+
'id': 'str',
|
|
45
|
+
'project_id': 'str'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'id': 'id',
|
|
50
|
+
'project_id': 'projectId'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, id: 'str' =None, project_id: 'str' =None): # noqa: E501
|
|
54
|
+
"""V1DeletePipelineResponse - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._id = None
|
|
56
|
+
self._project_id = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if id is not None:
|
|
59
|
+
self.id = id
|
|
60
|
+
if project_id is not None:
|
|
61
|
+
self.project_id = project_id
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def id(self) -> 'str':
|
|
65
|
+
"""Gets the id of this V1DeletePipelineResponse. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The id of this V1DeletePipelineResponse. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._id
|
|
72
|
+
|
|
73
|
+
@id.setter
|
|
74
|
+
def id(self, id: 'str'):
|
|
75
|
+
"""Sets the id of this V1DeletePipelineResponse.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param id: The id of this V1DeletePipelineResponse. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._id = id
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def project_id(self) -> 'str':
|
|
86
|
+
"""Gets the project_id of this V1DeletePipelineResponse. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The project_id of this V1DeletePipelineResponse. # noqa: E501
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._project_id
|
|
93
|
+
|
|
94
|
+
@project_id.setter
|
|
95
|
+
def project_id(self, project_id: 'str'):
|
|
96
|
+
"""Sets the project_id of this V1DeletePipelineResponse.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param project_id: The project_id of this V1DeletePipelineResponse. # noqa: E501
|
|
100
|
+
:type: str
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._project_id = project_id
|
|
104
|
+
|
|
105
|
+
def to_dict(self) -> dict:
|
|
106
|
+
"""Returns the model properties as a dict"""
|
|
107
|
+
result = {}
|
|
108
|
+
|
|
109
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
110
|
+
value = getattr(self, attr)
|
|
111
|
+
if isinstance(value, list):
|
|
112
|
+
result[attr] = list(map(
|
|
113
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
114
|
+
value
|
|
115
|
+
))
|
|
116
|
+
elif hasattr(value, "to_dict"):
|
|
117
|
+
result[attr] = value.to_dict()
|
|
118
|
+
elif isinstance(value, dict):
|
|
119
|
+
result[attr] = dict(map(
|
|
120
|
+
lambda item: (item[0], item[1].to_dict())
|
|
121
|
+
if hasattr(item[1], "to_dict") else item,
|
|
122
|
+
value.items()
|
|
123
|
+
))
|
|
124
|
+
else:
|
|
125
|
+
result[attr] = value
|
|
126
|
+
if issubclass(V1DeletePipelineResponse, dict):
|
|
127
|
+
for key, value in self.items():
|
|
128
|
+
result[key] = value
|
|
129
|
+
|
|
130
|
+
return result
|
|
131
|
+
|
|
132
|
+
def to_str(self) -> str:
|
|
133
|
+
"""Returns the string representation of the model"""
|
|
134
|
+
return pprint.pformat(self.to_dict())
|
|
135
|
+
|
|
136
|
+
def __repr__(self) -> str:
|
|
137
|
+
"""For `print` and `pprint`"""
|
|
138
|
+
return self.to_str()
|
|
139
|
+
|
|
140
|
+
def __eq__(self, other: 'V1DeletePipelineResponse') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, V1DeletePipelineResponse):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'V1DeletePipelineResponse') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|
|
@@ -41,7 +41,9 @@ class V1Deployment(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'api_standard': 'str',
|
|
44
45
|
'apis': 'list[V1DeploymentAPI]',
|
|
46
|
+
'assistant_id': 'str',
|
|
45
47
|
'autoscaling': 'V1AutoscalingSpec',
|
|
46
48
|
'cloudspace_id': 'str',
|
|
47
49
|
'created_at': 'datetime',
|
|
@@ -50,8 +52,10 @@ class V1Deployment(object):
|
|
|
50
52
|
'endpoint': 'V1Endpoint',
|
|
51
53
|
'id': 'str',
|
|
52
54
|
'is_published': 'bool',
|
|
55
|
+
'managed_endpoint_id': 'str',
|
|
53
56
|
'name': 'str',
|
|
54
57
|
'parameter_spec': 'V1ParameterizationSpec',
|
|
58
|
+
'pipeline_id': 'str',
|
|
55
59
|
'project_id': 'str',
|
|
56
60
|
'release_id': 'str',
|
|
57
61
|
'replicas': 'int',
|
|
@@ -66,7 +70,9 @@ class V1Deployment(object):
|
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
attribute_map = {
|
|
73
|
+
'api_standard': 'apiStandard',
|
|
69
74
|
'apis': 'apis',
|
|
75
|
+
'assistant_id': 'assistantId',
|
|
70
76
|
'autoscaling': 'autoscaling',
|
|
71
77
|
'cloudspace_id': 'cloudspaceId',
|
|
72
78
|
'created_at': 'createdAt',
|
|
@@ -75,8 +81,10 @@ class V1Deployment(object):
|
|
|
75
81
|
'endpoint': 'endpoint',
|
|
76
82
|
'id': 'id',
|
|
77
83
|
'is_published': 'isPublished',
|
|
84
|
+
'managed_endpoint_id': 'managedEndpointId',
|
|
78
85
|
'name': 'name',
|
|
79
86
|
'parameter_spec': 'parameterSpec',
|
|
87
|
+
'pipeline_id': 'pipelineId',
|
|
80
88
|
'project_id': 'projectId',
|
|
81
89
|
'release_id': 'releaseId',
|
|
82
90
|
'replicas': 'replicas',
|
|
@@ -90,9 +98,11 @@ class V1Deployment(object):
|
|
|
90
98
|
'visibility': 'visibility'
|
|
91
99
|
}
|
|
92
100
|
|
|
93
|
-
def __init__(self, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
101
|
+
def __init__(self, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, assistant_id: 'str' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, managed_endpoint_id: 'str' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, pipeline_id: 'str' =None, project_id: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
94
102
|
"""V1Deployment - a model defined in Swagger""" # noqa: E501
|
|
103
|
+
self._api_standard = None
|
|
95
104
|
self._apis = None
|
|
105
|
+
self._assistant_id = None
|
|
96
106
|
self._autoscaling = None
|
|
97
107
|
self._cloudspace_id = None
|
|
98
108
|
self._created_at = None
|
|
@@ -101,8 +111,10 @@ class V1Deployment(object):
|
|
|
101
111
|
self._endpoint = None
|
|
102
112
|
self._id = None
|
|
103
113
|
self._is_published = None
|
|
114
|
+
self._managed_endpoint_id = None
|
|
104
115
|
self._name = None
|
|
105
116
|
self._parameter_spec = None
|
|
117
|
+
self._pipeline_id = None
|
|
106
118
|
self._project_id = None
|
|
107
119
|
self._release_id = None
|
|
108
120
|
self._replicas = None
|
|
@@ -115,8 +127,12 @@ class V1Deployment(object):
|
|
|
115
127
|
self._user_id = None
|
|
116
128
|
self._visibility = None
|
|
117
129
|
self.discriminator = None
|
|
130
|
+
if api_standard is not None:
|
|
131
|
+
self.api_standard = api_standard
|
|
118
132
|
if apis is not None:
|
|
119
133
|
self.apis = apis
|
|
134
|
+
if assistant_id is not None:
|
|
135
|
+
self.assistant_id = assistant_id
|
|
120
136
|
if autoscaling is not None:
|
|
121
137
|
self.autoscaling = autoscaling
|
|
122
138
|
if cloudspace_id is not None:
|
|
@@ -133,10 +149,14 @@ class V1Deployment(object):
|
|
|
133
149
|
self.id = id
|
|
134
150
|
if is_published is not None:
|
|
135
151
|
self.is_published = is_published
|
|
152
|
+
if managed_endpoint_id is not None:
|
|
153
|
+
self.managed_endpoint_id = managed_endpoint_id
|
|
136
154
|
if name is not None:
|
|
137
155
|
self.name = name
|
|
138
156
|
if parameter_spec is not None:
|
|
139
157
|
self.parameter_spec = parameter_spec
|
|
158
|
+
if pipeline_id is not None:
|
|
159
|
+
self.pipeline_id = pipeline_id
|
|
140
160
|
if project_id is not None:
|
|
141
161
|
self.project_id = project_id
|
|
142
162
|
if release_id is not None:
|
|
@@ -160,6 +180,27 @@ class V1Deployment(object):
|
|
|
160
180
|
if visibility is not None:
|
|
161
181
|
self.visibility = visibility
|
|
162
182
|
|
|
183
|
+
@property
|
|
184
|
+
def api_standard(self) -> 'str':
|
|
185
|
+
"""Gets the api_standard of this V1Deployment. # noqa: E501
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
:return: The api_standard of this V1Deployment. # noqa: E501
|
|
189
|
+
:rtype: str
|
|
190
|
+
"""
|
|
191
|
+
return self._api_standard
|
|
192
|
+
|
|
193
|
+
@api_standard.setter
|
|
194
|
+
def api_standard(self, api_standard: 'str'):
|
|
195
|
+
"""Sets the api_standard of this V1Deployment.
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
:param api_standard: The api_standard of this V1Deployment. # noqa: E501
|
|
199
|
+
:type: str
|
|
200
|
+
"""
|
|
201
|
+
|
|
202
|
+
self._api_standard = api_standard
|
|
203
|
+
|
|
163
204
|
@property
|
|
164
205
|
def apis(self) -> 'list[V1DeploymentAPI]':
|
|
165
206
|
"""Gets the apis of this V1Deployment. # noqa: E501
|
|
@@ -181,6 +222,27 @@ class V1Deployment(object):
|
|
|
181
222
|
|
|
182
223
|
self._apis = apis
|
|
183
224
|
|
|
225
|
+
@property
|
|
226
|
+
def assistant_id(self) -> 'str':
|
|
227
|
+
"""Gets the assistant_id of this V1Deployment. # noqa: E501
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
:return: The assistant_id of this V1Deployment. # noqa: E501
|
|
231
|
+
:rtype: str
|
|
232
|
+
"""
|
|
233
|
+
return self._assistant_id
|
|
234
|
+
|
|
235
|
+
@assistant_id.setter
|
|
236
|
+
def assistant_id(self, assistant_id: 'str'):
|
|
237
|
+
"""Sets the assistant_id of this V1Deployment.
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
:param assistant_id: The assistant_id of this V1Deployment. # noqa: E501
|
|
241
|
+
:type: str
|
|
242
|
+
"""
|
|
243
|
+
|
|
244
|
+
self._assistant_id = assistant_id
|
|
245
|
+
|
|
184
246
|
@property
|
|
185
247
|
def autoscaling(self) -> 'V1AutoscalingSpec':
|
|
186
248
|
"""Gets the autoscaling of this V1Deployment. # noqa: E501
|
|
@@ -349,6 +411,27 @@ class V1Deployment(object):
|
|
|
349
411
|
|
|
350
412
|
self._is_published = is_published
|
|
351
413
|
|
|
414
|
+
@property
|
|
415
|
+
def managed_endpoint_id(self) -> 'str':
|
|
416
|
+
"""Gets the managed_endpoint_id of this V1Deployment. # noqa: E501
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
:return: The managed_endpoint_id of this V1Deployment. # noqa: E501
|
|
420
|
+
:rtype: str
|
|
421
|
+
"""
|
|
422
|
+
return self._managed_endpoint_id
|
|
423
|
+
|
|
424
|
+
@managed_endpoint_id.setter
|
|
425
|
+
def managed_endpoint_id(self, managed_endpoint_id: 'str'):
|
|
426
|
+
"""Sets the managed_endpoint_id of this V1Deployment.
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
:param managed_endpoint_id: The managed_endpoint_id of this V1Deployment. # noqa: E501
|
|
430
|
+
:type: str
|
|
431
|
+
"""
|
|
432
|
+
|
|
433
|
+
self._managed_endpoint_id = managed_endpoint_id
|
|
434
|
+
|
|
352
435
|
@property
|
|
353
436
|
def name(self) -> 'str':
|
|
354
437
|
"""Gets the name of this V1Deployment. # noqa: E501
|
|
@@ -391,6 +474,27 @@ class V1Deployment(object):
|
|
|
391
474
|
|
|
392
475
|
self._parameter_spec = parameter_spec
|
|
393
476
|
|
|
477
|
+
@property
|
|
478
|
+
def pipeline_id(self) -> 'str':
|
|
479
|
+
"""Gets the pipeline_id of this V1Deployment. # noqa: E501
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
:return: The pipeline_id of this V1Deployment. # noqa: E501
|
|
483
|
+
:rtype: str
|
|
484
|
+
"""
|
|
485
|
+
return self._pipeline_id
|
|
486
|
+
|
|
487
|
+
@pipeline_id.setter
|
|
488
|
+
def pipeline_id(self, pipeline_id: 'str'):
|
|
489
|
+
"""Sets the pipeline_id of this V1Deployment.
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
:param pipeline_id: The pipeline_id of this V1Deployment. # noqa: E501
|
|
493
|
+
:type: str
|
|
494
|
+
"""
|
|
495
|
+
|
|
496
|
+
self._pipeline_id = pipeline_id
|
|
497
|
+
|
|
394
498
|
@property
|
|
395
499
|
def project_id(self) -> 'str':
|
|
396
500
|
"""Gets the project_id of this V1Deployment. # noqa: E501
|
|
@@ -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 V1DeploymentDetails(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
|
+
'name': 'str',
|
|
45
|
+
'org_name': 'str',
|
|
46
|
+
'project_name': 'str'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'name': 'name',
|
|
51
|
+
'org_name': 'orgName',
|
|
52
|
+
'project_name': 'projectName'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, name: 'str' =None, org_name: 'str' =None, project_name: 'str' =None): # noqa: E501
|
|
56
|
+
"""V1DeploymentDetails - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._name = None
|
|
58
|
+
self._org_name = None
|
|
59
|
+
self._project_name = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if name is not None:
|
|
62
|
+
self.name = name
|
|
63
|
+
if org_name is not None:
|
|
64
|
+
self.org_name = org_name
|
|
65
|
+
if project_name is not None:
|
|
66
|
+
self.project_name = project_name
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def name(self) -> 'str':
|
|
70
|
+
"""Gets the name of this V1DeploymentDetails. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The name of this V1DeploymentDetails. # noqa: E501
|
|
74
|
+
:rtype: str
|
|
75
|
+
"""
|
|
76
|
+
return self._name
|
|
77
|
+
|
|
78
|
+
@name.setter
|
|
79
|
+
def name(self, name: 'str'):
|
|
80
|
+
"""Sets the name of this V1DeploymentDetails.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param name: The name of this V1DeploymentDetails. # noqa: E501
|
|
84
|
+
:type: str
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._name = name
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def org_name(self) -> 'str':
|
|
91
|
+
"""Gets the org_name of this V1DeploymentDetails. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The org_name of this V1DeploymentDetails. # noqa: E501
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._org_name
|
|
98
|
+
|
|
99
|
+
@org_name.setter
|
|
100
|
+
def org_name(self, org_name: 'str'):
|
|
101
|
+
"""Sets the org_name of this V1DeploymentDetails.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param org_name: The org_name of this V1DeploymentDetails. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._org_name = org_name
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def project_name(self) -> 'str':
|
|
112
|
+
"""Gets the project_name of this V1DeploymentDetails. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The project_name of this V1DeploymentDetails. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._project_name
|
|
119
|
+
|
|
120
|
+
@project_name.setter
|
|
121
|
+
def project_name(self, project_name: 'str'):
|
|
122
|
+
"""Sets the project_name of this V1DeploymentDetails.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param project_name: The project_name of this V1DeploymentDetails. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._project_name = project_name
|
|
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(V1DeploymentDetails, 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: 'V1DeploymentDetails') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, V1DeploymentDetails):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'V1DeploymentDetails') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
|
@@ -43,6 +43,7 @@ class V1DeploymentTemplate(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'about_page_content': 'str',
|
|
45
45
|
'about_page_id': 'str',
|
|
46
|
+
'api_standard': 'str',
|
|
46
47
|
'categories': 'list[str]',
|
|
47
48
|
'created_at': 'datetime',
|
|
48
49
|
'deployment_id': 'str',
|
|
@@ -59,6 +60,7 @@ class V1DeploymentTemplate(object):
|
|
|
59
60
|
'project_id': 'str',
|
|
60
61
|
'spec': 'V1JobSpec',
|
|
61
62
|
'spec_v2': 'V1DeploymentSpec',
|
|
63
|
+
'studio_url': 'str',
|
|
62
64
|
'tags': 'list[V1ResourceTag]',
|
|
63
65
|
'thumbnail_updated_at': 'datetime',
|
|
64
66
|
'thumbnail_url': 'str',
|
|
@@ -70,6 +72,7 @@ class V1DeploymentTemplate(object):
|
|
|
70
72
|
attribute_map = {
|
|
71
73
|
'about_page_content': 'aboutPageContent',
|
|
72
74
|
'about_page_id': 'aboutPageId',
|
|
75
|
+
'api_standard': 'apiStandard',
|
|
73
76
|
'categories': 'categories',
|
|
74
77
|
'created_at': 'createdAt',
|
|
75
78
|
'deployment_id': 'deploymentId',
|
|
@@ -86,6 +89,7 @@ class V1DeploymentTemplate(object):
|
|
|
86
89
|
'project_id': 'projectId',
|
|
87
90
|
'spec': 'spec',
|
|
88
91
|
'spec_v2': 'specV2',
|
|
92
|
+
'studio_url': 'studioUrl',
|
|
89
93
|
'tags': 'tags',
|
|
90
94
|
'thumbnail_updated_at': 'thumbnailUpdatedAt',
|
|
91
95
|
'thumbnail_url': 'thumbnailUrl',
|
|
@@ -94,10 +98,11 @@ class V1DeploymentTemplate(object):
|
|
|
94
98
|
'user_id': 'userId'
|
|
95
99
|
}
|
|
96
100
|
|
|
97
|
-
def __init__(self, about_page_content: 'str' =None, about_page_id: 'str' =None, categories: 'list[str]' =None, created_at: 'datetime' =None, deployment_id: 'str' =None, description: 'str' =None, featured: 'bool' =None, globally_visible: 'bool' =None, id: 'str' =None, image_url: 'str' =None, metrics: 'V1DeploymentMetrics' =None, name: 'str' =None, org_id: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, pricing: 'V1ApiPricingSpec' =None, project_id: 'str' =None, spec: 'V1JobSpec' =None, spec_v2: 'V1DeploymentSpec' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, unpublished: 'bool' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
101
|
+
def __init__(self, about_page_content: 'str' =None, about_page_id: 'str' =None, api_standard: 'str' =None, categories: 'list[str]' =None, created_at: 'datetime' =None, deployment_id: 'str' =None, description: 'str' =None, featured: 'bool' =None, globally_visible: 'bool' =None, id: 'str' =None, image_url: 'str' =None, metrics: 'V1DeploymentMetrics' =None, name: 'str' =None, org_id: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, pricing: 'V1ApiPricingSpec' =None, project_id: 'str' =None, spec: 'V1JobSpec' =None, spec_v2: 'V1DeploymentSpec' =None, studio_url: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, unpublished: 'bool' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
98
102
|
"""V1DeploymentTemplate - a model defined in Swagger""" # noqa: E501
|
|
99
103
|
self._about_page_content = None
|
|
100
104
|
self._about_page_id = None
|
|
105
|
+
self._api_standard = None
|
|
101
106
|
self._categories = None
|
|
102
107
|
self._created_at = None
|
|
103
108
|
self._deployment_id = None
|
|
@@ -114,6 +119,7 @@ class V1DeploymentTemplate(object):
|
|
|
114
119
|
self._project_id = None
|
|
115
120
|
self._spec = None
|
|
116
121
|
self._spec_v2 = None
|
|
122
|
+
self._studio_url = None
|
|
117
123
|
self._tags = None
|
|
118
124
|
self._thumbnail_updated_at = None
|
|
119
125
|
self._thumbnail_url = None
|
|
@@ -125,6 +131,8 @@ class V1DeploymentTemplate(object):
|
|
|
125
131
|
self.about_page_content = about_page_content
|
|
126
132
|
if about_page_id is not None:
|
|
127
133
|
self.about_page_id = about_page_id
|
|
134
|
+
if api_standard is not None:
|
|
135
|
+
self.api_standard = api_standard
|
|
128
136
|
if categories is not None:
|
|
129
137
|
self.categories = categories
|
|
130
138
|
if created_at is not None:
|
|
@@ -157,6 +165,8 @@ class V1DeploymentTemplate(object):
|
|
|
157
165
|
self.spec = spec
|
|
158
166
|
if spec_v2 is not None:
|
|
159
167
|
self.spec_v2 = spec_v2
|
|
168
|
+
if studio_url is not None:
|
|
169
|
+
self.studio_url = studio_url
|
|
160
170
|
if tags is not None:
|
|
161
171
|
self.tags = tags
|
|
162
172
|
if thumbnail_updated_at is not None:
|
|
@@ -212,6 +222,27 @@ class V1DeploymentTemplate(object):
|
|
|
212
222
|
|
|
213
223
|
self._about_page_id = about_page_id
|
|
214
224
|
|
|
225
|
+
@property
|
|
226
|
+
def api_standard(self) -> 'str':
|
|
227
|
+
"""Gets the api_standard of this V1DeploymentTemplate. # noqa: E501
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
:return: The api_standard of this V1DeploymentTemplate. # noqa: E501
|
|
231
|
+
:rtype: str
|
|
232
|
+
"""
|
|
233
|
+
return self._api_standard
|
|
234
|
+
|
|
235
|
+
@api_standard.setter
|
|
236
|
+
def api_standard(self, api_standard: 'str'):
|
|
237
|
+
"""Sets the api_standard of this V1DeploymentTemplate.
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
:param api_standard: The api_standard of this V1DeploymentTemplate. # noqa: E501
|
|
241
|
+
:type: str
|
|
242
|
+
"""
|
|
243
|
+
|
|
244
|
+
self._api_standard = api_standard
|
|
245
|
+
|
|
215
246
|
@property
|
|
216
247
|
def categories(self) -> 'list[str]':
|
|
217
248
|
"""Gets the categories of this V1DeploymentTemplate. # noqa: E501
|
|
@@ -548,6 +579,27 @@ class V1DeploymentTemplate(object):
|
|
|
548
579
|
|
|
549
580
|
self._spec_v2 = spec_v2
|
|
550
581
|
|
|
582
|
+
@property
|
|
583
|
+
def studio_url(self) -> 'str':
|
|
584
|
+
"""Gets the studio_url of this V1DeploymentTemplate. # noqa: E501
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
:return: The studio_url of this V1DeploymentTemplate. # noqa: E501
|
|
588
|
+
:rtype: str
|
|
589
|
+
"""
|
|
590
|
+
return self._studio_url
|
|
591
|
+
|
|
592
|
+
@studio_url.setter
|
|
593
|
+
def studio_url(self, studio_url: 'str'):
|
|
594
|
+
"""Sets the studio_url of this V1DeploymentTemplate.
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
:param studio_url: The studio_url of this V1DeploymentTemplate. # noqa: E501
|
|
598
|
+
:type: str
|
|
599
|
+
"""
|
|
600
|
+
|
|
601
|
+
self._studio_url = studio_url
|
|
602
|
+
|
|
551
603
|
@property
|
|
552
604
|
def tags(self) -> 'list[V1ResourceTag]':
|
|
553
605
|
"""Gets the tags of this V1DeploymentTemplate. # noqa: E501
|