Class: Google::Apis::DlpV2::GooglePrivacyDlpV2PubSubCondition

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

A condition consisting of a value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2PubSubCondition

Returns a new instance of GooglePrivacyDlpV2PubSubCondition.



7528
7529
7530
# File 'lib/google/apis/dlp_v2/classes.rb', line 7528

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

Instance Attribute Details

#minimum_risk_scoreString

The minimum data risk score that triggers the condition. Corresponds to the JSON property minimumRiskScore

Returns:

  • (String)


7521
7522
7523
# File 'lib/google/apis/dlp_v2/classes.rb', line 7521

def minimum_risk_score
  @minimum_risk_score
end

#minimum_sensitivity_scoreString

The minimum sensitivity level that triggers the condition. Corresponds to the JSON property minimumSensitivityScore

Returns:

  • (String)


7526
7527
7528
# File 'lib/google/apis/dlp_v2/classes.rb', line 7526

def minimum_sensitivity_score
  @minimum_sensitivity_score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7533
7534
7535
7536
# File 'lib/google/apis/dlp_v2/classes.rb', line 7533

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