Class: Google::Cloud::Webrisk::V1beta1::SearchHashesResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/webrisk/v1beta1/doc/google/cloud/webrisk/v1beta1/webrisk.rb

Defined Under Namespace

Classes: ThreatHash

Instance Attribute Summary collapse

Instance Attribute Details

#negative_expire_timeGoogle::Protobuf::Timestamp

Returns For requested entities that did not match the threat list, how long to cache the response until.

Returns:



140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# File 'lib/google/cloud/webrisk/v1beta1/doc/google/cloud/webrisk/v1beta1/webrisk.rb', line 140

class SearchHashesResponse
  # Contains threat information on a matching hash.
  # @!attribute [rw] threat_types
  #   @return [Array<Google::Cloud::Webrisk::V1beta1::ThreatType>]
  #     The ThreatList this threat belongs to.
  #     This must contain at least one entry.
  # @!attribute [rw] hash
  #   @return [String]
  #     A 32 byte SHA256 hash. This field is in binary format. For JSON
  #     requests, hashes are base64-encoded.
  # @!attribute [rw] expire_time
  #   @return [Google::Protobuf::Timestamp]
  #     The cache lifetime for the returned match. Clients must not cache this
  #     response past this timestamp to avoid false positives.
  class ThreatHash; end
end

#threatsArray<Google::Cloud::Webrisk::V1beta1::SearchHashesResponse::ThreatHash>

Returns The full hashes that matched the requested prefixes. The hash will be populated in the key.

Returns:



140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# File 'lib/google/cloud/webrisk/v1beta1/doc/google/cloud/webrisk/v1beta1/webrisk.rb', line 140

class SearchHashesResponse
  # Contains threat information on a matching hash.
  # @!attribute [rw] threat_types
  #   @return [Array<Google::Cloud::Webrisk::V1beta1::ThreatType>]
  #     The ThreatList this threat belongs to.
  #     This must contain at least one entry.
  # @!attribute [rw] hash
  #   @return [String]
  #     A 32 byte SHA256 hash. This field is in binary format. For JSON
  #     requests, hashes are base64-encoded.
  # @!attribute [rw] expire_time
  #   @return [Google::Protobuf::Timestamp]
  #     The cache lifetime for the returned match. Clients must not cache this
  #     response past this timestamp to avoid false positives.
  class ThreatHash; end
end