tencentcloud-sdk-ckafka 3.0.1094 → 3.0.1100

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: 307c9e604ae425aa62da74c45d9de9c45e8aef41
4
- data.tar.gz: c28f0f8c887d3826de4e84e9acf2139b85bfad40
3
+ metadata.gz: 03184a29083dbfe60e310a4297f76e8baffef902
4
+ data.tar.gz: 30063ada28487a469bd6003f42fec56ef6b4becf
5
5
  SHA512:
6
- metadata.gz: 8b5da24511e8529ec2e15dcc952046374c02e064a59f95e0120366c4ea3caa3c8d9428d011a1ad26c6991c7c85c29f8b5e7391baf5e6af07b98954a250ffaf67
7
- data.tar.gz: dcecb762de3560641d638c78b13f6a26bbafe2b955102ef52c87f4ce001b46b6decf154c6ee569c4a6d28f67bc73f7478b8101d3d091fe8aa79c7727e71d3559
6
+ metadata.gz: 8c544d843c07a0d01906578a62521a210983bf2a3c71b3698f737f38ba830949cfb3c8cc8684f5533438a8cd1c5351ea855c312257a61fbd10b948b1050c80d7
7
+ data.tar.gz: 5c01ce8746e4de7c774b246815baca8213af6ec8699c6e1da69024a128c22643e40378cef861080a328631ce210b31f56eaa8a3c2328bf7b26804f566b4a82cf
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1094
1
+ 3.0.1100
@@ -341,30 +341,6 @@ module TencentCloud
341
341
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
342
  end
343
343
 
344
- # 由于出参需要更新,建议用户迁移使用 CreatePostPaidInstance 接口。创建按量计费实例。通常用于 SDK 或云 API 控制台调用接口,创建后付费 CKafka 实例。调用接口与在 CKafka 控制台购买按量付费实例效果相同。
345
-
346
- # @param request: Request instance for CreateInstancePost.
347
- # @type request: :class:`Tencentcloud::ckafka::V20190819::CreateInstancePostRequest`
348
- # @rtype: :class:`Tencentcloud::ckafka::V20190819::CreateInstancePostResponse`
349
- def CreateInstancePost(request)
350
- body = send_request('CreateInstancePost', request.serialize)
351
- response = JSON.parse(body)
352
- if response['Response'].key?('Error') == false
353
- model = CreateInstancePostResponse.new
354
- model.deserialize(response['Response'])
355
- model
356
- else
357
- code = response['Response']['Error']['Code']
358
- message = response['Response']['Error']['Message']
359
- reqid = response['Response']['RequestId']
360
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
361
- end
362
- rescue TencentCloud::Common::TencentCloudSDKException => e
363
- raise e
364
- rescue StandardError => e
365
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
- end
367
-
368
344
  # 创建实例(预付费包年包月), 仅支持创建专业版实例
369
345
 
370
346
  # @param request: Request instance for CreateInstancePre.
@@ -1975,105 +1975,6 @@ module TencentCloud
1975
1975
  end
1976
1976
  end
1977
1977
 
1978
- # CreateInstancePost请求参数结构体
1979
- class CreateInstancePostRequest < TencentCloud::Common::AbstractModel
1980
- # @param InstanceName: ckafka集群实例Name,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
1981
- # @type InstanceName: String
1982
- # @param VpcId: 私有网络Id 创建的实例默认接入点所在的 vpc 对应 vpcId。目前不支持创建基础网络实例,因此该参数必填
1983
- # @type VpcId: String
1984
- # @param SubnetId: 子网id。创建实例默认接入点所在的子网对应的子网 id
1985
- # @type SubnetId: String
1986
- # @param BandWidth: 实例内网峰值带宽。单位 MB/s。标准版需传入当前实例规格所对应的峰值带宽。注意如果创建的实例为专业版实例,峰值带宽,分区数等参数配置需要满足专业版的计费规格。
1987
- # @type BandWidth: Integer
1988
- # @param InstanceType: 国际站标准版实例规格。目前只有国际站标准版使用当前字段区分规格,国内站标准版使用峰值带宽区分规格。除了国际站标准版外的所有实例填写 1 即可。国际站标准版实例:入门型(general)]填写1;[标准型(standard)]填写2;[进阶型(advanced)]填写3;[容量型(capacity)]填写4;[高阶型1(specialized-1)]填写5;[高阶型2(specialized-2)]填写6;[高阶型3(specialized-3)]填写7;[高阶型4(specialized-4)]填写8。
1989
- # @type InstanceType: Integer
1990
- # @param MsgRetentionTime: 实例日志的默认最长保留时间,单位分钟。不传入该参数时默认为 1440 分钟(1天),最大30天。当 topic 显式设置消息保留时间时,以 topic 保留时间为准
1991
- # @type MsgRetentionTime: Integer
1992
- # @param ClusterId: 创建实例时可以选择集群Id, 该入参表示集群Id。不指定实例所在集群则不传入该参数
1993
- # @type ClusterId: Integer
1994
- # @param KafkaVersion: 实例版本。目前支持 "0.10.2","1.1.1","2.4.1","2.4.2","2.8.1"。"2.4.1" 与 "2.4.2" 属于同一个版本,传任意一个均可。
1995
- # @type KafkaVersion: String
1996
- # @param SpecificationsType: 实例类型。"standard":标准版,"profession":专业版
1997
- # @type SpecificationsType: String
1998
- # @param DiskType: 专业版实例磁盘类型,标准版实例不需要填写。"CLOUD_SSD":SSD云硬盘;"CLOUD_BASIC":高性能云硬盘。不传默认值为 "CLOUD_BASIC"
1999
- # @type DiskType: String
2000
- # @param DiskSize: 实例硬盘大小,需要满足当前实例的计费规格
2001
- # @type DiskSize: Integer
2002
- # @param Partition: 实例最大分区数量,需要满足当前实例的计费规格
2003
- # @type Partition: Integer
2004
- # @param TopicNum: 实例最大 topic 数量,需要满足当前实例的计费规格
2005
- # @type TopicNum: Integer
2006
- # @param ZoneId: 实例所在的可用区。当创建多可用区实例时,该参数为创建的默认接入点所在子网的可用区 id
2007
- # @type ZoneId: Integer
2008
- # @param MultiZoneFlag: 当前实例是否为多可用区实例。
2009
- # @type MultiZoneFlag: Boolean
2010
- # @param ZoneIds: 当实例为多可用区实例时,多可用区 id 列表。注意参数 ZoneId 对应的多可用区需要包含在该参数数组中
2011
- # @type ZoneIds: Array
2012
- # @param InstanceNum: 购买实例数量。非必填,默认值为 1。当传入该参数时,会创建多个 instanceName 加后缀区分的实例
2013
- # @type InstanceNum: Integer
2014
- # @param PublicNetworkMonthly: 公网带宽大小,单位 Mbps。默认是没有加上免费 3Mbps 带宽。例如总共需要 3Mbps 公网带宽,此处传 0;总共需要 6Mbps 公网带宽,此处传 3。需要保证传入参数为 3 的整数倍
2015
- # @type PublicNetworkMonthly: Integer
2016
- # @param Tags: 标签
2017
- # @type Tags: Array
2018
- # @param ElasticBandwidthSwitch: 弹性带宽开关 0不开启 1开启(0默认)
2019
- # @type ElasticBandwidthSwitch: Integer
2020
-
2021
- attr_accessor :InstanceName, :VpcId, :SubnetId, :BandWidth, :InstanceType, :MsgRetentionTime, :ClusterId, :KafkaVersion, :SpecificationsType, :DiskType, :DiskSize, :Partition, :TopicNum, :ZoneId, :MultiZoneFlag, :ZoneIds, :InstanceNum, :PublicNetworkMonthly, :Tags, :ElasticBandwidthSwitch
2022
-
2023
- def initialize(instancename=nil, vpcid=nil, subnetid=nil, bandwidth=nil, instancetype=nil, msgretentiontime=nil, clusterid=nil, kafkaversion=nil, specificationstype=nil, disktype=nil, disksize=nil, partition=nil, topicnum=nil, zoneid=nil, multizoneflag=nil, zoneids=nil, instancenum=nil, publicnetworkmonthly=nil, tags=nil, elasticbandwidthswitch=nil)
2024
- @InstanceName = instancename
2025
- @VpcId = vpcid
2026
- @SubnetId = subnetid
2027
- @BandWidth = bandwidth
2028
- @InstanceType = instancetype
2029
- @MsgRetentionTime = msgretentiontime
2030
- @ClusterId = clusterid
2031
- @KafkaVersion = kafkaversion
2032
- @SpecificationsType = specificationstype
2033
- @DiskType = disktype
2034
- @DiskSize = disksize
2035
- @Partition = partition
2036
- @TopicNum = topicnum
2037
- @ZoneId = zoneid
2038
- @MultiZoneFlag = multizoneflag
2039
- @ZoneIds = zoneids
2040
- @InstanceNum = instancenum
2041
- @PublicNetworkMonthly = publicnetworkmonthly
2042
- @Tags = tags
2043
- @ElasticBandwidthSwitch = elasticbandwidthswitch
2044
- end
2045
-
2046
- def deserialize(params)
2047
- @InstanceName = params['InstanceName']
2048
- @VpcId = params['VpcId']
2049
- @SubnetId = params['SubnetId']
2050
- @BandWidth = params['BandWidth']
2051
- @InstanceType = params['InstanceType']
2052
- @MsgRetentionTime = params['MsgRetentionTime']
2053
- @ClusterId = params['ClusterId']
2054
- @KafkaVersion = params['KafkaVersion']
2055
- @SpecificationsType = params['SpecificationsType']
2056
- @DiskType = params['DiskType']
2057
- @DiskSize = params['DiskSize']
2058
- @Partition = params['Partition']
2059
- @TopicNum = params['TopicNum']
2060
- @ZoneId = params['ZoneId']
2061
- @MultiZoneFlag = params['MultiZoneFlag']
2062
- @ZoneIds = params['ZoneIds']
2063
- @InstanceNum = params['InstanceNum']
2064
- @PublicNetworkMonthly = params['PublicNetworkMonthly']
2065
- unless params['Tags'].nil?
2066
- @Tags = []
2067
- params['Tags'].each do |i|
2068
- tag_tmp = Tag.new
2069
- tag_tmp.deserialize(i)
2070
- @Tags << tag_tmp
2071
- end
2072
- end
2073
- @ElasticBandwidthSwitch = params['ElasticBandwidthSwitch']
2074
- end
2075
- end
2076
-
2077
1978
  # 后付费实例相关接口返回结构
2078
1979
  class CreateInstancePostResp < TencentCloud::Common::AbstractModel
2079
1980
  # @param ReturnCode: 返回的code,0为正常,非0为错误
@@ -2101,29 +2002,6 @@ module TencentCloud
2101
2002
  end
2102
2003
  end
2103
2004
 
2104
- # CreateInstancePost返回参数结构体
2105
- class CreateInstancePostResponse < TencentCloud::Common::AbstractModel
2106
- # @param Result: 返回结果
2107
- # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.JgwOperateResponse`
2108
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2109
- # @type RequestId: String
2110
-
2111
- attr_accessor :Result, :RequestId
2112
-
2113
- def initialize(result=nil, requestid=nil)
2114
- @Result = result
2115
- @RequestId = requestid
2116
- end
2117
-
2118
- def deserialize(params)
2119
- unless params['Result'].nil?
2120
- @Result = JgwOperateResponse.new
2121
- @Result.deserialize(params['Result'])
2122
- end
2123
- @RequestId = params['RequestId']
2124
- end
2125
- end
2126
-
2127
2005
  # 创建预付费接口返回的Data
2128
2006
  class CreateInstancePreData < TencentCloud::Common::AbstractModel
2129
2007
  # @param FlowId: CreateInstancePre返回固定为0,不能作为CheckTaskStatus的查询条件。只是为了保证和后台数据结构对齐。
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.1094
4
+ version: 3.0.1100
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-05 00:00:00.000000000 Z
11
+ date: 2025-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common