Cloud Data Loss Prevention (DLP) V2 API - Class Google::Cloud::Dlp::V2::Finding (v1.15.1)

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

Represents a piece of potentially sensitive content.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#create_time

defcreate_time()->::Google::Protobuf::Timestamp
Returns

#create_time=

defcreate_time=(value)->::Google::Protobuf::Timestamp
Parameter
Returns

#finding_id

deffinding_id()->::String
Returns
  • (::String) — The unique finding id.

#finding_id=

deffinding_id=(value)->::String
Parameter
  • value (::String) — The unique finding id.
Returns
  • (::String) — The unique finding id.

#info_type

definfo_type()->::Google::Cloud::Dlp::V2::InfoType
Returns

#info_type=

definfo_type=(value)->::Google::Cloud::Dlp::V2::InfoType
Parameter
Returns

#job_create_time

defjob_create_time()->::Google::Protobuf::Timestamp
Returns

#job_create_time=

defjob_create_time=(value)->::Google::Protobuf::Timestamp
Parameter
Returns

#job_name

defjob_name()->::String
Returns
  • (::String) — The job that stored the finding.

#job_name=

defjob_name=(value)->::String
Parameter
  • value (::String) — The job that stored the finding.
Returns
  • (::String) — The job that stored the finding.

#labels

deflabels()->::Google::Protobuf::Map{::String=>::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) —

    The labels associated with this Finding.

    Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])?.

    Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?.

    No more than 10 labels can be associated with a given finding.

    Examples:

    • "environment" : "production"
    • "pipeline" : "etl"

#labels=

deflabels=(value)->::Google::Protobuf::Map{::String=>::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) —

    The labels associated with this Finding.

    Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])?.

    Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?.

    No more than 10 labels can be associated with a given finding.

    Examples:

    • "environment" : "production"
    • "pipeline" : "etl"
Returns
  • (::Google::Protobuf::Map{::String => ::String}) —

    The labels associated with this Finding.

    Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])?.

    Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?.

    No more than 10 labels can be associated with a given finding.

    Examples:

    • "environment" : "production"
    • "pipeline" : "etl"

#likelihood

deflikelihood()->::Google::Cloud::Dlp::V2::Likelihood
Returns

#likelihood=

deflikelihood=(value)->::Google::Cloud::Dlp::V2::Likelihood
Parameter
Returns

#location

deflocation()->::Google::Cloud::Dlp::V2::Location
Returns

#location=

deflocation=(value)->::Google::Cloud::Dlp::V2::Location
Parameter
Returns

#name

defname()->::String
Returns
  • (::String) — Resource name in format projects/{project}/locations/{location}/findings/{finding} Populated only when viewing persisted findings.

#name=

defname=(value)->::String
Parameter
  • value (::String) — Resource name in format projects/{project}/locations/{location}/findings/{finding} Populated only when viewing persisted findings.
Returns
  • (::String) — Resource name in format projects/{project}/locations/{location}/findings/{finding} Populated only when viewing persisted findings.

#quote

defquote()->::String
Returns
  • (::String) — The content that was found. Even if the content is not textual, it may be converted to a textual representation here. Provided if include_quote is true and the finding is less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes in length, the quote may be omitted.

#quote=

defquote=(value)->::String
Parameter
  • value (::String) — The content that was found. Even if the content is not textual, it may be converted to a textual representation here. Provided if include_quote is true and the finding is less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes in length, the quote may be omitted.
Returns
  • (::String) — The content that was found. Even if the content is not textual, it may be converted to a textual representation here. Provided if include_quote is true and the finding is less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes in length, the quote may be omitted.

#quote_info

defquote_info()->::Google::Cloud::Dlp::V2::QuoteInfo
Returns
  • (::Google::Cloud::Dlp::V2::QuoteInfo) — Contains data parsed from quotes. Only populated if include_quote was set to true and a supported infoType was requested. Currently supported infoTypes: DATE, DATE_OF_BIRTH and TIME.

#quote_info=

defquote_info=(value)->::Google::Cloud::Dlp::V2::QuoteInfo
Parameter
  • value (::Google::Cloud::Dlp::V2::QuoteInfo) — Contains data parsed from quotes. Only populated if include_quote was set to true and a supported infoType was requested. Currently supported infoTypes: DATE, DATE_OF_BIRTH and TIME.
Returns
  • (::Google::Cloud::Dlp::V2::QuoteInfo) — Contains data parsed from quotes. Only populated if include_quote was set to true and a supported infoType was requested. Currently supported infoTypes: DATE, DATE_OF_BIRTH and TIME.

#resource_name

defresource_name()->::String
Returns
  • (::String) — The job that stored the finding.

#resource_name=

defresource_name=(value)->::String
Parameter
  • value (::String) — The job that stored the finding.
Returns
  • (::String) — The job that stored the finding.

#trigger_name

deftrigger_name()->::String
Returns
  • (::String) — Job trigger name, if applicable, for this finding.

#trigger_name=

deftrigger_name=(value)->::String
Parameter
  • value (::String) — Job trigger name, if applicable, for this finding.
Returns
  • (::String) — Job trigger name, if applicable, for this finding.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.