Class: TencentCloud::Dts::V20211206::SyncDBEndpointInfos
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dts::V20211206::SyncDBEndpointInfos
- Defined in:
- lib/v20211206/models.rb
Overview
数据同步配置多节点数据库的节点信息。多节点数据库,如tdsqlmysql使用该结构;单节点数据库,如mysql使用Endpoint。
Instance Attribute Summary collapse
-
#AccessType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#DatabaseType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Info ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Region ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(region = nil, accesstype = nil, databasetype = nil, info = nil) ⇒ SyncDBEndpointInfos
constructor
A new instance of SyncDBEndpointInfos.
Constructor Details
#initialize(region = nil, accesstype = nil, databasetype = nil, info = nil) ⇒ SyncDBEndpointInfos
Returns a new instance of SyncDBEndpointInfos.
7463 7464 7465 7466 7467 7468 |
# File 'lib/v20211206/models.rb', line 7463 def initialize(region=nil, accesstype=nil, databasetype=nil, info=nil) @Region = region @AccessType = accesstype @DatabaseType = databasetype @Info = info end |
Instance Attribute Details
#AccessType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
7461 7462 7463 |
# File 'lib/v20211206/models.rb', line 7461 def AccessType @AccessType end |
#DatabaseType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
7461 7462 7463 |
# File 'lib/v20211206/models.rb', line 7461 def DatabaseType @DatabaseType end |
#Info ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
7461 7462 7463 |
# File 'lib/v20211206/models.rb', line 7461 def Info @Info end |
#Region ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
7461 7462 7463 |
# File 'lib/v20211206/models.rb', line 7461 def Region @Region end |
Instance Method Details
#deserialize(params) ⇒ Object
7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 |
# File 'lib/v20211206/models.rb', line 7470 def deserialize(params) @Region = params['Region'] @AccessType = params['AccessType'] @DatabaseType = params['DatabaseType'] unless params['Info'].nil? @Info = [] params['Info'].each do |i| endpoint_tmp = Endpoint.new endpoint_tmp.deserialize(i) @Info << endpoint_tmp end end end |