lightning-sdk 0.2.18__py3-none-any.whl → 0.2.20__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 +2 -0
- lightning_sdk/api/license_api.py +28 -6
- lightning_sdk/cli/deploy/_auth.py +11 -19
- lightning_sdk/cli/entrypoint.py +20 -2
- lightning_sdk/deployment/deployment.py +2 -0
- lightning_sdk/lightning_cloud/login.py +2 -2
- lightning_sdk/lightning_cloud/openapi/__init__.py +10 -2
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/blog_posts_service_api.py +533 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +121 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +9 -2
- lightning_sdk/lightning_cloud/openapi/models/alertingevents_id_body.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/blogposts_id_body.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/id_transfer_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +157 -157
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_author.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- 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 +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_state.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_blog_post_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_daily_usage.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_blog_post_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -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 +157 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +237 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_blog_posts_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_notification_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +261 -157
- lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +199 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +4 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_transfer_cloud_space_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +105 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +249 -145
- 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/serve.py +1 -0
- lightning_sdk/services/license.py +148 -27
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/RECORD +66 -58
- lightning_sdk/lightning_cloud/openapi/models/v1_ebs.py +0 -279
- lightning_sdk/lightning_cloud/openapi/models/v1_reservation_billing_session.py +0 -279
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/top_level.txt +0 -0
|
@@ -46,6 +46,7 @@ class V1CloudSpaceEnvironmentTemplate(object):
|
|
|
46
46
|
'disabled': 'bool',
|
|
47
47
|
'id': 'str',
|
|
48
48
|
'managed': 'bool',
|
|
49
|
+
'managed_id': 'str',
|
|
49
50
|
'name': 'str',
|
|
50
51
|
'org_id': 'str',
|
|
51
52
|
'updated_at': 'datetime',
|
|
@@ -58,19 +59,21 @@ class V1CloudSpaceEnvironmentTemplate(object):
|
|
|
58
59
|
'disabled': 'disabled',
|
|
59
60
|
'id': 'id',
|
|
60
61
|
'managed': 'managed',
|
|
62
|
+
'managed_id': 'managedId',
|
|
61
63
|
'name': 'name',
|
|
62
64
|
'org_id': 'orgId',
|
|
63
65
|
'updated_at': 'updatedAt',
|
|
64
66
|
'user_id': 'userId'
|
|
65
67
|
}
|
|
66
68
|
|
|
67
|
-
def __init__(self, config: 'V1CloudSpaceEnvironmentTemplateConfig' =None, created_at: 'datetime' =None, disabled: 'bool' =None, id: 'str' =None, managed: 'bool' =None, name: 'str' =None, org_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
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
|
|
68
70
|
"""V1CloudSpaceEnvironmentTemplate - a model defined in Swagger""" # noqa: E501
|
|
69
71
|
self._config = None
|
|
70
72
|
self._created_at = None
|
|
71
73
|
self._disabled = None
|
|
72
74
|
self._id = None
|
|
73
75
|
self._managed = None
|
|
76
|
+
self._managed_id = None
|
|
74
77
|
self._name = None
|
|
75
78
|
self._org_id = None
|
|
76
79
|
self._updated_at = None
|
|
@@ -86,6 +89,8 @@ class V1CloudSpaceEnvironmentTemplate(object):
|
|
|
86
89
|
self.id = id
|
|
87
90
|
if managed is not None:
|
|
88
91
|
self.managed = managed
|
|
92
|
+
if managed_id is not None:
|
|
93
|
+
self.managed_id = managed_id
|
|
89
94
|
if name is not None:
|
|
90
95
|
self.name = name
|
|
91
96
|
if org_id is not None:
|
|
@@ -200,6 +205,27 @@ class V1CloudSpaceEnvironmentTemplate(object):
|
|
|
200
205
|
|
|
201
206
|
self._managed = managed
|
|
202
207
|
|
|
208
|
+
@property
|
|
209
|
+
def managed_id(self) -> 'str':
|
|
210
|
+
"""Gets the managed_id of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
:return: The managed_id of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
|
|
214
|
+
:rtype: str
|
|
215
|
+
"""
|
|
216
|
+
return self._managed_id
|
|
217
|
+
|
|
218
|
+
@managed_id.setter
|
|
219
|
+
def managed_id(self, managed_id: 'str'):
|
|
220
|
+
"""Sets the managed_id of this V1CloudSpaceEnvironmentTemplate.
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
:param managed_id: The managed_id of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
|
|
224
|
+
:type: str
|
|
225
|
+
"""
|
|
226
|
+
|
|
227
|
+
self._managed_id = managed_id
|
|
228
|
+
|
|
203
229
|
@property
|
|
204
230
|
def name(self) -> 'str':
|
|
205
231
|
"""Gets the name of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
|
|
@@ -45,6 +45,7 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
|
|
|
45
45
|
'default_machine': 'str',
|
|
46
46
|
'environment_type': 'V1CloudSpaceEnvironmentType',
|
|
47
47
|
'machine_image_version': 'str',
|
|
48
|
+
'plugins': 'list[str]',
|
|
48
49
|
'setup_script_text': 'str'
|
|
49
50
|
}
|
|
50
51
|
|
|
@@ -53,15 +54,17 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
|
|
|
53
54
|
'default_machine': 'defaultMachine',
|
|
54
55
|
'environment_type': 'environmentType',
|
|
55
56
|
'machine_image_version': 'machineImageVersion',
|
|
57
|
+
'plugins': 'plugins',
|
|
56
58
|
'setup_script_text': 'setupScriptText'
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, machine_image_version: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
|
|
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
|
|
60
62
|
"""V1CloudSpaceEnvironmentTemplateConfig - a model defined in Swagger""" # noqa: E501
|
|
61
63
|
self._allowed_machines = None
|
|
62
64
|
self._default_machine = None
|
|
63
65
|
self._environment_type = None
|
|
64
66
|
self._machine_image_version = None
|
|
67
|
+
self._plugins = None
|
|
65
68
|
self._setup_script_text = None
|
|
66
69
|
self.discriminator = None
|
|
67
70
|
if allowed_machines is not None:
|
|
@@ -72,6 +75,8 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
|
|
|
72
75
|
self.environment_type = environment_type
|
|
73
76
|
if machine_image_version is not None:
|
|
74
77
|
self.machine_image_version = machine_image_version
|
|
78
|
+
if plugins is not None:
|
|
79
|
+
self.plugins = plugins
|
|
75
80
|
if setup_script_text is not None:
|
|
76
81
|
self.setup_script_text = setup_script_text
|
|
77
82
|
|
|
@@ -159,6 +164,27 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
|
|
|
159
164
|
|
|
160
165
|
self._machine_image_version = machine_image_version
|
|
161
166
|
|
|
167
|
+
@property
|
|
168
|
+
def plugins(self) -> 'list[str]':
|
|
169
|
+
"""Gets the plugins of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
:return: The plugins of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
|
|
173
|
+
:rtype: list[str]
|
|
174
|
+
"""
|
|
175
|
+
return self._plugins
|
|
176
|
+
|
|
177
|
+
@plugins.setter
|
|
178
|
+
def plugins(self, plugins: 'list[str]'):
|
|
179
|
+
"""Sets the plugins of this V1CloudSpaceEnvironmentTemplateConfig.
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:param plugins: The plugins of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
|
|
183
|
+
:type: list[str]
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
self._plugins = plugins
|
|
187
|
+
|
|
162
188
|
@property
|
|
163
189
|
def setup_script_text(self) -> 'str':
|
|
164
190
|
"""Gets the setup_script_text of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
|
|
@@ -41,6 +41,7 @@ class V1CloudSpaceState(object):
|
|
|
41
41
|
INITIAL_SYNC_IN_PROGRESS = "CLOUD_SPACE_STATE_INITIAL_SYNC_IN_PROGRESS"
|
|
42
42
|
READY = "CLOUD_SPACE_STATE_READY"
|
|
43
43
|
DELETED = "CLOUD_SPACE_STATE_DELETED"
|
|
44
|
+
TRANSFERRING = "CLOUD_SPACE_STATE_TRANSFERRING"
|
|
44
45
|
"""
|
|
45
46
|
Attributes:
|
|
46
47
|
swagger_types (dict): The key is attribute name
|
|
@@ -0,0 +1,253 @@
|
|
|
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 V1CreateBlogPostRequest(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
|
+
'author_id': 'str',
|
|
45
|
+
'category': 'str',
|
|
46
|
+
'description': 'str',
|
|
47
|
+
'image_url': 'str',
|
|
48
|
+
'lit_page_id': 'str',
|
|
49
|
+
'title': 'str'
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
attribute_map = {
|
|
53
|
+
'author_id': 'authorId',
|
|
54
|
+
'category': 'category',
|
|
55
|
+
'description': 'description',
|
|
56
|
+
'image_url': 'imageUrl',
|
|
57
|
+
'lit_page_id': 'litPageId',
|
|
58
|
+
'title': 'title'
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
def __init__(self, author_id: 'str' =None, category: 'str' =None, description: 'str' =None, image_url: 'str' =None, lit_page_id: 'str' =None, title: 'str' =None): # noqa: E501
|
|
62
|
+
"""V1CreateBlogPostRequest - a model defined in Swagger""" # noqa: E501
|
|
63
|
+
self._author_id = None
|
|
64
|
+
self._category = None
|
|
65
|
+
self._description = None
|
|
66
|
+
self._image_url = None
|
|
67
|
+
self._lit_page_id = None
|
|
68
|
+
self._title = None
|
|
69
|
+
self.discriminator = None
|
|
70
|
+
if author_id is not None:
|
|
71
|
+
self.author_id = author_id
|
|
72
|
+
if category is not None:
|
|
73
|
+
self.category = category
|
|
74
|
+
if description is not None:
|
|
75
|
+
self.description = description
|
|
76
|
+
if image_url is not None:
|
|
77
|
+
self.image_url = image_url
|
|
78
|
+
if lit_page_id is not None:
|
|
79
|
+
self.lit_page_id = lit_page_id
|
|
80
|
+
if title is not None:
|
|
81
|
+
self.title = title
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def author_id(self) -> 'str':
|
|
85
|
+
"""Gets the author_id of this V1CreateBlogPostRequest. # noqa: E501
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:return: The author_id of this V1CreateBlogPostRequest. # noqa: E501
|
|
89
|
+
:rtype: str
|
|
90
|
+
"""
|
|
91
|
+
return self._author_id
|
|
92
|
+
|
|
93
|
+
@author_id.setter
|
|
94
|
+
def author_id(self, author_id: 'str'):
|
|
95
|
+
"""Sets the author_id of this V1CreateBlogPostRequest.
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:param author_id: The author_id of this V1CreateBlogPostRequest. # noqa: E501
|
|
99
|
+
:type: str
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
self._author_id = author_id
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
def category(self) -> 'str':
|
|
106
|
+
"""Gets the category of this V1CreateBlogPostRequest. # noqa: E501
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:return: The category of this V1CreateBlogPostRequest. # noqa: E501
|
|
110
|
+
:rtype: str
|
|
111
|
+
"""
|
|
112
|
+
return self._category
|
|
113
|
+
|
|
114
|
+
@category.setter
|
|
115
|
+
def category(self, category: 'str'):
|
|
116
|
+
"""Sets the category of this V1CreateBlogPostRequest.
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
:param category: The category of this V1CreateBlogPostRequest. # noqa: E501
|
|
120
|
+
:type: str
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
self._category = category
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
def description(self) -> 'str':
|
|
127
|
+
"""Gets the description of this V1CreateBlogPostRequest. # noqa: E501
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:return: The description of this V1CreateBlogPostRequest. # noqa: E501
|
|
131
|
+
:rtype: str
|
|
132
|
+
"""
|
|
133
|
+
return self._description
|
|
134
|
+
|
|
135
|
+
@description.setter
|
|
136
|
+
def description(self, description: 'str'):
|
|
137
|
+
"""Sets the description of this V1CreateBlogPostRequest.
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
:param description: The description of this V1CreateBlogPostRequest. # noqa: E501
|
|
141
|
+
:type: str
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
self._description = description
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
def image_url(self) -> 'str':
|
|
148
|
+
"""Gets the image_url of this V1CreateBlogPostRequest. # noqa: E501
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:return: The image_url of this V1CreateBlogPostRequest. # noqa: E501
|
|
152
|
+
:rtype: str
|
|
153
|
+
"""
|
|
154
|
+
return self._image_url
|
|
155
|
+
|
|
156
|
+
@image_url.setter
|
|
157
|
+
def image_url(self, image_url: 'str'):
|
|
158
|
+
"""Sets the image_url of this V1CreateBlogPostRequest.
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:param image_url: The image_url of this V1CreateBlogPostRequest. # noqa: E501
|
|
162
|
+
:type: str
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
self._image_url = image_url
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
def lit_page_id(self) -> 'str':
|
|
169
|
+
"""Gets the lit_page_id of this V1CreateBlogPostRequest. # noqa: E501
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
:return: The lit_page_id of this V1CreateBlogPostRequest. # noqa: E501
|
|
173
|
+
:rtype: str
|
|
174
|
+
"""
|
|
175
|
+
return self._lit_page_id
|
|
176
|
+
|
|
177
|
+
@lit_page_id.setter
|
|
178
|
+
def lit_page_id(self, lit_page_id: 'str'):
|
|
179
|
+
"""Sets the lit_page_id of this V1CreateBlogPostRequest.
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:param lit_page_id: The lit_page_id of this V1CreateBlogPostRequest. # noqa: E501
|
|
183
|
+
:type: str
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
self._lit_page_id = lit_page_id
|
|
187
|
+
|
|
188
|
+
@property
|
|
189
|
+
def title(self) -> 'str':
|
|
190
|
+
"""Gets the title of this V1CreateBlogPostRequest. # noqa: E501
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
:return: The title of this V1CreateBlogPostRequest. # noqa: E501
|
|
194
|
+
:rtype: str
|
|
195
|
+
"""
|
|
196
|
+
return self._title
|
|
197
|
+
|
|
198
|
+
@title.setter
|
|
199
|
+
def title(self, title: 'str'):
|
|
200
|
+
"""Sets the title of this V1CreateBlogPostRequest.
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
:param title: The title of this V1CreateBlogPostRequest. # noqa: E501
|
|
204
|
+
:type: str
|
|
205
|
+
"""
|
|
206
|
+
|
|
207
|
+
self._title = title
|
|
208
|
+
|
|
209
|
+
def to_dict(self) -> dict:
|
|
210
|
+
"""Returns the model properties as a dict"""
|
|
211
|
+
result = {}
|
|
212
|
+
|
|
213
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
214
|
+
value = getattr(self, attr)
|
|
215
|
+
if isinstance(value, list):
|
|
216
|
+
result[attr] = list(map(
|
|
217
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
218
|
+
value
|
|
219
|
+
))
|
|
220
|
+
elif hasattr(value, "to_dict"):
|
|
221
|
+
result[attr] = value.to_dict()
|
|
222
|
+
elif isinstance(value, dict):
|
|
223
|
+
result[attr] = dict(map(
|
|
224
|
+
lambda item: (item[0], item[1].to_dict())
|
|
225
|
+
if hasattr(item[1], "to_dict") else item,
|
|
226
|
+
value.items()
|
|
227
|
+
))
|
|
228
|
+
else:
|
|
229
|
+
result[attr] = value
|
|
230
|
+
if issubclass(V1CreateBlogPostRequest, dict):
|
|
231
|
+
for key, value in self.items():
|
|
232
|
+
result[key] = value
|
|
233
|
+
|
|
234
|
+
return result
|
|
235
|
+
|
|
236
|
+
def to_str(self) -> str:
|
|
237
|
+
"""Returns the string representation of the model"""
|
|
238
|
+
return pprint.pformat(self.to_dict())
|
|
239
|
+
|
|
240
|
+
def __repr__(self) -> str:
|
|
241
|
+
"""For `print` and `pprint`"""
|
|
242
|
+
return self.to_str()
|
|
243
|
+
|
|
244
|
+
def __eq__(self, other: 'V1CreateBlogPostRequest') -> bool:
|
|
245
|
+
"""Returns true if both objects are equal"""
|
|
246
|
+
if not isinstance(other, V1CreateBlogPostRequest):
|
|
247
|
+
return False
|
|
248
|
+
|
|
249
|
+
return self.__dict__ == other.__dict__
|
|
250
|
+
|
|
251
|
+
def __ne__(self, other: 'V1CreateBlogPostRequest') -> bool:
|
|
252
|
+
"""Returns true if both objects are not equal"""
|
|
253
|
+
return not self == other
|
lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py
CHANGED
|
@@ -47,6 +47,7 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
47
47
|
'machine_image_version': 'str',
|
|
48
48
|
'name': 'str',
|
|
49
49
|
'org_id': 'str',
|
|
50
|
+
'plugins': 'list[str]',
|
|
50
51
|
'setup_script_text': 'str'
|
|
51
52
|
}
|
|
52
53
|
|
|
@@ -57,10 +58,11 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
57
58
|
'machine_image_version': 'machineImageVersion',
|
|
58
59
|
'name': 'name',
|
|
59
60
|
'org_id': 'orgId',
|
|
61
|
+
'plugins': 'plugins',
|
|
60
62
|
'setup_script_text': 'setupScriptText'
|
|
61
63
|
}
|
|
62
64
|
|
|
63
|
-
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, setup_script_text: 'str' =None): # noqa: E501
|
|
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
|
|
64
66
|
"""V1CreateCloudSpaceEnvironmentTemplateRequest - a model defined in Swagger""" # noqa: E501
|
|
65
67
|
self._allowed_machines = None
|
|
66
68
|
self._default_machine = None
|
|
@@ -68,6 +70,7 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
68
70
|
self._machine_image_version = None
|
|
69
71
|
self._name = None
|
|
70
72
|
self._org_id = None
|
|
73
|
+
self._plugins = None
|
|
71
74
|
self._setup_script_text = None
|
|
72
75
|
self.discriminator = None
|
|
73
76
|
if allowed_machines is not None:
|
|
@@ -82,6 +85,8 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
82
85
|
self.name = name
|
|
83
86
|
if org_id is not None:
|
|
84
87
|
self.org_id = org_id
|
|
88
|
+
if plugins is not None:
|
|
89
|
+
self.plugins = plugins
|
|
85
90
|
if setup_script_text is not None:
|
|
86
91
|
self.setup_script_text = setup_script_text
|
|
87
92
|
|
|
@@ -211,6 +216,27 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
211
216
|
|
|
212
217
|
self._org_id = org_id
|
|
213
218
|
|
|
219
|
+
@property
|
|
220
|
+
def plugins(self) -> 'list[str]':
|
|
221
|
+
"""Gets the plugins of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
:return: The plugins of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
225
|
+
:rtype: list[str]
|
|
226
|
+
"""
|
|
227
|
+
return self._plugins
|
|
228
|
+
|
|
229
|
+
@plugins.setter
|
|
230
|
+
def plugins(self, plugins: 'list[str]'):
|
|
231
|
+
"""Sets the plugins of this V1CreateCloudSpaceEnvironmentTemplateRequest.
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
:param plugins: The plugins of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
235
|
+
:type: list[str]
|
|
236
|
+
"""
|
|
237
|
+
|
|
238
|
+
self._plugins = plugins
|
|
239
|
+
|
|
214
240
|
@property
|
|
215
241
|
def setup_script_text(self) -> 'str':
|
|
216
242
|
"""Gets the setup_script_text of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
@@ -42,23 +42,38 @@ class V1DailyUsage(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'day': 'datetime',
|
|
45
|
-
'
|
|
45
|
+
'total_completion_tokens': 'str',
|
|
46
|
+
'total_cost': 'float',
|
|
47
|
+
'total_num_messages': 'str',
|
|
48
|
+
'total_prompt_tokens': 'str'
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
attribute_map = {
|
|
49
52
|
'day': 'day',
|
|
50
|
-
'
|
|
53
|
+
'total_completion_tokens': 'totalCompletionTokens',
|
|
54
|
+
'total_cost': 'totalCost',
|
|
55
|
+
'total_num_messages': 'totalNumMessages',
|
|
56
|
+
'total_prompt_tokens': 'totalPromptTokens'
|
|
51
57
|
}
|
|
52
58
|
|
|
53
|
-
def __init__(self, day: 'datetime' =None, total_cost: 'float' =None): # noqa: E501
|
|
59
|
+
def __init__(self, day: 'datetime' =None, total_completion_tokens: 'str' =None, total_cost: 'float' =None, total_num_messages: 'str' =None, total_prompt_tokens: 'str' =None): # noqa: E501
|
|
54
60
|
"""V1DailyUsage - a model defined in Swagger""" # noqa: E501
|
|
55
61
|
self._day = None
|
|
62
|
+
self._total_completion_tokens = None
|
|
56
63
|
self._total_cost = None
|
|
64
|
+
self._total_num_messages = None
|
|
65
|
+
self._total_prompt_tokens = None
|
|
57
66
|
self.discriminator = None
|
|
58
67
|
if day is not None:
|
|
59
68
|
self.day = day
|
|
69
|
+
if total_completion_tokens is not None:
|
|
70
|
+
self.total_completion_tokens = total_completion_tokens
|
|
60
71
|
if total_cost is not None:
|
|
61
72
|
self.total_cost = total_cost
|
|
73
|
+
if total_num_messages is not None:
|
|
74
|
+
self.total_num_messages = total_num_messages
|
|
75
|
+
if total_prompt_tokens is not None:
|
|
76
|
+
self.total_prompt_tokens = total_prompt_tokens
|
|
62
77
|
|
|
63
78
|
@property
|
|
64
79
|
def day(self) -> 'datetime':
|
|
@@ -81,6 +96,27 @@ class V1DailyUsage(object):
|
|
|
81
96
|
|
|
82
97
|
self._day = day
|
|
83
98
|
|
|
99
|
+
@property
|
|
100
|
+
def total_completion_tokens(self) -> 'str':
|
|
101
|
+
"""Gets the total_completion_tokens of this V1DailyUsage. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The total_completion_tokens of this V1DailyUsage. # noqa: E501
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
107
|
+
return self._total_completion_tokens
|
|
108
|
+
|
|
109
|
+
@total_completion_tokens.setter
|
|
110
|
+
def total_completion_tokens(self, total_completion_tokens: 'str'):
|
|
111
|
+
"""Sets the total_completion_tokens of this V1DailyUsage.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param total_completion_tokens: The total_completion_tokens of this V1DailyUsage. # noqa: E501
|
|
115
|
+
:type: str
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._total_completion_tokens = total_completion_tokens
|
|
119
|
+
|
|
84
120
|
@property
|
|
85
121
|
def total_cost(self) -> 'float':
|
|
86
122
|
"""Gets the total_cost of this V1DailyUsage. # noqa: E501
|
|
@@ -102,6 +138,48 @@ class V1DailyUsage(object):
|
|
|
102
138
|
|
|
103
139
|
self._total_cost = total_cost
|
|
104
140
|
|
|
141
|
+
@property
|
|
142
|
+
def total_num_messages(self) -> 'str':
|
|
143
|
+
"""Gets the total_num_messages of this V1DailyUsage. # noqa: E501
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
:return: The total_num_messages of this V1DailyUsage. # noqa: E501
|
|
147
|
+
:rtype: str
|
|
148
|
+
"""
|
|
149
|
+
return self._total_num_messages
|
|
150
|
+
|
|
151
|
+
@total_num_messages.setter
|
|
152
|
+
def total_num_messages(self, total_num_messages: 'str'):
|
|
153
|
+
"""Sets the total_num_messages of this V1DailyUsage.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:param total_num_messages: The total_num_messages of this V1DailyUsage. # noqa: E501
|
|
157
|
+
:type: str
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
self._total_num_messages = total_num_messages
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
def total_prompt_tokens(self) -> 'str':
|
|
164
|
+
"""Gets the total_prompt_tokens of this V1DailyUsage. # noqa: E501
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
:return: The total_prompt_tokens of this V1DailyUsage. # noqa: E501
|
|
168
|
+
:rtype: str
|
|
169
|
+
"""
|
|
170
|
+
return self._total_prompt_tokens
|
|
171
|
+
|
|
172
|
+
@total_prompt_tokens.setter
|
|
173
|
+
def total_prompt_tokens(self, total_prompt_tokens: 'str'):
|
|
174
|
+
"""Sets the total_prompt_tokens of this V1DailyUsage.
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:param total_prompt_tokens: The total_prompt_tokens of this V1DailyUsage. # noqa: E501
|
|
178
|
+
:type: str
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
self._total_prompt_tokens = total_prompt_tokens
|
|
182
|
+
|
|
105
183
|
def to_dict(self) -> dict:
|
|
106
184
|
"""Returns the model properties as a dict"""
|
|
107
185
|
result = {}
|