lightning-sdk 0.1.55__py3-none-any.whl → 0.1.57__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 +3 -2
- lightning_sdk/ai_hub.py +22 -0
- lightning_sdk/api/ai_hub_api.py +21 -2
- lightning_sdk/api/deployment_api.py +4 -3
- lightning_sdk/api/job_api.py +5 -10
- lightning_sdk/api/mmt_api.py +1 -4
- lightning_sdk/api/studio_api.py +5 -7
- lightning_sdk/api/teamspace_api.py +7 -0
- lightning_sdk/api/utils.py +1 -27
- lightning_sdk/cli/ai_hub.py +61 -10
- lightning_sdk/cli/configure.py +137 -0
- lightning_sdk/cli/connect.py +47 -0
- lightning_sdk/cli/delete.py +83 -32
- lightning_sdk/cli/download.py +177 -90
- lightning_sdk/cli/entrypoint.py +50 -15
- lightning_sdk/cli/generate.py +51 -42
- lightning_sdk/cli/inspect.py +45 -3
- lightning_sdk/cli/jobs_menu.py +2 -1
- lightning_sdk/cli/list.py +139 -55
- lightning_sdk/cli/mmts_menu.py +2 -1
- lightning_sdk/cli/run.py +3 -9
- lightning_sdk/cli/serve.py +1 -2
- lightning_sdk/cli/start.py +2 -2
- lightning_sdk/cli/stop.py +5 -3
- lightning_sdk/cli/studios_menu.py +24 -1
- lightning_sdk/cli/switch.py +2 -2
- lightning_sdk/cli/teamspace_menu.py +2 -1
- lightning_sdk/cli/upload.py +6 -4
- lightning_sdk/helpers.py +20 -0
- lightning_sdk/job/job.py +1 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +9 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +226 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +4 -4
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +7 -3
- lightning_sdk/lightning_cloud/openapi/api/projects_service_api.py +1 -5
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +9 -0
- lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/id_reportrestarttimings_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/id_visibility_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/model_id_visibility_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_litregistry_body.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/setup.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_gcp_data_connection_setup.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cluster_accelerator_demand_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_artifact.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +8 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_report_restart_timings_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_restart_timing.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_setup_data_connection_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_deployment_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_metrics_stream_visibility_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_model_visibility_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_request.py +27 -1
- lightning_sdk/machine.py +59 -27
- lightning_sdk/studio.py +5 -1
- lightning_sdk/teamspace.py +25 -0
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.dist-info}/METADATA +3 -1
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.dist-info}/RECORD +72 -61
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.55.dist-info → lightning_sdk-0.1.57.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 Setup(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
|
+
'cluster_ids': 'list[str]',
|
|
45
|
+
'gcp': 'V1GcpDataConnection'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'cluster_ids': 'clusterIds',
|
|
50
|
+
'gcp': 'gcp'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, cluster_ids: 'list[str]' =None, gcp: 'V1GcpDataConnection' =None): # noqa: E501
|
|
54
|
+
"""Setup - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._cluster_ids = None
|
|
56
|
+
self._gcp = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if cluster_ids is not None:
|
|
59
|
+
self.cluster_ids = cluster_ids
|
|
60
|
+
if gcp is not None:
|
|
61
|
+
self.gcp = gcp
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def cluster_ids(self) -> 'list[str]':
|
|
65
|
+
"""Gets the cluster_ids of this Setup. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The cluster_ids of this Setup. # noqa: E501
|
|
69
|
+
:rtype: list[str]
|
|
70
|
+
"""
|
|
71
|
+
return self._cluster_ids
|
|
72
|
+
|
|
73
|
+
@cluster_ids.setter
|
|
74
|
+
def cluster_ids(self, cluster_ids: 'list[str]'):
|
|
75
|
+
"""Sets the cluster_ids of this Setup.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param cluster_ids: The cluster_ids of this Setup. # noqa: E501
|
|
79
|
+
:type: list[str]
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._cluster_ids = cluster_ids
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def gcp(self) -> 'V1GcpDataConnection':
|
|
86
|
+
"""Gets the gcp of this Setup. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The gcp of this Setup. # noqa: E501
|
|
90
|
+
:rtype: V1GcpDataConnection
|
|
91
|
+
"""
|
|
92
|
+
return self._gcp
|
|
93
|
+
|
|
94
|
+
@gcp.setter
|
|
95
|
+
def gcp(self, gcp: 'V1GcpDataConnection'):
|
|
96
|
+
"""Sets the gcp of this Setup.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param gcp: The gcp of this Setup. # noqa: E501
|
|
100
|
+
:type: V1GcpDataConnection
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._gcp = gcp
|
|
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(Setup, 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: 'Setup') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, Setup):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'Setup') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|
|
@@ -44,6 +44,9 @@ class V1Assistant(object):
|
|
|
44
44
|
'cloudspace_id': 'str',
|
|
45
45
|
'cluster_id': 'str',
|
|
46
46
|
'created_at': 'datetime',
|
|
47
|
+
'deployment_name': 'str',
|
|
48
|
+
'deployment_org_name': 'str',
|
|
49
|
+
'deployment_project_name': 'str',
|
|
47
50
|
'description': 'str',
|
|
48
51
|
'endpoint_id': 'str',
|
|
49
52
|
'expected_cold_start_time': 'str',
|
|
@@ -52,6 +55,7 @@ class V1Assistant(object):
|
|
|
52
55
|
'internal_assistant_name': 'str',
|
|
53
56
|
'knowledge': 'str',
|
|
54
57
|
'knowledge_configuration': 'V1KnowledgeConfiguration',
|
|
58
|
+
'managed_endpoint_id': 'str',
|
|
55
59
|
'model': 'str',
|
|
56
60
|
'model_provider': 'str',
|
|
57
61
|
'name': 'str',
|
|
@@ -70,6 +74,9 @@ class V1Assistant(object):
|
|
|
70
74
|
'cloudspace_id': 'cloudspaceId',
|
|
71
75
|
'cluster_id': 'clusterId',
|
|
72
76
|
'created_at': 'createdAt',
|
|
77
|
+
'deployment_name': 'deploymentName',
|
|
78
|
+
'deployment_org_name': 'deploymentOrgName',
|
|
79
|
+
'deployment_project_name': 'deploymentProjectName',
|
|
73
80
|
'description': 'description',
|
|
74
81
|
'endpoint_id': 'endpointId',
|
|
75
82
|
'expected_cold_start_time': 'expectedColdStartTime',
|
|
@@ -78,6 +85,7 @@ class V1Assistant(object):
|
|
|
78
85
|
'internal_assistant_name': 'internalAssistantName',
|
|
79
86
|
'knowledge': 'knowledge',
|
|
80
87
|
'knowledge_configuration': 'knowledgeConfiguration',
|
|
88
|
+
'managed_endpoint_id': 'managedEndpointId',
|
|
81
89
|
'model': 'model',
|
|
82
90
|
'model_provider': 'modelProvider',
|
|
83
91
|
'name': 'name',
|
|
@@ -92,11 +100,14 @@ class V1Assistant(object):
|
|
|
92
100
|
'user_id': 'userId'
|
|
93
101
|
}
|
|
94
102
|
|
|
95
|
-
def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, description: 'str' =None, endpoint_id: 'str' =None, expected_cold_start_time: 'str' =None, file_uploads_enabled: 'bool' =None, id: 'str' =None, internal_assistant_name: 'str' =None, knowledge: 'str' =None, knowledge_configuration: 'V1KnowledgeConfiguration' =None, model: 'str' =None, model_provider: 'str' =None, name: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, prompt_suggestions: 'list[V1PromptSuggestion]' =None, prompt_template: 'str' =None, publish_status: 'str' =None, status: 'V1AssistantModelStatus' =None, thumbnail_url: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
103
|
+
def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, deployment_name: 'str' =None, deployment_org_name: 'str' =None, deployment_project_name: 'str' =None, description: 'str' =None, endpoint_id: 'str' =None, expected_cold_start_time: 'str' =None, file_uploads_enabled: 'bool' =None, id: 'str' =None, internal_assistant_name: 'str' =None, knowledge: 'str' =None, knowledge_configuration: 'V1KnowledgeConfiguration' =None, managed_endpoint_id: 'str' =None, model: 'str' =None, model_provider: 'str' =None, name: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, prompt_suggestions: 'list[V1PromptSuggestion]' =None, prompt_template: 'str' =None, publish_status: 'str' =None, status: 'V1AssistantModelStatus' =None, thumbnail_url: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
96
104
|
"""V1Assistant - a model defined in Swagger""" # noqa: E501
|
|
97
105
|
self._cloudspace_id = None
|
|
98
106
|
self._cluster_id = None
|
|
99
107
|
self._created_at = None
|
|
108
|
+
self._deployment_name = None
|
|
109
|
+
self._deployment_org_name = None
|
|
110
|
+
self._deployment_project_name = None
|
|
100
111
|
self._description = None
|
|
101
112
|
self._endpoint_id = None
|
|
102
113
|
self._expected_cold_start_time = None
|
|
@@ -105,6 +116,7 @@ class V1Assistant(object):
|
|
|
105
116
|
self._internal_assistant_name = None
|
|
106
117
|
self._knowledge = None
|
|
107
118
|
self._knowledge_configuration = None
|
|
119
|
+
self._managed_endpoint_id = None
|
|
108
120
|
self._model = None
|
|
109
121
|
self._model_provider = None
|
|
110
122
|
self._name = None
|
|
@@ -124,6 +136,12 @@ class V1Assistant(object):
|
|
|
124
136
|
self.cluster_id = cluster_id
|
|
125
137
|
if created_at is not None:
|
|
126
138
|
self.created_at = created_at
|
|
139
|
+
if deployment_name is not None:
|
|
140
|
+
self.deployment_name = deployment_name
|
|
141
|
+
if deployment_org_name is not None:
|
|
142
|
+
self.deployment_org_name = deployment_org_name
|
|
143
|
+
if deployment_project_name is not None:
|
|
144
|
+
self.deployment_project_name = deployment_project_name
|
|
127
145
|
if description is not None:
|
|
128
146
|
self.description = description
|
|
129
147
|
if endpoint_id is not None:
|
|
@@ -140,6 +158,8 @@ class V1Assistant(object):
|
|
|
140
158
|
self.knowledge = knowledge
|
|
141
159
|
if knowledge_configuration is not None:
|
|
142
160
|
self.knowledge_configuration = knowledge_configuration
|
|
161
|
+
if managed_endpoint_id is not None:
|
|
162
|
+
self.managed_endpoint_id = managed_endpoint_id
|
|
143
163
|
if model is not None:
|
|
144
164
|
self.model = model
|
|
145
165
|
if model_provider is not None:
|
|
@@ -228,6 +248,69 @@ class V1Assistant(object):
|
|
|
228
248
|
|
|
229
249
|
self._created_at = created_at
|
|
230
250
|
|
|
251
|
+
@property
|
|
252
|
+
def deployment_name(self) -> 'str':
|
|
253
|
+
"""Gets the deployment_name of this V1Assistant. # noqa: E501
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
:return: The deployment_name of this V1Assistant. # noqa: E501
|
|
257
|
+
:rtype: str
|
|
258
|
+
"""
|
|
259
|
+
return self._deployment_name
|
|
260
|
+
|
|
261
|
+
@deployment_name.setter
|
|
262
|
+
def deployment_name(self, deployment_name: 'str'):
|
|
263
|
+
"""Sets the deployment_name of this V1Assistant.
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
:param deployment_name: The deployment_name of this V1Assistant. # noqa: E501
|
|
267
|
+
:type: str
|
|
268
|
+
"""
|
|
269
|
+
|
|
270
|
+
self._deployment_name = deployment_name
|
|
271
|
+
|
|
272
|
+
@property
|
|
273
|
+
def deployment_org_name(self) -> 'str':
|
|
274
|
+
"""Gets the deployment_org_name of this V1Assistant. # noqa: E501
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
:return: The deployment_org_name of this V1Assistant. # noqa: E501
|
|
278
|
+
:rtype: str
|
|
279
|
+
"""
|
|
280
|
+
return self._deployment_org_name
|
|
281
|
+
|
|
282
|
+
@deployment_org_name.setter
|
|
283
|
+
def deployment_org_name(self, deployment_org_name: 'str'):
|
|
284
|
+
"""Sets the deployment_org_name of this V1Assistant.
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
:param deployment_org_name: The deployment_org_name of this V1Assistant. # noqa: E501
|
|
288
|
+
:type: str
|
|
289
|
+
"""
|
|
290
|
+
|
|
291
|
+
self._deployment_org_name = deployment_org_name
|
|
292
|
+
|
|
293
|
+
@property
|
|
294
|
+
def deployment_project_name(self) -> 'str':
|
|
295
|
+
"""Gets the deployment_project_name of this V1Assistant. # noqa: E501
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
:return: The deployment_project_name of this V1Assistant. # noqa: E501
|
|
299
|
+
:rtype: str
|
|
300
|
+
"""
|
|
301
|
+
return self._deployment_project_name
|
|
302
|
+
|
|
303
|
+
@deployment_project_name.setter
|
|
304
|
+
def deployment_project_name(self, deployment_project_name: 'str'):
|
|
305
|
+
"""Sets the deployment_project_name of this V1Assistant.
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
:param deployment_project_name: The deployment_project_name of this V1Assistant. # noqa: E501
|
|
309
|
+
:type: str
|
|
310
|
+
"""
|
|
311
|
+
|
|
312
|
+
self._deployment_project_name = deployment_project_name
|
|
313
|
+
|
|
231
314
|
@property
|
|
232
315
|
def description(self) -> 'str':
|
|
233
316
|
"""Gets the description of this V1Assistant. # noqa: E501
|
|
@@ -396,6 +479,27 @@ class V1Assistant(object):
|
|
|
396
479
|
|
|
397
480
|
self._knowledge_configuration = knowledge_configuration
|
|
398
481
|
|
|
482
|
+
@property
|
|
483
|
+
def managed_endpoint_id(self) -> 'str':
|
|
484
|
+
"""Gets the managed_endpoint_id of this V1Assistant. # noqa: E501
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
:return: The managed_endpoint_id of this V1Assistant. # noqa: E501
|
|
488
|
+
:rtype: str
|
|
489
|
+
"""
|
|
490
|
+
return self._managed_endpoint_id
|
|
491
|
+
|
|
492
|
+
@managed_endpoint_id.setter
|
|
493
|
+
def managed_endpoint_id(self, managed_endpoint_id: 'str'):
|
|
494
|
+
"""Sets the managed_endpoint_id of this V1Assistant.
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
:param managed_endpoint_id: The managed_endpoint_id of this V1Assistant. # noqa: E501
|
|
498
|
+
:type: str
|
|
499
|
+
"""
|
|
500
|
+
|
|
501
|
+
self._managed_endpoint_id = managed_endpoint_id
|
|
502
|
+
|
|
399
503
|
@property
|
|
400
504
|
def model(self) -> 'str':
|
|
401
505
|
"""Gets the model of this V1Assistant. # noqa: E501
|
|
@@ -78,6 +78,7 @@ class V1ClusterAccelerator(object):
|
|
|
78
78
|
'reservation_available_zones': 'list[str]',
|
|
79
79
|
'resources': 'V1Resources',
|
|
80
80
|
'slug': 'str',
|
|
81
|
+
'slug_multi_cloud': 'str',
|
|
81
82
|
'spot_price': 'float',
|
|
82
83
|
'spot_quota_code': 'str',
|
|
83
84
|
'spot_quota_name': 'str',
|
|
@@ -122,13 +123,14 @@ class V1ClusterAccelerator(object):
|
|
|
122
123
|
'reservation_available_zones': 'reservationAvailableZones',
|
|
123
124
|
'resources': 'resources',
|
|
124
125
|
'slug': 'slug',
|
|
126
|
+
'slug_multi_cloud': 'slugMultiCloud',
|
|
125
127
|
'spot_price': 'spotPrice',
|
|
126
128
|
'spot_quota_code': 'spotQuotaCode',
|
|
127
129
|
'spot_quota_name': 'spotQuotaName',
|
|
128
130
|
'spot_quota_page_url': 'spotQuotaPageUrl'
|
|
129
131
|
}
|
|
130
132
|
|
|
131
|
-
def __init__(self, accelerator_type: 'str' =None, allowed_resources: 'list[str]' =None, available_in_seconds: 'str' =None, available_in_seconds_spot: 'str' =None, available_zones: 'list[str]' =None, byoc_only: 'bool' =None, capacity_block_only: 'bool' =None, capacity_block_price: 'float' =None, capacity_blocks_available: 'list[V1ClusterCapacityReservation]' =None, cluster_id: 'str' =None, cost: 'float' =None, detailed_quotas_info: 'list[V1AcceleratorQuotaInfo]' =None, device_card: 'str' =None, device_info: 'str' =None, display_name: 'str' =None, dws_only: 'bool' =None, enabled: 'bool' =None, family: 'str' =None, instance_id: 'str' =None, is_custom: 'bool' =None, is_tier_restricted: 'bool' =None, local_disk_size: 'str' =None, local_disk_supported: 'bool' =None, max_available_quota: 'str' =None, non_spot: 'bool' =None, provider: 'V1CloudProvider' =None, quota_checked_at: 'datetime' =None, quota_code: 'str' =None, quota_name: 'str' =None, quota_page_url: 'str' =None, quota_service_code: 'str' =None, quota_utilization: 'str' =None, quota_value: 'str' =None, reservable: 'bool' =None, reservation_available_zones: 'list[str]' =None, resources: 'V1Resources' =None, slug: 'str' =None, spot_price: 'float' =None, spot_quota_code: 'str' =None, spot_quota_name: 'str' =None, spot_quota_page_url: 'str' =None): # noqa: E501
|
|
133
|
+
def __init__(self, accelerator_type: 'str' =None, allowed_resources: 'list[str]' =None, available_in_seconds: 'str' =None, available_in_seconds_spot: 'str' =None, available_zones: 'list[str]' =None, byoc_only: 'bool' =None, capacity_block_only: 'bool' =None, capacity_block_price: 'float' =None, capacity_blocks_available: 'list[V1ClusterCapacityReservation]' =None, cluster_id: 'str' =None, cost: 'float' =None, detailed_quotas_info: 'list[V1AcceleratorQuotaInfo]' =None, device_card: 'str' =None, device_info: 'str' =None, display_name: 'str' =None, dws_only: 'bool' =None, enabled: 'bool' =None, family: 'str' =None, instance_id: 'str' =None, is_custom: 'bool' =None, is_tier_restricted: 'bool' =None, local_disk_size: 'str' =None, local_disk_supported: 'bool' =None, max_available_quota: 'str' =None, non_spot: 'bool' =None, provider: 'V1CloudProvider' =None, quota_checked_at: 'datetime' =None, quota_code: 'str' =None, quota_name: 'str' =None, quota_page_url: 'str' =None, quota_service_code: 'str' =None, quota_utilization: 'str' =None, quota_value: 'str' =None, reservable: 'bool' =None, reservation_available_zones: 'list[str]' =None, resources: 'V1Resources' =None, slug: 'str' =None, slug_multi_cloud: 'str' =None, spot_price: 'float' =None, spot_quota_code: 'str' =None, spot_quota_name: 'str' =None, spot_quota_page_url: 'str' =None): # noqa: E501
|
|
132
134
|
"""V1ClusterAccelerator - a model defined in Swagger""" # noqa: E501
|
|
133
135
|
self._accelerator_type = None
|
|
134
136
|
self._allowed_resources = None
|
|
@@ -167,6 +169,7 @@ class V1ClusterAccelerator(object):
|
|
|
167
169
|
self._reservation_available_zones = None
|
|
168
170
|
self._resources = None
|
|
169
171
|
self._slug = None
|
|
172
|
+
self._slug_multi_cloud = None
|
|
170
173
|
self._spot_price = None
|
|
171
174
|
self._spot_quota_code = None
|
|
172
175
|
self._spot_quota_name = None
|
|
@@ -246,6 +249,8 @@ class V1ClusterAccelerator(object):
|
|
|
246
249
|
self.resources = resources
|
|
247
250
|
if slug is not None:
|
|
248
251
|
self.slug = slug
|
|
252
|
+
if slug_multi_cloud is not None:
|
|
253
|
+
self.slug_multi_cloud = slug_multi_cloud
|
|
249
254
|
if spot_price is not None:
|
|
250
255
|
self.spot_price = spot_price
|
|
251
256
|
if spot_quota_code is not None:
|
|
@@ -1032,6 +1037,27 @@ class V1ClusterAccelerator(object):
|
|
|
1032
1037
|
|
|
1033
1038
|
self._slug = slug
|
|
1034
1039
|
|
|
1040
|
+
@property
|
|
1041
|
+
def slug_multi_cloud(self) -> 'str':
|
|
1042
|
+
"""Gets the slug_multi_cloud of this V1ClusterAccelerator. # noqa: E501
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
:return: The slug_multi_cloud of this V1ClusterAccelerator. # noqa: E501
|
|
1046
|
+
:rtype: str
|
|
1047
|
+
"""
|
|
1048
|
+
return self._slug_multi_cloud
|
|
1049
|
+
|
|
1050
|
+
@slug_multi_cloud.setter
|
|
1051
|
+
def slug_multi_cloud(self, slug_multi_cloud: 'str'):
|
|
1052
|
+
"""Sets the slug_multi_cloud of this V1ClusterAccelerator.
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
:param slug_multi_cloud: The slug_multi_cloud of this V1ClusterAccelerator. # noqa: E501
|
|
1056
|
+
:type: str
|
|
1057
|
+
"""
|
|
1058
|
+
|
|
1059
|
+
self._slug_multi_cloud = slug_multi_cloud
|
|
1060
|
+
|
|
1035
1061
|
@property
|
|
1036
1062
|
def spot_price(self) -> 'float':
|
|
1037
1063
|
"""Gets the spot_price of this V1ClusterAccelerator. # noqa: E501
|
|
@@ -61,7 +61,8 @@ class V1Deployment(object):
|
|
|
61
61
|
'template_id': 'str',
|
|
62
62
|
'total_cost': 'float',
|
|
63
63
|
'updated_at': 'datetime',
|
|
64
|
-
'user_id': 'str'
|
|
64
|
+
'user_id': 'str',
|
|
65
|
+
'visibility': 'V1ResourceVisibility'
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
attribute_map = {
|
|
@@ -85,10 +86,11 @@ class V1Deployment(object):
|
|
|
85
86
|
'template_id': 'templateId',
|
|
86
87
|
'total_cost': 'totalCost',
|
|
87
88
|
'updated_at': 'updatedAt',
|
|
88
|
-
'user_id': 'userId'
|
|
89
|
+
'user_id': 'userId',
|
|
90
|
+
'visibility': 'visibility'
|
|
89
91
|
}
|
|
90
92
|
|
|
91
|
-
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): # noqa: E501
|
|
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
|
|
92
94
|
"""V1Deployment - a model defined in Swagger""" # noqa: E501
|
|
93
95
|
self._apis = None
|
|
94
96
|
self._autoscaling = None
|
|
@@ -111,6 +113,7 @@ class V1Deployment(object):
|
|
|
111
113
|
self._total_cost = None
|
|
112
114
|
self._updated_at = None
|
|
113
115
|
self._user_id = None
|
|
116
|
+
self._visibility = None
|
|
114
117
|
self.discriminator = None
|
|
115
118
|
if apis is not None:
|
|
116
119
|
self.apis = apis
|
|
@@ -154,6 +157,8 @@ class V1Deployment(object):
|
|
|
154
157
|
self.updated_at = updated_at
|
|
155
158
|
if user_id is not None:
|
|
156
159
|
self.user_id = user_id
|
|
160
|
+
if visibility is not None:
|
|
161
|
+
self.visibility = visibility
|
|
157
162
|
|
|
158
163
|
@property
|
|
159
164
|
def apis(self) -> 'list[V1DeploymentAPI]':
|
|
@@ -596,6 +601,27 @@ class V1Deployment(object):
|
|
|
596
601
|
|
|
597
602
|
self._user_id = user_id
|
|
598
603
|
|
|
604
|
+
@property
|
|
605
|
+
def visibility(self) -> 'V1ResourceVisibility':
|
|
606
|
+
"""Gets the visibility of this V1Deployment. # noqa: E501
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
:return: The visibility of this V1Deployment. # noqa: E501
|
|
610
|
+
:rtype: V1ResourceVisibility
|
|
611
|
+
"""
|
|
612
|
+
return self._visibility
|
|
613
|
+
|
|
614
|
+
@visibility.setter
|
|
615
|
+
def visibility(self, visibility: 'V1ResourceVisibility'):
|
|
616
|
+
"""Sets the visibility of this V1Deployment.
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
:param visibility: The visibility of this V1Deployment. # noqa: E501
|
|
620
|
+
:type: V1ResourceVisibility
|
|
621
|
+
"""
|
|
622
|
+
|
|
623
|
+
self._visibility = visibility
|
|
624
|
+
|
|
599
625
|
def to_dict(self) -> dict:
|
|
600
626
|
"""Returns the model properties as a dict"""
|
|
601
627
|
result = {}
|
|
@@ -0,0 +1,123 @@
|
|
|
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 V1GcpDataConnectionSetup(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
|
+
'service_accounts': 'list[str]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'service_accounts': 'serviceAccounts'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, service_accounts: 'list[str]' =None): # noqa: E501
|
|
52
|
+
"""V1GcpDataConnectionSetup - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._service_accounts = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if service_accounts is not None:
|
|
56
|
+
self.service_accounts = service_accounts
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def service_accounts(self) -> 'list[str]':
|
|
60
|
+
"""Gets the service_accounts of this V1GcpDataConnectionSetup. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The service_accounts of this V1GcpDataConnectionSetup. # noqa: E501
|
|
64
|
+
:rtype: list[str]
|
|
65
|
+
"""
|
|
66
|
+
return self._service_accounts
|
|
67
|
+
|
|
68
|
+
@service_accounts.setter
|
|
69
|
+
def service_accounts(self, service_accounts: 'list[str]'):
|
|
70
|
+
"""Sets the service_accounts of this V1GcpDataConnectionSetup.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param service_accounts: The service_accounts of this V1GcpDataConnectionSetup. # noqa: E501
|
|
74
|
+
:type: list[str]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._service_accounts = service_accounts
|
|
78
|
+
|
|
79
|
+
def to_dict(self) -> dict:
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
if issubclass(V1GcpDataConnectionSetup, dict):
|
|
101
|
+
for key, value in self.items():
|
|
102
|
+
result[key] = value
|
|
103
|
+
|
|
104
|
+
return result
|
|
105
|
+
|
|
106
|
+
def to_str(self) -> str:
|
|
107
|
+
"""Returns the string representation of the model"""
|
|
108
|
+
return pprint.pformat(self.to_dict())
|
|
109
|
+
|
|
110
|
+
def __repr__(self) -> str:
|
|
111
|
+
"""For `print` and `pprint`"""
|
|
112
|
+
return self.to_str()
|
|
113
|
+
|
|
114
|
+
def __eq__(self, other: 'V1GcpDataConnectionSetup') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1GcpDataConnectionSetup):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1GcpDataConnectionSetup') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|