lightning-sdk 0.2.4__py3-none-any.whl → 0.2.6__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/ai_hub.py +3 -1
- lightning_sdk/api/ai_hub_api.py +15 -0
- lightning_sdk/api/studio_api.py +0 -8
- lightning_sdk/cli/serve.py +29 -9
- lightning_sdk/deployment/deployment.py +32 -4
- lightning_sdk/lightning_cloud/openapi/__init__.py +57 -1
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +4 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +537 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +115 -6
- lightning_sdk/lightning_cloud/openapi/api/lit_dataset_service_api.py +1973 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +20 -4
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +20 -20
- lightning_sdk/lightning_cloud/openapi/api/pipeline_templates_service_api.py +339 -0
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +573 -0
- lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_slurmusers_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_versions_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/dataset_id_visibility_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +95 -69
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cluster.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/litdatasets_dataset_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/pipelinetemplates_id_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_litdatasets_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +17 -17
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +124 -20
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +157 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_multi_part_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_upload_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_dataset_multi_part_upload_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_pipeline_template_request.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_server_alert_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_pipeline_schedule.py → v1_delete_cloud_space_environment_template_response.py} +32 -32
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_version_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_schedule_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_size_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_file_upload_urls_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_files_url_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +79 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +1 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_environment_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_dataset_versions_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_datasets_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_registry_repository_image_artifact_versions_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_schedules_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_slurm_cluster_users_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_file.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_version_archive.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_type.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template_visibility_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_reservation_details.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_severity.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_cluster_user.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +58 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +31 -291
- lightning_sdk/lightning_cloud/openapi/models/v1_subnet_spec.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_dataset_visibility_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +223 -171
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +203 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +29 -29
- lightning_sdk/lightning_cloud/openapi/models/version_default_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/version_uploads_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/versions_version_body1.py +123 -0
- lightning_sdk/lightning_cloud/rest_client.py +44 -40
- lightning_sdk/pipeline/types.py +28 -2
- lightning_sdk/pipeline/utils.py +1 -1
- lightning_sdk/plugin.py +0 -6
- lightning_sdk/serve.py +5 -3
- lightning_sdk/utils/resolve.py +1 -0
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/RECORD +123 -67
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/WHEEL +1 -1
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,253 @@
|
|
|
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 EnvironmenttemplatesIdBody(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
|
+
'config': 'V1CloudSpaceEnvironmentTemplateConfig',
|
|
45
|
+
'created_at': 'datetime',
|
|
46
|
+
'name': 'str',
|
|
47
|
+
'org_id': 'str',
|
|
48
|
+
'updated_at': 'datetime',
|
|
49
|
+
'user_id': 'str'
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
attribute_map = {
|
|
53
|
+
'config': 'config',
|
|
54
|
+
'created_at': 'createdAt',
|
|
55
|
+
'name': 'name',
|
|
56
|
+
'org_id': 'orgId',
|
|
57
|
+
'updated_at': 'updatedAt',
|
|
58
|
+
'user_id': 'userId'
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
def __init__(self, config: 'V1CloudSpaceEnvironmentTemplateConfig' =None, created_at: 'datetime' =None, name: 'str' =None, org_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
62
|
+
"""EnvironmenttemplatesIdBody - a model defined in Swagger""" # noqa: E501
|
|
63
|
+
self._config = None
|
|
64
|
+
self._created_at = None
|
|
65
|
+
self._name = None
|
|
66
|
+
self._org_id = None
|
|
67
|
+
self._updated_at = None
|
|
68
|
+
self._user_id = None
|
|
69
|
+
self.discriminator = None
|
|
70
|
+
if config is not None:
|
|
71
|
+
self.config = config
|
|
72
|
+
if created_at is not None:
|
|
73
|
+
self.created_at = created_at
|
|
74
|
+
if name is not None:
|
|
75
|
+
self.name = name
|
|
76
|
+
if org_id is not None:
|
|
77
|
+
self.org_id = org_id
|
|
78
|
+
if updated_at is not None:
|
|
79
|
+
self.updated_at = updated_at
|
|
80
|
+
if user_id is not None:
|
|
81
|
+
self.user_id = user_id
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def config(self) -> 'V1CloudSpaceEnvironmentTemplateConfig':
|
|
85
|
+
"""Gets the config of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:return: The config of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
89
|
+
:rtype: V1CloudSpaceEnvironmentTemplateConfig
|
|
90
|
+
"""
|
|
91
|
+
return self._config
|
|
92
|
+
|
|
93
|
+
@config.setter
|
|
94
|
+
def config(self, config: 'V1CloudSpaceEnvironmentTemplateConfig'):
|
|
95
|
+
"""Sets the config of this EnvironmenttemplatesIdBody.
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:param config: The config of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
99
|
+
:type: V1CloudSpaceEnvironmentTemplateConfig
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
self._config = config
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
def created_at(self) -> 'datetime':
|
|
106
|
+
"""Gets the created_at of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:return: The created_at of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
110
|
+
:rtype: datetime
|
|
111
|
+
"""
|
|
112
|
+
return self._created_at
|
|
113
|
+
|
|
114
|
+
@created_at.setter
|
|
115
|
+
def created_at(self, created_at: 'datetime'):
|
|
116
|
+
"""Sets the created_at of this EnvironmenttemplatesIdBody.
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
:param created_at: The created_at of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
120
|
+
:type: datetime
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
self._created_at = created_at
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
def name(self) -> 'str':
|
|
127
|
+
"""Gets the name of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:return: The name of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
131
|
+
:rtype: str
|
|
132
|
+
"""
|
|
133
|
+
return self._name
|
|
134
|
+
|
|
135
|
+
@name.setter
|
|
136
|
+
def name(self, name: 'str'):
|
|
137
|
+
"""Sets the name of this EnvironmenttemplatesIdBody.
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
:param name: The name of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
141
|
+
:type: str
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
self._name = name
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
def org_id(self) -> 'str':
|
|
148
|
+
"""Gets the org_id of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:return: The org_id of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
152
|
+
:rtype: str
|
|
153
|
+
"""
|
|
154
|
+
return self._org_id
|
|
155
|
+
|
|
156
|
+
@org_id.setter
|
|
157
|
+
def org_id(self, org_id: 'str'):
|
|
158
|
+
"""Sets the org_id of this EnvironmenttemplatesIdBody.
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:param org_id: The org_id of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
162
|
+
:type: str
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
self._org_id = org_id
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
def updated_at(self) -> 'datetime':
|
|
169
|
+
"""Gets the updated_at of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
:return: The updated_at of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
173
|
+
:rtype: datetime
|
|
174
|
+
"""
|
|
175
|
+
return self._updated_at
|
|
176
|
+
|
|
177
|
+
@updated_at.setter
|
|
178
|
+
def updated_at(self, updated_at: 'datetime'):
|
|
179
|
+
"""Sets the updated_at of this EnvironmenttemplatesIdBody.
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:param updated_at: The updated_at of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
183
|
+
:type: datetime
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
self._updated_at = updated_at
|
|
187
|
+
|
|
188
|
+
@property
|
|
189
|
+
def user_id(self) -> 'str':
|
|
190
|
+
"""Gets the user_id of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
:return: The user_id of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
194
|
+
:rtype: str
|
|
195
|
+
"""
|
|
196
|
+
return self._user_id
|
|
197
|
+
|
|
198
|
+
@user_id.setter
|
|
199
|
+
def user_id(self, user_id: 'str'):
|
|
200
|
+
"""Sets the user_id of this EnvironmenttemplatesIdBody.
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
:param user_id: The user_id of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
204
|
+
:type: str
|
|
205
|
+
"""
|
|
206
|
+
|
|
207
|
+
self._user_id = user_id
|
|
208
|
+
|
|
209
|
+
def to_dict(self) -> dict:
|
|
210
|
+
"""Returns the model properties as a dict"""
|
|
211
|
+
result = {}
|
|
212
|
+
|
|
213
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
214
|
+
value = getattr(self, attr)
|
|
215
|
+
if isinstance(value, list):
|
|
216
|
+
result[attr] = list(map(
|
|
217
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
218
|
+
value
|
|
219
|
+
))
|
|
220
|
+
elif hasattr(value, "to_dict"):
|
|
221
|
+
result[attr] = value.to_dict()
|
|
222
|
+
elif isinstance(value, dict):
|
|
223
|
+
result[attr] = dict(map(
|
|
224
|
+
lambda item: (item[0], item[1].to_dict())
|
|
225
|
+
if hasattr(item[1], "to_dict") else item,
|
|
226
|
+
value.items()
|
|
227
|
+
))
|
|
228
|
+
else:
|
|
229
|
+
result[attr] = value
|
|
230
|
+
if issubclass(EnvironmenttemplatesIdBody, dict):
|
|
231
|
+
for key, value in self.items():
|
|
232
|
+
result[key] = value
|
|
233
|
+
|
|
234
|
+
return result
|
|
235
|
+
|
|
236
|
+
def to_str(self) -> str:
|
|
237
|
+
"""Returns the string representation of the model"""
|
|
238
|
+
return pprint.pformat(self.to_dict())
|
|
239
|
+
|
|
240
|
+
def __repr__(self) -> str:
|
|
241
|
+
"""For `print` and `pprint`"""
|
|
242
|
+
return self.to_str()
|
|
243
|
+
|
|
244
|
+
def __eq__(self, other: 'EnvironmenttemplatesIdBody') -> bool:
|
|
245
|
+
"""Returns true if both objects are equal"""
|
|
246
|
+
if not isinstance(other, EnvironmenttemplatesIdBody):
|
|
247
|
+
return False
|
|
248
|
+
|
|
249
|
+
return self.__dict__ == other.__dict__
|
|
250
|
+
|
|
251
|
+
def __ne__(self, other: 'EnvironmenttemplatesIdBody') -> bool:
|
|
252
|
+
"""Returns true if both objects are not equal"""
|
|
253
|
+
return not self == other
|
|
@@ -41,12 +41,15 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'alerts': 'list[V1ServerAlert]',
|
|
44
45
|
'app_url': 'str',
|
|
46
|
+
'bytes_to_sync': 'str',
|
|
45
47
|
'cloud_space_id': 'str',
|
|
46
48
|
'cloud_space_instance_id': 'str',
|
|
47
49
|
'compute_config': 'V1UserRequestedComputeConfig',
|
|
48
50
|
'creation_timestamp': 'datetime',
|
|
49
51
|
'data_connection_mounts': 'list[V1DataConnectionMount]',
|
|
52
|
+
'files_to_sync': 'str',
|
|
50
53
|
'free': 'bool',
|
|
51
54
|
'ide': 'str',
|
|
52
55
|
'instance_id': 'str',
|
|
@@ -65,20 +68,21 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
65
68
|
'startup_status': 'V1CloudSpaceInstanceStartupStatus',
|
|
66
69
|
'status_message': 'str',
|
|
67
70
|
'switched_at': 'datetime',
|
|
68
|
-
'
|
|
69
|
-
'sync_in_progress': 'bool',
|
|
70
|
-
'sync_percentage': 'str',
|
|
71
|
+
'sync_last_updated': 'datetime',
|
|
71
72
|
'termination_time': 'datetime',
|
|
72
73
|
'vscode_url': 'str'
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
attribute_map = {
|
|
77
|
+
'alerts': 'alerts',
|
|
76
78
|
'app_url': 'appUrl',
|
|
79
|
+
'bytes_to_sync': 'bytesToSync',
|
|
77
80
|
'cloud_space_id': 'cloudSpaceId',
|
|
78
81
|
'cloud_space_instance_id': 'cloudSpaceInstanceId',
|
|
79
82
|
'compute_config': 'computeConfig',
|
|
80
83
|
'creation_timestamp': 'creationTimestamp',
|
|
81
84
|
'data_connection_mounts': 'dataConnectionMounts',
|
|
85
|
+
'files_to_sync': 'filesToSync',
|
|
82
86
|
'free': 'free',
|
|
83
87
|
'ide': 'ide',
|
|
84
88
|
'instance_id': 'instanceId',
|
|
@@ -97,21 +101,22 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
97
101
|
'startup_status': 'startupStatus',
|
|
98
102
|
'status_message': 'statusMessage',
|
|
99
103
|
'switched_at': 'switchedAt',
|
|
100
|
-
'
|
|
101
|
-
'sync_in_progress': 'syncInProgress',
|
|
102
|
-
'sync_percentage': 'syncPercentage',
|
|
104
|
+
'sync_last_updated': 'syncLastUpdated',
|
|
103
105
|
'termination_time': 'terminationTime',
|
|
104
106
|
'vscode_url': 'vscodeUrl'
|
|
105
107
|
}
|
|
106
108
|
|
|
107
|
-
def __init__(self, app_url: 'str' =None, cloud_space_id: 'str' =None, cloud_space_instance_id: 'str' =None, compute_config: 'V1UserRequestedComputeConfig' =None, creation_timestamp: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, free: 'bool' =None, ide: 'str' =None, instance_id: 'str' =None, instance_region: 'str' =None, instance_url: 'str' =None, jupyterlab_url: 'str' =None, phase: 'V1CloudSpaceInstanceState' =None, price: 'float' =None, ssh_host: 'str' =None, ssh_port: 'int' =None, ssh_username: 'str' =None, start_timestamp: 'datetime' =None, startup_eta_seconds: 'str' =None, startup_percentage: 'str' =None, startup_phase: 'str' =None, startup_status: 'V1CloudSpaceInstanceStartupStatus' =None, status_message: 'str' =None, switched_at: 'datetime' =None,
|
|
109
|
+
def __init__(self, alerts: 'list[V1ServerAlert]' =None, app_url: 'str' =None, bytes_to_sync: 'str' =None, cloud_space_id: 'str' =None, cloud_space_instance_id: 'str' =None, compute_config: 'V1UserRequestedComputeConfig' =None, creation_timestamp: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, files_to_sync: 'str' =None, free: 'bool' =None, ide: 'str' =None, instance_id: 'str' =None, instance_region: 'str' =None, instance_url: 'str' =None, jupyterlab_url: 'str' =None, phase: 'V1CloudSpaceInstanceState' =None, price: 'float' =None, ssh_host: 'str' =None, ssh_port: 'int' =None, ssh_username: 'str' =None, start_timestamp: 'datetime' =None, startup_eta_seconds: 'str' =None, startup_percentage: 'str' =None, startup_phase: 'str' =None, startup_status: 'V1CloudSpaceInstanceStartupStatus' =None, status_message: 'str' =None, switched_at: 'datetime' =None, sync_last_updated: 'datetime' =None, termination_time: 'datetime' =None, vscode_url: 'str' =None): # noqa: E501
|
|
108
110
|
"""Externalv1CloudSpaceInstanceStatus - a model defined in Swagger""" # noqa: E501
|
|
111
|
+
self._alerts = None
|
|
109
112
|
self._app_url = None
|
|
113
|
+
self._bytes_to_sync = None
|
|
110
114
|
self._cloud_space_id = None
|
|
111
115
|
self._cloud_space_instance_id = None
|
|
112
116
|
self._compute_config = None
|
|
113
117
|
self._creation_timestamp = None
|
|
114
118
|
self._data_connection_mounts = None
|
|
119
|
+
self._files_to_sync = None
|
|
115
120
|
self._free = None
|
|
116
121
|
self._ide = None
|
|
117
122
|
self._instance_id = None
|
|
@@ -130,14 +135,16 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
130
135
|
self._startup_status = None
|
|
131
136
|
self._status_message = None
|
|
132
137
|
self._switched_at = None
|
|
133
|
-
self.
|
|
134
|
-
self._sync_in_progress = None
|
|
135
|
-
self._sync_percentage = None
|
|
138
|
+
self._sync_last_updated = None
|
|
136
139
|
self._termination_time = None
|
|
137
140
|
self._vscode_url = None
|
|
138
141
|
self.discriminator = None
|
|
142
|
+
if alerts is not None:
|
|
143
|
+
self.alerts = alerts
|
|
139
144
|
if app_url is not None:
|
|
140
145
|
self.app_url = app_url
|
|
146
|
+
if bytes_to_sync is not None:
|
|
147
|
+
self.bytes_to_sync = bytes_to_sync
|
|
141
148
|
if cloud_space_id is not None:
|
|
142
149
|
self.cloud_space_id = cloud_space_id
|
|
143
150
|
if cloud_space_instance_id is not None:
|
|
@@ -148,6 +155,8 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
148
155
|
self.creation_timestamp = creation_timestamp
|
|
149
156
|
if data_connection_mounts is not None:
|
|
150
157
|
self.data_connection_mounts = data_connection_mounts
|
|
158
|
+
if files_to_sync is not None:
|
|
159
|
+
self.files_to_sync = files_to_sync
|
|
151
160
|
if free is not None:
|
|
152
161
|
self.free = free
|
|
153
162
|
if ide is not None:
|
|
@@ -184,17 +193,34 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
184
193
|
self.status_message = status_message
|
|
185
194
|
if switched_at is not None:
|
|
186
195
|
self.switched_at = switched_at
|
|
187
|
-
if
|
|
188
|
-
self.
|
|
189
|
-
if sync_in_progress is not None:
|
|
190
|
-
self.sync_in_progress = sync_in_progress
|
|
191
|
-
if sync_percentage is not None:
|
|
192
|
-
self.sync_percentage = sync_percentage
|
|
196
|
+
if sync_last_updated is not None:
|
|
197
|
+
self.sync_last_updated = sync_last_updated
|
|
193
198
|
if termination_time is not None:
|
|
194
199
|
self.termination_time = termination_time
|
|
195
200
|
if vscode_url is not None:
|
|
196
201
|
self.vscode_url = vscode_url
|
|
197
202
|
|
|
203
|
+
@property
|
|
204
|
+
def alerts(self) -> 'list[V1ServerAlert]':
|
|
205
|
+
"""Gets the alerts of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
:return: The alerts of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
209
|
+
:rtype: list[V1ServerAlert]
|
|
210
|
+
"""
|
|
211
|
+
return self._alerts
|
|
212
|
+
|
|
213
|
+
@alerts.setter
|
|
214
|
+
def alerts(self, alerts: 'list[V1ServerAlert]'):
|
|
215
|
+
"""Sets the alerts of this Externalv1CloudSpaceInstanceStatus.
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
:param alerts: The alerts of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
219
|
+
:type: list[V1ServerAlert]
|
|
220
|
+
"""
|
|
221
|
+
|
|
222
|
+
self._alerts = alerts
|
|
223
|
+
|
|
198
224
|
@property
|
|
199
225
|
def app_url(self) -> 'str':
|
|
200
226
|
"""Gets the app_url of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
@@ -216,6 +242,27 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
216
242
|
|
|
217
243
|
self._app_url = app_url
|
|
218
244
|
|
|
245
|
+
@property
|
|
246
|
+
def bytes_to_sync(self) -> 'str':
|
|
247
|
+
"""Gets the bytes_to_sync of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
:return: The bytes_to_sync of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
251
|
+
:rtype: str
|
|
252
|
+
"""
|
|
253
|
+
return self._bytes_to_sync
|
|
254
|
+
|
|
255
|
+
@bytes_to_sync.setter
|
|
256
|
+
def bytes_to_sync(self, bytes_to_sync: 'str'):
|
|
257
|
+
"""Sets the bytes_to_sync of this Externalv1CloudSpaceInstanceStatus.
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
:param bytes_to_sync: The bytes_to_sync of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
261
|
+
:type: str
|
|
262
|
+
"""
|
|
263
|
+
|
|
264
|
+
self._bytes_to_sync = bytes_to_sync
|
|
265
|
+
|
|
219
266
|
@property
|
|
220
267
|
def cloud_space_id(self) -> 'str':
|
|
221
268
|
"""Gets the cloud_space_id of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
@@ -321,6 +368,27 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
321
368
|
|
|
322
369
|
self._data_connection_mounts = data_connection_mounts
|
|
323
370
|
|
|
371
|
+
@property
|
|
372
|
+
def files_to_sync(self) -> 'str':
|
|
373
|
+
"""Gets the files_to_sync of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
:return: The files_to_sync of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
377
|
+
:rtype: str
|
|
378
|
+
"""
|
|
379
|
+
return self._files_to_sync
|
|
380
|
+
|
|
381
|
+
@files_to_sync.setter
|
|
382
|
+
def files_to_sync(self, files_to_sync: 'str'):
|
|
383
|
+
"""Sets the files_to_sync of this Externalv1CloudSpaceInstanceStatus.
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
:param files_to_sync: The files_to_sync of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
387
|
+
:type: str
|
|
388
|
+
"""
|
|
389
|
+
|
|
390
|
+
self._files_to_sync = files_to_sync
|
|
391
|
+
|
|
324
392
|
@property
|
|
325
393
|
def free(self) -> 'bool':
|
|
326
394
|
"""Gets the free of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
@@ -702,67 +770,25 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
702
770
|
self._switched_at = switched_at
|
|
703
771
|
|
|
704
772
|
@property
|
|
705
|
-
def
|
|
706
|
-
"""Gets the
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
:return: The sync_eta_seconds of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
710
|
-
:rtype: str
|
|
711
|
-
"""
|
|
712
|
-
return self._sync_eta_seconds
|
|
713
|
-
|
|
714
|
-
@sync_eta_seconds.setter
|
|
715
|
-
def sync_eta_seconds(self, sync_eta_seconds: 'str'):
|
|
716
|
-
"""Sets the sync_eta_seconds of this Externalv1CloudSpaceInstanceStatus.
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
:param sync_eta_seconds: The sync_eta_seconds of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
720
|
-
:type: str
|
|
721
|
-
"""
|
|
722
|
-
|
|
723
|
-
self._sync_eta_seconds = sync_eta_seconds
|
|
724
|
-
|
|
725
|
-
@property
|
|
726
|
-
def sync_in_progress(self) -> 'bool':
|
|
727
|
-
"""Gets the sync_in_progress of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
773
|
+
def sync_last_updated(self) -> 'datetime':
|
|
774
|
+
"""Gets the sync_last_updated of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
728
775
|
|
|
729
776
|
|
|
730
|
-
:return: The
|
|
731
|
-
:rtype:
|
|
732
|
-
"""
|
|
733
|
-
return self._sync_in_progress
|
|
734
|
-
|
|
735
|
-
@sync_in_progress.setter
|
|
736
|
-
def sync_in_progress(self, sync_in_progress: 'bool'):
|
|
737
|
-
"""Sets the sync_in_progress of this Externalv1CloudSpaceInstanceStatus.
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
:param sync_in_progress: The sync_in_progress of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
741
|
-
:type: bool
|
|
742
|
-
"""
|
|
743
|
-
|
|
744
|
-
self._sync_in_progress = sync_in_progress
|
|
745
|
-
|
|
746
|
-
@property
|
|
747
|
-
def sync_percentage(self) -> 'str':
|
|
748
|
-
"""Gets the sync_percentage of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
:return: The sync_percentage of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
752
|
-
:rtype: str
|
|
777
|
+
:return: The sync_last_updated of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
778
|
+
:rtype: datetime
|
|
753
779
|
"""
|
|
754
|
-
return self.
|
|
780
|
+
return self._sync_last_updated
|
|
755
781
|
|
|
756
|
-
@
|
|
757
|
-
def
|
|
758
|
-
"""Sets the
|
|
782
|
+
@sync_last_updated.setter
|
|
783
|
+
def sync_last_updated(self, sync_last_updated: 'datetime'):
|
|
784
|
+
"""Sets the sync_last_updated of this Externalv1CloudSpaceInstanceStatus.
|
|
759
785
|
|
|
760
786
|
|
|
761
|
-
:param
|
|
762
|
-
:type:
|
|
787
|
+
:param sync_last_updated: The sync_last_updated of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
788
|
+
:type: datetime
|
|
763
789
|
"""
|
|
764
790
|
|
|
765
|
-
self.
|
|
791
|
+
self._sync_last_updated = sync_last_updated
|
|
766
792
|
|
|
767
793
|
@property
|
|
768
794
|
def termination_time(self) -> 'datetime':
|
|
@@ -44,6 +44,7 @@ class Externalv1Cluster(object):
|
|
|
44
44
|
'created_at': 'datetime',
|
|
45
45
|
'id': 'str',
|
|
46
46
|
'name': 'str',
|
|
47
|
+
'protected': 'bool',
|
|
47
48
|
'spec': 'V1ClusterSpec',
|
|
48
49
|
'status': 'V1ClusterStatus'
|
|
49
50
|
}
|
|
@@ -52,15 +53,17 @@ class Externalv1Cluster(object):
|
|
|
52
53
|
'created_at': 'createdAt',
|
|
53
54
|
'id': 'id',
|
|
54
55
|
'name': 'name',
|
|
56
|
+
'protected': 'protected',
|
|
55
57
|
'spec': 'spec',
|
|
56
58
|
'status': 'status'
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
def __init__(self, created_at: 'datetime' =None, id: 'str' =None, name: 'str' =None, spec: 'V1ClusterSpec' =None, status: 'V1ClusterStatus' =None): # noqa: E501
|
|
61
|
+
def __init__(self, created_at: 'datetime' =None, id: 'str' =None, name: 'str' =None, protected: 'bool' =None, spec: 'V1ClusterSpec' =None, status: 'V1ClusterStatus' =None): # noqa: E501
|
|
60
62
|
"""Externalv1Cluster - a model defined in Swagger""" # noqa: E501
|
|
61
63
|
self._created_at = None
|
|
62
64
|
self._id = None
|
|
63
65
|
self._name = None
|
|
66
|
+
self._protected = None
|
|
64
67
|
self._spec = None
|
|
65
68
|
self._status = None
|
|
66
69
|
self.discriminator = None
|
|
@@ -70,6 +73,8 @@ class Externalv1Cluster(object):
|
|
|
70
73
|
self.id = id
|
|
71
74
|
if name is not None:
|
|
72
75
|
self.name = name
|
|
76
|
+
if protected is not None:
|
|
77
|
+
self.protected = protected
|
|
73
78
|
if spec is not None:
|
|
74
79
|
self.spec = spec
|
|
75
80
|
if status is not None:
|
|
@@ -138,6 +143,27 @@ class Externalv1Cluster(object):
|
|
|
138
143
|
|
|
139
144
|
self._name = name
|
|
140
145
|
|
|
146
|
+
@property
|
|
147
|
+
def protected(self) -> 'bool':
|
|
148
|
+
"""Gets the protected of this Externalv1Cluster. # noqa: E501
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:return: The protected of this Externalv1Cluster. # noqa: E501
|
|
152
|
+
:rtype: bool
|
|
153
|
+
"""
|
|
154
|
+
return self._protected
|
|
155
|
+
|
|
156
|
+
@protected.setter
|
|
157
|
+
def protected(self, protected: 'bool'):
|
|
158
|
+
"""Sets the protected of this Externalv1Cluster.
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:param protected: The protected of this Externalv1Cluster. # noqa: E501
|
|
162
|
+
:type: bool
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
self._protected = protected
|
|
166
|
+
|
|
141
167
|
@property
|
|
142
168
|
def spec(self) -> 'V1ClusterSpec':
|
|
143
169
|
"""Gets the spec of this Externalv1Cluster. # noqa: E501
|