lightning-sdk 0.2.8__py3-none-any.whl → 0.2.9__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/lit_container_api.py +5 -3
- lightning_sdk/api/teamspace_api.py +2 -1
- lightning_sdk/cli/clusters_menu.py +46 -0
- lightning_sdk/cli/list.py +25 -5
- lightning_sdk/cli/serve.py +102 -19
- lightning_sdk/lightning_cloud/openapi/__init__.py +5 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +206 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +5 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_systemmetrics_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_tier.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
- 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_google_cloud_direct_v1.py +27 -1
- 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_user_features.py +55 -185
- lightning_sdk/lightning_cloud/openapi/models/v1_weka_data_connection.py +227 -0
- lightning_sdk/lit_container.py +13 -5
- lightning_sdk/models.py +7 -2
- lightning_sdk/serve.py +0 -20
- lightning_sdk/teamspace.py +19 -4
- {lightning_sdk-0.2.8.dist-info → lightning_sdk-0.2.9.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.8.dist-info → lightning_sdk-0.2.9.dist-info}/RECORD +32 -25
- {lightning_sdk-0.2.8.dist-info → lightning_sdk-0.2.9.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.8.dist-info → lightning_sdk-0.2.9.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.8.dist-info → lightning_sdk-0.2.9.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.8.dist-info → lightning_sdk-0.2.9.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class CloudspaceIdSystemmetricsBody(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
|
+
'cloudspace_instance_id': 'str',
|
|
45
|
+
'metrics': 'list[V1SystemMetrics]'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'cloudspace_instance_id': 'cloudspaceInstanceId',
|
|
50
|
+
'metrics': 'metrics'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, cloudspace_instance_id: 'str' =None, metrics: 'list[V1SystemMetrics]' =None): # noqa: E501
|
|
54
|
+
"""CloudspaceIdSystemmetricsBody - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._cloudspace_instance_id = None
|
|
56
|
+
self._metrics = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if cloudspace_instance_id is not None:
|
|
59
|
+
self.cloudspace_instance_id = cloudspace_instance_id
|
|
60
|
+
if metrics is not None:
|
|
61
|
+
self.metrics = metrics
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def cloudspace_instance_id(self) -> 'str':
|
|
65
|
+
"""Gets the cloudspace_instance_id of this CloudspaceIdSystemmetricsBody. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The cloudspace_instance_id of this CloudspaceIdSystemmetricsBody. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._cloudspace_instance_id
|
|
72
|
+
|
|
73
|
+
@cloudspace_instance_id.setter
|
|
74
|
+
def cloudspace_instance_id(self, cloudspace_instance_id: 'str'):
|
|
75
|
+
"""Sets the cloudspace_instance_id of this CloudspaceIdSystemmetricsBody.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param cloudspace_instance_id: The cloudspace_instance_id of this CloudspaceIdSystemmetricsBody. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._cloudspace_instance_id = cloudspace_instance_id
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def metrics(self) -> 'list[V1SystemMetrics]':
|
|
86
|
+
"""Gets the metrics of this CloudspaceIdSystemmetricsBody. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The metrics of this CloudspaceIdSystemmetricsBody. # noqa: E501
|
|
90
|
+
:rtype: list[V1SystemMetrics]
|
|
91
|
+
"""
|
|
92
|
+
return self._metrics
|
|
93
|
+
|
|
94
|
+
@metrics.setter
|
|
95
|
+
def metrics(self, metrics: 'list[V1SystemMetrics]'):
|
|
96
|
+
"""Sets the metrics of this CloudspaceIdSystemmetricsBody.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param metrics: The metrics of this CloudspaceIdSystemmetricsBody. # noqa: E501
|
|
100
|
+
:type: list[V1SystemMetrics]
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._metrics = metrics
|
|
104
|
+
|
|
105
|
+
def to_dict(self) -> dict:
|
|
106
|
+
"""Returns the model properties as a dict"""
|
|
107
|
+
result = {}
|
|
108
|
+
|
|
109
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
110
|
+
value = getattr(self, attr)
|
|
111
|
+
if isinstance(value, list):
|
|
112
|
+
result[attr] = list(map(
|
|
113
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
114
|
+
value
|
|
115
|
+
))
|
|
116
|
+
elif hasattr(value, "to_dict"):
|
|
117
|
+
result[attr] = value.to_dict()
|
|
118
|
+
elif isinstance(value, dict):
|
|
119
|
+
result[attr] = dict(map(
|
|
120
|
+
lambda item: (item[0], item[1].to_dict())
|
|
121
|
+
if hasattr(item[1], "to_dict") else item,
|
|
122
|
+
value.items()
|
|
123
|
+
))
|
|
124
|
+
else:
|
|
125
|
+
result[attr] = value
|
|
126
|
+
if issubclass(CloudspaceIdSystemmetricsBody, dict):
|
|
127
|
+
for key, value in self.items():
|
|
128
|
+
result[key] = value
|
|
129
|
+
|
|
130
|
+
return result
|
|
131
|
+
|
|
132
|
+
def to_str(self) -> str:
|
|
133
|
+
"""Returns the string representation of the model"""
|
|
134
|
+
return pprint.pformat(self.to_dict())
|
|
135
|
+
|
|
136
|
+
def __repr__(self) -> str:
|
|
137
|
+
"""For `print` and `pprint`"""
|
|
138
|
+
return self.to_str()
|
|
139
|
+
|
|
140
|
+
def __eq__(self, other: 'CloudspaceIdSystemmetricsBody') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, CloudspaceIdSystemmetricsBody):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'CloudspaceIdSystemmetricsBody') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|
|
@@ -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
|
|
@@ -44,6 +44,7 @@ class V1ClusterSecurityOptions(object):
|
|
|
44
44
|
'bucket_kms_key': 'str',
|
|
45
45
|
'containers_non_privileged': 'bool',
|
|
46
46
|
'disable_public_ip': 'bool',
|
|
47
|
+
'disabled_services': 'list[str]',
|
|
47
48
|
'encrypt_cluster_bucket': 'bool',
|
|
48
49
|
'encrypt_instance_volumes': 'bool',
|
|
49
50
|
'extra_firewall_cidr_ranges': 'list[str]',
|
|
@@ -59,6 +60,7 @@ class V1ClusterSecurityOptions(object):
|
|
|
59
60
|
'bucket_kms_key': 'bucketKmsKey',
|
|
60
61
|
'containers_non_privileged': 'containersNonPrivileged',
|
|
61
62
|
'disable_public_ip': 'disablePublicIp',
|
|
63
|
+
'disabled_services': 'disabledServices',
|
|
62
64
|
'encrypt_cluster_bucket': 'encryptClusterBucket',
|
|
63
65
|
'encrypt_instance_volumes': 'encryptInstanceVolumes',
|
|
64
66
|
'extra_firewall_cidr_ranges': 'extraFirewallCidrRanges',
|
|
@@ -70,11 +72,12 @@ class V1ClusterSecurityOptions(object):
|
|
|
70
72
|
'ssh_disabled': 'sshDisabled'
|
|
71
73
|
}
|
|
72
74
|
|
|
73
|
-
def __init__(self, bucket_kms_key: 'str' =None, containers_non_privileged: 'bool' =None, disable_public_ip: 'bool' =None, encrypt_cluster_bucket: 'bool' =None, encrypt_instance_volumes: 'bool' =None, extra_firewall_cidr_ranges: 'list[str]' =None, extra_policy: 'str' =None, kms_key_id: 'str' =None, protect_instance_metadata: 'bool' =None, rootless_docker: 'bool' =None, setup_network_load_balancer: 'bool' =None, ssh_disabled: 'bool' =None): # noqa: E501
|
|
75
|
+
def __init__(self, bucket_kms_key: 'str' =None, containers_non_privileged: 'bool' =None, disable_public_ip: 'bool' =None, disabled_services: 'list[str]' =None, encrypt_cluster_bucket: 'bool' =None, encrypt_instance_volumes: 'bool' =None, extra_firewall_cidr_ranges: 'list[str]' =None, extra_policy: 'str' =None, kms_key_id: 'str' =None, protect_instance_metadata: 'bool' =None, rootless_docker: 'bool' =None, setup_network_load_balancer: 'bool' =None, ssh_disabled: 'bool' =None): # noqa: E501
|
|
74
76
|
"""V1ClusterSecurityOptions - a model defined in Swagger""" # noqa: E501
|
|
75
77
|
self._bucket_kms_key = None
|
|
76
78
|
self._containers_non_privileged = None
|
|
77
79
|
self._disable_public_ip = None
|
|
80
|
+
self._disabled_services = None
|
|
78
81
|
self._encrypt_cluster_bucket = None
|
|
79
82
|
self._encrypt_instance_volumes = None
|
|
80
83
|
self._extra_firewall_cidr_ranges = None
|
|
@@ -91,6 +94,8 @@ class V1ClusterSecurityOptions(object):
|
|
|
91
94
|
self.containers_non_privileged = containers_non_privileged
|
|
92
95
|
if disable_public_ip is not None:
|
|
93
96
|
self.disable_public_ip = disable_public_ip
|
|
97
|
+
if disabled_services is not None:
|
|
98
|
+
self.disabled_services = disabled_services
|
|
94
99
|
if encrypt_cluster_bucket is not None:
|
|
95
100
|
self.encrypt_cluster_bucket = encrypt_cluster_bucket
|
|
96
101
|
if encrypt_instance_volumes is not None:
|
|
@@ -173,6 +178,27 @@ class V1ClusterSecurityOptions(object):
|
|
|
173
178
|
|
|
174
179
|
self._disable_public_ip = disable_public_ip
|
|
175
180
|
|
|
181
|
+
@property
|
|
182
|
+
def disabled_services(self) -> 'list[str]':
|
|
183
|
+
"""Gets the disabled_services of this V1ClusterSecurityOptions. # noqa: E501
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
:return: The disabled_services of this V1ClusterSecurityOptions. # noqa: E501
|
|
187
|
+
:rtype: list[str]
|
|
188
|
+
"""
|
|
189
|
+
return self._disabled_services
|
|
190
|
+
|
|
191
|
+
@disabled_services.setter
|
|
192
|
+
def disabled_services(self, disabled_services: 'list[str]'):
|
|
193
|
+
"""Sets the disabled_services of this V1ClusterSecurityOptions.
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
:param disabled_services: The disabled_services of this V1ClusterSecurityOptions. # noqa: E501
|
|
197
|
+
:type: list[str]
|
|
198
|
+
"""
|
|
199
|
+
|
|
200
|
+
self._disabled_services = disabled_services
|
|
201
|
+
|
|
176
202
|
@property
|
|
177
203
|
def encrypt_cluster_bucket(self) -> 'bool':
|
|
178
204
|
"""Gets the encrypt_cluster_bucket of this V1ClusterSecurityOptions. # noqa: E501
|
|
@@ -65,6 +65,7 @@ class V1DataConnection(object):
|
|
|
65
65
|
'total_size_bytes': 'str',
|
|
66
66
|
'type': 'str',
|
|
67
67
|
'updated_at': 'datetime',
|
|
68
|
+
'weka': 'V1WekaDataConnection',
|
|
68
69
|
'writable': 'bool'
|
|
69
70
|
}
|
|
70
71
|
|
|
@@ -93,10 +94,11 @@ class V1DataConnection(object):
|
|
|
93
94
|
'total_size_bytes': 'totalSizeBytes',
|
|
94
95
|
'type': 'type',
|
|
95
96
|
'updated_at': 'updatedAt',
|
|
97
|
+
'weka': 'weka',
|
|
96
98
|
'writable': 'writable'
|
|
97
99
|
}
|
|
98
100
|
|
|
99
|
-
def __init__(self, access_cluster_ids: 'list[str]' =None, accessible: 'bool' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, efs: 'V1EfsConfig' =None, error: 'str' =None, filestore: 'V1FilestoreDataConnection' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, id: 'str' =None, index: 'V1Index' =None, is_managed: 'bool' =None, lock_out: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, project_id: 'str' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, state: 'V1DataConnectionState' =None, total_size_bytes: 'str' =None, type: 'str' =None, updated_at: 'datetime' =None, writable: 'bool' =None): # noqa: E501
|
|
101
|
+
def __init__(self, access_cluster_ids: 'list[str]' =None, accessible: 'bool' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, efs: 'V1EfsConfig' =None, error: 'str' =None, filestore: 'V1FilestoreDataConnection' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, id: 'str' =None, index: 'V1Index' =None, is_managed: 'bool' =None, lock_out: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, project_id: 'str' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, state: 'V1DataConnectionState' =None, total_size_bytes: 'str' =None, type: 'str' =None, updated_at: 'datetime' =None, weka: 'V1WekaDataConnection' =None, writable: 'bool' =None): # noqa: E501
|
|
100
102
|
"""V1DataConnection - a model defined in Swagger""" # noqa: E501
|
|
101
103
|
self._access_cluster_ids = None
|
|
102
104
|
self._accessible = None
|
|
@@ -122,6 +124,7 @@ class V1DataConnection(object):
|
|
|
122
124
|
self._total_size_bytes = None
|
|
123
125
|
self._type = None
|
|
124
126
|
self._updated_at = None
|
|
127
|
+
self._weka = None
|
|
125
128
|
self._writable = None
|
|
126
129
|
self.discriminator = None
|
|
127
130
|
if access_cluster_ids is not None:
|
|
@@ -172,6 +175,8 @@ class V1DataConnection(object):
|
|
|
172
175
|
self.type = type
|
|
173
176
|
if updated_at is not None:
|
|
174
177
|
self.updated_at = updated_at
|
|
178
|
+
if weka is not None:
|
|
179
|
+
self.weka = weka
|
|
175
180
|
if writable is not None:
|
|
176
181
|
self.writable = writable
|
|
177
182
|
|
|
@@ -679,6 +684,27 @@ class V1DataConnection(object):
|
|
|
679
684
|
|
|
680
685
|
self._updated_at = updated_at
|
|
681
686
|
|
|
687
|
+
@property
|
|
688
|
+
def weka(self) -> 'V1WekaDataConnection':
|
|
689
|
+
"""Gets the weka of this V1DataConnection. # noqa: E501
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
:return: The weka of this V1DataConnection. # noqa: E501
|
|
693
|
+
:rtype: V1WekaDataConnection
|
|
694
|
+
"""
|
|
695
|
+
return self._weka
|
|
696
|
+
|
|
697
|
+
@weka.setter
|
|
698
|
+
def weka(self, weka: 'V1WekaDataConnection'):
|
|
699
|
+
"""Sets the weka of this V1DataConnection.
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
:param weka: The weka of this V1DataConnection. # noqa: E501
|
|
703
|
+
:type: V1WekaDataConnection
|
|
704
|
+
"""
|
|
705
|
+
|
|
706
|
+
self._weka = weka
|
|
707
|
+
|
|
682
708
|
@property
|
|
683
709
|
def writable(self) -> 'bool':
|
|
684
710
|
"""Gets the writable of this V1DataConnection. # noqa: E501
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class V1GetCloudSpaceInstanceSystemMetricsAggregateResponse(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
|
+
'metrics': 'list[V1SystemMetricsAggregated]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'metrics': 'metrics'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, metrics: 'list[V1SystemMetricsAggregated]' =None): # noqa: E501
|
|
52
|
+
"""V1GetCloudSpaceInstanceSystemMetricsAggregateResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._metrics = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if metrics is not None:
|
|
56
|
+
self.metrics = metrics
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def metrics(self) -> 'list[V1SystemMetricsAggregated]':
|
|
60
|
+
"""Gets the metrics of this V1GetCloudSpaceInstanceSystemMetricsAggregateResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The metrics of this V1GetCloudSpaceInstanceSystemMetricsAggregateResponse. # noqa: E501
|
|
64
|
+
:rtype: list[V1SystemMetricsAggregated]
|
|
65
|
+
"""
|
|
66
|
+
return self._metrics
|
|
67
|
+
|
|
68
|
+
@metrics.setter
|
|
69
|
+
def metrics(self, metrics: 'list[V1SystemMetricsAggregated]'):
|
|
70
|
+
"""Sets the metrics of this V1GetCloudSpaceInstanceSystemMetricsAggregateResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param metrics: The metrics of this V1GetCloudSpaceInstanceSystemMetricsAggregateResponse. # noqa: E501
|
|
74
|
+
:type: list[V1SystemMetricsAggregated]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._metrics = metrics
|
|
78
|
+
|
|
79
|
+
def to_dict(self) -> dict:
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
if issubclass(V1GetCloudSpaceInstanceSystemMetricsAggregateResponse, dict):
|
|
101
|
+
for key, value in self.items():
|
|
102
|
+
result[key] = value
|
|
103
|
+
|
|
104
|
+
return result
|
|
105
|
+
|
|
106
|
+
def to_str(self) -> str:
|
|
107
|
+
"""Returns the string representation of the model"""
|
|
108
|
+
return pprint.pformat(self.to_dict())
|
|
109
|
+
|
|
110
|
+
def __repr__(self) -> str:
|
|
111
|
+
"""For `print` and `pprint`"""
|
|
112
|
+
return self.to_str()
|
|
113
|
+
|
|
114
|
+
def __eq__(self, other: 'V1GetCloudSpaceInstanceSystemMetricsAggregateResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1GetCloudSpaceInstanceSystemMetricsAggregateResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1GetCloudSpaceInstanceSystemMetricsAggregateResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -43,6 +43,7 @@ class V1GoogleCloudDirectV1(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'bucket_name': 'str',
|
|
45
45
|
'compute_project_role': 'str',
|
|
46
|
+
'compute_service_account_email': 'str',
|
|
46
47
|
'credentials_secret_id': 'str',
|
|
47
48
|
'credentials_service_account_email': 'str',
|
|
48
49
|
'custom_subnet_mode': 'bool',
|
|
@@ -59,6 +60,7 @@ class V1GoogleCloudDirectV1(object):
|
|
|
59
60
|
attribute_map = {
|
|
60
61
|
'bucket_name': 'bucketName',
|
|
61
62
|
'compute_project_role': 'computeProjectRole',
|
|
63
|
+
'compute_service_account_email': 'computeServiceAccountEmail',
|
|
62
64
|
'credentials_secret_id': 'credentialsSecretId',
|
|
63
65
|
'credentials_service_account_email': 'credentialsServiceAccountEmail',
|
|
64
66
|
'custom_subnet_mode': 'customSubnetMode',
|
|
@@ -72,10 +74,11 @@ class V1GoogleCloudDirectV1(object):
|
|
|
72
74
|
'vpc_networks': 'vpcNetworks'
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
def __init__(self, bucket_name: 'str' =None, compute_project_role: 'str' =None, credentials_secret_id: 'str' =None, credentials_service_account_email: 'str' =None, custom_subnet_mode: 'bool' =None, primary_region: 'str' =None, project_id: 'str' =None, project_sa_enabled: 'bool' =None, regions: 'list[str]' =None, service_account_email: 'str' =None, source_cidr_ips: 'list[str]' =None, subnets: 'list[V1SubnetSpec]' =None, vpc_networks: 'list[str]' =None): # noqa: E501
|
|
77
|
+
def __init__(self, bucket_name: 'str' =None, compute_project_role: 'str' =None, compute_service_account_email: 'str' =None, credentials_secret_id: 'str' =None, credentials_service_account_email: 'str' =None, custom_subnet_mode: 'bool' =None, primary_region: 'str' =None, project_id: 'str' =None, project_sa_enabled: 'bool' =None, regions: 'list[str]' =None, service_account_email: 'str' =None, source_cidr_ips: 'list[str]' =None, subnets: 'list[V1SubnetSpec]' =None, vpc_networks: 'list[str]' =None): # noqa: E501
|
|
76
78
|
"""V1GoogleCloudDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
77
79
|
self._bucket_name = None
|
|
78
80
|
self._compute_project_role = None
|
|
81
|
+
self._compute_service_account_email = None
|
|
79
82
|
self._credentials_secret_id = None
|
|
80
83
|
self._credentials_service_account_email = None
|
|
81
84
|
self._custom_subnet_mode = None
|
|
@@ -92,6 +95,8 @@ class V1GoogleCloudDirectV1(object):
|
|
|
92
95
|
self.bucket_name = bucket_name
|
|
93
96
|
if compute_project_role is not None:
|
|
94
97
|
self.compute_project_role = compute_project_role
|
|
98
|
+
if compute_service_account_email is not None:
|
|
99
|
+
self.compute_service_account_email = compute_service_account_email
|
|
95
100
|
if credentials_secret_id is not None:
|
|
96
101
|
self.credentials_secret_id = credentials_secret_id
|
|
97
102
|
if credentials_service_account_email is not None:
|
|
@@ -157,6 +162,27 @@ class V1GoogleCloudDirectV1(object):
|
|
|
157
162
|
|
|
158
163
|
self._compute_project_role = compute_project_role
|
|
159
164
|
|
|
165
|
+
@property
|
|
166
|
+
def compute_service_account_email(self) -> 'str':
|
|
167
|
+
"""Gets the compute_service_account_email of this V1GoogleCloudDirectV1. # noqa: E501
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
:return: The compute_service_account_email of this V1GoogleCloudDirectV1. # noqa: E501
|
|
171
|
+
:rtype: str
|
|
172
|
+
"""
|
|
173
|
+
return self._compute_service_account_email
|
|
174
|
+
|
|
175
|
+
@compute_service_account_email.setter
|
|
176
|
+
def compute_service_account_email(self, compute_service_account_email: 'str'):
|
|
177
|
+
"""Sets the compute_service_account_email of this V1GoogleCloudDirectV1.
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
:param compute_service_account_email: The compute_service_account_email of this V1GoogleCloudDirectV1. # noqa: E501
|
|
181
|
+
:type: str
|
|
182
|
+
"""
|
|
183
|
+
|
|
184
|
+
self._compute_service_account_email = compute_service_account_email
|
|
185
|
+
|
|
160
186
|
@property
|
|
161
187
|
def credentials_secret_id(self) -> 'str':
|
|
162
188
|
"""Gets the credentials_secret_id of this V1GoogleCloudDirectV1. # noqa: E501
|