Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Finding

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

Overview

Container structure describing a single finding within a string or image.

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) ⇒ GooglePrivacyDlpV2beta1Finding

Returns a new instance of GooglePrivacyDlpV2beta1Finding



1179
1180
1181
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1179

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


1157
1158
1159
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1157

def create_time
  @create_time
end

#info_typeGoogle::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType

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



1162
1163
1164
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1162

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)


1167
1168
1169
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1167

def likelihood
  @likelihood
end

#locationGoogle::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Location

Specifies the location of a finding within its source item. Corresponds to the JSON property location



1172
1173
1174
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1172

def location
  @location
end

#quoteString

The specific string that may be potentially sensitive info. Corresponds to the JSON property quote

Returns:

  • (String)


1177
1178
1179
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1177

def quote
  @quote
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1184
1185
1186
1187
1188
1189
1190
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 1184

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