tencentcloud-sdk-billing 3.0.1106 → 3.0.1144
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180709/client.rb +144 -0
- data/lib/v20180709/models.rb +1257 -40
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2762749c7f4077d3797182fcb81c7680d6ae01ba
|
4
|
+
data.tar.gz: a344c76eba36b88b0ccfed476191a0687a44b214
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8921d98d4bf7de1d74530af45c0770e5d07de1be1a75b973423410875b9f8a32b751a6d78ba613f288d97baa2876c485bddc2685d8a47d4a6022d14b778a126d
|
7
|
+
data.tar.gz: d5bea2af592f33c038642c6cf1eb3a385c440f4201d8aa59aba04c44e1ad5f688e6340d64aee15cf832df50936b1e6c41eb86e03be339d80d331621890340b56
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1144
|
data/lib/v20180709/client.rb
CHANGED
@@ -101,6 +101,30 @@ module TencentCloud
|
|
101
101
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
102
|
end
|
103
103
|
|
104
|
+
# 创建预算信息
|
105
|
+
|
106
|
+
# @param request: Request instance for CreateBudget.
|
107
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::CreateBudgetRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::CreateBudgetResponse`
|
109
|
+
def CreateBudget(request)
|
110
|
+
body = send_request('CreateBudget', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = CreateBudgetResponse.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
|
+
|
104
128
|
# 创建归集规则
|
105
129
|
|
106
130
|
# @param request: Request instance for CreateGatherRule.
|
@@ -197,6 +221,30 @@ module TencentCloud
|
|
197
221
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
222
|
end
|
199
223
|
|
224
|
+
# 依据预算ID删除对应预算项目
|
225
|
+
|
226
|
+
# @param request: Request instance for DeleteBudget.
|
227
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DeleteBudgetRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DeleteBudgetResponse`
|
229
|
+
def DeleteBudget(request)
|
230
|
+
body = send_request('DeleteBudget', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = DeleteBudgetResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
200
248
|
# 删除归集规则
|
201
249
|
|
202
250
|
# @param request: Request instance for DeleteGatherRule.
|
@@ -897,6 +945,78 @@ module TencentCloud
|
|
897
945
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
898
946
|
end
|
899
947
|
|
948
|
+
# 获取预算详细信息
|
949
|
+
|
950
|
+
# @param request: Request instance for DescribeBudget.
|
951
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeBudgetRequest`
|
952
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeBudgetResponse`
|
953
|
+
def DescribeBudget(request)
|
954
|
+
body = send_request('DescribeBudget', request.serialize)
|
955
|
+
response = JSON.parse(body)
|
956
|
+
if response['Response'].key?('Error') == false
|
957
|
+
model = DescribeBudgetResponse.new
|
958
|
+
model.deserialize(response['Response'])
|
959
|
+
model
|
960
|
+
else
|
961
|
+
code = response['Response']['Error']['Code']
|
962
|
+
message = response['Response']['Error']['Message']
|
963
|
+
reqid = response['Response']['RequestId']
|
964
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
965
|
+
end
|
966
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
967
|
+
raise e
|
968
|
+
rescue StandardError => e
|
969
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
970
|
+
end
|
971
|
+
|
972
|
+
# 查询预算修改记录
|
973
|
+
|
974
|
+
# @param request: Request instance for DescribeBudgetOperationLog.
|
975
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeBudgetOperationLogRequest`
|
976
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeBudgetOperationLogResponse`
|
977
|
+
def DescribeBudgetOperationLog(request)
|
978
|
+
body = send_request('DescribeBudgetOperationLog', request.serialize)
|
979
|
+
response = JSON.parse(body)
|
980
|
+
if response['Response'].key?('Error') == false
|
981
|
+
model = DescribeBudgetOperationLogResponse.new
|
982
|
+
model.deserialize(response['Response'])
|
983
|
+
model
|
984
|
+
else
|
985
|
+
code = response['Response']['Error']['Code']
|
986
|
+
message = response['Response']['Error']['Message']
|
987
|
+
reqid = response['Response']['RequestId']
|
988
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
989
|
+
end
|
990
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
991
|
+
raise e
|
992
|
+
rescue StandardError => e
|
993
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
994
|
+
end
|
995
|
+
|
996
|
+
# 返回预算提醒记录,包括预算周期、检测时间、提醒时间、提醒类型、提醒内容
|
997
|
+
|
998
|
+
# @param request: Request instance for DescribeBudgetRemindRecordList.
|
999
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeBudgetRemindRecordListRequest`
|
1000
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeBudgetRemindRecordListResponse`
|
1001
|
+
def DescribeBudgetRemindRecordList(request)
|
1002
|
+
body = send_request('DescribeBudgetRemindRecordList', request.serialize)
|
1003
|
+
response = JSON.parse(body)
|
1004
|
+
if response['Response'].key?('Error') == false
|
1005
|
+
model = DescribeBudgetRemindRecordListResponse.new
|
1006
|
+
model.deserialize(response['Response'])
|
1007
|
+
model
|
1008
|
+
else
|
1009
|
+
code = response['Response']['Error']['Code']
|
1010
|
+
message = response['Response']['Error']['Message']
|
1011
|
+
reqid = response['Response']['RequestId']
|
1012
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1013
|
+
end
|
1014
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1015
|
+
raise e
|
1016
|
+
rescue StandardError => e
|
1017
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1018
|
+
end
|
1019
|
+
|
900
1020
|
# 查询消耗明细
|
901
1021
|
|
902
1022
|
# 注意事项:
|
@@ -1332,6 +1452,30 @@ module TencentCloud
|
|
1332
1452
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1333
1453
|
end
|
1334
1454
|
|
1455
|
+
# 更新预算信息
|
1456
|
+
|
1457
|
+
# @param request: Request instance for ModifyBudget.
|
1458
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::ModifyBudgetRequest`
|
1459
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::ModifyBudgetResponse`
|
1460
|
+
def ModifyBudget(request)
|
1461
|
+
body = send_request('ModifyBudget', request.serialize)
|
1462
|
+
response = JSON.parse(body)
|
1463
|
+
if response['Response'].key?('Error') == false
|
1464
|
+
model = ModifyBudgetResponse.new
|
1465
|
+
model.deserialize(response['Response'])
|
1466
|
+
model
|
1467
|
+
else
|
1468
|
+
code = response['Response']['Error']['Code']
|
1469
|
+
message = response['Response']['Error']['Message']
|
1470
|
+
reqid = response['Response']['RequestId']
|
1471
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1472
|
+
end
|
1473
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1474
|
+
raise e
|
1475
|
+
rescue StandardError => e
|
1476
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1477
|
+
end
|
1478
|
+
|
1335
1479
|
# 编辑归集规则
|
1336
1480
|
|
1337
1481
|
# @param request: Request instance for ModifyGatherRule.
|