tencentcloud-sdk-ckafka 3.0.598 → 3.0.599

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: 5092fe05b43b0d86e87db6a1f1c1a8d58715c116
4
+ data.tar.gz: e4278d9e3f38ff6a2eaaa9222800e789f597fcb2
5
5
  SHA512:
6
- metadata.gz: c50edaf04cc89f83cf826d776ad571838e3b9d76843f5d82370236daf5d8460ea18f80f5917b1afa8f5cc877342da5b8df9badb0bc532ca86cb6254806b07a98
7
- data.tar.gz: 891afb7d69590318dffefe0cc7d092c42f2341dbe5ddbea9e23a79f00c6fcfa1a419a3eced7d5eb240c713206c9e474d964f83db9ccafd53c2ea229f481a9a22
6
+ metadata.gz: 0f91a5c40986ede5ef6a1bcf492208560665cf52b9168f4730ef4d4529b53c03a267fa7390c81be7751d0fb94d336907e8e29104798ee3c3331cfd059750ced1
7
+ data.tar.gz: 563cc3ddf54858b6447474ab362fa5004a013f22f2e3e51a6fc4a7f59e3ea7a650ff9d2d841f8ea2635deae05d811a6b171c9f979289fdd1eb721bbccc2cb8fd
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.598
1
+ 3.0.599
@@ -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 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
@@ -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: 返回结果
@@ -2291,6 +2358,113 @@ module TencentCloud
2291
2358
  end
2292
2359
  end
2293
2360
 
2361
+ # CreatePostPaidInstance请求参数结构体
2362
+ class CreatePostPaidInstanceRequest < TencentCloud::Common::AbstractModel
2363
+ # @param InstanceName: 实例名称,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
2364
+ # @type InstanceName: String
2365
+ # @param VpcId: 创建的实例默认接入点所在的 vpc 对应 vpcId。目前不支持创建基础网络实例,因此该参数必填
2366
+ # @type VpcId: String
2367
+ # @param SubnetId: 子网id。创建实例默认接入点所在的子网对应的子网 id
2368
+ # @type SubnetId: String
2369
+ # @param InstanceType: 实例规格。当创建标准版实例时必填,创建专业版实例时不需要填写。1:入门型;2:标准型;3:进阶型;4:容量型;5:高阶型1;6:高阶性2;7:高阶型3;8:高阶型4;9 :独占型
2370
+ # @type InstanceType: Integer
2371
+ # @param MsgRetentionTime: 实例日志的默认最长保留时间,单位分钟。不传入该参数时默认为 1440 分钟(1天),最大30天。当 topic 显式设置消息保留时间时,以 topic 保留时间为准
2372
+ # @type MsgRetentionTime: Integer
2373
+ # @param ClusterId: 创建实例时可以选择集群Id, 该入参表示集群Id。不指定实例所在集群则不传入该参数
2374
+ # @type ClusterId: Integer
2375
+ # @param KafkaVersion: 实例版本。目前支持 "0.10.2","1.1.1","2.4.2","2.8.1"
2376
+ # @type KafkaVersion: String
2377
+ # @param SpecificationsType: 实例类型。"standard":标准版,"profession":专业版
2378
+ # @type SpecificationsType: String
2379
+ # @param DiskType: 实例硬盘类型,"CLOUD_BASIC":云硬盘,"CLOUD_SSD":高速云硬盘。不传默认为 "CLOUD_BASIC"
2380
+ # @type DiskType: String
2381
+ # @param BandWidth: 实例内网峰值带宽。单位 MB/s。标准版需传入当前实例规格所对应的峰值带宽。注意如果创建的实例为专业版实例,峰值带宽,分区数等参数配置需要满足专业版的计费规格。
2382
+ # @type BandWidth: Integer
2383
+ # @param DiskSize: 实例硬盘大小,需要满足当前实例的计费规格
2384
+ # @type DiskSize: Integer
2385
+ # @param Partition: 实例最大分区数量,需要满足当前实例的计费规格
2386
+ # @type Partition: Integer
2387
+ # @param TopicNum: 实例最大 topic 数量,需要满足当前实例的计费规格
2388
+ # @type TopicNum: Integer
2389
+ # @param ZoneId: 实例所在的可用区。当创建多可用区实例时,该参数为创建的默认接入点所在子网的可用区 id
2390
+ # @type ZoneId: Integer
2391
+ # @param MultiZoneFlag: 当前实例是否为多可用区实例。
2392
+ # @type MultiZoneFlag: Boolean
2393
+ # @param ZoneIds: 当实例为多可用区实例时,多可用区 id 列表。注意参数 ZoneId 对应的多可用区需要包含在该参数数组中
2394
+ # @type ZoneIds: Array
2395
+ # @param InstanceNum: 购买实例数量。非必填,默认值为 1。当传入该参数时,会创建多个 instanceName 加后缀区分的实例
2396
+ # @type InstanceNum: Integer
2397
+ # @param PublicNetworkMonthly: 公网带宽大小,单位 Mbps。默认是没有加上免费 3Mbps 带宽。例如总共需要 3Mbps 公网带宽,此处传 0;总共需要 4Mbps 公网带宽,此处传 1
2398
+ # @type PublicNetworkMonthly: Integer
2399
+
2400
+ attr_accessor :InstanceName, :VpcId, :SubnetId, :InstanceType, :MsgRetentionTime, :ClusterId, :KafkaVersion, :SpecificationsType, :DiskType, :BandWidth, :DiskSize, :Partition, :TopicNum, :ZoneId, :MultiZoneFlag, :ZoneIds, :InstanceNum, :PublicNetworkMonthly
2401
+
2402
+ 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)
2403
+ @InstanceName = instancename
2404
+ @VpcId = vpcid
2405
+ @SubnetId = subnetid
2406
+ @InstanceType = instancetype
2407
+ @MsgRetentionTime = msgretentiontime
2408
+ @ClusterId = clusterid
2409
+ @KafkaVersion = kafkaversion
2410
+ @SpecificationsType = specificationstype
2411
+ @DiskType = disktype
2412
+ @BandWidth = bandwidth
2413
+ @DiskSize = disksize
2414
+ @Partition = partition
2415
+ @TopicNum = topicnum
2416
+ @ZoneId = zoneid
2417
+ @MultiZoneFlag = multizoneflag
2418
+ @ZoneIds = zoneids
2419
+ @InstanceNum = instancenum
2420
+ @PublicNetworkMonthly = publicnetworkmonthly
2421
+ end
2422
+
2423
+ def deserialize(params)
2424
+ @InstanceName = params['InstanceName']
2425
+ @VpcId = params['VpcId']
2426
+ @SubnetId = params['SubnetId']
2427
+ @InstanceType = params['InstanceType']
2428
+ @MsgRetentionTime = params['MsgRetentionTime']
2429
+ @ClusterId = params['ClusterId']
2430
+ @KafkaVersion = params['KafkaVersion']
2431
+ @SpecificationsType = params['SpecificationsType']
2432
+ @DiskType = params['DiskType']
2433
+ @BandWidth = params['BandWidth']
2434
+ @DiskSize = params['DiskSize']
2435
+ @Partition = params['Partition']
2436
+ @TopicNum = params['TopicNum']
2437
+ @ZoneId = params['ZoneId']
2438
+ @MultiZoneFlag = params['MultiZoneFlag']
2439
+ @ZoneIds = params['ZoneIds']
2440
+ @InstanceNum = params['InstanceNum']
2441
+ @PublicNetworkMonthly = params['PublicNetworkMonthly']
2442
+ end
2443
+ end
2444
+
2445
+ # CreatePostPaidInstance返回参数结构体
2446
+ class CreatePostPaidInstanceResponse < TencentCloud::Common::AbstractModel
2447
+ # @param Result: 返回结果
2448
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.CreateInstancePostResp`
2449
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2450
+ # @type RequestId: String
2451
+
2452
+ attr_accessor :Result, :RequestId
2453
+
2454
+ def initialize(result=nil, requestid=nil)
2455
+ @Result = result
2456
+ @RequestId = requestid
2457
+ end
2458
+
2459
+ def deserialize(params)
2460
+ unless params['Result'].nil?
2461
+ @Result = CreateInstancePostResp.new
2462
+ @Result.deserialize(params['Result'])
2463
+ end
2464
+ @RequestId = params['RequestId']
2465
+ end
2466
+ end
2467
+
2294
2468
  # CreateRoute请求参数结构体
2295
2469
  class CreateRouteRequest < TencentCloud::Common::AbstractModel
2296
2470
  # @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.599
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-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common