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.



11416
11417
11418
11419
# File 'lib/v20170320/models.rb', line 11416

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

Instance Attribute Details

#InstanceIdObject

Parameters:

  • ProtectMode:

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

  • InstanceId:

    实例ID。



11414
11415
11416
# File 'lib/v20170320/models.rb', line 11414

def InstanceId
  @InstanceId
end

#ProtectModeObject

Parameters:

  • ProtectMode:

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

  • InstanceId:

    实例ID。



11414
11415
11416
# File 'lib/v20170320/models.rb', line 11414

def ProtectMode
  @ProtectMode
end

Instance Method Details

#deserialize(params) ⇒ Object



11421
11422
11423
11424
# File 'lib/v20170320/models.rb', line 11421

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