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
|
@@ -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,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 V1ReservationBillingSession(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
|
-
'cluster_id': 'str',
|
|
45
|
-
'cost': 'float',
|
|
46
|
-
'end_time': 'datetime',
|
|
47
|
-
'machine_type': 'str',
|
|
48
|
-
'num_instances': 'str',
|
|
49
|
-
'project_id': 'str',
|
|
50
|
-
'start_time': 'datetime'
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
attribute_map = {
|
|
54
|
-
'cluster_id': 'clusterId',
|
|
55
|
-
'cost': 'cost',
|
|
56
|
-
'end_time': 'endTime',
|
|
57
|
-
'machine_type': 'machineType',
|
|
58
|
-
'num_instances': 'numInstances',
|
|
59
|
-
'project_id': 'projectId',
|
|
60
|
-
'start_time': 'startTime'
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
def __init__(self, cluster_id: 'str' =None, cost: 'float' =None, end_time: 'datetime' =None, machine_type: 'str' =None, num_instances: 'str' =None, project_id: 'str' =None, start_time: 'datetime' =None): # noqa: E501
|
|
64
|
-
"""V1ReservationBillingSession - a model defined in Swagger""" # noqa: E501
|
|
65
|
-
self._cluster_id = None
|
|
66
|
-
self._cost = None
|
|
67
|
-
self._end_time = None
|
|
68
|
-
self._machine_type = None
|
|
69
|
-
self._num_instances = None
|
|
70
|
-
self._project_id = None
|
|
71
|
-
self._start_time = None
|
|
72
|
-
self.discriminator = None
|
|
73
|
-
if cluster_id is not None:
|
|
74
|
-
self.cluster_id = cluster_id
|
|
75
|
-
if cost is not None:
|
|
76
|
-
self.cost = cost
|
|
77
|
-
if end_time is not None:
|
|
78
|
-
self.end_time = end_time
|
|
79
|
-
if machine_type is not None:
|
|
80
|
-
self.machine_type = machine_type
|
|
81
|
-
if num_instances is not None:
|
|
82
|
-
self.num_instances = num_instances
|
|
83
|
-
if project_id is not None:
|
|
84
|
-
self.project_id = project_id
|
|
85
|
-
if start_time is not None:
|
|
86
|
-
self.start_time = start_time
|
|
87
|
-
|
|
88
|
-
@property
|
|
89
|
-
def cluster_id(self) -> 'str':
|
|
90
|
-
"""Gets the cluster_id of this V1ReservationBillingSession. # noqa: E501
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
:return: The cluster_id of this V1ReservationBillingSession. # noqa: E501
|
|
94
|
-
:rtype: str
|
|
95
|
-
"""
|
|
96
|
-
return self._cluster_id
|
|
97
|
-
|
|
98
|
-
@cluster_id.setter
|
|
99
|
-
def cluster_id(self, cluster_id: 'str'):
|
|
100
|
-
"""Sets the cluster_id of this V1ReservationBillingSession.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
:param cluster_id: The cluster_id of this V1ReservationBillingSession. # noqa: E501
|
|
104
|
-
:type: str
|
|
105
|
-
"""
|
|
106
|
-
|
|
107
|
-
self._cluster_id = cluster_id
|
|
108
|
-
|
|
109
|
-
@property
|
|
110
|
-
def cost(self) -> 'float':
|
|
111
|
-
"""Gets the cost of this V1ReservationBillingSession. # noqa: E501
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
:return: The cost of this V1ReservationBillingSession. # noqa: E501
|
|
115
|
-
:rtype: float
|
|
116
|
-
"""
|
|
117
|
-
return self._cost
|
|
118
|
-
|
|
119
|
-
@cost.setter
|
|
120
|
-
def cost(self, cost: 'float'):
|
|
121
|
-
"""Sets the cost of this V1ReservationBillingSession.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
:param cost: The cost of this V1ReservationBillingSession. # noqa: E501
|
|
125
|
-
:type: float
|
|
126
|
-
"""
|
|
127
|
-
|
|
128
|
-
self._cost = cost
|
|
129
|
-
|
|
130
|
-
@property
|
|
131
|
-
def end_time(self) -> 'datetime':
|
|
132
|
-
"""Gets the end_time of this V1ReservationBillingSession. # noqa: E501
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
:return: The end_time of this V1ReservationBillingSession. # noqa: E501
|
|
136
|
-
:rtype: datetime
|
|
137
|
-
"""
|
|
138
|
-
return self._end_time
|
|
139
|
-
|
|
140
|
-
@end_time.setter
|
|
141
|
-
def end_time(self, end_time: 'datetime'):
|
|
142
|
-
"""Sets the end_time of this V1ReservationBillingSession.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
:param end_time: The end_time of this V1ReservationBillingSession. # noqa: E501
|
|
146
|
-
:type: datetime
|
|
147
|
-
"""
|
|
148
|
-
|
|
149
|
-
self._end_time = end_time
|
|
150
|
-
|
|
151
|
-
@property
|
|
152
|
-
def machine_type(self) -> 'str':
|
|
153
|
-
"""Gets the machine_type of this V1ReservationBillingSession. # noqa: E501
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
:return: The machine_type of this V1ReservationBillingSession. # noqa: E501
|
|
157
|
-
:rtype: str
|
|
158
|
-
"""
|
|
159
|
-
return self._machine_type
|
|
160
|
-
|
|
161
|
-
@machine_type.setter
|
|
162
|
-
def machine_type(self, machine_type: 'str'):
|
|
163
|
-
"""Sets the machine_type of this V1ReservationBillingSession.
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
:param machine_type: The machine_type of this V1ReservationBillingSession. # noqa: E501
|
|
167
|
-
:type: str
|
|
168
|
-
"""
|
|
169
|
-
|
|
170
|
-
self._machine_type = machine_type
|
|
171
|
-
|
|
172
|
-
@property
|
|
173
|
-
def num_instances(self) -> 'str':
|
|
174
|
-
"""Gets the num_instances of this V1ReservationBillingSession. # noqa: E501
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
:return: The num_instances of this V1ReservationBillingSession. # noqa: E501
|
|
178
|
-
:rtype: str
|
|
179
|
-
"""
|
|
180
|
-
return self._num_instances
|
|
181
|
-
|
|
182
|
-
@num_instances.setter
|
|
183
|
-
def num_instances(self, num_instances: 'str'):
|
|
184
|
-
"""Sets the num_instances of this V1ReservationBillingSession.
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
:param num_instances: The num_instances of this V1ReservationBillingSession. # noqa: E501
|
|
188
|
-
:type: str
|
|
189
|
-
"""
|
|
190
|
-
|
|
191
|
-
self._num_instances = num_instances
|
|
192
|
-
|
|
193
|
-
@property
|
|
194
|
-
def project_id(self) -> 'str':
|
|
195
|
-
"""Gets the project_id of this V1ReservationBillingSession. # noqa: E501
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
:return: The project_id of this V1ReservationBillingSession. # noqa: E501
|
|
199
|
-
:rtype: str
|
|
200
|
-
"""
|
|
201
|
-
return self._project_id
|
|
202
|
-
|
|
203
|
-
@project_id.setter
|
|
204
|
-
def project_id(self, project_id: 'str'):
|
|
205
|
-
"""Sets the project_id of this V1ReservationBillingSession.
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
:param project_id: The project_id of this V1ReservationBillingSession. # noqa: E501
|
|
209
|
-
:type: str
|
|
210
|
-
"""
|
|
211
|
-
|
|
212
|
-
self._project_id = project_id
|
|
213
|
-
|
|
214
|
-
@property
|
|
215
|
-
def start_time(self) -> 'datetime':
|
|
216
|
-
"""Gets the start_time of this V1ReservationBillingSession. # noqa: E501
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
:return: The start_time of this V1ReservationBillingSession. # noqa: E501
|
|
220
|
-
:rtype: datetime
|
|
221
|
-
"""
|
|
222
|
-
return self._start_time
|
|
223
|
-
|
|
224
|
-
@start_time.setter
|
|
225
|
-
def start_time(self, start_time: 'datetime'):
|
|
226
|
-
"""Sets the start_time of this V1ReservationBillingSession.
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
:param start_time: The start_time of this V1ReservationBillingSession. # noqa: E501
|
|
230
|
-
:type: datetime
|
|
231
|
-
"""
|
|
232
|
-
|
|
233
|
-
self._start_time = start_time
|
|
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(V1ReservationBillingSession, 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: 'V1ReservationBillingSession') -> bool:
|
|
271
|
-
"""Returns true if both objects are equal"""
|
|
272
|
-
if not isinstance(other, V1ReservationBillingSession):
|
|
273
|
-
return False
|
|
274
|
-
|
|
275
|
-
return self.__dict__ == other.__dict__
|
|
276
|
-
|
|
277
|
-
def __ne__(self, other: 'V1ReservationBillingSession') -> bool:
|
|
278
|
-
"""Returns true if both objects are not equal"""
|
|
279
|
-
return not self == other
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|