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

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

Overview

A condition for determining whether a transformation should be applied to a field.

Defined Under Namespace

Classes: Condition, Conditions, Expressions

Instance Attribute Summary collapse

Instance Attribute Details

#expressionsGoogle::Privacy::Dlp::V2::RecordCondition::Expressions

Returns An expression.



1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 1611

class RecordCondition
  # 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.
  # @!attribute [rw] field
  #   @return [Google::Privacy::Dlp::V2::FieldId]
  #     Field within the record this condition is evaluated against. [required]
  # @!attribute [rw] operator
  #   @return [Google::Privacy::Dlp::V2::RelationalOperator]
  #     Operator used to compare the field or infoType to the value. [required]
  # @!attribute [rw] value
  #   @return [Google::Privacy::Dlp::V2::Value]
  #     Value to compare against. [Required, except for `EXISTS` tests.]
  class Condition; end

  # A collection of conditions.
  # @!attribute [rw] conditions
  #   @return [Array<Google::Privacy::Dlp::V2::RecordCondition::Condition>]
  class Conditions; end

  # An expression, consisting or an operator and conditions.
  # @!attribute [rw] logical_operator
  #   @return [Google::Privacy::Dlp::V2::RecordCondition::Expressions::LogicalOperator]
  #     The operator to apply to the result of conditions. Default and currently
  #     only supported value is `AND`.
  # @!attribute [rw] conditions
  #   @return [Google::Privacy::Dlp::V2::RecordCondition::Conditions]
  class Expressions
    module LogicalOperator
      LOGICAL_OPERATOR_UNSPECIFIED = 0

      AND = 1
    end
  end
end