Class: Google::Apis::DlpV2::GooglePrivacyDlpV2Container

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

Represents a container that may contain DLP findings. Examples of a container include a file, table, or database record.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2Container

Returns a new instance of GooglePrivacyDlpV2Container.



1369
1370
1371
# File 'lib/google/apis/dlp_v2/classes.rb', line 1369

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

Instance Attribute Details

#full_pathString

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

Returns:

  • (String)


1328
1329
1330
# File 'lib/google/apis/dlp_v2/classes.rb', line 1328

def full_path
  @full_path
end

#project_idString

Project where the finding was found. Can be different from the project that owns the finding. Corresponds to the JSON property projectId

Returns:

  • (String)


1334
1335
1336
# File 'lib/google/apis/dlp_v2/classes.rb', line 1334

def project_id
  @project_id
end

#relative_pathString

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

Returns:

  • (String)


1342
1343
1344
# File 'lib/google/apis/dlp_v2/classes.rb', line 1342

def relative_path
  @relative_path
end

#root_pathString

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

Returns:

  • (String)


1349
1350
1351
# File 'lib/google/apis/dlp_v2/classes.rb', line 1349

def root_path
  @root_path
end

#typeString

Container type, for example BigQuery or Cloud Storage. Corresponds to the JSON property type

Returns:

  • (String)


1354
1355
1356
# File 'lib/google/apis/dlp_v2/classes.rb', line 1354

def type
  @type
end

#update_timeString

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

Returns:

  • (String)


1362
1363
1364
# File 'lib/google/apis/dlp_v2/classes.rb', line 1362

def update_time
  @update_time
end

#versionString

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

Returns:

  • (String)


1367
1368
1369
# File 'lib/google/apis/dlp_v2/classes.rb', line 1367

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1374
1375
1376
1377
1378
1379
1380
1381
1382
# File 'lib/google/apis/dlp_v2/classes.rb', line 1374

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