Class: Google::Apis::WebriskV1::GoogleCloudWebriskV1SearchHashesResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_timeString

For requested entities that did not match the threat list, how long to cache the response until. Corresponds to the JSON property negativeExpireTime

Returns:

  • (String)


207
208
209
# File 'lib/google/apis/webrisk_v1/classes.rb', line 207

def negative_expire_time
  @negative_expire_time
end

#threatsArray<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