Class: TencentCloud::Cdb::V20170320::CreateCloneInstanceRequest

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

Overview

CreateCloneInstance请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, specifiedrollbacktime = nil, specifiedbackupid = nil, uniqvpcid = nil, uniqsubnetid = nil, memory = nil, volume = nil, instancename = nil, securitygroup = nil, resourcetags = nil, cpu = nil, protectmode = nil, deploymode = nil, slavezone = nil, backupzone = nil, devicetype = nil, instancenodes = nil, deploygroupid = nil, dryrun = nil, cageid = nil, projectid = nil, paytype = nil, period = nil, clustertopology = nil, srcregion = nil, specifiedsubbackupid = nil) ⇒ CreateCloneInstanceRequest



2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
# File 'lib/v20170320/models.rb', line 2890

def initialize(instanceid=nil, specifiedrollbacktime=nil, specifiedbackupid=nil, uniqvpcid=nil, uniqsubnetid=nil, memory=nil, volume=nil, instancename=nil, securitygroup=nil, resourcetags=nil, cpu=nil, protectmode=nil, deploymode=nil, slavezone=nil, backupzone=nil, devicetype=nil, instancenodes=nil, deploygroupid=nil, dryrun=nil, cageid=nil, projectid=nil, paytype=nil, period=nil, clustertopology=nil, srcregion=nil, specifiedsubbackupid=nil)
  @InstanceId = instanceid
  @SpecifiedRollbackTime = specifiedrollbacktime
  @SpecifiedBackupId = specifiedbackupid
  @UniqVpcId = uniqvpcid
  @UniqSubnetId = uniqsubnetid
  @Memory = memory
  @Volume = volume
  @InstanceName = instancename
  @SecurityGroup = securitygroup
  @ResourceTags = resourcetags
  @Cpu = cpu
  @ProtectMode = protectmode
  @DeployMode = deploymode
  @SlaveZone = slavezone
  @BackupZone = backupzone
  @DeviceType = devicetype
  @InstanceNodes = instancenodes
  @DeployGroupId = deploygroupid
  @DryRun = dryrun
  @CageId = cageid
  @ProjectId = projectid
  @PayType = paytype
  @Period = period
  @ClusterTopology = clustertopology
  @SrcRegion = srcregion
  @SpecifiedSubBackupId = specifiedsubbackupid
end

Instance Attribute Details

#BackupZoneObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def BackupZone
  @BackupZone
end

#CageIdObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def CageId
  @CageId
end

#ClusterTopologyObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def ClusterTopology
  @ClusterTopology
end

#CpuObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def Cpu
  @Cpu
end

#DeployGroupIdObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def DeployGroupId
  @DeployGroupId
end

#DeployModeObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def DeployMode
  @DeployMode
end

#DeviceTypeObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def DeviceType
  @DeviceType
end

#DryRunObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def DryRun
  @DryRun
end

#InstanceIdObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def InstanceId
  @InstanceId
end

#InstanceNameObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def InstanceName
  @InstanceName
end

#InstanceNodesObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def InstanceNodes
  @InstanceNodes
end

#MemoryObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def Memory
  @Memory
end

#PayTypeObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def PayType
  @PayType
end

#PeriodObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def Period
  @Period
end

#ProjectIdObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def ProjectId
  @ProjectId
end

#ProtectModeObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def ProtectMode
  @ProtectMode
end

#ResourceTagsObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def ResourceTags
  @ResourceTags
end

#SecurityGroupObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def SecurityGroup
  @SecurityGroup
end

#SlaveZoneObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def SlaveZone
  @SlaveZone
end

#SpecifiedBackupIdObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def SpecifiedBackupId
  @SpecifiedBackupId
end

#SpecifiedRollbackTimeObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def SpecifiedRollbackTime
  @SpecifiedRollbackTime
end

#SpecifiedSubBackupIdObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def SpecifiedSubBackupId
  @SpecifiedSubBackupId
end

#SrcRegionObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def SrcRegion
  @SrcRegion
end

#UniqSubnetIdObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def UniqSubnetId
  @UniqSubnetId
end

#UniqVpcIdObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def UniqVpcId
  @UniqVpcId
end

#VolumeObject

说明:此参数和 SpecifiedBackupId 参数需要2选1进行设置。说明:如果是克隆双节点、三节点实例,备份文件为物理备份,如果是克隆单节点、集群版实例,备份文件为快照备份。



2888
2889
2890
# File 'lib/v20170320/models.rb', line 2888

def Volume
  @Volume
end

Instance Method Details

#deserialize(params) ⇒ Object



2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
# File 'lib/v20170320/models.rb', line 2919

def deserialize(params)
  @InstanceId = params['InstanceId']
  @SpecifiedRollbackTime = params['SpecifiedRollbackTime']
  @SpecifiedBackupId = params['SpecifiedBackupId']
  @UniqVpcId = params['UniqVpcId']
  @UniqSubnetId = params['UniqSubnetId']
  @Memory = params['Memory']
  @Volume = params['Volume']
  @InstanceName = params['InstanceName']
  @SecurityGroup = params['SecurityGroup']
  unless params['ResourceTags'].nil?
    @ResourceTags = []
    params['ResourceTags'].each do |i|
      taginfo_tmp = TagInfo.new
      taginfo_tmp.deserialize(i)
      @ResourceTags << taginfo_tmp
    end
  end
  @Cpu = params['Cpu']
  @ProtectMode = params['ProtectMode']
  @DeployMode = params['DeployMode']
  @SlaveZone = params['SlaveZone']
  @BackupZone = params['BackupZone']
  @DeviceType = params['DeviceType']
  @InstanceNodes = params['InstanceNodes']
  @DeployGroupId = params['DeployGroupId']
  @DryRun = params['DryRun']
  @CageId = params['CageId']
  @ProjectId = params['ProjectId']
  @PayType = params['PayType']
  @Period = params['Period']
  unless params['ClusterTopology'].nil?
    @ClusterTopology = ClusterTopology.new
    @ClusterTopology.deserialize(params['ClusterTopology'])
  end
  @SrcRegion = params['SrcRegion']
  @SpecifiedSubBackupId = params['SpecifiedSubBackupId']
end