Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry

Returns a new instance of GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry.



610
611
612
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 610

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

Instance Attribute Details

#keyString

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.

Returns:

  • (String)


602
603
604
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 602

def key
  @key
end

#valueString

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.

Returns:

  • (String)


608
609
610
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 608

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



615
616
617
618
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 615

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