Class: TencentCloud::Cdb::V20170320::CdbZoneSellConf

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

Overview

可用区售卖配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status = nil, zonename = nil, iscustom = nil, issupportdr = nil, issupportvpc = nil, hourinstancesalemaxnum = nil, isdefaultzone = nil, isbm = nil, paytype = nil, protectmode = nil, zone = nil, zoneconf = nil, drzone = nil, issupportremotero = nil, remoterozone = nil, exclusterstatus = nil, exclusterremoterozone = nil, exclusterzoneconf = nil, selltype = nil, zoneid = nil, issupportipv6 = nil, enginetype = nil) ⇒ CdbZoneSellConf



1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
# File 'lib/v20170320/models.rb', line 1679

def initialize(status=nil, zonename=nil, iscustom=nil, issupportdr=nil, issupportvpc=nil, hourinstancesalemaxnum=nil, isdefaultzone=nil, isbm=nil, paytype=nil, protectmode=nil, zone=nil, zoneconf=nil, drzone=nil, issupportremotero=nil, remoterozone=nil, exclusterstatus=nil, exclusterremoterozone=nil, exclusterzoneconf=nil, selltype=nil, zoneid=nil, issupportipv6=nil, enginetype=nil)
  @Status = status
  @ZoneName = zonename
  @IsCustom = iscustom
  @IsSupportDr = issupportdr
  @IsSupportVpc = issupportvpc
  @HourInstanceSaleMaxNum = hourinstancesalemaxnum
  @IsDefaultZone = isdefaultzone
  @IsBm = isbm
  @PayType = paytype
  @ProtectMode = protectmode
  @Zone = zone
  @ZoneConf = zoneconf
  @DrZone = drzone
  @IsSupportRemoteRo = issupportremotero
  @RemoteRoZone = remoterozone
  @ExClusterStatus = exclusterstatus
  @ExClusterRemoteRoZone = exclusterremoterozone
  @ExClusterZoneConf = exclusterzoneconf
  @SellType = selltype
  @ZoneId = zoneid
  @IsSupportIpv6 = issupportipv6
  @EngineType = enginetype
end

Instance Attribute Details

#DrZoneObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def DrZone
  @DrZone
end

#EngineTypeObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def EngineType
  @EngineType
end

#ExClusterRemoteRoZoneObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def ExClusterRemoteRoZone
  @ExClusterRemoteRoZone
end

#ExClusterStatusObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def ExClusterStatus
  @ExClusterStatus
end

#ExClusterZoneConfObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def ExClusterZoneConf
  @ExClusterZoneConf
end

#HourInstanceSaleMaxNumObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def HourInstanceSaleMaxNum
  @HourInstanceSaleMaxNum
end

#IsBmObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def IsBm
  @IsBm
end

#IsCustomObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def IsCustom
  @IsCustom
end

#IsDefaultZoneObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def IsDefaultZone
  @IsDefaultZone
end

#IsSupportDrObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def IsSupportDr
  @IsSupportDr
end

#IsSupportIpv6Object



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def IsSupportIpv6
  @IsSupportIpv6
end

#IsSupportRemoteRoObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def IsSupportRemoteRo
  @IsSupportRemoteRo
end

#IsSupportVpcObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def IsSupportVpc
  @IsSupportVpc
end

#PayTypeObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def PayType
  @PayType
end

#ProtectModeObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def ProtectMode
  @ProtectMode
end

#RemoteRoZoneObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def RemoteRoZone
  @RemoteRoZone
end

#SellTypeObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def SellType
  @SellType
end

#StatusObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def Status
  @Status
end

#ZoneObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def Zone
  @Zone
end

#ZoneConfObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def ZoneConf
  @ZoneConf
end

#ZoneIdObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def ZoneId
  @ZoneId
end

#ZoneNameObject



1677
1678
1679
# File 'lib/v20170320/models.rb', line 1677

def ZoneName
  @ZoneName
end

Instance Method Details

#deserialize(params) ⇒ Object



1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
# File 'lib/v20170320/models.rb', line 1704

def deserialize(params)
  @Status = params['Status']
  @ZoneName = params['ZoneName']
  @IsCustom = params['IsCustom']
  @IsSupportDr = params['IsSupportDr']
  @IsSupportVpc = params['IsSupportVpc']
  @HourInstanceSaleMaxNum = params['HourInstanceSaleMaxNum']
  @IsDefaultZone = params['IsDefaultZone']
  @IsBm = params['IsBm']
  @PayType = params['PayType']
  @ProtectMode = params['ProtectMode']
  @Zone = params['Zone']
  unless params['ZoneConf'].nil?
    @ZoneConf = ZoneConf.new
    @ZoneConf.deserialize(params['ZoneConf'])
  end
  @DrZone = params['DrZone']
  @IsSupportRemoteRo = params['IsSupportRemoteRo']
  @RemoteRoZone = params['RemoteRoZone']
  @ExClusterStatus = params['ExClusterStatus']
  @ExClusterRemoteRoZone = params['ExClusterRemoteRoZone']
  unless params['ExClusterZoneConf'].nil?
    @ExClusterZoneConf = ZoneConf.new
    @ExClusterZoneConf.deserialize(params['ExClusterZoneConf'])
  end
  unless params['SellType'].nil?
    @SellType = []
    params['SellType'].each do |i|
      cdbselltype_tmp = CdbSellType.new
      cdbselltype_tmp.deserialize(i)
      @SellType << cdbselltype_tmp
    end
  end
  @ZoneId = params['ZoneId']
  @IsSupportIpv6 = params['IsSupportIpv6']
  @EngineType = params['EngineType']
end