Class: Google::Privacy::Dlp::V2beta1::RecordCondition
- Inherits:
-
Object
- Object
- Google::Privacy::Dlp::V2beta1::RecordCondition
- Defined in:
- lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/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::Privacy::Dlp::V2beta1::RecordCondition::Expressions
1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 |
# File 'lib/google/cloud/dlp/v2beta1/doc/google/privacy/dlp/v2beta1/dlp.rb', line 1092 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::V2beta1::FieldId] # Field within the record this condition is evaluated against. [required] # @!attribute [rw] operator # @return [Google::Privacy::Dlp::V2beta1::RelationalOperator] # Operator used to compare the field or info type to the value. [required] # @!attribute [rw] value # @return [Google::Privacy::Dlp::V2beta1::Value] # Value to compare against. [Required, except for +EXISTS+ tests.] class Condition; end # @!attribute [rw] conditions # @return [Array<Google::Privacy::Dlp::V2beta1::RecordCondition::Condition>] class Conditions; end # A collection of expressions # @!attribute [rw] logical_operator # @return [Google::Privacy::Dlp::V2beta1::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::V2beta1::RecordCondition::Conditions] class Expressions module LogicalOperator LOGICAL_OPERATOR_UNSPECIFIED = 0 AND = 1 end end end |