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.



7299
7300
7301
# File 'lib/google/apis/dlp_v2/classes.rb', line 7299

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

Instance Attribute Details

#keyString

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

Returns:

  • (String)


7292
7293
7294
# File 'lib/google/apis/dlp_v2/classes.rb', line 7292

def key
  @key
end

#valueString

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

Returns:

  • (String)


7297
7298
7299
# File 'lib/google/apis/dlp_v2/classes.rb', line 7297

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7304
7305
7306
7307
# File 'lib/google/apis/dlp_v2/classes.rb', line 7304

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