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

Version Path
contrast-agent-7.6.1 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-7.6.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-7.5.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-7.4.1 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-7.4.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-7.3.2 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-7.3.1 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-7.3.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-7.2.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-7.1.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-7.0.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.15.3 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.15.2 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.15.1 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.15.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.14.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.13.0 lib/contrast/agent/reporting/settings/ip_filter.rb
contrast-agent-6.12.0 lib/contrast/agent/reporting/settings/ip_filter.rb