Class: Google::Apis::DlpV2::GooglePrivacyDlpV2Location

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

Specifies the location of the finding.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2Location

Returns a new instance of GooglePrivacyDlpV2Location.



4550
4551
4552
# File 'lib/google/apis/dlp_v2/classes.rb', line 4550

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

Instance Attribute Details

#byte_rangeGoogle::Apis::DlpV2::GooglePrivacyDlpV2Range

Generic half-open interval [start, end) Corresponds to the JSON property byteRange



4531
4532
4533
# File 'lib/google/apis/dlp_v2/classes.rb', line 4531

def byte_range
  @byte_range
end

#codepoint_rangeGoogle::Apis::DlpV2::GooglePrivacyDlpV2Range

Generic half-open interval [start, end) Corresponds to the JSON property codepointRange



4536
4537
4538
# File 'lib/google/apis/dlp_v2/classes.rb', line 4536

def codepoint_range
  @codepoint_range
end

#containerGoogle::Apis::DlpV2::GooglePrivacyDlpV2Container

Represents a container that may contain DLP findings. Examples of a container include a file, table, or database record. Corresponds to the JSON property container



4542
4543
4544
# File 'lib/google/apis/dlp_v2/classes.rb', line 4542

def container
  @container
end

#content_locationsArray<Google::Apis::DlpV2::GooglePrivacyDlpV2ContentLocation>

List of nested objects pointing to the precise location of the finding within the file or record. Corresponds to the JSON property contentLocations



4548
4549
4550
# File 'lib/google/apis/dlp_v2/classes.rb', line 4548

def content_locations
  @content_locations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4555
4556
4557
4558
4559
4560
# File 'lib/google/apis/dlp_v2/classes.rb', line 4555

def update!(**args)
  @byte_range = args[:byte_range] if args.key?(:byte_range)
  @codepoint_range = args[:codepoint_range] if args.key?(:codepoint_range)
  @container = args[:container] if args.key?(:container)
  @content_locations = args[:content_locations] if args.key?(:content_locations)
end