Class: TencentCloud::Trocket::V20230308::IpRule

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

Overview

IP规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ip = nil, allow = nil, remark = nil) ⇒ IpRule

Returns a new instance of IpRule.



4366
4367
4368
4369
4370
# File 'lib/v20230308/models.rb', line 4366

def initialize(ip=nil, allow=nil, remark=nil)
  @Ip = ip
  @Allow = allow
  @Remark = remark
end

Instance Attribute Details

#AllowObject

Parameters:

  • Ip:

    IP地址

  • Allow:

    是否允许放行,默认为false表示拒绝

  • Remark:

    备注信息



4364
4365
4366
# File 'lib/v20230308/models.rb', line 4364

def Allow
  @Allow
end

#IpObject

Parameters:

  • Ip:

    IP地址

  • Allow:

    是否允许放行,默认为false表示拒绝

  • Remark:

    备注信息



4364
4365
4366
# File 'lib/v20230308/models.rb', line 4364

def Ip
  @Ip
end

#RemarkObject

Parameters:

  • Ip:

    IP地址

  • Allow:

    是否允许放行,默认为false表示拒绝

  • Remark:

    备注信息



4364
4365
4366
# File 'lib/v20230308/models.rb', line 4364

def Remark
  @Remark
end

Instance Method Details

#deserialize(params) ⇒ Object



4372
4373
4374
4375
4376
# File 'lib/v20230308/models.rb', line 4372

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