Class: Google::Apis::DlpV2::GooglePrivacyDlpV2ImageRedactionConfig
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2ImageRedactionConfig
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2/classes.rb,
 generated/google/apis/dlp_v2/representations.rb,
 generated/google/apis/dlp_v2/representations.rb
Overview
Configuration for determining how redaction of images should occur.
Instance Attribute Summary collapse
- 
  
    
      #info_type  ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Type of information detected by the API. 
- 
  
    
      #redact_all_text  ⇒ Boolean 
    
    
      (also: #redact_all_text?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    If true, all text found in the image, regardless whether it matches an info_type, is redacted. 
- 
  
    
      #redaction_color  ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2Color 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Represents a color in the RGB color space. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GooglePrivacyDlpV2ImageRedactionConfig 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of GooglePrivacyDlpV2ImageRedactionConfig. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2ImageRedactionConfig
Returns a new instance of GooglePrivacyDlpV2ImageRedactionConfig
| 2028 2029 2030 | # File 'generated/google/apis/dlp_v2/classes.rb', line 2028 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#info_type ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType
Type of information detected by the API.
Corresponds to the JSON property infoType
| 2014 2015 2016 | # File 'generated/google/apis/dlp_v2/classes.rb', line 2014 def info_type @info_type end | 
#redact_all_text ⇒ Boolean Also known as: redact_all_text?
If true, all text found in the image, regardless whether it matches an
info_type, is redacted.
Corresponds to the JSON property redactAllText
| 2020 2021 2022 | # File 'generated/google/apis/dlp_v2/classes.rb', line 2020 def redact_all_text @redact_all_text end | 
#redaction_color ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2Color
Represents a color in the RGB color space.
Corresponds to the JSON property redactionColor
| 2026 2027 2028 | # File 'generated/google/apis/dlp_v2/classes.rb', line 2026 def redaction_color @redaction_color end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2033 2034 2035 2036 2037 | # File 'generated/google/apis/dlp_v2/classes.rb', line 2033 def update!(**args) @info_type = args[:info_type] if args.key?(:info_type) @redact_all_text = args[:redact_all_text] if args.key?(:redact_all_text) @redaction_color = args[:redaction_color] if args.key?(:redaction_color) end |