Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry
- Inherits:
-
Object
- Object
- Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/safebrowsing_v4/classes.rb,
lib/google/apis/safebrowsing_v4/representations.rb,
lib/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) ⇒ GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry
constructor
A new instance of GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry
Returns a new instance of GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry.
613 614 615 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 613 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.
605 606 607 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 605 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.
611 612 613 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 611 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
618 619 620 621 |
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 618 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |