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,201 @@
|
|
|
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 ListBudgetFilterZoneCodeResponse(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
|
+
'limit': 'int',
|
|
37
|
+
'offset': 'int',
|
|
38
|
+
'total': 'int',
|
|
39
|
+
'zone_info_list': 'list[ZoneInfoListForListBudgetFilterZoneCodeOutput]'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'limit': 'Limit',
|
|
44
|
+
'offset': 'Offset',
|
|
45
|
+
'total': 'Total',
|
|
46
|
+
'zone_info_list': 'ZoneInfoList'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, limit=None, offset=None, total=None, zone_info_list=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""ListBudgetFilterZoneCodeResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._limit = None
|
|
56
|
+
self._offset = None
|
|
57
|
+
self._total = None
|
|
58
|
+
self._zone_info_list = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if limit is not None:
|
|
62
|
+
self.limit = limit
|
|
63
|
+
if offset is not None:
|
|
64
|
+
self.offset = offset
|
|
65
|
+
if total is not None:
|
|
66
|
+
self.total = total
|
|
67
|
+
if zone_info_list is not None:
|
|
68
|
+
self.zone_info_list = zone_info_list
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def limit(self):
|
|
72
|
+
"""Gets the limit of this ListBudgetFilterZoneCodeResponse. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The limit of this ListBudgetFilterZoneCodeResponse. # noqa: E501
|
|
76
|
+
:rtype: int
|
|
77
|
+
"""
|
|
78
|
+
return self._limit
|
|
79
|
+
|
|
80
|
+
@limit.setter
|
|
81
|
+
def limit(self, limit):
|
|
82
|
+
"""Sets the limit of this ListBudgetFilterZoneCodeResponse.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param limit: The limit of this ListBudgetFilterZoneCodeResponse. # noqa: E501
|
|
86
|
+
:type: int
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._limit = limit
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def offset(self):
|
|
93
|
+
"""Gets the offset of this ListBudgetFilterZoneCodeResponse. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The offset of this ListBudgetFilterZoneCodeResponse. # noqa: E501
|
|
97
|
+
:rtype: int
|
|
98
|
+
"""
|
|
99
|
+
return self._offset
|
|
100
|
+
|
|
101
|
+
@offset.setter
|
|
102
|
+
def offset(self, offset):
|
|
103
|
+
"""Sets the offset of this ListBudgetFilterZoneCodeResponse.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param offset: The offset of this ListBudgetFilterZoneCodeResponse. # noqa: E501
|
|
107
|
+
:type: int
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._offset = offset
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def total(self):
|
|
114
|
+
"""Gets the total of this ListBudgetFilterZoneCodeResponse. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The total of this ListBudgetFilterZoneCodeResponse. # noqa: E501
|
|
118
|
+
:rtype: int
|
|
119
|
+
"""
|
|
120
|
+
return self._total
|
|
121
|
+
|
|
122
|
+
@total.setter
|
|
123
|
+
def total(self, total):
|
|
124
|
+
"""Sets the total of this ListBudgetFilterZoneCodeResponse.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param total: The total of this ListBudgetFilterZoneCodeResponse. # noqa: E501
|
|
128
|
+
:type: int
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._total = total
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def zone_info_list(self):
|
|
135
|
+
"""Gets the zone_info_list of this ListBudgetFilterZoneCodeResponse. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The zone_info_list of this ListBudgetFilterZoneCodeResponse. # noqa: E501
|
|
139
|
+
:rtype: list[ZoneInfoListForListBudgetFilterZoneCodeOutput]
|
|
140
|
+
"""
|
|
141
|
+
return self._zone_info_list
|
|
142
|
+
|
|
143
|
+
@zone_info_list.setter
|
|
144
|
+
def zone_info_list(self, zone_info_list):
|
|
145
|
+
"""Sets the zone_info_list of this ListBudgetFilterZoneCodeResponse.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param zone_info_list: The zone_info_list of this ListBudgetFilterZoneCodeResponse. # noqa: E501
|
|
149
|
+
:type: list[ZoneInfoListForListBudgetFilterZoneCodeOutput]
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._zone_info_list = zone_info_list
|
|
153
|
+
|
|
154
|
+
def to_dict(self):
|
|
155
|
+
"""Returns the model properties as a dict"""
|
|
156
|
+
result = {}
|
|
157
|
+
|
|
158
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
159
|
+
value = getattr(self, attr)
|
|
160
|
+
if isinstance(value, list):
|
|
161
|
+
result[attr] = list(map(
|
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
163
|
+
value
|
|
164
|
+
))
|
|
165
|
+
elif hasattr(value, "to_dict"):
|
|
166
|
+
result[attr] = value.to_dict()
|
|
167
|
+
elif isinstance(value, dict):
|
|
168
|
+
result[attr] = dict(map(
|
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
|
171
|
+
value.items()
|
|
172
|
+
))
|
|
173
|
+
else:
|
|
174
|
+
result[attr] = value
|
|
175
|
+
if issubclass(ListBudgetFilterZoneCodeResponse, dict):
|
|
176
|
+
for key, value in self.items():
|
|
177
|
+
result[key] = value
|
|
178
|
+
|
|
179
|
+
return result
|
|
180
|
+
|
|
181
|
+
def to_str(self):
|
|
182
|
+
"""Returns the string representation of the model"""
|
|
183
|
+
return pprint.pformat(self.to_dict())
|
|
184
|
+
|
|
185
|
+
def __repr__(self):
|
|
186
|
+
"""For `print` and `pprint`"""
|
|
187
|
+
return self.to_str()
|
|
188
|
+
|
|
189
|
+
def __eq__(self, other):
|
|
190
|
+
"""Returns true if both objects are equal"""
|
|
191
|
+
if not isinstance(other, ListBudgetFilterZoneCodeResponse):
|
|
192
|
+
return False
|
|
193
|
+
|
|
194
|
+
return self.to_dict() == other.to_dict()
|
|
195
|
+
|
|
196
|
+
def __ne__(self, other):
|
|
197
|
+
"""Returns true if both objects are not equal"""
|
|
198
|
+
if not isinstance(other, ListBudgetFilterZoneCodeResponse):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,302 @@
|
|
|
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 ListBudgetRequest(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
|
+
'budget_name': 'str',
|
|
37
|
+
'budget_type': 'str',
|
|
38
|
+
'limit': 'int',
|
|
39
|
+
'offset': 'int',
|
|
40
|
+
'order_by': 'str',
|
|
41
|
+
'order_type': 'str',
|
|
42
|
+
'status': 'list[int]'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
attribute_map = {
|
|
46
|
+
'budget_name': 'BudgetName',
|
|
47
|
+
'budget_type': 'BudgetType',
|
|
48
|
+
'limit': 'Limit',
|
|
49
|
+
'offset': 'Offset',
|
|
50
|
+
'order_by': 'OrderBy',
|
|
51
|
+
'order_type': 'OrderType',
|
|
52
|
+
'status': 'Status'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, budget_name=None, budget_type=None, limit=None, offset=None, order_by=None, order_type=None, status=None, _configuration=None): # noqa: E501
|
|
56
|
+
"""ListBudgetRequest - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
if _configuration is None:
|
|
58
|
+
_configuration = Configuration()
|
|
59
|
+
self._configuration = _configuration
|
|
60
|
+
|
|
61
|
+
self._budget_name = None
|
|
62
|
+
self._budget_type = None
|
|
63
|
+
self._limit = None
|
|
64
|
+
self._offset = None
|
|
65
|
+
self._order_by = None
|
|
66
|
+
self._order_type = None
|
|
67
|
+
self._status = None
|
|
68
|
+
self.discriminator = None
|
|
69
|
+
|
|
70
|
+
if budget_name is not None:
|
|
71
|
+
self.budget_name = budget_name
|
|
72
|
+
if budget_type is not None:
|
|
73
|
+
self.budget_type = budget_type
|
|
74
|
+
self.limit = limit
|
|
75
|
+
self.offset = offset
|
|
76
|
+
if order_by is not None:
|
|
77
|
+
self.order_by = order_by
|
|
78
|
+
if order_type is not None:
|
|
79
|
+
self.order_type = order_type
|
|
80
|
+
if status is not None:
|
|
81
|
+
self.status = status
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def budget_name(self):
|
|
85
|
+
"""Gets the budget_name of this ListBudgetRequest. # noqa: E501
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:return: The budget_name of this ListBudgetRequest. # noqa: E501
|
|
89
|
+
:rtype: str
|
|
90
|
+
"""
|
|
91
|
+
return self._budget_name
|
|
92
|
+
|
|
93
|
+
@budget_name.setter
|
|
94
|
+
def budget_name(self, budget_name):
|
|
95
|
+
"""Sets the budget_name of this ListBudgetRequest.
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:param budget_name: The budget_name of this ListBudgetRequest. # noqa: E501
|
|
99
|
+
:type: str
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
self._budget_name = budget_name
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
def budget_type(self):
|
|
106
|
+
"""Gets the budget_type of this ListBudgetRequest. # noqa: E501
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:return: The budget_type of this ListBudgetRequest. # noqa: E501
|
|
110
|
+
:rtype: str
|
|
111
|
+
"""
|
|
112
|
+
return self._budget_type
|
|
113
|
+
|
|
114
|
+
@budget_type.setter
|
|
115
|
+
def budget_type(self, budget_type):
|
|
116
|
+
"""Sets the budget_type of this ListBudgetRequest.
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
:param budget_type: The budget_type of this ListBudgetRequest. # noqa: E501
|
|
120
|
+
:type: str
|
|
121
|
+
"""
|
|
122
|
+
allowed_values = ["cost_budget"] # noqa: E501
|
|
123
|
+
if (self._configuration.client_side_validation and
|
|
124
|
+
budget_type not in allowed_values):
|
|
125
|
+
raise ValueError(
|
|
126
|
+
"Invalid value for `budget_type` ({0}), must be one of {1}" # noqa: E501
|
|
127
|
+
.format(budget_type, allowed_values)
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
self._budget_type = budget_type
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
def limit(self):
|
|
134
|
+
"""Gets the limit of this ListBudgetRequest. # noqa: E501
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
:return: The limit of this ListBudgetRequest. # noqa: E501
|
|
138
|
+
:rtype: int
|
|
139
|
+
"""
|
|
140
|
+
return self._limit
|
|
141
|
+
|
|
142
|
+
@limit.setter
|
|
143
|
+
def limit(self, limit):
|
|
144
|
+
"""Sets the limit of this ListBudgetRequest.
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
:param limit: The limit of this ListBudgetRequest. # noqa: E501
|
|
148
|
+
:type: int
|
|
149
|
+
"""
|
|
150
|
+
if self._configuration.client_side_validation and limit is None:
|
|
151
|
+
raise ValueError("Invalid value for `limit`, must not be `None`") # noqa: E501
|
|
152
|
+
|
|
153
|
+
self._limit = limit
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
def offset(self):
|
|
157
|
+
"""Gets the offset of this ListBudgetRequest. # noqa: E501
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
:return: The offset of this ListBudgetRequest. # noqa: E501
|
|
161
|
+
:rtype: int
|
|
162
|
+
"""
|
|
163
|
+
return self._offset
|
|
164
|
+
|
|
165
|
+
@offset.setter
|
|
166
|
+
def offset(self, offset):
|
|
167
|
+
"""Sets the offset of this ListBudgetRequest.
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
:param offset: The offset of this ListBudgetRequest. # noqa: E501
|
|
171
|
+
:type: int
|
|
172
|
+
"""
|
|
173
|
+
if self._configuration.client_side_validation and offset is None:
|
|
174
|
+
raise ValueError("Invalid value for `offset`, must not be `None`") # noqa: E501
|
|
175
|
+
|
|
176
|
+
self._offset = offset
|
|
177
|
+
|
|
178
|
+
@property
|
|
179
|
+
def order_by(self):
|
|
180
|
+
"""Gets the order_by of this ListBudgetRequest. # noqa: E501
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
:return: The order_by of this ListBudgetRequest. # noqa: E501
|
|
184
|
+
:rtype: str
|
|
185
|
+
"""
|
|
186
|
+
return self._order_by
|
|
187
|
+
|
|
188
|
+
@order_by.setter
|
|
189
|
+
def order_by(self, order_by):
|
|
190
|
+
"""Sets the order_by of this ListBudgetRequest.
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
:param order_by: The order_by of this ListBudgetRequest. # noqa: E501
|
|
194
|
+
:type: str
|
|
195
|
+
"""
|
|
196
|
+
allowed_values = ["ratio"] # noqa: E501
|
|
197
|
+
if (self._configuration.client_side_validation and
|
|
198
|
+
order_by not in allowed_values):
|
|
199
|
+
raise ValueError(
|
|
200
|
+
"Invalid value for `order_by` ({0}), must be one of {1}" # noqa: E501
|
|
201
|
+
.format(order_by, allowed_values)
|
|
202
|
+
)
|
|
203
|
+
|
|
204
|
+
self._order_by = order_by
|
|
205
|
+
|
|
206
|
+
@property
|
|
207
|
+
def order_type(self):
|
|
208
|
+
"""Gets the order_type of this ListBudgetRequest. # noqa: E501
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
:return: The order_type of this ListBudgetRequest. # noqa: E501
|
|
212
|
+
:rtype: str
|
|
213
|
+
"""
|
|
214
|
+
return self._order_type
|
|
215
|
+
|
|
216
|
+
@order_type.setter
|
|
217
|
+
def order_type(self, order_type):
|
|
218
|
+
"""Sets the order_type of this ListBudgetRequest.
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
:param order_type: The order_type of this ListBudgetRequest. # noqa: E501
|
|
222
|
+
:type: str
|
|
223
|
+
"""
|
|
224
|
+
allowed_values = ["asc", "desc"] # noqa: E501
|
|
225
|
+
if (self._configuration.client_side_validation and
|
|
226
|
+
order_type not in allowed_values):
|
|
227
|
+
raise ValueError(
|
|
228
|
+
"Invalid value for `order_type` ({0}), must be one of {1}" # noqa: E501
|
|
229
|
+
.format(order_type, allowed_values)
|
|
230
|
+
)
|
|
231
|
+
|
|
232
|
+
self._order_type = order_type
|
|
233
|
+
|
|
234
|
+
@property
|
|
235
|
+
def status(self):
|
|
236
|
+
"""Gets the status of this ListBudgetRequest. # noqa: E501
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
:return: The status of this ListBudgetRequest. # noqa: E501
|
|
240
|
+
:rtype: list[int]
|
|
241
|
+
"""
|
|
242
|
+
return self._status
|
|
243
|
+
|
|
244
|
+
@status.setter
|
|
245
|
+
def status(self, status):
|
|
246
|
+
"""Sets the status of this ListBudgetRequest.
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
:param status: The status of this ListBudgetRequest. # noqa: E501
|
|
250
|
+
:type: list[int]
|
|
251
|
+
"""
|
|
252
|
+
|
|
253
|
+
self._status = status
|
|
254
|
+
|
|
255
|
+
def to_dict(self):
|
|
256
|
+
"""Returns the model properties as a dict"""
|
|
257
|
+
result = {}
|
|
258
|
+
|
|
259
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
260
|
+
value = getattr(self, attr)
|
|
261
|
+
if isinstance(value, list):
|
|
262
|
+
result[attr] = list(map(
|
|
263
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
264
|
+
value
|
|
265
|
+
))
|
|
266
|
+
elif hasattr(value, "to_dict"):
|
|
267
|
+
result[attr] = value.to_dict()
|
|
268
|
+
elif isinstance(value, dict):
|
|
269
|
+
result[attr] = dict(map(
|
|
270
|
+
lambda item: (item[0], item[1].to_dict())
|
|
271
|
+
if hasattr(item[1], "to_dict") else item,
|
|
272
|
+
value.items()
|
|
273
|
+
))
|
|
274
|
+
else:
|
|
275
|
+
result[attr] = value
|
|
276
|
+
if issubclass(ListBudgetRequest, dict):
|
|
277
|
+
for key, value in self.items():
|
|
278
|
+
result[key] = value
|
|
279
|
+
|
|
280
|
+
return result
|
|
281
|
+
|
|
282
|
+
def to_str(self):
|
|
283
|
+
"""Returns the string representation of the model"""
|
|
284
|
+
return pprint.pformat(self.to_dict())
|
|
285
|
+
|
|
286
|
+
def __repr__(self):
|
|
287
|
+
"""For `print` and `pprint`"""
|
|
288
|
+
return self.to_str()
|
|
289
|
+
|
|
290
|
+
def __eq__(self, other):
|
|
291
|
+
"""Returns true if both objects are equal"""
|
|
292
|
+
if not isinstance(other, ListBudgetRequest):
|
|
293
|
+
return False
|
|
294
|
+
|
|
295
|
+
return self.to_dict() == other.to_dict()
|
|
296
|
+
|
|
297
|
+
def __ne__(self, other):
|
|
298
|
+
"""Returns true if both objects are not equal"""
|
|
299
|
+
if not isinstance(other, ListBudgetRequest):
|
|
300
|
+
return True
|
|
301
|
+
|
|
302
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,201 @@
|
|
|
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 ListBudgetResponse(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
|
+
'budget_list': 'list[BudgetListForListBudgetOutput]',
|
|
37
|
+
'limit': 'int',
|
|
38
|
+
'offset': 'int',
|
|
39
|
+
'total': 'int'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'budget_list': 'BudgetList',
|
|
44
|
+
'limit': 'Limit',
|
|
45
|
+
'offset': 'Offset',
|
|
46
|
+
'total': 'Total'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, budget_list=None, limit=None, offset=None, total=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""ListBudgetResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._budget_list = None
|
|
56
|
+
self._limit = None
|
|
57
|
+
self._offset = None
|
|
58
|
+
self._total = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if budget_list is not None:
|
|
62
|
+
self.budget_list = budget_list
|
|
63
|
+
if limit is not None:
|
|
64
|
+
self.limit = limit
|
|
65
|
+
if offset is not None:
|
|
66
|
+
self.offset = offset
|
|
67
|
+
if total is not None:
|
|
68
|
+
self.total = total
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def budget_list(self):
|
|
72
|
+
"""Gets the budget_list of this ListBudgetResponse. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The budget_list of this ListBudgetResponse. # noqa: E501
|
|
76
|
+
:rtype: list[BudgetListForListBudgetOutput]
|
|
77
|
+
"""
|
|
78
|
+
return self._budget_list
|
|
79
|
+
|
|
80
|
+
@budget_list.setter
|
|
81
|
+
def budget_list(self, budget_list):
|
|
82
|
+
"""Sets the budget_list of this ListBudgetResponse.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param budget_list: The budget_list of this ListBudgetResponse. # noqa: E501
|
|
86
|
+
:type: list[BudgetListForListBudgetOutput]
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._budget_list = budget_list
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def limit(self):
|
|
93
|
+
"""Gets the limit of this ListBudgetResponse. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The limit of this ListBudgetResponse. # noqa: E501
|
|
97
|
+
:rtype: int
|
|
98
|
+
"""
|
|
99
|
+
return self._limit
|
|
100
|
+
|
|
101
|
+
@limit.setter
|
|
102
|
+
def limit(self, limit):
|
|
103
|
+
"""Sets the limit of this ListBudgetResponse.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param limit: The limit of this ListBudgetResponse. # noqa: E501
|
|
107
|
+
:type: int
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._limit = limit
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def offset(self):
|
|
114
|
+
"""Gets the offset of this ListBudgetResponse. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The offset of this ListBudgetResponse. # noqa: E501
|
|
118
|
+
:rtype: int
|
|
119
|
+
"""
|
|
120
|
+
return self._offset
|
|
121
|
+
|
|
122
|
+
@offset.setter
|
|
123
|
+
def offset(self, offset):
|
|
124
|
+
"""Sets the offset of this ListBudgetResponse.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param offset: The offset of this ListBudgetResponse. # noqa: E501
|
|
128
|
+
:type: int
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._offset = offset
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def total(self):
|
|
135
|
+
"""Gets the total of this ListBudgetResponse. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The total of this ListBudgetResponse. # noqa: E501
|
|
139
|
+
:rtype: int
|
|
140
|
+
"""
|
|
141
|
+
return self._total
|
|
142
|
+
|
|
143
|
+
@total.setter
|
|
144
|
+
def total(self, total):
|
|
145
|
+
"""Sets the total of this ListBudgetResponse.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param total: The total of this ListBudgetResponse. # noqa: E501
|
|
149
|
+
:type: int
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._total = total
|
|
153
|
+
|
|
154
|
+
def to_dict(self):
|
|
155
|
+
"""Returns the model properties as a dict"""
|
|
156
|
+
result = {}
|
|
157
|
+
|
|
158
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
159
|
+
value = getattr(self, attr)
|
|
160
|
+
if isinstance(value, list):
|
|
161
|
+
result[attr] = list(map(
|
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
163
|
+
value
|
|
164
|
+
))
|
|
165
|
+
elif hasattr(value, "to_dict"):
|
|
166
|
+
result[attr] = value.to_dict()
|
|
167
|
+
elif isinstance(value, dict):
|
|
168
|
+
result[attr] = dict(map(
|
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
|
171
|
+
value.items()
|
|
172
|
+
))
|
|
173
|
+
else:
|
|
174
|
+
result[attr] = value
|
|
175
|
+
if issubclass(ListBudgetResponse, dict):
|
|
176
|
+
for key, value in self.items():
|
|
177
|
+
result[key] = value
|
|
178
|
+
|
|
179
|
+
return result
|
|
180
|
+
|
|
181
|
+
def to_str(self):
|
|
182
|
+
"""Returns the string representation of the model"""
|
|
183
|
+
return pprint.pformat(self.to_dict())
|
|
184
|
+
|
|
185
|
+
def __repr__(self):
|
|
186
|
+
"""For `print` and `pprint`"""
|
|
187
|
+
return self.to_str()
|
|
188
|
+
|
|
189
|
+
def __eq__(self, other):
|
|
190
|
+
"""Returns true if both objects are equal"""
|
|
191
|
+
if not isinstance(other, ListBudgetResponse):
|
|
192
|
+
return False
|
|
193
|
+
|
|
194
|
+
return self.to_dict() == other.to_dict()
|
|
195
|
+
|
|
196
|
+
def __ne__(self, other):
|
|
197
|
+
"""Returns true if both objects are not equal"""
|
|
198
|
+
if not isinstance(other, ListBudgetResponse):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
return self.to_dict() != other.to_dict()
|