Class: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentMetadata

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

Metadata on content to be scanned.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2ContentMetadata

Returns a new instance of GooglePrivacyDlpV2ContentMetadata.



2132
2133
2134
# File 'lib/google/apis/dlp_v2/classes.rb', line 2132

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

Instance Attribute Details

#file_labelsArray<Google::Apis::DlpV2::GooglePrivacyDlpV2FileLabel>

Optional. The file labels associated with the content. Corresponds to the JSON property fileLabels



2125
2126
2127
# File 'lib/google/apis/dlp_v2/classes.rb', line 2125

def file_labels
  @file_labels
end

#propertiesArray<Google::Apis::DlpV2::GooglePrivacyDlpV2KeyValueMetadataProperty>

User provided key-value pairs of content metadata. Corresponds to the JSON property properties



2130
2131
2132
# File 'lib/google/apis/dlp_v2/classes.rb', line 2130

def properties
  @properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2137
2138
2139
2140
# File 'lib/google/apis/dlp_v2/classes.rb', line 2137

def update!(**args)
  @file_labels = args[:file_labels] if args.key?(:file_labels)
  @properties = args[:properties] if args.key?(:properties)
end