volcengine-python-sdk 4.0.25__py2.py3-none-any.whl → 4.0.26__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of volcengine-python-sdk might be problematic. Click here for more details.
- {volcengine_python_sdk-4.0.25.dist-info → volcengine_python_sdk-4.0.26.dist-info}/METADATA +1 -1
- {volcengine_python_sdk-4.0.25.dist-info → volcengine_python_sdk-4.0.26.dist-info}/RECORD +76 -11
- volcenginesdkbilling/__init__.py +65 -0
- volcenginesdkbilling/api/billing_api.py +1662 -13
- volcenginesdkbilling/models/__init__.py +65 -0
- volcenginesdkbilling/models/billing_mode_info_list_for_list_budget_filter_billing_mode_output.py +149 -0
- volcenginesdkbilling/models/budget_alert_message_detail_list_for_query_budget_detail_output.py +279 -0
- volcenginesdkbilling/models/budget_alert_message_for_create_budget_input.py +201 -0
- volcenginesdkbilling/models/budget_alert_message_for_update_budget_input.py +201 -0
- volcenginesdkbilling/models/budget_alert_rule_for_create_budget_input.py +215 -0
- volcenginesdkbilling/models/budget_alert_rule_for_update_budget_input.py +215 -0
- volcenginesdkbilling/models/budget_alert_rule_list_for_query_budget_detail_output.py +201 -0
- volcenginesdkbilling/models/budget_amount_for_create_budget_input.py +175 -0
- volcenginesdkbilling/models/budget_amount_for_update_budget_input.py +175 -0
- volcenginesdkbilling/models/budget_amount_list_for_list_budget_amount_by_budget_id_output.py +253 -0
- volcenginesdkbilling/models/budget_for_create_budget_input.py +274 -0
- volcenginesdkbilling/models/budget_for_query_budget_detail_output.py +253 -0
- volcenginesdkbilling/models/budget_for_update_budget_input.py +274 -0
- volcenginesdkbilling/models/budget_list_for_list_budget_output.py +357 -0
- volcenginesdkbilling/models/budget_range_billing_mode_for_query_budget_detail_output.py +149 -0
- volcenginesdkbilling/models/budget_range_for_create_budget_input.py +331 -0
- volcenginesdkbilling/models/budget_range_for_update_budget_input.py +331 -0
- volcenginesdkbilling/models/budget_range_info_for_query_budget_detail_output.py +331 -0
- volcenginesdkbilling/models/budget_range_owner_for_query_budget_detail_output.py +149 -0
- volcenginesdkbilling/models/budget_range_payer_for_query_budget_detail_output.py +149 -0
- volcenginesdkbilling/models/budget_range_product_for_query_budget_detail_output.py +149 -0
- volcenginesdkbilling/models/budget_range_region_for_query_budget_detail_output.py +149 -0
- volcenginesdkbilling/models/budget_range_subject_for_query_budget_detail_output.py +149 -0
- volcenginesdkbilling/models/budget_range_zone_for_query_budget_detail_output.py +149 -0
- volcenginesdkbilling/models/create_budget_request.py +227 -0
- volcenginesdkbilling/models/create_budget_response.py +123 -0
- volcenginesdkbilling/models/delete_budget_request.py +124 -0
- volcenginesdkbilling/models/delete_budget_response.py +95 -0
- volcenginesdkbilling/models/list_budget_amount_by_budget_id_request.py +124 -0
- volcenginesdkbilling/models/list_budget_amount_by_budget_id_response.py +123 -0
- volcenginesdkbilling/models/list_budget_filter_billing_mode_request.py +151 -0
- volcenginesdkbilling/models/list_budget_filter_billing_mode_response.py +201 -0
- volcenginesdkbilling/models/list_budget_filter_owner_id_request.py +95 -0
- volcenginesdkbilling/models/list_budget_filter_owner_id_response.py +123 -0
- volcenginesdkbilling/models/list_budget_filter_payer_id_request.py +95 -0
- volcenginesdkbilling/models/list_budget_filter_payer_id_response.py +123 -0
- volcenginesdkbilling/models/list_budget_filter_product_request.py +151 -0
- volcenginesdkbilling/models/list_budget_filter_product_response.py +201 -0
- volcenginesdkbilling/models/list_budget_filter_project_request.py +151 -0
- volcenginesdkbilling/models/list_budget_filter_project_response.py +201 -0
- volcenginesdkbilling/models/list_budget_filter_region_code_request.py +151 -0
- volcenginesdkbilling/models/list_budget_filter_region_code_response.py +201 -0
- volcenginesdkbilling/models/list_budget_filter_subject_info_request.py +151 -0
- volcenginesdkbilling/models/list_budget_filter_subject_info_response.py +201 -0
- volcenginesdkbilling/models/list_budget_filter_tag_key_request.py +151 -0
- volcenginesdkbilling/models/list_budget_filter_tag_key_response.py +201 -0
- volcenginesdkbilling/models/list_budget_filter_tag_value_request.py +178 -0
- volcenginesdkbilling/models/list_budget_filter_tag_value_response.py +201 -0
- volcenginesdkbilling/models/list_budget_filter_zone_code_request.py +151 -0
- volcenginesdkbilling/models/list_budget_filter_zone_code_response.py +201 -0
- volcenginesdkbilling/models/list_budget_request.py +302 -0
- volcenginesdkbilling/models/list_budget_response.py +201 -0
- volcenginesdkbilling/models/list_for_list_budget_filter_owner_id_output.py +149 -0
- volcenginesdkbilling/models/list_for_list_budget_filter_payer_id_output.py +149 -0
- volcenginesdkbilling/models/list_for_list_budget_filter_product_output.py +149 -0
- volcenginesdkbilling/models/list_recipient_information_request.py +151 -0
- volcenginesdkbilling/models/list_recipient_information_response.py +201 -0
- volcenginesdkbilling/models/query_budget_detail_request.py +124 -0
- volcenginesdkbilling/models/query_budget_detail_response.py +201 -0
- volcenginesdkbilling/models/recipient_information_list_for_list_recipient_information_output.py +201 -0
- volcenginesdkbilling/models/region_info_list_for_list_budget_filter_region_code_output.py +149 -0
- volcenginesdkbilling/models/subject_info_list_for_list_budget_filter_subject_info_output.py +149 -0
- volcenginesdkbilling/models/update_budget_request.py +254 -0
- volcenginesdkbilling/models/update_budget_response.py +95 -0
- volcenginesdkbilling/models/zone_info_list_for_list_budget_filter_zone_code_output.py +149 -0
- volcenginesdkcore/api_client.py +1 -1
- volcenginesdkcore/configuration.py +1 -1
- {volcengine_python_sdk-4.0.25.dist-info → volcengine_python_sdk-4.0.26.dist-info}/WHEEL +0 -0
- {volcengine_python_sdk-4.0.25.dist-info → volcengine_python_sdk-4.0.26.dist-info}/licenses/LICENSE.txt +0 -0
- {volcengine_python_sdk-4.0.25.dist-info → volcengine_python_sdk-4.0.26.dist-info}/licenses/NOTICE.md +0 -0
- {volcengine_python_sdk-4.0.25.dist-info → volcengine_python_sdk-4.0.26.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
billing
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from volcenginesdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class BudgetAlertMessageForCreateBudgetInput(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
|
+
'email_send_switch': 'int',
|
|
37
|
+
'internal_send_switch': 'int',
|
|
38
|
+
'message_send_switch': 'int',
|
|
39
|
+
'recipient_id': 'int'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'email_send_switch': 'EmailSendSwitch',
|
|
44
|
+
'internal_send_switch': 'InternalSendSwitch',
|
|
45
|
+
'message_send_switch': 'MessageSendSwitch',
|
|
46
|
+
'recipient_id': 'RecipientID'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, email_send_switch=None, internal_send_switch=None, message_send_switch=None, recipient_id=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""BudgetAlertMessageForCreateBudgetInput - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._email_send_switch = None
|
|
56
|
+
self._internal_send_switch = None
|
|
57
|
+
self._message_send_switch = None
|
|
58
|
+
self._recipient_id = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if email_send_switch is not None:
|
|
62
|
+
self.email_send_switch = email_send_switch
|
|
63
|
+
if internal_send_switch is not None:
|
|
64
|
+
self.internal_send_switch = internal_send_switch
|
|
65
|
+
if message_send_switch is not None:
|
|
66
|
+
self.message_send_switch = message_send_switch
|
|
67
|
+
if recipient_id is not None:
|
|
68
|
+
self.recipient_id = recipient_id
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def email_send_switch(self):
|
|
72
|
+
"""Gets the email_send_switch of this BudgetAlertMessageForCreateBudgetInput. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The email_send_switch of this BudgetAlertMessageForCreateBudgetInput. # noqa: E501
|
|
76
|
+
:rtype: int
|
|
77
|
+
"""
|
|
78
|
+
return self._email_send_switch
|
|
79
|
+
|
|
80
|
+
@email_send_switch.setter
|
|
81
|
+
def email_send_switch(self, email_send_switch):
|
|
82
|
+
"""Sets the email_send_switch of this BudgetAlertMessageForCreateBudgetInput.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param email_send_switch: The email_send_switch of this BudgetAlertMessageForCreateBudgetInput. # noqa: E501
|
|
86
|
+
:type: int
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._email_send_switch = email_send_switch
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def internal_send_switch(self):
|
|
93
|
+
"""Gets the internal_send_switch of this BudgetAlertMessageForCreateBudgetInput. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The internal_send_switch of this BudgetAlertMessageForCreateBudgetInput. # noqa: E501
|
|
97
|
+
:rtype: int
|
|
98
|
+
"""
|
|
99
|
+
return self._internal_send_switch
|
|
100
|
+
|
|
101
|
+
@internal_send_switch.setter
|
|
102
|
+
def internal_send_switch(self, internal_send_switch):
|
|
103
|
+
"""Sets the internal_send_switch of this BudgetAlertMessageForCreateBudgetInput.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param internal_send_switch: The internal_send_switch of this BudgetAlertMessageForCreateBudgetInput. # noqa: E501
|
|
107
|
+
:type: int
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._internal_send_switch = internal_send_switch
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def message_send_switch(self):
|
|
114
|
+
"""Gets the message_send_switch of this BudgetAlertMessageForCreateBudgetInput. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The message_send_switch of this BudgetAlertMessageForCreateBudgetInput. # noqa: E501
|
|
118
|
+
:rtype: int
|
|
119
|
+
"""
|
|
120
|
+
return self._message_send_switch
|
|
121
|
+
|
|
122
|
+
@message_send_switch.setter
|
|
123
|
+
def message_send_switch(self, message_send_switch):
|
|
124
|
+
"""Sets the message_send_switch of this BudgetAlertMessageForCreateBudgetInput.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param message_send_switch: The message_send_switch of this BudgetAlertMessageForCreateBudgetInput. # noqa: E501
|
|
128
|
+
:type: int
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._message_send_switch = message_send_switch
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def recipient_id(self):
|
|
135
|
+
"""Gets the recipient_id of this BudgetAlertMessageForCreateBudgetInput. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The recipient_id of this BudgetAlertMessageForCreateBudgetInput. # noqa: E501
|
|
139
|
+
:rtype: int
|
|
140
|
+
"""
|
|
141
|
+
return self._recipient_id
|
|
142
|
+
|
|
143
|
+
@recipient_id.setter
|
|
144
|
+
def recipient_id(self, recipient_id):
|
|
145
|
+
"""Sets the recipient_id of this BudgetAlertMessageForCreateBudgetInput.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param recipient_id: The recipient_id of this BudgetAlertMessageForCreateBudgetInput. # noqa: E501
|
|
149
|
+
:type: int
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._recipient_id = recipient_id
|
|
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(BudgetAlertMessageForCreateBudgetInput, 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, BudgetAlertMessageForCreateBudgetInput):
|
|
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, BudgetAlertMessageForCreateBudgetInput):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
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 BudgetAlertMessageForUpdateBudgetInput(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
|
+
'email_send_switch': 'int',
|
|
37
|
+
'internal_send_switch': 'int',
|
|
38
|
+
'message_send_switch': 'int',
|
|
39
|
+
'recipient_id': 'int'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'email_send_switch': 'EmailSendSwitch',
|
|
44
|
+
'internal_send_switch': 'InternalSendSwitch',
|
|
45
|
+
'message_send_switch': 'MessageSendSwitch',
|
|
46
|
+
'recipient_id': 'RecipientID'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, email_send_switch=None, internal_send_switch=None, message_send_switch=None, recipient_id=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""BudgetAlertMessageForUpdateBudgetInput - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._email_send_switch = None
|
|
56
|
+
self._internal_send_switch = None
|
|
57
|
+
self._message_send_switch = None
|
|
58
|
+
self._recipient_id = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if email_send_switch is not None:
|
|
62
|
+
self.email_send_switch = email_send_switch
|
|
63
|
+
if internal_send_switch is not None:
|
|
64
|
+
self.internal_send_switch = internal_send_switch
|
|
65
|
+
if message_send_switch is not None:
|
|
66
|
+
self.message_send_switch = message_send_switch
|
|
67
|
+
if recipient_id is not None:
|
|
68
|
+
self.recipient_id = recipient_id
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def email_send_switch(self):
|
|
72
|
+
"""Gets the email_send_switch of this BudgetAlertMessageForUpdateBudgetInput. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The email_send_switch of this BudgetAlertMessageForUpdateBudgetInput. # noqa: E501
|
|
76
|
+
:rtype: int
|
|
77
|
+
"""
|
|
78
|
+
return self._email_send_switch
|
|
79
|
+
|
|
80
|
+
@email_send_switch.setter
|
|
81
|
+
def email_send_switch(self, email_send_switch):
|
|
82
|
+
"""Sets the email_send_switch of this BudgetAlertMessageForUpdateBudgetInput.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param email_send_switch: The email_send_switch of this BudgetAlertMessageForUpdateBudgetInput. # noqa: E501
|
|
86
|
+
:type: int
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._email_send_switch = email_send_switch
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def internal_send_switch(self):
|
|
93
|
+
"""Gets the internal_send_switch of this BudgetAlertMessageForUpdateBudgetInput. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The internal_send_switch of this BudgetAlertMessageForUpdateBudgetInput. # noqa: E501
|
|
97
|
+
:rtype: int
|
|
98
|
+
"""
|
|
99
|
+
return self._internal_send_switch
|
|
100
|
+
|
|
101
|
+
@internal_send_switch.setter
|
|
102
|
+
def internal_send_switch(self, internal_send_switch):
|
|
103
|
+
"""Sets the internal_send_switch of this BudgetAlertMessageForUpdateBudgetInput.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param internal_send_switch: The internal_send_switch of this BudgetAlertMessageForUpdateBudgetInput. # noqa: E501
|
|
107
|
+
:type: int
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._internal_send_switch = internal_send_switch
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def message_send_switch(self):
|
|
114
|
+
"""Gets the message_send_switch of this BudgetAlertMessageForUpdateBudgetInput. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The message_send_switch of this BudgetAlertMessageForUpdateBudgetInput. # noqa: E501
|
|
118
|
+
:rtype: int
|
|
119
|
+
"""
|
|
120
|
+
return self._message_send_switch
|
|
121
|
+
|
|
122
|
+
@message_send_switch.setter
|
|
123
|
+
def message_send_switch(self, message_send_switch):
|
|
124
|
+
"""Sets the message_send_switch of this BudgetAlertMessageForUpdateBudgetInput.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param message_send_switch: The message_send_switch of this BudgetAlertMessageForUpdateBudgetInput. # noqa: E501
|
|
128
|
+
:type: int
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._message_send_switch = message_send_switch
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def recipient_id(self):
|
|
135
|
+
"""Gets the recipient_id of this BudgetAlertMessageForUpdateBudgetInput. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The recipient_id of this BudgetAlertMessageForUpdateBudgetInput. # noqa: E501
|
|
139
|
+
:rtype: int
|
|
140
|
+
"""
|
|
141
|
+
return self._recipient_id
|
|
142
|
+
|
|
143
|
+
@recipient_id.setter
|
|
144
|
+
def recipient_id(self, recipient_id):
|
|
145
|
+
"""Sets the recipient_id of this BudgetAlertMessageForUpdateBudgetInput.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param recipient_id: The recipient_id of this BudgetAlertMessageForUpdateBudgetInput. # noqa: E501
|
|
149
|
+
:type: int
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._recipient_id = recipient_id
|
|
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(BudgetAlertMessageForUpdateBudgetInput, 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, BudgetAlertMessageForUpdateBudgetInput):
|
|
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, BudgetAlertMessageForUpdateBudgetInput):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,215 @@
|
|
|
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 BudgetAlertRuleForCreateBudgetInput(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_alert_item': 'str',
|
|
37
|
+
'budget_alert_rule_id': 'str',
|
|
38
|
+
'budget_alert_threshold': 'str',
|
|
39
|
+
'budget_alert_threshold_type': 'str'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'budget_alert_item': 'BudgetAlertItem',
|
|
44
|
+
'budget_alert_rule_id': 'BudgetAlertRuleID',
|
|
45
|
+
'budget_alert_threshold': 'BudgetAlertThreshold',
|
|
46
|
+
'budget_alert_threshold_type': 'BudgetAlertThresholdType'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, budget_alert_item=None, budget_alert_rule_id=None, budget_alert_threshold=None, budget_alert_threshold_type=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""BudgetAlertRuleForCreateBudgetInput - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._budget_alert_item = None
|
|
56
|
+
self._budget_alert_rule_id = None
|
|
57
|
+
self._budget_alert_threshold = None
|
|
58
|
+
self._budget_alert_threshold_type = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if budget_alert_item is not None:
|
|
62
|
+
self.budget_alert_item = budget_alert_item
|
|
63
|
+
if budget_alert_rule_id is not None:
|
|
64
|
+
self.budget_alert_rule_id = budget_alert_rule_id
|
|
65
|
+
if budget_alert_threshold is not None:
|
|
66
|
+
self.budget_alert_threshold = budget_alert_threshold
|
|
67
|
+
if budget_alert_threshold_type is not None:
|
|
68
|
+
self.budget_alert_threshold_type = budget_alert_threshold_type
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def budget_alert_item(self):
|
|
72
|
+
"""Gets the budget_alert_item of this BudgetAlertRuleForCreateBudgetInput. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The budget_alert_item of this BudgetAlertRuleForCreateBudgetInput. # noqa: E501
|
|
76
|
+
:rtype: str
|
|
77
|
+
"""
|
|
78
|
+
return self._budget_alert_item
|
|
79
|
+
|
|
80
|
+
@budget_alert_item.setter
|
|
81
|
+
def budget_alert_item(self, budget_alert_item):
|
|
82
|
+
"""Sets the budget_alert_item of this BudgetAlertRuleForCreateBudgetInput.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param budget_alert_item: The budget_alert_item of this BudgetAlertRuleForCreateBudgetInput. # noqa: E501
|
|
86
|
+
:type: str
|
|
87
|
+
"""
|
|
88
|
+
allowed_values = ["actual_amount"] # noqa: E501
|
|
89
|
+
if (self._configuration.client_side_validation and
|
|
90
|
+
budget_alert_item not in allowed_values):
|
|
91
|
+
raise ValueError(
|
|
92
|
+
"Invalid value for `budget_alert_item` ({0}), must be one of {1}" # noqa: E501
|
|
93
|
+
.format(budget_alert_item, allowed_values)
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
self._budget_alert_item = budget_alert_item
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
def budget_alert_rule_id(self):
|
|
100
|
+
"""Gets the budget_alert_rule_id of this BudgetAlertRuleForCreateBudgetInput. # noqa: E501
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
:return: The budget_alert_rule_id of this BudgetAlertRuleForCreateBudgetInput. # noqa: E501
|
|
104
|
+
:rtype: str
|
|
105
|
+
"""
|
|
106
|
+
return self._budget_alert_rule_id
|
|
107
|
+
|
|
108
|
+
@budget_alert_rule_id.setter
|
|
109
|
+
def budget_alert_rule_id(self, budget_alert_rule_id):
|
|
110
|
+
"""Sets the budget_alert_rule_id of this BudgetAlertRuleForCreateBudgetInput.
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
:param budget_alert_rule_id: The budget_alert_rule_id of this BudgetAlertRuleForCreateBudgetInput. # noqa: E501
|
|
114
|
+
:type: str
|
|
115
|
+
"""
|
|
116
|
+
|
|
117
|
+
self._budget_alert_rule_id = budget_alert_rule_id
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
def budget_alert_threshold(self):
|
|
121
|
+
"""Gets the budget_alert_threshold of this BudgetAlertRuleForCreateBudgetInput. # noqa: E501
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
:return: The budget_alert_threshold of this BudgetAlertRuleForCreateBudgetInput. # noqa: E501
|
|
125
|
+
:rtype: str
|
|
126
|
+
"""
|
|
127
|
+
return self._budget_alert_threshold
|
|
128
|
+
|
|
129
|
+
@budget_alert_threshold.setter
|
|
130
|
+
def budget_alert_threshold(self, budget_alert_threshold):
|
|
131
|
+
"""Sets the budget_alert_threshold of this BudgetAlertRuleForCreateBudgetInput.
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
:param budget_alert_threshold: The budget_alert_threshold of this BudgetAlertRuleForCreateBudgetInput. # noqa: E501
|
|
135
|
+
:type: str
|
|
136
|
+
"""
|
|
137
|
+
|
|
138
|
+
self._budget_alert_threshold = budget_alert_threshold
|
|
139
|
+
|
|
140
|
+
@property
|
|
141
|
+
def budget_alert_threshold_type(self):
|
|
142
|
+
"""Gets the budget_alert_threshold_type of this BudgetAlertRuleForCreateBudgetInput. # noqa: E501
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
:return: The budget_alert_threshold_type of this BudgetAlertRuleForCreateBudgetInput. # noqa: E501
|
|
146
|
+
:rtype: str
|
|
147
|
+
"""
|
|
148
|
+
return self._budget_alert_threshold_type
|
|
149
|
+
|
|
150
|
+
@budget_alert_threshold_type.setter
|
|
151
|
+
def budget_alert_threshold_type(self, budget_alert_threshold_type):
|
|
152
|
+
"""Sets the budget_alert_threshold_type of this BudgetAlertRuleForCreateBudgetInput.
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
:param budget_alert_threshold_type: The budget_alert_threshold_type of this BudgetAlertRuleForCreateBudgetInput. # noqa: E501
|
|
156
|
+
:type: str
|
|
157
|
+
"""
|
|
158
|
+
allowed_values = ["amount", "ratio"] # noqa: E501
|
|
159
|
+
if (self._configuration.client_side_validation and
|
|
160
|
+
budget_alert_threshold_type not in allowed_values):
|
|
161
|
+
raise ValueError(
|
|
162
|
+
"Invalid value for `budget_alert_threshold_type` ({0}), must be one of {1}" # noqa: E501
|
|
163
|
+
.format(budget_alert_threshold_type, allowed_values)
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
self._budget_alert_threshold_type = budget_alert_threshold_type
|
|
167
|
+
|
|
168
|
+
def to_dict(self):
|
|
169
|
+
"""Returns the model properties as a dict"""
|
|
170
|
+
result = {}
|
|
171
|
+
|
|
172
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
173
|
+
value = getattr(self, attr)
|
|
174
|
+
if isinstance(value, list):
|
|
175
|
+
result[attr] = list(map(
|
|
176
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
177
|
+
value
|
|
178
|
+
))
|
|
179
|
+
elif hasattr(value, "to_dict"):
|
|
180
|
+
result[attr] = value.to_dict()
|
|
181
|
+
elif isinstance(value, dict):
|
|
182
|
+
result[attr] = dict(map(
|
|
183
|
+
lambda item: (item[0], item[1].to_dict())
|
|
184
|
+
if hasattr(item[1], "to_dict") else item,
|
|
185
|
+
value.items()
|
|
186
|
+
))
|
|
187
|
+
else:
|
|
188
|
+
result[attr] = value
|
|
189
|
+
if issubclass(BudgetAlertRuleForCreateBudgetInput, dict):
|
|
190
|
+
for key, value in self.items():
|
|
191
|
+
result[key] = value
|
|
192
|
+
|
|
193
|
+
return result
|
|
194
|
+
|
|
195
|
+
def to_str(self):
|
|
196
|
+
"""Returns the string representation of the model"""
|
|
197
|
+
return pprint.pformat(self.to_dict())
|
|
198
|
+
|
|
199
|
+
def __repr__(self):
|
|
200
|
+
"""For `print` and `pprint`"""
|
|
201
|
+
return self.to_str()
|
|
202
|
+
|
|
203
|
+
def __eq__(self, other):
|
|
204
|
+
"""Returns true if both objects are equal"""
|
|
205
|
+
if not isinstance(other, BudgetAlertRuleForCreateBudgetInput):
|
|
206
|
+
return False
|
|
207
|
+
|
|
208
|
+
return self.to_dict() == other.to_dict()
|
|
209
|
+
|
|
210
|
+
def __ne__(self, other):
|
|
211
|
+
"""Returns true if both objects are not equal"""
|
|
212
|
+
if not isinstance(other, BudgetAlertRuleForCreateBudgetInput):
|
|
213
|
+
return True
|
|
214
|
+
|
|
215
|
+
return self.to_dict() != other.to_dict()
|