lib/v20180411/models.rb in tencentcloud-sdk-dcdb-3.0.451 vs lib/v20180411/models.rb in tencentcloud-sdk-dcdb-3.0.452
- old
+ new
@@ -2015,22 +2015,27 @@
# @type ShardStorage: Integer
# @param ShardCount: 实例分片个数,可选范围2-8,可以通过升级实例进行新增分片到最多64个分片。
# @type ShardCount: Integer
# @param Paymode: 付费类型。postpaid:按量付费 prepaid:预付费
# @type Paymode: String
+ # @param AmountUnit: 价格金额单位,不传默认单位为分,取值:
+ # * pent:分
+ # * microPent:微分
+ # @type AmountUnit: String
- attr_accessor :Zone, :Count, :Period, :ShardNodeCount, :ShardMemory, :ShardStorage, :ShardCount, :Paymode
+ attr_accessor :Zone, :Count, :Period, :ShardNodeCount, :ShardMemory, :ShardStorage, :ShardCount, :Paymode, :AmountUnit
- def initialize(zone=nil, count=nil, period=nil, shardnodecount=nil, shardmemory=nil, shardstorage=nil, shardcount=nil, paymode=nil)
+ def initialize(zone=nil, count=nil, period=nil, shardnodecount=nil, shardmemory=nil, shardstorage=nil, shardcount=nil, paymode=nil, amountunit=nil)
@Zone = zone
@Count = count
@Period = period
@ShardNodeCount = shardnodecount
@ShardMemory = shardmemory
@ShardStorage = shardstorage
@ShardCount = shardcount
@Paymode = paymode
+ @AmountUnit = amountunit
end
def deserialize(params)
@Zone = params['Zone']
@Count = params['Count']
@@ -2038,18 +2043,23 @@
@ShardNodeCount = params['ShardNodeCount']
@ShardMemory = params['ShardMemory']
@ShardStorage = params['ShardStorage']
@ShardCount = params['ShardCount']
@Paymode = params['Paymode']
+ @AmountUnit = params['AmountUnit']
end
end
# DescribeDCDBPrice返回参数结构体
class DescribeDCDBPriceResponse < TencentCloud::Common::AbstractModel
- # @param OriginalPrice: 原价,单位:分
+ # @param OriginalPrice: 原价
+ # * 单位:默认为分,若请求参数带有AmountUnit,参考AmountUnit描述
+ # * 币种:国内站为人民币,国际站为美元
# @type OriginalPrice: Integer
- # @param Price: 实际价格,单位:分。受折扣等影响,可能和原价不同。
+ # @param Price: 实际价格,受折扣等影响,可能和原价不同
+ # * 单位:默认为分,若请求参数带有AmountUnit,参考AmountUnit描述
+ # * 币种:国内站人民币,国际站美元
# @type Price: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :OriginalPrice, :Price, :RequestId
@@ -2071,29 +2081,39 @@
class DescribeDCDBRenewalPriceRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 待续费的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
# @type InstanceId: String
# @param Period: 续费时长,单位:月。不传则默认为1个月。
# @type Period: Integer
+ # @param AmountUnit: 价格金额单位,不传默认单位为分,取值:
+ # * pent:分
+ # * microPent:微分
+ # @type AmountUnit: String
- attr_accessor :InstanceId, :Period
+ attr_accessor :InstanceId, :Period, :AmountUnit
- def initialize(instanceid=nil, period=nil)
+ def initialize(instanceid=nil, period=nil, amountunit=nil)
@InstanceId = instanceid
@Period = period
+ @AmountUnit = amountunit
end
def deserialize(params)
@InstanceId = params['InstanceId']
@Period = params['Period']
+ @AmountUnit = params['AmountUnit']
end
end
# DescribeDCDBRenewalPrice返回参数结构体
class DescribeDCDBRenewalPriceResponse < TencentCloud::Common::AbstractModel
- # @param OriginalPrice: 原价,单位:分
+ # @param OriginalPrice: 原价
+ # * 单位:默认为分,若请求参数带有AmountUnit,参考AmountUnit描述
+ # * 币种:国内站为人民币,国际站为美元
# @type OriginalPrice: Integer
- # @param Price: 实际价格,单位:分。受折扣等影响,可能和原价不同。
+ # @param Price: 实际价格,受折扣等影响,可能和原价不同
+ # * 单位:默认为分,若请求参数带有AmountUnit,参考AmountUnit描述
+ # * 币种:国内站人民币,国际站美元
# @type Price: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :OriginalPrice, :Price, :RequestId
@@ -2234,19 +2254,24 @@
# @type AddShardConfig: :class:`Tencentcloud::Dcdb.v20180411.models.AddShardConfig`
# @param ExpandShardConfig: 扩容分片配置,当UpgradeType为EXPAND时生效。
# @type ExpandShardConfig: :class:`Tencentcloud::Dcdb.v20180411.models.ExpandShardConfig`
# @param SplitShardConfig: 切分分片配置,当UpgradeType为SPLIT时生效。
# @type SplitShardConfig: :class:`Tencentcloud::Dcdb.v20180411.models.SplitShardConfig`
+ # @param AmountUnit: 价格金额单位,不传默认单位为分,取值:
+ # * pent:分
+ # * microPent:微分
+ # @type AmountUnit: String
- attr_accessor :InstanceId, :UpgradeType, :AddShardConfig, :ExpandShardConfig, :SplitShardConfig
+ attr_accessor :InstanceId, :UpgradeType, :AddShardConfig, :ExpandShardConfig, :SplitShardConfig, :AmountUnit
- def initialize(instanceid=nil, upgradetype=nil, addshardconfig=nil, expandshardconfig=nil, splitshardconfig=nil)
+ def initialize(instanceid=nil, upgradetype=nil, addshardconfig=nil, expandshardconfig=nil, splitshardconfig=nil, amountunit=nil)
@InstanceId = instanceid
@UpgradeType = upgradetype
@AddShardConfig = addshardconfig
@ExpandShardConfig = expandshardconfig
@SplitShardConfig = splitshardconfig
+ @AmountUnit = amountunit
end
def deserialize(params)
@InstanceId = params['InstanceId']
@UpgradeType = params['UpgradeType']
@@ -2260,18 +2285,23 @@
end
unless params['SplitShardConfig'].nil?
@SplitShardConfig = SplitShardConfig.new
@SplitShardConfig.deserialize(params['SplitShardConfig'])
end
+ @AmountUnit = params['AmountUnit']
end
end
# DescribeDCDBUpgradePrice返回参数结构体
class DescribeDCDBUpgradePriceResponse < TencentCloud::Common::AbstractModel
- # @param OriginalPrice: 原价,单位:分
+ # @param OriginalPrice: 原价
+ # * 单位:默认为分,若请求参数带有AmountUnit,参考AmountUnit描述
+ # * 币种:国内站为人民币,国际站为美元
# @type OriginalPrice: Integer
- # @param Price: 实际价格,单位:分。受折扣等影响,可能和原价不同。
+ # @param Price: 实际价格,受折扣等影响,可能和原价不同
+ # * 单位:默认为分,若请求参数带有AmountUnit,参考AmountUnit描述
+ # * 币种:国内站人民币,国际站美元
# @type Price: Integer
# @param Formula: 变配明细计算公式
# @type Formula: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
@@ -3060,22 +3090,26 @@
# @type ShardInstanceIds: Array
# @param ShardMemory: 分片内存大小,单位 GB
# @type ShardMemory: Integer
# @param ShardStorage: 分片存储大小,单位 GB
# @type ShardStorage: Integer
+ # @param ShardNodeCount: 分片节点数
+ # @type ShardNodeCount: Integer
- attr_accessor :ShardInstanceIds, :ShardMemory, :ShardStorage
+ attr_accessor :ShardInstanceIds, :ShardMemory, :ShardStorage, :ShardNodeCount
- def initialize(shardinstanceids=nil, shardmemory=nil, shardstorage=nil)
+ def initialize(shardinstanceids=nil, shardmemory=nil, shardstorage=nil, shardnodecount=nil)
@ShardInstanceIds = shardinstanceids
@ShardMemory = shardmemory
@ShardStorage = shardstorage
+ @ShardNodeCount = shardnodecount
end
def deserialize(params)
@ShardInstanceIds = params['ShardInstanceIds']
@ShardMemory = params['ShardMemory']
@ShardStorage = params['ShardStorage']
+ @ShardNodeCount = params['ShardNodeCount']
end
end
# FlushBinlog请求参数结构体
class FlushBinlogRequest < TencentCloud::Common::AbstractModel