Class: Google::Apis::DlpV2::GooglePrivacyDlpV2ImageTransformation

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

Configuration for determining how redaction of images should occur.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2ImageTransformation

Returns a new instance of GooglePrivacyDlpV2ImageTransformation.



5231
5232
5233
# File 'lib/google/apis/dlp_v2/classes.rb', line 5231

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

Instance Attribute Details

#all_info_typesGoogle::Apis::DlpV2::GooglePrivacyDlpV2AllInfoTypes

Apply transformation to all findings. Corresponds to the JSON property allInfoTypes



5214
5215
5216
# File 'lib/google/apis/dlp_v2/classes.rb', line 5214

def all_info_types
  @all_info_types
end

#all_textGoogle::Apis::DlpV2::GooglePrivacyDlpV2AllText

Apply to all text. Corresponds to the JSON property allText



5219
5220
5221
# File 'lib/google/apis/dlp_v2/classes.rb', line 5219

def all_text
  @all_text
end

#redaction_colorGoogle::Apis::DlpV2::GooglePrivacyDlpV2Color

Represents a color in the RGB color space. Corresponds to the JSON property redactionColor



5224
5225
5226
# File 'lib/google/apis/dlp_v2/classes.rb', line 5224

def redaction_color
  @redaction_color
end

#selected_info_typesGoogle::Apis::DlpV2::GooglePrivacyDlpV2SelectedInfoTypes

Apply transformation to the selected info_types. Corresponds to the JSON property selectedInfoTypes



5229
5230
5231
# File 'lib/google/apis/dlp_v2/classes.rb', line 5229

def selected_info_types
  @selected_info_types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5236
5237
5238
5239
5240
5241
# File 'lib/google/apis/dlp_v2/classes.rb', line 5236

def update!(**args)
  @all_info_types = args[:all_info_types] if args.key?(:all_info_types)
  @all_text = args[:all_text] if args.key?(:all_text)
  @redaction_color = args[:redaction_color] if args.key?(:redaction_color)
  @selected_info_types = args[:selected_info_types] if args.key?(:selected_info_types)
end