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,175 @@
|
|
|
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 BudgetAmountForUpdateBudgetInput(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_amount': 'str',
|
|
37
|
+
'budget_amount_id': 'str',
|
|
38
|
+
'budget_period': 'str'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'budget_amount': 'BudgetAmount',
|
|
43
|
+
'budget_amount_id': 'BudgetAmountID',
|
|
44
|
+
'budget_period': 'BudgetPeriod'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, budget_amount=None, budget_amount_id=None, budget_period=None, _configuration=None): # noqa: E501
|
|
48
|
+
"""BudgetAmountForUpdateBudgetInput - a model defined in Swagger""" # noqa: E501
|
|
49
|
+
if _configuration is None:
|
|
50
|
+
_configuration = Configuration()
|
|
51
|
+
self._configuration = _configuration
|
|
52
|
+
|
|
53
|
+
self._budget_amount = None
|
|
54
|
+
self._budget_amount_id = None
|
|
55
|
+
self._budget_period = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
if budget_amount is not None:
|
|
59
|
+
self.budget_amount = budget_amount
|
|
60
|
+
if budget_amount_id is not None:
|
|
61
|
+
self.budget_amount_id = budget_amount_id
|
|
62
|
+
if budget_period is not None:
|
|
63
|
+
self.budget_period = budget_period
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def budget_amount(self):
|
|
67
|
+
"""Gets the budget_amount of this BudgetAmountForUpdateBudgetInput. # noqa: E501
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
:return: The budget_amount of this BudgetAmountForUpdateBudgetInput. # noqa: E501
|
|
71
|
+
:rtype: str
|
|
72
|
+
"""
|
|
73
|
+
return self._budget_amount
|
|
74
|
+
|
|
75
|
+
@budget_amount.setter
|
|
76
|
+
def budget_amount(self, budget_amount):
|
|
77
|
+
"""Sets the budget_amount of this BudgetAmountForUpdateBudgetInput.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
:param budget_amount: The budget_amount of this BudgetAmountForUpdateBudgetInput. # noqa: E501
|
|
81
|
+
:type: str
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
self._budget_amount = budget_amount
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def budget_amount_id(self):
|
|
88
|
+
"""Gets the budget_amount_id of this BudgetAmountForUpdateBudgetInput. # noqa: E501
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
:return: The budget_amount_id of this BudgetAmountForUpdateBudgetInput. # noqa: E501
|
|
92
|
+
:rtype: str
|
|
93
|
+
"""
|
|
94
|
+
return self._budget_amount_id
|
|
95
|
+
|
|
96
|
+
@budget_amount_id.setter
|
|
97
|
+
def budget_amount_id(self, budget_amount_id):
|
|
98
|
+
"""Sets the budget_amount_id of this BudgetAmountForUpdateBudgetInput.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
:param budget_amount_id: The budget_amount_id of this BudgetAmountForUpdateBudgetInput. # noqa: E501
|
|
102
|
+
:type: str
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
self._budget_amount_id = budget_amount_id
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def budget_period(self):
|
|
109
|
+
"""Gets the budget_period of this BudgetAmountForUpdateBudgetInput. # noqa: E501
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
:return: The budget_period of this BudgetAmountForUpdateBudgetInput. # noqa: E501
|
|
113
|
+
:rtype: str
|
|
114
|
+
"""
|
|
115
|
+
return self._budget_period
|
|
116
|
+
|
|
117
|
+
@budget_period.setter
|
|
118
|
+
def budget_period(self, budget_period):
|
|
119
|
+
"""Sets the budget_period of this BudgetAmountForUpdateBudgetInput.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:param budget_period: The budget_period of this BudgetAmountForUpdateBudgetInput. # noqa: E501
|
|
123
|
+
:type: str
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
self._budget_period = budget_period
|
|
127
|
+
|
|
128
|
+
def to_dict(self):
|
|
129
|
+
"""Returns the model properties as a dict"""
|
|
130
|
+
result = {}
|
|
131
|
+
|
|
132
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
133
|
+
value = getattr(self, attr)
|
|
134
|
+
if isinstance(value, list):
|
|
135
|
+
result[attr] = list(map(
|
|
136
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
137
|
+
value
|
|
138
|
+
))
|
|
139
|
+
elif hasattr(value, "to_dict"):
|
|
140
|
+
result[attr] = value.to_dict()
|
|
141
|
+
elif isinstance(value, dict):
|
|
142
|
+
result[attr] = dict(map(
|
|
143
|
+
lambda item: (item[0], item[1].to_dict())
|
|
144
|
+
if hasattr(item[1], "to_dict") else item,
|
|
145
|
+
value.items()
|
|
146
|
+
))
|
|
147
|
+
else:
|
|
148
|
+
result[attr] = value
|
|
149
|
+
if issubclass(BudgetAmountForUpdateBudgetInput, dict):
|
|
150
|
+
for key, value in self.items():
|
|
151
|
+
result[key] = value
|
|
152
|
+
|
|
153
|
+
return result
|
|
154
|
+
|
|
155
|
+
def to_str(self):
|
|
156
|
+
"""Returns the string representation of the model"""
|
|
157
|
+
return pprint.pformat(self.to_dict())
|
|
158
|
+
|
|
159
|
+
def __repr__(self):
|
|
160
|
+
"""For `print` and `pprint`"""
|
|
161
|
+
return self.to_str()
|
|
162
|
+
|
|
163
|
+
def __eq__(self, other):
|
|
164
|
+
"""Returns true if both objects are equal"""
|
|
165
|
+
if not isinstance(other, BudgetAmountForUpdateBudgetInput):
|
|
166
|
+
return False
|
|
167
|
+
|
|
168
|
+
return self.to_dict() == other.to_dict()
|
|
169
|
+
|
|
170
|
+
def __ne__(self, other):
|
|
171
|
+
"""Returns true if both objects are not equal"""
|
|
172
|
+
if not isinstance(other, BudgetAmountForUpdateBudgetInput):
|
|
173
|
+
return True
|
|
174
|
+
|
|
175
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,253 @@
|
|
|
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 BudgetAmountListForListBudgetAmountByBudgetIDOutput(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'actual_amount': 'str',
|
|
37
|
+
'budget_amount': 'str',
|
|
38
|
+
'budget_amount_id': 'str',
|
|
39
|
+
'budget_period': 'str',
|
|
40
|
+
'difference': 'str',
|
|
41
|
+
'ratio': 'str'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
attribute_map = {
|
|
45
|
+
'actual_amount': 'ActualAmount',
|
|
46
|
+
'budget_amount': 'BudgetAmount',
|
|
47
|
+
'budget_amount_id': 'BudgetAmountID',
|
|
48
|
+
'budget_period': 'BudgetPeriod',
|
|
49
|
+
'difference': 'Difference',
|
|
50
|
+
'ratio': 'Ratio'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, actual_amount=None, budget_amount=None, budget_amount_id=None, budget_period=None, difference=None, ratio=None, _configuration=None): # noqa: E501
|
|
54
|
+
"""BudgetAmountListForListBudgetAmountByBudgetIDOutput - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
if _configuration is None:
|
|
56
|
+
_configuration = Configuration()
|
|
57
|
+
self._configuration = _configuration
|
|
58
|
+
|
|
59
|
+
self._actual_amount = None
|
|
60
|
+
self._budget_amount = None
|
|
61
|
+
self._budget_amount_id = None
|
|
62
|
+
self._budget_period = None
|
|
63
|
+
self._difference = None
|
|
64
|
+
self._ratio = None
|
|
65
|
+
self.discriminator = None
|
|
66
|
+
|
|
67
|
+
if actual_amount is not None:
|
|
68
|
+
self.actual_amount = actual_amount
|
|
69
|
+
if budget_amount is not None:
|
|
70
|
+
self.budget_amount = budget_amount
|
|
71
|
+
if budget_amount_id is not None:
|
|
72
|
+
self.budget_amount_id = budget_amount_id
|
|
73
|
+
if budget_period is not None:
|
|
74
|
+
self.budget_period = budget_period
|
|
75
|
+
if difference is not None:
|
|
76
|
+
self.difference = difference
|
|
77
|
+
if ratio is not None:
|
|
78
|
+
self.ratio = ratio
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def actual_amount(self):
|
|
82
|
+
"""Gets the actual_amount of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:return: The actual_amount of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
86
|
+
:rtype: str
|
|
87
|
+
"""
|
|
88
|
+
return self._actual_amount
|
|
89
|
+
|
|
90
|
+
@actual_amount.setter
|
|
91
|
+
def actual_amount(self, actual_amount):
|
|
92
|
+
"""Sets the actual_amount of this BudgetAmountListForListBudgetAmountByBudgetIDOutput.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
:param actual_amount: The actual_amount of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
96
|
+
:type: str
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
self._actual_amount = actual_amount
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def budget_amount(self):
|
|
103
|
+
"""Gets the budget_amount of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:return: The budget_amount of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
107
|
+
:rtype: str
|
|
108
|
+
"""
|
|
109
|
+
return self._budget_amount
|
|
110
|
+
|
|
111
|
+
@budget_amount.setter
|
|
112
|
+
def budget_amount(self, budget_amount):
|
|
113
|
+
"""Sets the budget_amount of this BudgetAmountListForListBudgetAmountByBudgetIDOutput.
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
:param budget_amount: The budget_amount of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
117
|
+
:type: str
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
self._budget_amount = budget_amount
|
|
121
|
+
|
|
122
|
+
@property
|
|
123
|
+
def budget_amount_id(self):
|
|
124
|
+
"""Gets the budget_amount_id of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:return: The budget_amount_id of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
128
|
+
:rtype: str
|
|
129
|
+
"""
|
|
130
|
+
return self._budget_amount_id
|
|
131
|
+
|
|
132
|
+
@budget_amount_id.setter
|
|
133
|
+
def budget_amount_id(self, budget_amount_id):
|
|
134
|
+
"""Sets the budget_amount_id of this BudgetAmountListForListBudgetAmountByBudgetIDOutput.
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
:param budget_amount_id: The budget_amount_id of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
138
|
+
:type: str
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
self._budget_amount_id = budget_amount_id
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
def budget_period(self):
|
|
145
|
+
"""Gets the budget_period of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:return: The budget_period of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
149
|
+
:rtype: str
|
|
150
|
+
"""
|
|
151
|
+
return self._budget_period
|
|
152
|
+
|
|
153
|
+
@budget_period.setter
|
|
154
|
+
def budget_period(self, budget_period):
|
|
155
|
+
"""Sets the budget_period of this BudgetAmountListForListBudgetAmountByBudgetIDOutput.
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
:param budget_period: The budget_period of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
159
|
+
:type: str
|
|
160
|
+
"""
|
|
161
|
+
|
|
162
|
+
self._budget_period = budget_period
|
|
163
|
+
|
|
164
|
+
@property
|
|
165
|
+
def difference(self):
|
|
166
|
+
"""Gets the difference of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
:return: The difference of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
170
|
+
:rtype: str
|
|
171
|
+
"""
|
|
172
|
+
return self._difference
|
|
173
|
+
|
|
174
|
+
@difference.setter
|
|
175
|
+
def difference(self, difference):
|
|
176
|
+
"""Sets the difference of this BudgetAmountListForListBudgetAmountByBudgetIDOutput.
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
:param difference: The difference of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
180
|
+
:type: str
|
|
181
|
+
"""
|
|
182
|
+
|
|
183
|
+
self._difference = difference
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
def ratio(self):
|
|
187
|
+
"""Gets the ratio of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
:return: The ratio of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
191
|
+
:rtype: str
|
|
192
|
+
"""
|
|
193
|
+
return self._ratio
|
|
194
|
+
|
|
195
|
+
@ratio.setter
|
|
196
|
+
def ratio(self, ratio):
|
|
197
|
+
"""Sets the ratio of this BudgetAmountListForListBudgetAmountByBudgetIDOutput.
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
:param ratio: The ratio of this BudgetAmountListForListBudgetAmountByBudgetIDOutput. # noqa: E501
|
|
201
|
+
:type: str
|
|
202
|
+
"""
|
|
203
|
+
|
|
204
|
+
self._ratio = ratio
|
|
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(BudgetAmountListForListBudgetAmountByBudgetIDOutput, 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, BudgetAmountListForListBudgetAmountByBudgetIDOutput):
|
|
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, BudgetAmountListForListBudgetAmountByBudgetIDOutput):
|
|
251
|
+
return True
|
|
252
|
+
|
|
253
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,274 @@
|
|
|
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 BudgetForCreateBudgetInput(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_end_time': 'str',
|
|
37
|
+
'budget_name': 'str',
|
|
38
|
+
'budget_plan_type': 'str',
|
|
39
|
+
'budget_start_time': 'str',
|
|
40
|
+
'budget_type': 'str',
|
|
41
|
+
'period': 'str'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
attribute_map = {
|
|
45
|
+
'budget_end_time': 'BudgetEndTime',
|
|
46
|
+
'budget_name': 'BudgetName',
|
|
47
|
+
'budget_plan_type': 'BudgetPlanType',
|
|
48
|
+
'budget_start_time': 'BudgetStartTime',
|
|
49
|
+
'budget_type': 'BudgetType',
|
|
50
|
+
'period': 'Period'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, budget_end_time=None, budget_name=None, budget_plan_type=None, budget_start_time=None, budget_type=None, period=None, _configuration=None): # noqa: E501
|
|
54
|
+
"""BudgetForCreateBudgetInput - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
if _configuration is None:
|
|
56
|
+
_configuration = Configuration()
|
|
57
|
+
self._configuration = _configuration
|
|
58
|
+
|
|
59
|
+
self._budget_end_time = None
|
|
60
|
+
self._budget_name = None
|
|
61
|
+
self._budget_plan_type = None
|
|
62
|
+
self._budget_start_time = None
|
|
63
|
+
self._budget_type = None
|
|
64
|
+
self._period = None
|
|
65
|
+
self.discriminator = None
|
|
66
|
+
|
|
67
|
+
if budget_end_time is not None:
|
|
68
|
+
self.budget_end_time = budget_end_time
|
|
69
|
+
if budget_name is not None:
|
|
70
|
+
self.budget_name = budget_name
|
|
71
|
+
if budget_plan_type is not None:
|
|
72
|
+
self.budget_plan_type = budget_plan_type
|
|
73
|
+
if budget_start_time is not None:
|
|
74
|
+
self.budget_start_time = budget_start_time
|
|
75
|
+
if budget_type is not None:
|
|
76
|
+
self.budget_type = budget_type
|
|
77
|
+
if period is not None:
|
|
78
|
+
self.period = period
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def budget_end_time(self):
|
|
82
|
+
"""Gets the budget_end_time of this BudgetForCreateBudgetInput. # noqa: E501
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:return: The budget_end_time of this BudgetForCreateBudgetInput. # noqa: E501
|
|
86
|
+
:rtype: str
|
|
87
|
+
"""
|
|
88
|
+
return self._budget_end_time
|
|
89
|
+
|
|
90
|
+
@budget_end_time.setter
|
|
91
|
+
def budget_end_time(self, budget_end_time):
|
|
92
|
+
"""Sets the budget_end_time of this BudgetForCreateBudgetInput.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
:param budget_end_time: The budget_end_time of this BudgetForCreateBudgetInput. # noqa: E501
|
|
96
|
+
:type: str
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
self._budget_end_time = budget_end_time
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def budget_name(self):
|
|
103
|
+
"""Gets the budget_name of this BudgetForCreateBudgetInput. # noqa: E501
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:return: The budget_name of this BudgetForCreateBudgetInput. # noqa: E501
|
|
107
|
+
:rtype: str
|
|
108
|
+
"""
|
|
109
|
+
return self._budget_name
|
|
110
|
+
|
|
111
|
+
@budget_name.setter
|
|
112
|
+
def budget_name(self, budget_name):
|
|
113
|
+
"""Sets the budget_name of this BudgetForCreateBudgetInput.
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
:param budget_name: The budget_name of this BudgetForCreateBudgetInput. # noqa: E501
|
|
117
|
+
:type: str
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
self._budget_name = budget_name
|
|
121
|
+
|
|
122
|
+
@property
|
|
123
|
+
def budget_plan_type(self):
|
|
124
|
+
"""Gets the budget_plan_type of this BudgetForCreateBudgetInput. # noqa: E501
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:return: The budget_plan_type of this BudgetForCreateBudgetInput. # noqa: E501
|
|
128
|
+
:rtype: str
|
|
129
|
+
"""
|
|
130
|
+
return self._budget_plan_type
|
|
131
|
+
|
|
132
|
+
@budget_plan_type.setter
|
|
133
|
+
def budget_plan_type(self, budget_plan_type):
|
|
134
|
+
"""Sets the budget_plan_type of this BudgetForCreateBudgetInput.
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
:param budget_plan_type: The budget_plan_type of this BudgetForCreateBudgetInput. # noqa: E501
|
|
138
|
+
:type: str
|
|
139
|
+
"""
|
|
140
|
+
allowed_values = ["fixed_amount", "planning"] # noqa: E501
|
|
141
|
+
if (self._configuration.client_side_validation and
|
|
142
|
+
budget_plan_type not in allowed_values):
|
|
143
|
+
raise ValueError(
|
|
144
|
+
"Invalid value for `budget_plan_type` ({0}), must be one of {1}" # noqa: E501
|
|
145
|
+
.format(budget_plan_type, allowed_values)
|
|
146
|
+
)
|
|
147
|
+
|
|
148
|
+
self._budget_plan_type = budget_plan_type
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
def budget_start_time(self):
|
|
152
|
+
"""Gets the budget_start_time of this BudgetForCreateBudgetInput. # noqa: E501
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
:return: The budget_start_time of this BudgetForCreateBudgetInput. # noqa: E501
|
|
156
|
+
:rtype: str
|
|
157
|
+
"""
|
|
158
|
+
return self._budget_start_time
|
|
159
|
+
|
|
160
|
+
@budget_start_time.setter
|
|
161
|
+
def budget_start_time(self, budget_start_time):
|
|
162
|
+
"""Sets the budget_start_time of this BudgetForCreateBudgetInput.
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
:param budget_start_time: The budget_start_time of this BudgetForCreateBudgetInput. # noqa: E501
|
|
166
|
+
:type: str
|
|
167
|
+
"""
|
|
168
|
+
|
|
169
|
+
self._budget_start_time = budget_start_time
|
|
170
|
+
|
|
171
|
+
@property
|
|
172
|
+
def budget_type(self):
|
|
173
|
+
"""Gets the budget_type of this BudgetForCreateBudgetInput. # noqa: E501
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
:return: The budget_type of this BudgetForCreateBudgetInput. # noqa: E501
|
|
177
|
+
:rtype: str
|
|
178
|
+
"""
|
|
179
|
+
return self._budget_type
|
|
180
|
+
|
|
181
|
+
@budget_type.setter
|
|
182
|
+
def budget_type(self, budget_type):
|
|
183
|
+
"""Sets the budget_type of this BudgetForCreateBudgetInput.
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
:param budget_type: The budget_type of this BudgetForCreateBudgetInput. # noqa: E501
|
|
187
|
+
:type: str
|
|
188
|
+
"""
|
|
189
|
+
allowed_values = ["cost_budget"] # noqa: E501
|
|
190
|
+
if (self._configuration.client_side_validation and
|
|
191
|
+
budget_type not in allowed_values):
|
|
192
|
+
raise ValueError(
|
|
193
|
+
"Invalid value for `budget_type` ({0}), must be one of {1}" # noqa: E501
|
|
194
|
+
.format(budget_type, allowed_values)
|
|
195
|
+
)
|
|
196
|
+
|
|
197
|
+
self._budget_type = budget_type
|
|
198
|
+
|
|
199
|
+
@property
|
|
200
|
+
def period(self):
|
|
201
|
+
"""Gets the period of this BudgetForCreateBudgetInput. # noqa: E501
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
:return: The period of this BudgetForCreateBudgetInput. # noqa: E501
|
|
205
|
+
:rtype: str
|
|
206
|
+
"""
|
|
207
|
+
return self._period
|
|
208
|
+
|
|
209
|
+
@period.setter
|
|
210
|
+
def period(self, period):
|
|
211
|
+
"""Sets the period of this BudgetForCreateBudgetInput.
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
:param period: The period of this BudgetForCreateBudgetInput. # noqa: E501
|
|
215
|
+
:type: str
|
|
216
|
+
"""
|
|
217
|
+
allowed_values = ["month", "quarter", "year"] # noqa: E501
|
|
218
|
+
if (self._configuration.client_side_validation and
|
|
219
|
+
period not in allowed_values):
|
|
220
|
+
raise ValueError(
|
|
221
|
+
"Invalid value for `period` ({0}), must be one of {1}" # noqa: E501
|
|
222
|
+
.format(period, allowed_values)
|
|
223
|
+
)
|
|
224
|
+
|
|
225
|
+
self._period = period
|
|
226
|
+
|
|
227
|
+
def to_dict(self):
|
|
228
|
+
"""Returns the model properties as a dict"""
|
|
229
|
+
result = {}
|
|
230
|
+
|
|
231
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
232
|
+
value = getattr(self, attr)
|
|
233
|
+
if isinstance(value, list):
|
|
234
|
+
result[attr] = list(map(
|
|
235
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
236
|
+
value
|
|
237
|
+
))
|
|
238
|
+
elif hasattr(value, "to_dict"):
|
|
239
|
+
result[attr] = value.to_dict()
|
|
240
|
+
elif isinstance(value, dict):
|
|
241
|
+
result[attr] = dict(map(
|
|
242
|
+
lambda item: (item[0], item[1].to_dict())
|
|
243
|
+
if hasattr(item[1], "to_dict") else item,
|
|
244
|
+
value.items()
|
|
245
|
+
))
|
|
246
|
+
else:
|
|
247
|
+
result[attr] = value
|
|
248
|
+
if issubclass(BudgetForCreateBudgetInput, dict):
|
|
249
|
+
for key, value in self.items():
|
|
250
|
+
result[key] = value
|
|
251
|
+
|
|
252
|
+
return result
|
|
253
|
+
|
|
254
|
+
def to_str(self):
|
|
255
|
+
"""Returns the string representation of the model"""
|
|
256
|
+
return pprint.pformat(self.to_dict())
|
|
257
|
+
|
|
258
|
+
def __repr__(self):
|
|
259
|
+
"""For `print` and `pprint`"""
|
|
260
|
+
return self.to_str()
|
|
261
|
+
|
|
262
|
+
def __eq__(self, other):
|
|
263
|
+
"""Returns true if both objects are equal"""
|
|
264
|
+
if not isinstance(other, BudgetForCreateBudgetInput):
|
|
265
|
+
return False
|
|
266
|
+
|
|
267
|
+
return self.to_dict() == other.to_dict()
|
|
268
|
+
|
|
269
|
+
def __ne__(self, other):
|
|
270
|
+
"""Returns true if both objects are not equal"""
|
|
271
|
+
if not isinstance(other, BudgetForCreateBudgetInput):
|
|
272
|
+
return True
|
|
273
|
+
|
|
274
|
+
return self.to_dict() != other.to_dict()
|