tencentcloud-sdk-billing 3.0.1197 → 3.0.1206
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 +72 -0
- data/lib/v20180709/models.rb +198 -1
- 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: 6d86130cb81e40d53594c47f67c868f5a4447438
|
|
4
|
+
data.tar.gz: 79af297b39b7aac13940ced53e43d03ce3e25c2a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6d2e7be84d8505d183ea159c9a163799667211e448e82d974d2208564b28d071bbeeb51075478eaf4d21f018b963efb70bd76effbb0b06d897a8c3e1e855e90d
|
|
7
|
+
data.tar.gz: c9ffdcbbc7d564fcf3d02a549050a35cf0df54f384c5ec504aa39bde5c5b252c13772da0b1089e26b793ad30eeb2f5c83af9259337adb68dd6d5be085108c34c
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1206
|
data/lib/v20180709/client.rb
CHANGED
|
@@ -149,6 +149,30 @@ module TencentCloud
|
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
150
150
|
end
|
|
151
151
|
|
|
152
|
+
# 创建一个实例资源,会创建一个新购实例资源的订单,并通过腾讯云账户余额自动支付。调用该接口的账号需要授予finace:trade的权限,否则无法支付成功。目前已接入并支持购买的产品包括:T-Sec-Web应用防火墙、云防火墙、主机安全、主机容器、云安全中心、T-Sec-密钥管理系统。
|
|
153
|
+
|
|
154
|
+
# @param request: Request instance for CreateInstance.
|
|
155
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::CreateInstanceRequest`
|
|
156
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::CreateInstanceResponse`
|
|
157
|
+
def CreateInstance(request)
|
|
158
|
+
body = send_request('CreateInstance', request.serialize)
|
|
159
|
+
response = JSON.parse(body)
|
|
160
|
+
if response['Response'].key?('Error') == false
|
|
161
|
+
model = CreateInstanceResponse.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
|
+
|
|
152
176
|
# 公摊规则删除接口
|
|
153
177
|
|
|
154
178
|
# @param request: Request instance for DeleteAllocationRule.
|
|
@@ -1548,6 +1572,54 @@ module TencentCloud
|
|
|
1548
1572
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1549
1573
|
end
|
|
1550
1574
|
|
|
1575
|
+
# 退订不再需要的实例,只退还实付金额的部分,已使用的代金券不退还,退还的实付金额默认退到腾讯云账户余额中。调用该接口的账号需要授予finace:RefundInstance的权限,否则无法支付成功。目前已接入并支持退订的产品包括:T-Sec-Web应用防火墙、云防火墙、主机安全、主机容器、云安全中心、T-Sec-密钥管理系统。
|
|
1576
|
+
|
|
1577
|
+
# @param request: Request instance for RefundInstance.
|
|
1578
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::RefundInstanceRequest`
|
|
1579
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::RefundInstanceResponse`
|
|
1580
|
+
def RefundInstance(request)
|
|
1581
|
+
body = send_request('RefundInstance', request.serialize)
|
|
1582
|
+
response = JSON.parse(body)
|
|
1583
|
+
if response['Response'].key?('Error') == false
|
|
1584
|
+
model = RefundInstanceResponse.new
|
|
1585
|
+
model.deserialize(response['Response'])
|
|
1586
|
+
model
|
|
1587
|
+
else
|
|
1588
|
+
code = response['Response']['Error']['Code']
|
|
1589
|
+
message = response['Response']['Error']['Message']
|
|
1590
|
+
reqid = response['Response']['RequestId']
|
|
1591
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1592
|
+
end
|
|
1593
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1594
|
+
raise e
|
|
1595
|
+
rescue StandardError => e
|
|
1596
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1597
|
+
end
|
|
1598
|
+
|
|
1599
|
+
# 续费一台实例,调用该接口续费服务器时,您需要确保您的腾讯云账户余额充足,否则会续费失败。调用该接口的账号需要授予finace:trade的权限,否则无法续费成功。目前已接入并支持续费的产品包括:T-Sec-Web应用防火墙、云防火墙、主机安全、主机容器、云安全中心、T-Sec-密钥管理系统。
|
|
1600
|
+
|
|
1601
|
+
# @param request: Request instance for RenewInstance.
|
|
1602
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::RenewInstanceRequest`
|
|
1603
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::RenewInstanceResponse`
|
|
1604
|
+
def RenewInstance(request)
|
|
1605
|
+
body = send_request('RenewInstance', request.serialize)
|
|
1606
|
+
response = JSON.parse(body)
|
|
1607
|
+
if response['Response'].key?('Error') == false
|
|
1608
|
+
model = RenewInstanceResponse.new
|
|
1609
|
+
model.deserialize(response['Response'])
|
|
1610
|
+
model
|
|
1611
|
+
else
|
|
1612
|
+
code = response['Response']['Error']['Code']
|
|
1613
|
+
message = response['Response']['Error']['Message']
|
|
1614
|
+
reqid = response['Response']['RequestId']
|
|
1615
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1616
|
+
end
|
|
1617
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1618
|
+
raise e
|
|
1619
|
+
rescue StandardError => e
|
|
1620
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1621
|
+
end
|
|
1622
|
+
|
|
1551
1623
|
|
|
1552
1624
|
end
|
|
1553
1625
|
end
|
data/lib/v20180709/models.rb
CHANGED
|
@@ -5065,6 +5065,91 @@ module TencentCloud
|
|
|
5065
5065
|
end
|
|
5066
5066
|
end
|
|
5067
5067
|
|
|
5068
|
+
# CreateInstance请求参数结构体
|
|
5069
|
+
class CreateInstanceRequest < TencentCloud::Common::AbstractModel
|
|
5070
|
+
# @param ClientToken: ClientToken是一个由客户端生成的唯一的、区分大小写、不超过64个ASCII字符的字符串。例如,ClientToken=123e4567-e89b-12d3-a456-42665544****。
|
|
5071
|
+
# @type ClientToken: String
|
|
5072
|
+
# @param ProductCode: 产品一层code
|
|
5073
|
+
# @type ProductCode: String
|
|
5074
|
+
# @param SubProductCode: 产品二层code
|
|
5075
|
+
# @type SubProductCode: String
|
|
5076
|
+
# @param RegionCode: 地域code
|
|
5077
|
+
# @type RegionCode: String
|
|
5078
|
+
# @param ZoneCode: 可用区code
|
|
5079
|
+
# @type ZoneCode: String
|
|
5080
|
+
# @param PayMode: 付费类型,取值: PrePay:预付费
|
|
5081
|
+
# @type PayMode: String
|
|
5082
|
+
# @param Parameter: 商品详情信息
|
|
5083
|
+
# @type Parameter: String
|
|
5084
|
+
# @param Quantity: 商品数量,默认取值1
|
|
5085
|
+
# @type Quantity: Integer
|
|
5086
|
+
# @param ProjectId: 项目id,默认取0
|
|
5087
|
+
# @type ProjectId: Integer
|
|
5088
|
+
# @param Period: 新购时长,取值上限:36,默认取值1
|
|
5089
|
+
# @type Period: Integer
|
|
5090
|
+
# @param PeriodUnit: 新购时长单位,取值:m:按月购买,y:按年购买,默认取值m
|
|
5091
|
+
# @type PeriodUnit: String
|
|
5092
|
+
# @param RenewFlag: 自动续费标识,取值:NOTIFY_AND_MANUAL_RENEW:手动续费,NOTIFY_AND_AUTO_RENEW:自动续费,DISABLE_NOTIFY_AND_MANUAL_RENEW:到期不续,默认取值NOTIFY_AND_MANUAL_RENEW
|
|
5093
|
+
# @type RenewFlag: String
|
|
5094
|
+
|
|
5095
|
+
attr_accessor :ClientToken, :ProductCode, :SubProductCode, :RegionCode, :ZoneCode, :PayMode, :Parameter, :Quantity, :ProjectId, :Period, :PeriodUnit, :RenewFlag
|
|
5096
|
+
|
|
5097
|
+
def initialize(clienttoken=nil, productcode=nil, subproductcode=nil, regioncode=nil, zonecode=nil, paymode=nil, parameter=nil, quantity=nil, projectid=nil, period=nil, periodunit=nil, renewflag=nil)
|
|
5098
|
+
@ClientToken = clienttoken
|
|
5099
|
+
@ProductCode = productcode
|
|
5100
|
+
@SubProductCode = subproductcode
|
|
5101
|
+
@RegionCode = regioncode
|
|
5102
|
+
@ZoneCode = zonecode
|
|
5103
|
+
@PayMode = paymode
|
|
5104
|
+
@Parameter = parameter
|
|
5105
|
+
@Quantity = quantity
|
|
5106
|
+
@ProjectId = projectid
|
|
5107
|
+
@Period = period
|
|
5108
|
+
@PeriodUnit = periodunit
|
|
5109
|
+
@RenewFlag = renewflag
|
|
5110
|
+
end
|
|
5111
|
+
|
|
5112
|
+
def deserialize(params)
|
|
5113
|
+
@ClientToken = params['ClientToken']
|
|
5114
|
+
@ProductCode = params['ProductCode']
|
|
5115
|
+
@SubProductCode = params['SubProductCode']
|
|
5116
|
+
@RegionCode = params['RegionCode']
|
|
5117
|
+
@ZoneCode = params['ZoneCode']
|
|
5118
|
+
@PayMode = params['PayMode']
|
|
5119
|
+
@Parameter = params['Parameter']
|
|
5120
|
+
@Quantity = params['Quantity']
|
|
5121
|
+
@ProjectId = params['ProjectId']
|
|
5122
|
+
@Period = params['Period']
|
|
5123
|
+
@PeriodUnit = params['PeriodUnit']
|
|
5124
|
+
@RenewFlag = params['RenewFlag']
|
|
5125
|
+
end
|
|
5126
|
+
end
|
|
5127
|
+
|
|
5128
|
+
# CreateInstance返回参数结构体
|
|
5129
|
+
class CreateInstanceResponse < TencentCloud::Common::AbstractModel
|
|
5130
|
+
# @param OrderId: 订单号
|
|
5131
|
+
# @type OrderId: String
|
|
5132
|
+
# @param InstanceIdList: 实例列表,商品发货延迟可能返回空
|
|
5133
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
5134
|
+
# @type InstanceIdList: Array
|
|
5135
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5136
|
+
# @type RequestId: String
|
|
5137
|
+
|
|
5138
|
+
attr_accessor :OrderId, :InstanceIdList, :RequestId
|
|
5139
|
+
|
|
5140
|
+
def initialize(orderid=nil, instanceidlist=nil, requestid=nil)
|
|
5141
|
+
@OrderId = orderid
|
|
5142
|
+
@InstanceIdList = instanceidlist
|
|
5143
|
+
@RequestId = requestid
|
|
5144
|
+
end
|
|
5145
|
+
|
|
5146
|
+
def deserialize(params)
|
|
5147
|
+
@OrderId = params['OrderId']
|
|
5148
|
+
@InstanceIdList = params['InstanceIdList']
|
|
5149
|
+
@RequestId = params['RequestId']
|
|
5150
|
+
end
|
|
5151
|
+
end
|
|
5152
|
+
|
|
5068
5153
|
# 获取预算管理的基础信息分页数据
|
|
5069
5154
|
class DataForBudgetInfoPage < TencentCloud::Common::AbstractModel
|
|
5070
5155
|
# @param Pages: 分页
|
|
@@ -8523,7 +8608,7 @@ module TencentCloud
|
|
|
8523
8608
|
# payerUin=支付者账号
|
|
8524
8609
|
# ownerUin=使用者账号
|
|
8525
8610
|
# @type Dimensions: String
|
|
8526
|
-
# @param FeeType: 费用类型:cost
|
|
8611
|
+
# @param FeeType: 费用类型:cost-折后总费用,totalCost-原价费用
|
|
8527
8612
|
# @type FeeType: String
|
|
8528
8613
|
# @param PageSize: 数量,每页最大值为100
|
|
8529
8614
|
# @type PageSize: Integer
|
|
@@ -10875,6 +10960,58 @@ module TencentCloud
|
|
|
10875
10960
|
end
|
|
10876
10961
|
end
|
|
10877
10962
|
|
|
10963
|
+
# RefundInstance请求参数结构体
|
|
10964
|
+
class RefundInstanceRequest < TencentCloud::Common::AbstractModel
|
|
10965
|
+
# @param ClientToken: ClientToken是一个由客户端生成的唯一的、区分大小写、不超过64个ASCII字符的字符串。例如,ClientToken=123e4567-e89b-12d3-a456-42665544****。
|
|
10966
|
+
# @type ClientToken: String
|
|
10967
|
+
# @param ProductCode: 产品一层code
|
|
10968
|
+
# @type ProductCode: String
|
|
10969
|
+
# @param SubProductCode: 产品二层code
|
|
10970
|
+
# @type SubProductCode: String
|
|
10971
|
+
# @param InstanceId: 实例id
|
|
10972
|
+
# @type InstanceId: String
|
|
10973
|
+
# @param RegionCode: 地域code
|
|
10974
|
+
# @type RegionCode: String
|
|
10975
|
+
|
|
10976
|
+
attr_accessor :ClientToken, :ProductCode, :SubProductCode, :InstanceId, :RegionCode
|
|
10977
|
+
|
|
10978
|
+
def initialize(clienttoken=nil, productcode=nil, subproductcode=nil, instanceid=nil, regioncode=nil)
|
|
10979
|
+
@ClientToken = clienttoken
|
|
10980
|
+
@ProductCode = productcode
|
|
10981
|
+
@SubProductCode = subproductcode
|
|
10982
|
+
@InstanceId = instanceid
|
|
10983
|
+
@RegionCode = regioncode
|
|
10984
|
+
end
|
|
10985
|
+
|
|
10986
|
+
def deserialize(params)
|
|
10987
|
+
@ClientToken = params['ClientToken']
|
|
10988
|
+
@ProductCode = params['ProductCode']
|
|
10989
|
+
@SubProductCode = params['SubProductCode']
|
|
10990
|
+
@InstanceId = params['InstanceId']
|
|
10991
|
+
@RegionCode = params['RegionCode']
|
|
10992
|
+
end
|
|
10993
|
+
end
|
|
10994
|
+
|
|
10995
|
+
# RefundInstance返回参数结构体
|
|
10996
|
+
class RefundInstanceResponse < TencentCloud::Common::AbstractModel
|
|
10997
|
+
# @param OrderIdList: 订单号列表
|
|
10998
|
+
# @type OrderIdList: Array
|
|
10999
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11000
|
+
# @type RequestId: String
|
|
11001
|
+
|
|
11002
|
+
attr_accessor :OrderIdList, :RequestId
|
|
11003
|
+
|
|
11004
|
+
def initialize(orderidlist=nil, requestid=nil)
|
|
11005
|
+
@OrderIdList = orderidlist
|
|
11006
|
+
@RequestId = requestid
|
|
11007
|
+
end
|
|
11008
|
+
|
|
11009
|
+
def deserialize(params)
|
|
11010
|
+
@OrderIdList = params['OrderIdList']
|
|
11011
|
+
@RequestId = params['RequestId']
|
|
11012
|
+
end
|
|
11013
|
+
end
|
|
11014
|
+
|
|
10878
11015
|
# 按地域汇总消费详情
|
|
10879
11016
|
class RegionSummaryOverviewItem < TencentCloud::Common::AbstractModel
|
|
10880
11017
|
# @param RegionId: 地域ID
|
|
@@ -10927,6 +11064,66 @@ module TencentCloud
|
|
|
10927
11064
|
end
|
|
10928
11065
|
end
|
|
10929
11066
|
|
|
11067
|
+
# RenewInstance请求参数结构体
|
|
11068
|
+
class RenewInstanceRequest < TencentCloud::Common::AbstractModel
|
|
11069
|
+
# @param ClientToken: ClientToken是一个由客户端生成的唯一的、区分大小写、不超过64个ASCII字符的字符串。例如,ClientToken=123e4567-e89b-12d3-a456-42665544****。
|
|
11070
|
+
# @type ClientToken: String
|
|
11071
|
+
# @param ProductCode: 产品一层code
|
|
11072
|
+
# @type ProductCode: String
|
|
11073
|
+
# @param SubProductCode: 产品二层code
|
|
11074
|
+
# @type SubProductCode: String
|
|
11075
|
+
# @param RegionCode: 地域code
|
|
11076
|
+
# @type RegionCode: String
|
|
11077
|
+
# @param InstanceId: 实例ID
|
|
11078
|
+
# @type InstanceId: String
|
|
11079
|
+
# @param Period: 手动续费时长,取值上限:36,默认取值1
|
|
11080
|
+
# @type Period: Integer
|
|
11081
|
+
# @param PeriodUnit: 手动续费时长单位,取值:m:按月续费,y:按年续费,默认取值m
|
|
11082
|
+
# @type PeriodUnit: String
|
|
11083
|
+
|
|
11084
|
+
attr_accessor :ClientToken, :ProductCode, :SubProductCode, :RegionCode, :InstanceId, :Period, :PeriodUnit
|
|
11085
|
+
|
|
11086
|
+
def initialize(clienttoken=nil, productcode=nil, subproductcode=nil, regioncode=nil, instanceid=nil, period=nil, periodunit=nil)
|
|
11087
|
+
@ClientToken = clienttoken
|
|
11088
|
+
@ProductCode = productcode
|
|
11089
|
+
@SubProductCode = subproductcode
|
|
11090
|
+
@RegionCode = regioncode
|
|
11091
|
+
@InstanceId = instanceid
|
|
11092
|
+
@Period = period
|
|
11093
|
+
@PeriodUnit = periodunit
|
|
11094
|
+
end
|
|
11095
|
+
|
|
11096
|
+
def deserialize(params)
|
|
11097
|
+
@ClientToken = params['ClientToken']
|
|
11098
|
+
@ProductCode = params['ProductCode']
|
|
11099
|
+
@SubProductCode = params['SubProductCode']
|
|
11100
|
+
@RegionCode = params['RegionCode']
|
|
11101
|
+
@InstanceId = params['InstanceId']
|
|
11102
|
+
@Period = params['Period']
|
|
11103
|
+
@PeriodUnit = params['PeriodUnit']
|
|
11104
|
+
end
|
|
11105
|
+
end
|
|
11106
|
+
|
|
11107
|
+
# RenewInstance返回参数结构体
|
|
11108
|
+
class RenewInstanceResponse < TencentCloud::Common::AbstractModel
|
|
11109
|
+
# @param OrderIdList: 订单号列表
|
|
11110
|
+
# @type OrderIdList: Array
|
|
11111
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11112
|
+
# @type RequestId: String
|
|
11113
|
+
|
|
11114
|
+
attr_accessor :OrderIdList, :RequestId
|
|
11115
|
+
|
|
11116
|
+
def initialize(orderidlist=nil, requestid=nil)
|
|
11117
|
+
@OrderIdList = orderidlist
|
|
11118
|
+
@RequestId = requestid
|
|
11119
|
+
end
|
|
11120
|
+
|
|
11121
|
+
def deserialize(params)
|
|
11122
|
+
@OrderIdList = params['OrderIdList']
|
|
11123
|
+
@RequestId = params['RequestId']
|
|
11124
|
+
end
|
|
11125
|
+
end
|
|
11126
|
+
|
|
10930
11127
|
# 账单多维度汇总消费详情
|
|
10931
11128
|
class SummaryDetail < TencentCloud::Common::AbstractModel
|
|
10932
11129
|
# @param GroupKey: 账单维度编码
|
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.1206
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|