volcengine-python-sdk 4.0.25__py2.py3-none-any.whl → 4.0.26__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.
Potentially problematic release.
This version of volcengine-python-sdk might be problematic. Click here for more details.
- {volcengine_python_sdk-4.0.25.dist-info → volcengine_python_sdk-4.0.26.dist-info}/METADATA +1 -1
- {volcengine_python_sdk-4.0.25.dist-info → volcengine_python_sdk-4.0.26.dist-info}/RECORD +76 -11
- volcenginesdkbilling/__init__.py +65 -0
- volcenginesdkbilling/api/billing_api.py +1662 -13
- volcenginesdkbilling/models/__init__.py +65 -0
- volcenginesdkbilling/models/billing_mode_info_list_for_list_budget_filter_billing_mode_output.py +149 -0
- volcenginesdkbilling/models/budget_alert_message_detail_list_for_query_budget_detail_output.py +279 -0
- volcenginesdkbilling/models/budget_alert_message_for_create_budget_input.py +201 -0
- volcenginesdkbilling/models/budget_alert_message_for_update_budget_input.py +201 -0
- volcenginesdkbilling/models/budget_alert_rule_for_create_budget_input.py +215 -0
- volcenginesdkbilling/models/budget_alert_rule_for_update_budget_input.py +215 -0
- volcenginesdkbilling/models/budget_alert_rule_list_for_query_budget_detail_output.py +201 -0
- volcenginesdkbilling/models/budget_amount_for_create_budget_input.py +175 -0
- volcenginesdkbilling/models/budget_amount_for_update_budget_input.py +175 -0
- volcenginesdkbilling/models/budget_amount_list_for_list_budget_amount_by_budget_id_output.py +253 -0
- volcenginesdkbilling/models/budget_for_create_budget_input.py +274 -0
- volcenginesdkbilling/models/budget_for_query_budget_detail_output.py +253 -0
- volcenginesdkbilling/models/budget_for_update_budget_input.py +274 -0
- volcenginesdkbilling/models/budget_list_for_list_budget_output.py +357 -0
- volcenginesdkbilling/models/budget_range_billing_mode_for_query_budget_detail_output.py +149 -0
- volcenginesdkbilling/models/budget_range_for_create_budget_input.py +331 -0
- volcenginesdkbilling/models/budget_range_for_update_budget_input.py +331 -0
- volcenginesdkbilling/models/budget_range_info_for_query_budget_detail_output.py +331 -0
- volcenginesdkbilling/models/budget_range_owner_for_query_budget_detail_output.py +149 -0
- volcenginesdkbilling/models/budget_range_payer_for_query_budget_detail_output.py +149 -0
- volcenginesdkbilling/models/budget_range_product_for_query_budget_detail_output.py +149 -0
- volcenginesdkbilling/models/budget_range_region_for_query_budget_detail_output.py +149 -0
- volcenginesdkbilling/models/budget_range_subject_for_query_budget_detail_output.py +149 -0
- volcenginesdkbilling/models/budget_range_zone_for_query_budget_detail_output.py +149 -0
- volcenginesdkbilling/models/create_budget_request.py +227 -0
- volcenginesdkbilling/models/create_budget_response.py +123 -0
- volcenginesdkbilling/models/delete_budget_request.py +124 -0
- volcenginesdkbilling/models/delete_budget_response.py +95 -0
- volcenginesdkbilling/models/list_budget_amount_by_budget_id_request.py +124 -0
- volcenginesdkbilling/models/list_budget_amount_by_budget_id_response.py +123 -0
- volcenginesdkbilling/models/list_budget_filter_billing_mode_request.py +151 -0
- volcenginesdkbilling/models/list_budget_filter_billing_mode_response.py +201 -0
- volcenginesdkbilling/models/list_budget_filter_owner_id_request.py +95 -0
- volcenginesdkbilling/models/list_budget_filter_owner_id_response.py +123 -0
- volcenginesdkbilling/models/list_budget_filter_payer_id_request.py +95 -0
- volcenginesdkbilling/models/list_budget_filter_payer_id_response.py +123 -0
- volcenginesdkbilling/models/list_budget_filter_product_request.py +151 -0
- volcenginesdkbilling/models/list_budget_filter_product_response.py +201 -0
- volcenginesdkbilling/models/list_budget_filter_project_request.py +151 -0
- volcenginesdkbilling/models/list_budget_filter_project_response.py +201 -0
- volcenginesdkbilling/models/list_budget_filter_region_code_request.py +151 -0
- volcenginesdkbilling/models/list_budget_filter_region_code_response.py +201 -0
- volcenginesdkbilling/models/list_budget_filter_subject_info_request.py +151 -0
- volcenginesdkbilling/models/list_budget_filter_subject_info_response.py +201 -0
- volcenginesdkbilling/models/list_budget_filter_tag_key_request.py +151 -0
- volcenginesdkbilling/models/list_budget_filter_tag_key_response.py +201 -0
- volcenginesdkbilling/models/list_budget_filter_tag_value_request.py +178 -0
- volcenginesdkbilling/models/list_budget_filter_tag_value_response.py +201 -0
- volcenginesdkbilling/models/list_budget_filter_zone_code_request.py +151 -0
- volcenginesdkbilling/models/list_budget_filter_zone_code_response.py +201 -0
- volcenginesdkbilling/models/list_budget_request.py +302 -0
- volcenginesdkbilling/models/list_budget_response.py +201 -0
- volcenginesdkbilling/models/list_for_list_budget_filter_owner_id_output.py +149 -0
- volcenginesdkbilling/models/list_for_list_budget_filter_payer_id_output.py +149 -0
- volcenginesdkbilling/models/list_for_list_budget_filter_product_output.py +149 -0
- volcenginesdkbilling/models/list_recipient_information_request.py +151 -0
- volcenginesdkbilling/models/list_recipient_information_response.py +201 -0
- volcenginesdkbilling/models/query_budget_detail_request.py +124 -0
- volcenginesdkbilling/models/query_budget_detail_response.py +201 -0
- volcenginesdkbilling/models/recipient_information_list_for_list_recipient_information_output.py +201 -0
- volcenginesdkbilling/models/region_info_list_for_list_budget_filter_region_code_output.py +149 -0
- volcenginesdkbilling/models/subject_info_list_for_list_budget_filter_subject_info_output.py +149 -0
- volcenginesdkbilling/models/update_budget_request.py +254 -0
- volcenginesdkbilling/models/update_budget_response.py +95 -0
- volcenginesdkbilling/models/zone_info_list_for_list_budget_filter_zone_code_output.py +149 -0
- volcenginesdkcore/api_client.py +1 -1
- volcenginesdkcore/configuration.py +1 -1
- {volcengine_python_sdk-4.0.25.dist-info → volcengine_python_sdk-4.0.26.dist-info}/WHEEL +0 -0
- {volcengine_python_sdk-4.0.25.dist-info → volcengine_python_sdk-4.0.26.dist-info}/licenses/LICENSE.txt +0 -0
- {volcengine_python_sdk-4.0.25.dist-info → volcengine_python_sdk-4.0.26.dist-info}/licenses/NOTICE.md +0 -0
- {volcengine_python_sdk-4.0.25.dist-info → volcengine_python_sdk-4.0.26.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
billing
|
|
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 volcenginesdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class BudgetListForListBudgetOutput(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
|
+
'actual_amount': 'str',
|
|
37
|
+
'budget_amount': 'str',
|
|
38
|
+
'budget_end_time': 'str',
|
|
39
|
+
'budget_id': 'str',
|
|
40
|
+
'budget_name': 'str',
|
|
41
|
+
'budget_start_time': 'str',
|
|
42
|
+
'budget_type': 'str',
|
|
43
|
+
'period': 'str',
|
|
44
|
+
'ratio': 'str',
|
|
45
|
+
'status': 'int'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'actual_amount': 'ActualAmount',
|
|
50
|
+
'budget_amount': 'BudgetAmount',
|
|
51
|
+
'budget_end_time': 'BudgetEndTime',
|
|
52
|
+
'budget_id': 'BudgetID',
|
|
53
|
+
'budget_name': 'BudgetName',
|
|
54
|
+
'budget_start_time': 'BudgetStartTime',
|
|
55
|
+
'budget_type': 'BudgetType',
|
|
56
|
+
'period': 'Period',
|
|
57
|
+
'ratio': 'Ratio',
|
|
58
|
+
'status': 'Status'
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
def __init__(self, actual_amount=None, budget_amount=None, budget_end_time=None, budget_id=None, budget_name=None, budget_start_time=None, budget_type=None, period=None, ratio=None, status=None, _configuration=None): # noqa: E501
|
|
62
|
+
"""BudgetListForListBudgetOutput - a model defined in Swagger""" # noqa: E501
|
|
63
|
+
if _configuration is None:
|
|
64
|
+
_configuration = Configuration()
|
|
65
|
+
self._configuration = _configuration
|
|
66
|
+
|
|
67
|
+
self._actual_amount = None
|
|
68
|
+
self._budget_amount = None
|
|
69
|
+
self._budget_end_time = None
|
|
70
|
+
self._budget_id = None
|
|
71
|
+
self._budget_name = None
|
|
72
|
+
self._budget_start_time = None
|
|
73
|
+
self._budget_type = None
|
|
74
|
+
self._period = None
|
|
75
|
+
self._ratio = None
|
|
76
|
+
self._status = None
|
|
77
|
+
self.discriminator = None
|
|
78
|
+
|
|
79
|
+
if actual_amount is not None:
|
|
80
|
+
self.actual_amount = actual_amount
|
|
81
|
+
if budget_amount is not None:
|
|
82
|
+
self.budget_amount = budget_amount
|
|
83
|
+
if budget_end_time is not None:
|
|
84
|
+
self.budget_end_time = budget_end_time
|
|
85
|
+
if budget_id is not None:
|
|
86
|
+
self.budget_id = budget_id
|
|
87
|
+
if budget_name is not None:
|
|
88
|
+
self.budget_name = budget_name
|
|
89
|
+
if budget_start_time is not None:
|
|
90
|
+
self.budget_start_time = budget_start_time
|
|
91
|
+
if budget_type is not None:
|
|
92
|
+
self.budget_type = budget_type
|
|
93
|
+
if period is not None:
|
|
94
|
+
self.period = period
|
|
95
|
+
if ratio is not None:
|
|
96
|
+
self.ratio = ratio
|
|
97
|
+
if status is not None:
|
|
98
|
+
self.status = status
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def actual_amount(self):
|
|
102
|
+
"""Gets the actual_amount of this BudgetListForListBudgetOutput. # noqa: E501
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
:return: The actual_amount of this BudgetListForListBudgetOutput. # noqa: E501
|
|
106
|
+
:rtype: str
|
|
107
|
+
"""
|
|
108
|
+
return self._actual_amount
|
|
109
|
+
|
|
110
|
+
@actual_amount.setter
|
|
111
|
+
def actual_amount(self, actual_amount):
|
|
112
|
+
"""Sets the actual_amount of this BudgetListForListBudgetOutput.
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:param actual_amount: The actual_amount of this BudgetListForListBudgetOutput. # noqa: E501
|
|
116
|
+
:type: str
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
self._actual_amount = actual_amount
|
|
120
|
+
|
|
121
|
+
@property
|
|
122
|
+
def budget_amount(self):
|
|
123
|
+
"""Gets the budget_amount of this BudgetListForListBudgetOutput. # noqa: E501
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
:return: The budget_amount of this BudgetListForListBudgetOutput. # noqa: E501
|
|
127
|
+
:rtype: str
|
|
128
|
+
"""
|
|
129
|
+
return self._budget_amount
|
|
130
|
+
|
|
131
|
+
@budget_amount.setter
|
|
132
|
+
def budget_amount(self, budget_amount):
|
|
133
|
+
"""Sets the budget_amount of this BudgetListForListBudgetOutput.
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
:param budget_amount: The budget_amount of this BudgetListForListBudgetOutput. # noqa: E501
|
|
137
|
+
:type: str
|
|
138
|
+
"""
|
|
139
|
+
|
|
140
|
+
self._budget_amount = budget_amount
|
|
141
|
+
|
|
142
|
+
@property
|
|
143
|
+
def budget_end_time(self):
|
|
144
|
+
"""Gets the budget_end_time of this BudgetListForListBudgetOutput. # noqa: E501
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
:return: The budget_end_time of this BudgetListForListBudgetOutput. # noqa: E501
|
|
148
|
+
:rtype: str
|
|
149
|
+
"""
|
|
150
|
+
return self._budget_end_time
|
|
151
|
+
|
|
152
|
+
@budget_end_time.setter
|
|
153
|
+
def budget_end_time(self, budget_end_time):
|
|
154
|
+
"""Sets the budget_end_time of this BudgetListForListBudgetOutput.
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
:param budget_end_time: The budget_end_time of this BudgetListForListBudgetOutput. # noqa: E501
|
|
158
|
+
:type: str
|
|
159
|
+
"""
|
|
160
|
+
|
|
161
|
+
self._budget_end_time = budget_end_time
|
|
162
|
+
|
|
163
|
+
@property
|
|
164
|
+
def budget_id(self):
|
|
165
|
+
"""Gets the budget_id of this BudgetListForListBudgetOutput. # noqa: E501
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
:return: The budget_id of this BudgetListForListBudgetOutput. # noqa: E501
|
|
169
|
+
:rtype: str
|
|
170
|
+
"""
|
|
171
|
+
return self._budget_id
|
|
172
|
+
|
|
173
|
+
@budget_id.setter
|
|
174
|
+
def budget_id(self, budget_id):
|
|
175
|
+
"""Sets the budget_id of this BudgetListForListBudgetOutput.
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
:param budget_id: The budget_id of this BudgetListForListBudgetOutput. # noqa: E501
|
|
179
|
+
:type: str
|
|
180
|
+
"""
|
|
181
|
+
|
|
182
|
+
self._budget_id = budget_id
|
|
183
|
+
|
|
184
|
+
@property
|
|
185
|
+
def budget_name(self):
|
|
186
|
+
"""Gets the budget_name of this BudgetListForListBudgetOutput. # noqa: E501
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
:return: The budget_name of this BudgetListForListBudgetOutput. # noqa: E501
|
|
190
|
+
:rtype: str
|
|
191
|
+
"""
|
|
192
|
+
return self._budget_name
|
|
193
|
+
|
|
194
|
+
@budget_name.setter
|
|
195
|
+
def budget_name(self, budget_name):
|
|
196
|
+
"""Sets the budget_name of this BudgetListForListBudgetOutput.
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
:param budget_name: The budget_name of this BudgetListForListBudgetOutput. # noqa: E501
|
|
200
|
+
:type: str
|
|
201
|
+
"""
|
|
202
|
+
|
|
203
|
+
self._budget_name = budget_name
|
|
204
|
+
|
|
205
|
+
@property
|
|
206
|
+
def budget_start_time(self):
|
|
207
|
+
"""Gets the budget_start_time of this BudgetListForListBudgetOutput. # noqa: E501
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
:return: The budget_start_time of this BudgetListForListBudgetOutput. # noqa: E501
|
|
211
|
+
:rtype: str
|
|
212
|
+
"""
|
|
213
|
+
return self._budget_start_time
|
|
214
|
+
|
|
215
|
+
@budget_start_time.setter
|
|
216
|
+
def budget_start_time(self, budget_start_time):
|
|
217
|
+
"""Sets the budget_start_time of this BudgetListForListBudgetOutput.
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
:param budget_start_time: The budget_start_time of this BudgetListForListBudgetOutput. # noqa: E501
|
|
221
|
+
:type: str
|
|
222
|
+
"""
|
|
223
|
+
|
|
224
|
+
self._budget_start_time = budget_start_time
|
|
225
|
+
|
|
226
|
+
@property
|
|
227
|
+
def budget_type(self):
|
|
228
|
+
"""Gets the budget_type of this BudgetListForListBudgetOutput. # noqa: E501
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
:return: The budget_type of this BudgetListForListBudgetOutput. # noqa: E501
|
|
232
|
+
:rtype: str
|
|
233
|
+
"""
|
|
234
|
+
return self._budget_type
|
|
235
|
+
|
|
236
|
+
@budget_type.setter
|
|
237
|
+
def budget_type(self, budget_type):
|
|
238
|
+
"""Sets the budget_type of this BudgetListForListBudgetOutput.
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
:param budget_type: The budget_type of this BudgetListForListBudgetOutput. # noqa: E501
|
|
242
|
+
:type: str
|
|
243
|
+
"""
|
|
244
|
+
|
|
245
|
+
self._budget_type = budget_type
|
|
246
|
+
|
|
247
|
+
@property
|
|
248
|
+
def period(self):
|
|
249
|
+
"""Gets the period of this BudgetListForListBudgetOutput. # noqa: E501
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
:return: The period of this BudgetListForListBudgetOutput. # noqa: E501
|
|
253
|
+
:rtype: str
|
|
254
|
+
"""
|
|
255
|
+
return self._period
|
|
256
|
+
|
|
257
|
+
@period.setter
|
|
258
|
+
def period(self, period):
|
|
259
|
+
"""Sets the period of this BudgetListForListBudgetOutput.
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
:param period: The period of this BudgetListForListBudgetOutput. # noqa: E501
|
|
263
|
+
:type: str
|
|
264
|
+
"""
|
|
265
|
+
|
|
266
|
+
self._period = period
|
|
267
|
+
|
|
268
|
+
@property
|
|
269
|
+
def ratio(self):
|
|
270
|
+
"""Gets the ratio of this BudgetListForListBudgetOutput. # noqa: E501
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
:return: The ratio of this BudgetListForListBudgetOutput. # noqa: E501
|
|
274
|
+
:rtype: str
|
|
275
|
+
"""
|
|
276
|
+
return self._ratio
|
|
277
|
+
|
|
278
|
+
@ratio.setter
|
|
279
|
+
def ratio(self, ratio):
|
|
280
|
+
"""Sets the ratio of this BudgetListForListBudgetOutput.
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
:param ratio: The ratio of this BudgetListForListBudgetOutput. # noqa: E501
|
|
284
|
+
:type: str
|
|
285
|
+
"""
|
|
286
|
+
|
|
287
|
+
self._ratio = ratio
|
|
288
|
+
|
|
289
|
+
@property
|
|
290
|
+
def status(self):
|
|
291
|
+
"""Gets the status of this BudgetListForListBudgetOutput. # noqa: E501
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
:return: The status of this BudgetListForListBudgetOutput. # noqa: E501
|
|
295
|
+
:rtype: int
|
|
296
|
+
"""
|
|
297
|
+
return self._status
|
|
298
|
+
|
|
299
|
+
@status.setter
|
|
300
|
+
def status(self, status):
|
|
301
|
+
"""Sets the status of this BudgetListForListBudgetOutput.
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
:param status: The status of this BudgetListForListBudgetOutput. # noqa: E501
|
|
305
|
+
:type: int
|
|
306
|
+
"""
|
|
307
|
+
|
|
308
|
+
self._status = status
|
|
309
|
+
|
|
310
|
+
def to_dict(self):
|
|
311
|
+
"""Returns the model properties as a dict"""
|
|
312
|
+
result = {}
|
|
313
|
+
|
|
314
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
315
|
+
value = getattr(self, attr)
|
|
316
|
+
if isinstance(value, list):
|
|
317
|
+
result[attr] = list(map(
|
|
318
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
319
|
+
value
|
|
320
|
+
))
|
|
321
|
+
elif hasattr(value, "to_dict"):
|
|
322
|
+
result[attr] = value.to_dict()
|
|
323
|
+
elif isinstance(value, dict):
|
|
324
|
+
result[attr] = dict(map(
|
|
325
|
+
lambda item: (item[0], item[1].to_dict())
|
|
326
|
+
if hasattr(item[1], "to_dict") else item,
|
|
327
|
+
value.items()
|
|
328
|
+
))
|
|
329
|
+
else:
|
|
330
|
+
result[attr] = value
|
|
331
|
+
if issubclass(BudgetListForListBudgetOutput, dict):
|
|
332
|
+
for key, value in self.items():
|
|
333
|
+
result[key] = value
|
|
334
|
+
|
|
335
|
+
return result
|
|
336
|
+
|
|
337
|
+
def to_str(self):
|
|
338
|
+
"""Returns the string representation of the model"""
|
|
339
|
+
return pprint.pformat(self.to_dict())
|
|
340
|
+
|
|
341
|
+
def __repr__(self):
|
|
342
|
+
"""For `print` and `pprint`"""
|
|
343
|
+
return self.to_str()
|
|
344
|
+
|
|
345
|
+
def __eq__(self, other):
|
|
346
|
+
"""Returns true if both objects are equal"""
|
|
347
|
+
if not isinstance(other, BudgetListForListBudgetOutput):
|
|
348
|
+
return False
|
|
349
|
+
|
|
350
|
+
return self.to_dict() == other.to_dict()
|
|
351
|
+
|
|
352
|
+
def __ne__(self, other):
|
|
353
|
+
"""Returns true if both objects are not equal"""
|
|
354
|
+
if not isinstance(other, BudgetListForListBudgetOutput):
|
|
355
|
+
return True
|
|
356
|
+
|
|
357
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
billing
|
|
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 volcenginesdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class BudgetRangeBillingModeForQueryBudgetDetailOutput(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
|
+
'billing_mode_code': 'str',
|
|
37
|
+
'billing_mode_name': 'str'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'billing_mode_code': 'BillingModeCode',
|
|
42
|
+
'billing_mode_name': 'BillingModeName'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, billing_mode_code=None, billing_mode_name=None, _configuration=None): # noqa: E501
|
|
46
|
+
"""BudgetRangeBillingModeForQueryBudgetDetailOutput - a model defined in Swagger""" # noqa: E501
|
|
47
|
+
if _configuration is None:
|
|
48
|
+
_configuration = Configuration()
|
|
49
|
+
self._configuration = _configuration
|
|
50
|
+
|
|
51
|
+
self._billing_mode_code = None
|
|
52
|
+
self._billing_mode_name = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
if billing_mode_code is not None:
|
|
56
|
+
self.billing_mode_code = billing_mode_code
|
|
57
|
+
if billing_mode_name is not None:
|
|
58
|
+
self.billing_mode_name = billing_mode_name
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def billing_mode_code(self):
|
|
62
|
+
"""Gets the billing_mode_code of this BudgetRangeBillingModeForQueryBudgetDetailOutput. # noqa: E501
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:return: The billing_mode_code of this BudgetRangeBillingModeForQueryBudgetDetailOutput. # noqa: E501
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._billing_mode_code
|
|
69
|
+
|
|
70
|
+
@billing_mode_code.setter
|
|
71
|
+
def billing_mode_code(self, billing_mode_code):
|
|
72
|
+
"""Sets the billing_mode_code of this BudgetRangeBillingModeForQueryBudgetDetailOutput.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:param billing_mode_code: The billing_mode_code of this BudgetRangeBillingModeForQueryBudgetDetailOutput. # noqa: E501
|
|
76
|
+
:type: str
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
self._billing_mode_code = billing_mode_code
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def billing_mode_name(self):
|
|
83
|
+
"""Gets the billing_mode_name of this BudgetRangeBillingModeForQueryBudgetDetailOutput. # noqa: E501
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:return: The billing_mode_name of this BudgetRangeBillingModeForQueryBudgetDetailOutput. # noqa: E501
|
|
87
|
+
:rtype: str
|
|
88
|
+
"""
|
|
89
|
+
return self._billing_mode_name
|
|
90
|
+
|
|
91
|
+
@billing_mode_name.setter
|
|
92
|
+
def billing_mode_name(self, billing_mode_name):
|
|
93
|
+
"""Sets the billing_mode_name of this BudgetRangeBillingModeForQueryBudgetDetailOutput.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:param billing_mode_name: The billing_mode_name of this BudgetRangeBillingModeForQueryBudgetDetailOutput. # noqa: E501
|
|
97
|
+
:type: str
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
self._billing_mode_name = billing_mode_name
|
|
101
|
+
|
|
102
|
+
def to_dict(self):
|
|
103
|
+
"""Returns the model properties as a dict"""
|
|
104
|
+
result = {}
|
|
105
|
+
|
|
106
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
107
|
+
value = getattr(self, attr)
|
|
108
|
+
if isinstance(value, list):
|
|
109
|
+
result[attr] = list(map(
|
|
110
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
111
|
+
value
|
|
112
|
+
))
|
|
113
|
+
elif hasattr(value, "to_dict"):
|
|
114
|
+
result[attr] = value.to_dict()
|
|
115
|
+
elif isinstance(value, dict):
|
|
116
|
+
result[attr] = dict(map(
|
|
117
|
+
lambda item: (item[0], item[1].to_dict())
|
|
118
|
+
if hasattr(item[1], "to_dict") else item,
|
|
119
|
+
value.items()
|
|
120
|
+
))
|
|
121
|
+
else:
|
|
122
|
+
result[attr] = value
|
|
123
|
+
if issubclass(BudgetRangeBillingModeForQueryBudgetDetailOutput, dict):
|
|
124
|
+
for key, value in self.items():
|
|
125
|
+
result[key] = value
|
|
126
|
+
|
|
127
|
+
return result
|
|
128
|
+
|
|
129
|
+
def to_str(self):
|
|
130
|
+
"""Returns the string representation of the model"""
|
|
131
|
+
return pprint.pformat(self.to_dict())
|
|
132
|
+
|
|
133
|
+
def __repr__(self):
|
|
134
|
+
"""For `print` and `pprint`"""
|
|
135
|
+
return self.to_str()
|
|
136
|
+
|
|
137
|
+
def __eq__(self, other):
|
|
138
|
+
"""Returns true if both objects are equal"""
|
|
139
|
+
if not isinstance(other, BudgetRangeBillingModeForQueryBudgetDetailOutput):
|
|
140
|
+
return False
|
|
141
|
+
|
|
142
|
+
return self.to_dict() == other.to_dict()
|
|
143
|
+
|
|
144
|
+
def __ne__(self, other):
|
|
145
|
+
"""Returns true if both objects are not equal"""
|
|
146
|
+
if not isinstance(other, BudgetRangeBillingModeForQueryBudgetDetailOutput):
|
|
147
|
+
return True
|
|
148
|
+
|
|
149
|
+
return self.to_dict() != other.to_dict()
|