Class: TencentCloud::Cdb::V20170320::ModifyProtectModeRequest

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

Overview

ModifyProtectMode请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(protectmode = nil, instanceid = nil) ⇒ ModifyProtectModeRequest

Returns a new instance of ModifyProtectModeRequest.



11487
11488
11489
11490
# File 'lib/v20170320/models.rb', line 11487

def initialize(protectmode=nil, instanceid=nil)
  @ProtectMode = protectmode
  @InstanceId = instanceid
end

Instance Attribute Details

#InstanceIdObject

Parameters:

  • ProtectMode:

    数据复制方式,默认为 0,支持值包括:0 - 表示异步复制,1 - 表示半同步复制,2 - 表示强同步复制。

  • InstanceId:

    实例ID。



11485
11486
11487
# File 'lib/v20170320/models.rb', line 11485

def InstanceId
  @InstanceId
end

#ProtectModeObject

Parameters:

  • ProtectMode:

    数据复制方式,默认为 0,支持值包括:0 - 表示异步复制,1 - 表示半同步复制,2 - 表示强同步复制。

  • InstanceId:

    实例ID。



11485
11486
11487
# File 'lib/v20170320/models.rb', line 11485

def ProtectMode
  @ProtectMode
end

Instance Method Details

#deserialize(params) ⇒ Object



11492
11493
11494
11495
# File 'lib/v20170320/models.rb', line 11492

def deserialize(params)
  @ProtectMode = params['ProtectMode']
  @InstanceId = params['InstanceId']
end