lightning-sdk 0.2.15__py3-none-any.whl → 0.2.16__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/base_studio_api.py +7 -1
- lightning_sdk/api/cluster_api.py +83 -1
- lightning_sdk/api/llm_api.py +24 -5
- lightning_sdk/api/studio_api.py +3 -0
- lightning_sdk/api/teamspace_api.py +127 -1
- lightning_sdk/api/utils.py +4 -0
- lightning_sdk/base_studio.py +14 -1
- lightning_sdk/cli/create.py +21 -1
- lightning_sdk/cli/deploy/__init__.py +0 -0
- lightning_sdk/cli/deploy/_auth.py +189 -0
- lightning_sdk/cli/deploy/devbox.py +157 -0
- lightning_sdk/cli/{serve.py → deploy/serve.py} +11 -322
- lightning_sdk/cli/download.py +44 -16
- lightning_sdk/cli/entrypoint.py +1 -1
- lightning_sdk/cli/open.py +21 -2
- lightning_sdk/cli/start.py +12 -3
- lightning_sdk/cli/upload.py +2 -4
- lightning_sdk/lightning_cloud/openapi/__init__.py +18 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +121 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +747 -105
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +93 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +18 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +111 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
- lightning_sdk/llm/llm.py +52 -8
- lightning_sdk/studio.py +32 -1
- lightning_sdk/teamspace.py +68 -0
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/RECORD +74 -53
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.16.dist-info}/top_level.txt +0 -0
|
@@ -41,6 +41,7 @@ class V1CloudSpace(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'auto_switch_machine': 'bool',
|
|
44
45
|
'can_download_source_code': 'bool',
|
|
45
46
|
'cluster_id': 'str',
|
|
46
47
|
'code_config': 'V1CloudSpaceInstanceConfig',
|
|
@@ -81,6 +82,7 @@ class V1CloudSpace(object):
|
|
|
81
82
|
'published_at': 'datetime',
|
|
82
83
|
'published_to_org_at': 'datetime',
|
|
83
84
|
'state': 'V1CloudSpaceState',
|
|
85
|
+
'switch_to_default_machine_on_idle': 'bool',
|
|
84
86
|
'sync_duration': 'str',
|
|
85
87
|
'sync_percentage': 'str',
|
|
86
88
|
'tags': 'list[V1ResourceTag]',
|
|
@@ -95,6 +97,7 @@ class V1CloudSpace(object):
|
|
|
95
97
|
}
|
|
96
98
|
|
|
97
99
|
attribute_map = {
|
|
100
|
+
'auto_switch_machine': 'autoSwitchMachine',
|
|
98
101
|
'can_download_source_code': 'canDownloadSourceCode',
|
|
99
102
|
'cluster_id': 'clusterId',
|
|
100
103
|
'code_config': 'codeConfig',
|
|
@@ -135,6 +138,7 @@ class V1CloudSpace(object):
|
|
|
135
138
|
'published_at': 'publishedAt',
|
|
136
139
|
'published_to_org_at': 'publishedToOrgAt',
|
|
137
140
|
'state': 'state',
|
|
141
|
+
'switch_to_default_machine_on_idle': 'switchToDefaultMachineOnIdle',
|
|
138
142
|
'sync_duration': 'syncDuration',
|
|
139
143
|
'sync_percentage': 'syncPercentage',
|
|
140
144
|
'tags': 'tags',
|
|
@@ -148,8 +152,9 @@ class V1CloudSpace(object):
|
|
|
148
152
|
'web_path': 'webPath'
|
|
149
153
|
}
|
|
150
154
|
|
|
151
|
-
def __init__(self, can_download_source_code: 'bool' =None, cluster_id: 'str' =None, code_config: 'V1CloudSpaceInstanceConfig' =None, code_status: 'V1GetCloudSpaceInstanceStatusResponse' =None, code_url: 'str' =None, created_at: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, description: 'str' =None, display_name: 'str' =None, engagement_counts: 'dict(str, str)' =None, env: 'list[V1EnvVar]' =None, environment_config: 'V1CloudSpaceEnvironmentConfig' =None, environment_template_id: 'str' =None, featured: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, image_status: 'V1ImageState' =None, is_cloudspace_private: 'bool' =None, is_code_private: 'bool' =None, is_favorite: 'bool' =None, is_published: 'bool' =None, license: 'str' =None, license_url: 'str' =None, lock_out: 'bool' =None, machine_image_version: 'str' =None, max_run_duration: 'str' =None, message: 'str' =None, multi_user_edit: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, operating_cost: 'str' =None, paper_authors: 'str' =None, paper_org: 'str' =None, paper_org_avatar_url: 'str' =None, paper_url: 'str' =None, project_id: 'str' =None, publications: 'list[V1CloudSpaceVersionPublication]' =None, published_at: 'datetime' =None, published_to_org_at: 'datetime' =None, state: 'V1CloudSpaceState' =None, sync_duration: 'str' =None, sync_percentage: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_file_type: 'str' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None, user_metadata: 'str' =None, web_path: 'str' =None): # noqa: E501
|
|
155
|
+
def __init__(self, auto_switch_machine: 'bool' =None, can_download_source_code: 'bool' =None, cluster_id: 'str' =None, code_config: 'V1CloudSpaceInstanceConfig' =None, code_status: 'V1GetCloudSpaceInstanceStatusResponse' =None, code_url: 'str' =None, created_at: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, description: 'str' =None, display_name: 'str' =None, engagement_counts: 'dict(str, str)' =None, env: 'list[V1EnvVar]' =None, environment_config: 'V1CloudSpaceEnvironmentConfig' =None, environment_template_id: 'str' =None, featured: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, image_status: 'V1ImageState' =None, is_cloudspace_private: 'bool' =None, is_code_private: 'bool' =None, is_favorite: 'bool' =None, is_published: 'bool' =None, license: 'str' =None, license_url: 'str' =None, lock_out: 'bool' =None, machine_image_version: 'str' =None, max_run_duration: 'str' =None, message: 'str' =None, multi_user_edit: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, operating_cost: 'str' =None, paper_authors: 'str' =None, paper_org: 'str' =None, paper_org_avatar_url: 'str' =None, paper_url: 'str' =None, project_id: 'str' =None, publications: 'list[V1CloudSpaceVersionPublication]' =None, published_at: 'datetime' =None, published_to_org_at: 'datetime' =None, state: 'V1CloudSpaceState' =None, switch_to_default_machine_on_idle: 'bool' =None, sync_duration: 'str' =None, sync_percentage: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_file_type: 'str' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None, user_metadata: 'str' =None, web_path: 'str' =None): # noqa: E501
|
|
152
156
|
"""V1CloudSpace - a model defined in Swagger""" # noqa: E501
|
|
157
|
+
self._auto_switch_machine = None
|
|
153
158
|
self._can_download_source_code = None
|
|
154
159
|
self._cluster_id = None
|
|
155
160
|
self._code_config = None
|
|
@@ -190,6 +195,7 @@ class V1CloudSpace(object):
|
|
|
190
195
|
self._published_at = None
|
|
191
196
|
self._published_to_org_at = None
|
|
192
197
|
self._state = None
|
|
198
|
+
self._switch_to_default_machine_on_idle = None
|
|
193
199
|
self._sync_duration = None
|
|
194
200
|
self._sync_percentage = None
|
|
195
201
|
self._tags = None
|
|
@@ -202,6 +208,8 @@ class V1CloudSpace(object):
|
|
|
202
208
|
self._user_metadata = None
|
|
203
209
|
self._web_path = None
|
|
204
210
|
self.discriminator = None
|
|
211
|
+
if auto_switch_machine is not None:
|
|
212
|
+
self.auto_switch_machine = auto_switch_machine
|
|
205
213
|
if can_download_source_code is not None:
|
|
206
214
|
self.can_download_source_code = can_download_source_code
|
|
207
215
|
if cluster_id is not None:
|
|
@@ -282,6 +290,8 @@ class V1CloudSpace(object):
|
|
|
282
290
|
self.published_to_org_at = published_to_org_at
|
|
283
291
|
if state is not None:
|
|
284
292
|
self.state = state
|
|
293
|
+
if switch_to_default_machine_on_idle is not None:
|
|
294
|
+
self.switch_to_default_machine_on_idle = switch_to_default_machine_on_idle
|
|
285
295
|
if sync_duration is not None:
|
|
286
296
|
self.sync_duration = sync_duration
|
|
287
297
|
if sync_percentage is not None:
|
|
@@ -305,6 +315,27 @@ class V1CloudSpace(object):
|
|
|
305
315
|
if web_path is not None:
|
|
306
316
|
self.web_path = web_path
|
|
307
317
|
|
|
318
|
+
@property
|
|
319
|
+
def auto_switch_machine(self) -> 'bool':
|
|
320
|
+
"""Gets the auto_switch_machine of this V1CloudSpace. # noqa: E501
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
:return: The auto_switch_machine of this V1CloudSpace. # noqa: E501
|
|
324
|
+
:rtype: bool
|
|
325
|
+
"""
|
|
326
|
+
return self._auto_switch_machine
|
|
327
|
+
|
|
328
|
+
@auto_switch_machine.setter
|
|
329
|
+
def auto_switch_machine(self, auto_switch_machine: 'bool'):
|
|
330
|
+
"""Sets the auto_switch_machine of this V1CloudSpace.
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
:param auto_switch_machine: The auto_switch_machine of this V1CloudSpace. # noqa: E501
|
|
334
|
+
:type: bool
|
|
335
|
+
"""
|
|
336
|
+
|
|
337
|
+
self._auto_switch_machine = auto_switch_machine
|
|
338
|
+
|
|
308
339
|
@property
|
|
309
340
|
def can_download_source_code(self) -> 'bool':
|
|
310
341
|
"""Gets the can_download_source_code of this V1CloudSpace. # noqa: E501
|
|
@@ -1145,6 +1176,27 @@ class V1CloudSpace(object):
|
|
|
1145
1176
|
|
|
1146
1177
|
self._state = state
|
|
1147
1178
|
|
|
1179
|
+
@property
|
|
1180
|
+
def switch_to_default_machine_on_idle(self) -> 'bool':
|
|
1181
|
+
"""Gets the switch_to_default_machine_on_idle of this V1CloudSpace. # noqa: E501
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
:return: The switch_to_default_machine_on_idle of this V1CloudSpace. # noqa: E501
|
|
1185
|
+
:rtype: bool
|
|
1186
|
+
"""
|
|
1187
|
+
return self._switch_to_default_machine_on_idle
|
|
1188
|
+
|
|
1189
|
+
@switch_to_default_machine_on_idle.setter
|
|
1190
|
+
def switch_to_default_machine_on_idle(self, switch_to_default_machine_on_idle: 'bool'):
|
|
1191
|
+
"""Sets the switch_to_default_machine_on_idle of this V1CloudSpace.
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
:param switch_to_default_machine_on_idle: The switch_to_default_machine_on_idle of this V1CloudSpace. # noqa: E501
|
|
1195
|
+
:type: bool
|
|
1196
|
+
"""
|
|
1197
|
+
|
|
1198
|
+
self._switch_to_default_machine_on_idle = switch_to_default_machine_on_idle
|
|
1199
|
+
|
|
1148
1200
|
@property
|
|
1149
1201
|
def sync_duration(self) -> 'str':
|
|
1150
1202
|
"""Gets the sync_duration of this V1CloudSpace. # noqa: E501
|
|
@@ -0,0 +1,103 @@
|
|
|
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 V1CloudSpaceSourceType(object):
|
|
32
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
"""
|
|
38
|
+
allowed enum values
|
|
39
|
+
"""
|
|
40
|
+
UNSPECIFIED = "CLOUD_SPACE_SOURCE_UNSPECIFIED"
|
|
41
|
+
LITSERVE = "CLOUD_SPACE_SOURCE_LITSERVE"
|
|
42
|
+
"""
|
|
43
|
+
Attributes:
|
|
44
|
+
swagger_types (dict): The key is attribute name
|
|
45
|
+
and the value is attribute type.
|
|
46
|
+
attribute_map (dict): The key is attribute name
|
|
47
|
+
and the value is json key in definition.
|
|
48
|
+
"""
|
|
49
|
+
swagger_types = {
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
attribute_map = {
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self): # noqa: E501
|
|
56
|
+
"""V1CloudSpaceSourceType - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
|
|
59
|
+
def to_dict(self) -> dict:
|
|
60
|
+
"""Returns the model properties as a dict"""
|
|
61
|
+
result = {}
|
|
62
|
+
|
|
63
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
64
|
+
value = getattr(self, attr)
|
|
65
|
+
if isinstance(value, list):
|
|
66
|
+
result[attr] = list(map(
|
|
67
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
68
|
+
value
|
|
69
|
+
))
|
|
70
|
+
elif hasattr(value, "to_dict"):
|
|
71
|
+
result[attr] = value.to_dict()
|
|
72
|
+
elif isinstance(value, dict):
|
|
73
|
+
result[attr] = dict(map(
|
|
74
|
+
lambda item: (item[0], item[1].to_dict())
|
|
75
|
+
if hasattr(item[1], "to_dict") else item,
|
|
76
|
+
value.items()
|
|
77
|
+
))
|
|
78
|
+
else:
|
|
79
|
+
result[attr] = value
|
|
80
|
+
if issubclass(V1CloudSpaceSourceType, dict):
|
|
81
|
+
for key, value in self.items():
|
|
82
|
+
result[key] = value
|
|
83
|
+
|
|
84
|
+
return result
|
|
85
|
+
|
|
86
|
+
def to_str(self) -> str:
|
|
87
|
+
"""Returns the string representation of the model"""
|
|
88
|
+
return pprint.pformat(self.to_dict())
|
|
89
|
+
|
|
90
|
+
def __repr__(self) -> str:
|
|
91
|
+
"""For `print` and `pprint`"""
|
|
92
|
+
return self.to_str()
|
|
93
|
+
|
|
94
|
+
def __eq__(self, other: 'V1CloudSpaceSourceType') -> bool:
|
|
95
|
+
"""Returns true if both objects are equal"""
|
|
96
|
+
if not isinstance(other, V1CloudSpaceSourceType):
|
|
97
|
+
return False
|
|
98
|
+
|
|
99
|
+
return self.__dict__ == other.__dict__
|
|
100
|
+
|
|
101
|
+
def __ne__(self, other: 'V1CloudSpaceSourceType') -> bool:
|
|
102
|
+
"""Returns true if both objects are not equal"""
|
|
103
|
+
return not self == other
|
|
@@ -42,6 +42,7 @@ class V1ClusterTaggingOptions(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'custom_tags': 'list[V1ClusterResourceTag]',
|
|
45
|
+
'tag_bucket_objects': 'bool',
|
|
45
46
|
'tag_instances_with_teamspace_name': 'bool',
|
|
46
47
|
'tag_instances_with_username': 'bool',
|
|
47
48
|
'tag_instances_with_workload_name': 'bool'
|
|
@@ -49,20 +50,24 @@ class V1ClusterTaggingOptions(object):
|
|
|
49
50
|
|
|
50
51
|
attribute_map = {
|
|
51
52
|
'custom_tags': 'customTags',
|
|
53
|
+
'tag_bucket_objects': 'tagBucketObjects',
|
|
52
54
|
'tag_instances_with_teamspace_name': 'tagInstancesWithTeamspaceName',
|
|
53
55
|
'tag_instances_with_username': 'tagInstancesWithUsername',
|
|
54
56
|
'tag_instances_with_workload_name': 'tagInstancesWithWorkloadName'
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
def __init__(self, custom_tags: 'list[V1ClusterResourceTag]' =None, tag_instances_with_teamspace_name: 'bool' =None, tag_instances_with_username: 'bool' =None, tag_instances_with_workload_name: 'bool' =None): # noqa: E501
|
|
59
|
+
def __init__(self, custom_tags: 'list[V1ClusterResourceTag]' =None, tag_bucket_objects: 'bool' =None, tag_instances_with_teamspace_name: 'bool' =None, tag_instances_with_username: 'bool' =None, tag_instances_with_workload_name: 'bool' =None): # noqa: E501
|
|
58
60
|
"""V1ClusterTaggingOptions - a model defined in Swagger""" # noqa: E501
|
|
59
61
|
self._custom_tags = None
|
|
62
|
+
self._tag_bucket_objects = None
|
|
60
63
|
self._tag_instances_with_teamspace_name = None
|
|
61
64
|
self._tag_instances_with_username = None
|
|
62
65
|
self._tag_instances_with_workload_name = None
|
|
63
66
|
self.discriminator = None
|
|
64
67
|
if custom_tags is not None:
|
|
65
68
|
self.custom_tags = custom_tags
|
|
69
|
+
if tag_bucket_objects is not None:
|
|
70
|
+
self.tag_bucket_objects = tag_bucket_objects
|
|
66
71
|
if tag_instances_with_teamspace_name is not None:
|
|
67
72
|
self.tag_instances_with_teamspace_name = tag_instances_with_teamspace_name
|
|
68
73
|
if tag_instances_with_username is not None:
|
|
@@ -91,6 +96,27 @@ class V1ClusterTaggingOptions(object):
|
|
|
91
96
|
|
|
92
97
|
self._custom_tags = custom_tags
|
|
93
98
|
|
|
99
|
+
@property
|
|
100
|
+
def tag_bucket_objects(self) -> 'bool':
|
|
101
|
+
"""Gets the tag_bucket_objects of this V1ClusterTaggingOptions. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The tag_bucket_objects of this V1ClusterTaggingOptions. # noqa: E501
|
|
105
|
+
:rtype: bool
|
|
106
|
+
"""
|
|
107
|
+
return self._tag_bucket_objects
|
|
108
|
+
|
|
109
|
+
@tag_bucket_objects.setter
|
|
110
|
+
def tag_bucket_objects(self, tag_bucket_objects: 'bool'):
|
|
111
|
+
"""Sets the tag_bucket_objects of this V1ClusterTaggingOptions.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param tag_bucket_objects: The tag_bucket_objects of this V1ClusterTaggingOptions. # noqa: E501
|
|
115
|
+
:type: bool
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._tag_bucket_objects = tag_bucket_objects
|
|
119
|
+
|
|
94
120
|
@property
|
|
95
121
|
def tag_instances_with_teamspace_name(self) -> 'bool':
|
|
96
122
|
"""Gets the tag_instances_with_teamspace_name of this V1ClusterTaggingOptions. # 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 V1DeleteDeploymentAlertingPolicyResponse(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
|
+
'deployment_id': 'str',
|
|
45
|
+
'id': 'str',
|
|
46
|
+
'project_id': 'str'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'deployment_id': 'deploymentId',
|
|
51
|
+
'id': 'id',
|
|
52
|
+
'project_id': 'projectId'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, deployment_id: 'str' =None, id: 'str' =None, project_id: 'str' =None): # noqa: E501
|
|
56
|
+
"""V1DeleteDeploymentAlertingPolicyResponse - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._deployment_id = None
|
|
58
|
+
self._id = None
|
|
59
|
+
self._project_id = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if deployment_id is not None:
|
|
62
|
+
self.deployment_id = deployment_id
|
|
63
|
+
if id is not None:
|
|
64
|
+
self.id = id
|
|
65
|
+
if project_id is not None:
|
|
66
|
+
self.project_id = project_id
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def deployment_id(self) -> 'str':
|
|
70
|
+
"""Gets the deployment_id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The deployment_id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
74
|
+
:rtype: str
|
|
75
|
+
"""
|
|
76
|
+
return self._deployment_id
|
|
77
|
+
|
|
78
|
+
@deployment_id.setter
|
|
79
|
+
def deployment_id(self, deployment_id: 'str'):
|
|
80
|
+
"""Sets the deployment_id of this V1DeleteDeploymentAlertingPolicyResponse.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param deployment_id: The deployment_id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
84
|
+
:type: str
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._deployment_id = deployment_id
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def id(self) -> 'str':
|
|
91
|
+
"""Gets the id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._id
|
|
98
|
+
|
|
99
|
+
@id.setter
|
|
100
|
+
def id(self, id: 'str'):
|
|
101
|
+
"""Sets the id of this V1DeleteDeploymentAlertingPolicyResponse.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param id: The id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._id = id
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def project_id(self) -> 'str':
|
|
112
|
+
"""Gets the project_id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The project_id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._project_id
|
|
119
|
+
|
|
120
|
+
@project_id.setter
|
|
121
|
+
def project_id(self, project_id: 'str'):
|
|
122
|
+
"""Sets the project_id of this V1DeleteDeploymentAlertingPolicyResponse.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param project_id: The project_id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._project_id = project_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(V1DeleteDeploymentAlertingPolicyResponse, 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: 'V1DeleteDeploymentAlertingPolicyResponse') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, V1DeleteDeploymentAlertingPolicyResponse):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'V1DeleteDeploymentAlertingPolicyResponse') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
|
@@ -53,8 +53,10 @@ class V1Deployment(object):
|
|
|
53
53
|
'endpoint': 'V1Endpoint',
|
|
54
54
|
'id': 'str',
|
|
55
55
|
'is_published': 'bool',
|
|
56
|
+
'managed': 'bool',
|
|
56
57
|
'managed_endpoint_id': 'str',
|
|
57
58
|
'name': 'str',
|
|
59
|
+
'oncall_notification': 'bool',
|
|
58
60
|
'parameter_spec': 'V1ParameterizationSpec',
|
|
59
61
|
'pipeline_id': 'str',
|
|
60
62
|
'project_id': 'str',
|
|
@@ -83,8 +85,10 @@ class V1Deployment(object):
|
|
|
83
85
|
'endpoint': 'endpoint',
|
|
84
86
|
'id': 'id',
|
|
85
87
|
'is_published': 'isPublished',
|
|
88
|
+
'managed': 'managed',
|
|
86
89
|
'managed_endpoint_id': 'managedEndpointId',
|
|
87
90
|
'name': 'name',
|
|
91
|
+
'oncall_notification': 'oncallNotification',
|
|
88
92
|
'parameter_spec': 'parameterSpec',
|
|
89
93
|
'pipeline_id': 'pipelineId',
|
|
90
94
|
'project_id': 'projectId',
|
|
@@ -100,7 +104,7 @@ class V1Deployment(object):
|
|
|
100
104
|
'visibility': 'visibility'
|
|
101
105
|
}
|
|
102
106
|
|
|
103
|
-
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, current_state: 'V1DeploymentState' =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
|
|
107
|
+
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, current_state: 'V1DeploymentState' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, managed: 'bool' =None, managed_endpoint_id: 'str' =None, name: 'str' =None, oncall_notification: 'bool' =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
|
|
104
108
|
"""V1Deployment - a model defined in Swagger""" # noqa: E501
|
|
105
109
|
self._api_standard = None
|
|
106
110
|
self._apis = None
|
|
@@ -114,8 +118,10 @@ class V1Deployment(object):
|
|
|
114
118
|
self._endpoint = None
|
|
115
119
|
self._id = None
|
|
116
120
|
self._is_published = None
|
|
121
|
+
self._managed = None
|
|
117
122
|
self._managed_endpoint_id = None
|
|
118
123
|
self._name = None
|
|
124
|
+
self._oncall_notification = None
|
|
119
125
|
self._parameter_spec = None
|
|
120
126
|
self._pipeline_id = None
|
|
121
127
|
self._project_id = None
|
|
@@ -154,10 +160,14 @@ class V1Deployment(object):
|
|
|
154
160
|
self.id = id
|
|
155
161
|
if is_published is not None:
|
|
156
162
|
self.is_published = is_published
|
|
163
|
+
if managed is not None:
|
|
164
|
+
self.managed = managed
|
|
157
165
|
if managed_endpoint_id is not None:
|
|
158
166
|
self.managed_endpoint_id = managed_endpoint_id
|
|
159
167
|
if name is not None:
|
|
160
168
|
self.name = name
|
|
169
|
+
if oncall_notification is not None:
|
|
170
|
+
self.oncall_notification = oncall_notification
|
|
161
171
|
if parameter_spec is not None:
|
|
162
172
|
self.parameter_spec = parameter_spec
|
|
163
173
|
if pipeline_id is not None:
|
|
@@ -437,6 +447,27 @@ class V1Deployment(object):
|
|
|
437
447
|
|
|
438
448
|
self._is_published = is_published
|
|
439
449
|
|
|
450
|
+
@property
|
|
451
|
+
def managed(self) -> 'bool':
|
|
452
|
+
"""Gets the managed of this V1Deployment. # noqa: E501
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
:return: The managed of this V1Deployment. # noqa: E501
|
|
456
|
+
:rtype: bool
|
|
457
|
+
"""
|
|
458
|
+
return self._managed
|
|
459
|
+
|
|
460
|
+
@managed.setter
|
|
461
|
+
def managed(self, managed: 'bool'):
|
|
462
|
+
"""Sets the managed of this V1Deployment.
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
:param managed: The managed of this V1Deployment. # noqa: E501
|
|
466
|
+
:type: bool
|
|
467
|
+
"""
|
|
468
|
+
|
|
469
|
+
self._managed = managed
|
|
470
|
+
|
|
440
471
|
@property
|
|
441
472
|
def managed_endpoint_id(self) -> 'str':
|
|
442
473
|
"""Gets the managed_endpoint_id of this V1Deployment. # noqa: E501
|
|
@@ -479,6 +510,27 @@ class V1Deployment(object):
|
|
|
479
510
|
|
|
480
511
|
self._name = name
|
|
481
512
|
|
|
513
|
+
@property
|
|
514
|
+
def oncall_notification(self) -> 'bool':
|
|
515
|
+
"""Gets the oncall_notification of this V1Deployment. # noqa: E501
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
:return: The oncall_notification of this V1Deployment. # noqa: E501
|
|
519
|
+
:rtype: bool
|
|
520
|
+
"""
|
|
521
|
+
return self._oncall_notification
|
|
522
|
+
|
|
523
|
+
@oncall_notification.setter
|
|
524
|
+
def oncall_notification(self, oncall_notification: 'bool'):
|
|
525
|
+
"""Sets the oncall_notification of this V1Deployment.
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
:param oncall_notification: The oncall_notification of this V1Deployment. # noqa: E501
|
|
529
|
+
:type: bool
|
|
530
|
+
"""
|
|
531
|
+
|
|
532
|
+
self._oncall_notification = oncall_notification
|
|
533
|
+
|
|
482
534
|
@property
|
|
483
535
|
def parameter_spec(self) -> 'V1ParameterizationSpec':
|
|
484
536
|
"""Gets the parameter_spec of this V1Deployment. # noqa: E501
|