Class: Google::Apis::DlpV2::GooglePrivacyDlpV2PubSubExpressions

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) ⇒ GooglePrivacyDlpV2PubSubExpressions

Returns a new instance of GooglePrivacyDlpV2PubSubExpressions.



6873
6874
6875
# File 'lib/google/apis/dlp_v2/classes.rb', line 6873

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

Instance Attribute Details

#conditionsArray<Google::Apis::DlpV2::GooglePrivacyDlpV2PubSubCondition>

Conditions to apply to the expression. Corresponds to the JSON property conditions



6866
6867
6868
# File 'lib/google/apis/dlp_v2/classes.rb', line 6866

def conditions
  @conditions
end

#logical_operatorString

The operator to apply to the collection of conditions. Corresponds to the JSON property logicalOperator

Returns:

  • (String)


6871
6872
6873
# File 'lib/google/apis/dlp_v2/classes.rb', line 6871

def logical_operator
  @logical_operator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6878
6879
6880
6881
# File 'lib/google/apis/dlp_v2/classes.rb', line 6878

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