google_api_dlp v0.9.0 GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2Condition View Source

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.

Attributes

  • field (GooglePrivacyDlpV2FieldId): Field within the record this condition is evaluated against. [required] Defaults to: null.
  • operator (String.t): Operator used to compare the field or infoType to the value. [required] Defaults to: null.

    • Enum - one of [RELATIONAL_OPERATOR_UNSPECIFIED, EQUAL_TO, NOT_EQUAL_TO, GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUALS, LESS_THAN_OR_EQUALS, EXISTS]
  • value (GooglePrivacyDlpV2Value): Value to compare against. [Required, except for `EXISTS` tests.] Defaults to: null.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t() View Source
t() :: %GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2Condition{
  field: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2FieldId.t(),
  operator: any(),
  value: GoogleApi.DLP.V2.Model.GooglePrivacyDlpV2Value.t()
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.