lib/v20190819/models.rb in tencentcloud-sdk-ckafka-3.0.586 vs lib/v20190819/models.rb in tencentcloud-sdk-ckafka-3.0.587

- old
+ new

@@ -1918,43 +1918,87 @@ # CreateInstancePost请求参数结构体 class CreateInstancePostRequest < TencentCloud::Common::AbstractModel # @param InstanceName: 实例名称,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-) # @type InstanceName: String - # @param BandWidth: 实例带宽 + # @param BandWidth: 实例内网峰值带宽。单位 MB/s。标准版需传入当前实例规格所对应的峰值带宽。注意如果创建的实例为专业版实例,峰值带宽,分区数等参数配置需要满足专业版的计费规格。 # @type BandWidth: Integer - # @param VpcId: vpcId,不填默认基础网络 + # @param VpcId: 创建的实例默认接入点所在的 vpc 对应 vpcId。目前不支持创建基础网络实例,因此该参数必填 # @type VpcId: String - # @param SubnetId: 子网id,vpc网络需要传该参数,基础网络可以不传 + # @param SubnetId: 子网id。创建实例默认接入点所在的子网对应的子网 id # @type SubnetId: String - # @param MsgRetentionTime: 可选。实例日志的最长保留时间,单位分钟,默认为10080(7天),最大30天,不填默认0,代表不开启日志保留时间回收策略 + # @param InstanceType: 实例规格。当创建标准版实例时必填,创建专业版实例时不需要填写。1:入门型;2:标准型;3:进阶型;4:容量型;5:高阶型1;6:高阶性2;7:高阶型3;8:高阶型4;9 :独占型 + # @type InstanceType: Integer + # @param MsgRetentionTime: 实例日志的默认最长保留时间,单位分钟。不传入该参数时默认为 1440 分钟(1天),最大30天。当 topic 显式设置消息保留时间时,以 topic 保留时间为准 # @type MsgRetentionTime: Integer - # @param ZoneId: 可用区 - # @type ZoneId: Integer - # @param ClusterId: 创建实例时可以选择集群Id, 该入参表示集群Id + # @param ClusterId: 创建实例时可以选择集群Id, 该入参表示集群Id。不指定实例所在集群则不传入该参数 # @type ClusterId: Integer + # @param KafkaVersion: 实例版本。目前支持 "0.10.2","1.1.1","2.4.2","2.8.1" + # @type KafkaVersion: String + # @param SpecificationsType: 实例类型。"standard":标准版,"profession":专业版 + # @type SpecificationsType: String + # @param DiskType: 实例硬盘类型,"CLOUD_BASIC":云硬盘,"CLOUD_SSD":高速云硬盘。不传默认为 "CLOUD_BASIC" + # @type DiskType: String + # @param DiskSize: 实例硬盘大小,需要满足当前实例的计费规格 + # @type DiskSize: Integer + # @param Partition: 实例最大分区数量,需要满足当前实例的计费规格 + # @type Partition: Integer + # @param TopicNum: 实例最大 topic 数量,需要满足当前实例的计费规格 + # @type TopicNum: Integer + # @param ZoneId: 实例所在的可用区。当创建多可用区实例时,该参数为创建的默认接入点所在的子网 + # @type ZoneId: Integer + # @param MultiZoneFlag: 当前实例是否为多可用区实例。 + # @type MultiZoneFlag: Boolean + # @param ZoneIds: 当实例为多可用区实例时,多可用区 id 列表。注意参数 ZoneId 对应的多可用区需要包含在该参数数组中 + # @type ZoneIds: Array + # @param InstanceNum: 购买实例数量。非必填,默认值为 1。当传入该参数时,会创建多个 instanceName 加后缀区分的实例 + # @type InstanceNum: Integer + # @param PublicNetworkMonthly: 公网带宽大小,单位 Mbps。默认是没有加上免费 3Mbps 带宽。例如总共需要 3Mbps 公网带宽,此处传 0;总共需要 4Mbps 公网带宽,此处传 1 + # @type PublicNetworkMonthly: Integer - attr_accessor :InstanceName, :BandWidth, :VpcId, :SubnetId, :MsgRetentionTime, :ZoneId, :ClusterId + attr_accessor :InstanceName, :BandWidth, :VpcId, :SubnetId, :InstanceType, :MsgRetentionTime, :ClusterId, :KafkaVersion, :SpecificationsType, :DiskType, :DiskSize, :Partition, :TopicNum, :ZoneId, :MultiZoneFlag, :ZoneIds, :InstanceNum, :PublicNetworkMonthly - def initialize(instancename=nil, bandwidth=nil, vpcid=nil, subnetid=nil, msgretentiontime=nil, zoneid=nil, clusterid=nil) + def initialize(instancename=nil, bandwidth=nil, vpcid=nil, subnetid=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) @InstanceName = instancename @BandWidth = bandwidth @VpcId = vpcid @SubnetId = subnetid + @InstanceType = instancetype @MsgRetentionTime = msgretentiontime - @ZoneId = zoneid @ClusterId = clusterid + @KafkaVersion = kafkaversion + @SpecificationsType = specificationstype + @DiskType = disktype + @DiskSize = disksize + @Partition = partition + @TopicNum = topicnum + @ZoneId = zoneid + @MultiZoneFlag = multizoneflag + @ZoneIds = zoneids + @InstanceNum = instancenum + @PublicNetworkMonthly = publicnetworkmonthly end def deserialize(params) @InstanceName = params['InstanceName'] @BandWidth = params['BandWidth'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] + @InstanceType = params['InstanceType'] @MsgRetentionTime = params['MsgRetentionTime'] - @ZoneId = params['ZoneId'] @ClusterId = params['ClusterId'] + @KafkaVersion = params['KafkaVersion'] + @SpecificationsType = params['SpecificationsType'] + @DiskType = params['DiskType'] + @DiskSize = params['DiskSize'] + @Partition = params['Partition'] + @TopicNum = params['TopicNum'] + @ZoneId = params['ZoneId'] + @MultiZoneFlag = params['MultiZoneFlag'] + @ZoneIds = params['ZoneIds'] + @InstanceNum = params['InstanceNum'] + @PublicNetworkMonthly = params['PublicNetworkMonthly'] end end # CreateInstancePost返回参数结构体 class CreateInstancePostResponse < TencentCloud::Common::AbstractModel @@ -9082,19 +9126,27 @@ # 操作类型返回的Data结构 class OperateResponseData < TencentCloud::Common::AbstractModel # @param FlowId: FlowId11 # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowId: Integer + # @param RouteDTO: RouteIdDto + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type RouteDTO: :class:`Tencentcloud::Ckafka.v20190819.models.RouteDTO` - attr_accessor :FlowId + attr_accessor :FlowId, :RouteDTO - def initialize(flowid=nil) + def initialize(flowid=nil, routedto=nil) @FlowId = flowid + @RouteDTO = routedto end def deserialize(params) @FlowId = params['FlowId'] + unless params['RouteDTO'].nil? + @RouteDTO = RouteDTO.new + @RouteDTO.deserialize(params['RouteDTO']) + end end end # 分区实体 class Partition < TencentCloud::Common::AbstractModel @@ -9607,9 +9659,26 @@ end end @Domain = params['Domain'] @DomainPort = params['DomainPort'] @DeleteTimestamp = params['DeleteTimestamp'] + end + end + + # RouteDTO + class RouteDTO < TencentCloud::Common::AbstractModel + # @param RouteId: RouteId11 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type RouteId: Integer + + attr_accessor :RouteId + + def initialize(routeid=nil) + @RouteId = routeid + end + + def deserialize(params) + @RouteId = params['RouteId'] end end # 路由信息返回对象 class RouteResponse < TencentCloud::Common::AbstractModel