Class: Google::Apis::DlpV2::GooglePrivacyDlpV2KeyValueMetadataLabel

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

The metadata key that contains a finding.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2KeyValueMetadataLabel

Returns a new instance of GooglePrivacyDlpV2KeyValueMetadataLabel.



7730
7731
7732
# File 'lib/google/apis/dlp_v2/classes.rb', line 7730

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

Instance Attribute Details

#keyString

The metadata key. The format depends on the source of the metadata. Example: - MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Enabled (a Microsoft Purview Information Protection key example) Corresponds to the JSON property key

Returns:

  • (String)


7728
7729
7730
# File 'lib/google/apis/dlp_v2/classes.rb', line 7728

def key
  @key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7735
7736
7737
# File 'lib/google/apis/dlp_v2/classes.rb', line 7735

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