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
|
@@ -1,279 +0,0 @@
|
|
|
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 V1Ebs(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
|
-
'encrypted': 'bool',
|
|
45
|
-
'iops': 'str',
|
|
46
|
-
'path': 'str',
|
|
47
|
-
'provider_id': 'str',
|
|
48
|
-
'size': 'str',
|
|
49
|
-
'throughput': 'str',
|
|
50
|
-
'type': 'str'
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
attribute_map = {
|
|
54
|
-
'encrypted': 'encrypted',
|
|
55
|
-
'iops': 'iops',
|
|
56
|
-
'path': 'path',
|
|
57
|
-
'provider_id': 'providerId',
|
|
58
|
-
'size': 'size',
|
|
59
|
-
'throughput': 'throughput',
|
|
60
|
-
'type': 'type'
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
def __init__(self, encrypted: 'bool' =None, iops: 'str' =None, path: 'str' =None, provider_id: 'str' =None, size: 'str' =None, throughput: 'str' =None, type: 'str' =None): # noqa: E501
|
|
64
|
-
"""V1Ebs - a model defined in Swagger""" # noqa: E501
|
|
65
|
-
self._encrypted = None
|
|
66
|
-
self._iops = None
|
|
67
|
-
self._path = None
|
|
68
|
-
self._provider_id = None
|
|
69
|
-
self._size = None
|
|
70
|
-
self._throughput = None
|
|
71
|
-
self._type = None
|
|
72
|
-
self.discriminator = None
|
|
73
|
-
if encrypted is not None:
|
|
74
|
-
self.encrypted = encrypted
|
|
75
|
-
if iops is not None:
|
|
76
|
-
self.iops = iops
|
|
77
|
-
if path is not None:
|
|
78
|
-
self.path = path
|
|
79
|
-
if provider_id is not None:
|
|
80
|
-
self.provider_id = provider_id
|
|
81
|
-
if size is not None:
|
|
82
|
-
self.size = size
|
|
83
|
-
if throughput is not None:
|
|
84
|
-
self.throughput = throughput
|
|
85
|
-
if type is not None:
|
|
86
|
-
self.type = type
|
|
87
|
-
|
|
88
|
-
@property
|
|
89
|
-
def encrypted(self) -> 'bool':
|
|
90
|
-
"""Gets the encrypted of this V1Ebs. # noqa: E501
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
:return: The encrypted of this V1Ebs. # noqa: E501
|
|
94
|
-
:rtype: bool
|
|
95
|
-
"""
|
|
96
|
-
return self._encrypted
|
|
97
|
-
|
|
98
|
-
@encrypted.setter
|
|
99
|
-
def encrypted(self, encrypted: 'bool'):
|
|
100
|
-
"""Sets the encrypted of this V1Ebs.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
:param encrypted: The encrypted of this V1Ebs. # noqa: E501
|
|
104
|
-
:type: bool
|
|
105
|
-
"""
|
|
106
|
-
|
|
107
|
-
self._encrypted = encrypted
|
|
108
|
-
|
|
109
|
-
@property
|
|
110
|
-
def iops(self) -> 'str':
|
|
111
|
-
"""Gets the iops of this V1Ebs. # noqa: E501
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
:return: The iops of this V1Ebs. # noqa: E501
|
|
115
|
-
:rtype: str
|
|
116
|
-
"""
|
|
117
|
-
return self._iops
|
|
118
|
-
|
|
119
|
-
@iops.setter
|
|
120
|
-
def iops(self, iops: 'str'):
|
|
121
|
-
"""Sets the iops of this V1Ebs.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
:param iops: The iops of this V1Ebs. # noqa: E501
|
|
125
|
-
:type: str
|
|
126
|
-
"""
|
|
127
|
-
|
|
128
|
-
self._iops = iops
|
|
129
|
-
|
|
130
|
-
@property
|
|
131
|
-
def path(self) -> 'str':
|
|
132
|
-
"""Gets the path of this V1Ebs. # noqa: E501
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
:return: The path of this V1Ebs. # noqa: E501
|
|
136
|
-
:rtype: str
|
|
137
|
-
"""
|
|
138
|
-
return self._path
|
|
139
|
-
|
|
140
|
-
@path.setter
|
|
141
|
-
def path(self, path: 'str'):
|
|
142
|
-
"""Sets the path of this V1Ebs.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
:param path: The path of this V1Ebs. # noqa: E501
|
|
146
|
-
:type: str
|
|
147
|
-
"""
|
|
148
|
-
|
|
149
|
-
self._path = path
|
|
150
|
-
|
|
151
|
-
@property
|
|
152
|
-
def provider_id(self) -> 'str':
|
|
153
|
-
"""Gets the provider_id of this V1Ebs. # noqa: E501
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
:return: The provider_id of this V1Ebs. # noqa: E501
|
|
157
|
-
:rtype: str
|
|
158
|
-
"""
|
|
159
|
-
return self._provider_id
|
|
160
|
-
|
|
161
|
-
@provider_id.setter
|
|
162
|
-
def provider_id(self, provider_id: 'str'):
|
|
163
|
-
"""Sets the provider_id of this V1Ebs.
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
:param provider_id: The provider_id of this V1Ebs. # noqa: E501
|
|
167
|
-
:type: str
|
|
168
|
-
"""
|
|
169
|
-
|
|
170
|
-
self._provider_id = provider_id
|
|
171
|
-
|
|
172
|
-
@property
|
|
173
|
-
def size(self) -> 'str':
|
|
174
|
-
"""Gets the size of this V1Ebs. # noqa: E501
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
:return: The size of this V1Ebs. # noqa: E501
|
|
178
|
-
:rtype: str
|
|
179
|
-
"""
|
|
180
|
-
return self._size
|
|
181
|
-
|
|
182
|
-
@size.setter
|
|
183
|
-
def size(self, size: 'str'):
|
|
184
|
-
"""Sets the size of this V1Ebs.
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
:param size: The size of this V1Ebs. # noqa: E501
|
|
188
|
-
:type: str
|
|
189
|
-
"""
|
|
190
|
-
|
|
191
|
-
self._size = size
|
|
192
|
-
|
|
193
|
-
@property
|
|
194
|
-
def throughput(self) -> 'str':
|
|
195
|
-
"""Gets the throughput of this V1Ebs. # noqa: E501
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
:return: The throughput of this V1Ebs. # noqa: E501
|
|
199
|
-
:rtype: str
|
|
200
|
-
"""
|
|
201
|
-
return self._throughput
|
|
202
|
-
|
|
203
|
-
@throughput.setter
|
|
204
|
-
def throughput(self, throughput: 'str'):
|
|
205
|
-
"""Sets the throughput of this V1Ebs.
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
:param throughput: The throughput of this V1Ebs. # noqa: E501
|
|
209
|
-
:type: str
|
|
210
|
-
"""
|
|
211
|
-
|
|
212
|
-
self._throughput = throughput
|
|
213
|
-
|
|
214
|
-
@property
|
|
215
|
-
def type(self) -> 'str':
|
|
216
|
-
"""Gets the type of this V1Ebs. # noqa: E501
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
:return: The type of this V1Ebs. # noqa: E501
|
|
220
|
-
:rtype: str
|
|
221
|
-
"""
|
|
222
|
-
return self._type
|
|
223
|
-
|
|
224
|
-
@type.setter
|
|
225
|
-
def type(self, type: 'str'):
|
|
226
|
-
"""Sets the type of this V1Ebs.
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
:param type: The type of this V1Ebs. # noqa: E501
|
|
230
|
-
:type: str
|
|
231
|
-
"""
|
|
232
|
-
|
|
233
|
-
self._type = type
|
|
234
|
-
|
|
235
|
-
def to_dict(self) -> dict:
|
|
236
|
-
"""Returns the model properties as a dict"""
|
|
237
|
-
result = {}
|
|
238
|
-
|
|
239
|
-
for attr, _ in six.iteritems(self.swagger_types):
|
|
240
|
-
value = getattr(self, attr)
|
|
241
|
-
if isinstance(value, list):
|
|
242
|
-
result[attr] = list(map(
|
|
243
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
244
|
-
value
|
|
245
|
-
))
|
|
246
|
-
elif hasattr(value, "to_dict"):
|
|
247
|
-
result[attr] = value.to_dict()
|
|
248
|
-
elif isinstance(value, dict):
|
|
249
|
-
result[attr] = dict(map(
|
|
250
|
-
lambda item: (item[0], item[1].to_dict())
|
|
251
|
-
if hasattr(item[1], "to_dict") else item,
|
|
252
|
-
value.items()
|
|
253
|
-
))
|
|
254
|
-
else:
|
|
255
|
-
result[attr] = value
|
|
256
|
-
if issubclass(V1Ebs, dict):
|
|
257
|
-
for key, value in self.items():
|
|
258
|
-
result[key] = value
|
|
259
|
-
|
|
260
|
-
return result
|
|
261
|
-
|
|
262
|
-
def to_str(self) -> str:
|
|
263
|
-
"""Returns the string representation of the model"""
|
|
264
|
-
return pprint.pformat(self.to_dict())
|
|
265
|
-
|
|
266
|
-
def __repr__(self) -> str:
|
|
267
|
-
"""For `print` and `pprint`"""
|
|
268
|
-
return self.to_str()
|
|
269
|
-
|
|
270
|
-
def __eq__(self, other: 'V1Ebs') -> bool:
|
|
271
|
-
"""Returns true if both objects are equal"""
|
|
272
|
-
if not isinstance(other, V1Ebs):
|
|
273
|
-
return False
|
|
274
|
-
|
|
275
|
-
return self.__dict__ == other.__dict__
|
|
276
|
-
|
|
277
|
-
def __ne__(self, other: 'V1Ebs') -> bool:
|
|
278
|
-
"""Returns true if both objects are not equal"""
|
|
279
|
-
return not self == other
|
|
@@ -1,201 +0,0 @@
|
|
|
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 V1GetUserStorageResponse(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
|
-
'acked_storage_violation': 'bool',
|
|
45
|
-
'in_storage_violation': 'bool',
|
|
46
|
-
'indexation_in_progress': 'bool',
|
|
47
|
-
'storage_bytes': 'str'
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
attribute_map = {
|
|
51
|
-
'acked_storage_violation': 'ackedStorageViolation',
|
|
52
|
-
'in_storage_violation': 'inStorageViolation',
|
|
53
|
-
'indexation_in_progress': 'indexationInProgress',
|
|
54
|
-
'storage_bytes': 'storageBytes'
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
def __init__(self, acked_storage_violation: 'bool' =None, in_storage_violation: 'bool' =None, indexation_in_progress: 'bool' =None, storage_bytes: 'str' =None): # noqa: E501
|
|
58
|
-
"""V1GetUserStorageResponse - a model defined in Swagger""" # noqa: E501
|
|
59
|
-
self._acked_storage_violation = None
|
|
60
|
-
self._in_storage_violation = None
|
|
61
|
-
self._indexation_in_progress = None
|
|
62
|
-
self._storage_bytes = None
|
|
63
|
-
self.discriminator = None
|
|
64
|
-
if acked_storage_violation is not None:
|
|
65
|
-
self.acked_storage_violation = acked_storage_violation
|
|
66
|
-
if in_storage_violation is not None:
|
|
67
|
-
self.in_storage_violation = in_storage_violation
|
|
68
|
-
if indexation_in_progress is not None:
|
|
69
|
-
self.indexation_in_progress = indexation_in_progress
|
|
70
|
-
if storage_bytes is not None:
|
|
71
|
-
self.storage_bytes = storage_bytes
|
|
72
|
-
|
|
73
|
-
@property
|
|
74
|
-
def acked_storage_violation(self) -> 'bool':
|
|
75
|
-
"""Gets the acked_storage_violation of this V1GetUserStorageResponse. # noqa: E501
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
:return: The acked_storage_violation of this V1GetUserStorageResponse. # noqa: E501
|
|
79
|
-
:rtype: bool
|
|
80
|
-
"""
|
|
81
|
-
return self._acked_storage_violation
|
|
82
|
-
|
|
83
|
-
@acked_storage_violation.setter
|
|
84
|
-
def acked_storage_violation(self, acked_storage_violation: 'bool'):
|
|
85
|
-
"""Sets the acked_storage_violation of this V1GetUserStorageResponse.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
:param acked_storage_violation: The acked_storage_violation of this V1GetUserStorageResponse. # noqa: E501
|
|
89
|
-
:type: bool
|
|
90
|
-
"""
|
|
91
|
-
|
|
92
|
-
self._acked_storage_violation = acked_storage_violation
|
|
93
|
-
|
|
94
|
-
@property
|
|
95
|
-
def in_storage_violation(self) -> 'bool':
|
|
96
|
-
"""Gets the in_storage_violation of this V1GetUserStorageResponse. # noqa: E501
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
:return: The in_storage_violation of this V1GetUserStorageResponse. # noqa: E501
|
|
100
|
-
:rtype: bool
|
|
101
|
-
"""
|
|
102
|
-
return self._in_storage_violation
|
|
103
|
-
|
|
104
|
-
@in_storage_violation.setter
|
|
105
|
-
def in_storage_violation(self, in_storage_violation: 'bool'):
|
|
106
|
-
"""Sets the in_storage_violation of this V1GetUserStorageResponse.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
:param in_storage_violation: The in_storage_violation of this V1GetUserStorageResponse. # noqa: E501
|
|
110
|
-
:type: bool
|
|
111
|
-
"""
|
|
112
|
-
|
|
113
|
-
self._in_storage_violation = in_storage_violation
|
|
114
|
-
|
|
115
|
-
@property
|
|
116
|
-
def indexation_in_progress(self) -> 'bool':
|
|
117
|
-
"""Gets the indexation_in_progress of this V1GetUserStorageResponse. # noqa: E501
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
:return: The indexation_in_progress of this V1GetUserStorageResponse. # noqa: E501
|
|
121
|
-
:rtype: bool
|
|
122
|
-
"""
|
|
123
|
-
return self._indexation_in_progress
|
|
124
|
-
|
|
125
|
-
@indexation_in_progress.setter
|
|
126
|
-
def indexation_in_progress(self, indexation_in_progress: 'bool'):
|
|
127
|
-
"""Sets the indexation_in_progress of this V1GetUserStorageResponse.
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
:param indexation_in_progress: The indexation_in_progress of this V1GetUserStorageResponse. # noqa: E501
|
|
131
|
-
:type: bool
|
|
132
|
-
"""
|
|
133
|
-
|
|
134
|
-
self._indexation_in_progress = indexation_in_progress
|
|
135
|
-
|
|
136
|
-
@property
|
|
137
|
-
def storage_bytes(self) -> 'str':
|
|
138
|
-
"""Gets the storage_bytes of this V1GetUserStorageResponse. # noqa: E501
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
:return: The storage_bytes of this V1GetUserStorageResponse. # noqa: E501
|
|
142
|
-
:rtype: str
|
|
143
|
-
"""
|
|
144
|
-
return self._storage_bytes
|
|
145
|
-
|
|
146
|
-
@storage_bytes.setter
|
|
147
|
-
def storage_bytes(self, storage_bytes: 'str'):
|
|
148
|
-
"""Sets the storage_bytes of this V1GetUserStorageResponse.
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
:param storage_bytes: The storage_bytes of this V1GetUserStorageResponse. # noqa: E501
|
|
152
|
-
:type: str
|
|
153
|
-
"""
|
|
154
|
-
|
|
155
|
-
self._storage_bytes = storage_bytes
|
|
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(V1GetUserStorageResponse, 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: 'V1GetUserStorageResponse') -> bool:
|
|
193
|
-
"""Returns true if both objects are equal"""
|
|
194
|
-
if not isinstance(other, V1GetUserStorageResponse):
|
|
195
|
-
return False
|
|
196
|
-
|
|
197
|
-
return self.__dict__ == other.__dict__
|
|
198
|
-
|
|
199
|
-
def __ne__(self, other: 'V1GetUserStorageResponse') -> bool:
|
|
200
|
-
"""Returns true if both objects are not equal"""
|
|
201
|
-
return not self == other
|