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,151 @@
|
|
|
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 ListBudgetFilterProjectRequest(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
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'limit': 'Limit',
|
|
42
|
+
'offset': 'Offset'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, limit=None, offset=None, _configuration=None): # noqa: E501
|
|
46
|
+
"""ListBudgetFilterProjectRequest - a model defined in Swagger""" # noqa: E501
|
|
47
|
+
if _configuration is None:
|
|
48
|
+
_configuration = Configuration()
|
|
49
|
+
self._configuration = _configuration
|
|
50
|
+
|
|
51
|
+
self._limit = None
|
|
52
|
+
self._offset = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
self.limit = limit
|
|
56
|
+
self.offset = offset
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def limit(self):
|
|
60
|
+
"""Gets the limit of this ListBudgetFilterProjectRequest. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The limit of this ListBudgetFilterProjectRequest. # noqa: E501
|
|
64
|
+
:rtype: int
|
|
65
|
+
"""
|
|
66
|
+
return self._limit
|
|
67
|
+
|
|
68
|
+
@limit.setter
|
|
69
|
+
def limit(self, limit):
|
|
70
|
+
"""Sets the limit of this ListBudgetFilterProjectRequest.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param limit: The limit of this ListBudgetFilterProjectRequest. # noqa: E501
|
|
74
|
+
:type: int
|
|
75
|
+
"""
|
|
76
|
+
if self._configuration.client_side_validation and limit is None:
|
|
77
|
+
raise ValueError("Invalid value for `limit`, must not be `None`") # noqa: E501
|
|
78
|
+
|
|
79
|
+
self._limit = limit
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def offset(self):
|
|
83
|
+
"""Gets the offset of this ListBudgetFilterProjectRequest. # noqa: E501
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:return: The offset of this ListBudgetFilterProjectRequest. # noqa: E501
|
|
87
|
+
:rtype: int
|
|
88
|
+
"""
|
|
89
|
+
return self._offset
|
|
90
|
+
|
|
91
|
+
@offset.setter
|
|
92
|
+
def offset(self, offset):
|
|
93
|
+
"""Sets the offset of this ListBudgetFilterProjectRequest.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:param offset: The offset of this ListBudgetFilterProjectRequest. # noqa: E501
|
|
97
|
+
:type: int
|
|
98
|
+
"""
|
|
99
|
+
if self._configuration.client_side_validation and offset is None:
|
|
100
|
+
raise ValueError("Invalid value for `offset`, must not be `None`") # noqa: E501
|
|
101
|
+
|
|
102
|
+
self._offset = offset
|
|
103
|
+
|
|
104
|
+
def to_dict(self):
|
|
105
|
+
"""Returns the model properties as a dict"""
|
|
106
|
+
result = {}
|
|
107
|
+
|
|
108
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
109
|
+
value = getattr(self, attr)
|
|
110
|
+
if isinstance(value, list):
|
|
111
|
+
result[attr] = list(map(
|
|
112
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
113
|
+
value
|
|
114
|
+
))
|
|
115
|
+
elif hasattr(value, "to_dict"):
|
|
116
|
+
result[attr] = value.to_dict()
|
|
117
|
+
elif isinstance(value, dict):
|
|
118
|
+
result[attr] = dict(map(
|
|
119
|
+
lambda item: (item[0], item[1].to_dict())
|
|
120
|
+
if hasattr(item[1], "to_dict") else item,
|
|
121
|
+
value.items()
|
|
122
|
+
))
|
|
123
|
+
else:
|
|
124
|
+
result[attr] = value
|
|
125
|
+
if issubclass(ListBudgetFilterProjectRequest, dict):
|
|
126
|
+
for key, value in self.items():
|
|
127
|
+
result[key] = value
|
|
128
|
+
|
|
129
|
+
return result
|
|
130
|
+
|
|
131
|
+
def to_str(self):
|
|
132
|
+
"""Returns the string representation of the model"""
|
|
133
|
+
return pprint.pformat(self.to_dict())
|
|
134
|
+
|
|
135
|
+
def __repr__(self):
|
|
136
|
+
"""For `print` and `pprint`"""
|
|
137
|
+
return self.to_str()
|
|
138
|
+
|
|
139
|
+
def __eq__(self, other):
|
|
140
|
+
"""Returns true if both objects are equal"""
|
|
141
|
+
if not isinstance(other, ListBudgetFilterProjectRequest):
|
|
142
|
+
return False
|
|
143
|
+
|
|
144
|
+
return self.to_dict() == other.to_dict()
|
|
145
|
+
|
|
146
|
+
def __ne__(self, other):
|
|
147
|
+
"""Returns true if both objects are not equal"""
|
|
148
|
+
if not isinstance(other, ListBudgetFilterProjectRequest):
|
|
149
|
+
return True
|
|
150
|
+
|
|
151
|
+
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 ListBudgetFilterProjectResponse(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
|
+
'list': 'list[str]',
|
|
38
|
+
'offset': 'int',
|
|
39
|
+
'total': 'int'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'limit': 'Limit',
|
|
44
|
+
'list': 'List',
|
|
45
|
+
'offset': 'Offset',
|
|
46
|
+
'total': 'Total'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, limit=None, list=None, offset=None, total=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""ListBudgetFilterProjectResponse - 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._list = None
|
|
57
|
+
self._offset = None
|
|
58
|
+
self._total = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if limit is not None:
|
|
62
|
+
self.limit = limit
|
|
63
|
+
if list is not None:
|
|
64
|
+
self.list = list
|
|
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 limit(self):
|
|
72
|
+
"""Gets the limit of this ListBudgetFilterProjectResponse. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The limit of this ListBudgetFilterProjectResponse. # 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 ListBudgetFilterProjectResponse.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param limit: The limit of this ListBudgetFilterProjectResponse. # noqa: E501
|
|
86
|
+
:type: int
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._limit = limit
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def list(self):
|
|
93
|
+
"""Gets the list of this ListBudgetFilterProjectResponse. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The list of this ListBudgetFilterProjectResponse. # noqa: E501
|
|
97
|
+
:rtype: list[str]
|
|
98
|
+
"""
|
|
99
|
+
return self._list
|
|
100
|
+
|
|
101
|
+
@list.setter
|
|
102
|
+
def list(self, list):
|
|
103
|
+
"""Sets the list of this ListBudgetFilterProjectResponse.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param list: The list of this ListBudgetFilterProjectResponse. # noqa: E501
|
|
107
|
+
:type: list[str]
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._list = list
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def offset(self):
|
|
114
|
+
"""Gets the offset of this ListBudgetFilterProjectResponse. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The offset of this ListBudgetFilterProjectResponse. # 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 ListBudgetFilterProjectResponse.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param offset: The offset of this ListBudgetFilterProjectResponse. # noqa: E501
|
|
128
|
+
:type: int
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._offset = offset
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def total(self):
|
|
135
|
+
"""Gets the total of this ListBudgetFilterProjectResponse. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The total of this ListBudgetFilterProjectResponse. # 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 ListBudgetFilterProjectResponse.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param total: The total of this ListBudgetFilterProjectResponse. # 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(ListBudgetFilterProjectResponse, 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, ListBudgetFilterProjectResponse):
|
|
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, ListBudgetFilterProjectResponse):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,151 @@
|
|
|
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 ListBudgetFilterRegionCodeRequest(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
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'limit': 'Limit',
|
|
42
|
+
'offset': 'Offset'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, limit=None, offset=None, _configuration=None): # noqa: E501
|
|
46
|
+
"""ListBudgetFilterRegionCodeRequest - a model defined in Swagger""" # noqa: E501
|
|
47
|
+
if _configuration is None:
|
|
48
|
+
_configuration = Configuration()
|
|
49
|
+
self._configuration = _configuration
|
|
50
|
+
|
|
51
|
+
self._limit = None
|
|
52
|
+
self._offset = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
self.limit = limit
|
|
56
|
+
self.offset = offset
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def limit(self):
|
|
60
|
+
"""Gets the limit of this ListBudgetFilterRegionCodeRequest. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The limit of this ListBudgetFilterRegionCodeRequest. # noqa: E501
|
|
64
|
+
:rtype: int
|
|
65
|
+
"""
|
|
66
|
+
return self._limit
|
|
67
|
+
|
|
68
|
+
@limit.setter
|
|
69
|
+
def limit(self, limit):
|
|
70
|
+
"""Sets the limit of this ListBudgetFilterRegionCodeRequest.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param limit: The limit of this ListBudgetFilterRegionCodeRequest. # noqa: E501
|
|
74
|
+
:type: int
|
|
75
|
+
"""
|
|
76
|
+
if self._configuration.client_side_validation and limit is None:
|
|
77
|
+
raise ValueError("Invalid value for `limit`, must not be `None`") # noqa: E501
|
|
78
|
+
|
|
79
|
+
self._limit = limit
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def offset(self):
|
|
83
|
+
"""Gets the offset of this ListBudgetFilterRegionCodeRequest. # noqa: E501
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:return: The offset of this ListBudgetFilterRegionCodeRequest. # noqa: E501
|
|
87
|
+
:rtype: int
|
|
88
|
+
"""
|
|
89
|
+
return self._offset
|
|
90
|
+
|
|
91
|
+
@offset.setter
|
|
92
|
+
def offset(self, offset):
|
|
93
|
+
"""Sets the offset of this ListBudgetFilterRegionCodeRequest.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:param offset: The offset of this ListBudgetFilterRegionCodeRequest. # noqa: E501
|
|
97
|
+
:type: int
|
|
98
|
+
"""
|
|
99
|
+
if self._configuration.client_side_validation and offset is None:
|
|
100
|
+
raise ValueError("Invalid value for `offset`, must not be `None`") # noqa: E501
|
|
101
|
+
|
|
102
|
+
self._offset = offset
|
|
103
|
+
|
|
104
|
+
def to_dict(self):
|
|
105
|
+
"""Returns the model properties as a dict"""
|
|
106
|
+
result = {}
|
|
107
|
+
|
|
108
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
109
|
+
value = getattr(self, attr)
|
|
110
|
+
if isinstance(value, list):
|
|
111
|
+
result[attr] = list(map(
|
|
112
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
113
|
+
value
|
|
114
|
+
))
|
|
115
|
+
elif hasattr(value, "to_dict"):
|
|
116
|
+
result[attr] = value.to_dict()
|
|
117
|
+
elif isinstance(value, dict):
|
|
118
|
+
result[attr] = dict(map(
|
|
119
|
+
lambda item: (item[0], item[1].to_dict())
|
|
120
|
+
if hasattr(item[1], "to_dict") else item,
|
|
121
|
+
value.items()
|
|
122
|
+
))
|
|
123
|
+
else:
|
|
124
|
+
result[attr] = value
|
|
125
|
+
if issubclass(ListBudgetFilterRegionCodeRequest, dict):
|
|
126
|
+
for key, value in self.items():
|
|
127
|
+
result[key] = value
|
|
128
|
+
|
|
129
|
+
return result
|
|
130
|
+
|
|
131
|
+
def to_str(self):
|
|
132
|
+
"""Returns the string representation of the model"""
|
|
133
|
+
return pprint.pformat(self.to_dict())
|
|
134
|
+
|
|
135
|
+
def __repr__(self):
|
|
136
|
+
"""For `print` and `pprint`"""
|
|
137
|
+
return self.to_str()
|
|
138
|
+
|
|
139
|
+
def __eq__(self, other):
|
|
140
|
+
"""Returns true if both objects are equal"""
|
|
141
|
+
if not isinstance(other, ListBudgetFilterRegionCodeRequest):
|
|
142
|
+
return False
|
|
143
|
+
|
|
144
|
+
return self.to_dict() == other.to_dict()
|
|
145
|
+
|
|
146
|
+
def __ne__(self, other):
|
|
147
|
+
"""Returns true if both objects are not equal"""
|
|
148
|
+
if not isinstance(other, ListBudgetFilterRegionCodeRequest):
|
|
149
|
+
return True
|
|
150
|
+
|
|
151
|
+
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 ListBudgetFilterRegionCodeResponse(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
|
+
'region_info_list': 'list[RegionInfoListForListBudgetFilterRegionCodeOutput]',
|
|
39
|
+
'total': 'int'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'limit': 'Limit',
|
|
44
|
+
'offset': 'Offset',
|
|
45
|
+
'region_info_list': 'RegionInfoList',
|
|
46
|
+
'total': 'Total'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, limit=None, offset=None, region_info_list=None, total=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""ListBudgetFilterRegionCodeResponse - 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._region_info_list = None
|
|
58
|
+
self._total = 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 region_info_list is not None:
|
|
66
|
+
self.region_info_list = region_info_list
|
|
67
|
+
if total is not None:
|
|
68
|
+
self.total = total
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def limit(self):
|
|
72
|
+
"""Gets the limit of this ListBudgetFilterRegionCodeResponse. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The limit of this ListBudgetFilterRegionCodeResponse. # 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 ListBudgetFilterRegionCodeResponse.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param limit: The limit of this ListBudgetFilterRegionCodeResponse. # noqa: E501
|
|
86
|
+
:type: int
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._limit = limit
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def offset(self):
|
|
93
|
+
"""Gets the offset of this ListBudgetFilterRegionCodeResponse. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The offset of this ListBudgetFilterRegionCodeResponse. # 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 ListBudgetFilterRegionCodeResponse.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param offset: The offset of this ListBudgetFilterRegionCodeResponse. # noqa: E501
|
|
107
|
+
:type: int
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._offset = offset
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def region_info_list(self):
|
|
114
|
+
"""Gets the region_info_list of this ListBudgetFilterRegionCodeResponse. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The region_info_list of this ListBudgetFilterRegionCodeResponse. # noqa: E501
|
|
118
|
+
:rtype: list[RegionInfoListForListBudgetFilterRegionCodeOutput]
|
|
119
|
+
"""
|
|
120
|
+
return self._region_info_list
|
|
121
|
+
|
|
122
|
+
@region_info_list.setter
|
|
123
|
+
def region_info_list(self, region_info_list):
|
|
124
|
+
"""Sets the region_info_list of this ListBudgetFilterRegionCodeResponse.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param region_info_list: The region_info_list of this ListBudgetFilterRegionCodeResponse. # noqa: E501
|
|
128
|
+
:type: list[RegionInfoListForListBudgetFilterRegionCodeOutput]
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._region_info_list = region_info_list
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def total(self):
|
|
135
|
+
"""Gets the total of this ListBudgetFilterRegionCodeResponse. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The total of this ListBudgetFilterRegionCodeResponse. # 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 ListBudgetFilterRegionCodeResponse.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param total: The total of this ListBudgetFilterRegionCodeResponse. # 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(ListBudgetFilterRegionCodeResponse, 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, ListBudgetFilterRegionCodeResponse):
|
|
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, ListBudgetFilterRegionCodeResponse):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
return self.to_dict() != other.to_dict()
|