Class: Google::Cloud::Dlp::V2::RecordCondition

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/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

#expressions::Google::Cloud::Dlp::V2::RecordCondition::Expressions

Returns An expression.



2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2856

class RecordCondition
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The field type of `value` and `field` do not need to match to be
  # considered equal, but not all comparisons are possible.
  # EQUAL_TO and NOT_EQUAL_TO attempt to compare even with incompatible types,
  # but all other comparisons are invalid with incompatible types.
  # 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::Cloud::Dlp::V2::FieldId]
  #     Required. Field within the record this condition is evaluated against.
  # @!attribute [rw] operator
  #   @return [::Google::Cloud::Dlp::V2::RelationalOperator]
  #     Required. Operator used to compare the field or infoType to the value.
  # @!attribute [rw] value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Value to compare against. [Mandatory, except for `EXISTS` tests.]
  class Condition
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A collection of conditions.
  # @!attribute [rw] conditions
  #   @return [::Array<::Google::Cloud::Dlp::V2::RecordCondition::Condition>]
  #     A collection of conditions.
  class Conditions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An expression, consisting of an operator and conditions.
  # @!attribute [rw] logical_operator
  #   @return [::Google::Cloud::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::Cloud::Dlp::V2::RecordCondition::Conditions]
  #     Conditions to apply to the expression.
  class Expressions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Logical operators for conditional checks.
    module LogicalOperator
      # Unused
      LOGICAL_OPERATOR_UNSPECIFIED = 0

      # Conditional AND
      AND = 1
    end
  end
end