Class: Google::Apis::SafebrowsingV4::MetadataEntry
- Inherits:
-
Object
- Object
- Google::Apis::SafebrowsingV4::MetadataEntry
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/safebrowsing_v4/classes.rb,
generated/google/apis/safebrowsing_v4/representations.rb,
generated/google/apis/safebrowsing_v4/representations.rb
Overview
A single metadata entry.
Instance Attribute Summary collapse
-
#key ⇒ String
The metadata entry key.
-
#value ⇒ String
The metadata entry value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MetadataEntry
constructor
A new instance of MetadataEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ MetadataEntry
Returns a new instance of MetadataEntry
432 433 434 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 432 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
The metadata entry key. For JSON requests, the key is base64-encoded.
Corresponds to the JSON property key
NOTE: Values are automatically base64 encoded/decoded in the client library.
424 425 426 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 424 def key @key end |
#value ⇒ String
The metadata entry value. For JSON requests, the value is base64-encoded.
Corresponds to the JSON property value
NOTE: Values are automatically base64 encoded/decoded in the client library.
430 431 432 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 430 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
437 438 439 440 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 437 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |