Class: Google::Apis::DlpV2::GooglePrivacyDlpV2KeyValueMetadataProperty

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

A key-value pair in the Metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2KeyValueMetadataProperty

Returns a new instance of GooglePrivacyDlpV2KeyValueMetadataProperty.



7754
7755
7756
# File 'lib/google/apis/dlp_v2/classes.rb', line 7754

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

Instance Attribute Details

#keyString

The key of the property. Corresponds to the JSON property key

Returns:

  • (String)


7747
7748
7749
# File 'lib/google/apis/dlp_v2/classes.rb', line 7747

def key
  @key
end

#valueString

The value of the property. Corresponds to the JSON property value

Returns:

  • (String)


7752
7753
7754
# File 'lib/google/apis/dlp_v2/classes.rb', line 7752

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7759
7760
7761
7762
# File 'lib/google/apis/dlp_v2/classes.rb', line 7759

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