Class: TencentCloud::Dts::V20211206::SubscribeObject

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

Overview

订阅的数据库表信息,用于配置和查询订阅任务接口。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(objecttype = nil, database = nil, tables = nil) ⇒ SubscribeObject

Returns a new instance of SubscribeObject.



7436
7437
7438
7439
7440
# File 'lib/v20211206/models.rb', line 7436

def initialize(objecttype=nil, database=nil, tables=nil)
  @ObjectType = objecttype
  @Database = database
  @Tables = tables
end

Instance Attribute Details

#DatabaseObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ObjectType:

    订阅数据的类型,枚举值:database-数据库,table-数据库的表(如果 DatabaseType 为 mongodb,则表示集合)

  • Database:

    订阅的数据库名称

  • Tables:

    订阅数据库中表的名称。如果 DatabaseType 为 mongodb,填集合名。mongodb只支持订阅单库或者单集合。



7434
7435
7436
# File 'lib/v20211206/models.rb', line 7434

def Database
  @Database
end

#ObjectTypeObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ObjectType:

    订阅数据的类型,枚举值:database-数据库,table-数据库的表(如果 DatabaseType 为 mongodb,则表示集合)

  • Database:

    订阅的数据库名称

  • Tables:

    订阅数据库中表的名称。如果 DatabaseType 为 mongodb,填集合名。mongodb只支持订阅单库或者单集合。



7434
7435
7436
# File 'lib/v20211206/models.rb', line 7434

def ObjectType
  @ObjectType
end

#TablesObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ObjectType:

    订阅数据的类型,枚举值:database-数据库,table-数据库的表(如果 DatabaseType 为 mongodb,则表示集合)

  • Database:

    订阅的数据库名称

  • Tables:

    订阅数据库中表的名称。如果 DatabaseType 为 mongodb,填集合名。mongodb只支持订阅单库或者单集合。



7434
7435
7436
# File 'lib/v20211206/models.rb', line 7434

def Tables
  @Tables
end

Instance Method Details

#deserialize(params) ⇒ Object



7442
7443
7444
7445
7446
# File 'lib/v20211206/models.rb', line 7442

def deserialize(params)
  @ObjectType = params['ObjectType']
  @Database = params['Database']
  @Tables = params['Tables']
end