tencentcloud-sdk-billing 3.0.775 → 3.0.777
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180709/client.rb +240 -0
- data/lib/v20180709/models.rb +5382 -1992
- 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: 7e16c1d3695b5ba831ced21a3d21f25005707276
|
4
|
+
data.tar.gz: 0909185b0b08d9f906ff1ec4c612a7b3b729435f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25ac66bde8237069d1fa203a053e012917d618e9695603daeec274a2bdc6dca73259265b7d0c363a447226cd50d9e0adc04fc647274b3c373c41538c31c32baf
|
7
|
+
data.tar.gz: 9e500e8a197b8dcdf8b3febec2c196f86a40cabfcc7319ccc0054b734c9f8a5a166899afd945418dda0d26db09d92e61b428825e9e11aa8fe75917dd7de1b800
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.777
|
data/lib/v20180709/client.rb
CHANGED
@@ -125,6 +125,222 @@ module TencentCloud
|
|
125
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
126
|
end
|
127
127
|
|
128
|
+
# 查询资源目录筛选条件
|
129
|
+
|
130
|
+
# @param request: Request instance for DescribeAllocateConditions.
|
131
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeAllocateConditionsRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeAllocateConditionsResponse`
|
133
|
+
def DescribeAllocateConditions(request)
|
134
|
+
body = send_request('DescribeAllocateConditions', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = DescribeAllocateConditionsResponse.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
|
+
|
152
|
+
# 查询分账账单筛选条件
|
153
|
+
|
154
|
+
# @param request: Request instance for DescribeAllocationBillConditions.
|
155
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeAllocationBillConditionsRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeAllocationBillConditionsResponse`
|
157
|
+
def DescribeAllocationBillConditions(request)
|
158
|
+
body = send_request('DescribeAllocationBillConditions', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = DescribeAllocationBillConditionsResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
176
|
+
# 查询分账账单明细
|
177
|
+
|
178
|
+
# @param request: Request instance for DescribeAllocationBillDetail.
|
179
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeAllocationBillDetailRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeAllocationBillDetailResponse`
|
181
|
+
def DescribeAllocationBillDetail(request)
|
182
|
+
body = send_request('DescribeAllocationBillDetail', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = DescribeAllocationBillDetailResponse.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 DescribeAllocationMonthOverview.
|
203
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeAllocationMonthOverviewRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeAllocationMonthOverviewResponse`
|
205
|
+
def DescribeAllocationMonthOverview(request)
|
206
|
+
body = send_request('DescribeAllocationMonthOverview', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = DescribeAllocationMonthOverviewResponse.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
|
+
|
224
|
+
# 查询分账账单日概览
|
225
|
+
|
226
|
+
# @param request: Request instance for DescribeAllocationOverview.
|
227
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeAllocationOverviewRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeAllocationOverviewResponse`
|
229
|
+
def DescribeAllocationOverview(request)
|
230
|
+
body = send_request('DescribeAllocationOverview', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = DescribeAllocationOverviewResponse.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
|
+
|
248
|
+
# 查询分账账单按产品汇总
|
249
|
+
|
250
|
+
# @param request: Request instance for DescribeAllocationSummaryByBusiness.
|
251
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeAllocationSummaryByBusinessRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeAllocationSummaryByBusinessResponse`
|
253
|
+
def DescribeAllocationSummaryByBusiness(request)
|
254
|
+
body = send_request('DescribeAllocationSummaryByBusiness', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = DescribeAllocationSummaryByBusinessResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
272
|
+
# 查询分账账单按组件汇总
|
273
|
+
|
274
|
+
# @param request: Request instance for DescribeAllocationSummaryByItem.
|
275
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeAllocationSummaryByItemRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeAllocationSummaryByItemResponse`
|
277
|
+
def DescribeAllocationSummaryByItem(request)
|
278
|
+
body = send_request('DescribeAllocationSummaryByItem', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = DescribeAllocationSummaryByItemResponse.new
|
282
|
+
model.deserialize(response['Response'])
|
283
|
+
model
|
284
|
+
else
|
285
|
+
code = response['Response']['Error']['Code']
|
286
|
+
message = response['Response']['Error']['Message']
|
287
|
+
reqid = response['Response']['RequestId']
|
288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
+
end
|
290
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
+
raise e
|
292
|
+
rescue StandardError => e
|
293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
+
end
|
295
|
+
|
296
|
+
# 查询分账账单按资源汇总
|
297
|
+
|
298
|
+
# @param request: Request instance for DescribeAllocationSummaryByResource.
|
299
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeAllocationSummaryByResourceRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeAllocationSummaryByResourceResponse`
|
301
|
+
def DescribeAllocationSummaryByResource(request)
|
302
|
+
body = send_request('DescribeAllocationSummaryByResource', request.serialize)
|
303
|
+
response = JSON.parse(body)
|
304
|
+
if response['Response'].key?('Error') == false
|
305
|
+
model = DescribeAllocationSummaryByResourceResponse.new
|
306
|
+
model.deserialize(response['Response'])
|
307
|
+
model
|
308
|
+
else
|
309
|
+
code = response['Response']['Error']['Code']
|
310
|
+
message = response['Response']['Error']['Message']
|
311
|
+
reqid = response['Response']['RequestId']
|
312
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
313
|
+
end
|
314
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
315
|
+
raise e
|
316
|
+
rescue StandardError => e
|
317
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
|
+
end
|
319
|
+
|
320
|
+
# 查询分账账单费用趋势
|
321
|
+
|
322
|
+
# @param request: Request instance for DescribeAllocationTrendByMonth.
|
323
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeAllocationTrendByMonthRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeAllocationTrendByMonthResponse`
|
325
|
+
def DescribeAllocationTrendByMonth(request)
|
326
|
+
body = send_request('DescribeAllocationTrendByMonth', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = DescribeAllocationTrendByMonthResponse.new
|
330
|
+
model.deserialize(response['Response'])
|
331
|
+
model
|
332
|
+
else
|
333
|
+
code = response['Response']['Error']['Code']
|
334
|
+
message = response['Response']['Error']['Message']
|
335
|
+
reqid = response['Response']['RequestId']
|
336
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
337
|
+
end
|
338
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
339
|
+
raise e
|
340
|
+
rescue StandardError => e
|
341
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
|
+
end
|
343
|
+
|
128
344
|
# 获取账单明细数据。
|
129
345
|
# 注意事项:
|
130
346
|
# 1.在请求接口时,由于网络不稳定或其它异常,可能会导致请求失败。如果您遇到这种情况,我们建议您在接口请求失败时,手动发起重试操作,这样可以更好地确保您的接口请求能够成功执行。
|
@@ -681,6 +897,30 @@ module TencentCloud
|
|
681
897
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
682
898
|
end
|
683
899
|
|
900
|
+
# 查询分账账单资源归集汇总
|
901
|
+
|
902
|
+
# @param request: Request instance for DescribeGatherResource.
|
903
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeGatherResourceRequest`
|
904
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeGatherResourceResponse`
|
905
|
+
def DescribeGatherResource(request)
|
906
|
+
body = send_request('DescribeGatherResource', request.serialize)
|
907
|
+
response = JSON.parse(body)
|
908
|
+
if response['Response'].key?('Error') == false
|
909
|
+
model = DescribeGatherResourceResponse.new
|
910
|
+
model.deserialize(response['Response'])
|
911
|
+
model
|
912
|
+
else
|
913
|
+
code = response['Response']['Error']['Code']
|
914
|
+
message = response['Response']['Error']['Message']
|
915
|
+
reqid = response['Response']['RequestId']
|
916
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
917
|
+
end
|
918
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
919
|
+
raise e
|
920
|
+
rescue StandardError => e
|
921
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
922
|
+
end
|
923
|
+
|
684
924
|
# 查询当前用户节省计划覆盖率明细数据,如无特别说明,金额单位均为元(国内站)或者美元(国际站)。
|
685
925
|
|
686
926
|
# @param request: Request instance for DescribeSavingPlanCoverage.
|