Cloud Data Loss Prevention (DLP) V2 API - Class Google::Cloud::Dlp::V2::RedactImageRequest::ImageRedactionConfig (v1.0.0)

Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::RedactImageRequest::ImageRedactionConfig.

Configuration for determining how redaction of images should occur.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#info_type

def info_type() -> ::Google::Cloud::Dlp::V2::InfoType
Returns
  • (::Google::Cloud::Dlp::V2::InfoType) — Only one per info_type should be provided per request. If not specified, and redact_all_text is false, the DLP API will redact all text that it matches against all info_types that are found, but not specified in another ImageRedactionConfig.

#info_type=

def info_type=(value) -> ::Google::Cloud::Dlp::V2::InfoType
Parameter
  • value (::Google::Cloud::Dlp::V2::InfoType) — Only one per info_type should be provided per request. If not specified, and redact_all_text is false, the DLP API will redact all text that it matches against all info_types that are found, but not specified in another ImageRedactionConfig.
Returns
  • (::Google::Cloud::Dlp::V2::InfoType) — Only one per info_type should be provided per request. If not specified, and redact_all_text is false, the DLP API will redact all text that it matches against all info_types that are found, but not specified in another ImageRedactionConfig.

#redact_all_text

def redact_all_text() -> ::Boolean
Returns
  • (::Boolean) — If true, all text found in the image, regardless whether it matches an info_type, is redacted. Only one should be provided.

#redact_all_text=

def redact_all_text=(value) -> ::Boolean
Parameter
  • value (::Boolean) — If true, all text found in the image, regardless whether it matches an info_type, is redacted. Only one should be provided.
Returns
  • (::Boolean) — If true, all text found in the image, regardless whether it matches an info_type, is redacted. Only one should be provided.

#redaction_color

def redaction_color() -> ::Google::Cloud::Dlp::V2::Color
Returns

#redaction_color=

def redaction_color=(value) -> ::Google::Cloud::Dlp::V2::Color
Parameter
Returns