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,240 @@
|
|
|
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 ListBillingItemsRequest(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_type': 'str',
|
|
39
|
+
'group_term': 'int',
|
|
40
|
+
'product': 'str'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
attribute_map = {
|
|
44
|
+
'account_id': 'AccountId',
|
|
45
|
+
'bill_period': 'BillPeriod',
|
|
46
|
+
'bill_type': 'BillType',
|
|
47
|
+
'group_term': 'GroupTerm',
|
|
48
|
+
'product': 'Product'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, account_id=None, bill_period=None, bill_type=None, group_term=None, product=None, _configuration=None): # noqa: E501
|
|
52
|
+
"""ListBillingItemsRequest - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
if _configuration is None:
|
|
54
|
+
_configuration = Configuration()
|
|
55
|
+
self._configuration = _configuration
|
|
56
|
+
|
|
57
|
+
self._account_id = None
|
|
58
|
+
self._bill_period = None
|
|
59
|
+
self._bill_type = None
|
|
60
|
+
self._group_term = None
|
|
61
|
+
self._product = None
|
|
62
|
+
self.discriminator = None
|
|
63
|
+
|
|
64
|
+
if account_id is not None:
|
|
65
|
+
self.account_id = account_id
|
|
66
|
+
if bill_period is not None:
|
|
67
|
+
self.bill_period = bill_period
|
|
68
|
+
if bill_type is not None:
|
|
69
|
+
self.bill_type = bill_type
|
|
70
|
+
if group_term is not None:
|
|
71
|
+
self.group_term = group_term
|
|
72
|
+
if product is not None:
|
|
73
|
+
self.product = product
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
def account_id(self):
|
|
77
|
+
"""Gets the account_id of this ListBillingItemsRequest. # noqa: E501
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
:return: The account_id of this ListBillingItemsRequest. # noqa: E501
|
|
81
|
+
:rtype: int
|
|
82
|
+
"""
|
|
83
|
+
return self._account_id
|
|
84
|
+
|
|
85
|
+
@account_id.setter
|
|
86
|
+
def account_id(self, account_id):
|
|
87
|
+
"""Sets the account_id of this ListBillingItemsRequest.
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
:param account_id: The account_id of this ListBillingItemsRequest. # noqa: E501
|
|
91
|
+
:type: int
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
self._account_id = account_id
|
|
95
|
+
|
|
96
|
+
@property
|
|
97
|
+
def bill_period(self):
|
|
98
|
+
"""Gets the bill_period of this ListBillingItemsRequest. # noqa: E501
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
:return: The bill_period of this ListBillingItemsRequest. # noqa: E501
|
|
102
|
+
:rtype: str
|
|
103
|
+
"""
|
|
104
|
+
return self._bill_period
|
|
105
|
+
|
|
106
|
+
@bill_period.setter
|
|
107
|
+
def bill_period(self, bill_period):
|
|
108
|
+
"""Sets the bill_period of this ListBillingItemsRequest.
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
:param bill_period: The bill_period of this ListBillingItemsRequest. # noqa: E501
|
|
112
|
+
:type: str
|
|
113
|
+
"""
|
|
114
|
+
if (self._configuration.client_side_validation and
|
|
115
|
+
bill_period is not None and len(bill_period) > 7):
|
|
116
|
+
raise ValueError("Invalid value for `bill_period`, length must be less than or equal to `7`") # noqa: E501
|
|
117
|
+
if (self._configuration.client_side_validation and
|
|
118
|
+
bill_period is not None and len(bill_period) < 7):
|
|
119
|
+
raise ValueError("Invalid value for `bill_period`, length must be greater than or equal to `7`") # noqa: E501
|
|
120
|
+
|
|
121
|
+
self._bill_period = bill_period
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def bill_type(self):
|
|
125
|
+
"""Gets the bill_type of this ListBillingItemsRequest. # noqa: E501
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
:return: The bill_type of this ListBillingItemsRequest. # noqa: E501
|
|
129
|
+
:rtype: str
|
|
130
|
+
"""
|
|
131
|
+
return self._bill_type
|
|
132
|
+
|
|
133
|
+
@bill_type.setter
|
|
134
|
+
def bill_type(self, bill_type):
|
|
135
|
+
"""Sets the bill_type of this ListBillingItemsRequest.
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:param bill_type: The bill_type of this ListBillingItemsRequest. # noqa: E501
|
|
139
|
+
:type: str
|
|
140
|
+
"""
|
|
141
|
+
allowed_values = ["payable", "collectible"] # noqa: E501
|
|
142
|
+
if (self._configuration.client_side_validation and
|
|
143
|
+
bill_type not in allowed_values):
|
|
144
|
+
raise ValueError(
|
|
145
|
+
"Invalid value for `bill_type` ({0}), must be one of {1}" # noqa: E501
|
|
146
|
+
.format(bill_type, allowed_values)
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
self._bill_type = bill_type
|
|
150
|
+
|
|
151
|
+
@property
|
|
152
|
+
def group_term(self):
|
|
153
|
+
"""Gets the group_term of this ListBillingItemsRequest. # noqa: E501
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:return: The group_term of this ListBillingItemsRequest. # noqa: E501
|
|
157
|
+
:rtype: int
|
|
158
|
+
"""
|
|
159
|
+
return self._group_term
|
|
160
|
+
|
|
161
|
+
@group_term.setter
|
|
162
|
+
def group_term(self, group_term):
|
|
163
|
+
"""Sets the group_term of this ListBillingItemsRequest.
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
:param group_term: The group_term of this ListBillingItemsRequest. # noqa: E501
|
|
167
|
+
:type: int
|
|
168
|
+
"""
|
|
169
|
+
|
|
170
|
+
self._group_term = group_term
|
|
171
|
+
|
|
172
|
+
@property
|
|
173
|
+
def product(self):
|
|
174
|
+
"""Gets the product of this ListBillingItemsRequest. # noqa: E501
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:return: The product of this ListBillingItemsRequest. # noqa: E501
|
|
178
|
+
:rtype: str
|
|
179
|
+
"""
|
|
180
|
+
return self._product
|
|
181
|
+
|
|
182
|
+
@product.setter
|
|
183
|
+
def product(self, product):
|
|
184
|
+
"""Sets the product of this ListBillingItemsRequest.
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
:param product: The product of this ListBillingItemsRequest. # noqa: E501
|
|
188
|
+
:type: str
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
self._product = product
|
|
192
|
+
|
|
193
|
+
def to_dict(self):
|
|
194
|
+
"""Returns the model properties as a dict"""
|
|
195
|
+
result = {}
|
|
196
|
+
|
|
197
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
198
|
+
value = getattr(self, attr)
|
|
199
|
+
if isinstance(value, list):
|
|
200
|
+
result[attr] = list(map(
|
|
201
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
202
|
+
value
|
|
203
|
+
))
|
|
204
|
+
elif hasattr(value, "to_dict"):
|
|
205
|
+
result[attr] = value.to_dict()
|
|
206
|
+
elif isinstance(value, dict):
|
|
207
|
+
result[attr] = dict(map(
|
|
208
|
+
lambda item: (item[0], item[1].to_dict())
|
|
209
|
+
if hasattr(item[1], "to_dict") else item,
|
|
210
|
+
value.items()
|
|
211
|
+
))
|
|
212
|
+
else:
|
|
213
|
+
result[attr] = value
|
|
214
|
+
if issubclass(ListBillingItemsRequest, dict):
|
|
215
|
+
for key, value in self.items():
|
|
216
|
+
result[key] = value
|
|
217
|
+
|
|
218
|
+
return result
|
|
219
|
+
|
|
220
|
+
def to_str(self):
|
|
221
|
+
"""Returns the string representation of the model"""
|
|
222
|
+
return pprint.pformat(self.to_dict())
|
|
223
|
+
|
|
224
|
+
def __repr__(self):
|
|
225
|
+
"""For `print` and `pprint`"""
|
|
226
|
+
return self.to_str()
|
|
227
|
+
|
|
228
|
+
def __eq__(self, other):
|
|
229
|
+
"""Returns true if both objects are equal"""
|
|
230
|
+
if not isinstance(other, ListBillingItemsRequest):
|
|
231
|
+
return False
|
|
232
|
+
|
|
233
|
+
return self.to_dict() == other.to_dict()
|
|
234
|
+
|
|
235
|
+
def __ne__(self, other):
|
|
236
|
+
"""Returns true if both objects are not equal"""
|
|
237
|
+
if not isinstance(other, ListBillingItemsRequest):
|
|
238
|
+
return True
|
|
239
|
+
|
|
240
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,253 @@
|
|
|
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 ListBillingItemsResponse(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_type': 'str',
|
|
39
|
+
'group_term': 'int',
|
|
40
|
+
'items': 'list[ItemForListBillingItemsOutput]',
|
|
41
|
+
'total': 'list[TotalForListBillingItemsOutput]'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
attribute_map = {
|
|
45
|
+
'account_id': 'AccountId',
|
|
46
|
+
'bill_period': 'BillPeriod',
|
|
47
|
+
'bill_type': 'BillType',
|
|
48
|
+
'group_term': 'GroupTerm',
|
|
49
|
+
'items': 'Items',
|
|
50
|
+
'total': 'Total'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, account_id=None, bill_period=None, bill_type=None, group_term=None, items=None, total=None, _configuration=None): # noqa: E501
|
|
54
|
+
"""ListBillingItemsResponse - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
if _configuration is None:
|
|
56
|
+
_configuration = Configuration()
|
|
57
|
+
self._configuration = _configuration
|
|
58
|
+
|
|
59
|
+
self._account_id = None
|
|
60
|
+
self._bill_period = None
|
|
61
|
+
self._bill_type = None
|
|
62
|
+
self._group_term = None
|
|
63
|
+
self._items = None
|
|
64
|
+
self._total = None
|
|
65
|
+
self.discriminator = None
|
|
66
|
+
|
|
67
|
+
if account_id is not None:
|
|
68
|
+
self.account_id = account_id
|
|
69
|
+
if bill_period is not None:
|
|
70
|
+
self.bill_period = bill_period
|
|
71
|
+
if bill_type is not None:
|
|
72
|
+
self.bill_type = bill_type
|
|
73
|
+
if group_term is not None:
|
|
74
|
+
self.group_term = group_term
|
|
75
|
+
if items is not None:
|
|
76
|
+
self.items = items
|
|
77
|
+
if total is not None:
|
|
78
|
+
self.total = total
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def account_id(self):
|
|
82
|
+
"""Gets the account_id of this ListBillingItemsResponse. # noqa: E501
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:return: The account_id of this ListBillingItemsResponse. # noqa: E501
|
|
86
|
+
:rtype: int
|
|
87
|
+
"""
|
|
88
|
+
return self._account_id
|
|
89
|
+
|
|
90
|
+
@account_id.setter
|
|
91
|
+
def account_id(self, account_id):
|
|
92
|
+
"""Sets the account_id of this ListBillingItemsResponse.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
:param account_id: The account_id of this ListBillingItemsResponse. # noqa: E501
|
|
96
|
+
:type: int
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
self._account_id = account_id
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def bill_period(self):
|
|
103
|
+
"""Gets the bill_period of this ListBillingItemsResponse. # noqa: E501
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:return: The bill_period of this ListBillingItemsResponse. # noqa: E501
|
|
107
|
+
:rtype: str
|
|
108
|
+
"""
|
|
109
|
+
return self._bill_period
|
|
110
|
+
|
|
111
|
+
@bill_period.setter
|
|
112
|
+
def bill_period(self, bill_period):
|
|
113
|
+
"""Sets the bill_period of this ListBillingItemsResponse.
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
:param bill_period: The bill_period of this ListBillingItemsResponse. # noqa: E501
|
|
117
|
+
:type: str
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
self._bill_period = bill_period
|
|
121
|
+
|
|
122
|
+
@property
|
|
123
|
+
def bill_type(self):
|
|
124
|
+
"""Gets the bill_type of this ListBillingItemsResponse. # noqa: E501
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:return: The bill_type of this ListBillingItemsResponse. # noqa: E501
|
|
128
|
+
:rtype: str
|
|
129
|
+
"""
|
|
130
|
+
return self._bill_type
|
|
131
|
+
|
|
132
|
+
@bill_type.setter
|
|
133
|
+
def bill_type(self, bill_type):
|
|
134
|
+
"""Sets the bill_type of this ListBillingItemsResponse.
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
:param bill_type: The bill_type of this ListBillingItemsResponse. # noqa: E501
|
|
138
|
+
:type: str
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
self._bill_type = bill_type
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
def group_term(self):
|
|
145
|
+
"""Gets the group_term of this ListBillingItemsResponse. # noqa: E501
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:return: The group_term of this ListBillingItemsResponse. # noqa: E501
|
|
149
|
+
:rtype: int
|
|
150
|
+
"""
|
|
151
|
+
return self._group_term
|
|
152
|
+
|
|
153
|
+
@group_term.setter
|
|
154
|
+
def group_term(self, group_term):
|
|
155
|
+
"""Sets the group_term of this ListBillingItemsResponse.
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
:param group_term: The group_term of this ListBillingItemsResponse. # noqa: E501
|
|
159
|
+
:type: int
|
|
160
|
+
"""
|
|
161
|
+
|
|
162
|
+
self._group_term = group_term
|
|
163
|
+
|
|
164
|
+
@property
|
|
165
|
+
def items(self):
|
|
166
|
+
"""Gets the items of this ListBillingItemsResponse. # noqa: E501
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
:return: The items of this ListBillingItemsResponse. # noqa: E501
|
|
170
|
+
:rtype: list[ItemForListBillingItemsOutput]
|
|
171
|
+
"""
|
|
172
|
+
return self._items
|
|
173
|
+
|
|
174
|
+
@items.setter
|
|
175
|
+
def items(self, items):
|
|
176
|
+
"""Sets the items of this ListBillingItemsResponse.
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
:param items: The items of this ListBillingItemsResponse. # noqa: E501
|
|
180
|
+
:type: list[ItemForListBillingItemsOutput]
|
|
181
|
+
"""
|
|
182
|
+
|
|
183
|
+
self._items = items
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
def total(self):
|
|
187
|
+
"""Gets the total of this ListBillingItemsResponse. # noqa: E501
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
:return: The total of this ListBillingItemsResponse. # noqa: E501
|
|
191
|
+
:rtype: list[TotalForListBillingItemsOutput]
|
|
192
|
+
"""
|
|
193
|
+
return self._total
|
|
194
|
+
|
|
195
|
+
@total.setter
|
|
196
|
+
def total(self, total):
|
|
197
|
+
"""Sets the total of this ListBillingItemsResponse.
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
:param total: The total of this ListBillingItemsResponse. # noqa: E501
|
|
201
|
+
:type: list[TotalForListBillingItemsOutput]
|
|
202
|
+
"""
|
|
203
|
+
|
|
204
|
+
self._total = total
|
|
205
|
+
|
|
206
|
+
def to_dict(self):
|
|
207
|
+
"""Returns the model properties as a dict"""
|
|
208
|
+
result = {}
|
|
209
|
+
|
|
210
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
211
|
+
value = getattr(self, attr)
|
|
212
|
+
if isinstance(value, list):
|
|
213
|
+
result[attr] = list(map(
|
|
214
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
215
|
+
value
|
|
216
|
+
))
|
|
217
|
+
elif hasattr(value, "to_dict"):
|
|
218
|
+
result[attr] = value.to_dict()
|
|
219
|
+
elif isinstance(value, dict):
|
|
220
|
+
result[attr] = dict(map(
|
|
221
|
+
lambda item: (item[0], item[1].to_dict())
|
|
222
|
+
if hasattr(item[1], "to_dict") else item,
|
|
223
|
+
value.items()
|
|
224
|
+
))
|
|
225
|
+
else:
|
|
226
|
+
result[attr] = value
|
|
227
|
+
if issubclass(ListBillingItemsResponse, dict):
|
|
228
|
+
for key, value in self.items():
|
|
229
|
+
result[key] = value
|
|
230
|
+
|
|
231
|
+
return result
|
|
232
|
+
|
|
233
|
+
def to_str(self):
|
|
234
|
+
"""Returns the string representation of the model"""
|
|
235
|
+
return pprint.pformat(self.to_dict())
|
|
236
|
+
|
|
237
|
+
def __repr__(self):
|
|
238
|
+
"""For `print` and `pprint`"""
|
|
239
|
+
return self.to_str()
|
|
240
|
+
|
|
241
|
+
def __eq__(self, other):
|
|
242
|
+
"""Returns true if both objects are equal"""
|
|
243
|
+
if not isinstance(other, ListBillingItemsResponse):
|
|
244
|
+
return False
|
|
245
|
+
|
|
246
|
+
return self.to_dict() == other.to_dict()
|
|
247
|
+
|
|
248
|
+
def __ne__(self, other):
|
|
249
|
+
"""Returns true if both objects are not equal"""
|
|
250
|
+
if not isinstance(other, ListBillingItemsResponse):
|
|
251
|
+
return True
|
|
252
|
+
|
|
253
|
+
return self.to_dict() != other.to_dict()
|