tencentcloud-sdk-billing 3.0.646 → 3.0.647
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 +72 -0
- data/lib/v20180709/models.rb +163 -2
- 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: c9832e5487978b7e291f22dce61548461c95832d
|
4
|
+
data.tar.gz: f0012fd4dd1c23389fb55dfb53aff81ab7ae380f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d36be2038f3f4847a0a410de8325304376e8f3cf9619628537f5e98b2dcea68e13a03af4280cdcedfde541af16140bee204ca995bc01e7f507e08252440662f
|
7
|
+
data.tar.gz: f91c47eaf144e428c9f275924abf2163901707c68227dfb9c499d25e23bfe77e5a1e59f0fff7e9d18eef9ba1a88ad9123cac23a7bf863e391017b972864ee56f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.647
|
data/lib/v20180709/client.rb
CHANGED
@@ -29,6 +29,54 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 批量设置分账标签
|
33
|
+
|
34
|
+
# @param request: Request instance for CreateAllocationTag.
|
35
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::CreateAllocationTagRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::CreateAllocationTagResponse`
|
37
|
+
def CreateAllocationTag(request)
|
38
|
+
body = send_request('CreateAllocationTag', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = CreateAllocationTagResponse.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
|
+
|
56
|
+
# 批量取消设置分账标签
|
57
|
+
|
58
|
+
# @param request: Request instance for DeleteAllocationTag.
|
59
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DeleteAllocationTagRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DeleteAllocationTagResponse`
|
61
|
+
def DeleteAllocationTag(request)
|
62
|
+
body = send_request('DeleteAllocationTag', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DeleteAllocationTagResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
32
80
|
# 获取云账户余额信息。
|
33
81
|
|
34
82
|
# @param request: Request instance for DescribeAccountBalance.
|
@@ -464,6 +512,30 @@ module TencentCloud
|
|
464
512
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
465
513
|
end
|
466
514
|
|
515
|
+
# 获取分账标签
|
516
|
+
|
517
|
+
# @param request: Request instance for DescribeTagList.
|
518
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeTagListRequest`
|
519
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeTagListResponse`
|
520
|
+
def DescribeTagList(request)
|
521
|
+
body = send_request('DescribeTagList', request.serialize)
|
522
|
+
response = JSON.parse(body)
|
523
|
+
if response['Response'].key?('Error') == false
|
524
|
+
model = DescribeTagListResponse.new
|
525
|
+
model.deserialize(response['Response'])
|
526
|
+
model
|
527
|
+
else
|
528
|
+
code = response['Response']['Error']['Code']
|
529
|
+
message = response['Response']['Error']['Message']
|
530
|
+
reqid = response['Response']['RequestId']
|
531
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
532
|
+
end
|
533
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
534
|
+
raise e
|
535
|
+
rescue StandardError => e
|
536
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
537
|
+
end
|
538
|
+
|
467
539
|
# 获取代金券相关信息
|
468
540
|
|
469
541
|
# @param request: Request instance for DescribeVoucherInfo.
|
data/lib/v20180709/models.rb
CHANGED
@@ -1558,6 +1558,38 @@ module TencentCloud
|
|
1558
1558
|
end
|
1559
1559
|
end
|
1560
1560
|
|
1561
|
+
# CreateAllocationTag请求参数结构体
|
1562
|
+
class CreateAllocationTagRequest < TencentCloud::Common::AbstractModel
|
1563
|
+
# @param TagKey: 用户分账标签键
|
1564
|
+
# @type TagKey: Array
|
1565
|
+
|
1566
|
+
attr_accessor :TagKey
|
1567
|
+
|
1568
|
+
def initialize(tagkey=nil)
|
1569
|
+
@TagKey = tagkey
|
1570
|
+
end
|
1571
|
+
|
1572
|
+
def deserialize(params)
|
1573
|
+
@TagKey = params['TagKey']
|
1574
|
+
end
|
1575
|
+
end
|
1576
|
+
|
1577
|
+
# CreateAllocationTag返回参数结构体
|
1578
|
+
class CreateAllocationTagResponse < TencentCloud::Common::AbstractModel
|
1579
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1580
|
+
# @type RequestId: String
|
1581
|
+
|
1582
|
+
attr_accessor :RequestId
|
1583
|
+
|
1584
|
+
def initialize(requestid=nil)
|
1585
|
+
@RequestId = requestid
|
1586
|
+
end
|
1587
|
+
|
1588
|
+
def deserialize(params)
|
1589
|
+
@RequestId = params['RequestId']
|
1590
|
+
end
|
1591
|
+
end
|
1592
|
+
|
1561
1593
|
# 订单数据对象
|
1562
1594
|
class Deal < TencentCloud::Common::AbstractModel
|
1563
1595
|
# @param OrderId: 订单号
|
@@ -1700,6 +1732,38 @@ module TencentCloud
|
|
1700
1732
|
end
|
1701
1733
|
end
|
1702
1734
|
|
1735
|
+
# DeleteAllocationTag请求参数结构体
|
1736
|
+
class DeleteAllocationTagRequest < TencentCloud::Common::AbstractModel
|
1737
|
+
# @param TagKey: 用户分账标签键
|
1738
|
+
# @type TagKey: Array
|
1739
|
+
|
1740
|
+
attr_accessor :TagKey
|
1741
|
+
|
1742
|
+
def initialize(tagkey=nil)
|
1743
|
+
@TagKey = tagkey
|
1744
|
+
end
|
1745
|
+
|
1746
|
+
def deserialize(params)
|
1747
|
+
@TagKey = params['TagKey']
|
1748
|
+
end
|
1749
|
+
end
|
1750
|
+
|
1751
|
+
# DeleteAllocationTag返回参数结构体
|
1752
|
+
class DeleteAllocationTagResponse < TencentCloud::Common::AbstractModel
|
1753
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1754
|
+
# @type RequestId: String
|
1755
|
+
|
1756
|
+
attr_accessor :RequestId
|
1757
|
+
|
1758
|
+
def initialize(requestid=nil)
|
1759
|
+
@RequestId = requestid
|
1760
|
+
end
|
1761
|
+
|
1762
|
+
def deserialize(params)
|
1763
|
+
@RequestId = params['RequestId']
|
1764
|
+
end
|
1765
|
+
end
|
1766
|
+
|
1703
1767
|
# DescribeAccountBalance请求参数结构体
|
1704
1768
|
class DescribeAccountBalanceRequest < TencentCloud::Common::AbstractModel
|
1705
1769
|
|
@@ -2104,10 +2168,15 @@ module TencentCloud
|
|
2104
2168
|
# @type BusinessCode: String
|
2105
2169
|
# @param PayerUin: 支付者的账号 ID(账号 ID 是用户在腾讯云的唯一账号标识),默认查询本账号账单,如集团管理账号需查询成员账号自付的账单,该字段需入参成员账号UIN
|
2106
2170
|
# @type PayerUin: String
|
2171
|
+
# @param TagKey: 分账标签键,用户自定义(支持2021-01以后账单查询)
|
2172
|
+
# @type TagKey: String
|
2173
|
+
# @param TagValue: 分账标签值,该参数为空表示该标签键下未设置标签值的记录
|
2174
|
+
# (支持2021-01以后账单查询)
|
2175
|
+
# @type TagValue: String
|
2107
2176
|
|
2108
|
-
attr_accessor :Offset, :Limit, :Month, :PeriodType, :NeedRecordNum, :ActionType, :ResourceId, :PayMode, :BusinessCode, :PayerUin
|
2177
|
+
attr_accessor :Offset, :Limit, :Month, :PeriodType, :NeedRecordNum, :ActionType, :ResourceId, :PayMode, :BusinessCode, :PayerUin, :TagKey, :TagValue
|
2109
2178
|
|
2110
|
-
def initialize(offset=nil, limit=nil, month=nil, periodtype=nil, needrecordnum=nil, actiontype=nil, resourceid=nil, paymode=nil, businesscode=nil, payeruin=nil)
|
2179
|
+
def initialize(offset=nil, limit=nil, month=nil, periodtype=nil, needrecordnum=nil, actiontype=nil, resourceid=nil, paymode=nil, businesscode=nil, payeruin=nil, tagkey=nil, tagvalue=nil)
|
2111
2180
|
@Offset = offset
|
2112
2181
|
@Limit = limit
|
2113
2182
|
@Month = month
|
@@ -2118,6 +2187,8 @@ module TencentCloud
|
|
2118
2187
|
@PayMode = paymode
|
2119
2188
|
@BusinessCode = businesscode
|
2120
2189
|
@PayerUin = payeruin
|
2190
|
+
@TagKey = tagkey
|
2191
|
+
@TagValue = tagvalue
|
2121
2192
|
end
|
2122
2193
|
|
2123
2194
|
def deserialize(params)
|
@@ -2131,6 +2202,8 @@ module TencentCloud
|
|
2131
2202
|
@PayMode = params['PayMode']
|
2132
2203
|
@BusinessCode = params['BusinessCode']
|
2133
2204
|
@PayerUin = params['PayerUin']
|
2205
|
+
@TagKey = params['TagKey']
|
2206
|
+
@TagValue = params['TagValue']
|
2134
2207
|
end
|
2135
2208
|
end
|
2136
2209
|
|
@@ -3185,6 +3258,69 @@ module TencentCloud
|
|
3185
3258
|
end
|
3186
3259
|
end
|
3187
3260
|
|
3261
|
+
# DescribeTagList请求参数结构体
|
3262
|
+
class DescribeTagListRequest < TencentCloud::Common::AbstractModel
|
3263
|
+
# @param Limit: 分页偏移量,Offset=0表示第一页,如果Limit=100,则Offset=100表示第二页,Offset=200表示第三页,依次类推
|
3264
|
+
# @type Limit: Integer
|
3265
|
+
# @param Offset: 数量,最大值为1000
|
3266
|
+
# @type Offset: Integer
|
3267
|
+
# @param TagKey: 分账标签键,用作模糊搜索
|
3268
|
+
# @type TagKey: String
|
3269
|
+
# @param Status: 标签类型,枚举值:0普通标签,1分账标签,用作筛选,不传获取全部标签键
|
3270
|
+
# @type Status: Integer
|
3271
|
+
# @param OrderType: 排序方式,枚举值:asc排升序,desc排降序
|
3272
|
+
# @type OrderType: String
|
3273
|
+
|
3274
|
+
attr_accessor :Limit, :Offset, :TagKey, :Status, :OrderType
|
3275
|
+
|
3276
|
+
def initialize(limit=nil, offset=nil, tagkey=nil, status=nil, ordertype=nil)
|
3277
|
+
@Limit = limit
|
3278
|
+
@Offset = offset
|
3279
|
+
@TagKey = tagkey
|
3280
|
+
@Status = status
|
3281
|
+
@OrderType = ordertype
|
3282
|
+
end
|
3283
|
+
|
3284
|
+
def deserialize(params)
|
3285
|
+
@Limit = params['Limit']
|
3286
|
+
@Offset = params['Offset']
|
3287
|
+
@TagKey = params['TagKey']
|
3288
|
+
@Status = params['Status']
|
3289
|
+
@OrderType = params['OrderType']
|
3290
|
+
end
|
3291
|
+
end
|
3292
|
+
|
3293
|
+
# DescribeTagList返回参数结构体
|
3294
|
+
class DescribeTagListResponse < TencentCloud::Common::AbstractModel
|
3295
|
+
# @param RecordNum: 总记录数
|
3296
|
+
# @type RecordNum: Integer
|
3297
|
+
# @param Data: 标签信息
|
3298
|
+
# @type Data: Array
|
3299
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3300
|
+
# @type RequestId: String
|
3301
|
+
|
3302
|
+
attr_accessor :RecordNum, :Data, :RequestId
|
3303
|
+
|
3304
|
+
def initialize(recordnum=nil, data=nil, requestid=nil)
|
3305
|
+
@RecordNum = recordnum
|
3306
|
+
@Data = data
|
3307
|
+
@RequestId = requestid
|
3308
|
+
end
|
3309
|
+
|
3310
|
+
def deserialize(params)
|
3311
|
+
@RecordNum = params['RecordNum']
|
3312
|
+
unless params['Data'].nil?
|
3313
|
+
@Data = []
|
3314
|
+
params['Data'].each do |i|
|
3315
|
+
tagdatainfo_tmp = TagDataInfo.new
|
3316
|
+
tagdatainfo_tmp.deserialize(i)
|
3317
|
+
@Data << tagdatainfo_tmp
|
3318
|
+
end
|
3319
|
+
end
|
3320
|
+
@RequestId = params['RequestId']
|
3321
|
+
end
|
3322
|
+
end
|
3323
|
+
|
3188
3324
|
# DescribeVoucherInfo请求参数结构体
|
3189
3325
|
class DescribeVoucherInfoRequest < TencentCloud::Common::AbstractModel
|
3190
3326
|
# @param Limit: 一页多少条数据,默认是20条,最大不超过1000
|
@@ -3750,6 +3886,31 @@ module TencentCloud
|
|
3750
3886
|
end
|
3751
3887
|
end
|
3752
3888
|
|
3889
|
+
# 标签信息
|
3890
|
+
class TagDataInfo < TencentCloud::Common::AbstractModel
|
3891
|
+
# @param TagKey: 分账标签键
|
3892
|
+
# @type TagKey: String
|
3893
|
+
# @param Status: 标签类型,0普通标签,1分账标签
|
3894
|
+
# @type Status: Integer
|
3895
|
+
# @param UpdateTime: 设置分账标签时间,普通标签不返回
|
3896
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3897
|
+
# @type UpdateTime: String
|
3898
|
+
|
3899
|
+
attr_accessor :TagKey, :Status, :UpdateTime
|
3900
|
+
|
3901
|
+
def initialize(tagkey=nil, status=nil, updatetime=nil)
|
3902
|
+
@TagKey = tagkey
|
3903
|
+
@Status = status
|
3904
|
+
@UpdateTime = updatetime
|
3905
|
+
end
|
3906
|
+
|
3907
|
+
def deserialize(params)
|
3908
|
+
@TagKey = params['TagKey']
|
3909
|
+
@Status = params['Status']
|
3910
|
+
@UpdateTime = params['UpdateTime']
|
3911
|
+
end
|
3912
|
+
end
|
3913
|
+
|
3753
3914
|
# 按标签汇总消费详情
|
3754
3915
|
class TagSummaryOverviewItem < TencentCloud::Common::AbstractModel
|
3755
3916
|
# @param TagValue: 标签值
|
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.647
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|