byteplus-python-sdk-v2 3.0.62__py2.py3-none-any.whl → 3.0.63__py2.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.
- {byteplus_python_sdk_v2-3.0.62.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/METADATA +1 -1
- {byteplus_python_sdk_v2-3.0.62.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/RECORD +58 -30
- {byteplus_python_sdk_v2-3.0.62.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/WHEEL +1 -1
- byteplussdkcore/api_client.py +1 -1
- byteplussdkcore/configuration.py +1 -1
- byteplussdkecopartner/__init__.py +10 -0
- byteplussdkecopartner/api/eco_partner_api.py +291 -0
- byteplussdkecopartner/models/__init__.py +10 -0
- byteplussdkecopartner/models/download_bill_request.py +129 -0
- byteplussdkredis/models/configure_node_for_create_enterprise_db_instance_input.py → byteplussdkecopartner/models/download_bill_response.py +23 -23
- byteplussdkecopartner/models/file_for_download_bill_output.py +175 -0
- byteplussdkecopartner/models/initiate_bill_generation_request.py +190 -0
- byteplussdkecopartner/models/initiate_bill_generation_response.py +253 -0
- byteplussdkecopartner/models/item_for_list_billing_items_output.py +461 -0
- byteplussdkecopartner/models/list_billing_items_request.py +240 -0
- byteplussdkecopartner/models/list_billing_items_response.py +253 -0
- byteplussdkecopartner/models/task_for_download_bill_output.py +409 -0
- byteplussdkecopartner/models/total_for_list_billing_items_output.py +305 -0
- byteplussdkredis/__init__.py +6 -4
- byteplussdkredis/api/redis_api.py +97 -97
- byteplussdkredis/models/__init__.py +6 -4
- byteplussdkredis/models/describe_planned_event_impact_detail_request.py +124 -0
- byteplussdkredis/models/describe_planned_event_impact_detail_response.py +123 -0
- byteplussdkredis/models/impact_for_describe_planned_event_impact_detail_output.py +149 -0
- byteplussdkredis/models/impact_item_for_describe_planned_event_impact_detail_output.py +201 -0
- byteplussdkredis/models/impact_summary_for_describe_planned_events_output.py +201 -0
- byteplussdkredis/models/involved_node_for_describe_planned_event_impact_detail_output.py +201 -0
- byteplussdkredis/models/planned_event_for_describe_planned_events_output.py +79 -1
- byteplussdkresourcecenter/__init__.py +16 -0
- byteplussdkresourcecenter/api/resourcecenter_api.py +485 -0
- byteplussdkresourcecenter/models/__init__.py +16 -0
- byteplussdkresourcecenter/models/create_query_request.py +11 -3
- byteplussdkresourcecenter/models/execute_multi_account_sql_query_request.py +211 -0
- byteplussdkresourcecenter/models/execute_multi_account_sql_query_response.py +149 -0
- byteplussdkresourcecenter/models/execute_sql_query_request.py +9 -0
- byteplussdkresourcecenter/models/execute_sql_query_response.py +29 -3
- byteplussdkresourcecenter/models/get_multi_account_resource_center_status_response.py +15 -15
- byteplussdkresourcecenter/models/get_multi_account_resource_description_request.py +204 -0
- byteplussdkresourcecenter/models/get_multi_account_resource_description_response.py +461 -0
- byteplussdkresourcecenter/models/get_resource_description_request.py +177 -0
- byteplussdkresourcecenter/models/get_resource_description_response.py +461 -0
- byteplussdkresourcecenter/models/list_multi_account_resource_relationships_request.py +262 -0
- byteplussdkresourcecenter/models/list_multi_account_resource_relationships_response.py +149 -0
- byteplussdkresourcecenter/models/list_resource_relationships_request.py +235 -0
- byteplussdkresourcecenter/models/list_resource_relationships_response.py +149 -0
- byteplussdkresourcecenter/models/related_type_name_for_list_resource_types_output.py +149 -0
- byteplussdkresourcecenter/models/resource_relationship_for_list_multi_account_resource_relationships_output.py +227 -0
- byteplussdkresourcecenter/models/resource_relationship_for_list_resource_relationships_output.py +227 -0
- byteplussdkresourcecenter/models/resource_type_for_list_resource_types_output.py +55 -3
- byteplussdkresourcecenter/models/scope_for_execute_multi_account_sql_query_input.py +175 -0
- byteplussdkresourcecenter/models/search_multi_account_resources_request.py +20 -0
- byteplussdkresourcecenter/models/search_resources_request.py +6 -0
- byteplussdkredis/models/create_enterprise_db_instance_response.py → byteplussdkresourcecenter/models/tag_for_get_multi_account_resource_description_output.py +35 -35
- byteplussdkredis/models/tag_for_create_enterprise_db_instance_input.py → byteplussdkresourcecenter/models/tag_for_get_resource_description_output.py +14 -14
- byteplussdkresourcecenter/models/update_query_request.py +9 -0
- byteplussdkredis/models/create_enterprise_db_instance_request.py +0 -625
- {byteplus_python_sdk_v2-3.0.62.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/licenses/LICENSE.txt +0 -0
- {byteplus_python_sdk_v2-3.0.62.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/licenses/NOTICE.md +0 -0
- {byteplus_python_sdk_v2-3.0.62.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
eco_partner
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class TaskForDownloadBillOutput(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'account_id': 'int',
|
|
37
|
+
'bill_period': 'str',
|
|
38
|
+
'bill_period_end': 'str',
|
|
39
|
+
'bill_period_start': 'str',
|
|
40
|
+
'bill_type': 'str',
|
|
41
|
+
'completed_at': 'str',
|
|
42
|
+
'created_at': 'str',
|
|
43
|
+
'export_type': 'str',
|
|
44
|
+
'failure_reason': 'str',
|
|
45
|
+
'files': 'list[FileForDownloadBillOutput]',
|
|
46
|
+
'status': 'str',
|
|
47
|
+
'task_id': 'str'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
attribute_map = {
|
|
51
|
+
'account_id': 'AccountId',
|
|
52
|
+
'bill_period': 'BillPeriod',
|
|
53
|
+
'bill_period_end': 'BillPeriodEnd',
|
|
54
|
+
'bill_period_start': 'BillPeriodStart',
|
|
55
|
+
'bill_type': 'BillType',
|
|
56
|
+
'completed_at': 'CompletedAt',
|
|
57
|
+
'created_at': 'CreatedAt',
|
|
58
|
+
'export_type': 'ExportType',
|
|
59
|
+
'failure_reason': 'FailureReason',
|
|
60
|
+
'files': 'Files',
|
|
61
|
+
'status': 'Status',
|
|
62
|
+
'task_id': 'TaskId'
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
def __init__(self, account_id=None, bill_period=None, bill_period_end=None, bill_period_start=None, bill_type=None, completed_at=None, created_at=None, export_type=None, failure_reason=None, files=None, status=None, task_id=None, _configuration=None): # noqa: E501
|
|
66
|
+
"""TaskForDownloadBillOutput - a model defined in Swagger""" # noqa: E501
|
|
67
|
+
if _configuration is None:
|
|
68
|
+
_configuration = Configuration()
|
|
69
|
+
self._configuration = _configuration
|
|
70
|
+
|
|
71
|
+
self._account_id = None
|
|
72
|
+
self._bill_period = None
|
|
73
|
+
self._bill_period_end = None
|
|
74
|
+
self._bill_period_start = None
|
|
75
|
+
self._bill_type = None
|
|
76
|
+
self._completed_at = None
|
|
77
|
+
self._created_at = None
|
|
78
|
+
self._export_type = None
|
|
79
|
+
self._failure_reason = None
|
|
80
|
+
self._files = None
|
|
81
|
+
self._status = None
|
|
82
|
+
self._task_id = None
|
|
83
|
+
self.discriminator = None
|
|
84
|
+
|
|
85
|
+
if account_id is not None:
|
|
86
|
+
self.account_id = account_id
|
|
87
|
+
if bill_period is not None:
|
|
88
|
+
self.bill_period = bill_period
|
|
89
|
+
if bill_period_end is not None:
|
|
90
|
+
self.bill_period_end = bill_period_end
|
|
91
|
+
if bill_period_start is not None:
|
|
92
|
+
self.bill_period_start = bill_period_start
|
|
93
|
+
if bill_type is not None:
|
|
94
|
+
self.bill_type = bill_type
|
|
95
|
+
if completed_at is not None:
|
|
96
|
+
self.completed_at = completed_at
|
|
97
|
+
if created_at is not None:
|
|
98
|
+
self.created_at = created_at
|
|
99
|
+
if export_type is not None:
|
|
100
|
+
self.export_type = export_type
|
|
101
|
+
if failure_reason is not None:
|
|
102
|
+
self.failure_reason = failure_reason
|
|
103
|
+
if files is not None:
|
|
104
|
+
self.files = files
|
|
105
|
+
if status is not None:
|
|
106
|
+
self.status = status
|
|
107
|
+
if task_id is not None:
|
|
108
|
+
self.task_id = task_id
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def account_id(self):
|
|
112
|
+
"""Gets the account_id of this TaskForDownloadBillOutput. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The account_id of this TaskForDownloadBillOutput. # noqa: E501
|
|
116
|
+
:rtype: int
|
|
117
|
+
"""
|
|
118
|
+
return self._account_id
|
|
119
|
+
|
|
120
|
+
@account_id.setter
|
|
121
|
+
def account_id(self, account_id):
|
|
122
|
+
"""Sets the account_id of this TaskForDownloadBillOutput.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param account_id: The account_id of this TaskForDownloadBillOutput. # noqa: E501
|
|
126
|
+
:type: int
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._account_id = account_id
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
def bill_period(self):
|
|
133
|
+
"""Gets the bill_period of this TaskForDownloadBillOutput. # noqa: E501
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
:return: The bill_period of this TaskForDownloadBillOutput. # noqa: E501
|
|
137
|
+
:rtype: str
|
|
138
|
+
"""
|
|
139
|
+
return self._bill_period
|
|
140
|
+
|
|
141
|
+
@bill_period.setter
|
|
142
|
+
def bill_period(self, bill_period):
|
|
143
|
+
"""Sets the bill_period of this TaskForDownloadBillOutput.
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
:param bill_period: The bill_period of this TaskForDownloadBillOutput. # noqa: E501
|
|
147
|
+
:type: str
|
|
148
|
+
"""
|
|
149
|
+
|
|
150
|
+
self._bill_period = bill_period
|
|
151
|
+
|
|
152
|
+
@property
|
|
153
|
+
def bill_period_end(self):
|
|
154
|
+
"""Gets the bill_period_end of this TaskForDownloadBillOutput. # noqa: E501
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
:return: The bill_period_end of this TaskForDownloadBillOutput. # noqa: E501
|
|
158
|
+
:rtype: str
|
|
159
|
+
"""
|
|
160
|
+
return self._bill_period_end
|
|
161
|
+
|
|
162
|
+
@bill_period_end.setter
|
|
163
|
+
def bill_period_end(self, bill_period_end):
|
|
164
|
+
"""Sets the bill_period_end of this TaskForDownloadBillOutput.
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
:param bill_period_end: The bill_period_end of this TaskForDownloadBillOutput. # noqa: E501
|
|
168
|
+
:type: str
|
|
169
|
+
"""
|
|
170
|
+
|
|
171
|
+
self._bill_period_end = bill_period_end
|
|
172
|
+
|
|
173
|
+
@property
|
|
174
|
+
def bill_period_start(self):
|
|
175
|
+
"""Gets the bill_period_start of this TaskForDownloadBillOutput. # noqa: E501
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
:return: The bill_period_start of this TaskForDownloadBillOutput. # noqa: E501
|
|
179
|
+
:rtype: str
|
|
180
|
+
"""
|
|
181
|
+
return self._bill_period_start
|
|
182
|
+
|
|
183
|
+
@bill_period_start.setter
|
|
184
|
+
def bill_period_start(self, bill_period_start):
|
|
185
|
+
"""Sets the bill_period_start of this TaskForDownloadBillOutput.
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
:param bill_period_start: The bill_period_start of this TaskForDownloadBillOutput. # noqa: E501
|
|
189
|
+
:type: str
|
|
190
|
+
"""
|
|
191
|
+
|
|
192
|
+
self._bill_period_start = bill_period_start
|
|
193
|
+
|
|
194
|
+
@property
|
|
195
|
+
def bill_type(self):
|
|
196
|
+
"""Gets the bill_type of this TaskForDownloadBillOutput. # noqa: E501
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
:return: The bill_type of this TaskForDownloadBillOutput. # noqa: E501
|
|
200
|
+
:rtype: str
|
|
201
|
+
"""
|
|
202
|
+
return self._bill_type
|
|
203
|
+
|
|
204
|
+
@bill_type.setter
|
|
205
|
+
def bill_type(self, bill_type):
|
|
206
|
+
"""Sets the bill_type of this TaskForDownloadBillOutput.
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
:param bill_type: The bill_type of this TaskForDownloadBillOutput. # noqa: E501
|
|
210
|
+
:type: str
|
|
211
|
+
"""
|
|
212
|
+
|
|
213
|
+
self._bill_type = bill_type
|
|
214
|
+
|
|
215
|
+
@property
|
|
216
|
+
def completed_at(self):
|
|
217
|
+
"""Gets the completed_at of this TaskForDownloadBillOutput. # noqa: E501
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
:return: The completed_at of this TaskForDownloadBillOutput. # noqa: E501
|
|
221
|
+
:rtype: str
|
|
222
|
+
"""
|
|
223
|
+
return self._completed_at
|
|
224
|
+
|
|
225
|
+
@completed_at.setter
|
|
226
|
+
def completed_at(self, completed_at):
|
|
227
|
+
"""Sets the completed_at of this TaskForDownloadBillOutput.
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
:param completed_at: The completed_at of this TaskForDownloadBillOutput. # noqa: E501
|
|
231
|
+
:type: str
|
|
232
|
+
"""
|
|
233
|
+
|
|
234
|
+
self._completed_at = completed_at
|
|
235
|
+
|
|
236
|
+
@property
|
|
237
|
+
def created_at(self):
|
|
238
|
+
"""Gets the created_at of this TaskForDownloadBillOutput. # noqa: E501
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
:return: The created_at of this TaskForDownloadBillOutput. # noqa: E501
|
|
242
|
+
:rtype: str
|
|
243
|
+
"""
|
|
244
|
+
return self._created_at
|
|
245
|
+
|
|
246
|
+
@created_at.setter
|
|
247
|
+
def created_at(self, created_at):
|
|
248
|
+
"""Sets the created_at of this TaskForDownloadBillOutput.
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
:param created_at: The created_at of this TaskForDownloadBillOutput. # noqa: E501
|
|
252
|
+
:type: str
|
|
253
|
+
"""
|
|
254
|
+
|
|
255
|
+
self._created_at = created_at
|
|
256
|
+
|
|
257
|
+
@property
|
|
258
|
+
def export_type(self):
|
|
259
|
+
"""Gets the export_type of this TaskForDownloadBillOutput. # noqa: E501
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
:return: The export_type of this TaskForDownloadBillOutput. # noqa: E501
|
|
263
|
+
:rtype: str
|
|
264
|
+
"""
|
|
265
|
+
return self._export_type
|
|
266
|
+
|
|
267
|
+
@export_type.setter
|
|
268
|
+
def export_type(self, export_type):
|
|
269
|
+
"""Sets the export_type of this TaskForDownloadBillOutput.
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
:param export_type: The export_type of this TaskForDownloadBillOutput. # noqa: E501
|
|
273
|
+
:type: str
|
|
274
|
+
"""
|
|
275
|
+
|
|
276
|
+
self._export_type = export_type
|
|
277
|
+
|
|
278
|
+
@property
|
|
279
|
+
def failure_reason(self):
|
|
280
|
+
"""Gets the failure_reason of this TaskForDownloadBillOutput. # noqa: E501
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
:return: The failure_reason of this TaskForDownloadBillOutput. # noqa: E501
|
|
284
|
+
:rtype: str
|
|
285
|
+
"""
|
|
286
|
+
return self._failure_reason
|
|
287
|
+
|
|
288
|
+
@failure_reason.setter
|
|
289
|
+
def failure_reason(self, failure_reason):
|
|
290
|
+
"""Sets the failure_reason of this TaskForDownloadBillOutput.
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
:param failure_reason: The failure_reason of this TaskForDownloadBillOutput. # noqa: E501
|
|
294
|
+
:type: str
|
|
295
|
+
"""
|
|
296
|
+
|
|
297
|
+
self._failure_reason = failure_reason
|
|
298
|
+
|
|
299
|
+
@property
|
|
300
|
+
def files(self):
|
|
301
|
+
"""Gets the files of this TaskForDownloadBillOutput. # noqa: E501
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
:return: The files of this TaskForDownloadBillOutput. # noqa: E501
|
|
305
|
+
:rtype: list[FileForDownloadBillOutput]
|
|
306
|
+
"""
|
|
307
|
+
return self._files
|
|
308
|
+
|
|
309
|
+
@files.setter
|
|
310
|
+
def files(self, files):
|
|
311
|
+
"""Sets the files of this TaskForDownloadBillOutput.
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
:param files: The files of this TaskForDownloadBillOutput. # noqa: E501
|
|
315
|
+
:type: list[FileForDownloadBillOutput]
|
|
316
|
+
"""
|
|
317
|
+
|
|
318
|
+
self._files = files
|
|
319
|
+
|
|
320
|
+
@property
|
|
321
|
+
def status(self):
|
|
322
|
+
"""Gets the status of this TaskForDownloadBillOutput. # noqa: E501
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
:return: The status of this TaskForDownloadBillOutput. # noqa: E501
|
|
326
|
+
:rtype: str
|
|
327
|
+
"""
|
|
328
|
+
return self._status
|
|
329
|
+
|
|
330
|
+
@status.setter
|
|
331
|
+
def status(self, status):
|
|
332
|
+
"""Sets the status of this TaskForDownloadBillOutput.
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
:param status: The status of this TaskForDownloadBillOutput. # noqa: E501
|
|
336
|
+
:type: str
|
|
337
|
+
"""
|
|
338
|
+
|
|
339
|
+
self._status = status
|
|
340
|
+
|
|
341
|
+
@property
|
|
342
|
+
def task_id(self):
|
|
343
|
+
"""Gets the task_id of this TaskForDownloadBillOutput. # noqa: E501
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
:return: The task_id of this TaskForDownloadBillOutput. # noqa: E501
|
|
347
|
+
:rtype: str
|
|
348
|
+
"""
|
|
349
|
+
return self._task_id
|
|
350
|
+
|
|
351
|
+
@task_id.setter
|
|
352
|
+
def task_id(self, task_id):
|
|
353
|
+
"""Sets the task_id of this TaskForDownloadBillOutput.
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
:param task_id: The task_id of this TaskForDownloadBillOutput. # noqa: E501
|
|
357
|
+
:type: str
|
|
358
|
+
"""
|
|
359
|
+
|
|
360
|
+
self._task_id = task_id
|
|
361
|
+
|
|
362
|
+
def to_dict(self):
|
|
363
|
+
"""Returns the model properties as a dict"""
|
|
364
|
+
result = {}
|
|
365
|
+
|
|
366
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
367
|
+
value = getattr(self, attr)
|
|
368
|
+
if isinstance(value, list):
|
|
369
|
+
result[attr] = list(map(
|
|
370
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
371
|
+
value
|
|
372
|
+
))
|
|
373
|
+
elif hasattr(value, "to_dict"):
|
|
374
|
+
result[attr] = value.to_dict()
|
|
375
|
+
elif isinstance(value, dict):
|
|
376
|
+
result[attr] = dict(map(
|
|
377
|
+
lambda item: (item[0], item[1].to_dict())
|
|
378
|
+
if hasattr(item[1], "to_dict") else item,
|
|
379
|
+
value.items()
|
|
380
|
+
))
|
|
381
|
+
else:
|
|
382
|
+
result[attr] = value
|
|
383
|
+
if issubclass(TaskForDownloadBillOutput, dict):
|
|
384
|
+
for key, value in self.items():
|
|
385
|
+
result[key] = value
|
|
386
|
+
|
|
387
|
+
return result
|
|
388
|
+
|
|
389
|
+
def to_str(self):
|
|
390
|
+
"""Returns the string representation of the model"""
|
|
391
|
+
return pprint.pformat(self.to_dict())
|
|
392
|
+
|
|
393
|
+
def __repr__(self):
|
|
394
|
+
"""For `print` and `pprint`"""
|
|
395
|
+
return self.to_str()
|
|
396
|
+
|
|
397
|
+
def __eq__(self, other):
|
|
398
|
+
"""Returns true if both objects are equal"""
|
|
399
|
+
if not isinstance(other, TaskForDownloadBillOutput):
|
|
400
|
+
return False
|
|
401
|
+
|
|
402
|
+
return self.to_dict() == other.to_dict()
|
|
403
|
+
|
|
404
|
+
def __ne__(self, other):
|
|
405
|
+
"""Returns true if both objects are not equal"""
|
|
406
|
+
if not isinstance(other, TaskForDownloadBillOutput):
|
|
407
|
+
return True
|
|
408
|
+
|
|
409
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
eco_partner
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class TotalForListBillingItemsOutput(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'coupon_amount': 'str',
|
|
37
|
+
'currency': 'str',
|
|
38
|
+
'discount_bill_amount': 'str',
|
|
39
|
+
'original_bill_amount': 'str',
|
|
40
|
+
'paid_amount': 'str',
|
|
41
|
+
'payable_amount': 'str',
|
|
42
|
+
'settle_payable_amount': 'str',
|
|
43
|
+
'settlement_currency': 'str'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
'coupon_amount': 'CouponAmount',
|
|
48
|
+
'currency': 'Currency',
|
|
49
|
+
'discount_bill_amount': 'DiscountBillAmount',
|
|
50
|
+
'original_bill_amount': 'OriginalBillAmount',
|
|
51
|
+
'paid_amount': 'PaidAmount',
|
|
52
|
+
'payable_amount': 'PayableAmount',
|
|
53
|
+
'settle_payable_amount': 'SettlePayableAmount',
|
|
54
|
+
'settlement_currency': 'SettlementCurrency'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, coupon_amount=None, currency=None, discount_bill_amount=None, original_bill_amount=None, paid_amount=None, payable_amount=None, settle_payable_amount=None, settlement_currency=None, _configuration=None): # noqa: E501
|
|
58
|
+
"""TotalForListBillingItemsOutput - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
if _configuration is None:
|
|
60
|
+
_configuration = Configuration()
|
|
61
|
+
self._configuration = _configuration
|
|
62
|
+
|
|
63
|
+
self._coupon_amount = None
|
|
64
|
+
self._currency = None
|
|
65
|
+
self._discount_bill_amount = None
|
|
66
|
+
self._original_bill_amount = None
|
|
67
|
+
self._paid_amount = None
|
|
68
|
+
self._payable_amount = None
|
|
69
|
+
self._settle_payable_amount = None
|
|
70
|
+
self._settlement_currency = None
|
|
71
|
+
self.discriminator = None
|
|
72
|
+
|
|
73
|
+
if coupon_amount is not None:
|
|
74
|
+
self.coupon_amount = coupon_amount
|
|
75
|
+
if currency is not None:
|
|
76
|
+
self.currency = currency
|
|
77
|
+
if discount_bill_amount is not None:
|
|
78
|
+
self.discount_bill_amount = discount_bill_amount
|
|
79
|
+
if original_bill_amount is not None:
|
|
80
|
+
self.original_bill_amount = original_bill_amount
|
|
81
|
+
if paid_amount is not None:
|
|
82
|
+
self.paid_amount = paid_amount
|
|
83
|
+
if payable_amount is not None:
|
|
84
|
+
self.payable_amount = payable_amount
|
|
85
|
+
if settle_payable_amount is not None:
|
|
86
|
+
self.settle_payable_amount = settle_payable_amount
|
|
87
|
+
if settlement_currency is not None:
|
|
88
|
+
self.settlement_currency = settlement_currency
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def coupon_amount(self):
|
|
92
|
+
"""Gets the coupon_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
:return: The coupon_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
96
|
+
:rtype: str
|
|
97
|
+
"""
|
|
98
|
+
return self._coupon_amount
|
|
99
|
+
|
|
100
|
+
@coupon_amount.setter
|
|
101
|
+
def coupon_amount(self, coupon_amount):
|
|
102
|
+
"""Sets the coupon_amount of this TotalForListBillingItemsOutput.
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
:param coupon_amount: The coupon_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
106
|
+
:type: str
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
self._coupon_amount = coupon_amount
|
|
110
|
+
|
|
111
|
+
@property
|
|
112
|
+
def currency(self):
|
|
113
|
+
"""Gets the currency of this TotalForListBillingItemsOutput. # noqa: E501
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
:return: The currency of this TotalForListBillingItemsOutput. # noqa: E501
|
|
117
|
+
:rtype: str
|
|
118
|
+
"""
|
|
119
|
+
return self._currency
|
|
120
|
+
|
|
121
|
+
@currency.setter
|
|
122
|
+
def currency(self, currency):
|
|
123
|
+
"""Sets the currency of this TotalForListBillingItemsOutput.
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
:param currency: The currency of this TotalForListBillingItemsOutput. # noqa: E501
|
|
127
|
+
:type: str
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
self._currency = currency
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
def discount_bill_amount(self):
|
|
134
|
+
"""Gets the discount_bill_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
:return: The discount_bill_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
138
|
+
:rtype: str
|
|
139
|
+
"""
|
|
140
|
+
return self._discount_bill_amount
|
|
141
|
+
|
|
142
|
+
@discount_bill_amount.setter
|
|
143
|
+
def discount_bill_amount(self, discount_bill_amount):
|
|
144
|
+
"""Sets the discount_bill_amount of this TotalForListBillingItemsOutput.
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
:param discount_bill_amount: The discount_bill_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
148
|
+
:type: str
|
|
149
|
+
"""
|
|
150
|
+
|
|
151
|
+
self._discount_bill_amount = discount_bill_amount
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
def original_bill_amount(self):
|
|
155
|
+
"""Gets the original_bill_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
:return: The original_bill_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
159
|
+
:rtype: str
|
|
160
|
+
"""
|
|
161
|
+
return self._original_bill_amount
|
|
162
|
+
|
|
163
|
+
@original_bill_amount.setter
|
|
164
|
+
def original_bill_amount(self, original_bill_amount):
|
|
165
|
+
"""Sets the original_bill_amount of this TotalForListBillingItemsOutput.
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
:param original_bill_amount: The original_bill_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
169
|
+
:type: str
|
|
170
|
+
"""
|
|
171
|
+
|
|
172
|
+
self._original_bill_amount = original_bill_amount
|
|
173
|
+
|
|
174
|
+
@property
|
|
175
|
+
def paid_amount(self):
|
|
176
|
+
"""Gets the paid_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
:return: The paid_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
180
|
+
:rtype: str
|
|
181
|
+
"""
|
|
182
|
+
return self._paid_amount
|
|
183
|
+
|
|
184
|
+
@paid_amount.setter
|
|
185
|
+
def paid_amount(self, paid_amount):
|
|
186
|
+
"""Sets the paid_amount of this TotalForListBillingItemsOutput.
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
:param paid_amount: The paid_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
190
|
+
:type: str
|
|
191
|
+
"""
|
|
192
|
+
|
|
193
|
+
self._paid_amount = paid_amount
|
|
194
|
+
|
|
195
|
+
@property
|
|
196
|
+
def payable_amount(self):
|
|
197
|
+
"""Gets the payable_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
:return: The payable_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
201
|
+
:rtype: str
|
|
202
|
+
"""
|
|
203
|
+
return self._payable_amount
|
|
204
|
+
|
|
205
|
+
@payable_amount.setter
|
|
206
|
+
def payable_amount(self, payable_amount):
|
|
207
|
+
"""Sets the payable_amount of this TotalForListBillingItemsOutput.
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
:param payable_amount: The payable_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
211
|
+
:type: str
|
|
212
|
+
"""
|
|
213
|
+
|
|
214
|
+
self._payable_amount = payable_amount
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
def settle_payable_amount(self):
|
|
218
|
+
"""Gets the settle_payable_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
:return: The settle_payable_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
222
|
+
:rtype: str
|
|
223
|
+
"""
|
|
224
|
+
return self._settle_payable_amount
|
|
225
|
+
|
|
226
|
+
@settle_payable_amount.setter
|
|
227
|
+
def settle_payable_amount(self, settle_payable_amount):
|
|
228
|
+
"""Sets the settle_payable_amount of this TotalForListBillingItemsOutput.
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
:param settle_payable_amount: The settle_payable_amount of this TotalForListBillingItemsOutput. # noqa: E501
|
|
232
|
+
:type: str
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
self._settle_payable_amount = settle_payable_amount
|
|
236
|
+
|
|
237
|
+
@property
|
|
238
|
+
def settlement_currency(self):
|
|
239
|
+
"""Gets the settlement_currency of this TotalForListBillingItemsOutput. # noqa: E501
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
:return: The settlement_currency of this TotalForListBillingItemsOutput. # noqa: E501
|
|
243
|
+
:rtype: str
|
|
244
|
+
"""
|
|
245
|
+
return self._settlement_currency
|
|
246
|
+
|
|
247
|
+
@settlement_currency.setter
|
|
248
|
+
def settlement_currency(self, settlement_currency):
|
|
249
|
+
"""Sets the settlement_currency of this TotalForListBillingItemsOutput.
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
:param settlement_currency: The settlement_currency of this TotalForListBillingItemsOutput. # noqa: E501
|
|
253
|
+
:type: str
|
|
254
|
+
"""
|
|
255
|
+
|
|
256
|
+
self._settlement_currency = settlement_currency
|
|
257
|
+
|
|
258
|
+
def to_dict(self):
|
|
259
|
+
"""Returns the model properties as a dict"""
|
|
260
|
+
result = {}
|
|
261
|
+
|
|
262
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
263
|
+
value = getattr(self, attr)
|
|
264
|
+
if isinstance(value, list):
|
|
265
|
+
result[attr] = list(map(
|
|
266
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
267
|
+
value
|
|
268
|
+
))
|
|
269
|
+
elif hasattr(value, "to_dict"):
|
|
270
|
+
result[attr] = value.to_dict()
|
|
271
|
+
elif isinstance(value, dict):
|
|
272
|
+
result[attr] = dict(map(
|
|
273
|
+
lambda item: (item[0], item[1].to_dict())
|
|
274
|
+
if hasattr(item[1], "to_dict") else item,
|
|
275
|
+
value.items()
|
|
276
|
+
))
|
|
277
|
+
else:
|
|
278
|
+
result[attr] = value
|
|
279
|
+
if issubclass(TotalForListBillingItemsOutput, dict):
|
|
280
|
+
for key, value in self.items():
|
|
281
|
+
result[key] = value
|
|
282
|
+
|
|
283
|
+
return result
|
|
284
|
+
|
|
285
|
+
def to_str(self):
|
|
286
|
+
"""Returns the string representation of the model"""
|
|
287
|
+
return pprint.pformat(self.to_dict())
|
|
288
|
+
|
|
289
|
+
def __repr__(self):
|
|
290
|
+
"""For `print` and `pprint`"""
|
|
291
|
+
return self.to_str()
|
|
292
|
+
|
|
293
|
+
def __eq__(self, other):
|
|
294
|
+
"""Returns true if both objects are equal"""
|
|
295
|
+
if not isinstance(other, TotalForListBillingItemsOutput):
|
|
296
|
+
return False
|
|
297
|
+
|
|
298
|
+
return self.to_dict() == other.to_dict()
|
|
299
|
+
|
|
300
|
+
def __ne__(self, other):
|
|
301
|
+
"""Returns true if both objects are not equal"""
|
|
302
|
+
if not isinstance(other, TotalForListBillingItemsOutput):
|
|
303
|
+
return True
|
|
304
|
+
|
|
305
|
+
return self.to_dict() != other.to_dict()
|