tencentcloud-sdk-ckafka 3.0.598 → 3.0.600

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: f2d660705f0193eaeb710a3688efa7eb1b314ad8
4
- data.tar.gz: 45bad38f3edf189cd174fc5f91f910f722ccd015
3
+ metadata.gz: 0358d3570bd3a3a6345a847a075f4561fd877d1c
4
+ data.tar.gz: 7f6172de0f6eff0faf88fb32aa78d3c0d593fe8b
5
5
  SHA512:
6
- metadata.gz: c50edaf04cc89f83cf826d776ad571838e3b9d76843f5d82370236daf5d8460ea18f80f5917b1afa8f5cc877342da5b8df9badb0bc532ca86cb6254806b07a98
7
- data.tar.gz: 891afb7d69590318dffefe0cc7d092c42f2341dbe5ddbea9e23a79f00c6fcfa1a419a3eced7d5eb240c713206c9e474d964f83db9ccafd53c2ea229f481a9a22
6
+ metadata.gz: 631c74a67021ca7609aecd159a03d217bb670939ff2ba851d9b1bbaa53a8497391b2be79aed95765971fe271dae915a7b473db8dbfc0b0e7f9e885fc22a426d2
7
+ data.tar.gz: 29493391caf2cd4c7184774b124289bf7dcc8b7be9019a5cd252ec7faed6456e1379ca5c67b7a87580efd3d590fdfcf893d519f38e2a4b2d2734c76cb216b150
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.598
1
+ 3.0.600
@@ -413,6 +413,30 @@ module TencentCloud
413
413
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
414
414
  end
415
415
 
416
+ # 当前接口用来替代 CreateInstancePost 接口。创建按量计费实例。通常用于 SDK 或云 API 控制台调用接口,创建后付费 CKafka 实例。调用接口与在 CKafka 控制台购买按量付费实例效果相同。
417
+
418
+ # @param request: Request instance for CreatePostPaidInstance.
419
+ # @type request: :class:`Tencentcloud::ckafka::V20190819::CreatePostPaidInstanceRequest`
420
+ # @rtype: :class:`Tencentcloud::ckafka::V20190819::CreatePostPaidInstanceResponse`
421
+ def CreatePostPaidInstance(request)
422
+ body = send_request('CreatePostPaidInstance', request.serialize)
423
+ response = JSON.parse(body)
424
+ if response['Response'].key?('Error') == false
425
+ model = CreatePostPaidInstanceResponse.new
426
+ model.deserialize(response['Response'])
427
+ model
428
+ else
429
+ code = response['Response']['Error']['Code']
430
+ message = response['Response']['Error']['Message']
431
+ reqid = response['Response']['RequestId']
432
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
433
+ end
434
+ rescue TencentCloud::Common::TencentCloudSDKException => e
435
+ raise e
436
+ rescue StandardError => e
437
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
+ end
439
+
416
440
  # 添加实例路由
417
441
 
418
442
  # @param request: Request instance for CreateRoute.
@@ -1943,6 +1943,45 @@ module TencentCloud
1943
1943
  end
1944
1944
  end
1945
1945
 
1946
+ # 创建后付费接口返回的 Data 数据结构
1947
+ class CreateInstancePostData < TencentCloud::Common::AbstractModel
1948
+ # @param FlowId: CreateInstancePre返回固定为0,不能作为CheckTaskStatus的查询条件。只是为了保证和后台数据结构对齐。
1949
+ # 注意:此字段可能返回 null,表示取不到有效值。
1950
+ # @type FlowId: Integer
1951
+ # @param DealNames: 订单号列表
1952
+ # 注意:此字段可能返回 null,表示取不到有效值。
1953
+ # @type DealNames: Array
1954
+ # @param InstanceId: 实例Id,当购买多个实例时,默认返回购买的第一个实例 id
1955
+ # 注意:此字段可能返回 null,表示取不到有效值。
1956
+ # @type InstanceId: String
1957
+ # @param DealNameInstanceIdMapping: 订单和购买实例对应映射列表
1958
+ # 注意:此字段可能返回 null,表示取不到有效值。
1959
+ # @type DealNameInstanceIdMapping: Array
1960
+
1961
+ attr_accessor :FlowId, :DealNames, :InstanceId, :DealNameInstanceIdMapping
1962
+
1963
+ def initialize(flowid=nil, dealnames=nil, instanceid=nil, dealnameinstanceidmapping=nil)
1964
+ @FlowId = flowid
1965
+ @DealNames = dealnames
1966
+ @InstanceId = instanceid
1967
+ @DealNameInstanceIdMapping = dealnameinstanceidmapping
1968
+ end
1969
+
1970
+ def deserialize(params)
1971
+ @FlowId = params['FlowId']
1972
+ @DealNames = params['DealNames']
1973
+ @InstanceId = params['InstanceId']
1974
+ unless params['DealNameInstanceIdMapping'].nil?
1975
+ @DealNameInstanceIdMapping = []
1976
+ params['DealNameInstanceIdMapping'].each do |i|
1977
+ dealinstancedto_tmp = DealInstanceDTO.new
1978
+ dealinstancedto_tmp.deserialize(i)
1979
+ @DealNameInstanceIdMapping << dealinstancedto_tmp
1980
+ end
1981
+ end
1982
+ end
1983
+ end
1984
+
1946
1985
  # CreateInstancePost请求参数结构体
1947
1986
  class CreateInstancePostRequest < TencentCloud::Common::AbstractModel
1948
1987
  # @param InstanceName: 实例名称,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
@@ -1959,7 +1998,7 @@ module TencentCloud
1959
1998
  # @type MsgRetentionTime: Integer
1960
1999
  # @param ClusterId: 创建实例时可以选择集群Id, 该入参表示集群Id。不指定实例所在集群则不传入该参数
1961
2000
  # @type ClusterId: Integer
1962
- # @param KafkaVersion: 实例版本。目前支持 "0.10.2","1.1.1","2.4.2","2.8.1"
2001
+ # @param KafkaVersion: 实例版本。目前支持 "0.10.2","1.1.1","2.4.1","2.4.2","2.8.1"。"2.4.1" 与 "2.4.2" 属于同一个版本,传任意一个均可。
1963
2002
  # @type KafkaVersion: String
1964
2003
  # @param SpecificationsType: 实例类型。"standard":标准版,"profession":专业版
1965
2004
  # @type SpecificationsType: String
@@ -1979,7 +2018,7 @@ module TencentCloud
1979
2018
  # @type ZoneIds: Array
1980
2019
  # @param InstanceNum: 购买实例数量。非必填,默认值为 1。当传入该参数时,会创建多个 instanceName 加后缀区分的实例
1981
2020
  # @type InstanceNum: Integer
1982
- # @param PublicNetworkMonthly: 公网带宽大小,单位 Mbps。默认是没有加上免费 3Mbps 带宽。例如总共需要 3Mbps 公网带宽,此处传 0;总共需要 4Mbps 公网带宽,此处传 1
2021
+ # @param PublicNetworkMonthly: 公网带宽大小,单位 Mbps。默认是没有加上免费 3Mbps 带宽。例如总共需要 3Mbps 公网带宽,此处传 0;总共需要 6Mbps 公网带宽,此处传 3。需要保证传入参数为 3 的整数倍
1983
2022
  # @type PublicNetworkMonthly: Integer
1984
2023
 
1985
2024
  attr_accessor :InstanceName, :BandWidth, :VpcId, :SubnetId, :InstanceType, :MsgRetentionTime, :ClusterId, :KafkaVersion, :SpecificationsType, :DiskType, :DiskSize, :Partition, :TopicNum, :ZoneId, :MultiZoneFlag, :ZoneIds, :InstanceNum, :PublicNetworkMonthly
@@ -2027,6 +2066,34 @@ module TencentCloud
2027
2066
  end
2028
2067
  end
2029
2068
 
2069
+ # 后付费实例相关接口返回结构
2070
+ class CreateInstancePostResp < TencentCloud::Common::AbstractModel
2071
+ # @param ReturnCode: 返回的code,0为正常,非0为错误
2072
+ # @type ReturnCode: String
2073
+ # @param ReturnMessage: 接口返回消息,当接口报错时提示错误信息
2074
+ # @type ReturnMessage: String
2075
+ # @param Data: 返回的Data数据
2076
+ # 注意:此字段可能返回 null,表示取不到有效值。
2077
+ # @type Data: :class:`Tencentcloud::Ckafka.v20190819.models.CreateInstancePostData`
2078
+
2079
+ attr_accessor :ReturnCode, :ReturnMessage, :Data
2080
+
2081
+ def initialize(returncode=nil, returnmessage=nil, data=nil)
2082
+ @ReturnCode = returncode
2083
+ @ReturnMessage = returnmessage
2084
+ @Data = data
2085
+ end
2086
+
2087
+ def deserialize(params)
2088
+ @ReturnCode = params['ReturnCode']
2089
+ @ReturnMessage = params['ReturnMessage']
2090
+ unless params['Data'].nil?
2091
+ @Data = CreateInstancePostData.new
2092
+ @Data.deserialize(params['Data'])
2093
+ end
2094
+ end
2095
+ end
2096
+
2030
2097
  # CreateInstancePost返回参数结构体
2031
2098
  class CreateInstancePostResponse < TencentCloud::Common::AbstractModel
2032
2099
  # @param Result: 返回结果
@@ -2100,7 +2167,7 @@ module TencentCloud
2100
2167
  # @param InstanceType: 实例规格说明 专业版实例[所有规格]填写1.
2101
2168
  # 标准版实例 ([入门型(general)]填写1,[标准型(standard)]填写2,[进阶型(advanced)]填写3,[容量型(capacity)]填写4,[高阶型1(specialized-1)]填写5,[高阶性2(specialized-2)]填写6,[高阶型3(specialized-3)]填写7,[高阶型4(specialized-4)]填写8,[独占型(exclusive)]填写9。
2102
2169
  # @type InstanceType: Integer
2103
- # @param VpcId: vpcId,不填默认基础网络
2170
+ # @param VpcId: vpcId必填
2104
2171
  # @type VpcId: String
2105
2172
  # @param SubnetId: 子网id,vpc网络需要传该参数,基础网络可以不传
2106
2173
  # @type SubnetId: String
@@ -2110,7 +2177,7 @@ module TencentCloud
2110
2177
  # @type ClusterId: Integer
2111
2178
  # @param RenewFlag: 预付费自动续费标记,0表示默认状态(用户未设置,即初始状态), 1表示自动续费,2表示明确不自动续费(用户设置)
2112
2179
  # @type RenewFlag: Integer
2113
- # @param KafkaVersion: CKafka版本号[0.10.2、1.1.1、2.4.1], 默认是1.1.1
2180
+ # @param KafkaVersion: CKafka版本号[0.10.2、1.1.1、2.4.1、2.4.2、2.8.1], 默认是1.1.1。2.4.1 与 2.4.2 属于同一个版本,传任意一个均可。
2114
2181
  # @type KafkaVersion: String
2115
2182
  # @param SpecificationsType: 实例类型: [标准版实例]填写 standard(默认), [专业版实例]填写 profession
2116
2183
  # @type SpecificationsType: String
@@ -2128,12 +2195,14 @@ module TencentCloud
2128
2195
  # @type MultiZoneFlag: Boolean
2129
2196
  # @param ZoneIds: 可用区列表,购买多可用区实例时为必填项
2130
2197
  # @type ZoneIds: Array
2131
- # @param PublicNetworkMonthly: 公网带宽大小,单位 Mbps。默认是没有加上免费 3Mbps 带宽。例如总共需要 3Mbps 公网带宽,此处传 0;总共需要 4Mbps 公网带宽,此处传 1。默认值为 0
2198
+ # @param PublicNetworkMonthly: 公网带宽大小,单位 Mbps。默认是没有加上免费 3Mbps 带宽。例如总共需要 3Mbps 公网带宽,此处传 0;总共需要 6Mbps 公网带宽,此处传 3。默认值为 0。需要保证传入参数为 3 的整数倍
2132
2199
  # @type PublicNetworkMonthly: Integer
2200
+ # @param InstanceNum: 购买实例数量。非必填,默认值为 1。当传入该参数时,会创建多个 instanceName 加后缀区分的实例
2201
+ # @type InstanceNum: Integer
2133
2202
 
2134
- attr_accessor :InstanceName, :ZoneId, :Period, :InstanceType, :VpcId, :SubnetId, :MsgRetentionTime, :ClusterId, :RenewFlag, :KafkaVersion, :SpecificationsType, :DiskSize, :BandWidth, :Partition, :Tags, :DiskType, :MultiZoneFlag, :ZoneIds, :PublicNetworkMonthly
2203
+ attr_accessor :InstanceName, :ZoneId, :Period, :InstanceType, :VpcId, :SubnetId, :MsgRetentionTime, :ClusterId, :RenewFlag, :KafkaVersion, :SpecificationsType, :DiskSize, :BandWidth, :Partition, :Tags, :DiskType, :MultiZoneFlag, :ZoneIds, :PublicNetworkMonthly, :InstanceNum
2135
2204
 
2136
- def initialize(instancename=nil, zoneid=nil, period=nil, instancetype=nil, vpcid=nil, subnetid=nil, msgretentiontime=nil, clusterid=nil, renewflag=nil, kafkaversion=nil, specificationstype=nil, disksize=nil, bandwidth=nil, partition=nil, tags=nil, disktype=nil, multizoneflag=nil, zoneids=nil, publicnetworkmonthly=nil)
2205
+ def initialize(instancename=nil, zoneid=nil, period=nil, instancetype=nil, vpcid=nil, subnetid=nil, msgretentiontime=nil, clusterid=nil, renewflag=nil, kafkaversion=nil, specificationstype=nil, disksize=nil, bandwidth=nil, partition=nil, tags=nil, disktype=nil, multizoneflag=nil, zoneids=nil, publicnetworkmonthly=nil, instancenum=nil)
2137
2206
  @InstanceName = instancename
2138
2207
  @ZoneId = zoneid
2139
2208
  @Period = period
@@ -2153,6 +2222,7 @@ module TencentCloud
2153
2222
  @MultiZoneFlag = multizoneflag
2154
2223
  @ZoneIds = zoneids
2155
2224
  @PublicNetworkMonthly = publicnetworkmonthly
2225
+ @InstanceNum = instancenum
2156
2226
  end
2157
2227
 
2158
2228
  def deserialize(params)
@@ -2182,6 +2252,7 @@ module TencentCloud
2182
2252
  @MultiZoneFlag = params['MultiZoneFlag']
2183
2253
  @ZoneIds = params['ZoneIds']
2184
2254
  @PublicNetworkMonthly = params['PublicNetworkMonthly']
2255
+ @InstanceNum = params['InstanceNum']
2185
2256
  end
2186
2257
  end
2187
2258
 
@@ -2291,6 +2362,113 @@ module TencentCloud
2291
2362
  end
2292
2363
  end
2293
2364
 
2365
+ # CreatePostPaidInstance请求参数结构体
2366
+ class CreatePostPaidInstanceRequest < TencentCloud::Common::AbstractModel
2367
+ # @param InstanceName: 实例名称,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
2368
+ # @type InstanceName: String
2369
+ # @param VpcId: 创建的实例默认接入点所在的 vpc 对应 vpcId。目前不支持创建基础网络实例,因此该参数必填
2370
+ # @type VpcId: String
2371
+ # @param SubnetId: 子网id。创建实例默认接入点所在的子网对应的子网 id
2372
+ # @type SubnetId: String
2373
+ # @param InstanceType: 实例规格。当创建标准版实例时必填,创建专业版实例时不需要填写。1:入门型;2:标准型;3:进阶型;4:容量型;5:高阶型1;6:高阶性2;7:高阶型3;8:高阶型4;9 :独占型
2374
+ # @type InstanceType: Integer
2375
+ # @param MsgRetentionTime: 实例日志的默认最长保留时间,单位分钟。不传入该参数时默认为 1440 分钟(1天),最大30天。当 topic 显式设置消息保留时间时,以 topic 保留时间为准
2376
+ # @type MsgRetentionTime: Integer
2377
+ # @param ClusterId: 创建实例时可以选择集群Id, 该入参表示集群Id。不指定实例所在集群则不传入该参数
2378
+ # @type ClusterId: Integer
2379
+ # @param KafkaVersion: 实例版本。目前支持 "0.10.2","1.1.1","2.4.1","2.4.2","2.8.1"。"2.4.1" 与 "2.4.2" 属于同一个版本,传任意一个均可。
2380
+ # @type KafkaVersion: String
2381
+ # @param SpecificationsType: 实例类型。"standard":标准版,"profession":专业版
2382
+ # @type SpecificationsType: String
2383
+ # @param DiskType: 实例硬盘类型,"CLOUD_BASIC":云硬盘,"CLOUD_SSD":高速云硬盘。不传默认为 "CLOUD_BASIC"
2384
+ # @type DiskType: String
2385
+ # @param BandWidth: 实例内网峰值带宽。单位 MB/s。标准版需传入当前实例规格所对应的峰值带宽。注意如果创建的实例为专业版实例,峰值带宽,分区数等参数配置需要满足专业版的计费规格。
2386
+ # @type BandWidth: Integer
2387
+ # @param DiskSize: 实例硬盘大小,需要满足当前实例的计费规格
2388
+ # @type DiskSize: Integer
2389
+ # @param Partition: 实例最大分区数量,需要满足当前实例的计费规格
2390
+ # @type Partition: Integer
2391
+ # @param TopicNum: 实例最大 topic 数量,需要满足当前实例的计费规格
2392
+ # @type TopicNum: Integer
2393
+ # @param ZoneId: 实例所在的可用区。当创建多可用区实例时,该参数为创建的默认接入点所在子网的可用区 id
2394
+ # @type ZoneId: Integer
2395
+ # @param MultiZoneFlag: 当前实例是否为多可用区实例。
2396
+ # @type MultiZoneFlag: Boolean
2397
+ # @param ZoneIds: 当实例为多可用区实例时,多可用区 id 列表。注意参数 ZoneId 对应的多可用区需要包含在该参数数组中
2398
+ # @type ZoneIds: Array
2399
+ # @param InstanceNum: 购买实例数量。非必填,默认值为 1。当传入该参数时,会创建多个 instanceName 加后缀区分的实例
2400
+ # @type InstanceNum: Integer
2401
+ # @param PublicNetworkMonthly: 公网带宽大小,单位 Mbps。默认是没有加上免费 3Mbps 带宽。例如总共需要 3Mbps 公网带宽,此处传 0;总共需要 6Mbps 公网带宽,此处传 3。需要保证传入参数为 3 的整数倍
2402
+ # @type PublicNetworkMonthly: Integer
2403
+
2404
+ attr_accessor :InstanceName, :VpcId, :SubnetId, :InstanceType, :MsgRetentionTime, :ClusterId, :KafkaVersion, :SpecificationsType, :DiskType, :BandWidth, :DiskSize, :Partition, :TopicNum, :ZoneId, :MultiZoneFlag, :ZoneIds, :InstanceNum, :PublicNetworkMonthly
2405
+
2406
+ def initialize(instancename=nil, vpcid=nil, subnetid=nil, instancetype=nil, msgretentiontime=nil, clusterid=nil, kafkaversion=nil, specificationstype=nil, disktype=nil, bandwidth=nil, disksize=nil, partition=nil, topicnum=nil, zoneid=nil, multizoneflag=nil, zoneids=nil, instancenum=nil, publicnetworkmonthly=nil)
2407
+ @InstanceName = instancename
2408
+ @VpcId = vpcid
2409
+ @SubnetId = subnetid
2410
+ @InstanceType = instancetype
2411
+ @MsgRetentionTime = msgretentiontime
2412
+ @ClusterId = clusterid
2413
+ @KafkaVersion = kafkaversion
2414
+ @SpecificationsType = specificationstype
2415
+ @DiskType = disktype
2416
+ @BandWidth = bandwidth
2417
+ @DiskSize = disksize
2418
+ @Partition = partition
2419
+ @TopicNum = topicnum
2420
+ @ZoneId = zoneid
2421
+ @MultiZoneFlag = multizoneflag
2422
+ @ZoneIds = zoneids
2423
+ @InstanceNum = instancenum
2424
+ @PublicNetworkMonthly = publicnetworkmonthly
2425
+ end
2426
+
2427
+ def deserialize(params)
2428
+ @InstanceName = params['InstanceName']
2429
+ @VpcId = params['VpcId']
2430
+ @SubnetId = params['SubnetId']
2431
+ @InstanceType = params['InstanceType']
2432
+ @MsgRetentionTime = params['MsgRetentionTime']
2433
+ @ClusterId = params['ClusterId']
2434
+ @KafkaVersion = params['KafkaVersion']
2435
+ @SpecificationsType = params['SpecificationsType']
2436
+ @DiskType = params['DiskType']
2437
+ @BandWidth = params['BandWidth']
2438
+ @DiskSize = params['DiskSize']
2439
+ @Partition = params['Partition']
2440
+ @TopicNum = params['TopicNum']
2441
+ @ZoneId = params['ZoneId']
2442
+ @MultiZoneFlag = params['MultiZoneFlag']
2443
+ @ZoneIds = params['ZoneIds']
2444
+ @InstanceNum = params['InstanceNum']
2445
+ @PublicNetworkMonthly = params['PublicNetworkMonthly']
2446
+ end
2447
+ end
2448
+
2449
+ # CreatePostPaidInstance返回参数结构体
2450
+ class CreatePostPaidInstanceResponse < TencentCloud::Common::AbstractModel
2451
+ # @param Result: 返回结果
2452
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.CreateInstancePostResp`
2453
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2454
+ # @type RequestId: String
2455
+
2456
+ attr_accessor :Result, :RequestId
2457
+
2458
+ def initialize(result=nil, requestid=nil)
2459
+ @Result = result
2460
+ @RequestId = requestid
2461
+ end
2462
+
2463
+ def deserialize(params)
2464
+ unless params['Result'].nil?
2465
+ @Result = CreateInstancePostResp.new
2466
+ @Result.deserialize(params['Result'])
2467
+ end
2468
+ @RequestId = params['RequestId']
2469
+ end
2470
+ end
2471
+
2294
2472
  # CreateRoute请求参数结构体
2295
2473
  class CreateRouteRequest < TencentCloud::Common::AbstractModel
2296
2474
  # @param InstanceId: 实例唯一id
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.598
4
+ version: 3.0.600
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-06-22 00:00:00.000000000 Z
11
+ date: 2023-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common