Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Condition
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Condition
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta1/classes.rb,
generated/google/apis/dlp_v2beta1/representations.rb,
generated/google/apis/dlp_v2beta1/representations.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 typesboolean
can only be compared against other booleansinteger
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
-
#field ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId
General identifier of a data field in a storage service.
-
#operator ⇒ String
Operator used to compare the field or info type to the value.
-
#value ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value
Set of primitive values supported by the system.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1Condition
constructor
A new instance of GooglePrivacyDlpV2beta1Condition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1Condition
Returns a new instance of GooglePrivacyDlpV2beta1Condition
612 613 614 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 612 def initialize(**args) update!(**args) end |
Instance Attribute Details
#field ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId
General identifier of a data field in a storage service.
Corresponds to the JSON property field
600 601 602 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 600 def field @field end |
#operator ⇒ String
Operator used to compare the field or info type to the value. [required]
Corresponds to the JSON property operator
605 606 607 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 605 def operator @operator end |
#value ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value
Set of primitive values supported by the system.
Corresponds to the JSON property value
610 611 612 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 610 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
617 618 619 620 621 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 617 def update!(**args) @field = args[:field] if args.key?(:field) @operator = args[:operator] if args.key?(:operator) @value = args[:value] if args.key?(:value) end |