Class: TencentCloud::Tdmq::V20200217::PublicAccessRule

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

Overview

公网访问安全规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(iprule = nil, allow = nil, remark = nil) ⇒ PublicAccessRule

Returns a new instance of PublicAccessRule.



9778
9779
9780
9781
9782
# File 'lib/v20200217/models.rb', line 9778

def initialize(iprule=nil, allow=nil, remark=nil)
  @IpRule = iprule
  @Allow = allow
  @Remark = remark
end

Instance Attribute Details

#AllowObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • IpRule:

    ip网段信息

  • Allow:

    允许或者拒绝

  • Remark:

    备注信息



9776
9777
9778
# File 'lib/v20200217/models.rb', line 9776

def Allow
  @Allow
end

#IpRuleObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • IpRule:

    ip网段信息

  • Allow:

    允许或者拒绝

  • Remark:

    备注信息



9776
9777
9778
# File 'lib/v20200217/models.rb', line 9776

def IpRule
  @IpRule
end

#RemarkObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • IpRule:

    ip网段信息

  • Allow:

    允许或者拒绝

  • Remark:

    备注信息



9776
9777
9778
# File 'lib/v20200217/models.rb', line 9776

def Remark
  @Remark
end

Instance Method Details

#deserialize(params) ⇒ Object



9784
9785
9786
9787
9788
# File 'lib/v20200217/models.rb', line 9784

def deserialize(params)
  @IpRule = params['IpRule']
  @Allow = params['Allow']
  @Remark = params['Remark']
end