Class: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentLocation

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

Findings container location data.

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

Returns a new instance of GooglePrivacyDlpV2ContentLocation



1032
1033
1034
# File 'generated/google/apis/dlp_v2/classes.rb', line 1032

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

Instance Attribute Details

#container_nameString

Name of the container where the finding is located. The top level name is the source file name or table name. Names of some common storage containers are formatted as follows:

  • BigQuery tables: <project_id>:<dataset_id>.<table_id>
  • Cloud Storage files: gs://<bucket>/<path>
  • Datastore namespace: Nested names could be absent if the embedded object has no string identifier (for an example an image contained within a document). Corresponds to the JSON property containerName

Returns:

  • (String)


1001
1002
1003
# File 'generated/google/apis/dlp_v2/classes.rb', line 1001

def container_name
  @container_name
end

#container_timestampString

Findings container modification timestamp, if applicable. For Google Cloud Storage contains last file modification timestamp. For BigQuery table contains last_modified_time property. For Datastore - not populated. Corresponds to the JSON property containerTimestamp

Returns:

  • (String)


1009
1010
1011
# File 'generated/google/apis/dlp_v2/classes.rb', line 1009

def container_timestamp
  @container_timestamp
end

#container_versionString

Findings container version, if available ("generation" for Google Cloud Storage). Corresponds to the JSON property containerVersion

Returns:

  • (String)


1015
1016
1017
# File 'generated/google/apis/dlp_v2/classes.rb', line 1015

def container_version
  @container_version
end

#document_locationGoogle::Apis::DlpV2::GooglePrivacyDlpV2DocumentLocation

Location of a finding within a document. Corresponds to the JSON property documentLocation



1020
1021
1022
# File 'generated/google/apis/dlp_v2/classes.rb', line 1020

def document_location
  @document_location
end

#image_locationGoogle::Apis::DlpV2::GooglePrivacyDlpV2ImageLocation

Location of the finding within an image. Corresponds to the JSON property imageLocation



1025
1026
1027
# File 'generated/google/apis/dlp_v2/classes.rb', line 1025

def image_location
  @image_location
end

#record_locationGoogle::Apis::DlpV2::GooglePrivacyDlpV2RecordLocation

Location of a finding within a row or record. Corresponds to the JSON property recordLocation



1030
1031
1032
# File 'generated/google/apis/dlp_v2/classes.rb', line 1030

def record_location
  @record_location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1037
1038
1039
1040
1041
1042
1043
1044
# File 'generated/google/apis/dlp_v2/classes.rb', line 1037

def update!(**args)
  @container_name = args[:container_name] if args.key?(:container_name)
  @container_timestamp = args[:container_timestamp] if args.key?(:container_timestamp)
  @container_version = args[:container_version] if args.key?(:container_version)
  @document_location = args[:document_location] if args.key?(:document_location)
  @image_location = args[:image_location] if args.key?(:image_location)
  @record_location = args[:record_location] if args.key?(:record_location)
end