Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4Checksum

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

The expected state of a client's local database.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4Checksum

Returns a new instance of GoogleSecuritySafebrowsingV4Checksum.



53
54
55
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 53

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

Instance Attribute Details

#sha256String

The SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database. Corresponds to the JSON property sha256 NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


51
52
53
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 51

def sha256
  @sha256
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



58
59
60
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 58

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