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.



2134
2135
2136
# File 'lib/google/apis/dlp_v2/classes.rb', line 2134

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



2127
2128
2129
# File 'lib/google/apis/dlp_v2/classes.rb', line 2127

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



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

def properties
  @properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2139
2140
2141
2142
# File 'lib/google/apis/dlp_v2/classes.rb', line 2139

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