Class: TencentCloud::Eb::V20210416::CreateConnectionRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20210416/models.rb

Overview

CreateConnection请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connectiondescription = nil, eventbusid = nil, connectionname = nil, description = nil, enable = nil, type = nil) ⇒ CreateConnectionRequest

Returns a new instance of CreateConnectionRequest.



332
333
334
335
336
337
338
339
# File 'lib/v20210416/models.rb', line 332

def initialize(connectiondescription=nil, eventbusid=nil, connectionname=nil, description=nil, enable=nil, type=nil)
  @ConnectionDescription = connectiondescription
  @EventBusId = eventbusid
  @ConnectionName = connectionname
  @Description = description
  @Enable = enable
  @Type = type
end

Instance Attribute Details

#ConnectionDescriptionObject

Parameters:

  • ConnectionDescription:

    连接器描述

  • EventBusId:

    事件集ID

  • ConnectionName:

    连接器名称

  • Description:

    描述

  • Enable:

    使能开关

  • Type:

    连接器类型,目前支持以下类型:apigw/ckafka/dts/tdmq



330
331
332
# File 'lib/v20210416/models.rb', line 330

def ConnectionDescription
  @ConnectionDescription
end

#ConnectionNameObject

Parameters:

  • ConnectionDescription:

    连接器描述

  • EventBusId:

    事件集ID

  • ConnectionName:

    连接器名称

  • Description:

    描述

  • Enable:

    使能开关

  • Type:

    连接器类型,目前支持以下类型:apigw/ckafka/dts/tdmq



330
331
332
# File 'lib/v20210416/models.rb', line 330

def ConnectionName
  @ConnectionName
end

#DescriptionObject

Parameters:

  • ConnectionDescription:

    连接器描述

  • EventBusId:

    事件集ID

  • ConnectionName:

    连接器名称

  • Description:

    描述

  • Enable:

    使能开关

  • Type:

    连接器类型,目前支持以下类型:apigw/ckafka/dts/tdmq



330
331
332
# File 'lib/v20210416/models.rb', line 330

def Description
  @Description
end

#EnableObject

Parameters:

  • ConnectionDescription:

    连接器描述

  • EventBusId:

    事件集ID

  • ConnectionName:

    连接器名称

  • Description:

    描述

  • Enable:

    使能开关

  • Type:

    连接器类型,目前支持以下类型:apigw/ckafka/dts/tdmq



330
331
332
# File 'lib/v20210416/models.rb', line 330

def Enable
  @Enable
end

#EventBusIdObject

Parameters:

  • ConnectionDescription:

    连接器描述

  • EventBusId:

    事件集ID

  • ConnectionName:

    连接器名称

  • Description:

    描述

  • Enable:

    使能开关

  • Type:

    连接器类型,目前支持以下类型:apigw/ckafka/dts/tdmq



330
331
332
# File 'lib/v20210416/models.rb', line 330

def EventBusId
  @EventBusId
end

#TypeObject

Parameters:

  • ConnectionDescription:

    连接器描述

  • EventBusId:

    事件集ID

  • ConnectionName:

    连接器名称

  • Description:

    描述

  • Enable:

    使能开关

  • Type:

    连接器类型,目前支持以下类型:apigw/ckafka/dts/tdmq



330
331
332
# File 'lib/v20210416/models.rb', line 330

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



341
342
343
344
345
346
347
348
349
350
351
# File 'lib/v20210416/models.rb', line 341

def deserialize(params)
  unless params['ConnectionDescription'].nil?
    @ConnectionDescription = ConnectionDescription.new
    @ConnectionDescription.deserialize(params['ConnectionDescription'])
  end
  @EventBusId = params['EventBusId']
  @ConnectionName = params['ConnectionName']
  @Description = params['Description']
  @Enable = params['Enable']
  @Type = params['Type']
end