lightning-sdk 0.2.19__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 +28 -6
- 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/cli/deploy/_auth.py +11 -19
- lightning_sdk/cli/entrypoint.py +20 -2
- lightning_sdk/deployment/deployment.py +17 -3
- lightning_sdk/lightning_cloud/login.py +2 -2
- lightning_sdk/lightning_cloud/openapi/__init__.py +2 -3
- 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/jobs_service_api.py +121 -0
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +0 -85
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +2 -3
- lightning_sdk/lightning_cloud/openapi/models/alertingevents_id_body.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_author.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -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 +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_notification_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +27 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -443
- lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +499 -31
- lightning_sdk/lightning_cloud/rest_client.py +13 -11
- lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +8 -3
- lightning_sdk/llm/llm.py +52 -1
- lightning_sdk/pipeline/pipeline.py +1 -1
- lightning_sdk/services/license.py +78 -22
- lightning_sdk/services/utilities.py +15 -1
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21.dist-info}/RECORD +59 -60
- lightning_sdk/lightning_cloud/openapi/models/v1_ebs.py +0 -279
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_response.py +0 -201
- lightning_sdk/lightning_cloud/openapi/models/v1_reservation_billing_session.py +0 -279
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.19.dist-info → lightning_sdk-0.2.21.dist-info}/top_level.txt +0 -0
|
@@ -46,7 +46,8 @@ class IdCodeconfigBody(object):
|
|
|
46
46
|
'disable_auto_shutdown': 'bool',
|
|
47
47
|
'ide': 'str',
|
|
48
48
|
'idle_shutdown_seconds': 'int',
|
|
49
|
-
'port_plugin_port': 'str'
|
|
49
|
+
'port_plugin_port': 'str',
|
|
50
|
+
'switch_to_default_machine_on_idle': 'bool'
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
attribute_map = {
|
|
@@ -55,10 +56,11 @@ class IdCodeconfigBody(object):
|
|
|
55
56
|
'disable_auto_shutdown': 'disableAutoShutdown',
|
|
56
57
|
'ide': 'ide',
|
|
57
58
|
'idle_shutdown_seconds': 'idleShutdownSeconds',
|
|
58
|
-
'port_plugin_port': 'portPluginPort'
|
|
59
|
+
'port_plugin_port': 'portPluginPort',
|
|
60
|
+
'switch_to_default_machine_on_idle': 'switchToDefaultMachineOnIdle'
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
def __init__(self, compute_config: 'V1UserRequestedComputeConfig' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, disable_auto_shutdown: 'bool' =None, ide: 'str' =None, idle_shutdown_seconds: 'int' =None, port_plugin_port: 'str' =None): # noqa: E501
|
|
63
|
+
def __init__(self, compute_config: 'V1UserRequestedComputeConfig' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, disable_auto_shutdown: 'bool' =None, ide: 'str' =None, idle_shutdown_seconds: 'int' =None, port_plugin_port: 'str' =None, switch_to_default_machine_on_idle: 'bool' =None): # noqa: E501
|
|
62
64
|
"""IdCodeconfigBody - a model defined in Swagger""" # noqa: E501
|
|
63
65
|
self._compute_config = None
|
|
64
66
|
self._data_connection_mounts = None
|
|
@@ -66,6 +68,7 @@ class IdCodeconfigBody(object):
|
|
|
66
68
|
self._ide = None
|
|
67
69
|
self._idle_shutdown_seconds = None
|
|
68
70
|
self._port_plugin_port = None
|
|
71
|
+
self._switch_to_default_machine_on_idle = None
|
|
69
72
|
self.discriminator = None
|
|
70
73
|
if compute_config is not None:
|
|
71
74
|
self.compute_config = compute_config
|
|
@@ -79,6 +82,8 @@ class IdCodeconfigBody(object):
|
|
|
79
82
|
self.idle_shutdown_seconds = idle_shutdown_seconds
|
|
80
83
|
if port_plugin_port is not None:
|
|
81
84
|
self.port_plugin_port = port_plugin_port
|
|
85
|
+
if switch_to_default_machine_on_idle is not None:
|
|
86
|
+
self.switch_to_default_machine_on_idle = switch_to_default_machine_on_idle
|
|
82
87
|
|
|
83
88
|
@property
|
|
84
89
|
def compute_config(self) -> 'V1UserRequestedComputeConfig':
|
|
@@ -206,6 +211,27 @@ class IdCodeconfigBody(object):
|
|
|
206
211
|
|
|
207
212
|
self._port_plugin_port = port_plugin_port
|
|
208
213
|
|
|
214
|
+
@property
|
|
215
|
+
def switch_to_default_machine_on_idle(self) -> 'bool':
|
|
216
|
+
"""Gets the switch_to_default_machine_on_idle of this IdCodeconfigBody. # noqa: E501
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
:return: The switch_to_default_machine_on_idle of this IdCodeconfigBody. # noqa: E501
|
|
220
|
+
:rtype: bool
|
|
221
|
+
"""
|
|
222
|
+
return self._switch_to_default_machine_on_idle
|
|
223
|
+
|
|
224
|
+
@switch_to_default_machine_on_idle.setter
|
|
225
|
+
def switch_to_default_machine_on_idle(self, switch_to_default_machine_on_idle: 'bool'):
|
|
226
|
+
"""Sets the switch_to_default_machine_on_idle of this IdCodeconfigBody.
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
:param switch_to_default_machine_on_idle: The switch_to_default_machine_on_idle of this IdCodeconfigBody. # noqa: E501
|
|
230
|
+
:type: bool
|
|
231
|
+
"""
|
|
232
|
+
|
|
233
|
+
self._switch_to_default_machine_on_idle = switch_to_default_machine_on_idle
|
|
234
|
+
|
|
209
235
|
def to_dict(self) -> dict:
|
|
210
236
|
"""Returns the model properties as a dict"""
|
|
211
237
|
result = {}
|
|
@@ -43,50 +43,70 @@ 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',
|
|
54
|
+
'plugins': 'list[str]',
|
|
51
55
|
'setup_script_text': 'str'
|
|
52
56
|
}
|
|
53
57
|
|
|
54
58
|
attribute_map = {
|
|
55
59
|
'allowed_machines': 'allowedMachines',
|
|
56
60
|
'default_machine': 'defaultMachine',
|
|
61
|
+
'description': 'description',
|
|
57
62
|
'disabled': 'disabled',
|
|
58
63
|
'environment_type': 'environmentType',
|
|
64
|
+
'icon': 'icon',
|
|
65
|
+
'initial_setup_script_text': 'initialSetupScriptText',
|
|
59
66
|
'machine_image_version': 'machineImageVersion',
|
|
60
67
|
'name': 'name',
|
|
61
68
|
'org_id': 'orgId',
|
|
69
|
+
'plugins': 'plugins',
|
|
62
70
|
'setup_script_text': 'setupScriptText'
|
|
63
71
|
}
|
|
64
72
|
|
|
65
|
-
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, 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
|
|
66
74
|
"""Update - a model defined in Swagger""" # noqa: E501
|
|
67
75
|
self._allowed_machines = None
|
|
68
76
|
self._default_machine = None
|
|
77
|
+
self._description = None
|
|
69
78
|
self._disabled = None
|
|
70
79
|
self._environment_type = None
|
|
80
|
+
self._icon = None
|
|
81
|
+
self._initial_setup_script_text = None
|
|
71
82
|
self._machine_image_version = None
|
|
72
83
|
self._name = None
|
|
73
84
|
self._org_id = None
|
|
85
|
+
self._plugins = None
|
|
74
86
|
self._setup_script_text = None
|
|
75
87
|
self.discriminator = None
|
|
76
88
|
if allowed_machines is not None:
|
|
77
89
|
self.allowed_machines = allowed_machines
|
|
78
90
|
if default_machine is not None:
|
|
79
91
|
self.default_machine = default_machine
|
|
92
|
+
if description is not None:
|
|
93
|
+
self.description = description
|
|
80
94
|
if disabled is not None:
|
|
81
95
|
self.disabled = disabled
|
|
82
96
|
if environment_type is not None:
|
|
83
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
|
|
84
102
|
if machine_image_version is not None:
|
|
85
103
|
self.machine_image_version = machine_image_version
|
|
86
104
|
if name is not None:
|
|
87
105
|
self.name = name
|
|
88
106
|
if org_id is not None:
|
|
89
107
|
self.org_id = org_id
|
|
108
|
+
if plugins is not None:
|
|
109
|
+
self.plugins = plugins
|
|
90
110
|
if setup_script_text is not None:
|
|
91
111
|
self.setup_script_text = setup_script_text
|
|
92
112
|
|
|
@@ -132,6 +152,27 @@ class Update(object):
|
|
|
132
152
|
|
|
133
153
|
self._default_machine = default_machine
|
|
134
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
|
+
|
|
135
176
|
@property
|
|
136
177
|
def disabled(self) -> 'bool':
|
|
137
178
|
"""Gets the disabled of this Update. # noqa: E501
|
|
@@ -174,6 +215,48 @@ class Update(object):
|
|
|
174
215
|
|
|
175
216
|
self._environment_type = environment_type
|
|
176
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
|
+
|
|
177
260
|
@property
|
|
178
261
|
def machine_image_version(self) -> 'str':
|
|
179
262
|
"""Gets the machine_image_version of this Update. # noqa: E501
|
|
@@ -237,6 +320,27 @@ class Update(object):
|
|
|
237
320
|
|
|
238
321
|
self._org_id = org_id
|
|
239
322
|
|
|
323
|
+
@property
|
|
324
|
+
def plugins(self) -> 'list[str]':
|
|
325
|
+
"""Gets the plugins of this Update. # noqa: E501
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
:return: The plugins of this Update. # noqa: E501
|
|
329
|
+
:rtype: list[str]
|
|
330
|
+
"""
|
|
331
|
+
return self._plugins
|
|
332
|
+
|
|
333
|
+
@plugins.setter
|
|
334
|
+
def plugins(self, plugins: 'list[str]'):
|
|
335
|
+
"""Sets the plugins of this Update.
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
:param plugins: The plugins of this Update. # noqa: E501
|
|
339
|
+
:type: list[str]
|
|
340
|
+
"""
|
|
341
|
+
|
|
342
|
+
self._plugins = plugins
|
|
343
|
+
|
|
240
344
|
@property
|
|
241
345
|
def setup_script_text(self) -> 'str':
|
|
242
346
|
"""Gets the setup_script_text of this Update. # noqa: E501
|
|
@@ -0,0 +1,201 @@
|
|
|
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 V1Author(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
|
+
'first_name': 'str',
|
|
45
|
+
'id': 'str',
|
|
46
|
+
'last_name': 'str',
|
|
47
|
+
'username': 'str'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
attribute_map = {
|
|
51
|
+
'first_name': 'firstName',
|
|
52
|
+
'id': 'id',
|
|
53
|
+
'last_name': 'lastName',
|
|
54
|
+
'username': 'username'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, first_name: 'str' =None, id: 'str' =None, last_name: 'str' =None, username: 'str' =None): # noqa: E501
|
|
58
|
+
"""V1Author - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._first_name = None
|
|
60
|
+
self._id = None
|
|
61
|
+
self._last_name = None
|
|
62
|
+
self._username = None
|
|
63
|
+
self.discriminator = None
|
|
64
|
+
if first_name is not None:
|
|
65
|
+
self.first_name = first_name
|
|
66
|
+
if id is not None:
|
|
67
|
+
self.id = id
|
|
68
|
+
if last_name is not None:
|
|
69
|
+
self.last_name = last_name
|
|
70
|
+
if username is not None:
|
|
71
|
+
self.username = username
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def first_name(self) -> 'str':
|
|
75
|
+
"""Gets the first_name of this V1Author. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The first_name of this V1Author. # noqa: E501
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._first_name
|
|
82
|
+
|
|
83
|
+
@first_name.setter
|
|
84
|
+
def first_name(self, first_name: 'str'):
|
|
85
|
+
"""Sets the first_name of this V1Author.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param first_name: The first_name of this V1Author. # noqa: E501
|
|
89
|
+
:type: str
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._first_name = first_name
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def id(self) -> 'str':
|
|
96
|
+
"""Gets the id of this V1Author. # noqa: E501
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:return: The id of this V1Author. # noqa: E501
|
|
100
|
+
:rtype: str
|
|
101
|
+
"""
|
|
102
|
+
return self._id
|
|
103
|
+
|
|
104
|
+
@id.setter
|
|
105
|
+
def id(self, id: 'str'):
|
|
106
|
+
"""Sets the id of this V1Author.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param id: The id of this V1Author. # noqa: E501
|
|
110
|
+
:type: str
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
self._id = id
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def last_name(self) -> 'str':
|
|
117
|
+
"""Gets the last_name of this V1Author. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The last_name of this V1Author. # noqa: E501
|
|
121
|
+
:rtype: str
|
|
122
|
+
"""
|
|
123
|
+
return self._last_name
|
|
124
|
+
|
|
125
|
+
@last_name.setter
|
|
126
|
+
def last_name(self, last_name: 'str'):
|
|
127
|
+
"""Sets the last_name of this V1Author.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param last_name: The last_name of this V1Author. # noqa: E501
|
|
131
|
+
:type: str
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._last_name = last_name
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def username(self) -> 'str':
|
|
138
|
+
"""Gets the username of this V1Author. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The username of this V1Author. # noqa: E501
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._username
|
|
145
|
+
|
|
146
|
+
@username.setter
|
|
147
|
+
def username(self, username: 'str'):
|
|
148
|
+
"""Sets the username of this V1Author.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param username: The username of this V1Author. # noqa: E501
|
|
152
|
+
:type: str
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._username = username
|
|
156
|
+
|
|
157
|
+
def to_dict(self) -> dict:
|
|
158
|
+
"""Returns the model properties as a dict"""
|
|
159
|
+
result = {}
|
|
160
|
+
|
|
161
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
162
|
+
value = getattr(self, attr)
|
|
163
|
+
if isinstance(value, list):
|
|
164
|
+
result[attr] = list(map(
|
|
165
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
166
|
+
value
|
|
167
|
+
))
|
|
168
|
+
elif hasattr(value, "to_dict"):
|
|
169
|
+
result[attr] = value.to_dict()
|
|
170
|
+
elif isinstance(value, dict):
|
|
171
|
+
result[attr] = dict(map(
|
|
172
|
+
lambda item: (item[0], item[1].to_dict())
|
|
173
|
+
if hasattr(item[1], "to_dict") else item,
|
|
174
|
+
value.items()
|
|
175
|
+
))
|
|
176
|
+
else:
|
|
177
|
+
result[attr] = value
|
|
178
|
+
if issubclass(V1Author, dict):
|
|
179
|
+
for key, value in self.items():
|
|
180
|
+
result[key] = value
|
|
181
|
+
|
|
182
|
+
return result
|
|
183
|
+
|
|
184
|
+
def to_str(self) -> str:
|
|
185
|
+
"""Returns the string representation of the model"""
|
|
186
|
+
return pprint.pformat(self.to_dict())
|
|
187
|
+
|
|
188
|
+
def __repr__(self) -> str:
|
|
189
|
+
"""For `print` and `pprint`"""
|
|
190
|
+
return self.to_str()
|
|
191
|
+
|
|
192
|
+
def __eq__(self, other: 'V1Author') -> bool:
|
|
193
|
+
"""Returns true if both objects are equal"""
|
|
194
|
+
if not isinstance(other, V1Author):
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return self.__dict__ == other.__dict__
|
|
198
|
+
|
|
199
|
+
def __ne__(self, other: 'V1Author') -> bool:
|
|
200
|
+
"""Returns true if both objects are not equal"""
|
|
201
|
+
return not self == other
|
|
@@ -41,41 +41,49 @@ class V1BlogPost(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'author': 'V1Author',
|
|
44
45
|
'author_id': 'str',
|
|
45
46
|
'category': 'str',
|
|
46
47
|
'created_at': 'datetime',
|
|
47
48
|
'description': 'str',
|
|
48
49
|
'id': 'str',
|
|
49
50
|
'image_url': 'str',
|
|
51
|
+
'lit_page': 'V1LitPage',
|
|
50
52
|
'lit_page_id': 'str',
|
|
51
53
|
'title': 'str',
|
|
52
54
|
'updated_at': 'datetime'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
attribute_map = {
|
|
58
|
+
'author': 'author',
|
|
56
59
|
'author_id': 'authorId',
|
|
57
60
|
'category': 'category',
|
|
58
61
|
'created_at': 'createdAt',
|
|
59
62
|
'description': 'description',
|
|
60
63
|
'id': 'id',
|
|
61
64
|
'image_url': 'imageUrl',
|
|
65
|
+
'lit_page': 'litPage',
|
|
62
66
|
'lit_page_id': 'litPageId',
|
|
63
67
|
'title': 'title',
|
|
64
68
|
'updated_at': 'updatedAt'
|
|
65
69
|
}
|
|
66
70
|
|
|
67
|
-
def __init__(self, author_id: 'str' =None, category: 'str' =None, created_at: 'datetime' =None, description: 'str' =None, id: 'str' =None, image_url: 'str' =None, lit_page_id: 'str' =None, title: 'str' =None, updated_at: 'datetime' =None): # noqa: E501
|
|
71
|
+
def __init__(self, author: 'V1Author' =None, author_id: 'str' =None, category: 'str' =None, created_at: 'datetime' =None, description: 'str' =None, id: 'str' =None, image_url: 'str' =None, lit_page: 'V1LitPage' =None, lit_page_id: 'str' =None, title: 'str' =None, updated_at: 'datetime' =None): # noqa: E501
|
|
68
72
|
"""V1BlogPost - a model defined in Swagger""" # noqa: E501
|
|
73
|
+
self._author = None
|
|
69
74
|
self._author_id = None
|
|
70
75
|
self._category = None
|
|
71
76
|
self._created_at = None
|
|
72
77
|
self._description = None
|
|
73
78
|
self._id = None
|
|
74
79
|
self._image_url = None
|
|
80
|
+
self._lit_page = None
|
|
75
81
|
self._lit_page_id = None
|
|
76
82
|
self._title = None
|
|
77
83
|
self._updated_at = None
|
|
78
84
|
self.discriminator = None
|
|
85
|
+
if author is not None:
|
|
86
|
+
self.author = author
|
|
79
87
|
if author_id is not None:
|
|
80
88
|
self.author_id = author_id
|
|
81
89
|
if category is not None:
|
|
@@ -88,6 +96,8 @@ class V1BlogPost(object):
|
|
|
88
96
|
self.id = id
|
|
89
97
|
if image_url is not None:
|
|
90
98
|
self.image_url = image_url
|
|
99
|
+
if lit_page is not None:
|
|
100
|
+
self.lit_page = lit_page
|
|
91
101
|
if lit_page_id is not None:
|
|
92
102
|
self.lit_page_id = lit_page_id
|
|
93
103
|
if title is not None:
|
|
@@ -95,6 +105,27 @@ class V1BlogPost(object):
|
|
|
95
105
|
if updated_at is not None:
|
|
96
106
|
self.updated_at = updated_at
|
|
97
107
|
|
|
108
|
+
@property
|
|
109
|
+
def author(self) -> 'V1Author':
|
|
110
|
+
"""Gets the author of this V1BlogPost. # noqa: E501
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
:return: The author of this V1BlogPost. # noqa: E501
|
|
114
|
+
:rtype: V1Author
|
|
115
|
+
"""
|
|
116
|
+
return self._author
|
|
117
|
+
|
|
118
|
+
@author.setter
|
|
119
|
+
def author(self, author: 'V1Author'):
|
|
120
|
+
"""Sets the author of this V1BlogPost.
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
:param author: The author of this V1BlogPost. # noqa: E501
|
|
124
|
+
:type: V1Author
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
self._author = author
|
|
128
|
+
|
|
98
129
|
@property
|
|
99
130
|
def author_id(self) -> 'str':
|
|
100
131
|
"""Gets the author_id of this V1BlogPost. # noqa: E501
|
|
@@ -221,6 +252,27 @@ class V1BlogPost(object):
|
|
|
221
252
|
|
|
222
253
|
self._image_url = image_url
|
|
223
254
|
|
|
255
|
+
@property
|
|
256
|
+
def lit_page(self) -> 'V1LitPage':
|
|
257
|
+
"""Gets the lit_page of this V1BlogPost. # noqa: E501
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
:return: The lit_page of this V1BlogPost. # noqa: E501
|
|
261
|
+
:rtype: V1LitPage
|
|
262
|
+
"""
|
|
263
|
+
return self._lit_page
|
|
264
|
+
|
|
265
|
+
@lit_page.setter
|
|
266
|
+
def lit_page(self, lit_page: 'V1LitPage'):
|
|
267
|
+
"""Sets the lit_page of this V1BlogPost.
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
:param lit_page: The lit_page of this V1BlogPost. # noqa: E501
|
|
271
|
+
:type: V1LitPage
|
|
272
|
+
"""
|
|
273
|
+
|
|
274
|
+
self._lit_page = lit_page
|
|
275
|
+
|
|
224
276
|
@property
|
|
225
277
|
def lit_page_id(self) -> 'str':
|
|
226
278
|
"""Gets the lit_page_id of this V1BlogPost. # noqa: E501
|
|
@@ -78,6 +78,7 @@ class V1CloudSpace(object):
|
|
|
78
78
|
'paper_org': 'str',
|
|
79
79
|
'paper_org_avatar_url': 'str',
|
|
80
80
|
'paper_url': 'str',
|
|
81
|
+
'persistent_disk_id': 'str',
|
|
81
82
|
'project_id': 'str',
|
|
82
83
|
'publications': 'list[V1CloudSpaceVersionPublication]',
|
|
83
84
|
'published_at': 'datetime',
|
|
@@ -135,6 +136,7 @@ class V1CloudSpace(object):
|
|
|
135
136
|
'paper_org': 'paperOrg',
|
|
136
137
|
'paper_org_avatar_url': 'paperOrgAvatarUrl',
|
|
137
138
|
'paper_url': 'paperUrl',
|
|
139
|
+
'persistent_disk_id': 'persistentDiskId',
|
|
138
140
|
'project_id': 'projectId',
|
|
139
141
|
'publications': 'publications',
|
|
140
142
|
'published_at': 'publishedAt',
|
|
@@ -154,7 +156,7 @@ class V1CloudSpace(object):
|
|
|
154
156
|
'web_path': 'webPath'
|
|
155
157
|
}
|
|
156
158
|
|
|
157
|
-
def __init__(self, auto_switch_machine: 'bool' =None, cache_data_connection_id: 'str' =None, can_download_source_code: 'bool' =None, cluster_id: 'str' =None, code_config: 'V1CloudSpaceInstanceConfig' =None, code_status: 'V1GetCloudSpaceInstanceStatusResponse' =None, code_url: 'str' =None, created_at: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, description: 'str' =None, display_name: 'str' =None, engagement_counts: 'dict(str, str)' =None, env: 'list[V1EnvVar]' =None, environment_config: 'V1CloudSpaceEnvironmentConfig' =None, environment_template_id: 'str' =None, featured: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, image_status: 'V1ImageState' =None, is_cloudspace_private: 'bool' =None, is_code_private: 'bool' =None, is_favorite: 'bool' =None, is_published: 'bool' =None, license: 'str' =None, license_url: 'str' =None, lock_out: 'bool' =None, machine_image_version: 'str' =None, max_run_duration: 'str' =None, message: 'str' =None, multi_user_edit: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, operating_cost: 'str' =None, paper_authors: 'str' =None, paper_org: 'str' =None, paper_org_avatar_url: 'str' =None, paper_url: 'str' =None, project_id: 'str' =None, publications: 'list[V1CloudSpaceVersionPublication]' =None, published_at: 'datetime' =None, published_to_org_at: 'datetime' =None, state: 'V1CloudSpaceState' =None, switch_to_default_machine_on_idle: 'bool' =None, sync_duration: 'str' =None, sync_percentage: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_file_type: 'str' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None, user_metadata: 'str' =None, web_path: 'str' =None): # noqa: E501
|
|
159
|
+
def __init__(self, auto_switch_machine: 'bool' =None, cache_data_connection_id: 'str' =None, can_download_source_code: 'bool' =None, cluster_id: 'str' =None, code_config: 'V1CloudSpaceInstanceConfig' =None, code_status: 'V1GetCloudSpaceInstanceStatusResponse' =None, code_url: 'str' =None, created_at: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, description: 'str' =None, display_name: 'str' =None, engagement_counts: 'dict(str, str)' =None, env: 'list[V1EnvVar]' =None, environment_config: 'V1CloudSpaceEnvironmentConfig' =None, environment_template_id: 'str' =None, featured: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, image_status: 'V1ImageState' =None, is_cloudspace_private: 'bool' =None, is_code_private: 'bool' =None, is_favorite: 'bool' =None, is_published: 'bool' =None, license: 'str' =None, license_url: 'str' =None, lock_out: 'bool' =None, machine_image_version: 'str' =None, max_run_duration: 'str' =None, message: 'str' =None, multi_user_edit: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, operating_cost: 'str' =None, paper_authors: 'str' =None, paper_org: 'str' =None, paper_org_avatar_url: 'str' =None, paper_url: 'str' =None, persistent_disk_id: 'str' =None, project_id: 'str' =None, publications: 'list[V1CloudSpaceVersionPublication]' =None, published_at: 'datetime' =None, published_to_org_at: 'datetime' =None, state: 'V1CloudSpaceState' =None, switch_to_default_machine_on_idle: 'bool' =None, sync_duration: 'str' =None, sync_percentage: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_file_type: 'str' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None, user_metadata: 'str' =None, web_path: 'str' =None): # noqa: E501
|
|
158
160
|
"""V1CloudSpace - a model defined in Swagger""" # noqa: E501
|
|
159
161
|
self._auto_switch_machine = None
|
|
160
162
|
self._cache_data_connection_id = None
|
|
@@ -193,6 +195,7 @@ class V1CloudSpace(object):
|
|
|
193
195
|
self._paper_org = None
|
|
194
196
|
self._paper_org_avatar_url = None
|
|
195
197
|
self._paper_url = None
|
|
198
|
+
self._persistent_disk_id = None
|
|
196
199
|
self._project_id = None
|
|
197
200
|
self._publications = None
|
|
198
201
|
self._published_at = None
|
|
@@ -285,6 +288,8 @@ class V1CloudSpace(object):
|
|
|
285
288
|
self.paper_org_avatar_url = paper_org_avatar_url
|
|
286
289
|
if paper_url is not None:
|
|
287
290
|
self.paper_url = paper_url
|
|
291
|
+
if persistent_disk_id is not None:
|
|
292
|
+
self.persistent_disk_id = persistent_disk_id
|
|
288
293
|
if project_id is not None:
|
|
289
294
|
self.project_id = project_id
|
|
290
295
|
if publications is not None:
|
|
@@ -1097,6 +1102,27 @@ class V1CloudSpace(object):
|
|
|
1097
1102
|
|
|
1098
1103
|
self._paper_url = paper_url
|
|
1099
1104
|
|
|
1105
|
+
@property
|
|
1106
|
+
def persistent_disk_id(self) -> 'str':
|
|
1107
|
+
"""Gets the persistent_disk_id of this V1CloudSpace. # noqa: E501
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
:return: The persistent_disk_id of this V1CloudSpace. # noqa: E501
|
|
1111
|
+
:rtype: str
|
|
1112
|
+
"""
|
|
1113
|
+
return self._persistent_disk_id
|
|
1114
|
+
|
|
1115
|
+
@persistent_disk_id.setter
|
|
1116
|
+
def persistent_disk_id(self, persistent_disk_id: 'str'):
|
|
1117
|
+
"""Sets the persistent_disk_id of this V1CloudSpace.
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
:param persistent_disk_id: The persistent_disk_id of this V1CloudSpace. # noqa: E501
|
|
1121
|
+
:type: str
|
|
1122
|
+
"""
|
|
1123
|
+
|
|
1124
|
+
self._persistent_disk_id = persistent_disk_id
|
|
1125
|
+
|
|
1100
1126
|
@property
|
|
1101
1127
|
def project_id(self) -> 'str':
|
|
1102
1128
|
"""Gets the project_id of this V1CloudSpace. # noqa: E501
|