Class: Google::Apis::DlpV2::GooglePrivacyDlpV2Condition
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DlpV2::GooglePrivacyDlpV2Condition
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/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. 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.
Instance Attribute Summary collapse
- 
  
    
      #field  ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
General identifier of a data field in a storage service.
 - 
  
    
      #operator  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 - 
  
    
      #value  ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2Value 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Set of primitive values supported by the system.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GooglePrivacyDlpV2Condition 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GooglePrivacyDlpV2Condition.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2Condition
Returns a new instance of GooglePrivacyDlpV2Condition.
      1525 1526 1527  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 1525 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#field ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId
General identifier of a data field in a storage service.
Corresponds to the JSON property field
      1509 1510 1511  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 1509 def field @field end  | 
  
#operator ⇒ String
Required. Operator used to compare the field or infoType to the value.
Corresponds to the JSON property operator
      1514 1515 1516  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 1514 def operator @operator end  | 
  
#value ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2Value
Set of primitive values supported by the system. Note that for the purposes of
inspection or transformation, the number of bytes considered to comprise a '
Value' is based on its representation as a UTF-8 encoded string. For example,
if 'integer_value' is set to 123456789, the number of bytes would be counted
as 9, even though an int64 only holds up to 8 bytes of data.
Corresponds to the JSON property value
      1523 1524 1525  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 1523 def value @value end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      1530 1531 1532 1533 1534  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 1530 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  |