Class: TencentCloud::Trocket::V20230308::PublicAccessRule

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20230308/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.



5628
5629
5630
5631
5632
# File 'lib/v20230308/models.rb', line 5628

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

Instance Attribute Details

#AllowObject

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

Parameters:

  • IpRule:

    ip网段信息

  • Allow:

    允许或者拒绝

  • Remark:

    备注信息



5626
5627
5628
# File 'lib/v20230308/models.rb', line 5626

def Allow
  @Allow
end

#IpRuleObject

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

Parameters:

  • IpRule:

    ip网段信息

  • Allow:

    允许或者拒绝

  • Remark:

    备注信息



5626
5627
5628
# File 'lib/v20230308/models.rb', line 5626

def IpRule
  @IpRule
end

#RemarkObject

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

Parameters:

  • IpRule:

    ip网段信息

  • Allow:

    允许或者拒绝

  • Remark:

    备注信息



5626
5627
5628
# File 'lib/v20230308/models.rb', line 5626

def Remark
  @Remark
end

Instance Method Details

#deserialize(params) ⇒ Object



5634
5635
5636
5637
5638
# File 'lib/v20230308/models.rb', line 5634

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