Class: TencentCloud::Cdb::V20170320::SwitchForUpgradeRequest

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

Overview

SwitchForUpgrade请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, isrelatedswitch = nil) ⇒ SwitchForUpgradeRequest

Returns a new instance of SwitchForUpgradeRequest.



14388
14389
14390
14391
# File 'lib/v20170320/models.rb', line 14388

def initialize(instanceid=nil, isrelatedswitch=nil)
  @InstanceId = instanceid
  @IsRelatedSwitch = isrelatedswitch
end

Instance Attribute Details

#InstanceIdObject

Parameters:

  • InstanceId:

    实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。

  • IsRelatedSwitch:

    是否开启关联切换,true为开启,false为关闭,默认false



14386
14387
14388
# File 'lib/v20170320/models.rb', line 14386

def InstanceId
  @InstanceId
end

#IsRelatedSwitchObject

Parameters:

  • InstanceId:

    实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。

  • IsRelatedSwitch:

    是否开启关联切换,true为开启,false为关闭,默认false



14386
14387
14388
# File 'lib/v20170320/models.rb', line 14386

def IsRelatedSwitch
  @IsRelatedSwitch
end

Instance Method Details

#deserialize(params) ⇒ Object



14393
14394
14395
14396
# File 'lib/v20170320/models.rb', line 14393

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