lightning-sdk 0.2.5__py3-none-any.whl → 0.2.7__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 +84 -24
- 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 +26 -19
- lightning_sdk/cli/upload.py +41 -6
- lightning_sdk/lightning_cloud/openapi/__init__.py +16 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +9 -9
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +15 -3
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +16 -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/environmenttemplates_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cluster.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +201 -0
- 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_cloud_space_environment_template.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_server_alert_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +1 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_cold_start_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_registry_repository_image_artifact_versions_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_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_reservation_details.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_phase.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_severity.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_subnet_spec.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +131 -79
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +29 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +1 -27
- lightning_sdk/lit_container.py +19 -4
- lightning_sdk/models.py +1 -1
- lightning_sdk/serve.py +86 -15
- lightning_sdk/teamspace.py +32 -18
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/RECORD +65 -49
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class AlertsConfigBilling(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
|
+
'auto_replenish': 'list[V1AlertMethod]',
|
|
45
|
+
'balance_threshold': 'int',
|
|
46
|
+
'low_balance': 'list[V1AlertMethod]'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'auto_replenish': 'autoReplenish',
|
|
51
|
+
'balance_threshold': 'balanceThreshold',
|
|
52
|
+
'low_balance': 'lowBalance'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, auto_replenish: 'list[V1AlertMethod]' =None, balance_threshold: 'int' =None, low_balance: 'list[V1AlertMethod]' =None): # noqa: E501
|
|
56
|
+
"""AlertsConfigBilling - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._auto_replenish = None
|
|
58
|
+
self._balance_threshold = None
|
|
59
|
+
self._low_balance = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if auto_replenish is not None:
|
|
62
|
+
self.auto_replenish = auto_replenish
|
|
63
|
+
if balance_threshold is not None:
|
|
64
|
+
self.balance_threshold = balance_threshold
|
|
65
|
+
if low_balance is not None:
|
|
66
|
+
self.low_balance = low_balance
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def auto_replenish(self) -> 'list[V1AlertMethod]':
|
|
70
|
+
"""Gets the auto_replenish of this AlertsConfigBilling. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The auto_replenish of this AlertsConfigBilling. # noqa: E501
|
|
74
|
+
:rtype: list[V1AlertMethod]
|
|
75
|
+
"""
|
|
76
|
+
return self._auto_replenish
|
|
77
|
+
|
|
78
|
+
@auto_replenish.setter
|
|
79
|
+
def auto_replenish(self, auto_replenish: 'list[V1AlertMethod]'):
|
|
80
|
+
"""Sets the auto_replenish of this AlertsConfigBilling.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param auto_replenish: The auto_replenish of this AlertsConfigBilling. # noqa: E501
|
|
84
|
+
:type: list[V1AlertMethod]
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._auto_replenish = auto_replenish
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def balance_threshold(self) -> 'int':
|
|
91
|
+
"""Gets the balance_threshold of this AlertsConfigBilling. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The balance_threshold of this AlertsConfigBilling. # noqa: E501
|
|
95
|
+
:rtype: int
|
|
96
|
+
"""
|
|
97
|
+
return self._balance_threshold
|
|
98
|
+
|
|
99
|
+
@balance_threshold.setter
|
|
100
|
+
def balance_threshold(self, balance_threshold: 'int'):
|
|
101
|
+
"""Sets the balance_threshold of this AlertsConfigBilling.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param balance_threshold: The balance_threshold of this AlertsConfigBilling. # noqa: E501
|
|
105
|
+
:type: int
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._balance_threshold = balance_threshold
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def low_balance(self) -> 'list[V1AlertMethod]':
|
|
112
|
+
"""Gets the low_balance of this AlertsConfigBilling. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The low_balance of this AlertsConfigBilling. # noqa: E501
|
|
116
|
+
:rtype: list[V1AlertMethod]
|
|
117
|
+
"""
|
|
118
|
+
return self._low_balance
|
|
119
|
+
|
|
120
|
+
@low_balance.setter
|
|
121
|
+
def low_balance(self, low_balance: 'list[V1AlertMethod]'):
|
|
122
|
+
"""Sets the low_balance of this AlertsConfigBilling.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param low_balance: The low_balance of this AlertsConfigBilling. # noqa: E501
|
|
126
|
+
:type: list[V1AlertMethod]
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._low_balance = low_balance
|
|
130
|
+
|
|
131
|
+
def to_dict(self) -> dict:
|
|
132
|
+
"""Returns the model properties as a dict"""
|
|
133
|
+
result = {}
|
|
134
|
+
|
|
135
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
+
value = getattr(self, attr)
|
|
137
|
+
if isinstance(value, list):
|
|
138
|
+
result[attr] = list(map(
|
|
139
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
+
value
|
|
141
|
+
))
|
|
142
|
+
elif hasattr(value, "to_dict"):
|
|
143
|
+
result[attr] = value.to_dict()
|
|
144
|
+
elif isinstance(value, dict):
|
|
145
|
+
result[attr] = dict(map(
|
|
146
|
+
lambda item: (item[0], item[1].to_dict())
|
|
147
|
+
if hasattr(item[1], "to_dict") else item,
|
|
148
|
+
value.items()
|
|
149
|
+
))
|
|
150
|
+
else:
|
|
151
|
+
result[attr] = value
|
|
152
|
+
if issubclass(AlertsConfigBilling, dict):
|
|
153
|
+
for key, value in self.items():
|
|
154
|
+
result[key] = value
|
|
155
|
+
|
|
156
|
+
return result
|
|
157
|
+
|
|
158
|
+
def to_str(self) -> str:
|
|
159
|
+
"""Returns the string representation of the model"""
|
|
160
|
+
return pprint.pformat(self.to_dict())
|
|
161
|
+
|
|
162
|
+
def __repr__(self) -> str:
|
|
163
|
+
"""For `print` and `pprint`"""
|
|
164
|
+
return self.to_str()
|
|
165
|
+
|
|
166
|
+
def __eq__(self, other: 'AlertsConfigBilling') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, AlertsConfigBilling):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'AlertsConfigBilling') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
|
@@ -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 AlertsConfigStudios(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
|
+
'internal_error': 'list[V1AlertMethod]',
|
|
45
|
+
'rehydration_error': 'list[V1AlertMethod]'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'internal_error': 'internalError',
|
|
50
|
+
'rehydration_error': 'rehydrationError'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, internal_error: 'list[V1AlertMethod]' =None, rehydration_error: 'list[V1AlertMethod]' =None): # noqa: E501
|
|
54
|
+
"""AlertsConfigStudios - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._internal_error = None
|
|
56
|
+
self._rehydration_error = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if internal_error is not None:
|
|
59
|
+
self.internal_error = internal_error
|
|
60
|
+
if rehydration_error is not None:
|
|
61
|
+
self.rehydration_error = rehydration_error
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def internal_error(self) -> 'list[V1AlertMethod]':
|
|
65
|
+
"""Gets the internal_error of this AlertsConfigStudios. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The internal_error of this AlertsConfigStudios. # noqa: E501
|
|
69
|
+
:rtype: list[V1AlertMethod]
|
|
70
|
+
"""
|
|
71
|
+
return self._internal_error
|
|
72
|
+
|
|
73
|
+
@internal_error.setter
|
|
74
|
+
def internal_error(self, internal_error: 'list[V1AlertMethod]'):
|
|
75
|
+
"""Sets the internal_error of this AlertsConfigStudios.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param internal_error: The internal_error of this AlertsConfigStudios. # noqa: E501
|
|
79
|
+
:type: list[V1AlertMethod]
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._internal_error = internal_error
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def rehydration_error(self) -> 'list[V1AlertMethod]':
|
|
86
|
+
"""Gets the rehydration_error of this AlertsConfigStudios. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The rehydration_error of this AlertsConfigStudios. # noqa: E501
|
|
90
|
+
:rtype: list[V1AlertMethod]
|
|
91
|
+
"""
|
|
92
|
+
return self._rehydration_error
|
|
93
|
+
|
|
94
|
+
@rehydration_error.setter
|
|
95
|
+
def rehydration_error(self, rehydration_error: 'list[V1AlertMethod]'):
|
|
96
|
+
"""Sets the rehydration_error of this AlertsConfigStudios.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param rehydration_error: The rehydration_error of this AlertsConfigStudios. # noqa: E501
|
|
100
|
+
:type: list[V1AlertMethod]
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._rehydration_error = rehydration_error
|
|
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(AlertsConfigStudios, 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: 'AlertsConfigStudios') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, AlertsConfigStudios):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'AlertsConfigStudios') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|
|
@@ -41,6 +41,7 @@ class EnvironmenttemplatesIdBody(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'config': 'V1CloudSpaceEnvironmentTemplateConfig',
|
|
44
45
|
'created_at': 'datetime',
|
|
45
46
|
'name': 'str',
|
|
46
47
|
'org_id': 'str',
|
|
@@ -49,6 +50,7 @@ class EnvironmenttemplatesIdBody(object):
|
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
attribute_map = {
|
|
53
|
+
'config': 'config',
|
|
52
54
|
'created_at': 'createdAt',
|
|
53
55
|
'name': 'name',
|
|
54
56
|
'org_id': 'orgId',
|
|
@@ -56,14 +58,17 @@ class EnvironmenttemplatesIdBody(object):
|
|
|
56
58
|
'user_id': 'userId'
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
def __init__(self, created_at: 'datetime' =None, name: 'str' =None, org_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
61
|
+
def __init__(self, config: 'V1CloudSpaceEnvironmentTemplateConfig' =None, created_at: 'datetime' =None, name: 'str' =None, org_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
60
62
|
"""EnvironmenttemplatesIdBody - a model defined in Swagger""" # noqa: E501
|
|
63
|
+
self._config = None
|
|
61
64
|
self._created_at = None
|
|
62
65
|
self._name = None
|
|
63
66
|
self._org_id = None
|
|
64
67
|
self._updated_at = None
|
|
65
68
|
self._user_id = None
|
|
66
69
|
self.discriminator = None
|
|
70
|
+
if config is not None:
|
|
71
|
+
self.config = config
|
|
67
72
|
if created_at is not None:
|
|
68
73
|
self.created_at = created_at
|
|
69
74
|
if name is not None:
|
|
@@ -75,6 +80,27 @@ class EnvironmenttemplatesIdBody(object):
|
|
|
75
80
|
if user_id is not None:
|
|
76
81
|
self.user_id = user_id
|
|
77
82
|
|
|
83
|
+
@property
|
|
84
|
+
def config(self) -> 'V1CloudSpaceEnvironmentTemplateConfig':
|
|
85
|
+
"""Gets the config of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:return: The config of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
89
|
+
:rtype: V1CloudSpaceEnvironmentTemplateConfig
|
|
90
|
+
"""
|
|
91
|
+
return self._config
|
|
92
|
+
|
|
93
|
+
@config.setter
|
|
94
|
+
def config(self, config: 'V1CloudSpaceEnvironmentTemplateConfig'):
|
|
95
|
+
"""Sets the config of this EnvironmenttemplatesIdBody.
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:param config: The config of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
99
|
+
:type: V1CloudSpaceEnvironmentTemplateConfig
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
self._config = config
|
|
103
|
+
|
|
78
104
|
@property
|
|
79
105
|
def created_at(self) -> 'datetime':
|
|
80
106
|
"""Gets the created_at of this EnvironmenttemplatesIdBody. # noqa: E501
|
|
@@ -41,6 +41,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'alerts': 'list[V1ServerAlert]',
|
|
44
45
|
'app_url': 'str',
|
|
45
46
|
'bytes_to_sync': 'str',
|
|
46
47
|
'cloud_space_id': 'str',
|
|
@@ -73,6 +74,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
attribute_map = {
|
|
77
|
+
'alerts': 'alerts',
|
|
76
78
|
'app_url': 'appUrl',
|
|
77
79
|
'bytes_to_sync': 'bytesToSync',
|
|
78
80
|
'cloud_space_id': 'cloudSpaceId',
|
|
@@ -104,8 +106,9 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
104
106
|
'vscode_url': 'vscodeUrl'
|
|
105
107
|
}
|
|
106
108
|
|
|
107
|
-
def __init__(self, app_url: 'str' =None, bytes_to_sync: 'str' =None, cloud_space_id: 'str' =None, cloud_space_instance_id: 'str' =None, compute_config: 'V1UserRequestedComputeConfig' =None, creation_timestamp: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, files_to_sync: 'str' =None, free: 'bool' =None, ide: 'str' =None, instance_id: 'str' =None, instance_region: 'str' =None, instance_url: 'str' =None, jupyterlab_url: 'str' =None, phase: 'V1CloudSpaceInstanceState' =None, price: 'float' =None, ssh_host: 'str' =None, ssh_port: 'int' =None, ssh_username: 'str' =None, start_timestamp: 'datetime' =None, startup_eta_seconds: 'str' =None, startup_percentage: 'str' =None, startup_phase: 'str' =None, startup_status: 'V1CloudSpaceInstanceStartupStatus' =None, status_message: 'str' =None, switched_at: 'datetime' =None, sync_last_updated: 'datetime' =None, termination_time: 'datetime' =None, vscode_url: 'str' =None): # noqa: E501
|
|
109
|
+
def __init__(self, alerts: 'list[V1ServerAlert]' =None, app_url: 'str' =None, bytes_to_sync: 'str' =None, cloud_space_id: 'str' =None, cloud_space_instance_id: 'str' =None, compute_config: 'V1UserRequestedComputeConfig' =None, creation_timestamp: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, files_to_sync: 'str' =None, free: 'bool' =None, ide: 'str' =None, instance_id: 'str' =None, instance_region: 'str' =None, instance_url: 'str' =None, jupyterlab_url: 'str' =None, phase: 'V1CloudSpaceInstanceState' =None, price: 'float' =None, ssh_host: 'str' =None, ssh_port: 'int' =None, ssh_username: 'str' =None, start_timestamp: 'datetime' =None, startup_eta_seconds: 'str' =None, startup_percentage: 'str' =None, startup_phase: 'str' =None, startup_status: 'V1CloudSpaceInstanceStartupStatus' =None, status_message: 'str' =None, switched_at: 'datetime' =None, sync_last_updated: 'datetime' =None, termination_time: 'datetime' =None, vscode_url: 'str' =None): # noqa: E501
|
|
108
110
|
"""Externalv1CloudSpaceInstanceStatus - a model defined in Swagger""" # noqa: E501
|
|
111
|
+
self._alerts = None
|
|
109
112
|
self._app_url = None
|
|
110
113
|
self._bytes_to_sync = None
|
|
111
114
|
self._cloud_space_id = None
|
|
@@ -136,6 +139,8 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
136
139
|
self._termination_time = None
|
|
137
140
|
self._vscode_url = None
|
|
138
141
|
self.discriminator = None
|
|
142
|
+
if alerts is not None:
|
|
143
|
+
self.alerts = alerts
|
|
139
144
|
if app_url is not None:
|
|
140
145
|
self.app_url = app_url
|
|
141
146
|
if bytes_to_sync is not None:
|
|
@@ -195,6 +200,27 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
195
200
|
if vscode_url is not None:
|
|
196
201
|
self.vscode_url = vscode_url
|
|
197
202
|
|
|
203
|
+
@property
|
|
204
|
+
def alerts(self) -> 'list[V1ServerAlert]':
|
|
205
|
+
"""Gets the alerts of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
:return: The alerts of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
209
|
+
:rtype: list[V1ServerAlert]
|
|
210
|
+
"""
|
|
211
|
+
return self._alerts
|
|
212
|
+
|
|
213
|
+
@alerts.setter
|
|
214
|
+
def alerts(self, alerts: 'list[V1ServerAlert]'):
|
|
215
|
+
"""Sets the alerts of this Externalv1CloudSpaceInstanceStatus.
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
:param alerts: The alerts of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
219
|
+
:type: list[V1ServerAlert]
|
|
220
|
+
"""
|
|
221
|
+
|
|
222
|
+
self._alerts = alerts
|
|
223
|
+
|
|
198
224
|
@property
|
|
199
225
|
def app_url(self) -> 'str':
|
|
200
226
|
"""Gets the app_url of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
@@ -44,6 +44,7 @@ class Externalv1Cluster(object):
|
|
|
44
44
|
'created_at': 'datetime',
|
|
45
45
|
'id': 'str',
|
|
46
46
|
'name': 'str',
|
|
47
|
+
'protected': 'bool',
|
|
47
48
|
'spec': 'V1ClusterSpec',
|
|
48
49
|
'status': 'V1ClusterStatus'
|
|
49
50
|
}
|
|
@@ -52,15 +53,17 @@ class Externalv1Cluster(object):
|
|
|
52
53
|
'created_at': 'createdAt',
|
|
53
54
|
'id': 'id',
|
|
54
55
|
'name': 'name',
|
|
56
|
+
'protected': 'protected',
|
|
55
57
|
'spec': 'spec',
|
|
56
58
|
'status': 'status'
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
def __init__(self, created_at: 'datetime' =None, id: 'str' =None, name: 'str' =None, spec: 'V1ClusterSpec' =None, status: 'V1ClusterStatus' =None): # noqa: E501
|
|
61
|
+
def __init__(self, created_at: 'datetime' =None, id: 'str' =None, name: 'str' =None, protected: 'bool' =None, spec: 'V1ClusterSpec' =None, status: 'V1ClusterStatus' =None): # noqa: E501
|
|
60
62
|
"""Externalv1Cluster - a model defined in Swagger""" # noqa: E501
|
|
61
63
|
self._created_at = None
|
|
62
64
|
self._id = None
|
|
63
65
|
self._name = None
|
|
66
|
+
self._protected = None
|
|
64
67
|
self._spec = None
|
|
65
68
|
self._status = None
|
|
66
69
|
self.discriminator = None
|
|
@@ -70,6 +73,8 @@ class Externalv1Cluster(object):
|
|
|
70
73
|
self.id = id
|
|
71
74
|
if name is not None:
|
|
72
75
|
self.name = name
|
|
76
|
+
if protected is not None:
|
|
77
|
+
self.protected = protected
|
|
73
78
|
if spec is not None:
|
|
74
79
|
self.spec = spec
|
|
75
80
|
if status is not None:
|
|
@@ -138,6 +143,27 @@ class Externalv1Cluster(object):
|
|
|
138
143
|
|
|
139
144
|
self._name = name
|
|
140
145
|
|
|
146
|
+
@property
|
|
147
|
+
def protected(self) -> 'bool':
|
|
148
|
+
"""Gets the protected of this Externalv1Cluster. # noqa: E501
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:return: The protected of this Externalv1Cluster. # noqa: E501
|
|
152
|
+
:rtype: bool
|
|
153
|
+
"""
|
|
154
|
+
return self._protected
|
|
155
|
+
|
|
156
|
+
@protected.setter
|
|
157
|
+
def protected(self, protected: 'bool'):
|
|
158
|
+
"""Sets the protected of this Externalv1Cluster.
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:param protected: The protected of this Externalv1Cluster. # noqa: E501
|
|
162
|
+
:type: bool
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
self._protected = protected
|
|
166
|
+
|
|
141
167
|
@property
|
|
142
168
|
def spec(self) -> 'V1ClusterSpec':
|
|
143
169
|
"""Gets the spec of this Externalv1Cluster. # noqa: E501
|
|
@@ -41,6 +41,7 @@ class OrgsIdBody(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',
|
|
@@ -51,6 +52,7 @@ class OrgsIdBody(object):
|
|
|
51
52
|
'allow_vultr_saas': 'bool',
|
|
52
53
|
'auto_invite_by_domain': 'bool',
|
|
53
54
|
'auto_join_domains': 'list[str]',
|
|
55
|
+
'default_machine_type': 'str',
|
|
54
56
|
'description': 'str',
|
|
55
57
|
'display_name': 'str',
|
|
56
58
|
'domain': 'str',
|
|
@@ -66,6 +68,7 @@ class OrgsIdBody(object):
|
|
|
66
68
|
}
|
|
67
69
|
|
|
68
70
|
attribute_map = {
|
|
71
|
+
'alerts_config': 'alertsConfig',
|
|
69
72
|
'allow_aws_saas': 'allowAwsSaas',
|
|
70
73
|
'allow_gcp_saas': 'allowGcpSaas',
|
|
71
74
|
'allow_guest': 'allowGuest',
|
|
@@ -76,6 +79,7 @@ class OrgsIdBody(object):
|
|
|
76
79
|
'allow_vultr_saas': 'allowVultrSaas',
|
|
77
80
|
'auto_invite_by_domain': 'autoInviteByDomain',
|
|
78
81
|
'auto_join_domains': 'autoJoinDomains',
|
|
82
|
+
'default_machine_type': 'defaultMachineType',
|
|
79
83
|
'description': 'description',
|
|
80
84
|
'display_name': 'displayName',
|
|
81
85
|
'domain': 'domain',
|
|
@@ -90,8 +94,9 @@ class OrgsIdBody(object):
|
|
|
90
94
|
'twitter_username': 'twitterUsername'
|
|
91
95
|
}
|
|
92
96
|
|
|
93
|
-
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_domains: 'list[str]' =None, description: 'str' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, location: '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): # noqa: E501
|
|
97
|
+
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_domains: 'list[str]' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, location: '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): # noqa: E501
|
|
94
98
|
"""OrgsIdBody - a model defined in Swagger""" # noqa: E501
|
|
99
|
+
self._alerts_config = None
|
|
95
100
|
self._allow_aws_saas = None
|
|
96
101
|
self._allow_gcp_saas = None
|
|
97
102
|
self._allow_guest = None
|
|
@@ -102,6 +107,7 @@ class OrgsIdBody(object):
|
|
|
102
107
|
self._allow_vultr_saas = None
|
|
103
108
|
self._auto_invite_by_domain = None
|
|
104
109
|
self._auto_join_domains = None
|
|
110
|
+
self._default_machine_type = None
|
|
105
111
|
self._description = None
|
|
106
112
|
self._display_name = None
|
|
107
113
|
self._domain = None
|
|
@@ -115,6 +121,8 @@ class OrgsIdBody(object):
|
|
|
115
121
|
self._teamspace_default_credits = None
|
|
116
122
|
self._twitter_username = None
|
|
117
123
|
self.discriminator = None
|
|
124
|
+
if alerts_config is not None:
|
|
125
|
+
self.alerts_config = alerts_config
|
|
118
126
|
if allow_aws_saas is not None:
|
|
119
127
|
self.allow_aws_saas = allow_aws_saas
|
|
120
128
|
if allow_gcp_saas is not None:
|
|
@@ -135,6 +143,8 @@ class OrgsIdBody(object):
|
|
|
135
143
|
self.auto_invite_by_domain = auto_invite_by_domain
|
|
136
144
|
if auto_join_domains is not None:
|
|
137
145
|
self.auto_join_domains = auto_join_domains
|
|
146
|
+
if default_machine_type is not None:
|
|
147
|
+
self.default_machine_type = default_machine_type
|
|
138
148
|
if description is not None:
|
|
139
149
|
self.description = description
|
|
140
150
|
if display_name is not None:
|
|
@@ -160,6 +170,27 @@ class OrgsIdBody(object):
|
|
|
160
170
|
if twitter_username is not None:
|
|
161
171
|
self.twitter_username = twitter_username
|
|
162
172
|
|
|
173
|
+
@property
|
|
174
|
+
def alerts_config(self) -> 'V1AlertsConfig':
|
|
175
|
+
"""Gets the alerts_config of this OrgsIdBody. # noqa: E501
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
:return: The alerts_config of this OrgsIdBody. # noqa: E501
|
|
179
|
+
:rtype: V1AlertsConfig
|
|
180
|
+
"""
|
|
181
|
+
return self._alerts_config
|
|
182
|
+
|
|
183
|
+
@alerts_config.setter
|
|
184
|
+
def alerts_config(self, alerts_config: 'V1AlertsConfig'):
|
|
185
|
+
"""Sets the alerts_config of this OrgsIdBody.
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
:param alerts_config: The alerts_config of this OrgsIdBody. # noqa: E501
|
|
189
|
+
:type: V1AlertsConfig
|
|
190
|
+
"""
|
|
191
|
+
|
|
192
|
+
self._alerts_config = alerts_config
|
|
193
|
+
|
|
163
194
|
@property
|
|
164
195
|
def allow_aws_saas(self) -> 'bool':
|
|
165
196
|
"""Gets the allow_aws_saas of this OrgsIdBody. # noqa: E501
|
|
@@ -370,6 +401,27 @@ class OrgsIdBody(object):
|
|
|
370
401
|
|
|
371
402
|
self._auto_join_domains = auto_join_domains
|
|
372
403
|
|
|
404
|
+
@property
|
|
405
|
+
def default_machine_type(self) -> 'str':
|
|
406
|
+
"""Gets the default_machine_type of this OrgsIdBody. # noqa: E501
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
:return: The default_machine_type of this OrgsIdBody. # noqa: E501
|
|
410
|
+
:rtype: str
|
|
411
|
+
"""
|
|
412
|
+
return self._default_machine_type
|
|
413
|
+
|
|
414
|
+
@default_machine_type.setter
|
|
415
|
+
def default_machine_type(self, default_machine_type: 'str'):
|
|
416
|
+
"""Sets the default_machine_type of this OrgsIdBody.
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
:param default_machine_type: The default_machine_type of this OrgsIdBody. # noqa: E501
|
|
420
|
+
:type: str
|
|
421
|
+
"""
|
|
422
|
+
|
|
423
|
+
self._default_machine_type = default_machine_type
|
|
424
|
+
|
|
373
425
|
@property
|
|
374
426
|
def description(self) -> 'str':
|
|
375
427
|
"""Gets the description of this OrgsIdBody. # noqa: E501
|