Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2Finding

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dlp_v2beta2/classes.rb,
generated/google/apis/dlp_v2beta2/representations.rb,
generated/google/apis/dlp_v2beta2/representations.rb

Overview

Represents a piece of potentially sensitive content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2beta2Finding

Returns a new instance of GooglePrivacyDlpV2beta2Finding



3108
3109
3110
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3108

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

Instance Attribute Details

#create_timeString

Timestamp when finding was detected. Corresponds to the JSON property createTime

Returns:

  • (String)


3082
3083
3084
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3082

def create_time
  @create_time
end

#info_typeGoogle::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InfoType

Type of information detected by the API. Corresponds to the JSON property infoType



3087
3088
3089
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3087

def info_type
  @info_type
end

#likelihoodString

Estimate of how likely it is that the info_type is correct. Corresponds to the JSON property likelihood

Returns:

  • (String)


3092
3093
3094
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3092

def likelihood
  @likelihood
end

#locationGoogle::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2Location

Specifies the location of the finding. Corresponds to the JSON property location



3097
3098
3099
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3097

def location
  @location
end

#quoteString

The content that was found. Even if the content is not textual, it may be converted to a textual representation here. Provided if requested by the InspectConfig 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. Corresponds to the JSON property quote

Returns:

  • (String)


3106
3107
3108
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3106

def quote
  @quote
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3113
3114
3115
3116
3117
3118
3119
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 3113

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @info_type = args[:info_type] if args.key?(:info_type)
  @likelihood = args[:likelihood] if args.key?(:likelihood)
  @location = args[:location] if args.key?(:location)
  @quote = args[:quote] if args.key?(:quote)
end