Class: Google::Apis::SafebrowsingV4::ThreatEntry
- Inherits:
-
Object
- Object
- Google::Apis::SafebrowsingV4::ThreatEntry
- 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
An individual threat; for example, a malicious URL or its hash representation. Only one of these fields should be set.
Instance Attribute Summary collapse
-
#digest ⇒ String
The digest of an executable in SHA256 format.
-
#hash_prop ⇒ String
A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash.
-
#url ⇒ String
A URL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ThreatEntry
constructor
A new instance of ThreatEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ThreatEntry
Returns a new instance of ThreatEntry
598 599 600 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 598 def initialize(**args) update!(**args) end |
Instance Attribute Details
#digest ⇒ String
The digest of an executable in SHA256 format. The API supports both
binary and hex digests. For JSON requests, digests are base64-encoded.
Corresponds to the JSON property digest
NOTE: Values are automatically base64 encoded/decoded in the client library.
583 584 585 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 583 def digest @digest end |
#hash_prop ⇒ String
A hash prefix, consisting of the most significant 4-32 bytes of a SHA256
hash. This field is in binary format. For JSON requests, hashes are
base64-encoded.
Corresponds to the JSON property hash
NOTE: Values are automatically base64 encoded/decoded in the client library.
591 592 593 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 591 def hash_prop @hash_prop end |
#url ⇒ String
A URL.
Corresponds to the JSON property url
596 597 598 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 596 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
603 604 605 606 607 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 603 def update!(**args) @digest = args[:digest] if args.key?(:digest) @hash_prop = args[:hash_prop] if args.key?(:hash_prop) @url = args[:url] if args.key?(:url) end |