Class: Google::Privacy::Dlp::V2::RecordCondition::Condition

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb

Overview

The field type of +value+ and +field+ do not need to match to be considered equal, but not all comparisons are possible.

A +value+ of type:

  • +string+ can be compared against all other types
  • +boolean+ can only be compared against other booleans
  • +integer+ can be compared against doubles or a string if the string value can be parsed as an integer.
  • +double+ can be compared against integers or a string if the string can be parsed as a double.
  • +Timestamp+ can be compared against strings in RFC 3339 date string format.
  • +TimeOfDay+ can be compared against timestamps and strings in the format of 'HH:mm:ss'.

If we fail to compare do to type mismatch, a warning will be given and the condition will evaluate to false.

Instance Attribute Summary collapse

Instance Attribute Details

#fieldGoogle::Privacy::Dlp::V2::FieldId

Returns Field within the record this condition is evaluated against. [required]

Returns:



1406
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 1406

class Condition; end

#operatorGoogle::Privacy::Dlp::V2::RelationalOperator

Returns Operator used to compare the field or infoType to the value. [required]

Returns:



1406
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 1406

class Condition; end

#valueGoogle::Privacy::Dlp::V2::Value

Returns Value to compare against. [Required, except for +EXISTS+ tests.]

Returns:



1406
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 1406

class Condition; end