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.



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

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

Instance Attribute Details

#keyString

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

Returns:

  • (String)


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

def key
  @key
end

#valueString

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

Returns:

  • (String)


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

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7766
7767
7768
7769
# File 'lib/google/apis/dlp_v2/classes.rb', line 7766

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