Class: Google::Apis::DlpV2::GooglePrivacyDlpV2Container
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2Container
- 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
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 Cloud Storage.
-
#update_time ⇒ String
Findings container modification timestamp, if applicable.
-
#version ⇒ String
Findings container version, if available ("generation" for Cloud Storage).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2Container
constructor
A new instance of GooglePrivacyDlpV2Container.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2Container
Returns a new instance of GooglePrivacyDlpV2Container.
1214 1215 1216 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1214 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' - Cloud Storage: 'gs://Bucket/folders/filename.txt'
Corresponds to the JSON property fullPath
1173 1174 1175 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1173 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
1179 1180 1181 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1179 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 is table_id - For Cloud
Storage file gs://bucket/folder/filename.txt, the relative path is folder/
filename.txt
Corresponds to the JSON property relativePath
1187 1188 1189 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1187 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 is dataset_id - For Cloud Storage file gs://
bucket/folder/filename.txt, the root is gs://bucket
Corresponds to the JSON property rootPath
1194 1195 1196 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1194 def root_path @root_path end |
#type ⇒ String
Container type, for example BigQuery or Cloud Storage.
Corresponds to the JSON property type
1199 1200 1201 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1199 def type @type end |
#update_time ⇒ String
Findings container modification timestamp, if applicable. For Cloud Storage,
this field contains the last file modification timestamp. For a BigQuery table,
this field contains the last_modified_time property. For Datastore, this
field isn't populated.
Corresponds to the JSON property updateTime
1207 1208 1209 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1207 def update_time @update_time end |
#version ⇒ String
Findings container version, if available ("generation" for Cloud Storage).
Corresponds to the JSON property version
1212 1213 1214 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1212 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1219 1220 1221 1222 1223 1224 1225 1226 1227 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 1219 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 |