tencentcloud-sdk-billing 3.0.1057 → 3.0.1058

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a783c3ed20ad3702772a57b30f30346cf7c866f7
4
- data.tar.gz: 5e3aaac29f69dbbb4b8c8fab5d89ebf519b6e6fb
3
+ metadata.gz: 41d14cbf13d164f0e726083b77e04e5f23c98287
4
+ data.tar.gz: 7825c7173f368b8a5ccae3d1ea574a3551da23d2
5
5
  SHA512:
6
- metadata.gz: 148b7f2fe81578ac756219260c283757b961cb3313cb3a91f3f6834e27ac5949db3cb3f02cf0ef293d5b6bd708788149572cbc2069daeaaaa3eee29d141a0872
7
- data.tar.gz: 333bed11c90d6737f44b2200eb3504e6b768bf3e5e49a9e087406cbd08d73672af36449a873a0e16921d11a3c3a2cb541b6dc7bea52fa9f3667720b3972a74fe
6
+ metadata.gz: 005f5540623dc14b442bdd0438f6ce36415aec15f1a3e38fc64b88fed95687878b94c026e681c904216e2a94dce17dd159372717410ff1097794028e7a3c8e29
7
+ data.tar.gz: bc55820e464235b22f3bf9048274bd4c670d49f97df5814db8f6bc8019bea678c7007b63f6d3f70a1c65f86676c70bc016bd5c6348324082841a9bf29da9b6e5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1057
1
+ 3.0.1058
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 创建公摊规则
33
+
34
+ # @param request: Request instance for CreateAllocationRule.
35
+ # @type request: :class:`Tencentcloud::billing::V20180709::CreateAllocationRuleRequest`
36
+ # @rtype: :class:`Tencentcloud::billing::V20180709::CreateAllocationRuleResponse`
37
+ def CreateAllocationRule(request)
38
+ body = send_request('CreateAllocationRule', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateAllocationRuleResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
32
56
  # 批量设置分账标签
33
57
 
34
58
  # @param request: Request instance for CreateAllocationTag.
@@ -53,6 +77,78 @@ module TencentCloud
53
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
78
  end
55
79
 
80
+ # 创建分账单元
81
+
82
+ # @param request: Request instance for CreateAllocationUnit.
83
+ # @type request: :class:`Tencentcloud::billing::V20180709::CreateAllocationUnitRequest`
84
+ # @rtype: :class:`Tencentcloud::billing::V20180709::CreateAllocationUnitResponse`
85
+ def CreateAllocationUnit(request)
86
+ body = send_request('CreateAllocationUnit', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CreateAllocationUnitResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 创建归集规则
105
+
106
+ # @param request: Request instance for CreateGatherRule.
107
+ # @type request: :class:`Tencentcloud::billing::V20180709::CreateGatherRuleRequest`
108
+ # @rtype: :class:`Tencentcloud::billing::V20180709::CreateGatherRuleResponse`
109
+ def CreateGatherRule(request)
110
+ body = send_request('CreateGatherRule', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = CreateGatherRuleResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
128
+ # 公摊规则删除接口
129
+
130
+ # @param request: Request instance for DeleteAllocationRule.
131
+ # @type request: :class:`Tencentcloud::billing::V20180709::DeleteAllocationRuleRequest`
132
+ # @rtype: :class:`Tencentcloud::billing::V20180709::DeleteAllocationRuleResponse`
133
+ def DeleteAllocationRule(request)
134
+ body = send_request('DeleteAllocationRule', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DeleteAllocationRuleResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
56
152
  # 批量取消设置分账标签
57
153
 
58
154
  # @param request: Request instance for DeleteAllocationTag.
@@ -77,6 +173,54 @@ module TencentCloud
77
173
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
174
  end
79
175
 
176
+ # 删除分账单元
177
+
178
+ # @param request: Request instance for DeleteAllocationUnit.
179
+ # @type request: :class:`Tencentcloud::billing::V20180709::DeleteAllocationUnitRequest`
180
+ # @rtype: :class:`Tencentcloud::billing::V20180709::DeleteAllocationUnitResponse`
181
+ def DeleteAllocationUnit(request)
182
+ body = send_request('DeleteAllocationUnit', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = DeleteAllocationUnitResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
200
+ # 删除归集规则
201
+
202
+ # @param request: Request instance for DeleteGatherRule.
203
+ # @type request: :class:`Tencentcloud::billing::V20180709::DeleteGatherRuleRequest`
204
+ # @rtype: :class:`Tencentcloud::billing::V20180709::DeleteGatherRuleResponse`
205
+ def DeleteGatherRule(request)
206
+ body = send_request('DeleteGatherRule', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = DeleteGatherRuleResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
80
224
  # 获取云账户余额信息。
81
225
 
82
226
  # @param request: Request instance for DescribeAccountBalance.
@@ -221,6 +365,54 @@ module TencentCloud
221
365
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
366
  end
223
367
 
368
+ # 查询公摊规则详情
369
+
370
+ # @param request: Request instance for DescribeAllocationRuleDetail.
371
+ # @type request: :class:`Tencentcloud::billing::V20180709::DescribeAllocationRuleDetailRequest`
372
+ # @rtype: :class:`Tencentcloud::billing::V20180709::DescribeAllocationRuleDetailResponse`
373
+ def DescribeAllocationRuleDetail(request)
374
+ body = send_request('DescribeAllocationRuleDetail', request.serialize)
375
+ response = JSON.parse(body)
376
+ if response['Response'].key?('Error') == false
377
+ model = DescribeAllocationRuleDetailResponse.new
378
+ model.deserialize(response['Response'])
379
+ model
380
+ else
381
+ code = response['Response']['Error']['Code']
382
+ message = response['Response']['Error']['Message']
383
+ reqid = response['Response']['RequestId']
384
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
385
+ end
386
+ rescue TencentCloud::Common::TencentCloudSDKException => e
387
+ raise e
388
+ rescue StandardError => e
389
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
+ end
391
+
392
+ # 查询所有公摊规则概览
393
+
394
+ # @param request: Request instance for DescribeAllocationRuleSummary.
395
+ # @type request: :class:`Tencentcloud::billing::V20180709::DescribeAllocationRuleSummaryRequest`
396
+ # @rtype: :class:`Tencentcloud::billing::V20180709::DescribeAllocationRuleSummaryResponse`
397
+ def DescribeAllocationRuleSummary(request)
398
+ body = send_request('DescribeAllocationRuleSummary', request.serialize)
399
+ response = JSON.parse(body)
400
+ if response['Response'].key?('Error') == false
401
+ model = DescribeAllocationRuleSummaryResponse.new
402
+ model.deserialize(response['Response'])
403
+ model
404
+ else
405
+ code = response['Response']['Error']['Code']
406
+ message = response['Response']['Error']['Message']
407
+ reqid = response['Response']['RequestId']
408
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
409
+ end
410
+ rescue TencentCloud::Common::TencentCloudSDKException => e
411
+ raise e
412
+ rescue StandardError => e
413
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
414
+ end
415
+
224
416
  # 查询分账账单按产品汇总
225
417
 
226
418
  # @param request: Request instance for DescribeAllocationSummaryByBusiness.
@@ -293,6 +485,30 @@ module TencentCloud
293
485
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
486
  end
295
487
 
488
+ # 查询分账目录树
489
+
490
+ # @param request: Request instance for DescribeAllocationTree.
491
+ # @type request: :class:`Tencentcloud::billing::V20180709::DescribeAllocationTreeRequest`
492
+ # @rtype: :class:`Tencentcloud::billing::V20180709::DescribeAllocationTreeResponse`
493
+ def DescribeAllocationTree(request)
494
+ body = send_request('DescribeAllocationTree', request.serialize)
495
+ response = JSON.parse(body)
496
+ if response['Response'].key?('Error') == false
497
+ model = DescribeAllocationTreeResponse.new
498
+ model.deserialize(response['Response'])
499
+ model
500
+ else
501
+ code = response['Response']['Error']['Code']
502
+ message = response['Response']['Error']['Message']
503
+ reqid = response['Response']['RequestId']
504
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
505
+ end
506
+ rescue TencentCloud::Common::TencentCloudSDKException => e
507
+ raise e
508
+ rescue StandardError => e
509
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
+ end
511
+
296
512
  # 查询分账账单费用趋势
297
513
 
298
514
  # @param request: Request instance for DescribeAllocationTrendByMonth.
@@ -317,6 +533,30 @@ module TencentCloud
317
533
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
534
  end
319
535
 
536
+ # 查询分账单元详情
537
+
538
+ # @param request: Request instance for DescribeAllocationUnitDetail.
539
+ # @type request: :class:`Tencentcloud::billing::V20180709::DescribeAllocationUnitDetailRequest`
540
+ # @rtype: :class:`Tencentcloud::billing::V20180709::DescribeAllocationUnitDetailResponse`
541
+ def DescribeAllocationUnitDetail(request)
542
+ body = send_request('DescribeAllocationUnitDetail', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = DescribeAllocationUnitDetailResponse.new
546
+ model.deserialize(response['Response'])
547
+ model
548
+ else
549
+ code = response['Response']['Error']['Code']
550
+ message = response['Response']['Error']['Message']
551
+ reqid = response['Response']['RequestId']
552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
553
+ end
554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
555
+ raise e
556
+ rescue StandardError => e
557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
+ end
559
+
320
560
  # 可以通过API获取当前UIN是否有调账,客户可以更快地主动地获取调账情况。
321
561
 
322
562
  # @param request: Request instance for DescribeBillAdjustInfo.
@@ -924,6 +1164,30 @@ module TencentCloud
924
1164
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
925
1165
  end
926
1166
 
1167
+ # 查询归集规则详情
1168
+
1169
+ # @param request: Request instance for DescribeGatherRuleDetail.
1170
+ # @type request: :class:`Tencentcloud::billing::V20180709::DescribeGatherRuleDetailRequest`
1171
+ # @rtype: :class:`Tencentcloud::billing::V20180709::DescribeGatherRuleDetailResponse`
1172
+ def DescribeGatherRuleDetail(request)
1173
+ body = send_request('DescribeGatherRuleDetail', request.serialize)
1174
+ response = JSON.parse(body)
1175
+ if response['Response'].key?('Error') == false
1176
+ model = DescribeGatherRuleDetailResponse.new
1177
+ model.deserialize(response['Response'])
1178
+ model
1179
+ else
1180
+ code = response['Response']['Error']['Code']
1181
+ message = response['Response']['Error']['Message']
1182
+ reqid = response['Response']['RequestId']
1183
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1184
+ end
1185
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1186
+ raise e
1187
+ rescue StandardError => e
1188
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1189
+ end
1190
+
927
1191
  # 查询节省计划详情
928
1192
 
929
1193
  # @param request: Request instance for DescribeSavingPlanResourceInfo.
@@ -1020,6 +1284,78 @@ module TencentCloud
1020
1284
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1021
1285
  end
1022
1286
 
1287
+ # 编辑公摊规则
1288
+
1289
+ # @param request: Request instance for ModifyAllocationRule.
1290
+ # @type request: :class:`Tencentcloud::billing::V20180709::ModifyAllocationRuleRequest`
1291
+ # @rtype: :class:`Tencentcloud::billing::V20180709::ModifyAllocationRuleResponse`
1292
+ def ModifyAllocationRule(request)
1293
+ body = send_request('ModifyAllocationRule', request.serialize)
1294
+ response = JSON.parse(body)
1295
+ if response['Response'].key?('Error') == false
1296
+ model = ModifyAllocationRuleResponse.new
1297
+ model.deserialize(response['Response'])
1298
+ model
1299
+ else
1300
+ code = response['Response']['Error']['Code']
1301
+ message = response['Response']['Error']['Message']
1302
+ reqid = response['Response']['RequestId']
1303
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1304
+ end
1305
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1306
+ raise e
1307
+ rescue StandardError => e
1308
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1309
+ end
1310
+
1311
+ # 修改分账单元信息
1312
+
1313
+ # @param request: Request instance for ModifyAllocationUnit.
1314
+ # @type request: :class:`Tencentcloud::billing::V20180709::ModifyAllocationUnitRequest`
1315
+ # @rtype: :class:`Tencentcloud::billing::V20180709::ModifyAllocationUnitResponse`
1316
+ def ModifyAllocationUnit(request)
1317
+ body = send_request('ModifyAllocationUnit', request.serialize)
1318
+ response = JSON.parse(body)
1319
+ if response['Response'].key?('Error') == false
1320
+ model = ModifyAllocationUnitResponse.new
1321
+ model.deserialize(response['Response'])
1322
+ model
1323
+ else
1324
+ code = response['Response']['Error']['Code']
1325
+ message = response['Response']['Error']['Message']
1326
+ reqid = response['Response']['RequestId']
1327
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1328
+ end
1329
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1330
+ raise e
1331
+ rescue StandardError => e
1332
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1333
+ end
1334
+
1335
+ # 编辑归集规则
1336
+
1337
+ # @param request: Request instance for ModifyGatherRule.
1338
+ # @type request: :class:`Tencentcloud::billing::V20180709::ModifyGatherRuleRequest`
1339
+ # @rtype: :class:`Tencentcloud::billing::V20180709::ModifyGatherRuleResponse`
1340
+ def ModifyGatherRule(request)
1341
+ body = send_request('ModifyGatherRule', request.serialize)
1342
+ response = JSON.parse(body)
1343
+ if response['Response'].key?('Error') == false
1344
+ model = ModifyGatherRuleResponse.new
1345
+ model.deserialize(response['Response'])
1346
+ model
1347
+ else
1348
+ code = response['Response']['Error']['Code']
1349
+ message = response['Response']['Error']['Message']
1350
+ reqid = response['Response']['RequestId']
1351
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1352
+ end
1353
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1354
+ raise e
1355
+ rescue StandardError => e
1356
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1357
+ end
1358
+
1023
1359
  # 支付订单
1024
1360
 
1025
1361
  # @param request: Request instance for PayDeals.