Class: Google::Apis::WebriskV1::GoogleCloudWebriskV1SearchHashesResponse
- Inherits:
-
Object
- Object
- Google::Apis::WebriskV1::GoogleCloudWebriskV1SearchHashesResponse
- 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
Instance Attribute Summary collapse
-
#negative_expire_time ⇒ String
For requested entities that did not match the threat list, how long to cache the response until.
-
#threats ⇒ Array<Google::Apis::WebriskV1::GoogleCloudWebriskV1SearchHashesResponseThreatHash>
The full hashes that matched the requested prefixes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudWebriskV1SearchHashesResponse
constructor
A new instance of GoogleCloudWebriskV1SearchHashesResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudWebriskV1SearchHashesResponse
Returns a new instance of GoogleCloudWebriskV1SearchHashesResponse.
215 216 217 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 215 def initialize(**args) update!(**args) end |
Instance Attribute Details
#negative_expire_time ⇒ String
For requested entities that did not match the threat list, how long to cache
the response until.
Corresponds to the JSON property negativeExpireTime
207 208 209 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 207 def negative_expire_time @negative_expire_time end |
#threats ⇒ Array<Google::Apis::WebriskV1::GoogleCloudWebriskV1SearchHashesResponseThreatHash>
The full hashes that matched the requested prefixes. The hash will be
populated in the key.
Corresponds to the JSON property threats
213 214 215 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 213 def threats @threats end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
220 221 222 223 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 220 def update!(**args) @negative_expire_time = args[:negative_expire_time] if args.key?(:negative_expire_time) @threats = args[:threats] if args.key?(:threats) end |