lightning-sdk 0.2.8__py3-none-any.whl → 0.2.10__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/cluster_api.py +22 -0
- lightning_sdk/api/deployment_api.py +1 -0
- lightning_sdk/api/lit_container_api.py +24 -5
- lightning_sdk/api/teamspace_api.py +22 -17
- lightning_sdk/api/utils.py +1 -1
- lightning_sdk/cli/clusters_menu.py +46 -0
- lightning_sdk/cli/entrypoint.py +2 -2
- lightning_sdk/cli/list.py +25 -5
- lightning_sdk/cli/serve.py +232 -24
- lightning_sdk/cli/upload.py +4 -1
- lightning_sdk/deployment/deployment.py +5 -2
- lightning_sdk/lightning_cloud/openapi/__init__.py +10 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +303 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +10 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_systemmetrics_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/create.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/update.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_tier.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics_stats.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cluster_capacity_reservation_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_gcp_direct_vpc.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_cold_start_metrics_stats_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_system_metrics_aggregate_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +43 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_cluster_binding.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_system_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_phase.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_system_metrics_aggregated.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +104 -208
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_weka_data_connection.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/validate.py +27 -1
- lightning_sdk/lit_container.py +25 -7
- lightning_sdk/models.py +26 -8
- lightning_sdk/serve.py +3 -20
- lightning_sdk/teamspace.py +21 -4
- lightning_sdk/utils/resolve.py +11 -4
- {lightning_sdk-0.2.8.dist-info → lightning_sdk-0.2.10.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.8.dist-info → lightning_sdk-0.2.10.dist-info}/RECORD +60 -48
- {lightning_sdk-0.2.8.dist-info → lightning_sdk-0.2.10.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.8.dist-info → lightning_sdk-0.2.10.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.8.dist-info → lightning_sdk-0.2.10.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.8.dist-info → lightning_sdk-0.2.10.dist-info}/top_level.txt +0 -0
|
@@ -52,6 +52,7 @@ class V1CloudSpace(object):
|
|
|
52
52
|
'display_name': 'str',
|
|
53
53
|
'engagement_counts': 'dict(str, str)',
|
|
54
54
|
'env': 'list[V1EnvVar]',
|
|
55
|
+
'environment_template_id': 'str',
|
|
55
56
|
'featured': 'bool',
|
|
56
57
|
'hide_files': 'bool',
|
|
57
58
|
'id': 'str',
|
|
@@ -64,6 +65,7 @@ class V1CloudSpace(object):
|
|
|
64
65
|
'license_url': 'str',
|
|
65
66
|
'lock_out': 'bool',
|
|
66
67
|
'machine_image_version': 'str',
|
|
68
|
+
'max_run_duration': 'str',
|
|
67
69
|
'message': 'str',
|
|
68
70
|
'multi_user_edit': 'bool',
|
|
69
71
|
'name': 'str',
|
|
@@ -103,6 +105,7 @@ class V1CloudSpace(object):
|
|
|
103
105
|
'display_name': 'displayName',
|
|
104
106
|
'engagement_counts': 'engagementCounts',
|
|
105
107
|
'env': 'env',
|
|
108
|
+
'environment_template_id': 'environmentTemplateId',
|
|
106
109
|
'featured': 'featured',
|
|
107
110
|
'hide_files': 'hideFiles',
|
|
108
111
|
'id': 'id',
|
|
@@ -115,6 +118,7 @@ class V1CloudSpace(object):
|
|
|
115
118
|
'license_url': 'licenseUrl',
|
|
116
119
|
'lock_out': 'lockOut',
|
|
117
120
|
'machine_image_version': 'machineImageVersion',
|
|
121
|
+
'max_run_duration': 'maxRunDuration',
|
|
118
122
|
'message': 'message',
|
|
119
123
|
'multi_user_edit': 'multiUserEdit',
|
|
120
124
|
'name': 'name',
|
|
@@ -142,7 +146,7 @@ class V1CloudSpace(object):
|
|
|
142
146
|
'web_path': 'webPath'
|
|
143
147
|
}
|
|
144
148
|
|
|
145
|
-
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, 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, 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
|
|
149
|
+
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_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
|
|
146
150
|
"""V1CloudSpace - a model defined in Swagger""" # noqa: E501
|
|
147
151
|
self._can_download_source_code = None
|
|
148
152
|
self._cluster_id = None
|
|
@@ -155,6 +159,7 @@ class V1CloudSpace(object):
|
|
|
155
159
|
self._display_name = None
|
|
156
160
|
self._engagement_counts = None
|
|
157
161
|
self._env = None
|
|
162
|
+
self._environment_template_id = None
|
|
158
163
|
self._featured = None
|
|
159
164
|
self._hide_files = None
|
|
160
165
|
self._id = None
|
|
@@ -167,6 +172,7 @@ class V1CloudSpace(object):
|
|
|
167
172
|
self._license_url = None
|
|
168
173
|
self._lock_out = None
|
|
169
174
|
self._machine_image_version = None
|
|
175
|
+
self._max_run_duration = None
|
|
170
176
|
self._message = None
|
|
171
177
|
self._multi_user_edit = None
|
|
172
178
|
self._name = None
|
|
@@ -215,6 +221,8 @@ class V1CloudSpace(object):
|
|
|
215
221
|
self.engagement_counts = engagement_counts
|
|
216
222
|
if env is not None:
|
|
217
223
|
self.env = env
|
|
224
|
+
if environment_template_id is not None:
|
|
225
|
+
self.environment_template_id = environment_template_id
|
|
218
226
|
if featured is not None:
|
|
219
227
|
self.featured = featured
|
|
220
228
|
if hide_files is not None:
|
|
@@ -239,6 +247,8 @@ class V1CloudSpace(object):
|
|
|
239
247
|
self.lock_out = lock_out
|
|
240
248
|
if machine_image_version is not None:
|
|
241
249
|
self.machine_image_version = machine_image_version
|
|
250
|
+
if max_run_duration is not None:
|
|
251
|
+
self.max_run_duration = max_run_duration
|
|
242
252
|
if message is not None:
|
|
243
253
|
self.message = message
|
|
244
254
|
if multi_user_edit is not None:
|
|
@@ -521,6 +531,27 @@ class V1CloudSpace(object):
|
|
|
521
531
|
|
|
522
532
|
self._env = env
|
|
523
533
|
|
|
534
|
+
@property
|
|
535
|
+
def environment_template_id(self) -> 'str':
|
|
536
|
+
"""Gets the environment_template_id of this V1CloudSpace. # noqa: E501
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
:return: The environment_template_id of this V1CloudSpace. # noqa: E501
|
|
540
|
+
:rtype: str
|
|
541
|
+
"""
|
|
542
|
+
return self._environment_template_id
|
|
543
|
+
|
|
544
|
+
@environment_template_id.setter
|
|
545
|
+
def environment_template_id(self, environment_template_id: 'str'):
|
|
546
|
+
"""Sets the environment_template_id of this V1CloudSpace.
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
:param environment_template_id: The environment_template_id of this V1CloudSpace. # noqa: E501
|
|
550
|
+
:type: str
|
|
551
|
+
"""
|
|
552
|
+
|
|
553
|
+
self._environment_template_id = environment_template_id
|
|
554
|
+
|
|
524
555
|
@property
|
|
525
556
|
def featured(self) -> 'bool':
|
|
526
557
|
"""Gets the featured of this V1CloudSpace. # noqa: E501
|
|
@@ -773,6 +804,27 @@ class V1CloudSpace(object):
|
|
|
773
804
|
|
|
774
805
|
self._machine_image_version = machine_image_version
|
|
775
806
|
|
|
807
|
+
@property
|
|
808
|
+
def max_run_duration(self) -> 'str':
|
|
809
|
+
"""Gets the max_run_duration of this V1CloudSpace. # noqa: E501
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
:return: The max_run_duration of this V1CloudSpace. # noqa: E501
|
|
813
|
+
:rtype: str
|
|
814
|
+
"""
|
|
815
|
+
return self._max_run_duration
|
|
816
|
+
|
|
817
|
+
@max_run_duration.setter
|
|
818
|
+
def max_run_duration(self, max_run_duration: 'str'):
|
|
819
|
+
"""Sets the max_run_duration of this V1CloudSpace.
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
:param max_run_duration: The max_run_duration of this V1CloudSpace. # noqa: E501
|
|
823
|
+
:type: str
|
|
824
|
+
"""
|
|
825
|
+
|
|
826
|
+
self._max_run_duration = max_run_duration
|
|
827
|
+
|
|
776
828
|
@property
|
|
777
829
|
def message(self) -> 'str':
|
|
778
830
|
"""Gets the message of this V1CloudSpace. # noqa: E501
|
|
@@ -47,11 +47,13 @@ class V1CloudSpaceColdStartMetrics(object):
|
|
|
47
47
|
'container_started_at': 'datetime',
|
|
48
48
|
'created_at': 'datetime',
|
|
49
49
|
'deleted_at': 'datetime',
|
|
50
|
+
'display_name': 'str',
|
|
50
51
|
'docker_availability_ended_at': 'datetime',
|
|
51
52
|
'docker_availability_started_at': 'datetime',
|
|
52
53
|
'image_pulling_ended_at': 'datetime',
|
|
53
54
|
'image_pulling_started_at': 'datetime',
|
|
54
55
|
'instance_type': 'str',
|
|
56
|
+
'is_studio_deleted': 'bool',
|
|
55
57
|
'overprovisioned': 'bool',
|
|
56
58
|
'progress_bar_ended_at': 'datetime',
|
|
57
59
|
'project_id': 'str',
|
|
@@ -70,11 +72,13 @@ class V1CloudSpaceColdStartMetrics(object):
|
|
|
70
72
|
'container_started_at': 'containerStartedAt',
|
|
71
73
|
'created_at': 'createdAt',
|
|
72
74
|
'deleted_at': 'deletedAt',
|
|
75
|
+
'display_name': 'displayName',
|
|
73
76
|
'docker_availability_ended_at': 'dockerAvailabilityEndedAt',
|
|
74
77
|
'docker_availability_started_at': 'dockerAvailabilityStartedAt',
|
|
75
78
|
'image_pulling_ended_at': 'imagePullingEndedAt',
|
|
76
79
|
'image_pulling_started_at': 'imagePullingStartedAt',
|
|
77
80
|
'instance_type': 'instanceType',
|
|
81
|
+
'is_studio_deleted': 'isStudioDeleted',
|
|
78
82
|
'overprovisioned': 'overprovisioned',
|
|
79
83
|
'progress_bar_ended_at': 'progressBarEndedAt',
|
|
80
84
|
'project_id': 'projectId',
|
|
@@ -86,7 +90,7 @@ class V1CloudSpaceColdStartMetrics(object):
|
|
|
86
90
|
'user_id': 'userId'
|
|
87
91
|
}
|
|
88
92
|
|
|
89
|
-
def __init__(self, cloudspace_id: 'str' =None, cloudspace_instance_id: 'str' =None, cluster_id: 'str' =None, container_started_at: 'datetime' =None, created_at: 'datetime' =None, deleted_at: 'datetime' =None, docker_availability_ended_at: 'datetime' =None, docker_availability_started_at: 'datetime' =None, image_pulling_ended_at: 'datetime' =None, image_pulling_started_at: 'datetime' =None, instance_type: 'str' =None, overprovisioned: 'bool' =None, progress_bar_ended_at: 'datetime' =None, project_id: 'str' =None, resources: 'V1Resources' =None, spot: 'bool' =None, started_at: 'datetime' =None, stop_at: 'datetime' =None, stopped_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
93
|
+
def __init__(self, cloudspace_id: 'str' =None, cloudspace_instance_id: 'str' =None, cluster_id: 'str' =None, container_started_at: 'datetime' =None, created_at: 'datetime' =None, deleted_at: 'datetime' =None, display_name: 'str' =None, docker_availability_ended_at: 'datetime' =None, docker_availability_started_at: 'datetime' =None, image_pulling_ended_at: 'datetime' =None, image_pulling_started_at: 'datetime' =None, instance_type: 'str' =None, is_studio_deleted: 'bool' =None, overprovisioned: 'bool' =None, progress_bar_ended_at: 'datetime' =None, project_id: 'str' =None, resources: 'V1Resources' =None, spot: 'bool' =None, started_at: 'datetime' =None, stop_at: 'datetime' =None, stopped_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
90
94
|
"""V1CloudSpaceColdStartMetrics - a model defined in Swagger""" # noqa: E501
|
|
91
95
|
self._cloudspace_id = None
|
|
92
96
|
self._cloudspace_instance_id = None
|
|
@@ -94,11 +98,13 @@ class V1CloudSpaceColdStartMetrics(object):
|
|
|
94
98
|
self._container_started_at = None
|
|
95
99
|
self._created_at = None
|
|
96
100
|
self._deleted_at = None
|
|
101
|
+
self._display_name = None
|
|
97
102
|
self._docker_availability_ended_at = None
|
|
98
103
|
self._docker_availability_started_at = None
|
|
99
104
|
self._image_pulling_ended_at = None
|
|
100
105
|
self._image_pulling_started_at = None
|
|
101
106
|
self._instance_type = None
|
|
107
|
+
self._is_studio_deleted = None
|
|
102
108
|
self._overprovisioned = None
|
|
103
109
|
self._progress_bar_ended_at = None
|
|
104
110
|
self._project_id = None
|
|
@@ -121,6 +127,8 @@ class V1CloudSpaceColdStartMetrics(object):
|
|
|
121
127
|
self.created_at = created_at
|
|
122
128
|
if deleted_at is not None:
|
|
123
129
|
self.deleted_at = deleted_at
|
|
130
|
+
if display_name is not None:
|
|
131
|
+
self.display_name = display_name
|
|
124
132
|
if docker_availability_ended_at is not None:
|
|
125
133
|
self.docker_availability_ended_at = docker_availability_ended_at
|
|
126
134
|
if docker_availability_started_at is not None:
|
|
@@ -131,6 +139,8 @@ class V1CloudSpaceColdStartMetrics(object):
|
|
|
131
139
|
self.image_pulling_started_at = image_pulling_started_at
|
|
132
140
|
if instance_type is not None:
|
|
133
141
|
self.instance_type = instance_type
|
|
142
|
+
if is_studio_deleted is not None:
|
|
143
|
+
self.is_studio_deleted = is_studio_deleted
|
|
134
144
|
if overprovisioned is not None:
|
|
135
145
|
self.overprovisioned = overprovisioned
|
|
136
146
|
if progress_bar_ended_at is not None:
|
|
@@ -276,6 +286,27 @@ class V1CloudSpaceColdStartMetrics(object):
|
|
|
276
286
|
|
|
277
287
|
self._deleted_at = deleted_at
|
|
278
288
|
|
|
289
|
+
@property
|
|
290
|
+
def display_name(self) -> 'str':
|
|
291
|
+
"""Gets the display_name of this V1CloudSpaceColdStartMetrics. # noqa: E501
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
:return: The display_name of this V1CloudSpaceColdStartMetrics. # noqa: E501
|
|
295
|
+
:rtype: str
|
|
296
|
+
"""
|
|
297
|
+
return self._display_name
|
|
298
|
+
|
|
299
|
+
@display_name.setter
|
|
300
|
+
def display_name(self, display_name: 'str'):
|
|
301
|
+
"""Sets the display_name of this V1CloudSpaceColdStartMetrics.
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
:param display_name: The display_name of this V1CloudSpaceColdStartMetrics. # noqa: E501
|
|
305
|
+
:type: str
|
|
306
|
+
"""
|
|
307
|
+
|
|
308
|
+
self._display_name = display_name
|
|
309
|
+
|
|
279
310
|
@property
|
|
280
311
|
def docker_availability_ended_at(self) -> 'datetime':
|
|
281
312
|
"""Gets the docker_availability_ended_at of this V1CloudSpaceColdStartMetrics. # noqa: E501
|
|
@@ -381,6 +412,27 @@ class V1CloudSpaceColdStartMetrics(object):
|
|
|
381
412
|
|
|
382
413
|
self._instance_type = instance_type
|
|
383
414
|
|
|
415
|
+
@property
|
|
416
|
+
def is_studio_deleted(self) -> 'bool':
|
|
417
|
+
"""Gets the is_studio_deleted of this V1CloudSpaceColdStartMetrics. # noqa: E501
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
:return: The is_studio_deleted of this V1CloudSpaceColdStartMetrics. # noqa: E501
|
|
421
|
+
:rtype: bool
|
|
422
|
+
"""
|
|
423
|
+
return self._is_studio_deleted
|
|
424
|
+
|
|
425
|
+
@is_studio_deleted.setter
|
|
426
|
+
def is_studio_deleted(self, is_studio_deleted: 'bool'):
|
|
427
|
+
"""Sets the is_studio_deleted of this V1CloudSpaceColdStartMetrics.
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
:param is_studio_deleted: The is_studio_deleted of this V1CloudSpaceColdStartMetrics. # noqa: E501
|
|
431
|
+
:type: bool
|
|
432
|
+
"""
|
|
433
|
+
|
|
434
|
+
self._is_studio_deleted = is_studio_deleted
|
|
435
|
+
|
|
384
436
|
@property
|
|
385
437
|
def overprovisioned(self) -> 'bool':
|
|
386
438
|
"""Gets the overprovisioned of this V1CloudSpaceColdStartMetrics. # noqa: E501
|
|
@@ -0,0 +1,357 @@
|
|
|
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 V1CloudSpaceColdStartMetricsStats(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
|
+
'cpu_count': 'int',
|
|
45
|
+
'gpu_count': 'int',
|
|
46
|
+
'gpu_type': 'str',
|
|
47
|
+
'instance_type': 'str',
|
|
48
|
+
'median_env_setup': 'float',
|
|
49
|
+
'median_initialize_env': 'float',
|
|
50
|
+
'median_machine_startup': 'float',
|
|
51
|
+
'median_total': 'float',
|
|
52
|
+
'median_wait_for_machine': 'float',
|
|
53
|
+
'provider': 'str'
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
attribute_map = {
|
|
57
|
+
'cpu_count': 'cpuCount',
|
|
58
|
+
'gpu_count': 'gpuCount',
|
|
59
|
+
'gpu_type': 'gpuType',
|
|
60
|
+
'instance_type': 'instanceType',
|
|
61
|
+
'median_env_setup': 'medianEnvSetup',
|
|
62
|
+
'median_initialize_env': 'medianInitializeEnv',
|
|
63
|
+
'median_machine_startup': 'medianMachineStartup',
|
|
64
|
+
'median_total': 'medianTotal',
|
|
65
|
+
'median_wait_for_machine': 'medianWaitForMachine',
|
|
66
|
+
'provider': 'provider'
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
def __init__(self, cpu_count: 'int' =None, gpu_count: 'int' =None, gpu_type: 'str' =None, instance_type: 'str' =None, median_env_setup: 'float' =None, median_initialize_env: 'float' =None, median_machine_startup: 'float' =None, median_total: 'float' =None, median_wait_for_machine: 'float' =None, provider: 'str' =None): # noqa: E501
|
|
70
|
+
"""V1CloudSpaceColdStartMetricsStats - a model defined in Swagger""" # noqa: E501
|
|
71
|
+
self._cpu_count = None
|
|
72
|
+
self._gpu_count = None
|
|
73
|
+
self._gpu_type = None
|
|
74
|
+
self._instance_type = None
|
|
75
|
+
self._median_env_setup = None
|
|
76
|
+
self._median_initialize_env = None
|
|
77
|
+
self._median_machine_startup = None
|
|
78
|
+
self._median_total = None
|
|
79
|
+
self._median_wait_for_machine = None
|
|
80
|
+
self._provider = None
|
|
81
|
+
self.discriminator = None
|
|
82
|
+
if cpu_count is not None:
|
|
83
|
+
self.cpu_count = cpu_count
|
|
84
|
+
if gpu_count is not None:
|
|
85
|
+
self.gpu_count = gpu_count
|
|
86
|
+
if gpu_type is not None:
|
|
87
|
+
self.gpu_type = gpu_type
|
|
88
|
+
if instance_type is not None:
|
|
89
|
+
self.instance_type = instance_type
|
|
90
|
+
if median_env_setup is not None:
|
|
91
|
+
self.median_env_setup = median_env_setup
|
|
92
|
+
if median_initialize_env is not None:
|
|
93
|
+
self.median_initialize_env = median_initialize_env
|
|
94
|
+
if median_machine_startup is not None:
|
|
95
|
+
self.median_machine_startup = median_machine_startup
|
|
96
|
+
if median_total is not None:
|
|
97
|
+
self.median_total = median_total
|
|
98
|
+
if median_wait_for_machine is not None:
|
|
99
|
+
self.median_wait_for_machine = median_wait_for_machine
|
|
100
|
+
if provider is not None:
|
|
101
|
+
self.provider = provider
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def cpu_count(self) -> 'int':
|
|
105
|
+
"""Gets the cpu_count of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
:return: The cpu_count of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
109
|
+
:rtype: int
|
|
110
|
+
"""
|
|
111
|
+
return self._cpu_count
|
|
112
|
+
|
|
113
|
+
@cpu_count.setter
|
|
114
|
+
def cpu_count(self, cpu_count: 'int'):
|
|
115
|
+
"""Sets the cpu_count of this V1CloudSpaceColdStartMetricsStats.
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
:param cpu_count: The cpu_count of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
119
|
+
:type: int
|
|
120
|
+
"""
|
|
121
|
+
|
|
122
|
+
self._cpu_count = cpu_count
|
|
123
|
+
|
|
124
|
+
@property
|
|
125
|
+
def gpu_count(self) -> 'int':
|
|
126
|
+
"""Gets the gpu_count of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:return: The gpu_count of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
130
|
+
:rtype: int
|
|
131
|
+
"""
|
|
132
|
+
return self._gpu_count
|
|
133
|
+
|
|
134
|
+
@gpu_count.setter
|
|
135
|
+
def gpu_count(self, gpu_count: 'int'):
|
|
136
|
+
"""Sets the gpu_count of this V1CloudSpaceColdStartMetricsStats.
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
:param gpu_count: The gpu_count of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
140
|
+
:type: int
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
self._gpu_count = gpu_count
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def gpu_type(self) -> 'str':
|
|
147
|
+
"""Gets the gpu_type of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
:return: The gpu_type of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
151
|
+
:rtype: str
|
|
152
|
+
"""
|
|
153
|
+
return self._gpu_type
|
|
154
|
+
|
|
155
|
+
@gpu_type.setter
|
|
156
|
+
def gpu_type(self, gpu_type: 'str'):
|
|
157
|
+
"""Sets the gpu_type of this V1CloudSpaceColdStartMetricsStats.
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
:param gpu_type: The gpu_type of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
161
|
+
:type: str
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
self._gpu_type = gpu_type
|
|
165
|
+
|
|
166
|
+
@property
|
|
167
|
+
def instance_type(self) -> 'str':
|
|
168
|
+
"""Gets the instance_type of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:return: The instance_type of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
172
|
+
:rtype: str
|
|
173
|
+
"""
|
|
174
|
+
return self._instance_type
|
|
175
|
+
|
|
176
|
+
@instance_type.setter
|
|
177
|
+
def instance_type(self, instance_type: 'str'):
|
|
178
|
+
"""Sets the instance_type of this V1CloudSpaceColdStartMetricsStats.
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
:param instance_type: The instance_type of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
182
|
+
:type: str
|
|
183
|
+
"""
|
|
184
|
+
|
|
185
|
+
self._instance_type = instance_type
|
|
186
|
+
|
|
187
|
+
@property
|
|
188
|
+
def median_env_setup(self) -> 'float':
|
|
189
|
+
"""Gets the median_env_setup of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
:return: The median_env_setup of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
193
|
+
:rtype: float
|
|
194
|
+
"""
|
|
195
|
+
return self._median_env_setup
|
|
196
|
+
|
|
197
|
+
@median_env_setup.setter
|
|
198
|
+
def median_env_setup(self, median_env_setup: 'float'):
|
|
199
|
+
"""Sets the median_env_setup of this V1CloudSpaceColdStartMetricsStats.
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
:param median_env_setup: The median_env_setup of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
203
|
+
:type: float
|
|
204
|
+
"""
|
|
205
|
+
|
|
206
|
+
self._median_env_setup = median_env_setup
|
|
207
|
+
|
|
208
|
+
@property
|
|
209
|
+
def median_initialize_env(self) -> 'float':
|
|
210
|
+
"""Gets the median_initialize_env of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
:return: The median_initialize_env of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
214
|
+
:rtype: float
|
|
215
|
+
"""
|
|
216
|
+
return self._median_initialize_env
|
|
217
|
+
|
|
218
|
+
@median_initialize_env.setter
|
|
219
|
+
def median_initialize_env(self, median_initialize_env: 'float'):
|
|
220
|
+
"""Sets the median_initialize_env of this V1CloudSpaceColdStartMetricsStats.
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
:param median_initialize_env: The median_initialize_env of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
224
|
+
:type: float
|
|
225
|
+
"""
|
|
226
|
+
|
|
227
|
+
self._median_initialize_env = median_initialize_env
|
|
228
|
+
|
|
229
|
+
@property
|
|
230
|
+
def median_machine_startup(self) -> 'float':
|
|
231
|
+
"""Gets the median_machine_startup of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
:return: The median_machine_startup of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
235
|
+
:rtype: float
|
|
236
|
+
"""
|
|
237
|
+
return self._median_machine_startup
|
|
238
|
+
|
|
239
|
+
@median_machine_startup.setter
|
|
240
|
+
def median_machine_startup(self, median_machine_startup: 'float'):
|
|
241
|
+
"""Sets the median_machine_startup of this V1CloudSpaceColdStartMetricsStats.
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
:param median_machine_startup: The median_machine_startup of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
245
|
+
:type: float
|
|
246
|
+
"""
|
|
247
|
+
|
|
248
|
+
self._median_machine_startup = median_machine_startup
|
|
249
|
+
|
|
250
|
+
@property
|
|
251
|
+
def median_total(self) -> 'float':
|
|
252
|
+
"""Gets the median_total of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
:return: The median_total of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
256
|
+
:rtype: float
|
|
257
|
+
"""
|
|
258
|
+
return self._median_total
|
|
259
|
+
|
|
260
|
+
@median_total.setter
|
|
261
|
+
def median_total(self, median_total: 'float'):
|
|
262
|
+
"""Sets the median_total of this V1CloudSpaceColdStartMetricsStats.
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
:param median_total: The median_total of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
266
|
+
:type: float
|
|
267
|
+
"""
|
|
268
|
+
|
|
269
|
+
self._median_total = median_total
|
|
270
|
+
|
|
271
|
+
@property
|
|
272
|
+
def median_wait_for_machine(self) -> 'float':
|
|
273
|
+
"""Gets the median_wait_for_machine of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
:return: The median_wait_for_machine of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
277
|
+
:rtype: float
|
|
278
|
+
"""
|
|
279
|
+
return self._median_wait_for_machine
|
|
280
|
+
|
|
281
|
+
@median_wait_for_machine.setter
|
|
282
|
+
def median_wait_for_machine(self, median_wait_for_machine: 'float'):
|
|
283
|
+
"""Sets the median_wait_for_machine of this V1CloudSpaceColdStartMetricsStats.
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
:param median_wait_for_machine: The median_wait_for_machine of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
287
|
+
:type: float
|
|
288
|
+
"""
|
|
289
|
+
|
|
290
|
+
self._median_wait_for_machine = median_wait_for_machine
|
|
291
|
+
|
|
292
|
+
@property
|
|
293
|
+
def provider(self) -> 'str':
|
|
294
|
+
"""Gets the provider of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
:return: The provider of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
298
|
+
:rtype: str
|
|
299
|
+
"""
|
|
300
|
+
return self._provider
|
|
301
|
+
|
|
302
|
+
@provider.setter
|
|
303
|
+
def provider(self, provider: 'str'):
|
|
304
|
+
"""Sets the provider of this V1CloudSpaceColdStartMetricsStats.
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
:param provider: The provider of this V1CloudSpaceColdStartMetricsStats. # noqa: E501
|
|
308
|
+
:type: str
|
|
309
|
+
"""
|
|
310
|
+
|
|
311
|
+
self._provider = provider
|
|
312
|
+
|
|
313
|
+
def to_dict(self) -> dict:
|
|
314
|
+
"""Returns the model properties as a dict"""
|
|
315
|
+
result = {}
|
|
316
|
+
|
|
317
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
318
|
+
value = getattr(self, attr)
|
|
319
|
+
if isinstance(value, list):
|
|
320
|
+
result[attr] = list(map(
|
|
321
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
322
|
+
value
|
|
323
|
+
))
|
|
324
|
+
elif hasattr(value, "to_dict"):
|
|
325
|
+
result[attr] = value.to_dict()
|
|
326
|
+
elif isinstance(value, dict):
|
|
327
|
+
result[attr] = dict(map(
|
|
328
|
+
lambda item: (item[0], item[1].to_dict())
|
|
329
|
+
if hasattr(item[1], "to_dict") else item,
|
|
330
|
+
value.items()
|
|
331
|
+
))
|
|
332
|
+
else:
|
|
333
|
+
result[attr] = value
|
|
334
|
+
if issubclass(V1CloudSpaceColdStartMetricsStats, dict):
|
|
335
|
+
for key, value in self.items():
|
|
336
|
+
result[key] = value
|
|
337
|
+
|
|
338
|
+
return result
|
|
339
|
+
|
|
340
|
+
def to_str(self) -> str:
|
|
341
|
+
"""Returns the string representation of the model"""
|
|
342
|
+
return pprint.pformat(self.to_dict())
|
|
343
|
+
|
|
344
|
+
def __repr__(self) -> str:
|
|
345
|
+
"""For `print` and `pprint`"""
|
|
346
|
+
return self.to_str()
|
|
347
|
+
|
|
348
|
+
def __eq__(self, other: 'V1CloudSpaceColdStartMetricsStats') -> bool:
|
|
349
|
+
"""Returns true if both objects are equal"""
|
|
350
|
+
if not isinstance(other, V1CloudSpaceColdStartMetricsStats):
|
|
351
|
+
return False
|
|
352
|
+
|
|
353
|
+
return self.__dict__ == other.__dict__
|
|
354
|
+
|
|
355
|
+
def __ne__(self, other: 'V1CloudSpaceColdStartMetricsStats') -> bool:
|
|
356
|
+
"""Returns true if both objects are not equal"""
|
|
357
|
+
return not self == other
|
|
@@ -41,19 +41,24 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'machine_image_version': 'str'
|
|
44
|
+
'machine_image_version': 'str',
|
|
45
|
+
'setup_script_text': 'str'
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
attribute_map = {
|
|
48
|
-
'machine_image_version': 'machineImageVersion'
|
|
49
|
+
'machine_image_version': 'machineImageVersion',
|
|
50
|
+
'setup_script_text': 'setupScriptText'
|
|
49
51
|
}
|
|
50
52
|
|
|
51
|
-
def __init__(self, machine_image_version: 'str' =None): # noqa: E501
|
|
53
|
+
def __init__(self, machine_image_version: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
|
|
52
54
|
"""V1CloudSpaceEnvironmentTemplateConfig - a model defined in Swagger""" # noqa: E501
|
|
53
55
|
self._machine_image_version = None
|
|
56
|
+
self._setup_script_text = None
|
|
54
57
|
self.discriminator = None
|
|
55
58
|
if machine_image_version is not None:
|
|
56
59
|
self.machine_image_version = machine_image_version
|
|
60
|
+
if setup_script_text is not None:
|
|
61
|
+
self.setup_script_text = setup_script_text
|
|
57
62
|
|
|
58
63
|
@property
|
|
59
64
|
def machine_image_version(self) -> 'str':
|
|
@@ -76,6 +81,27 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
|
|
|
76
81
|
|
|
77
82
|
self._machine_image_version = machine_image_version
|
|
78
83
|
|
|
84
|
+
@property
|
|
85
|
+
def setup_script_text(self) -> 'str':
|
|
86
|
+
"""Gets the setup_script_text of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The setup_script_text of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._setup_script_text
|
|
93
|
+
|
|
94
|
+
@setup_script_text.setter
|
|
95
|
+
def setup_script_text(self, setup_script_text: 'str'):
|
|
96
|
+
"""Sets the setup_script_text of this V1CloudSpaceEnvironmentTemplateConfig.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param setup_script_text: The setup_script_text of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
|
|
100
|
+
:type: str
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._setup_script_text = setup_script_text
|
|
104
|
+
|
|
79
105
|
def to_dict(self) -> dict:
|
|
80
106
|
"""Returns the model properties as a dict"""
|
|
81
107
|
result = {}
|