lightning-sdk 0.2.20__py3-none-any.whl → 0.2.21__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/deployment_api.py +7 -2
- lightning_sdk/api/license_api.py +3 -3
- lightning_sdk/api/llm_api.py +118 -26
- lightning_sdk/api/studio_api.py +5 -0
- lightning_sdk/cli/configure.py +34 -27
- lightning_sdk/cli/connect.py +2 -2
- lightning_sdk/deployment/deployment.py +17 -3
- lightning_sdk/lightning_cloud/openapi/__init__.py +0 -1
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +1 -5
- lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +11 -1
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +0 -85
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +0 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_deletion_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +27 -365
- lightning_sdk/llm/llm.py +52 -1
- lightning_sdk/pipeline/pipeline.py +1 -1
- lightning_sdk/services/utilities.py +15 -1
- {lightning_sdk-0.2.20.dist-info → lightning_sdk-0.2.21.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.20.dist-info → lightning_sdk-0.2.21.dist-info}/RECORD +33 -34
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_response.py +0 -201
- {lightning_sdk-0.2.20.dist-info → lightning_sdk-0.2.21.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.20.dist-info → lightning_sdk-0.2.21.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.20.dist-info → lightning_sdk-0.2.21.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.20.dist-info → lightning_sdk-0.2.21.dist-info}/top_level.txt +0 -0
|
@@ -43,8 +43,11 @@ class Update(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'allowed_machines': 'list[str]',
|
|
45
45
|
'default_machine': 'str',
|
|
46
|
+
'description': 'str',
|
|
46
47
|
'disabled': 'bool',
|
|
47
48
|
'environment_type': 'V1CloudSpaceEnvironmentType',
|
|
49
|
+
'icon': 'str',
|
|
50
|
+
'initial_setup_script_text': 'str',
|
|
48
51
|
'machine_image_version': 'str',
|
|
49
52
|
'name': 'str',
|
|
50
53
|
'org_id': 'str',
|
|
@@ -55,8 +58,11 @@ class Update(object):
|
|
|
55
58
|
attribute_map = {
|
|
56
59
|
'allowed_machines': 'allowedMachines',
|
|
57
60
|
'default_machine': 'defaultMachine',
|
|
61
|
+
'description': 'description',
|
|
58
62
|
'disabled': 'disabled',
|
|
59
63
|
'environment_type': 'environmentType',
|
|
64
|
+
'icon': 'icon',
|
|
65
|
+
'initial_setup_script_text': 'initialSetupScriptText',
|
|
60
66
|
'machine_image_version': 'machineImageVersion',
|
|
61
67
|
'name': 'name',
|
|
62
68
|
'org_id': 'orgId',
|
|
@@ -64,12 +70,15 @@ class Update(object):
|
|
|
64
70
|
'setup_script_text': 'setupScriptText'
|
|
65
71
|
}
|
|
66
72
|
|
|
67
|
-
def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, disabled: 'bool' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, plugins: 'list[str]' =None, setup_script_text: 'str' =None): # noqa: E501
|
|
73
|
+
def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, description: 'str' =None, disabled: 'bool' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, icon: 'str' =None, initial_setup_script_text: 'str' =None, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, plugins: 'list[str]' =None, setup_script_text: 'str' =None): # noqa: E501
|
|
68
74
|
"""Update - a model defined in Swagger""" # noqa: E501
|
|
69
75
|
self._allowed_machines = None
|
|
70
76
|
self._default_machine = None
|
|
77
|
+
self._description = None
|
|
71
78
|
self._disabled = None
|
|
72
79
|
self._environment_type = None
|
|
80
|
+
self._icon = None
|
|
81
|
+
self._initial_setup_script_text = None
|
|
73
82
|
self._machine_image_version = None
|
|
74
83
|
self._name = None
|
|
75
84
|
self._org_id = None
|
|
@@ -80,10 +89,16 @@ class Update(object):
|
|
|
80
89
|
self.allowed_machines = allowed_machines
|
|
81
90
|
if default_machine is not None:
|
|
82
91
|
self.default_machine = default_machine
|
|
92
|
+
if description is not None:
|
|
93
|
+
self.description = description
|
|
83
94
|
if disabled is not None:
|
|
84
95
|
self.disabled = disabled
|
|
85
96
|
if environment_type is not None:
|
|
86
97
|
self.environment_type = environment_type
|
|
98
|
+
if icon is not None:
|
|
99
|
+
self.icon = icon
|
|
100
|
+
if initial_setup_script_text is not None:
|
|
101
|
+
self.initial_setup_script_text = initial_setup_script_text
|
|
87
102
|
if machine_image_version is not None:
|
|
88
103
|
self.machine_image_version = machine_image_version
|
|
89
104
|
if name is not None:
|
|
@@ -137,6 +152,27 @@ class Update(object):
|
|
|
137
152
|
|
|
138
153
|
self._default_machine = default_machine
|
|
139
154
|
|
|
155
|
+
@property
|
|
156
|
+
def description(self) -> 'str':
|
|
157
|
+
"""Gets the description of this Update. # noqa: E501
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
:return: The description of this Update. # noqa: E501
|
|
161
|
+
:rtype: str
|
|
162
|
+
"""
|
|
163
|
+
return self._description
|
|
164
|
+
|
|
165
|
+
@description.setter
|
|
166
|
+
def description(self, description: 'str'):
|
|
167
|
+
"""Sets the description of this Update.
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
:param description: The description of this Update. # noqa: E501
|
|
171
|
+
:type: str
|
|
172
|
+
"""
|
|
173
|
+
|
|
174
|
+
self._description = description
|
|
175
|
+
|
|
140
176
|
@property
|
|
141
177
|
def disabled(self) -> 'bool':
|
|
142
178
|
"""Gets the disabled of this Update. # noqa: E501
|
|
@@ -179,6 +215,48 @@ class Update(object):
|
|
|
179
215
|
|
|
180
216
|
self._environment_type = environment_type
|
|
181
217
|
|
|
218
|
+
@property
|
|
219
|
+
def icon(self) -> 'str':
|
|
220
|
+
"""Gets the icon of this Update. # noqa: E501
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
:return: The icon of this Update. # noqa: E501
|
|
224
|
+
:rtype: str
|
|
225
|
+
"""
|
|
226
|
+
return self._icon
|
|
227
|
+
|
|
228
|
+
@icon.setter
|
|
229
|
+
def icon(self, icon: 'str'):
|
|
230
|
+
"""Sets the icon of this Update.
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
:param icon: The icon of this Update. # noqa: E501
|
|
234
|
+
:type: str
|
|
235
|
+
"""
|
|
236
|
+
|
|
237
|
+
self._icon = icon
|
|
238
|
+
|
|
239
|
+
@property
|
|
240
|
+
def initial_setup_script_text(self) -> 'str':
|
|
241
|
+
"""Gets the initial_setup_script_text of this Update. # noqa: E501
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
:return: The initial_setup_script_text of this Update. # noqa: E501
|
|
245
|
+
:rtype: str
|
|
246
|
+
"""
|
|
247
|
+
return self._initial_setup_script_text
|
|
248
|
+
|
|
249
|
+
@initial_setup_script_text.setter
|
|
250
|
+
def initial_setup_script_text(self, initial_setup_script_text: 'str'):
|
|
251
|
+
"""Sets the initial_setup_script_text of this Update.
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
:param initial_setup_script_text: The initial_setup_script_text of this Update. # noqa: E501
|
|
255
|
+
:type: str
|
|
256
|
+
"""
|
|
257
|
+
|
|
258
|
+
self._initial_setup_script_text = initial_setup_script_text
|
|
259
|
+
|
|
182
260
|
@property
|
|
183
261
|
def machine_image_version(self) -> 'str':
|
|
184
262
|
"""Gets the machine_image_version of this Update. # noqa: E501
|
|
@@ -43,7 +43,9 @@ class V1CloudSpaceEnvironmentTemplate(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'config': 'V1CloudSpaceEnvironmentTemplateConfig',
|
|
45
45
|
'created_at': 'datetime',
|
|
46
|
+
'description': 'str',
|
|
46
47
|
'disabled': 'bool',
|
|
48
|
+
'icon': 'str',
|
|
47
49
|
'id': 'str',
|
|
48
50
|
'managed': 'bool',
|
|
49
51
|
'managed_id': 'str',
|
|
@@ -56,7 +58,9 @@ class V1CloudSpaceEnvironmentTemplate(object):
|
|
|
56
58
|
attribute_map = {
|
|
57
59
|
'config': 'config',
|
|
58
60
|
'created_at': 'createdAt',
|
|
61
|
+
'description': 'description',
|
|
59
62
|
'disabled': 'disabled',
|
|
63
|
+
'icon': 'icon',
|
|
60
64
|
'id': 'id',
|
|
61
65
|
'managed': 'managed',
|
|
62
66
|
'managed_id': 'managedId',
|
|
@@ -66,11 +70,13 @@ class V1CloudSpaceEnvironmentTemplate(object):
|
|
|
66
70
|
'user_id': 'userId'
|
|
67
71
|
}
|
|
68
72
|
|
|
69
|
-
def __init__(self, config: 'V1CloudSpaceEnvironmentTemplateConfig' =None, created_at: 'datetime' =None, disabled: 'bool' =None, id: 'str' =None, managed: 'bool' =None, managed_id: 'str' =None, name: 'str' =None, org_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
73
|
+
def __init__(self, config: 'V1CloudSpaceEnvironmentTemplateConfig' =None, created_at: 'datetime' =None, description: 'str' =None, disabled: 'bool' =None, icon: 'str' =None, id: 'str' =None, managed: 'bool' =None, managed_id: 'str' =None, name: 'str' =None, org_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
70
74
|
"""V1CloudSpaceEnvironmentTemplate - a model defined in Swagger""" # noqa: E501
|
|
71
75
|
self._config = None
|
|
72
76
|
self._created_at = None
|
|
77
|
+
self._description = None
|
|
73
78
|
self._disabled = None
|
|
79
|
+
self._icon = None
|
|
74
80
|
self._id = None
|
|
75
81
|
self._managed = None
|
|
76
82
|
self._managed_id = None
|
|
@@ -83,8 +89,12 @@ class V1CloudSpaceEnvironmentTemplate(object):
|
|
|
83
89
|
self.config = config
|
|
84
90
|
if created_at is not None:
|
|
85
91
|
self.created_at = created_at
|
|
92
|
+
if description is not None:
|
|
93
|
+
self.description = description
|
|
86
94
|
if disabled is not None:
|
|
87
95
|
self.disabled = disabled
|
|
96
|
+
if icon is not None:
|
|
97
|
+
self.icon = icon
|
|
88
98
|
if id is not None:
|
|
89
99
|
self.id = id
|
|
90
100
|
if managed is not None:
|
|
@@ -142,6 +152,27 @@ class V1CloudSpaceEnvironmentTemplate(object):
|
|
|
142
152
|
|
|
143
153
|
self._created_at = created_at
|
|
144
154
|
|
|
155
|
+
@property
|
|
156
|
+
def description(self) -> 'str':
|
|
157
|
+
"""Gets the description of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
:return: The description of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
|
|
161
|
+
:rtype: str
|
|
162
|
+
"""
|
|
163
|
+
return self._description
|
|
164
|
+
|
|
165
|
+
@description.setter
|
|
166
|
+
def description(self, description: 'str'):
|
|
167
|
+
"""Sets the description of this V1CloudSpaceEnvironmentTemplate.
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
:param description: The description of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
|
|
171
|
+
:type: str
|
|
172
|
+
"""
|
|
173
|
+
|
|
174
|
+
self._description = description
|
|
175
|
+
|
|
145
176
|
@property
|
|
146
177
|
def disabled(self) -> 'bool':
|
|
147
178
|
"""Gets the disabled of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
|
|
@@ -163,6 +194,27 @@ class V1CloudSpaceEnvironmentTemplate(object):
|
|
|
163
194
|
|
|
164
195
|
self._disabled = disabled
|
|
165
196
|
|
|
197
|
+
@property
|
|
198
|
+
def icon(self) -> 'str':
|
|
199
|
+
"""Gets the icon of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
:return: The icon of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
|
|
203
|
+
:rtype: str
|
|
204
|
+
"""
|
|
205
|
+
return self._icon
|
|
206
|
+
|
|
207
|
+
@icon.setter
|
|
208
|
+
def icon(self, icon: 'str'):
|
|
209
|
+
"""Sets the icon of this V1CloudSpaceEnvironmentTemplate.
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
:param icon: The icon of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
|
|
213
|
+
:type: str
|
|
214
|
+
"""
|
|
215
|
+
|
|
216
|
+
self._icon = icon
|
|
217
|
+
|
|
166
218
|
@property
|
|
167
219
|
def id(self) -> 'str':
|
|
168
220
|
"""Gets the id of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
|
|
@@ -44,6 +44,7 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
|
|
|
44
44
|
'allowed_machines': 'list[str]',
|
|
45
45
|
'default_machine': 'str',
|
|
46
46
|
'environment_type': 'V1CloudSpaceEnvironmentType',
|
|
47
|
+
'initial_setup_script_text': 'str',
|
|
47
48
|
'machine_image_version': 'str',
|
|
48
49
|
'plugins': 'list[str]',
|
|
49
50
|
'setup_script_text': 'str'
|
|
@@ -53,16 +54,18 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
|
|
|
53
54
|
'allowed_machines': 'allowedMachines',
|
|
54
55
|
'default_machine': 'defaultMachine',
|
|
55
56
|
'environment_type': 'environmentType',
|
|
57
|
+
'initial_setup_script_text': 'initialSetupScriptText',
|
|
56
58
|
'machine_image_version': 'machineImageVersion',
|
|
57
59
|
'plugins': 'plugins',
|
|
58
60
|
'setup_script_text': 'setupScriptText'
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, machine_image_version: 'str' =None, plugins: 'list[str]' =None, setup_script_text: 'str' =None): # noqa: E501
|
|
63
|
+
def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, initial_setup_script_text: 'str' =None, machine_image_version: 'str' =None, plugins: 'list[str]' =None, setup_script_text: 'str' =None): # noqa: E501
|
|
62
64
|
"""V1CloudSpaceEnvironmentTemplateConfig - a model defined in Swagger""" # noqa: E501
|
|
63
65
|
self._allowed_machines = None
|
|
64
66
|
self._default_machine = None
|
|
65
67
|
self._environment_type = None
|
|
68
|
+
self._initial_setup_script_text = None
|
|
66
69
|
self._machine_image_version = None
|
|
67
70
|
self._plugins = None
|
|
68
71
|
self._setup_script_text = None
|
|
@@ -73,6 +76,8 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
|
|
|
73
76
|
self.default_machine = default_machine
|
|
74
77
|
if environment_type is not None:
|
|
75
78
|
self.environment_type = environment_type
|
|
79
|
+
if initial_setup_script_text is not None:
|
|
80
|
+
self.initial_setup_script_text = initial_setup_script_text
|
|
76
81
|
if machine_image_version is not None:
|
|
77
82
|
self.machine_image_version = machine_image_version
|
|
78
83
|
if plugins is not None:
|
|
@@ -143,6 +148,27 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
|
|
|
143
148
|
|
|
144
149
|
self._environment_type = environment_type
|
|
145
150
|
|
|
151
|
+
@property
|
|
152
|
+
def initial_setup_script_text(self) -> 'str':
|
|
153
|
+
"""Gets the initial_setup_script_text of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:return: The initial_setup_script_text of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
|
|
157
|
+
:rtype: str
|
|
158
|
+
"""
|
|
159
|
+
return self._initial_setup_script_text
|
|
160
|
+
|
|
161
|
+
@initial_setup_script_text.setter
|
|
162
|
+
def initial_setup_script_text(self, initial_setup_script_text: 'str'):
|
|
163
|
+
"""Sets the initial_setup_script_text of this V1CloudSpaceEnvironmentTemplateConfig.
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
:param initial_setup_script_text: The initial_setup_script_text of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
|
|
167
|
+
:type: str
|
|
168
|
+
"""
|
|
169
|
+
|
|
170
|
+
self._initial_setup_script_text = initial_setup_script_text
|
|
171
|
+
|
|
146
172
|
@property
|
|
147
173
|
def machine_image_version(self) -> 'str':
|
|
148
174
|
"""Gets the machine_image_version of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
|
|
@@ -42,21 +42,26 @@ class V1ClusterDeletionOptions(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'delete_artifacts': 'bool',
|
|
45
|
+
'delete_filesystems': 'bool',
|
|
45
46
|
'delete_system_logs': 'bool'
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
attribute_map = {
|
|
49
50
|
'delete_artifacts': 'deleteArtifacts',
|
|
51
|
+
'delete_filesystems': 'deleteFilesystems',
|
|
50
52
|
'delete_system_logs': 'deleteSystemLogs'
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
def __init__(self, delete_artifacts: 'bool' =None, delete_system_logs: 'bool' =None): # noqa: E501
|
|
55
|
+
def __init__(self, delete_artifacts: 'bool' =None, delete_filesystems: 'bool' =None, delete_system_logs: 'bool' =None): # noqa: E501
|
|
54
56
|
"""V1ClusterDeletionOptions - a model defined in Swagger""" # noqa: E501
|
|
55
57
|
self._delete_artifacts = None
|
|
58
|
+
self._delete_filesystems = None
|
|
56
59
|
self._delete_system_logs = None
|
|
57
60
|
self.discriminator = None
|
|
58
61
|
if delete_artifacts is not None:
|
|
59
62
|
self.delete_artifacts = delete_artifacts
|
|
63
|
+
if delete_filesystems is not None:
|
|
64
|
+
self.delete_filesystems = delete_filesystems
|
|
60
65
|
if delete_system_logs is not None:
|
|
61
66
|
self.delete_system_logs = delete_system_logs
|
|
62
67
|
|
|
@@ -81,6 +86,27 @@ class V1ClusterDeletionOptions(object):
|
|
|
81
86
|
|
|
82
87
|
self._delete_artifacts = delete_artifacts
|
|
83
88
|
|
|
89
|
+
@property
|
|
90
|
+
def delete_filesystems(self) -> 'bool':
|
|
91
|
+
"""Gets the delete_filesystems of this V1ClusterDeletionOptions. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The delete_filesystems of this V1ClusterDeletionOptions. # noqa: E501
|
|
95
|
+
:rtype: bool
|
|
96
|
+
"""
|
|
97
|
+
return self._delete_filesystems
|
|
98
|
+
|
|
99
|
+
@delete_filesystems.setter
|
|
100
|
+
def delete_filesystems(self, delete_filesystems: 'bool'):
|
|
101
|
+
"""Sets the delete_filesystems of this V1ClusterDeletionOptions.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param delete_filesystems: The delete_filesystems of this V1ClusterDeletionOptions. # noqa: E501
|
|
105
|
+
:type: bool
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._delete_filesystems = delete_filesystems
|
|
109
|
+
|
|
84
110
|
@property
|
|
85
111
|
def delete_system_logs(self) -> 'bool':
|
|
86
112
|
"""Gets the delete_system_logs of this V1ClusterDeletionOptions. # noqa: E501
|
lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py
CHANGED
|
@@ -43,7 +43,10 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'allowed_machines': 'list[str]',
|
|
45
45
|
'default_machine': 'str',
|
|
46
|
+
'description': 'str',
|
|
46
47
|
'environment_type': 'V1CloudSpaceEnvironmentType',
|
|
48
|
+
'icon': 'str',
|
|
49
|
+
'initial_setup_script_text': 'str',
|
|
47
50
|
'machine_image_version': 'str',
|
|
48
51
|
'name': 'str',
|
|
49
52
|
'org_id': 'str',
|
|
@@ -54,7 +57,10 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
54
57
|
attribute_map = {
|
|
55
58
|
'allowed_machines': 'allowedMachines',
|
|
56
59
|
'default_machine': 'defaultMachine',
|
|
60
|
+
'description': 'description',
|
|
57
61
|
'environment_type': 'environmentType',
|
|
62
|
+
'icon': 'icon',
|
|
63
|
+
'initial_setup_script_text': 'initialSetupScriptText',
|
|
58
64
|
'machine_image_version': 'machineImageVersion',
|
|
59
65
|
'name': 'name',
|
|
60
66
|
'org_id': 'orgId',
|
|
@@ -62,11 +68,14 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
62
68
|
'setup_script_text': 'setupScriptText'
|
|
63
69
|
}
|
|
64
70
|
|
|
65
|
-
def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, plugins: 'list[str]' =None, setup_script_text: 'str' =None): # noqa: E501
|
|
71
|
+
def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, description: 'str' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, icon: 'str' =None, initial_setup_script_text: 'str' =None, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, plugins: 'list[str]' =None, setup_script_text: 'str' =None): # noqa: E501
|
|
66
72
|
"""V1CreateCloudSpaceEnvironmentTemplateRequest - a model defined in Swagger""" # noqa: E501
|
|
67
73
|
self._allowed_machines = None
|
|
68
74
|
self._default_machine = None
|
|
75
|
+
self._description = None
|
|
69
76
|
self._environment_type = None
|
|
77
|
+
self._icon = None
|
|
78
|
+
self._initial_setup_script_text = None
|
|
70
79
|
self._machine_image_version = None
|
|
71
80
|
self._name = None
|
|
72
81
|
self._org_id = None
|
|
@@ -77,8 +86,14 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
77
86
|
self.allowed_machines = allowed_machines
|
|
78
87
|
if default_machine is not None:
|
|
79
88
|
self.default_machine = default_machine
|
|
89
|
+
if description is not None:
|
|
90
|
+
self.description = description
|
|
80
91
|
if environment_type is not None:
|
|
81
92
|
self.environment_type = environment_type
|
|
93
|
+
if icon is not None:
|
|
94
|
+
self.icon = icon
|
|
95
|
+
if initial_setup_script_text is not None:
|
|
96
|
+
self.initial_setup_script_text = initial_setup_script_text
|
|
82
97
|
if machine_image_version is not None:
|
|
83
98
|
self.machine_image_version = machine_image_version
|
|
84
99
|
if name is not None:
|
|
@@ -132,6 +147,27 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
132
147
|
|
|
133
148
|
self._default_machine = default_machine
|
|
134
149
|
|
|
150
|
+
@property
|
|
151
|
+
def description(self) -> 'str':
|
|
152
|
+
"""Gets the description of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
:return: The description of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
156
|
+
:rtype: str
|
|
157
|
+
"""
|
|
158
|
+
return self._description
|
|
159
|
+
|
|
160
|
+
@description.setter
|
|
161
|
+
def description(self, description: 'str'):
|
|
162
|
+
"""Sets the description of this V1CreateCloudSpaceEnvironmentTemplateRequest.
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
:param description: The description of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
166
|
+
:type: str
|
|
167
|
+
"""
|
|
168
|
+
|
|
169
|
+
self._description = description
|
|
170
|
+
|
|
135
171
|
@property
|
|
136
172
|
def environment_type(self) -> 'V1CloudSpaceEnvironmentType':
|
|
137
173
|
"""Gets the environment_type of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
@@ -153,6 +189,48 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
153
189
|
|
|
154
190
|
self._environment_type = environment_type
|
|
155
191
|
|
|
192
|
+
@property
|
|
193
|
+
def icon(self) -> 'str':
|
|
194
|
+
"""Gets the icon of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
:return: The icon of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
198
|
+
:rtype: str
|
|
199
|
+
"""
|
|
200
|
+
return self._icon
|
|
201
|
+
|
|
202
|
+
@icon.setter
|
|
203
|
+
def icon(self, icon: 'str'):
|
|
204
|
+
"""Sets the icon of this V1CreateCloudSpaceEnvironmentTemplateRequest.
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
:param icon: The icon of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
208
|
+
:type: str
|
|
209
|
+
"""
|
|
210
|
+
|
|
211
|
+
self._icon = icon
|
|
212
|
+
|
|
213
|
+
@property
|
|
214
|
+
def initial_setup_script_text(self) -> 'str':
|
|
215
|
+
"""Gets the initial_setup_script_text of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
:return: The initial_setup_script_text of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
219
|
+
:rtype: str
|
|
220
|
+
"""
|
|
221
|
+
return self._initial_setup_script_text
|
|
222
|
+
|
|
223
|
+
@initial_setup_script_text.setter
|
|
224
|
+
def initial_setup_script_text(self, initial_setup_script_text: 'str'):
|
|
225
|
+
"""Sets the initial_setup_script_text of this V1CreateCloudSpaceEnvironmentTemplateRequest.
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
:param initial_setup_script_text: The initial_setup_script_text of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
229
|
+
:type: str
|
|
230
|
+
"""
|
|
231
|
+
|
|
232
|
+
self._initial_setup_script_text = initial_setup_script_text
|
|
233
|
+
|
|
156
234
|
@property
|
|
157
235
|
def machine_image_version(self) -> 'str':
|
|
158
236
|
"""Gets the machine_image_version of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
@@ -41,6 +41,9 @@ class V1CreateProjectRequest(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'allow_credits_auto_replenish': 'bool',
|
|
45
|
+
'auto_replenish_amount': 'float',
|
|
46
|
+
'auto_replenish_threshold': 'float',
|
|
44
47
|
'default_machine_image_version': 'str',
|
|
45
48
|
'default_machine_type': 'str',
|
|
46
49
|
'description': 'str',
|
|
@@ -52,6 +55,9 @@ class V1CreateProjectRequest(object):
|
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
attribute_map = {
|
|
58
|
+
'allow_credits_auto_replenish': 'allowCreditsAutoReplenish',
|
|
59
|
+
'auto_replenish_amount': 'autoReplenishAmount',
|
|
60
|
+
'auto_replenish_threshold': 'autoReplenishThreshold',
|
|
55
61
|
'default_machine_image_version': 'defaultMachineImageVersion',
|
|
56
62
|
'default_machine_type': 'defaultMachineType',
|
|
57
63
|
'description': 'description',
|
|
@@ -62,8 +68,11 @@ class V1CreateProjectRequest(object):
|
|
|
62
68
|
'quotas': 'quotas'
|
|
63
69
|
}
|
|
64
70
|
|
|
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
|
|
71
|
+
def __init__(self, allow_credits_auto_replenish: 'bool' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, 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
|
|
66
72
|
"""V1CreateProjectRequest - a model defined in Swagger""" # noqa: E501
|
|
73
|
+
self._allow_credits_auto_replenish = None
|
|
74
|
+
self._auto_replenish_amount = None
|
|
75
|
+
self._auto_replenish_threshold = None
|
|
67
76
|
self._default_machine_image_version = None
|
|
68
77
|
self._default_machine_type = None
|
|
69
78
|
self._description = None
|
|
@@ -73,6 +82,12 @@ class V1CreateProjectRequest(object):
|
|
|
73
82
|
self._preferred_cluster = None
|
|
74
83
|
self._quotas = None
|
|
75
84
|
self.discriminator = None
|
|
85
|
+
if allow_credits_auto_replenish is not None:
|
|
86
|
+
self.allow_credits_auto_replenish = allow_credits_auto_replenish
|
|
87
|
+
if auto_replenish_amount is not None:
|
|
88
|
+
self.auto_replenish_amount = auto_replenish_amount
|
|
89
|
+
if auto_replenish_threshold is not None:
|
|
90
|
+
self.auto_replenish_threshold = auto_replenish_threshold
|
|
76
91
|
if default_machine_image_version is not None:
|
|
77
92
|
self.default_machine_image_version = default_machine_image_version
|
|
78
93
|
if default_machine_type is not None:
|
|
@@ -90,6 +105,69 @@ class V1CreateProjectRequest(object):
|
|
|
90
105
|
if quotas is not None:
|
|
91
106
|
self.quotas = quotas
|
|
92
107
|
|
|
108
|
+
@property
|
|
109
|
+
def allow_credits_auto_replenish(self) -> 'bool':
|
|
110
|
+
"""Gets the allow_credits_auto_replenish of this V1CreateProjectRequest. # noqa: E501
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
:return: The allow_credits_auto_replenish of this V1CreateProjectRequest. # noqa: E501
|
|
114
|
+
:rtype: bool
|
|
115
|
+
"""
|
|
116
|
+
return self._allow_credits_auto_replenish
|
|
117
|
+
|
|
118
|
+
@allow_credits_auto_replenish.setter
|
|
119
|
+
def allow_credits_auto_replenish(self, allow_credits_auto_replenish: 'bool'):
|
|
120
|
+
"""Sets the allow_credits_auto_replenish of this V1CreateProjectRequest.
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
:param allow_credits_auto_replenish: The allow_credits_auto_replenish of this V1CreateProjectRequest. # noqa: E501
|
|
124
|
+
:type: bool
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
self._allow_credits_auto_replenish = allow_credits_auto_replenish
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def auto_replenish_amount(self) -> 'float':
|
|
131
|
+
"""Gets the auto_replenish_amount of this V1CreateProjectRequest. # noqa: E501
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
:return: The auto_replenish_amount of this V1CreateProjectRequest. # noqa: E501
|
|
135
|
+
:rtype: float
|
|
136
|
+
"""
|
|
137
|
+
return self._auto_replenish_amount
|
|
138
|
+
|
|
139
|
+
@auto_replenish_amount.setter
|
|
140
|
+
def auto_replenish_amount(self, auto_replenish_amount: 'float'):
|
|
141
|
+
"""Sets the auto_replenish_amount of this V1CreateProjectRequest.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
:param auto_replenish_amount: The auto_replenish_amount of this V1CreateProjectRequest. # noqa: E501
|
|
145
|
+
:type: float
|
|
146
|
+
"""
|
|
147
|
+
|
|
148
|
+
self._auto_replenish_amount = auto_replenish_amount
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
def auto_replenish_threshold(self) -> 'float':
|
|
152
|
+
"""Gets the auto_replenish_threshold of this V1CreateProjectRequest. # noqa: E501
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
:return: The auto_replenish_threshold of this V1CreateProjectRequest. # noqa: E501
|
|
156
|
+
:rtype: float
|
|
157
|
+
"""
|
|
158
|
+
return self._auto_replenish_threshold
|
|
159
|
+
|
|
160
|
+
@auto_replenish_threshold.setter
|
|
161
|
+
def auto_replenish_threshold(self, auto_replenish_threshold: 'float'):
|
|
162
|
+
"""Sets the auto_replenish_threshold of this V1CreateProjectRequest.
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
:param auto_replenish_threshold: The auto_replenish_threshold of this V1CreateProjectRequest. # noqa: E501
|
|
166
|
+
:type: float
|
|
167
|
+
"""
|
|
168
|
+
|
|
169
|
+
self._auto_replenish_threshold = auto_replenish_threshold
|
|
170
|
+
|
|
93
171
|
@property
|
|
94
172
|
def default_machine_image_version(self) -> 'str':
|
|
95
173
|
"""Gets the default_machine_image_version of this V1CreateProjectRequest. # noqa: E501
|