lightning-sdk 0.2.6__py3-none-any.whl → 0.2.8__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/ai_hub_api.py +1 -0
- lightning_sdk/api/lit_container_api.py +83 -30
- lightning_sdk/api/teamspace_api.py +8 -9
- lightning_sdk/api/utils.py +0 -1
- lightning_sdk/cli/docker.py +1 -1
- lightning_sdk/cli/download.py +10 -2
- lightning_sdk/cli/serve.py +51 -41
- lightning_sdk/cli/upload.py +41 -6
- lightning_sdk/lightning_cloud/openapi/__init__.py +8 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +8 -0
- lightning_sdk/lightning_cloud/openapi/models/alerts_config_billing.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/alerts_config_studios.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_alert_method.py +102 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_alerts_config.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics.py +617 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_cold_start_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_stop_at_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_phase.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
- lightning_sdk/lightning_cloud/rest_client.py +42 -44
- lightning_sdk/lit_container.py +19 -4
- lightning_sdk/models.py +1 -1
- lightning_sdk/serve.py +107 -41
- lightning_sdk/teamspace.py +32 -18
- {lightning_sdk-0.2.6.dist-info → lightning_sdk-0.2.8.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.6.dist-info → lightning_sdk-0.2.8.dist-info}/RECORD +42 -34
- {lightning_sdk-0.2.6.dist-info → lightning_sdk-0.2.8.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.6.dist-info → lightning_sdk-0.2.8.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.6.dist-info → lightning_sdk-0.2.8.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.6.dist-info → lightning_sdk-0.2.8.dist-info}/top_level.txt +0 -0
|
@@ -42,6 +42,7 @@ class V1CreateProjectRequest(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'default_machine_image_version': 'str',
|
|
45
|
+
'default_machine_type': 'str',
|
|
45
46
|
'description': 'str',
|
|
46
47
|
'display_name': 'str',
|
|
47
48
|
'name': 'str',
|
|
@@ -52,6 +53,7 @@ class V1CreateProjectRequest(object):
|
|
|
52
53
|
|
|
53
54
|
attribute_map = {
|
|
54
55
|
'default_machine_image_version': 'defaultMachineImageVersion',
|
|
56
|
+
'default_machine_type': 'defaultMachineType',
|
|
55
57
|
'description': 'description',
|
|
56
58
|
'display_name': 'displayName',
|
|
57
59
|
'name': 'name',
|
|
@@ -60,9 +62,10 @@ class V1CreateProjectRequest(object):
|
|
|
60
62
|
'quotas': 'quotas'
|
|
61
63
|
}
|
|
62
64
|
|
|
63
|
-
def __init__(self, default_machine_image_version: 'str' =None, description: 'str' =None, display_name: 'str' =None, name: 'str' =None, organization_id: 'str' =None, preferred_cluster: 'str' =None, quotas: 'V1Quotas' =None): # noqa: E501
|
|
65
|
+
def __init__(self, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, name: 'str' =None, organization_id: 'str' =None, preferred_cluster: 'str' =None, quotas: 'V1Quotas' =None): # noqa: E501
|
|
64
66
|
"""V1CreateProjectRequest - a model defined in Swagger""" # noqa: E501
|
|
65
67
|
self._default_machine_image_version = None
|
|
68
|
+
self._default_machine_type = None
|
|
66
69
|
self._description = None
|
|
67
70
|
self._display_name = None
|
|
68
71
|
self._name = None
|
|
@@ -72,6 +75,8 @@ class V1CreateProjectRequest(object):
|
|
|
72
75
|
self.discriminator = None
|
|
73
76
|
if default_machine_image_version is not None:
|
|
74
77
|
self.default_machine_image_version = default_machine_image_version
|
|
78
|
+
if default_machine_type is not None:
|
|
79
|
+
self.default_machine_type = default_machine_type
|
|
75
80
|
if description is not None:
|
|
76
81
|
self.description = description
|
|
77
82
|
if display_name is not None:
|
|
@@ -106,6 +111,27 @@ class V1CreateProjectRequest(object):
|
|
|
106
111
|
|
|
107
112
|
self._default_machine_image_version = default_machine_image_version
|
|
108
113
|
|
|
114
|
+
@property
|
|
115
|
+
def default_machine_type(self) -> 'str':
|
|
116
|
+
"""Gets the default_machine_type of this V1CreateProjectRequest. # noqa: E501
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
:return: The default_machine_type of this V1CreateProjectRequest. # noqa: E501
|
|
120
|
+
:rtype: str
|
|
121
|
+
"""
|
|
122
|
+
return self._default_machine_type
|
|
123
|
+
|
|
124
|
+
@default_machine_type.setter
|
|
125
|
+
def default_machine_type(self, default_machine_type: 'str'):
|
|
126
|
+
"""Sets the default_machine_type of this V1CreateProjectRequest.
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:param default_machine_type: The default_machine_type of this V1CreateProjectRequest. # noqa: E501
|
|
130
|
+
:type: str
|
|
131
|
+
"""
|
|
132
|
+
|
|
133
|
+
self._default_machine_type = default_machine_type
|
|
134
|
+
|
|
109
135
|
@property
|
|
110
136
|
def description(self) -> 'str':
|
|
111
137
|
"""Gets the description of this V1CreateProjectRequest. # noqa: E501
|
|
@@ -52,7 +52,8 @@ class V1GoogleCloudDirectV1(object):
|
|
|
52
52
|
'regions': 'list[str]',
|
|
53
53
|
'service_account_email': 'str',
|
|
54
54
|
'source_cidr_ips': 'list[str]',
|
|
55
|
-
'subnets': 'list[V1SubnetSpec]'
|
|
55
|
+
'subnets': 'list[V1SubnetSpec]',
|
|
56
|
+
'vpc_networks': 'list[str]'
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
attribute_map = {
|
|
@@ -67,10 +68,11 @@ class V1GoogleCloudDirectV1(object):
|
|
|
67
68
|
'regions': 'regions',
|
|
68
69
|
'service_account_email': 'serviceAccountEmail',
|
|
69
70
|
'source_cidr_ips': 'sourceCidrIps',
|
|
70
|
-
'subnets': 'subnets'
|
|
71
|
+
'subnets': 'subnets',
|
|
72
|
+
'vpc_networks': 'vpcNetworks'
|
|
71
73
|
}
|
|
72
74
|
|
|
73
|
-
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): # noqa: E501
|
|
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
|
|
74
76
|
"""V1GoogleCloudDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
75
77
|
self._bucket_name = None
|
|
76
78
|
self._compute_project_role = None
|
|
@@ -84,6 +86,7 @@ class V1GoogleCloudDirectV1(object):
|
|
|
84
86
|
self._service_account_email = None
|
|
85
87
|
self._source_cidr_ips = None
|
|
86
88
|
self._subnets = None
|
|
89
|
+
self._vpc_networks = None
|
|
87
90
|
self.discriminator = None
|
|
88
91
|
if bucket_name is not None:
|
|
89
92
|
self.bucket_name = bucket_name
|
|
@@ -109,6 +112,8 @@ class V1GoogleCloudDirectV1(object):
|
|
|
109
112
|
self.source_cidr_ips = source_cidr_ips
|
|
110
113
|
if subnets is not None:
|
|
111
114
|
self.subnets = subnets
|
|
115
|
+
if vpc_networks is not None:
|
|
116
|
+
self.vpc_networks = vpc_networks
|
|
112
117
|
|
|
113
118
|
@property
|
|
114
119
|
def bucket_name(self) -> 'str':
|
|
@@ -368,6 +373,27 @@ class V1GoogleCloudDirectV1(object):
|
|
|
368
373
|
|
|
369
374
|
self._subnets = subnets
|
|
370
375
|
|
|
376
|
+
@property
|
|
377
|
+
def vpc_networks(self) -> 'list[str]':
|
|
378
|
+
"""Gets the vpc_networks of this V1GoogleCloudDirectV1. # noqa: E501
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
:return: The vpc_networks of this V1GoogleCloudDirectV1. # noqa: E501
|
|
382
|
+
:rtype: list[str]
|
|
383
|
+
"""
|
|
384
|
+
return self._vpc_networks
|
|
385
|
+
|
|
386
|
+
@vpc_networks.setter
|
|
387
|
+
def vpc_networks(self, vpc_networks: 'list[str]'):
|
|
388
|
+
"""Sets the vpc_networks of this V1GoogleCloudDirectV1.
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
:param vpc_networks: The vpc_networks of this V1GoogleCloudDirectV1. # noqa: E501
|
|
392
|
+
:type: list[str]
|
|
393
|
+
"""
|
|
394
|
+
|
|
395
|
+
self._vpc_networks = vpc_networks
|
|
396
|
+
|
|
371
397
|
def to_dict(self) -> dict:
|
|
372
398
|
"""Returns the model properties as a dict"""
|
|
373
399
|
result = {}
|
lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_cold_start_metrics_response.py
ADDED
|
@@ -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 V1ListCloudSpaceColdStartMetricsResponse(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[V1CloudSpaceColdStartMetrics]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'metrics': 'metrics'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, metrics: 'list[V1CloudSpaceColdStartMetrics]' =None): # noqa: E501
|
|
52
|
+
"""V1ListCloudSpaceColdStartMetricsResponse - 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[V1CloudSpaceColdStartMetrics]':
|
|
60
|
+
"""Gets the metrics of this V1ListCloudSpaceColdStartMetricsResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The metrics of this V1ListCloudSpaceColdStartMetricsResponse. # noqa: E501
|
|
64
|
+
:rtype: list[V1CloudSpaceColdStartMetrics]
|
|
65
|
+
"""
|
|
66
|
+
return self._metrics
|
|
67
|
+
|
|
68
|
+
@metrics.setter
|
|
69
|
+
def metrics(self, metrics: 'list[V1CloudSpaceColdStartMetrics]'):
|
|
70
|
+
"""Sets the metrics of this V1ListCloudSpaceColdStartMetricsResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param metrics: The metrics of this V1ListCloudSpaceColdStartMetricsResponse. # noqa: E501
|
|
74
|
+
:type: list[V1CloudSpaceColdStartMetrics]
|
|
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(V1ListCloudSpaceColdStartMetricsResponse, 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: 'V1ListCloudSpaceColdStartMetricsResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1ListCloudSpaceColdStartMetricsResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1ListCloudSpaceColdStartMetricsResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -50,7 +50,8 @@ class V1Message(object):
|
|
|
50
50
|
'executable': 'bool',
|
|
51
51
|
'id': 'str',
|
|
52
52
|
'model': 'str',
|
|
53
|
-
'prompt_tokens': 'str'
|
|
53
|
+
'prompt_tokens': 'str',
|
|
54
|
+
'throughput': 'float'
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
attribute_map = {
|
|
@@ -63,10 +64,11 @@ class V1Message(object):
|
|
|
63
64
|
'executable': 'executable',
|
|
64
65
|
'id': 'id',
|
|
65
66
|
'model': 'model',
|
|
66
|
-
'prompt_tokens': 'promptTokens'
|
|
67
|
+
'prompt_tokens': 'promptTokens',
|
|
68
|
+
'throughput': 'throughput'
|
|
67
69
|
}
|
|
68
70
|
|
|
69
|
-
def __init__(self, assistant_id: 'str' =None, author: 'V1MessageAuthor' =None, completion_tokens: 'str' =None, content: 'list[V1MessageContent]' =None, conversation_id: 'str' =None, created_at: 'datetime' =None, executable: 'bool' =None, id: 'str' =None, model: 'str' =None, prompt_tokens: 'str' =None): # noqa: E501
|
|
71
|
+
def __init__(self, assistant_id: 'str' =None, author: 'V1MessageAuthor' =None, completion_tokens: 'str' =None, content: 'list[V1MessageContent]' =None, conversation_id: 'str' =None, created_at: 'datetime' =None, executable: 'bool' =None, id: 'str' =None, model: 'str' =None, prompt_tokens: 'str' =None, throughput: 'float' =None): # noqa: E501
|
|
70
72
|
"""V1Message - a model defined in Swagger""" # noqa: E501
|
|
71
73
|
self._assistant_id = None
|
|
72
74
|
self._author = None
|
|
@@ -78,6 +80,7 @@ class V1Message(object):
|
|
|
78
80
|
self._id = None
|
|
79
81
|
self._model = None
|
|
80
82
|
self._prompt_tokens = None
|
|
83
|
+
self._throughput = None
|
|
81
84
|
self.discriminator = None
|
|
82
85
|
if assistant_id is not None:
|
|
83
86
|
self.assistant_id = assistant_id
|
|
@@ -99,6 +102,8 @@ class V1Message(object):
|
|
|
99
102
|
self.model = model
|
|
100
103
|
if prompt_tokens is not None:
|
|
101
104
|
self.prompt_tokens = prompt_tokens
|
|
105
|
+
if throughput is not None:
|
|
106
|
+
self.throughput = throughput
|
|
102
107
|
|
|
103
108
|
@property
|
|
104
109
|
def assistant_id(self) -> 'str':
|
|
@@ -310,6 +315,27 @@ class V1Message(object):
|
|
|
310
315
|
|
|
311
316
|
self._prompt_tokens = prompt_tokens
|
|
312
317
|
|
|
318
|
+
@property
|
|
319
|
+
def throughput(self) -> 'float':
|
|
320
|
+
"""Gets the throughput of this V1Message. # noqa: E501
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
:return: The throughput of this V1Message. # noqa: E501
|
|
324
|
+
:rtype: float
|
|
325
|
+
"""
|
|
326
|
+
return self._throughput
|
|
327
|
+
|
|
328
|
+
@throughput.setter
|
|
329
|
+
def throughput(self, throughput: 'float'):
|
|
330
|
+
"""Sets the throughput of this V1Message.
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
:param throughput: The throughput of this V1Message. # noqa: E501
|
|
334
|
+
:type: float
|
|
335
|
+
"""
|
|
336
|
+
|
|
337
|
+
self._throughput = throughput
|
|
338
|
+
|
|
313
339
|
def to_dict(self) -> dict:
|
|
314
340
|
"""Returns the model properties as a dict"""
|
|
315
341
|
result = {}
|
|
@@ -41,6 +41,7 @@ class V1Organization(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'alerts_config': 'V1AlertsConfig',
|
|
44
45
|
'allow_aws_saas': 'bool',
|
|
45
46
|
'allow_gcp_saas': 'bool',
|
|
46
47
|
'allow_guest': 'bool',
|
|
@@ -54,6 +55,7 @@ class V1Organization(object):
|
|
|
54
55
|
'auto_join_domains': 'list[str]',
|
|
55
56
|
'created_at': 'datetime',
|
|
56
57
|
'default_machine_image_version': 'str',
|
|
58
|
+
'default_machine_type': 'str',
|
|
57
59
|
'description': 'str',
|
|
58
60
|
'display_name': 'str',
|
|
59
61
|
'domain': 'str',
|
|
@@ -74,6 +76,7 @@ class V1Organization(object):
|
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
attribute_map = {
|
|
79
|
+
'alerts_config': 'alertsConfig',
|
|
77
80
|
'allow_aws_saas': 'allowAwsSaas',
|
|
78
81
|
'allow_gcp_saas': 'allowGcpSaas',
|
|
79
82
|
'allow_guest': 'allowGuest',
|
|
@@ -87,6 +90,7 @@ class V1Organization(object):
|
|
|
87
90
|
'auto_join_domains': 'autoJoinDomains',
|
|
88
91
|
'created_at': 'createdAt',
|
|
89
92
|
'default_machine_image_version': 'defaultMachineImageVersion',
|
|
93
|
+
'default_machine_type': 'defaultMachineType',
|
|
90
94
|
'description': 'description',
|
|
91
95
|
'display_name': 'displayName',
|
|
92
96
|
'domain': 'domain',
|
|
@@ -106,8 +110,9 @@ class V1Organization(object):
|
|
|
106
110
|
'updated_at': 'updatedAt'
|
|
107
111
|
}
|
|
108
112
|
|
|
109
|
-
def __init__(self, allow_aws_saas: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_guest: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_marketplace: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: 'bool' =None, allow_vultr_saas: 'bool' =None, auto_invite_by_domain: 'bool' =None, auto_join_domain_validations: 'dict(str, V1AutoJoinDomainValidation)' =None, auto_join_domains: 'list[str]' =None, created_at: 'datetime' =None, default_machine_image_version: 'str' =None, description: 'str' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, full_story_end_date: 'datetime' =None, full_story_start_date: 'datetime' =None, id: 'str' =None, location: 'str' =None, name: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None, updated_at: 'datetime' =None): # noqa: E501
|
|
113
|
+
def __init__(self, alerts_config: 'V1AlertsConfig' =None, allow_aws_saas: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_guest: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_marketplace: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: 'bool' =None, allow_vultr_saas: 'bool' =None, auto_invite_by_domain: 'bool' =None, auto_join_domain_validations: 'dict(str, V1AutoJoinDomainValidation)' =None, auto_join_domains: 'list[str]' =None, created_at: 'datetime' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, full_story_end_date: 'datetime' =None, full_story_start_date: 'datetime' =None, id: 'str' =None, location: 'str' =None, name: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None, updated_at: 'datetime' =None): # noqa: E501
|
|
110
114
|
"""V1Organization - a model defined in Swagger""" # noqa: E501
|
|
115
|
+
self._alerts_config = None
|
|
111
116
|
self._allow_aws_saas = None
|
|
112
117
|
self._allow_gcp_saas = None
|
|
113
118
|
self._allow_guest = None
|
|
@@ -121,6 +126,7 @@ class V1Organization(object):
|
|
|
121
126
|
self._auto_join_domains = None
|
|
122
127
|
self._created_at = None
|
|
123
128
|
self._default_machine_image_version = None
|
|
129
|
+
self._default_machine_type = None
|
|
124
130
|
self._description = None
|
|
125
131
|
self._display_name = None
|
|
126
132
|
self._domain = None
|
|
@@ -139,6 +145,8 @@ class V1Organization(object):
|
|
|
139
145
|
self._twitter_username = None
|
|
140
146
|
self._updated_at = None
|
|
141
147
|
self.discriminator = None
|
|
148
|
+
if alerts_config is not None:
|
|
149
|
+
self.alerts_config = alerts_config
|
|
142
150
|
if allow_aws_saas is not None:
|
|
143
151
|
self.allow_aws_saas = allow_aws_saas
|
|
144
152
|
if allow_gcp_saas is not None:
|
|
@@ -165,6 +173,8 @@ class V1Organization(object):
|
|
|
165
173
|
self.created_at = created_at
|
|
166
174
|
if default_machine_image_version is not None:
|
|
167
175
|
self.default_machine_image_version = default_machine_image_version
|
|
176
|
+
if default_machine_type is not None:
|
|
177
|
+
self.default_machine_type = default_machine_type
|
|
168
178
|
if description is not None:
|
|
169
179
|
self.description = description
|
|
170
180
|
if display_name is not None:
|
|
@@ -200,6 +210,27 @@ class V1Organization(object):
|
|
|
200
210
|
if updated_at is not None:
|
|
201
211
|
self.updated_at = updated_at
|
|
202
212
|
|
|
213
|
+
@property
|
|
214
|
+
def alerts_config(self) -> 'V1AlertsConfig':
|
|
215
|
+
"""Gets the alerts_config of this V1Organization. # noqa: E501
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
:return: The alerts_config of this V1Organization. # noqa: E501
|
|
219
|
+
:rtype: V1AlertsConfig
|
|
220
|
+
"""
|
|
221
|
+
return self._alerts_config
|
|
222
|
+
|
|
223
|
+
@alerts_config.setter
|
|
224
|
+
def alerts_config(self, alerts_config: 'V1AlertsConfig'):
|
|
225
|
+
"""Sets the alerts_config of this V1Organization.
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
:param alerts_config: The alerts_config of this V1Organization. # noqa: E501
|
|
229
|
+
:type: V1AlertsConfig
|
|
230
|
+
"""
|
|
231
|
+
|
|
232
|
+
self._alerts_config = alerts_config
|
|
233
|
+
|
|
203
234
|
@property
|
|
204
235
|
def allow_aws_saas(self) -> 'bool':
|
|
205
236
|
"""Gets the allow_aws_saas of this V1Organization. # noqa: E501
|
|
@@ -473,6 +504,27 @@ class V1Organization(object):
|
|
|
473
504
|
|
|
474
505
|
self._default_machine_image_version = default_machine_image_version
|
|
475
506
|
|
|
507
|
+
@property
|
|
508
|
+
def default_machine_type(self) -> 'str':
|
|
509
|
+
"""Gets the default_machine_type of this V1Organization. # noqa: E501
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
:return: The default_machine_type of this V1Organization. # noqa: E501
|
|
513
|
+
:rtype: str
|
|
514
|
+
"""
|
|
515
|
+
return self._default_machine_type
|
|
516
|
+
|
|
517
|
+
@default_machine_type.setter
|
|
518
|
+
def default_machine_type(self, default_machine_type: 'str'):
|
|
519
|
+
"""Sets the default_machine_type of this V1Organization.
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
:param default_machine_type: The default_machine_type of this V1Organization. # noqa: E501
|
|
523
|
+
:type: str
|
|
524
|
+
"""
|
|
525
|
+
|
|
526
|
+
self._default_machine_type = default_machine_type
|
|
527
|
+
|
|
476
528
|
@property
|
|
477
529
|
def description(self) -> 'str':
|
|
478
530
|
"""Gets the description of this V1Organization. # noqa: E501
|
|
@@ -46,6 +46,7 @@ class V1ProjectSettings(object):
|
|
|
46
46
|
'allow_lambda_saas': 'bool',
|
|
47
47
|
'allow_vultr_saas': 'bool',
|
|
48
48
|
'default_machine_image_version': 'str',
|
|
49
|
+
'default_machine_type': 'str',
|
|
49
50
|
'preferred_cluster': 'str',
|
|
50
51
|
'preferred_deployment_provider': 'str',
|
|
51
52
|
'preferred_studio_provider': 'str',
|
|
@@ -59,6 +60,7 @@ class V1ProjectSettings(object):
|
|
|
59
60
|
'allow_lambda_saas': 'allowLambdaSaas',
|
|
60
61
|
'allow_vultr_saas': 'allowVultrSaas',
|
|
61
62
|
'default_machine_image_version': 'defaultMachineImageVersion',
|
|
63
|
+
'default_machine_type': 'defaultMachineType',
|
|
62
64
|
'preferred_cluster': 'preferredCluster',
|
|
63
65
|
'preferred_deployment_provider': 'preferredDeploymentProvider',
|
|
64
66
|
'preferred_studio_provider': 'preferredStudioProvider',
|
|
@@ -66,13 +68,14 @@ class V1ProjectSettings(object):
|
|
|
66
68
|
'start_studio_on_spot_instance': 'startStudioOnSpotInstance'
|
|
67
69
|
}
|
|
68
70
|
|
|
69
|
-
def __init__(self, allow_aws_saas: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_vultr_saas: 'bool' =None, default_machine_image_version: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, same_compute_on_resume: 'bool' =None, start_studio_on_spot_instance: 'bool' =None): # noqa: E501
|
|
71
|
+
def __init__(self, allow_aws_saas: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_vultr_saas: 'bool' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, same_compute_on_resume: 'bool' =None, start_studio_on_spot_instance: 'bool' =None): # noqa: E501
|
|
70
72
|
"""V1ProjectSettings - a model defined in Swagger""" # noqa: E501
|
|
71
73
|
self._allow_aws_saas = None
|
|
72
74
|
self._allow_gcp_saas = None
|
|
73
75
|
self._allow_lambda_saas = None
|
|
74
76
|
self._allow_vultr_saas = None
|
|
75
77
|
self._default_machine_image_version = None
|
|
78
|
+
self._default_machine_type = None
|
|
76
79
|
self._preferred_cluster = None
|
|
77
80
|
self._preferred_deployment_provider = None
|
|
78
81
|
self._preferred_studio_provider = None
|
|
@@ -89,6 +92,8 @@ class V1ProjectSettings(object):
|
|
|
89
92
|
self.allow_vultr_saas = allow_vultr_saas
|
|
90
93
|
if default_machine_image_version is not None:
|
|
91
94
|
self.default_machine_image_version = default_machine_image_version
|
|
95
|
+
if default_machine_type is not None:
|
|
96
|
+
self.default_machine_type = default_machine_type
|
|
92
97
|
if preferred_cluster is not None:
|
|
93
98
|
self.preferred_cluster = preferred_cluster
|
|
94
99
|
if preferred_deployment_provider is not None:
|
|
@@ -205,6 +210,27 @@ class V1ProjectSettings(object):
|
|
|
205
210
|
|
|
206
211
|
self._default_machine_image_version = default_machine_image_version
|
|
207
212
|
|
|
213
|
+
@property
|
|
214
|
+
def default_machine_type(self) -> 'str':
|
|
215
|
+
"""Gets the default_machine_type of this V1ProjectSettings. # noqa: E501
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
:return: The default_machine_type of this V1ProjectSettings. # noqa: E501
|
|
219
|
+
:rtype: str
|
|
220
|
+
"""
|
|
221
|
+
return self._default_machine_type
|
|
222
|
+
|
|
223
|
+
@default_machine_type.setter
|
|
224
|
+
def default_machine_type(self, default_machine_type: 'str'):
|
|
225
|
+
"""Sets the default_machine_type of this V1ProjectSettings.
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
:param default_machine_type: The default_machine_type of this V1ProjectSettings. # noqa: E501
|
|
229
|
+
:type: str
|
|
230
|
+
"""
|
|
231
|
+
|
|
232
|
+
self._default_machine_type = default_machine_type
|
|
233
|
+
|
|
208
234
|
@property
|
|
209
235
|
def preferred_cluster(self) -> 'str':
|
|
210
236
|
"""Gets the preferred_cluster of this V1ProjectSettings. # noqa: E501
|
lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_stop_at_response.py
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
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 V1ReportCloudSpaceInstanceStopAtResponse(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
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self): # noqa: E501
|
|
50
|
+
"""V1ReportCloudSpaceInstanceStopAtResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
self.discriminator = None
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> dict:
|
|
54
|
+
"""Returns the model properties as a dict"""
|
|
55
|
+
result = {}
|
|
56
|
+
|
|
57
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
58
|
+
value = getattr(self, attr)
|
|
59
|
+
if isinstance(value, list):
|
|
60
|
+
result[attr] = list(map(
|
|
61
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
62
|
+
value
|
|
63
|
+
))
|
|
64
|
+
elif hasattr(value, "to_dict"):
|
|
65
|
+
result[attr] = value.to_dict()
|
|
66
|
+
elif isinstance(value, dict):
|
|
67
|
+
result[attr] = dict(map(
|
|
68
|
+
lambda item: (item[0], item[1].to_dict())
|
|
69
|
+
if hasattr(item[1], "to_dict") else item,
|
|
70
|
+
value.items()
|
|
71
|
+
))
|
|
72
|
+
else:
|
|
73
|
+
result[attr] = value
|
|
74
|
+
if issubclass(V1ReportCloudSpaceInstanceStopAtResponse, dict):
|
|
75
|
+
for key, value in self.items():
|
|
76
|
+
result[key] = value
|
|
77
|
+
|
|
78
|
+
return result
|
|
79
|
+
|
|
80
|
+
def to_str(self) -> str:
|
|
81
|
+
"""Returns the string representation of the model"""
|
|
82
|
+
return pprint.pformat(self.to_dict())
|
|
83
|
+
|
|
84
|
+
def __repr__(self) -> str:
|
|
85
|
+
"""For `print` and `pprint`"""
|
|
86
|
+
return self.to_str()
|
|
87
|
+
|
|
88
|
+
def __eq__(self, other: 'V1ReportCloudSpaceInstanceStopAtResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1ReportCloudSpaceInstanceStopAtResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1ReportCloudSpaceInstanceStopAtResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
|
@@ -42,24 +42,29 @@ class V1ServerAlert(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'message': 'str',
|
|
45
|
+
'phase': 'V1ServerAlertPhase',
|
|
45
46
|
'severity': 'V1ServerAlertSeverity',
|
|
46
47
|
'type': 'V1ServerAlertType'
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
attribute_map = {
|
|
50
51
|
'message': 'message',
|
|
52
|
+
'phase': 'phase',
|
|
51
53
|
'severity': 'severity',
|
|
52
54
|
'type': 'type'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
def __init__(self, message: 'str' =None, severity: 'V1ServerAlertSeverity' =None, type: 'V1ServerAlertType' =None): # noqa: E501
|
|
57
|
+
def __init__(self, message: 'str' =None, phase: 'V1ServerAlertPhase' =None, severity: 'V1ServerAlertSeverity' =None, type: 'V1ServerAlertType' =None): # noqa: E501
|
|
56
58
|
"""V1ServerAlert - a model defined in Swagger""" # noqa: E501
|
|
57
59
|
self._message = None
|
|
60
|
+
self._phase = None
|
|
58
61
|
self._severity = None
|
|
59
62
|
self._type = None
|
|
60
63
|
self.discriminator = None
|
|
61
64
|
if message is not None:
|
|
62
65
|
self.message = message
|
|
66
|
+
if phase is not None:
|
|
67
|
+
self.phase = phase
|
|
63
68
|
if severity is not None:
|
|
64
69
|
self.severity = severity
|
|
65
70
|
if type is not None:
|
|
@@ -86,6 +91,27 @@ class V1ServerAlert(object):
|
|
|
86
91
|
|
|
87
92
|
self._message = message
|
|
88
93
|
|
|
94
|
+
@property
|
|
95
|
+
def phase(self) -> 'V1ServerAlertPhase':
|
|
96
|
+
"""Gets the phase of this V1ServerAlert. # noqa: E501
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:return: The phase of this V1ServerAlert. # noqa: E501
|
|
100
|
+
:rtype: V1ServerAlertPhase
|
|
101
|
+
"""
|
|
102
|
+
return self._phase
|
|
103
|
+
|
|
104
|
+
@phase.setter
|
|
105
|
+
def phase(self, phase: 'V1ServerAlertPhase'):
|
|
106
|
+
"""Sets the phase of this V1ServerAlert.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param phase: The phase of this V1ServerAlert. # noqa: E501
|
|
110
|
+
:type: V1ServerAlertPhase
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
self._phase = phase
|
|
114
|
+
|
|
89
115
|
@property
|
|
90
116
|
def severity(self) -> 'V1ServerAlertSeverity':
|
|
91
117
|
"""Gets the severity of this V1ServerAlert. # noqa: E501
|