Class: TencentCloud::Antiddos::V20200309::BlackWhiteIpRelation
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Antiddos::V20200309::BlackWhiteIpRelation
- Defined in:
- lib/v20200309/models.rb
Overview
黑白名单IP
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(ip = nil, type = nil, instancedetaillist = nil, mask = nil, modifytime = nil) ⇒ BlackWhiteIpRelation
constructor
A new instance of BlackWhiteIpRelation.
Constructor Details
#initialize(ip = nil, type = nil, instancedetaillist = nil, mask = nil, modifytime = nil) ⇒ BlackWhiteIpRelation
Returns a new instance of BlackWhiteIpRelation.
831 832 833 834 835 836 837 |
# File 'lib/v20200309/models.rb', line 831 def initialize(ip=nil, type=nil, instancedetaillist=nil, mask=nil, modifytime=nil) @Ip = ip @Type = type @InstanceDetailList = instancedetaillist @Mask = mask @ModifyTime = modifytime end |
Instance Attribute Details
#InstanceDetailList ⇒ Object
829 830 831 |
# File 'lib/v20200309/models.rb', line 829 def InstanceDetailList @InstanceDetailList end |
#Ip ⇒ Object
829 830 831 |
# File 'lib/v20200309/models.rb', line 829 def Ip @Ip end |
#Mask ⇒ Object
829 830 831 |
# File 'lib/v20200309/models.rb', line 829 def Mask @Mask end |
#ModifyTime ⇒ Object
829 830 831 |
# File 'lib/v20200309/models.rb', line 829 def ModifyTime @ModifyTime end |
#Type ⇒ Object
829 830 831 |
# File 'lib/v20200309/models.rb', line 829 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
839 840 841 842 843 844 845 846 847 848 849 850 851 852 |
# File 'lib/v20200309/models.rb', line 839 def deserialize(params) @Ip = params['Ip'] @Type = params['Type'] unless params['InstanceDetailList'].nil? @InstanceDetailList = [] params['InstanceDetailList'].each do |i| instancerelation_tmp = InstanceRelation.new instancerelation_tmp.deserialize(i) @InstanceDetailList << instancerelation_tmp end end @Mask = params['Mask'] @ModifyTime = params['ModifyTime'] end |