Class: TencentCloud::Cdb::V20170320::CheckMigrateClusterRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdb::V20170320::CheckMigrateClusterRequest
- Defined in:
- lib/v20170320/models.rb
Overview
CheckMigrateCluster请求参数结构体
Instance Attribute Summary collapse
- #ClusterTopology ⇒ Object
- #Cpu ⇒ Object
- #DeviceType ⇒ Object
- #DiskType ⇒ Object
- #InstanceId ⇒ Object
- #Memory ⇒ Object
- #RoInfo ⇒ Object
- #Volume ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, cpu = nil, memory = nil, volume = nil, disktype = nil, clustertopology = nil, devicetype = nil, roinfo = nil) ⇒ CheckMigrateClusterRequest
constructor
A new instance of CheckMigrateClusterRequest.
Constructor Details
#initialize(instanceid = nil, cpu = nil, memory = nil, volume = nil, disktype = nil, clustertopology = nil, devicetype = nil, roinfo = nil) ⇒ CheckMigrateClusterRequest
Returns a new instance of CheckMigrateClusterRequest.
1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 |
# File 'lib/v20170320/models.rb', line 1792 def initialize(instanceid=nil, cpu=nil, memory=nil, volume=nil, disktype=nil, clustertopology=nil, devicetype=nil, roinfo=nil) @InstanceId = instanceid @Cpu = cpu @Memory = memory @Volume = volume @DiskType = disktype @ClusterTopology = clustertopology @DeviceType = devicetype @RoInfo = roinfo end |
Instance Attribute Details
#ClusterTopology ⇒ Object
1790 1791 1792 |
# File 'lib/v20170320/models.rb', line 1790 def ClusterTopology @ClusterTopology end |
#Cpu ⇒ Object
1790 1791 1792 |
# File 'lib/v20170320/models.rb', line 1790 def Cpu @Cpu end |
#DeviceType ⇒ Object
1790 1791 1792 |
# File 'lib/v20170320/models.rb', line 1790 def DeviceType @DeviceType end |
#DiskType ⇒ Object
1790 1791 1792 |
# File 'lib/v20170320/models.rb', line 1790 def DiskType @DiskType end |
#InstanceId ⇒ Object
1790 1791 1792 |
# File 'lib/v20170320/models.rb', line 1790 def InstanceId @InstanceId end |
#Memory ⇒ Object
1790 1791 1792 |
# File 'lib/v20170320/models.rb', line 1790 def Memory @Memory end |
#RoInfo ⇒ Object
1790 1791 1792 |
# File 'lib/v20170320/models.rb', line 1790 def RoInfo @RoInfo end |
#Volume ⇒ Object
1790 1791 1792 |
# File 'lib/v20170320/models.rb', line 1790 def Volume @Volume end |
Instance Method Details
#deserialize(params) ⇒ Object
1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 |
# File 'lib/v20170320/models.rb', line 1803 def deserialize(params) @InstanceId = params['InstanceId'] @Cpu = params['Cpu'] @Memory = params['Memory'] @Volume = params['Volume'] @DiskType = params['DiskType'] unless params['ClusterTopology'].nil? @ClusterTopology = ClusterTopology.new @ClusterTopology.deserialize(params['ClusterTopology']) end @DeviceType = params['DeviceType'] unless params['RoInfo'].nil? @RoInfo = [] params['RoInfo'].each do |i| migrateclusterroinfo_tmp = MigrateClusterRoInfo.new migrateclusterroinfo_tmp.deserialize(i) @RoInfo << migrateclusterroinfo_tmp end end end |