lightning-sdk 0.2.18__py3-none-any.whl → 0.2.19__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/deployment/deployment.py +2 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +8 -0
- 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/models/__init__.py +7 -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_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/v1_blog_post.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +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_daily_usage.py +81 -3
- 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_get_organization_storage_metadata_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +133 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +27 -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_message.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +157 -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 +79 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transfer_cloud_space_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +197 -67
- lightning_sdk/serve.py +1 -0
- lightning_sdk/services/license.py +87 -22
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.19.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.19.dist-info}/RECORD +46 -38
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.19.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.19.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.19.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.19.dist-info}/top_level.txt +0 -0
|
@@ -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
|
|
@@ -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 = {}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class V1DeleteBlogPostResponse(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
|
+
'success': 'bool'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'success': 'success'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, success: 'bool' =None): # noqa: E501
|
|
52
|
+
"""V1DeleteBlogPostResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._success = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if success is not None:
|
|
56
|
+
self.success = success
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def success(self) -> 'bool':
|
|
60
|
+
"""Gets the success of this V1DeleteBlogPostResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The success of this V1DeleteBlogPostResponse. # noqa: E501
|
|
64
|
+
:rtype: bool
|
|
65
|
+
"""
|
|
66
|
+
return self._success
|
|
67
|
+
|
|
68
|
+
@success.setter
|
|
69
|
+
def success(self, success: 'bool'):
|
|
70
|
+
"""Sets the success of this V1DeleteBlogPostResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param success: The success of this V1DeleteBlogPostResponse. # noqa: E501
|
|
74
|
+
:type: bool
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._success = success
|
|
78
|
+
|
|
79
|
+
def to_dict(self) -> dict:
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
if issubclass(V1DeleteBlogPostResponse, dict):
|
|
101
|
+
for key, value in self.items():
|
|
102
|
+
result[key] = value
|
|
103
|
+
|
|
104
|
+
return result
|
|
105
|
+
|
|
106
|
+
def to_str(self) -> str:
|
|
107
|
+
"""Returns the string representation of the model"""
|
|
108
|
+
return pprint.pformat(self.to_dict())
|
|
109
|
+
|
|
110
|
+
def __repr__(self) -> str:
|
|
111
|
+
"""For `print` and `pprint`"""
|
|
112
|
+
return self.to_str()
|
|
113
|
+
|
|
114
|
+
def __eq__(self, other: 'V1DeleteBlogPostResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1DeleteBlogPostResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1DeleteBlogPostResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -41,6 +41,7 @@ class V1Deployment(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'source': 'str',
|
|
44
45
|
'api_standard': 'str',
|
|
45
46
|
'apis': 'list[V1DeploymentAPI]',
|
|
46
47
|
'assistant_id': 'str',
|
|
@@ -74,6 +75,7 @@ class V1Deployment(object):
|
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
attribute_map = {
|
|
78
|
+
'source': 'Source',
|
|
77
79
|
'api_standard': 'apiStandard',
|
|
78
80
|
'apis': 'apis',
|
|
79
81
|
'assistant_id': 'assistantId',
|
|
@@ -106,8 +108,9 @@ class V1Deployment(object):
|
|
|
106
108
|
'visibility': 'visibility'
|
|
107
109
|
}
|
|
108
110
|
|
|
109
|
-
def __init__(self, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, assistant_id: 'str' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, current_state: 'V1DeploymentState' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, managed: 'bool' =None, managed_endpoint_id: 'str' =None, name: 'str' =None, oncall_notification: 'bool' =None, parameter_spec: 'V1ParameterizationSpec' =None, pipeline_id: 'str' =None, project_id: 'str' =None, recipients: 'V1DeploymentAlertingRecipients' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
111
|
+
def __init__(self, source: 'str' =None, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, assistant_id: 'str' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, current_state: 'V1DeploymentState' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, managed: 'bool' =None, managed_endpoint_id: 'str' =None, name: 'str' =None, oncall_notification: 'bool' =None, parameter_spec: 'V1ParameterizationSpec' =None, pipeline_id: 'str' =None, project_id: 'str' =None, recipients: 'V1DeploymentAlertingRecipients' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
110
112
|
"""V1Deployment - a model defined in Swagger""" # noqa: E501
|
|
113
|
+
self._source = None
|
|
111
114
|
self._api_standard = None
|
|
112
115
|
self._apis = None
|
|
113
116
|
self._assistant_id = None
|
|
@@ -139,6 +142,8 @@ class V1Deployment(object):
|
|
|
139
142
|
self._user_id = None
|
|
140
143
|
self._visibility = None
|
|
141
144
|
self.discriminator = None
|
|
145
|
+
if source is not None:
|
|
146
|
+
self.source = source
|
|
142
147
|
if api_standard is not None:
|
|
143
148
|
self.api_standard = api_standard
|
|
144
149
|
if apis is not None:
|
|
@@ -200,6 +205,27 @@ class V1Deployment(object):
|
|
|
200
205
|
if visibility is not None:
|
|
201
206
|
self.visibility = visibility
|
|
202
207
|
|
|
208
|
+
@property
|
|
209
|
+
def source(self) -> 'str':
|
|
210
|
+
"""Gets the source of this V1Deployment. # noqa: E501
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
:return: The source of this V1Deployment. # noqa: E501
|
|
214
|
+
:rtype: str
|
|
215
|
+
"""
|
|
216
|
+
return self._source
|
|
217
|
+
|
|
218
|
+
@source.setter
|
|
219
|
+
def source(self, source: 'str'):
|
|
220
|
+
"""Sets the source of this V1Deployment.
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
:param source: The source of this V1Deployment. # noqa: E501
|
|
224
|
+
:type: str
|
|
225
|
+
"""
|
|
226
|
+
|
|
227
|
+
self._source = source
|
|
228
|
+
|
|
203
229
|
@property
|
|
204
230
|
def api_standard(self) -> 'str':
|
|
205
231
|
"""Gets the api_standard of this V1Deployment. # noqa: E501
|