Class: Google::Apis::DlpV2::GooglePrivacyDlpV2Container
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2Container
- 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
Represents a container that may contain DLP findings. Examples of a container include a file, table, or database record.
Instance Attribute Summary collapse
-
#full_path ⇒ String
A string representation of the full container name.
-
#project_id ⇒ String
Project where the finding was found.
-
#relative_path ⇒ String
The rest of the path after the root.
-
#root_path ⇒ String
The root of the container.
-
#type ⇒ String
Container type, for example BigQuery or Google Cloud Storage.
-
#update_time ⇒ String
Findings container modification timestamp, if applicable.
-
#version ⇒ String
Findings container version, if available ("generation" for Google Cloud Storage).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2Container
constructor
A new instance of GooglePrivacyDlpV2Container.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2Container
Returns a new instance of GooglePrivacyDlpV2Container.
1032 1033 1034 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 1032 def initialize(**args) update!(**args) end |
Instance Attribute Details
#full_path ⇒ String
A string representation of the full container name. Examples:
- BigQuery: 'Project:DataSetId.TableId'
- Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
Corresponds to the JSON property
fullPath
985 986 987 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 985 def full_path @full_path end |
#project_id ⇒ String
Project where the finding was found.
Can be different from the project that owns the finding.
Corresponds to the JSON property projectId
991 992 993 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 991 def project_id @project_id end |
#relative_path ⇒ String
The rest of the path after the root. Examples:
- For BigQuery table
project_id:dataset_id.table_id
, the relative path istable_id
- Google Cloud Storage file
gs://bucket/folder/filename.txt
, the relative path isfolder/filename.txt
Corresponds to the JSON propertyrelativePath
1001 1002 1003 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 1001 def relative_path @relative_path end |
#root_path ⇒ String
The root of the container. Examples:
- For BigQuery table
project_id:dataset_id.table_id
, the root isdataset_id
- For Google Cloud Storage file
gs://bucket/folder/filename.txt
, the root isgs://bucket
Corresponds to the JSON propertyrootPath
1011 1012 1013 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 1011 def root_path @root_path end |
#type ⇒ String
Container type, for example BigQuery or Google Cloud Storage.
Corresponds to the JSON property type
1016 1017 1018 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 1016 def type @type end |
#update_time ⇒ String
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 updateTime
1024 1025 1026 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 1024 def update_time @update_time end |
#version ⇒ String
Findings container version, if available
("generation" for Google Cloud Storage).
Corresponds to the JSON property version
1030 1031 1032 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 1030 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1037 1038 1039 1040 1041 1042 1043 1044 1045 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 1037 def update!(**args) @full_path = args[:full_path] if args.key?(:full_path) @project_id = args[:project_id] if args.key?(:project_id) @relative_path = args[:relative_path] if args.key?(:relative_path) @root_path = args[:root_path] if args.key?(:root_path) @type = args[:type] if args.key?(:type) @update_time = args[:update_time] if args.key?(:update_time) @version = args[:version] if args.key?(:version) end |