-
Notifications
You must be signed in to change notification settings - Fork 286
Expand file tree
/
Copy pathBillingClient.java
More file actions
801 lines (727 loc) · 36.2 KB
/
BillingClient.java
File metadata and controls
801 lines (727 loc) · 36.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
/*
* Copyright (c) 2017-2025 Tencent. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.billing.v20180709;
import java.lang.reflect.Type;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.common.AbstractClient;
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.JsonResponseModel;
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.billing.v20180709.models.*;
public class BillingClient extends AbstractClient{
private static String endpoint = "billing.tencentcloudapi.com";
private static String service = "billing";
private static String version = "2018-07-09";
public BillingClient(Credential credential, String region) {
this(credential, region, new ClientProfile());
}
public BillingClient(Credential credential, String region, ClientProfile profile) {
super(BillingClient.endpoint, BillingClient.version, credential, region, profile);
}
/**
*创建公摊规则
* @param req CreateAllocationRuleRequest
* @return CreateAllocationRuleResponse
* @throws TencentCloudSDKException
*/
public CreateAllocationRuleResponse CreateAllocationRule(CreateAllocationRuleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateAllocationRule", CreateAllocationRuleResponse.class);
}
/**
*批量设置分账标签
* @param req CreateAllocationTagRequest
* @return CreateAllocationTagResponse
* @throws TencentCloudSDKException
*/
public CreateAllocationTagResponse CreateAllocationTag(CreateAllocationTagRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateAllocationTag", CreateAllocationTagResponse.class);
}
/**
*创建分账单元
* @param req CreateAllocationUnitRequest
* @return CreateAllocationUnitResponse
* @throws TencentCloudSDKException
*/
public CreateAllocationUnitResponse CreateAllocationUnit(CreateAllocationUnitRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateAllocationUnit", CreateAllocationUnitResponse.class);
}
/**
*创建预算信息
* @param req CreateBudgetRequest
* @return CreateBudgetResponse
* @throws TencentCloudSDKException
*/
public CreateBudgetResponse CreateBudget(CreateBudgetRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateBudget", CreateBudgetResponse.class);
}
/**
*创建归集规则
* @param req CreateGatherRuleRequest
* @return CreateGatherRuleResponse
* @throws TencentCloudSDKException
*/
public CreateGatherRuleResponse CreateGatherRule(CreateGatherRuleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateGatherRule", CreateGatherRuleResponse.class);
}
/**
*创建一个实例资源,会创建一个新购实例资源的订单,并通过腾讯云账户余额自动支付。调用该接口的账号需要授予finace:trade的权限,否则无法支付成功。目前已接入并支持购买的产品包括:T-Sec-Web应用防火墙、云防火墙、主机安全、主机容器、云安全中心、T-Sec-密钥管理系统。
* @param req CreateInstanceRequest
* @return CreateInstanceResponse
* @throws TencentCloudSDKException
*/
public CreateInstanceResponse CreateInstance(CreateInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateInstance", CreateInstanceResponse.class);
}
/**
*公摊规则删除接口
* @param req DeleteAllocationRuleRequest
* @return DeleteAllocationRuleResponse
* @throws TencentCloudSDKException
*/
public DeleteAllocationRuleResponse DeleteAllocationRule(DeleteAllocationRuleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteAllocationRule", DeleteAllocationRuleResponse.class);
}
/**
*批量取消设置分账标签
* @param req DeleteAllocationTagRequest
* @return DeleteAllocationTagResponse
* @throws TencentCloudSDKException
*/
public DeleteAllocationTagResponse DeleteAllocationTag(DeleteAllocationTagRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteAllocationTag", DeleteAllocationTagResponse.class);
}
/**
*删除分账单元
* @param req DeleteAllocationUnitRequest
* @return DeleteAllocationUnitResponse
* @throws TencentCloudSDKException
*/
public DeleteAllocationUnitResponse DeleteAllocationUnit(DeleteAllocationUnitRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteAllocationUnit", DeleteAllocationUnitResponse.class);
}
/**
*依据预算ID删除对应预算项目
* @param req DeleteBudgetRequest
* @return DeleteBudgetResponse
* @throws TencentCloudSDKException
*/
public DeleteBudgetResponse DeleteBudget(DeleteBudgetRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteBudget", DeleteBudgetResponse.class);
}
/**
*删除归集规则
* @param req DeleteGatherRuleRequest
* @return DeleteGatherRuleResponse
* @throws TencentCloudSDKException
*/
public DeleteGatherRuleResponse DeleteGatherRule(DeleteGatherRuleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteGatherRule", DeleteGatherRuleResponse.class);
}
/**
*获取云账户余额信息。
* @param req DescribeAccountBalanceRequest
* @return DescribeAccountBalanceResponse
* @throws TencentCloudSDKException
*/
public DescribeAccountBalanceResponse DescribeAccountBalance(DescribeAccountBalanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAccountBalance", DescribeAccountBalanceResponse.class);
}
/**
*查询资源目录筛选条件
* @param req DescribeAllocateConditionsRequest
* @return DescribeAllocateConditionsResponse
* @throws TencentCloudSDKException
*/
public DescribeAllocateConditionsResponse DescribeAllocateConditions(DescribeAllocateConditionsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAllocateConditions", DescribeAllocateConditionsResponse.class);
}
/**
*查询分账账单筛选条件
* @param req DescribeAllocationBillConditionsRequest
* @return DescribeAllocationBillConditionsResponse
* @throws TencentCloudSDKException
*/
public DescribeAllocationBillConditionsResponse DescribeAllocationBillConditions(DescribeAllocationBillConditionsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAllocationBillConditions", DescribeAllocationBillConditionsResponse.class);
}
/**
*查询分账账单明细
* @param req DescribeAllocationBillDetailRequest
* @return DescribeAllocationBillDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeAllocationBillDetailResponse DescribeAllocationBillDetail(DescribeAllocationBillDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAllocationBillDetail", DescribeAllocationBillDetailResponse.class);
}
/**
*查询分账账单月概览
* @param req DescribeAllocationMonthOverviewRequest
* @return DescribeAllocationMonthOverviewResponse
* @throws TencentCloudSDKException
*/
public DescribeAllocationMonthOverviewResponse DescribeAllocationMonthOverview(DescribeAllocationMonthOverviewRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAllocationMonthOverview", DescribeAllocationMonthOverviewResponse.class);
}
/**
*查询分账账单日概览
* @param req DescribeAllocationOverviewRequest
* @return DescribeAllocationOverviewResponse
* @throws TencentCloudSDKException
*/
public DescribeAllocationOverviewResponse DescribeAllocationOverview(DescribeAllocationOverviewRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAllocationOverview", DescribeAllocationOverviewResponse.class);
}
/**
*查询公摊规则详情
* @param req DescribeAllocationRuleDetailRequest
* @return DescribeAllocationRuleDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeAllocationRuleDetailResponse DescribeAllocationRuleDetail(DescribeAllocationRuleDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAllocationRuleDetail", DescribeAllocationRuleDetailResponse.class);
}
/**
*查询所有公摊规则概览
* @param req DescribeAllocationRuleSummaryRequest
* @return DescribeAllocationRuleSummaryResponse
* @throws TencentCloudSDKException
*/
public DescribeAllocationRuleSummaryResponse DescribeAllocationRuleSummary(DescribeAllocationRuleSummaryRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAllocationRuleSummary", DescribeAllocationRuleSummaryResponse.class);
}
/**
*查询分账账单按产品汇总
* @param req DescribeAllocationSummaryByBusinessRequest
* @return DescribeAllocationSummaryByBusinessResponse
* @throws TencentCloudSDKException
*/
public DescribeAllocationSummaryByBusinessResponse DescribeAllocationSummaryByBusiness(DescribeAllocationSummaryByBusinessRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAllocationSummaryByBusiness", DescribeAllocationSummaryByBusinessResponse.class);
}
/**
*查询分账账单按组件汇总
* @param req DescribeAllocationSummaryByItemRequest
* @return DescribeAllocationSummaryByItemResponse
* @throws TencentCloudSDKException
*/
public DescribeAllocationSummaryByItemResponse DescribeAllocationSummaryByItem(DescribeAllocationSummaryByItemRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAllocationSummaryByItem", DescribeAllocationSummaryByItemResponse.class);
}
/**
*查询分账账单按资源汇总
* @param req DescribeAllocationSummaryByResourceRequest
* @return DescribeAllocationSummaryByResourceResponse
* @throws TencentCloudSDKException
*/
public DescribeAllocationSummaryByResourceResponse DescribeAllocationSummaryByResource(DescribeAllocationSummaryByResourceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAllocationSummaryByResource", DescribeAllocationSummaryByResourceResponse.class);
}
/**
*查询分账目录树
* @param req DescribeAllocationTreeRequest
* @return DescribeAllocationTreeResponse
* @throws TencentCloudSDKException
*/
public DescribeAllocationTreeResponse DescribeAllocationTree(DescribeAllocationTreeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAllocationTree", DescribeAllocationTreeResponse.class);
}
/**
*查询分账账单费用趋势
* @param req DescribeAllocationTrendByMonthRequest
* @return DescribeAllocationTrendByMonthResponse
* @throws TencentCloudSDKException
*/
public DescribeAllocationTrendByMonthResponse DescribeAllocationTrendByMonth(DescribeAllocationTrendByMonthRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAllocationTrendByMonth", DescribeAllocationTrendByMonthResponse.class);
}
/**
*查询分账单元详情
* @param req DescribeAllocationUnitDetailRequest
* @return DescribeAllocationUnitDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeAllocationUnitDetailResponse DescribeAllocationUnitDetail(DescribeAllocationUnitDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAllocationUnitDetail", DescribeAllocationUnitDetailResponse.class);
}
/**
*可以通过API获取当前UIN是否有调账,客户可以更快地主动地获取调账情况。
* @param req DescribeBillAdjustInfoRequest
* @return DescribeBillAdjustInfoResponse
* @throws TencentCloudSDKException
*/
public DescribeBillAdjustInfoResponse DescribeBillAdjustInfo(DescribeBillAdjustInfoRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBillAdjustInfo", DescribeBillAdjustInfoResponse.class);
}
/**
*获取账单明细数据。
注意事项:
1.在请求接口时,由于网络不稳定或其它异常,可能会导致请求失败。如果您遇到这种情况,我们建议您在接口请求失败时,手动发起重试操作,这样可以更好地确保您的接口请求能够成功执行。
2.对于账单明细数据量级很大(例如每月账单明细量级超过20w)的客户,通过 API 调用账单数据效率较低,建议您开通账单数据存储功能,通过存储桶中获取账单文件进行分析。[账单存储至COS桶](https://cloud.tencent.com/document/product/555/61275)
* @param req DescribeBillDetailRequest
* @return DescribeBillDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeBillDetailResponse DescribeBillDetail(DescribeBillDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBillDetail", DescribeBillDetailResponse.class);
}
/**
*成员账号获取管理账号代付账单(费用明细)。
注意事项:在请求接口时,由于网络不稳定或其它异常,可能会导致请求失败。如果您遇到这种情况,我们建议您在接口请求失败时,手动发起重试操作,这样可以更好地确保您的接口请求能够成功执行。
* @param req DescribeBillDetailForOrganizationRequest
* @return DescribeBillDetailForOrganizationResponse
* @throws TencentCloudSDKException
*/
public DescribeBillDetailForOrganizationResponse DescribeBillDetailForOrganization(DescribeBillDetailForOrganizationRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBillDetailForOrganization", DescribeBillDetailForOrganizationResponse.class);
}
/**
*该接口支持通过传参,获取L0-PDF、L1-汇总、L2-资源、L3-明细、账单包、五类账单文件下载链接
* @param req DescribeBillDownloadUrlRequest
* @return DescribeBillDownloadUrlResponse
* @throws TencentCloudSDKException
*/
public DescribeBillDownloadUrlResponse DescribeBillDownloadUrl(DescribeBillDownloadUrlRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBillDownloadUrl", DescribeBillDownloadUrlResponse.class);
}
/**
*获取收支明细列表,支持翻页和参数过滤
* @param req DescribeBillListRequest
* @return DescribeBillListResponse
* @throws TencentCloudSDKException
*/
public DescribeBillListResponse DescribeBillList(DescribeBillListRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBillList", DescribeBillListResponse.class);
}
/**
*获取账单资源汇总数据
* @param req DescribeBillResourceSummaryRequest
* @return DescribeBillResourceSummaryResponse
* @throws TencentCloudSDKException
*/
public DescribeBillResourceSummaryResponse DescribeBillResourceSummary(DescribeBillResourceSummaryRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBillResourceSummary", DescribeBillResourceSummaryResponse.class);
}
/**
*成员账号获取管理账号代付账单(按资源汇总)
* @param req DescribeBillResourceSummaryForOrganizationRequest
* @return DescribeBillResourceSummaryForOrganizationResponse
* @throws TencentCloudSDKException
*/
public DescribeBillResourceSummaryForOrganizationResponse DescribeBillResourceSummaryForOrganization(DescribeBillResourceSummaryForOrganizationRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBillResourceSummaryForOrganization", DescribeBillResourceSummaryForOrganizationResponse.class);
}
/**
*该接口支持通过传参,按照产品、项目、地域、计费模式和标签五个维度获取账单费用明细。
* @param req DescribeBillSummaryRequest
* @return DescribeBillSummaryResponse
* @throws TencentCloudSDKException
*/
public DescribeBillSummaryResponse DescribeBillSummary(DescribeBillSummaryRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBillSummary", DescribeBillSummaryResponse.class);
}
/**
*获取按计费模式汇总费用分布
* @param req DescribeBillSummaryByPayModeRequest
* @return DescribeBillSummaryByPayModeResponse
* @throws TencentCloudSDKException
*/
public DescribeBillSummaryByPayModeResponse DescribeBillSummaryByPayMode(DescribeBillSummaryByPayModeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBillSummaryByPayMode", DescribeBillSummaryByPayModeResponse.class);
}
/**
*获取产品汇总费用分布
* @param req DescribeBillSummaryByProductRequest
* @return DescribeBillSummaryByProductResponse
* @throws TencentCloudSDKException
*/
public DescribeBillSummaryByProductResponse DescribeBillSummaryByProduct(DescribeBillSummaryByProductRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBillSummaryByProduct", DescribeBillSummaryByProductResponse.class);
}
/**
*获取按项目汇总费用分布
* @param req DescribeBillSummaryByProjectRequest
* @return DescribeBillSummaryByProjectResponse
* @throws TencentCloudSDKException
*/
public DescribeBillSummaryByProjectResponse DescribeBillSummaryByProject(DescribeBillSummaryByProjectRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBillSummaryByProject", DescribeBillSummaryByProjectResponse.class);
}
/**
*获取按地域汇总费用分布
* @param req DescribeBillSummaryByRegionRequest
* @return DescribeBillSummaryByRegionResponse
* @throws TencentCloudSDKException
*/
public DescribeBillSummaryByRegionResponse DescribeBillSummaryByRegion(DescribeBillSummaryByRegionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBillSummaryByRegion", DescribeBillSummaryByRegionResponse.class);
}
/**
*获取按标签汇总费用分布
* @param req DescribeBillSummaryByTagRequest
* @return DescribeBillSummaryByTagResponse
* @throws TencentCloudSDKException
*/
public DescribeBillSummaryByTagResponse DescribeBillSummaryByTag(DescribeBillSummaryByTagRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBillSummaryByTag", DescribeBillSummaryByTagResponse.class);
}
/**
*该接口支持通过传参,按照产品、项目、地域、计费模式和标签五个维度获取账单费用明细。
* @param req DescribeBillSummaryForOrganizationRequest
* @return DescribeBillSummaryForOrganizationResponse
* @throws TencentCloudSDKException
*/
public DescribeBillSummaryForOrganizationResponse DescribeBillSummaryForOrganization(DescribeBillSummaryForOrganizationRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBillSummaryForOrganization", DescribeBillSummaryForOrganizationResponse.class);
}
/**
*获取预算详细信息
* @param req DescribeBudgetRequest
* @return DescribeBudgetResponse
* @throws TencentCloudSDKException
*/
public DescribeBudgetResponse DescribeBudget(DescribeBudgetRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBudget", DescribeBudgetResponse.class);
}
/**
*查询预算修改记录
* @param req DescribeBudgetOperationLogRequest
* @return DescribeBudgetOperationLogResponse
* @throws TencentCloudSDKException
*/
public DescribeBudgetOperationLogResponse DescribeBudgetOperationLog(DescribeBudgetOperationLogRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBudgetOperationLog", DescribeBudgetOperationLogResponse.class);
}
/**
*返回预算提醒记录,包括预算周期、检测时间、提醒时间、提醒类型、提醒内容
* @param req DescribeBudgetRemindRecordListRequest
* @return DescribeBudgetRemindRecordListResponse
* @throws TencentCloudSDKException
*/
public DescribeBudgetRemindRecordListResponse DescribeBudgetRemindRecordList(DescribeBudgetRemindRecordListRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBudgetRemindRecordList", DescribeBudgetRemindRecordListResponse.class);
}
/**
*查询消耗明细
注意事项:
1. 对于消耗明细数据量级很大(例如每月消耗明细量级超过100w)的客户,通过 API 调用明细数据会有超时风险,建议您开通消耗账单数据存储功能,通过存储桶中获取账单文件进行分析。[账单存储至COS桶](https://cloud.tencent.com/document/product/555/61275)
* @param req DescribeCostDetailRequest
* @return DescribeCostDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeCostDetailResponse DescribeCostDetail(DescribeCostDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCostDetail", DescribeCostDetailResponse.class);
}
/**
*查看成本分析明细
* @param req DescribeCostExplorerSummaryRequest
* @return DescribeCostExplorerSummaryResponse
* @throws TencentCloudSDKException
*/
public DescribeCostExplorerSummaryResponse DescribeCostExplorerSummary(DescribeCostExplorerSummaryRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCostExplorerSummary", DescribeCostExplorerSummaryResponse.class);
}
/**
*获取按产品汇总消耗详情
* @param req DescribeCostSummaryByProductRequest
* @return DescribeCostSummaryByProductResponse
* @throws TencentCloudSDKException
*/
public DescribeCostSummaryByProductResponse DescribeCostSummaryByProduct(DescribeCostSummaryByProductRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCostSummaryByProduct", DescribeCostSummaryByProductResponse.class);
}
/**
*获取按项目汇总消耗详情
* @param req DescribeCostSummaryByProjectRequest
* @return DescribeCostSummaryByProjectResponse
* @throws TencentCloudSDKException
*/
public DescribeCostSummaryByProjectResponse DescribeCostSummaryByProject(DescribeCostSummaryByProjectRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCostSummaryByProject", DescribeCostSummaryByProjectResponse.class);
}
/**
*获取按地域汇总消耗详情
* @param req DescribeCostSummaryByRegionRequest
* @return DescribeCostSummaryByRegionResponse
* @throws TencentCloudSDKException
*/
public DescribeCostSummaryByRegionResponse DescribeCostSummaryByRegion(DescribeCostSummaryByRegionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCostSummaryByRegion", DescribeCostSummaryByRegionResponse.class);
}
/**
*获取按资源汇总消耗详情
* @param req DescribeCostSummaryByResourceRequest
* @return DescribeCostSummaryByResourceResponse
* @throws TencentCloudSDKException
*/
public DescribeCostSummaryByResourceResponse DescribeCostSummaryByResource(DescribeCostSummaryByResourceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCostSummaryByResource", DescribeCostSummaryByResourceResponse.class);
}
/**
*获取按标签汇总消耗详情
* @param req DescribeCostSummaryByTagRequest
* @return DescribeCostSummaryByTagResponse
* @throws TencentCloudSDKException
*/
public DescribeCostSummaryByTagResponse DescribeCostSummaryByTag(DescribeCostSummaryByTagRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeCostSummaryByTag", DescribeCostSummaryByTagResponse.class);
}
/**
*查询订单
* @param req DescribeDealsByCondRequest
* @return DescribeDealsByCondResponse
* @throws TencentCloudSDKException
*/
public DescribeDealsByCondResponse DescribeDealsByCond(DescribeDealsByCondRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDealsByCond", DescribeDealsByCondResponse.class);
}
/**
*获取COS产品用量明细
* @param req DescribeDosageCosDetailByDateRequest
* @return DescribeDosageCosDetailByDateResponse
* @throws TencentCloudSDKException
*/
public DescribeDosageCosDetailByDateResponse DescribeDosageCosDetailByDate(DescribeDosageCosDetailByDateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDosageCosDetailByDate", DescribeDosageCosDetailByDateResponse.class);
}
/**
*按日期获取产品用量明细
* @param req DescribeDosageDetailByDateRequest
* @return DescribeDosageDetailByDateResponse
* @throws TencentCloudSDKException
*/
public DescribeDosageDetailByDateResponse DescribeDosageDetailByDate(DescribeDosageDetailByDateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDosageDetailByDate", DescribeDosageDetailByDateResponse.class);
}
/**
*获取已接入标准用量明细模板产品的用量明细数据,目前已接入并支持查询的产品包括:云联络中心、实时音视频、实时音视频、智能媒资托管、CODING DevOps、全球IP应用加速
* @param req DescribeDosageDetailListRequest
* @return DescribeDosageDetailListResponse
* @throws TencentCloudSDKException
*/
public DescribeDosageDetailListResponse DescribeDosageDetailList(DescribeDosageDetailListRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDosageDetailList", DescribeDosageDetailListResponse.class);
}
/**
*查询分账账单资源归集汇总
* @param req DescribeGatherResourceRequest
* @return DescribeGatherResourceResponse
* @throws TencentCloudSDKException
*/
public DescribeGatherResourceResponse DescribeGatherResource(DescribeGatherResourceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeGatherResource", DescribeGatherResourceResponse.class);
}
/**
*查询归集规则详情
* @param req DescribeGatherRuleDetailRequest
* @return DescribeGatherRuleDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeGatherRuleDetailResponse DescribeGatherRuleDetail(DescribeGatherRuleDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeGatherRuleDetail", DescribeGatherRuleDetailResponse.class);
}
/**
*注意事项:
1、本接口支持查询已接入续费管理页的包年包月实例,包括运行中、已隔离(部分产品不支持)
2、子用户使用该接口时,应具备QcloudFinanceRenewManageFullAccess权限策略。
* @param req DescribeRenewInstancesRequest
* @return DescribeRenewInstancesResponse
* @throws TencentCloudSDKException
*/
public DescribeRenewInstancesResponse DescribeRenewInstances(DescribeRenewInstancesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeRenewInstances", DescribeRenewInstancesResponse.class);
}
/**
*查询节省计划详情
* @param req DescribeSavingPlanResourceInfoRequest
* @return DescribeSavingPlanResourceInfoResponse
* @throws TencentCloudSDKException
*/
public DescribeSavingPlanResourceInfoResponse DescribeSavingPlanResourceInfo(DescribeSavingPlanResourceInfoRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSavingPlanResourceInfo", DescribeSavingPlanResourceInfoResponse.class);
}
/**
*获取分账标签
* @param req DescribeTagListRequest
* @return DescribeTagListResponse
* @throws TencentCloudSDKException
*/
public DescribeTagListResponse DescribeTagList(DescribeTagListRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeTagList", DescribeTagListResponse.class);
}
/**
*获取代金券相关信息
* @param req DescribeVoucherInfoRequest
* @return DescribeVoucherInfoResponse
* @throws TencentCloudSDKException
*/
public DescribeVoucherInfoResponse DescribeVoucherInfo(DescribeVoucherInfoRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeVoucherInfo", DescribeVoucherInfoResponse.class);
}
/**
*获取代金券使用记录
* @param req DescribeVoucherUsageDetailsRequest
* @return DescribeVoucherUsageDetailsResponse
* @throws TencentCloudSDKException
*/
public DescribeVoucherUsageDetailsResponse DescribeVoucherUsageDetails(DescribeVoucherUsageDetailsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeVoucherUsageDetails", DescribeVoucherUsageDetailsResponse.class);
}
/**
*编辑公摊规则
* @param req ModifyAllocationRuleRequest
* @return ModifyAllocationRuleResponse
* @throws TencentCloudSDKException
*/
public ModifyAllocationRuleResponse ModifyAllocationRule(ModifyAllocationRuleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyAllocationRule", ModifyAllocationRuleResponse.class);
}
/**
*修改分账单元信息
* @param req ModifyAllocationUnitRequest
* @return ModifyAllocationUnitResponse
* @throws TencentCloudSDKException
*/
public ModifyAllocationUnitResponse ModifyAllocationUnit(ModifyAllocationUnitRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyAllocationUnit", ModifyAllocationUnitResponse.class);
}
/**
*更新预算信息
* @param req ModifyBudgetRequest
* @return ModifyBudgetResponse
* @throws TencentCloudSDKException
*/
public ModifyBudgetResponse ModifyBudget(ModifyBudgetRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyBudget", ModifyBudgetResponse.class);
}
/**
*编辑归集规则
* @param req ModifyGatherRuleRequest
* @return ModifyGatherRuleResponse
* @throws TencentCloudSDKException
*/
public ModifyGatherRuleResponse ModifyGatherRule(ModifyGatherRuleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyGatherRule", ModifyGatherRuleResponse.class);
}
/**
*支付订单
* @param req PayDealsRequest
* @return PayDealsResponse
* @throws TencentCloudSDKException
*/
public PayDealsResponse PayDeals(PayDealsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "PayDeals", PayDealsResponse.class);
}
/**
*退订不再需要的实例,只退还实付金额的部分,已使用的代金券不退还,退还的实付金额默认退到腾讯云账户余额中。调用该接口的账号需要授予finace:RefundInstance的权限,否则无法支付成功。目前已接入并支持退订的产品包括:T-Sec-Web应用防火墙、云防火墙、主机安全、主机容器、云安全中心、T-Sec-密钥管理系统。
* @param req RefundInstanceRequest
* @return RefundInstanceResponse
* @throws TencentCloudSDKException
*/
public RefundInstanceResponse RefundInstance(RefundInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "RefundInstance", RefundInstanceResponse.class);
}
/**
*续费一台实例,调用该接口续费服务器时,您需要确保您的腾讯云账户余额充足,否则会续费失败。调用该接口的账号需要授予finace:trade的权限,否则无法续费成功。目前已接入并支持续费的产品包括:T-Sec-Web应用防火墙、云防火墙、主机安全、主机容器、云安全中心、T-Sec-密钥管理系统。
* @param req RenewInstanceRequest
* @return RenewInstanceResponse
* @throws TencentCloudSDKException
*/
public RenewInstanceResponse RenewInstance(RenewInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "RenewInstance", RenewInstanceResponse.class);
}
/**
*注意事项:
1、本接口支持对包年包月实例设置自动续费模式及周期
2、可通过实例查询接口获取到产品编码、地域编码
3、子用户使用该接口时,应具备QcloudFinanceRenewManageFullAccess权限策略。
* @param req SetRenewalRequest
* @return SetRenewalResponse
* @throws TencentCloudSDKException
*/
public SetRenewalResponse SetRenewal(SetRenewalRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "SetRenewal", SetRenewalResponse.class);
}
}