Sha256: 6cdbf0d0c85ad4a06a907faf2d9baad096e59085a301fafe02d167ba965690c4
Contents?: true
Size: 1.18 KB
Versions: 18
Compression:
Stored size: 1.18 KB
Contents
# Copyright (c) 2023 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true module Contrast module Agent module Reporting module Settings # The IP addresses for which to disable protection. class IpFilter ATTRIBUTES = %i[expires ip name uuid].cs__freeze # The value in milliseconds since epoch for expiration. Value of '0' means no expiration. # # @return expires [Integer] The time after which the filter is no longer valid. attr_accessor :expires # @return ip [String] The IP or range of IPs to which this message pertains. attr_accessor :ip # @return name [String] The user defined name of the filter. attr_accessor :name # @return uuid [String] The identifier of the filter as defined by TeamServer. attr_accessor :uuid def to_controlled_hash { expires: expires, ip: ip, name: name, # rubocop:disable Security/Module/Name uuid: uuid } end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems