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

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

Overview

Specifies the location of the finding.

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

Returns a new instance of GooglePrivacyDlpV2Location.



4050
4051
4052
# File 'generated/google/apis/dlp_v2/classes.rb', line 4050

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



4037
4038
4039
# File 'generated/google/apis/dlp_v2/classes.rb', line 4037

def byte_range
  @byte_range
end

#codepoint_rangeGoogle::Apis::DlpV2::GooglePrivacyDlpV2Range

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



4042
4043
4044
# File 'generated/google/apis/dlp_v2/classes.rb', line 4042

def codepoint_range
  @codepoint_range
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



4048
4049
4050
# File 'generated/google/apis/dlp_v2/classes.rb', line 4048

def content_locations
  @content_locations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4055
4056
4057
4058
4059
# File 'generated/google/apis/dlp_v2/classes.rb', line 4055

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