Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2Proximity

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dlp_v2beta2/classes.rb,
generated/google/apis/dlp_v2beta2/representations.rb,
generated/google/apis/dlp_v2beta2/representations.rb

Overview

Message for specifying a window around a finding to apply a detection rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2beta2Proximity

Returns a new instance of GooglePrivacyDlpV2beta2Proximity



5020
5021
5022
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 5020

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#window_afterFixnum

Number of characters after the finding to consider. Corresponds to the JSON property windowAfter

Returns:

  • (Fixnum)


5013
5014
5015
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 5013

def window_after
  @window_after
end

#window_beforeFixnum

Number of characters before the finding to consider. Corresponds to the JSON property windowBefore

Returns:

  • (Fixnum)


5018
5019
5020
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 5018

def window_before
  @window_before
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5025
5026
5027
5028
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 5025

def update!(**args)
  @window_after = args[:window_after] if args.key?(:window_after)
  @window_before = args[:window_before] if args.key?(:window_before)
end