tencentcloud-sdk-ckafka 3.0.463 → 3.0.464

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59374ccc7e5f7f1f204090b2b7e60629322ab85b
4
- data.tar.gz: 31ed058bbc27ea5afebc74544d3319fe5e0e00e3
3
+ metadata.gz: ecf39ce158eb8a7f6e2870c2edd6269185c66d6e
4
+ data.tar.gz: 9a22b2af1a2e72e08d49a75fb185dd1ca768cc0a
5
5
  SHA512:
6
- metadata.gz: 77bd0fe5dcec84b0537a872bff14600c00afffe1e4ae43e371994993e03ade437ef48f564ed7375c3b9d37254a617fe42ce72d2f7752620493d14f127fd9a0dc
7
- data.tar.gz: 5ea7f8344ed137dd05d688d6288b11fb52b1a271a89342c768871d496c29fccfa7df69cae8ef994571a9d96b7e0bc8eeccbcbaf397040462de05f99f33706a4a
6
+ metadata.gz: c6d8194db0e42981a38a974b956713bd513d6358d0dd106cc6fa6b577825d397021272c9d0df5d1276538747e4b717bbb196456f93160620c462a2f4858ffba5
7
+ data.tar.gz: 28eb72481b1ec5d5c4f09f19ff8744f6caa9ef7afff63d7085a7e47f456e3ddfb4e26e8ec265752bd3f8457648904e81adaac86ea951be65aec9d3232cb27124
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.463
1
+ 3.0.464
@@ -293,6 +293,30 @@ module TencentCloud
293
293
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
294
  end
295
295
 
296
+ # 创建按量计费实例
297
+
298
+ # @param request: Request instance for CreateInstancePost.
299
+ # @type request: :class:`Tencentcloud::ckafka::V20190819::CreateInstancePostRequest`
300
+ # @rtype: :class:`Tencentcloud::ckafka::V20190819::CreateInstancePostResponse`
301
+ def CreateInstancePost(request)
302
+ body = send_request('CreateInstancePost', request.serialize)
303
+ response = JSON.parse(body)
304
+ if response['Response'].key?('Error') == false
305
+ model = CreateInstancePostResponse.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
+
296
320
  # 创建实例(预付费包年包月)
297
321
 
298
322
  # @param request: Request instance for CreateInstancePre.
@@ -1398,6 +1422,30 @@ module TencentCloud
1398
1422
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1399
1423
  end
1400
1424
 
1425
+ # Ckafka实例购买/续费询价
1426
+
1427
+ # @param request: Request instance for InquireCkafkaPrice.
1428
+ # @type request: :class:`Tencentcloud::ckafka::V20190819::InquireCkafkaPriceRequest`
1429
+ # @rtype: :class:`Tencentcloud::ckafka::V20190819::InquireCkafkaPriceResponse`
1430
+ def InquireCkafkaPrice(request)
1431
+ body = send_request('InquireCkafkaPrice', request.serialize)
1432
+ response = JSON.parse(body)
1433
+ if response['Response'].key?('Error') == false
1434
+ model = InquireCkafkaPriceResponse.new
1435
+ model.deserialize(response['Response'])
1436
+ model
1437
+ else
1438
+ code = response['Response']['Error']['Code']
1439
+ message = response['Response']['Error']['Message']
1440
+ reqid = response['Response']['RequestId']
1441
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1442
+ end
1443
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1444
+ raise e
1445
+ rescue StandardError => e
1446
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1447
+ end
1448
+
1401
1449
  # 编辑Datahub连接源
1402
1450
 
1403
1451
  # @param request: Request instance for ModifyConnectResource.
@@ -1709,6 +1709,69 @@ module TencentCloud
1709
1709
  end
1710
1710
  end
1711
1711
 
1712
+ # CreateInstancePost请求参数结构体
1713
+ class CreateInstancePostRequest < TencentCloud::Common::AbstractModel
1714
+ # @param InstanceName: 实例名称,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
1715
+ # @type InstanceName: String
1716
+ # @param BandWidth: 实例带宽
1717
+ # @type BandWidth: Integer
1718
+ # @param VpcId: vpcId,不填默认基础网络
1719
+ # @type VpcId: String
1720
+ # @param SubnetId: 子网id,vpc网络需要传该参数,基础网络可以不传
1721
+ # @type SubnetId: String
1722
+ # @param MsgRetentionTime: 可选。实例日志的最长保留时间,单位分钟,默认为10080(7天),最大30天,不填默认0,代表不开启日志保留时间回收策略
1723
+ # @type MsgRetentionTime: Integer
1724
+ # @param ZoneId: 可用区
1725
+ # @type ZoneId: Integer
1726
+ # @param ClusterId: 创建实例时可以选择集群Id, 该入参表示集群Id
1727
+ # @type ClusterId: Integer
1728
+
1729
+ attr_accessor :InstanceName, :BandWidth, :VpcId, :SubnetId, :MsgRetentionTime, :ZoneId, :ClusterId
1730
+
1731
+ def initialize(instancename=nil, bandwidth=nil, vpcid=nil, subnetid=nil, msgretentiontime=nil, zoneid=nil, clusterid=nil)
1732
+ @InstanceName = instancename
1733
+ @BandWidth = bandwidth
1734
+ @VpcId = vpcid
1735
+ @SubnetId = subnetid
1736
+ @MsgRetentionTime = msgretentiontime
1737
+ @ZoneId = zoneid
1738
+ @ClusterId = clusterid
1739
+ end
1740
+
1741
+ def deserialize(params)
1742
+ @InstanceName = params['InstanceName']
1743
+ @BandWidth = params['BandWidth']
1744
+ @VpcId = params['VpcId']
1745
+ @SubnetId = params['SubnetId']
1746
+ @MsgRetentionTime = params['MsgRetentionTime']
1747
+ @ZoneId = params['ZoneId']
1748
+ @ClusterId = params['ClusterId']
1749
+ end
1750
+ end
1751
+
1752
+ # CreateInstancePost返回参数结构体
1753
+ class CreateInstancePostResponse < TencentCloud::Common::AbstractModel
1754
+ # @param Result: 返回结果
1755
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.JgwOperateResponse`
1756
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1757
+ # @type RequestId: String
1758
+
1759
+ attr_accessor :Result, :RequestId
1760
+
1761
+ def initialize(result=nil, requestid=nil)
1762
+ @Result = result
1763
+ @RequestId = requestid
1764
+ end
1765
+
1766
+ def deserialize(params)
1767
+ unless params['Result'].nil?
1768
+ @Result = JgwOperateResponse.new
1769
+ @Result.deserialize(params['Result'])
1770
+ end
1771
+ @RequestId = params['RequestId']
1772
+ end
1773
+ end
1774
+
1712
1775
  # 创建预付费接口返回的Data
1713
1776
  class CreateInstancePreData < TencentCloud::Common::AbstractModel
1714
1777
  # @param FlowId: CreateInstancePre返回固定为0,不能作为CheckTaskStatus的查询条件。只是为了保证和后台数据结构对齐。
@@ -5982,6 +6045,364 @@ module TencentCloud
5982
6045
  end
5983
6046
  end
5984
6047
 
6048
+ # InquireCkafkaPrice请求参数结构体
6049
+ class InquireCkafkaPriceRequest < TencentCloud::Common::AbstractModel
6050
+ # @param InstanceType: 国内站标准版填写standards2, 专业版填写profession
6051
+ # @type InstanceType: String
6052
+ # @param InstanceChargeParam: 购买/续费付费类型(购买时不填的话, 默认获取购买包年包月一个月的费用)
6053
+ # @type InstanceChargeParam: :class:`Tencentcloud::Ckafka.v20190819.models.InstanceChargeParam`
6054
+ # @param InstanceNum: 购买/续费时购买的实例数量(不填时, 默认为1个)
6055
+ # @type InstanceNum: Integer
6056
+ # @param Bandwidth: 实例内网带宽大小, 单位MB/s (购买时必填)
6057
+ # @type Bandwidth: Integer
6058
+ # @param InquiryDiskParam: 实例的硬盘购买类型以及大小 (购买时必填)
6059
+ # @type InquiryDiskParam: :class:`Tencentcloud::Ckafka.v20190819.models.InquiryDiskParam`
6060
+ # @param MessageRetention: 实例消息保留时间大小, 单位小时 (购买时必填)
6061
+ # @type MessageRetention: Integer
6062
+ # @param Topic: 购买实例topic数, 单位个 (购买时必填)
6063
+ # @type Topic: Integer
6064
+ # @param Partition: 购买实例分区数, 单位个 (购买时必填)
6065
+ # @type Partition: Integer
6066
+ # @param ZoneIds: 购买地域, 可通过查看DescribeCkafkaZone这个接口获取ZoneId
6067
+ # @type ZoneIds: Array
6068
+ # @param CategoryAction: 标记操作, 新购填写purchase, 续费填写renew, (不填时, 默认为purchase)
6069
+ # @type CategoryAction: String
6070
+ # @param BillType: 国内站购买的版本, sv_ckafka_instance_s2_1(入门型), sv_ckafka_instance_s2_2(标准版), sv_ckafka_instance_s2_3(进阶型), 如果instanceType为standards2, 但该参数为空, 则默认值为sv_ckafka_instance_s2_1
6071
+ # @type BillType: String
6072
+ # @param PublicNetworkParam: 公网带宽计费模式, 目前只有专业版支持公网带宽 (购买公网带宽时必填)
6073
+ # @type PublicNetworkParam: :class:`Tencentcloud::Ckafka.v20190819.models.InquiryPublicNetworkParam`
6074
+ # @param InstanceId: 续费时的实例id, 续费时填写
6075
+ # @type InstanceId: String
6076
+
6077
+ attr_accessor :InstanceType, :InstanceChargeParam, :InstanceNum, :Bandwidth, :InquiryDiskParam, :MessageRetention, :Topic, :Partition, :ZoneIds, :CategoryAction, :BillType, :PublicNetworkParam, :InstanceId
6078
+
6079
+ def initialize(instancetype=nil, instancechargeparam=nil, instancenum=nil, bandwidth=nil, inquirydiskparam=nil, messageretention=nil, topic=nil, partition=nil, zoneids=nil, categoryaction=nil, billtype=nil, publicnetworkparam=nil, instanceid=nil)
6080
+ @InstanceType = instancetype
6081
+ @InstanceChargeParam = instancechargeparam
6082
+ @InstanceNum = instancenum
6083
+ @Bandwidth = bandwidth
6084
+ @InquiryDiskParam = inquirydiskparam
6085
+ @MessageRetention = messageretention
6086
+ @Topic = topic
6087
+ @Partition = partition
6088
+ @ZoneIds = zoneids
6089
+ @CategoryAction = categoryaction
6090
+ @BillType = billtype
6091
+ @PublicNetworkParam = publicnetworkparam
6092
+ @InstanceId = instanceid
6093
+ end
6094
+
6095
+ def deserialize(params)
6096
+ @InstanceType = params['InstanceType']
6097
+ unless params['InstanceChargeParam'].nil?
6098
+ @InstanceChargeParam = InstanceChargeParam.new
6099
+ @InstanceChargeParam.deserialize(params['InstanceChargeParam'])
6100
+ end
6101
+ @InstanceNum = params['InstanceNum']
6102
+ @Bandwidth = params['Bandwidth']
6103
+ unless params['InquiryDiskParam'].nil?
6104
+ @InquiryDiskParam = InquiryDiskParam.new
6105
+ @InquiryDiskParam.deserialize(params['InquiryDiskParam'])
6106
+ end
6107
+ @MessageRetention = params['MessageRetention']
6108
+ @Topic = params['Topic']
6109
+ @Partition = params['Partition']
6110
+ @ZoneIds = params['ZoneIds']
6111
+ @CategoryAction = params['CategoryAction']
6112
+ @BillType = params['BillType']
6113
+ unless params['PublicNetworkParam'].nil?
6114
+ @PublicNetworkParam = InquiryPublicNetworkParam.new
6115
+ @PublicNetworkParam.deserialize(params['PublicNetworkParam'])
6116
+ end
6117
+ @InstanceId = params['InstanceId']
6118
+ end
6119
+ end
6120
+
6121
+ # InquireCkafkaPrice接口询价返回值
6122
+ class InquireCkafkaPriceResp < TencentCloud::Common::AbstractModel
6123
+ # @param InstancePrice: 实例价格
6124
+ # 注意:此字段可能返回 null,表示取不到有效值。
6125
+ # @type InstancePrice: :class:`Tencentcloud::Ckafka.v20190819.models.InquiryPrice`
6126
+ # @param PublicNetworkBandwidthPrice: 公网带宽价格
6127
+ # 注意:此字段可能返回 null,表示取不到有效值。
6128
+ # @type PublicNetworkBandwidthPrice: :class:`Tencentcloud::Ckafka.v20190819.models.InquiryPrice`
6129
+
6130
+ attr_accessor :InstancePrice, :PublicNetworkBandwidthPrice
6131
+
6132
+ def initialize(instanceprice=nil, publicnetworkbandwidthprice=nil)
6133
+ @InstancePrice = instanceprice
6134
+ @PublicNetworkBandwidthPrice = publicnetworkbandwidthprice
6135
+ end
6136
+
6137
+ def deserialize(params)
6138
+ unless params['InstancePrice'].nil?
6139
+ @InstancePrice = InquiryPrice.new
6140
+ @InstancePrice.deserialize(params['InstancePrice'])
6141
+ end
6142
+ unless params['PublicNetworkBandwidthPrice'].nil?
6143
+ @PublicNetworkBandwidthPrice = InquiryPrice.new
6144
+ @PublicNetworkBandwidthPrice.deserialize(params['PublicNetworkBandwidthPrice'])
6145
+ end
6146
+ end
6147
+ end
6148
+
6149
+ # InquireCkafkaPrice返回参数结构体
6150
+ class InquireCkafkaPriceResponse < TencentCloud::Common::AbstractModel
6151
+ # @param Result: 出参
6152
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.InquireCkafkaPriceResp`
6153
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6154
+ # @type RequestId: String
6155
+
6156
+ attr_accessor :Result, :RequestId
6157
+
6158
+ def initialize(result=nil, requestid=nil)
6159
+ @Result = result
6160
+ @RequestId = requestid
6161
+ end
6162
+
6163
+ def deserialize(params)
6164
+ unless params['Result'].nil?
6165
+ @Result = InquireCkafkaPriceResp.new
6166
+ @Result.deserialize(params['Result'])
6167
+ end
6168
+ @RequestId = params['RequestId']
6169
+ end
6170
+ end
6171
+
6172
+ # 询价返回参数
6173
+ class InquiryBasePrice < TencentCloud::Common::AbstractModel
6174
+ # @param UnitPrice: 单位原价
6175
+ # 注意:此字段可能返回 null,表示取不到有效值。
6176
+ # @type UnitPrice: Float
6177
+ # @param UnitPriceDiscount: 折扣单位价格
6178
+ # 注意:此字段可能返回 null,表示取不到有效值。
6179
+ # @type UnitPriceDiscount: Float
6180
+ # @param OriginalPrice: 合计原价
6181
+ # 注意:此字段可能返回 null,表示取不到有效值。
6182
+ # @type OriginalPrice: Float
6183
+ # @param DiscountPrice: 折扣合计价格
6184
+ # 注意:此字段可能返回 null,表示取不到有效值。
6185
+ # @type DiscountPrice: Float
6186
+ # @param Discount: 折扣(单位是%)
6187
+ # 注意:此字段可能返回 null,表示取不到有效值。
6188
+ # @type Discount: Float
6189
+ # @param GoodsNum: 商品数量
6190
+ # 注意:此字段可能返回 null,表示取不到有效值。
6191
+ # @type GoodsNum: Integer
6192
+ # @param Currency: 付费货币
6193
+ # 注意:此字段可能返回 null,表示取不到有效值。
6194
+ # @type Currency: String
6195
+ # @param DiskType: 硬盘专用返回参数
6196
+ # 注意:此字段可能返回 null,表示取不到有效值。
6197
+ # @type DiskType: String
6198
+ # @param TimeSpan: 购买时长
6199
+ # 注意:此字段可能返回 null,表示取不到有效值。
6200
+ # @type TimeSpan: Integer
6201
+ # @param TimeUnit: 购买时长单位("m"按月, "h"按小时)
6202
+ # 注意:此字段可能返回 null,表示取不到有效值。
6203
+ # @type TimeUnit: String
6204
+ # @param Value: 购买数量
6205
+ # 注意:此字段可能返回 null,表示取不到有效值。
6206
+ # @type Value: Integer
6207
+
6208
+ attr_accessor :UnitPrice, :UnitPriceDiscount, :OriginalPrice, :DiscountPrice, :Discount, :GoodsNum, :Currency, :DiskType, :TimeSpan, :TimeUnit, :Value
6209
+
6210
+ def initialize(unitprice=nil, unitpricediscount=nil, originalprice=nil, discountprice=nil, discount=nil, goodsnum=nil, currency=nil, disktype=nil, timespan=nil, timeunit=nil, value=nil)
6211
+ @UnitPrice = unitprice
6212
+ @UnitPriceDiscount = unitpricediscount
6213
+ @OriginalPrice = originalprice
6214
+ @DiscountPrice = discountprice
6215
+ @Discount = discount
6216
+ @GoodsNum = goodsnum
6217
+ @Currency = currency
6218
+ @DiskType = disktype
6219
+ @TimeSpan = timespan
6220
+ @TimeUnit = timeunit
6221
+ @Value = value
6222
+ end
6223
+
6224
+ def deserialize(params)
6225
+ @UnitPrice = params['UnitPrice']
6226
+ @UnitPriceDiscount = params['UnitPriceDiscount']
6227
+ @OriginalPrice = params['OriginalPrice']
6228
+ @DiscountPrice = params['DiscountPrice']
6229
+ @Discount = params['Discount']
6230
+ @GoodsNum = params['GoodsNum']
6231
+ @Currency = params['Currency']
6232
+ @DiskType = params['DiskType']
6233
+ @TimeSpan = params['TimeSpan']
6234
+ @TimeUnit = params['TimeUnit']
6235
+ @Value = params['Value']
6236
+ end
6237
+ end
6238
+
6239
+ # 详细类别的价格
6240
+ class InquiryDetailPrice < TencentCloud::Common::AbstractModel
6241
+ # @param BandwidthPrice: 额外内网带宽价格
6242
+ # 注意:此字段可能返回 null,表示取不到有效值。
6243
+ # @type BandwidthPrice: :class:`Tencentcloud::Ckafka.v20190819.models.InquiryBasePrice`
6244
+ # @param DiskPrice: 硬盘价格
6245
+ # 注意:此字段可能返回 null,表示取不到有效值。
6246
+ # @type DiskPrice: :class:`Tencentcloud::Ckafka.v20190819.models.InquiryBasePrice`
6247
+ # @param PartitionPrice: 额外分区价格
6248
+ # 注意:此字段可能返回 null,表示取不到有效值。
6249
+ # @type PartitionPrice: :class:`Tencentcloud::Ckafka.v20190819.models.InquiryBasePrice`
6250
+ # @param TopicPrice: 额外Topic价格
6251
+ # 注意:此字段可能返回 null,表示取不到有效值。
6252
+ # @type TopicPrice: :class:`Tencentcloud::Ckafka.v20190819.models.InquiryBasePrice`
6253
+ # @param InstanceTypePrice: 实例套餐价格
6254
+ # 注意:此字段可能返回 null,表示取不到有效值。
6255
+ # @type InstanceTypePrice: :class:`Tencentcloud::Ckafka.v20190819.models.InquiryBasePrice`
6256
+
6257
+ attr_accessor :BandwidthPrice, :DiskPrice, :PartitionPrice, :TopicPrice, :InstanceTypePrice
6258
+
6259
+ def initialize(bandwidthprice=nil, diskprice=nil, partitionprice=nil, topicprice=nil, instancetypeprice=nil)
6260
+ @BandwidthPrice = bandwidthprice
6261
+ @DiskPrice = diskprice
6262
+ @PartitionPrice = partitionprice
6263
+ @TopicPrice = topicprice
6264
+ @InstanceTypePrice = instancetypeprice
6265
+ end
6266
+
6267
+ def deserialize(params)
6268
+ unless params['BandwidthPrice'].nil?
6269
+ @BandwidthPrice = InquiryBasePrice.new
6270
+ @BandwidthPrice.deserialize(params['BandwidthPrice'])
6271
+ end
6272
+ unless params['DiskPrice'].nil?
6273
+ @DiskPrice = InquiryBasePrice.new
6274
+ @DiskPrice.deserialize(params['DiskPrice'])
6275
+ end
6276
+ unless params['PartitionPrice'].nil?
6277
+ @PartitionPrice = InquiryBasePrice.new
6278
+ @PartitionPrice.deserialize(params['PartitionPrice'])
6279
+ end
6280
+ unless params['TopicPrice'].nil?
6281
+ @TopicPrice = InquiryBasePrice.new
6282
+ @TopicPrice.deserialize(params['TopicPrice'])
6283
+ end
6284
+ unless params['InstanceTypePrice'].nil?
6285
+ @InstanceTypePrice = InquiryBasePrice.new
6286
+ @InstanceTypePrice.deserialize(params['InstanceTypePrice'])
6287
+ end
6288
+ end
6289
+ end
6290
+
6291
+ # 购买硬盘参数
6292
+ class InquiryDiskParam < TencentCloud::Common::AbstractModel
6293
+ # @param DiskType: 购买硬盘类型: SSD(SSD), CLOUD_SSD(SSD云硬盘), CLOUD_PREMIUM(高性能云硬盘), CLOUD_BASIC(云盘)
6294
+ # @type DiskType: String
6295
+ # @param DiskSize: 购买硬盘大小: 单位GB
6296
+ # @type DiskSize: Integer
6297
+
6298
+ attr_accessor :DiskType, :DiskSize
6299
+
6300
+ def initialize(disktype=nil, disksize=nil)
6301
+ @DiskType = disktype
6302
+ @DiskSize = disksize
6303
+ end
6304
+
6305
+ def deserialize(params)
6306
+ @DiskType = params['DiskType']
6307
+ @DiskSize = params['DiskSize']
6308
+ end
6309
+ end
6310
+
6311
+ # 询价返回参数
6312
+ class InquiryPrice < TencentCloud::Common::AbstractModel
6313
+ # @param UnitPrice: 单位原价
6314
+ # 注意:此字段可能返回 null,表示取不到有效值。
6315
+ # @type UnitPrice: Float
6316
+ # @param UnitPriceDiscount: 折扣单位价格
6317
+ # 注意:此字段可能返回 null,表示取不到有效值。
6318
+ # @type UnitPriceDiscount: Float
6319
+ # @param OriginalPrice: 合计原价
6320
+ # 注意:此字段可能返回 null,表示取不到有效值。
6321
+ # @type OriginalPrice: Float
6322
+ # @param DiscountPrice: 折扣合计价格
6323
+ # 注意:此字段可能返回 null,表示取不到有效值。
6324
+ # @type DiscountPrice: Float
6325
+ # @param Discount: 折扣(单位是%)
6326
+ # 注意:此字段可能返回 null,表示取不到有效值。
6327
+ # @type Discount: Float
6328
+ # @param GoodsNum: 商品数量
6329
+ # 注意:此字段可能返回 null,表示取不到有效值。
6330
+ # @type GoodsNum: Integer
6331
+ # @param Currency: 付费货币
6332
+ # 注意:此字段可能返回 null,表示取不到有效值。
6333
+ # @type Currency: String
6334
+ # @param DiskType: 硬盘专用返回参数
6335
+ # 注意:此字段可能返回 null,表示取不到有效值。
6336
+ # @type DiskType: String
6337
+ # @param TimeSpan: 购买时长
6338
+ # 注意:此字段可能返回 null,表示取不到有效值。
6339
+ # @type TimeSpan: Integer
6340
+ # @param TimeUnit: 购买时长单位("m"按月, "h"按小时)
6341
+ # 注意:此字段可能返回 null,表示取不到有效值。
6342
+ # @type TimeUnit: String
6343
+ # @param Value: 购买数量
6344
+ # 注意:此字段可能返回 null,表示取不到有效值。
6345
+ # @type Value: Integer
6346
+ # @param DetailPrices: 详细类别的价格
6347
+ # 注意:此字段可能返回 null,表示取不到有效值。
6348
+ # @type DetailPrices: :class:`Tencentcloud::Ckafka.v20190819.models.InquiryDetailPrice`
6349
+
6350
+ attr_accessor :UnitPrice, :UnitPriceDiscount, :OriginalPrice, :DiscountPrice, :Discount, :GoodsNum, :Currency, :DiskType, :TimeSpan, :TimeUnit, :Value, :DetailPrices
6351
+
6352
+ def initialize(unitprice=nil, unitpricediscount=nil, originalprice=nil, discountprice=nil, discount=nil, goodsnum=nil, currency=nil, disktype=nil, timespan=nil, timeunit=nil, value=nil, detailprices=nil)
6353
+ @UnitPrice = unitprice
6354
+ @UnitPriceDiscount = unitpricediscount
6355
+ @OriginalPrice = originalprice
6356
+ @DiscountPrice = discountprice
6357
+ @Discount = discount
6358
+ @GoodsNum = goodsnum
6359
+ @Currency = currency
6360
+ @DiskType = disktype
6361
+ @TimeSpan = timespan
6362
+ @TimeUnit = timeunit
6363
+ @Value = value
6364
+ @DetailPrices = detailprices
6365
+ end
6366
+
6367
+ def deserialize(params)
6368
+ @UnitPrice = params['UnitPrice']
6369
+ @UnitPriceDiscount = params['UnitPriceDiscount']
6370
+ @OriginalPrice = params['OriginalPrice']
6371
+ @DiscountPrice = params['DiscountPrice']
6372
+ @Discount = params['Discount']
6373
+ @GoodsNum = params['GoodsNum']
6374
+ @Currency = params['Currency']
6375
+ @DiskType = params['DiskType']
6376
+ @TimeSpan = params['TimeSpan']
6377
+ @TimeUnit = params['TimeUnit']
6378
+ @Value = params['Value']
6379
+ unless params['DetailPrices'].nil?
6380
+ @DetailPrices = InquiryDetailPrice.new
6381
+ @DetailPrices.deserialize(params['DetailPrices'])
6382
+ end
6383
+ end
6384
+ end
6385
+
6386
+ # 公网带宽参数
6387
+ class InquiryPublicNetworkParam < TencentCloud::Common::AbstractModel
6388
+ # @param PublicNetworkChargeType: 公网计费模式: BANDWIDTH_PREPAID(包年包月), BANDWIDTH_POSTPAID_BY_HOUR(带宽按小时计费)
6389
+ # @type PublicNetworkChargeType: String
6390
+ # @param PublicNetworkMonthly: 公网带宽, 单位MB
6391
+ # @type PublicNetworkMonthly: Integer
6392
+
6393
+ attr_accessor :PublicNetworkChargeType, :PublicNetworkMonthly
6394
+
6395
+ def initialize(publicnetworkchargetype=nil, publicnetworkmonthly=nil)
6396
+ @PublicNetworkChargeType = publicnetworkchargetype
6397
+ @PublicNetworkMonthly = publicnetworkmonthly
6398
+ end
6399
+
6400
+ def deserialize(params)
6401
+ @PublicNetworkChargeType = params['PublicNetworkChargeType']
6402
+ @PublicNetworkMonthly = params['PublicNetworkMonthly']
6403
+ end
6404
+ end
6405
+
5985
6406
  # 实例对象
5986
6407
  class Instance < TencentCloud::Common::AbstractModel
5987
6408
  # @param InstanceId: 实例id
@@ -6201,6 +6622,26 @@ module TencentCloud
6201
6622
  end
6202
6623
  end
6203
6624
 
6625
+ # 实例购买付费参数
6626
+ class InstanceChargeParam < TencentCloud::Common::AbstractModel
6627
+ # @param InstanceChargeType: 实例付费类型: PREPAID(包年包月), POSTPAID_BY_HOUR(按量付费)
6628
+ # @type InstanceChargeType: String
6629
+ # @param InstanceChargePeriod: 购买时长: 包年包月时需要填写, 按量计费无需填写
6630
+ # @type InstanceChargePeriod: Integer
6631
+
6632
+ attr_accessor :InstanceChargeType, :InstanceChargePeriod
6633
+
6634
+ def initialize(instancechargetype=nil, instancechargeperiod=nil)
6635
+ @InstanceChargeType = instancechargetype
6636
+ @InstanceChargePeriod = instancechargeperiod
6637
+ end
6638
+
6639
+ def deserialize(params)
6640
+ @InstanceChargeType = params['InstanceChargeType']
6641
+ @InstanceChargePeriod = params['InstanceChargePeriod']
6642
+ end
6643
+ end
6644
+
6204
6645
  # 实例配置实体
6205
6646
  class InstanceConfigDO < TencentCloud::Common::AbstractModel
6206
6647
  # @param AutoCreateTopicsEnable: 是否自动创建主题
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ckafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.463
4
+ version: 3.0.464
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-01 00:00:00.000000000 Z
11
+ date: 2022-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common