Class: Google::Apis::WebriskV1::GoogleCloudWebriskV1ComputeThreatListDiffResponseChecksum

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/webrisk_v1/classes.rb,
lib/google/apis/webrisk_v1/representations.rb,
lib/google/apis/webrisk_v1/representations.rb

Overview

The expected state of a client's local database.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudWebriskV1ComputeThreatListDiffResponseChecksum

Returns a new instance of GoogleCloudWebriskV1ComputeThreatListDiffResponseChecksum.



93
94
95
# File 'lib/google/apis/webrisk_v1/classes.rb', line 93

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)


91
92
93
# File 'lib/google/apis/webrisk_v1/classes.rb', line 91

def sha256
  @sha256
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



98
99
100
# File 'lib/google/apis/webrisk_v1/classes.rb', line 98

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