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.



7275
7276
7277
# File 'lib/google/apis/dlp_v2/classes.rb', line 7275

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)


7273
7274
7275
# File 'lib/google/apis/dlp_v2/classes.rb', line 7273

def key
  @key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7280
7281
7282
# File 'lib/google/apis/dlp_v2/classes.rb', line 7280

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