Class: Google::Apis::DlpV2::GooglePrivacyDlpV2Expressions

Inherits:
Object
  • Object
show all
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

An expression, consisting of an operator and conditions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2Expressions

Returns a new instance of GooglePrivacyDlpV2Expressions.



4515
4516
4517
# File 'lib/google/apis/dlp_v2/classes.rb', line 4515

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#conditionsGoogle::Apis::DlpV2::GooglePrivacyDlpV2Conditions

A collection of conditions. Corresponds to the JSON property conditions



4507
4508
4509
# File 'lib/google/apis/dlp_v2/classes.rb', line 4507

def conditions
  @conditions
end

#logical_operatorString

The operator to apply to the result of conditions. Default and currently only supported value is AND. Corresponds to the JSON property logicalOperator

Returns:

  • (String)


4513
4514
4515
# File 'lib/google/apis/dlp_v2/classes.rb', line 4513

def logical_operator
  @logical_operator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4520
4521
4522
4523
# File 'lib/google/apis/dlp_v2/classes.rb', line 4520

def update!(**args)
  @conditions = args[:conditions] if args.key?(:conditions)
  @logical_operator = args[:logical_operator] if args.key?(:logical_operator)
end