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.

Files changed (76) hide show
  1. {volcengine_python_sdk-4.0.25.dist-info → volcengine_python_sdk-4.0.26.dist-info}/METADATA +1 -1
  2. {volcengine_python_sdk-4.0.25.dist-info → volcengine_python_sdk-4.0.26.dist-info}/RECORD +76 -11
  3. volcenginesdkbilling/__init__.py +65 -0
  4. volcenginesdkbilling/api/billing_api.py +1662 -13
  5. volcenginesdkbilling/models/__init__.py +65 -0
  6. volcenginesdkbilling/models/billing_mode_info_list_for_list_budget_filter_billing_mode_output.py +149 -0
  7. volcenginesdkbilling/models/budget_alert_message_detail_list_for_query_budget_detail_output.py +279 -0
  8. volcenginesdkbilling/models/budget_alert_message_for_create_budget_input.py +201 -0
  9. volcenginesdkbilling/models/budget_alert_message_for_update_budget_input.py +201 -0
  10. volcenginesdkbilling/models/budget_alert_rule_for_create_budget_input.py +215 -0
  11. volcenginesdkbilling/models/budget_alert_rule_for_update_budget_input.py +215 -0
  12. volcenginesdkbilling/models/budget_alert_rule_list_for_query_budget_detail_output.py +201 -0
  13. volcenginesdkbilling/models/budget_amount_for_create_budget_input.py +175 -0
  14. volcenginesdkbilling/models/budget_amount_for_update_budget_input.py +175 -0
  15. volcenginesdkbilling/models/budget_amount_list_for_list_budget_amount_by_budget_id_output.py +253 -0
  16. volcenginesdkbilling/models/budget_for_create_budget_input.py +274 -0
  17. volcenginesdkbilling/models/budget_for_query_budget_detail_output.py +253 -0
  18. volcenginesdkbilling/models/budget_for_update_budget_input.py +274 -0
  19. volcenginesdkbilling/models/budget_list_for_list_budget_output.py +357 -0
  20. volcenginesdkbilling/models/budget_range_billing_mode_for_query_budget_detail_output.py +149 -0
  21. volcenginesdkbilling/models/budget_range_for_create_budget_input.py +331 -0
  22. volcenginesdkbilling/models/budget_range_for_update_budget_input.py +331 -0
  23. volcenginesdkbilling/models/budget_range_info_for_query_budget_detail_output.py +331 -0
  24. volcenginesdkbilling/models/budget_range_owner_for_query_budget_detail_output.py +149 -0
  25. volcenginesdkbilling/models/budget_range_payer_for_query_budget_detail_output.py +149 -0
  26. volcenginesdkbilling/models/budget_range_product_for_query_budget_detail_output.py +149 -0
  27. volcenginesdkbilling/models/budget_range_region_for_query_budget_detail_output.py +149 -0
  28. volcenginesdkbilling/models/budget_range_subject_for_query_budget_detail_output.py +149 -0
  29. volcenginesdkbilling/models/budget_range_zone_for_query_budget_detail_output.py +149 -0
  30. volcenginesdkbilling/models/create_budget_request.py +227 -0
  31. volcenginesdkbilling/models/create_budget_response.py +123 -0
  32. volcenginesdkbilling/models/delete_budget_request.py +124 -0
  33. volcenginesdkbilling/models/delete_budget_response.py +95 -0
  34. volcenginesdkbilling/models/list_budget_amount_by_budget_id_request.py +124 -0
  35. volcenginesdkbilling/models/list_budget_amount_by_budget_id_response.py +123 -0
  36. volcenginesdkbilling/models/list_budget_filter_billing_mode_request.py +151 -0
  37. volcenginesdkbilling/models/list_budget_filter_billing_mode_response.py +201 -0
  38. volcenginesdkbilling/models/list_budget_filter_owner_id_request.py +95 -0
  39. volcenginesdkbilling/models/list_budget_filter_owner_id_response.py +123 -0
  40. volcenginesdkbilling/models/list_budget_filter_payer_id_request.py +95 -0
  41. volcenginesdkbilling/models/list_budget_filter_payer_id_response.py +123 -0
  42. volcenginesdkbilling/models/list_budget_filter_product_request.py +151 -0
  43. volcenginesdkbilling/models/list_budget_filter_product_response.py +201 -0
  44. volcenginesdkbilling/models/list_budget_filter_project_request.py +151 -0
  45. volcenginesdkbilling/models/list_budget_filter_project_response.py +201 -0
  46. volcenginesdkbilling/models/list_budget_filter_region_code_request.py +151 -0
  47. volcenginesdkbilling/models/list_budget_filter_region_code_response.py +201 -0
  48. volcenginesdkbilling/models/list_budget_filter_subject_info_request.py +151 -0
  49. volcenginesdkbilling/models/list_budget_filter_subject_info_response.py +201 -0
  50. volcenginesdkbilling/models/list_budget_filter_tag_key_request.py +151 -0
  51. volcenginesdkbilling/models/list_budget_filter_tag_key_response.py +201 -0
  52. volcenginesdkbilling/models/list_budget_filter_tag_value_request.py +178 -0
  53. volcenginesdkbilling/models/list_budget_filter_tag_value_response.py +201 -0
  54. volcenginesdkbilling/models/list_budget_filter_zone_code_request.py +151 -0
  55. volcenginesdkbilling/models/list_budget_filter_zone_code_response.py +201 -0
  56. volcenginesdkbilling/models/list_budget_request.py +302 -0
  57. volcenginesdkbilling/models/list_budget_response.py +201 -0
  58. volcenginesdkbilling/models/list_for_list_budget_filter_owner_id_output.py +149 -0
  59. volcenginesdkbilling/models/list_for_list_budget_filter_payer_id_output.py +149 -0
  60. volcenginesdkbilling/models/list_for_list_budget_filter_product_output.py +149 -0
  61. volcenginesdkbilling/models/list_recipient_information_request.py +151 -0
  62. volcenginesdkbilling/models/list_recipient_information_response.py +201 -0
  63. volcenginesdkbilling/models/query_budget_detail_request.py +124 -0
  64. volcenginesdkbilling/models/query_budget_detail_response.py +201 -0
  65. volcenginesdkbilling/models/recipient_information_list_for_list_recipient_information_output.py +201 -0
  66. volcenginesdkbilling/models/region_info_list_for_list_budget_filter_region_code_output.py +149 -0
  67. volcenginesdkbilling/models/subject_info_list_for_list_budget_filter_subject_info_output.py +149 -0
  68. volcenginesdkbilling/models/update_budget_request.py +254 -0
  69. volcenginesdkbilling/models/update_budget_response.py +95 -0
  70. volcenginesdkbilling/models/zone_info_list_for_list_budget_filter_zone_code_output.py +149 -0
  71. volcenginesdkcore/api_client.py +1 -1
  72. volcenginesdkcore/configuration.py +1 -1
  73. {volcengine_python_sdk-4.0.25.dist-info → volcengine_python_sdk-4.0.26.dist-info}/WHEEL +0 -0
  74. {volcengine_python_sdk-4.0.25.dist-info → volcengine_python_sdk-4.0.26.dist-info}/licenses/LICENSE.txt +0 -0
  75. {volcengine_python_sdk-4.0.25.dist-info → volcengine_python_sdk-4.0.26.dist-info}/licenses/NOTICE.md +0 -0
  76. {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 ListRecipientInformationResponse(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
+ 'recipient_information_list': 'list[RecipientInformationListForListRecipientInformationOutput]',
39
+ 'total': 'int'
40
+ }
41
+
42
+ attribute_map = {
43
+ 'limit': 'Limit',
44
+ 'offset': 'Offset',
45
+ 'recipient_information_list': 'RecipientInformationList',
46
+ 'total': 'Total'
47
+ }
48
+
49
+ def __init__(self, limit=None, offset=None, recipient_information_list=None, total=None, _configuration=None): # noqa: E501
50
+ """ListRecipientInformationResponse - 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._recipient_information_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 recipient_information_list is not None:
66
+ self.recipient_information_list = recipient_information_list
67
+ if total is not None:
68
+ self.total = total
69
+
70
+ @property
71
+ def limit(self):
72
+ """Gets the limit of this ListRecipientInformationResponse. # noqa: E501
73
+
74
+
75
+ :return: The limit of this ListRecipientInformationResponse. # 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 ListRecipientInformationResponse.
83
+
84
+
85
+ :param limit: The limit of this ListRecipientInformationResponse. # noqa: E501
86
+ :type: int
87
+ """
88
+
89
+ self._limit = limit
90
+
91
+ @property
92
+ def offset(self):
93
+ """Gets the offset of this ListRecipientInformationResponse. # noqa: E501
94
+
95
+
96
+ :return: The offset of this ListRecipientInformationResponse. # 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 ListRecipientInformationResponse.
104
+
105
+
106
+ :param offset: The offset of this ListRecipientInformationResponse. # noqa: E501
107
+ :type: int
108
+ """
109
+
110
+ self._offset = offset
111
+
112
+ @property
113
+ def recipient_information_list(self):
114
+ """Gets the recipient_information_list of this ListRecipientInformationResponse. # noqa: E501
115
+
116
+
117
+ :return: The recipient_information_list of this ListRecipientInformationResponse. # noqa: E501
118
+ :rtype: list[RecipientInformationListForListRecipientInformationOutput]
119
+ """
120
+ return self._recipient_information_list
121
+
122
+ @recipient_information_list.setter
123
+ def recipient_information_list(self, recipient_information_list):
124
+ """Sets the recipient_information_list of this ListRecipientInformationResponse.
125
+
126
+
127
+ :param recipient_information_list: The recipient_information_list of this ListRecipientInformationResponse. # noqa: E501
128
+ :type: list[RecipientInformationListForListRecipientInformationOutput]
129
+ """
130
+
131
+ self._recipient_information_list = recipient_information_list
132
+
133
+ @property
134
+ def total(self):
135
+ """Gets the total of this ListRecipientInformationResponse. # noqa: E501
136
+
137
+
138
+ :return: The total of this ListRecipientInformationResponse. # 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 ListRecipientInformationResponse.
146
+
147
+
148
+ :param total: The total of this ListRecipientInformationResponse. # 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(ListRecipientInformationResponse, 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, ListRecipientInformationResponse):
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, ListRecipientInformationResponse):
199
+ return True
200
+
201
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,124 @@
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 QueryBudgetDetailRequest(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_id': 'str'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'budget_id': 'BudgetID'
41
+ }
42
+
43
+ def __init__(self, budget_id=None, _configuration=None): # noqa: E501
44
+ """QueryBudgetDetailRequest - a model defined in Swagger""" # noqa: E501
45
+ if _configuration is None:
46
+ _configuration = Configuration()
47
+ self._configuration = _configuration
48
+
49
+ self._budget_id = None
50
+ self.discriminator = None
51
+
52
+ self.budget_id = budget_id
53
+
54
+ @property
55
+ def budget_id(self):
56
+ """Gets the budget_id of this QueryBudgetDetailRequest. # noqa: E501
57
+
58
+
59
+ :return: The budget_id of this QueryBudgetDetailRequest. # noqa: E501
60
+ :rtype: str
61
+ """
62
+ return self._budget_id
63
+
64
+ @budget_id.setter
65
+ def budget_id(self, budget_id):
66
+ """Sets the budget_id of this QueryBudgetDetailRequest.
67
+
68
+
69
+ :param budget_id: The budget_id of this QueryBudgetDetailRequest. # noqa: E501
70
+ :type: str
71
+ """
72
+ if self._configuration.client_side_validation and budget_id is None:
73
+ raise ValueError("Invalid value for `budget_id`, must not be `None`") # noqa: E501
74
+
75
+ self._budget_id = budget_id
76
+
77
+ def to_dict(self):
78
+ """Returns the model properties as a dict"""
79
+ result = {}
80
+
81
+ for attr, _ in six.iteritems(self.swagger_types):
82
+ value = getattr(self, attr)
83
+ if isinstance(value, list):
84
+ result[attr] = list(map(
85
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
86
+ value
87
+ ))
88
+ elif hasattr(value, "to_dict"):
89
+ result[attr] = value.to_dict()
90
+ elif isinstance(value, dict):
91
+ result[attr] = dict(map(
92
+ lambda item: (item[0], item[1].to_dict())
93
+ if hasattr(item[1], "to_dict") else item,
94
+ value.items()
95
+ ))
96
+ else:
97
+ result[attr] = value
98
+ if issubclass(QueryBudgetDetailRequest, dict):
99
+ for key, value in self.items():
100
+ result[key] = value
101
+
102
+ return result
103
+
104
+ def to_str(self):
105
+ """Returns the string representation of the model"""
106
+ return pprint.pformat(self.to_dict())
107
+
108
+ def __repr__(self):
109
+ """For `print` and `pprint`"""
110
+ return self.to_str()
111
+
112
+ def __eq__(self, other):
113
+ """Returns true if both objects are equal"""
114
+ if not isinstance(other, QueryBudgetDetailRequest):
115
+ return False
116
+
117
+ return self.to_dict() == other.to_dict()
118
+
119
+ def __ne__(self, other):
120
+ """Returns true if both objects are not equal"""
121
+ if not isinstance(other, QueryBudgetDetailRequest):
122
+ return True
123
+
124
+ 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 QueryBudgetDetailResponse(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': 'BudgetForQueryBudgetDetailOutput',
37
+ 'budget_alert_message_detail_list': 'list[BudgetAlertMessageDetailListForQueryBudgetDetailOutput]',
38
+ 'budget_alert_rule_list': 'list[BudgetAlertRuleListForQueryBudgetDetailOutput]',
39
+ 'budget_range_info': 'BudgetRangeInfoForQueryBudgetDetailOutput'
40
+ }
41
+
42
+ attribute_map = {
43
+ 'budget': 'Budget',
44
+ 'budget_alert_message_detail_list': 'BudgetAlertMessageDetailList',
45
+ 'budget_alert_rule_list': 'BudgetAlertRuleList',
46
+ 'budget_range_info': 'BudgetRangeInfo'
47
+ }
48
+
49
+ def __init__(self, budget=None, budget_alert_message_detail_list=None, budget_alert_rule_list=None, budget_range_info=None, _configuration=None): # noqa: E501
50
+ """QueryBudgetDetailResponse - a model defined in Swagger""" # noqa: E501
51
+ if _configuration is None:
52
+ _configuration = Configuration()
53
+ self._configuration = _configuration
54
+
55
+ self._budget = None
56
+ self._budget_alert_message_detail_list = None
57
+ self._budget_alert_rule_list = None
58
+ self._budget_range_info = None
59
+ self.discriminator = None
60
+
61
+ if budget is not None:
62
+ self.budget = budget
63
+ if budget_alert_message_detail_list is not None:
64
+ self.budget_alert_message_detail_list = budget_alert_message_detail_list
65
+ if budget_alert_rule_list is not None:
66
+ self.budget_alert_rule_list = budget_alert_rule_list
67
+ if budget_range_info is not None:
68
+ self.budget_range_info = budget_range_info
69
+
70
+ @property
71
+ def budget(self):
72
+ """Gets the budget of this QueryBudgetDetailResponse. # noqa: E501
73
+
74
+
75
+ :return: The budget of this QueryBudgetDetailResponse. # noqa: E501
76
+ :rtype: BudgetForQueryBudgetDetailOutput
77
+ """
78
+ return self._budget
79
+
80
+ @budget.setter
81
+ def budget(self, budget):
82
+ """Sets the budget of this QueryBudgetDetailResponse.
83
+
84
+
85
+ :param budget: The budget of this QueryBudgetDetailResponse. # noqa: E501
86
+ :type: BudgetForQueryBudgetDetailOutput
87
+ """
88
+
89
+ self._budget = budget
90
+
91
+ @property
92
+ def budget_alert_message_detail_list(self):
93
+ """Gets the budget_alert_message_detail_list of this QueryBudgetDetailResponse. # noqa: E501
94
+
95
+
96
+ :return: The budget_alert_message_detail_list of this QueryBudgetDetailResponse. # noqa: E501
97
+ :rtype: list[BudgetAlertMessageDetailListForQueryBudgetDetailOutput]
98
+ """
99
+ return self._budget_alert_message_detail_list
100
+
101
+ @budget_alert_message_detail_list.setter
102
+ def budget_alert_message_detail_list(self, budget_alert_message_detail_list):
103
+ """Sets the budget_alert_message_detail_list of this QueryBudgetDetailResponse.
104
+
105
+
106
+ :param budget_alert_message_detail_list: The budget_alert_message_detail_list of this QueryBudgetDetailResponse. # noqa: E501
107
+ :type: list[BudgetAlertMessageDetailListForQueryBudgetDetailOutput]
108
+ """
109
+
110
+ self._budget_alert_message_detail_list = budget_alert_message_detail_list
111
+
112
+ @property
113
+ def budget_alert_rule_list(self):
114
+ """Gets the budget_alert_rule_list of this QueryBudgetDetailResponse. # noqa: E501
115
+
116
+
117
+ :return: The budget_alert_rule_list of this QueryBudgetDetailResponse. # noqa: E501
118
+ :rtype: list[BudgetAlertRuleListForQueryBudgetDetailOutput]
119
+ """
120
+ return self._budget_alert_rule_list
121
+
122
+ @budget_alert_rule_list.setter
123
+ def budget_alert_rule_list(self, budget_alert_rule_list):
124
+ """Sets the budget_alert_rule_list of this QueryBudgetDetailResponse.
125
+
126
+
127
+ :param budget_alert_rule_list: The budget_alert_rule_list of this QueryBudgetDetailResponse. # noqa: E501
128
+ :type: list[BudgetAlertRuleListForQueryBudgetDetailOutput]
129
+ """
130
+
131
+ self._budget_alert_rule_list = budget_alert_rule_list
132
+
133
+ @property
134
+ def budget_range_info(self):
135
+ """Gets the budget_range_info of this QueryBudgetDetailResponse. # noqa: E501
136
+
137
+
138
+ :return: The budget_range_info of this QueryBudgetDetailResponse. # noqa: E501
139
+ :rtype: BudgetRangeInfoForQueryBudgetDetailOutput
140
+ """
141
+ return self._budget_range_info
142
+
143
+ @budget_range_info.setter
144
+ def budget_range_info(self, budget_range_info):
145
+ """Sets the budget_range_info of this QueryBudgetDetailResponse.
146
+
147
+
148
+ :param budget_range_info: The budget_range_info of this QueryBudgetDetailResponse. # noqa: E501
149
+ :type: BudgetRangeInfoForQueryBudgetDetailOutput
150
+ """
151
+
152
+ self._budget_range_info = budget_range_info
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(QueryBudgetDetailResponse, 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, QueryBudgetDetailResponse):
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, QueryBudgetDetailResponse):
199
+ return True
200
+
201
+ return self.to_dict() != other.to_dict()