tencentcloud-sdk-python-billing 3.0.1102__tar.gz → 3.0.1103__tar.gz
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.
- {tencentcloud-sdk-python-billing-3.0.1102 → tencentcloud-sdk-python-billing-3.0.1103}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-billing-3.0.1102 → tencentcloud-sdk-python-billing-3.0.1103}/setup.py +1 -1
- {tencentcloud-sdk-python-billing-3.0.1102 → tencentcloud-sdk-python-billing-3.0.1103}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-billing-3.0.1102 → tencentcloud-sdk-python-billing-3.0.1103}/tencentcloud/billing/v20180709/billing_client.py +230 -0
- {tencentcloud-sdk-python-billing-3.0.1102 → tencentcloud-sdk-python-billing-3.0.1103}/tencentcloud/billing/v20180709/errorcodes.py +3 -0
- {tencentcloud-sdk-python-billing-3.0.1102 → tencentcloud-sdk-python-billing-3.0.1103}/tencentcloud/billing/v20180709/models.py +12771 -5033
- {tencentcloud-sdk-python-billing-3.0.1102 → tencentcloud-sdk-python-billing-3.0.1103}/tencentcloud_sdk_python_billing.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-billing-3.0.1103/tencentcloud_sdk_python_billing.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-billing-3.0.1102/tencentcloud_sdk_python_billing.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-billing-3.0.1102 → tencentcloud-sdk-python-billing-3.0.1103}/README.rst +0 -0
- {tencentcloud-sdk-python-billing-3.0.1102 → tencentcloud-sdk-python-billing-3.0.1103}/setup.cfg +0 -0
- {tencentcloud-sdk-python-billing-3.0.1102 → tencentcloud-sdk-python-billing-3.0.1103}/tencentcloud/billing/__init__.py +0 -0
- {tencentcloud-sdk-python-billing-3.0.1102 → tencentcloud-sdk-python-billing-3.0.1103}/tencentcloud/billing/v20180709/__init__.py +0 -0
- {tencentcloud-sdk-python-billing-3.0.1102 → tencentcloud-sdk-python-billing-3.0.1103}/tencentcloud_sdk_python_billing.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-billing-3.0.1102 → tencentcloud-sdk-python-billing-3.0.1103}/tencentcloud_sdk_python_billing.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-billing-3.0.1102 → tencentcloud-sdk-python-billing-3.0.1103}/tencentcloud_sdk_python_billing.egg-info/top_level.txt +0 -0
{tencentcloud-sdk-python-billing-3.0.1102 → tencentcloud-sdk-python-billing-3.0.1103}/setup.py
RENAMED
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-billing',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1103"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Billing SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -118,6 +118,213 @@ class BillingClient(AbstractClient):
|
|
|
118
118
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
119
119
|
|
|
120
120
|
|
|
121
|
+
def DescribeAllocateConditions(self, request):
|
|
122
|
+
"""查询资源目录筛选条件
|
|
123
|
+
|
|
124
|
+
:param request: Request instance for DescribeAllocateConditions.
|
|
125
|
+
:type request: :class:`tencentcloud.billing.v20180709.models.DescribeAllocateConditionsRequest`
|
|
126
|
+
:rtype: :class:`tencentcloud.billing.v20180709.models.DescribeAllocateConditionsResponse`
|
|
127
|
+
|
|
128
|
+
"""
|
|
129
|
+
try:
|
|
130
|
+
params = request._serialize()
|
|
131
|
+
headers = request.headers
|
|
132
|
+
body = self.call("DescribeAllocateConditions", params, headers=headers)
|
|
133
|
+
response = json.loads(body)
|
|
134
|
+
model = models.DescribeAllocateConditionsResponse()
|
|
135
|
+
model._deserialize(response["Response"])
|
|
136
|
+
return model
|
|
137
|
+
except Exception as e:
|
|
138
|
+
if isinstance(e, TencentCloudSDKException):
|
|
139
|
+
raise
|
|
140
|
+
else:
|
|
141
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
def DescribeAllocationBillConditions(self, request):
|
|
145
|
+
"""查询分账账单筛选条件
|
|
146
|
+
|
|
147
|
+
:param request: Request instance for DescribeAllocationBillConditions.
|
|
148
|
+
:type request: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationBillConditionsRequest`
|
|
149
|
+
:rtype: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationBillConditionsResponse`
|
|
150
|
+
|
|
151
|
+
"""
|
|
152
|
+
try:
|
|
153
|
+
params = request._serialize()
|
|
154
|
+
headers = request.headers
|
|
155
|
+
body = self.call("DescribeAllocationBillConditions", params, headers=headers)
|
|
156
|
+
response = json.loads(body)
|
|
157
|
+
model = models.DescribeAllocationBillConditionsResponse()
|
|
158
|
+
model._deserialize(response["Response"])
|
|
159
|
+
return model
|
|
160
|
+
except Exception as e:
|
|
161
|
+
if isinstance(e, TencentCloudSDKException):
|
|
162
|
+
raise
|
|
163
|
+
else:
|
|
164
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def DescribeAllocationBillDetail(self, request):
|
|
168
|
+
"""查询分账账单明细
|
|
169
|
+
|
|
170
|
+
:param request: Request instance for DescribeAllocationBillDetail.
|
|
171
|
+
:type request: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationBillDetailRequest`
|
|
172
|
+
:rtype: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationBillDetailResponse`
|
|
173
|
+
|
|
174
|
+
"""
|
|
175
|
+
try:
|
|
176
|
+
params = request._serialize()
|
|
177
|
+
headers = request.headers
|
|
178
|
+
body = self.call("DescribeAllocationBillDetail", params, headers=headers)
|
|
179
|
+
response = json.loads(body)
|
|
180
|
+
model = models.DescribeAllocationBillDetailResponse()
|
|
181
|
+
model._deserialize(response["Response"])
|
|
182
|
+
return model
|
|
183
|
+
except Exception as e:
|
|
184
|
+
if isinstance(e, TencentCloudSDKException):
|
|
185
|
+
raise
|
|
186
|
+
else:
|
|
187
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
def DescribeAllocationMonthOverview(self, request):
|
|
191
|
+
"""查询分账账单月概览
|
|
192
|
+
|
|
193
|
+
:param request: Request instance for DescribeAllocationMonthOverview.
|
|
194
|
+
:type request: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationMonthOverviewRequest`
|
|
195
|
+
:rtype: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationMonthOverviewResponse`
|
|
196
|
+
|
|
197
|
+
"""
|
|
198
|
+
try:
|
|
199
|
+
params = request._serialize()
|
|
200
|
+
headers = request.headers
|
|
201
|
+
body = self.call("DescribeAllocationMonthOverview", params, headers=headers)
|
|
202
|
+
response = json.loads(body)
|
|
203
|
+
model = models.DescribeAllocationMonthOverviewResponse()
|
|
204
|
+
model._deserialize(response["Response"])
|
|
205
|
+
return model
|
|
206
|
+
except Exception as e:
|
|
207
|
+
if isinstance(e, TencentCloudSDKException):
|
|
208
|
+
raise
|
|
209
|
+
else:
|
|
210
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
def DescribeAllocationOverview(self, request):
|
|
214
|
+
"""查询分账账单日概览
|
|
215
|
+
|
|
216
|
+
:param request: Request instance for DescribeAllocationOverview.
|
|
217
|
+
:type request: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationOverviewRequest`
|
|
218
|
+
:rtype: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationOverviewResponse`
|
|
219
|
+
|
|
220
|
+
"""
|
|
221
|
+
try:
|
|
222
|
+
params = request._serialize()
|
|
223
|
+
headers = request.headers
|
|
224
|
+
body = self.call("DescribeAllocationOverview", params, headers=headers)
|
|
225
|
+
response = json.loads(body)
|
|
226
|
+
model = models.DescribeAllocationOverviewResponse()
|
|
227
|
+
model._deserialize(response["Response"])
|
|
228
|
+
return model
|
|
229
|
+
except Exception as e:
|
|
230
|
+
if isinstance(e, TencentCloudSDKException):
|
|
231
|
+
raise
|
|
232
|
+
else:
|
|
233
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
def DescribeAllocationSummaryByBusiness(self, request):
|
|
237
|
+
"""查询分账账单按产品汇总
|
|
238
|
+
|
|
239
|
+
:param request: Request instance for DescribeAllocationSummaryByBusiness.
|
|
240
|
+
:type request: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationSummaryByBusinessRequest`
|
|
241
|
+
:rtype: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationSummaryByBusinessResponse`
|
|
242
|
+
|
|
243
|
+
"""
|
|
244
|
+
try:
|
|
245
|
+
params = request._serialize()
|
|
246
|
+
headers = request.headers
|
|
247
|
+
body = self.call("DescribeAllocationSummaryByBusiness", params, headers=headers)
|
|
248
|
+
response = json.loads(body)
|
|
249
|
+
model = models.DescribeAllocationSummaryByBusinessResponse()
|
|
250
|
+
model._deserialize(response["Response"])
|
|
251
|
+
return model
|
|
252
|
+
except Exception as e:
|
|
253
|
+
if isinstance(e, TencentCloudSDKException):
|
|
254
|
+
raise
|
|
255
|
+
else:
|
|
256
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
def DescribeAllocationSummaryByItem(self, request):
|
|
260
|
+
"""查询分账账单按组件汇总
|
|
261
|
+
|
|
262
|
+
:param request: Request instance for DescribeAllocationSummaryByItem.
|
|
263
|
+
:type request: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationSummaryByItemRequest`
|
|
264
|
+
:rtype: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationSummaryByItemResponse`
|
|
265
|
+
|
|
266
|
+
"""
|
|
267
|
+
try:
|
|
268
|
+
params = request._serialize()
|
|
269
|
+
headers = request.headers
|
|
270
|
+
body = self.call("DescribeAllocationSummaryByItem", params, headers=headers)
|
|
271
|
+
response = json.loads(body)
|
|
272
|
+
model = models.DescribeAllocationSummaryByItemResponse()
|
|
273
|
+
model._deserialize(response["Response"])
|
|
274
|
+
return model
|
|
275
|
+
except Exception as e:
|
|
276
|
+
if isinstance(e, TencentCloudSDKException):
|
|
277
|
+
raise
|
|
278
|
+
else:
|
|
279
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
def DescribeAllocationSummaryByResource(self, request):
|
|
283
|
+
"""查询分账账单按资源汇总
|
|
284
|
+
|
|
285
|
+
:param request: Request instance for DescribeAllocationSummaryByResource.
|
|
286
|
+
:type request: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationSummaryByResourceRequest`
|
|
287
|
+
:rtype: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationSummaryByResourceResponse`
|
|
288
|
+
|
|
289
|
+
"""
|
|
290
|
+
try:
|
|
291
|
+
params = request._serialize()
|
|
292
|
+
headers = request.headers
|
|
293
|
+
body = self.call("DescribeAllocationSummaryByResource", params, headers=headers)
|
|
294
|
+
response = json.loads(body)
|
|
295
|
+
model = models.DescribeAllocationSummaryByResourceResponse()
|
|
296
|
+
model._deserialize(response["Response"])
|
|
297
|
+
return model
|
|
298
|
+
except Exception as e:
|
|
299
|
+
if isinstance(e, TencentCloudSDKException):
|
|
300
|
+
raise
|
|
301
|
+
else:
|
|
302
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
def DescribeAllocationTrendByMonth(self, request):
|
|
306
|
+
"""查询分账账单费用趋势
|
|
307
|
+
|
|
308
|
+
:param request: Request instance for DescribeAllocationTrendByMonth.
|
|
309
|
+
:type request: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationTrendByMonthRequest`
|
|
310
|
+
:rtype: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationTrendByMonthResponse`
|
|
311
|
+
|
|
312
|
+
"""
|
|
313
|
+
try:
|
|
314
|
+
params = request._serialize()
|
|
315
|
+
headers = request.headers
|
|
316
|
+
body = self.call("DescribeAllocationTrendByMonth", params, headers=headers)
|
|
317
|
+
response = json.loads(body)
|
|
318
|
+
model = models.DescribeAllocationTrendByMonthResponse()
|
|
319
|
+
model._deserialize(response["Response"])
|
|
320
|
+
return model
|
|
321
|
+
except Exception as e:
|
|
322
|
+
if isinstance(e, TencentCloudSDKException):
|
|
323
|
+
raise
|
|
324
|
+
else:
|
|
325
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
326
|
+
|
|
327
|
+
|
|
121
328
|
def DescribeBillDetail(self, request):
|
|
122
329
|
"""获取账单明细数据。
|
|
123
330
|
注意事项:
|
|
@@ -651,6 +858,29 @@ class BillingClient(AbstractClient):
|
|
|
651
858
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
652
859
|
|
|
653
860
|
|
|
861
|
+
def DescribeGatherResource(self, request):
|
|
862
|
+
"""查询分账账单资源归集汇总
|
|
863
|
+
|
|
864
|
+
:param request: Request instance for DescribeGatherResource.
|
|
865
|
+
:type request: :class:`tencentcloud.billing.v20180709.models.DescribeGatherResourceRequest`
|
|
866
|
+
:rtype: :class:`tencentcloud.billing.v20180709.models.DescribeGatherResourceResponse`
|
|
867
|
+
|
|
868
|
+
"""
|
|
869
|
+
try:
|
|
870
|
+
params = request._serialize()
|
|
871
|
+
headers = request.headers
|
|
872
|
+
body = self.call("DescribeGatherResource", params, headers=headers)
|
|
873
|
+
response = json.loads(body)
|
|
874
|
+
model = models.DescribeGatherResourceResponse()
|
|
875
|
+
model._deserialize(response["Response"])
|
|
876
|
+
return model
|
|
877
|
+
except Exception as e:
|
|
878
|
+
if isinstance(e, TencentCloudSDKException):
|
|
879
|
+
raise
|
|
880
|
+
else:
|
|
881
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
882
|
+
|
|
883
|
+
|
|
654
884
|
def DescribeSavingPlanCoverage(self, request):
|
|
655
885
|
"""查询当前用户节省计划覆盖率明细数据,如无特别说明,金额单位均为元(国内站)或者美元(国际站)。
|
|
656
886
|
|
|
@@ -80,6 +80,9 @@ INVALIDPARAMETER_PARAMCHECKFAILED = 'InvalidParameter.ParamCheckFailed'
|
|
|
80
80
|
# 参数取值错误。
|
|
81
81
|
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
|
82
82
|
|
|
83
|
+
# 缺少参数错误。
|
|
84
|
+
MISSINGPARAMETER = 'MissingParameter'
|
|
85
|
+
|
|
83
86
|
# 账号没有cam授权。
|
|
84
87
|
UNAUTHORIZEDOPERATION_CAMNOAUTH = 'UnauthorizedOperation.CamNoAuth'
|
|
85
88
|
|