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.



7393
7394
7395
# File 'lib/google/apis/dlp_v2/classes.rb', line 7393

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)


7391
7392
7393
# File 'lib/google/apis/dlp_v2/classes.rb', line 7391

def key
  @key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7398
7399
7400
# File 'lib/google/apis/dlp_v2/classes.rb', line 7398

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