tencentcloud-sdk-billing 3.0.1184 → 3.0.1189
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 +24 -0
- data/lib/v20180709/models.rb +116 -6
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1dd5c79108a6806a126be55e5c560956987f7323
|
|
4
|
+
data.tar.gz: c39ed5eb7338f5f26c226e349387e57389f508a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19f7ad78e186e0f45fc98f562cbd185f52c82c6ca90ffddd7a0add31f037d442ed22aa36ed98764fe4957820979a1555a7fcfc11e93289344a1842bab0d8f284
|
|
7
|
+
data.tar.gz: abab8656f377624d8d721f67164f8adea3f5203f9f3185713d91c93682d773e2d21cbb7aad149442dc06d1f00e7c1ad7930d8ceb9238fb27a4f48b11764ca2c7
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1189
|
data/lib/v20180709/client.rb
CHANGED
|
@@ -1164,6 +1164,30 @@ module TencentCloud
|
|
|
1164
1164
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1165
1165
|
end
|
|
1166
1166
|
|
|
1167
|
+
# 获取按标签汇总消耗详情
|
|
1168
|
+
|
|
1169
|
+
# @param request: Request instance for DescribeCostSummaryByTag.
|
|
1170
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeCostSummaryByTagRequest`
|
|
1171
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeCostSummaryByTagResponse`
|
|
1172
|
+
def DescribeCostSummaryByTag(request)
|
|
1173
|
+
body = send_request('DescribeCostSummaryByTag', request.serialize)
|
|
1174
|
+
response = JSON.parse(body)
|
|
1175
|
+
if response['Response'].key?('Error') == false
|
|
1176
|
+
model = DescribeCostSummaryByTagResponse.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
|
+
|
|
1167
1191
|
# 查询订单
|
|
1168
1192
|
|
|
1169
1193
|
# @param request: Request instance for DescribeDealsByCond.
|
data/lib/v20180709/models.rb
CHANGED
|
@@ -5471,12 +5471,17 @@ module TencentCloud
|
|
|
5471
5471
|
|
|
5472
5472
|
# DescribeAccountBalance请求参数结构体
|
|
5473
5473
|
class DescribeAccountBalanceRequest < TencentCloud::Common::AbstractModel
|
|
5474
|
+
# @param TempCredit: 是否查询临时额度
|
|
5475
|
+
# @type TempCredit: Boolean
|
|
5474
5476
|
|
|
5477
|
+
attr_accessor :TempCredit
|
|
5475
5478
|
|
|
5476
|
-
def initialize()
|
|
5479
|
+
def initialize(tempcredit=nil)
|
|
5480
|
+
@TempCredit = tempcredit
|
|
5477
5481
|
end
|
|
5478
5482
|
|
|
5479
5483
|
def deserialize(params)
|
|
5484
|
+
@TempCredit = params['TempCredit']
|
|
5480
5485
|
end
|
|
5481
5486
|
end
|
|
5482
5487
|
|
|
@@ -5508,17 +5513,21 @@ module TencentCloud
|
|
|
5508
5513
|
# @type CreditBalance: Float
|
|
5509
5514
|
# @param RealCreditBalance: 真实可用信用额度,单位 分
|
|
5510
5515
|
# @type RealCreditBalance: Float
|
|
5516
|
+
# @param TempCredit: 临时额度,单位 分
|
|
5517
|
+
# @type TempCredit: Float
|
|
5518
|
+
# @param TempAmountInfoList: 临时额度详情
|
|
5519
|
+
# @type TempAmountInfoList: Array
|
|
5511
5520
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5512
5521
|
# @type RequestId: String
|
|
5513
5522
|
|
|
5514
|
-
attr_accessor :Balance, :Uin, :RealBalance, :CashAccountBalance, :IncomeIntoAccountBalance, :PresentAccountBalance, :FreezeAmount, :OweAmount, :IsAllowArrears, :IsCreditLimited, :CreditAmount, :CreditBalance, :RealCreditBalance, :RequestId
|
|
5523
|
+
attr_accessor :Balance, :Uin, :RealBalance, :CashAccountBalance, :IncomeIntoAccountBalance, :PresentAccountBalance, :FreezeAmount, :OweAmount, :IsAllowArrears, :IsCreditLimited, :CreditAmount, :CreditBalance, :RealCreditBalance, :TempCredit, :TempAmountInfoList, :RequestId
|
|
5515
5524
|
extend Gem::Deprecate
|
|
5516
5525
|
deprecate :IsAllowArrears, :none, 2025, 12
|
|
5517
5526
|
deprecate :IsAllowArrears=, :none, 2025, 12
|
|
5518
5527
|
deprecate :IsCreditLimited, :none, 2025, 12
|
|
5519
5528
|
deprecate :IsCreditLimited=, :none, 2025, 12
|
|
5520
5529
|
|
|
5521
|
-
def initialize(balance=nil, uin=nil, realbalance=nil, cashaccountbalance=nil, incomeintoaccountbalance=nil, presentaccountbalance=nil, freezeamount=nil, oweamount=nil, isallowarrears=nil, iscreditlimited=nil, creditamount=nil, creditbalance=nil, realcreditbalance=nil, requestid=nil)
|
|
5530
|
+
def initialize(balance=nil, uin=nil, realbalance=nil, cashaccountbalance=nil, incomeintoaccountbalance=nil, presentaccountbalance=nil, freezeamount=nil, oweamount=nil, isallowarrears=nil, iscreditlimited=nil, creditamount=nil, creditbalance=nil, realcreditbalance=nil, tempcredit=nil, tempamountinfolist=nil, requestid=nil)
|
|
5522
5531
|
@Balance = balance
|
|
5523
5532
|
@Uin = uin
|
|
5524
5533
|
@RealBalance = realbalance
|
|
@@ -5532,6 +5541,8 @@ module TencentCloud
|
|
|
5532
5541
|
@CreditAmount = creditamount
|
|
5533
5542
|
@CreditBalance = creditbalance
|
|
5534
5543
|
@RealCreditBalance = realcreditbalance
|
|
5544
|
+
@TempCredit = tempcredit
|
|
5545
|
+
@TempAmountInfoList = tempamountinfolist
|
|
5535
5546
|
@RequestId = requestid
|
|
5536
5547
|
end
|
|
5537
5548
|
|
|
@@ -5549,6 +5560,15 @@ module TencentCloud
|
|
|
5549
5560
|
@CreditAmount = params['CreditAmount']
|
|
5550
5561
|
@CreditBalance = params['CreditBalance']
|
|
5551
5562
|
@RealCreditBalance = params['RealCreditBalance']
|
|
5563
|
+
@TempCredit = params['TempCredit']
|
|
5564
|
+
unless params['TempAmountInfoList'].nil?
|
|
5565
|
+
@TempAmountInfoList = []
|
|
5566
|
+
params['TempAmountInfoList'].each do |i|
|
|
5567
|
+
uintempamountmodel_tmp = UinTempAmountModel.new
|
|
5568
|
+
uintempamountmodel_tmp.deserialize(i)
|
|
5569
|
+
@TempAmountInfoList << uintempamountmodel_tmp
|
|
5570
|
+
end
|
|
5571
|
+
end
|
|
5552
5572
|
@RequestId = params['RequestId']
|
|
5553
5573
|
end
|
|
5554
5574
|
end
|
|
@@ -8403,14 +8423,14 @@ module TencentCloud
|
|
|
8403
8423
|
# @type Limit: Integer
|
|
8404
8424
|
# @param Offset: 偏移量
|
|
8405
8425
|
# @type Offset: Integer
|
|
8406
|
-
# @param BeginTime:
|
|
8426
|
+
# @param BeginTime: 周期开始时间,查询粒度为天级别,需传入时分秒参数,格式为yyyy-mm-dd hh:ii:ss,Month和BeginTime&EndTime必传一个,如果有该字段则Month字段无效。BeginTime和EndTime必须一起传,且为同一月份,暂不支持跨月拉取。可拉取的数据是开通消耗账单后,且距今 18 个月内的数据。
|
|
8407
8427
|
# @type BeginTime: String
|
|
8408
|
-
# @param EndTime:
|
|
8428
|
+
# @param EndTime: 周期结束时间,查询粒度为天级别,需传入时分秒参数,格式为yyyy-mm-dd hh:ii:ss,Month和BeginTime&EndTime必传一个,如果有该字段则Month字段无效。BeginTime和EndTime必须一起传,且为同一月份,暂不支持跨月拉取。可拉取的数据是开通消耗账单后,且距今 18 个月内的数据。
|
|
8409
8429
|
# @type EndTime: String
|
|
8410
8430
|
# @param NeedRecordNum: 是否需要访问列表的总记录数,用于前端分页
|
|
8411
8431
|
# 1-表示需要, 0-表示不需要
|
|
8412
8432
|
# @type NeedRecordNum: Integer
|
|
8413
|
-
# @param Month: 月份,格式为yyyy-mm,Month和BeginTime&EndTime必传一个,如果有传BeginTime&EndTime则Month
|
|
8433
|
+
# @param Month: 月份,格式为yyyy-mm,Month和BeginTime&EndTime必传一个,如果有传BeginTime&EndTime则Month字段无效。不能早于开通消耗账单的月份,最多可拉取18个月内的数据。
|
|
8414
8434
|
# @type Month: String
|
|
8415
8435
|
# @param ProductCode: 查询指定产品信息
|
|
8416
8436
|
# @type ProductCode: String
|
|
@@ -8934,6 +8954,68 @@ module TencentCloud
|
|
|
8934
8954
|
end
|
|
8935
8955
|
end
|
|
8936
8956
|
|
|
8957
|
+
# DescribeCostSummaryByTag请求参数结构体
|
|
8958
|
+
class DescribeCostSummaryByTagRequest < TencentCloud::Common::AbstractModel
|
|
8959
|
+
# @param BeginTime: 目前必须和EndTime相同月份,不支持跨月查询,且查询结果是整月数据,例如 BeginTime为2025-12,EndTime 为 2025-12,查询结果是 2025 年 12 月数据。
|
|
8960
|
+
# @type BeginTime: String
|
|
8961
|
+
# @param EndTime: 目前必须和BeginTime为相同月份,不支持跨月查询,且查询结果是整月数据,例如 BeginTime为2025-12,EndTime 为 2025-12,查询结果是 2025 年 12 月数据。
|
|
8962
|
+
# @type EndTime: String
|
|
8963
|
+
# @param TagKey: 分账标签键,用户自定义
|
|
8964
|
+
# @type TagKey: String
|
|
8965
|
+
|
|
8966
|
+
attr_accessor :BeginTime, :EndTime, :TagKey
|
|
8967
|
+
|
|
8968
|
+
def initialize(begintime=nil, endtime=nil, tagkey=nil)
|
|
8969
|
+
@BeginTime = begintime
|
|
8970
|
+
@EndTime = endtime
|
|
8971
|
+
@TagKey = tagkey
|
|
8972
|
+
end
|
|
8973
|
+
|
|
8974
|
+
def deserialize(params)
|
|
8975
|
+
@BeginTime = params['BeginTime']
|
|
8976
|
+
@EndTime = params['EndTime']
|
|
8977
|
+
@TagKey = params['TagKey']
|
|
8978
|
+
end
|
|
8979
|
+
end
|
|
8980
|
+
|
|
8981
|
+
# DescribeCostSummaryByTag返回参数结构体
|
|
8982
|
+
class DescribeCostSummaryByTagResponse < TencentCloud::Common::AbstractModel
|
|
8983
|
+
# @param Ready: 数据是否准备好,0准备中,1已就绪。
|
|
8984
|
+
# @type Ready: Integer
|
|
8985
|
+
# @param SummaryOverview: 各标签值消耗分布详情
|
|
8986
|
+
# @type SummaryOverview: Array
|
|
8987
|
+
# @param SummaryTotal: 总计
|
|
8988
|
+
# @type SummaryTotal: :class:`Tencentcloud::Billing.v20180709.models.SummaryTotal`
|
|
8989
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8990
|
+
# @type RequestId: String
|
|
8991
|
+
|
|
8992
|
+
attr_accessor :Ready, :SummaryOverview, :SummaryTotal, :RequestId
|
|
8993
|
+
|
|
8994
|
+
def initialize(ready=nil, summaryoverview=nil, summarytotal=nil, requestid=nil)
|
|
8995
|
+
@Ready = ready
|
|
8996
|
+
@SummaryOverview = summaryoverview
|
|
8997
|
+
@SummaryTotal = summarytotal
|
|
8998
|
+
@RequestId = requestid
|
|
8999
|
+
end
|
|
9000
|
+
|
|
9001
|
+
def deserialize(params)
|
|
9002
|
+
@Ready = params['Ready']
|
|
9003
|
+
unless params['SummaryOverview'].nil?
|
|
9004
|
+
@SummaryOverview = []
|
|
9005
|
+
params['SummaryOverview'].each do |i|
|
|
9006
|
+
tagsummaryoverviewitem_tmp = TagSummaryOverviewItem.new
|
|
9007
|
+
tagsummaryoverviewitem_tmp.deserialize(i)
|
|
9008
|
+
@SummaryOverview << tagsummaryoverviewitem_tmp
|
|
9009
|
+
end
|
|
9010
|
+
end
|
|
9011
|
+
unless params['SummaryTotal'].nil?
|
|
9012
|
+
@SummaryTotal = SummaryTotal.new
|
|
9013
|
+
@SummaryTotal.deserialize(params['SummaryTotal'])
|
|
9014
|
+
end
|
|
9015
|
+
@RequestId = params['RequestId']
|
|
9016
|
+
end
|
|
9017
|
+
end
|
|
9018
|
+
|
|
8937
9019
|
# DescribeDealsByCond请求参数结构体
|
|
8938
9020
|
class DescribeDealsByCondRequest < TencentCloud::Common::AbstractModel
|
|
8939
9021
|
# @param StartTime: 开始时间 2016-01-01 00:00:00
|
|
@@ -11010,6 +11092,34 @@ module TencentCloud
|
|
|
11010
11092
|
end
|
|
11011
11093
|
end
|
|
11012
11094
|
|
|
11095
|
+
# 临时额度详情
|
|
11096
|
+
class UinTempAmountModel < TencentCloud::Common::AbstractModel
|
|
11097
|
+
# @param Uin: 用户uin
|
|
11098
|
+
# @type Uin: String
|
|
11099
|
+
# @param TempAmount: 临时额度
|
|
11100
|
+
# @type TempAmount: Float
|
|
11101
|
+
# @param StartTime: 开始时间
|
|
11102
|
+
# @type StartTime: String
|
|
11103
|
+
# @param EndTime: 结束时间
|
|
11104
|
+
# @type EndTime: String
|
|
11105
|
+
|
|
11106
|
+
attr_accessor :Uin, :TempAmount, :StartTime, :EndTime
|
|
11107
|
+
|
|
11108
|
+
def initialize(uin=nil, tempamount=nil, starttime=nil, endtime=nil)
|
|
11109
|
+
@Uin = uin
|
|
11110
|
+
@TempAmount = tempamount
|
|
11111
|
+
@StartTime = starttime
|
|
11112
|
+
@EndTime = endtime
|
|
11113
|
+
end
|
|
11114
|
+
|
|
11115
|
+
def deserialize(params)
|
|
11116
|
+
@Uin = params['Uin']
|
|
11117
|
+
@TempAmount = params['TempAmount']
|
|
11118
|
+
@StartTime = params['StartTime']
|
|
11119
|
+
@EndTime = params['EndTime']
|
|
11120
|
+
end
|
|
11121
|
+
end
|
|
11122
|
+
|
|
11013
11123
|
# 购买商品信息
|
|
11014
11124
|
class UsageDetails < TencentCloud::Common::AbstractModel
|
|
11015
11125
|
# @param ProductName: 商品名
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-billing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1189
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|
|
@@ -33,9 +33,9 @@ executables: []
|
|
|
33
33
|
extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
|
-
- lib/tencentcloud-sdk-billing.rb
|
|
37
|
-
- lib/v20180709/models.rb
|
|
38
36
|
- lib/v20180709/client.rb
|
|
37
|
+
- lib/v20180709/models.rb
|
|
38
|
+
- lib/tencentcloud-sdk-billing.rb
|
|
39
39
|
- lib/VERSION
|
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
41
41
|
licenses:
|