lib/v20210416/models.rb in tencentcloud-sdk-eb-3.0.517 vs lib/v20210416/models.rb in tencentcloud-sdk-eb-3.0.518

- old
+ new

@@ -227,27 +227,53 @@ @ConnectionName = params['ConnectionName'] @Type = params['Type'] end end + # 连接器基础信息 + class ConnectionBrief < TencentCloud::Common::AbstractModel + # @param Type: 连接器类型 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Type: String + # @param Status: 连接器状态 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Status: String + + attr_accessor :Type, :Status + + def initialize(type=nil, status=nil) + @Type = type + @Status = status + end + + def deserialize(params) + @Type = params['Type'] + @Status = params['Status'] + end + end + # ConnectionDescription描述 class ConnectionDescription < TencentCloud::Common::AbstractModel # @param ResourceDescription: 资源qcs六段式,更多参考 [资源六段式](https://cloud.tencent.com/document/product/598/10606) # @type ResourceDescription: String # @param APIGWParams: apigw参数 # 注意:此字段可能返回 null,表示取不到有效值。 # @type APIGWParams: :class:`Tencentcloud::Eb.v20210416.models.APIGWParams` # @param CkafkaParams: ckafka参数 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CkafkaParams: :class:`Tencentcloud::Eb.v20210416.models.CkafkaParams` + # @param DTSParams: data transfer service (DTS)参数 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type DTSParams: :class:`Tencentcloud::Eb.v20210416.models.DTSParams` - attr_accessor :ResourceDescription, :APIGWParams, :CkafkaParams + attr_accessor :ResourceDescription, :APIGWParams, :CkafkaParams, :DTSParams - def initialize(resourcedescription=nil, apigwparams=nil, ckafkaparams=nil) + def initialize(resourcedescription=nil, apigwparams=nil, ckafkaparams=nil, dtsparams=nil) @ResourceDescription = resourcedescription @APIGWParams = apigwparams @CkafkaParams = ckafkaparams + @DTSParams = dtsparams end def deserialize(params) @ResourceDescription = params['ResourceDescription'] unless params['APIGWParams'].nil? @@ -256,10 +282,14 @@ end unless params['CkafkaParams'].nil? @CkafkaParams = CkafkaParams.new @CkafkaParams.deserialize(params['CkafkaParams']) end + unless params['DTSParams'].nil? + @DTSParams = DTSParams.new + @DTSParams.deserialize(params['DTSParams']) + end end end # CreateConnection请求参数结构体 class CreateConnectionRequest < TencentCloud::Common::AbstractModel @@ -326,23 +356,27 @@ # @type EventBusName: String # @param Description: 事件集描述,不限字符类型,200字符描述以内 # @type Description: String # @param SaveDays: EB存储时长 # @type SaveDays: Integer + # @param EnableStore: EB是否开启存储 + # @type EnableStore: Boolean - attr_accessor :EventBusName, :Description, :SaveDays + attr_accessor :EventBusName, :Description, :SaveDays, :EnableStore - def initialize(eventbusname=nil, description=nil, savedays=nil) + def initialize(eventbusname=nil, description=nil, savedays=nil, enablestore=nil) @EventBusName = eventbusname @Description = description @SaveDays = savedays + @EnableStore = enablestore end def deserialize(params) @EventBusName = params['EventBusName'] @Description = params['Description'] @SaveDays = params['SaveDays'] + @EnableStore = params['EnableStore'] end end # CreateEventBus返回参数结构体 class CreateEventBusResponse < TencentCloud::Common::AbstractModel @@ -516,10 +550,21 @@ @TransformationId = params['TransformationId'] @RequestId = params['RequestId'] end end + # Data Transfer Service参数 + class DTSParams < TencentCloud::Common::AbstractModel + + + def initialize() + end + + def deserialize(params) + end + end + # rule对应的dlq配置 class DeadLetterConfig < TencentCloud::Common::AbstractModel # @param DisposeMethod: 支持dlq、丢弃、忽略错误继续传递三种模式, 分别对应: DLQ,DROP,IGNORE_ERROR # @type DisposeMethod: String # @param CkafkaDeliveryParams: 设置了DLQ方式后,此选项必填. 错误消息会被投递到对应的kafka topic中 @@ -823,29 +868,58 @@ # @type EventBusName: String # @param EventBusId: 事件集ID # @type EventBusId: String # @param Type: 事件集类型 # @type Type: String + # @param PayMode: 计费模式 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type PayMode: String + # @param ConnectionBriefs: 连接器基础信息 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type ConnectionBriefs: Array + # @param TargetBriefs: 目标简要信息 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type TargetBriefs: Array - attr_accessor :ModTime, :Description, :AddTime, :EventBusName, :EventBusId, :Type + attr_accessor :ModTime, :Description, :AddTime, :EventBusName, :EventBusId, :Type, :PayMode, :ConnectionBriefs, :TargetBriefs - def initialize(modtime=nil, description=nil, addtime=nil, eventbusname=nil, eventbusid=nil, type=nil) + def initialize(modtime=nil, description=nil, addtime=nil, eventbusname=nil, eventbusid=nil, type=nil, paymode=nil, connectionbriefs=nil, targetbriefs=nil) @ModTime = modtime @Description = description @AddTime = addtime @EventBusName = eventbusname @EventBusId = eventbusid @Type = type + @PayMode = paymode + @ConnectionBriefs = connectionbriefs + @TargetBriefs = targetbriefs end def deserialize(params) @ModTime = params['ModTime'] @Description = params['Description'] @AddTime = params['AddTime'] @EventBusName = params['EventBusName'] @EventBusId = params['EventBusId'] @Type = params['Type'] + @PayMode = params['PayMode'] + unless params['ConnectionBriefs'].nil? + @ConnectionBriefs = [] + params['ConnectionBriefs'].each do |i| + connectionbrief_tmp = ConnectionBrief.new + connectionbrief_tmp.deserialize(i) + @ConnectionBriefs << connectionbrief_tmp + end + end + unless params['TargetBriefs'].nil? + @TargetBriefs = [] + params['TargetBriefs'].each do |i| + targetbrief_tmp = TargetBrief.new + targetbrief_tmp.deserialize(i) + @TargetBriefs << targetbrief_tmp + end + end end end # 描述如何提取数据 class Extraction < TencentCloud::Common::AbstractModel @@ -929,24 +1003,43 @@ # @type EventBusName: String # @param EventBusId: 事件集ID # @type EventBusId: String # @param Type: (已废弃)事件集类型 # @type Type: String + # @param PayMode: 计费模式 + # @type PayMode: String + # @param SaveDays: EB日志存储时长 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type SaveDays: Integer + # @param LogTopicId: EB日志主题ID + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type LogTopicId: String + # @param EnableStore: 是否开启存储 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type EnableStore: Boolean + # @param LinkMode: 消息序列,是否有序 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type LinkMode: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String - attr_accessor :ModTime, :Description, :ClsTopicId, :AddTime, :ClsLogsetId, :EventBusName, :EventBusId, :Type, :RequestId + attr_accessor :ModTime, :Description, :ClsTopicId, :AddTime, :ClsLogsetId, :EventBusName, :EventBusId, :Type, :PayMode, :SaveDays, :LogTopicId, :EnableStore, :LinkMode, :RequestId - def initialize(modtime=nil, description=nil, clstopicid=nil, addtime=nil, clslogsetid=nil, eventbusname=nil, eventbusid=nil, type=nil, requestid=nil) + def initialize(modtime=nil, description=nil, clstopicid=nil, addtime=nil, clslogsetid=nil, eventbusname=nil, eventbusid=nil, type=nil, paymode=nil, savedays=nil, logtopicid=nil, enablestore=nil, linkmode=nil, requestid=nil) @ModTime = modtime @Description = description @ClsTopicId = clstopicid @AddTime = addtime @ClsLogsetId = clslogsetid @EventBusName = eventbusname @EventBusId = eventbusid @Type = type + @PayMode = paymode + @SaveDays = savedays + @LogTopicId = logtopicid + @EnableStore = enablestore + @LinkMode = linkmode @RequestId = requestid end def deserialize(params) @ModTime = params['ModTime'] @@ -955,9 +1048,14 @@ @AddTime = params['AddTime'] @ClsLogsetId = params['ClsLogsetId'] @EventBusName = params['EventBusName'] @EventBusId = params['EventBusId'] @Type = params['Type'] + @PayMode = params['PayMode'] + @SaveDays = params['SaveDays'] + @LogTopicId = params['LogTopicId'] + @EnableStore = params['EnableStore'] + @LinkMode = params['LinkMode'] @RequestId = params['RequestId'] end end # GetRule请求参数结构体