Class: Google::Apis::DlpV2::GooglePrivacyDlpV2KeyValueMetadataProperty
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2KeyValueMetadataProperty
- 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
-
#key ⇒ String
The key of the property.
-
#value ⇒ String
The value of the property.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2KeyValueMetadataProperty
constructor
A new instance of GooglePrivacyDlpV2KeyValueMetadataProperty.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#key ⇒ String
The key of the property.
Corresponds to the JSON property key
7292 7293 7294 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 7292 def key @key end |
#value ⇒ String
The value of the property.
Corresponds to the JSON property value
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 |