Sha256: df999609d254172ff60e105f9b355d8eaf9c46cddf76bcf8a3cab60460ab8b78

Contents?: true

Size: 1.18 KB

Versions: 16

Compression:

Stored size: 1.18 KB

Contents

# Copyright (c) 2022 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

16 entries across 16 versions & 1 rubygems

Version Path
contrast-agent-6.11.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.10.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.9.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.8.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.7.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.6.5 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.6.4 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.6.3 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.6.2 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.6.1 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.6.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.5.1 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.5.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.4.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.3.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.2.0 lib/contrast/agent/reporting/settings/ip_filter.rb