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.



7443
7444
7445
# File 'lib/google/apis/dlp_v2/classes.rb', line 7443

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)


7441
7442
7443
# File 'lib/google/apis/dlp_v2/classes.rb', line 7441

def key
  @key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7448
7449
7450
# File 'lib/google/apis/dlp_v2/classes.rb', line 7448

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