Class: Google::Cloud::Webrisk::V1beta1::ComputeThreatListDiffResponse
- Inherits:
-
Object
- Object
- Google::Cloud::Webrisk::V1beta1::ComputeThreatListDiffResponse
- Defined in:
- lib/google/cloud/webrisk/v1beta1/doc/google/cloud/webrisk/v1beta1/webrisk.rb
Defined Under Namespace
Modules: ResponseType Classes: Checksum
Instance Attribute Summary collapse
-
#additions ⇒ Google::Cloud::Webrisk::V1beta1::ThreatEntryAdditions
A set of entries to add to a local threat type's list.
-
#checksum ⇒ Google::Cloud::Webrisk::V1beta1::ComputeThreatListDiffResponse::Checksum
The expected SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database after applying the provided diff.
-
#new_version_token ⇒ String
The new opaque client version token.
-
#recommended_next_diff ⇒ Google::Protobuf::Timestamp
The soonest the client should wait before issuing any diff request.
-
#removals ⇒ Google::Cloud::Webrisk::V1beta1::ThreatEntryRemovals
A set of entries to remove from a local threat type's list.
-
#response_type ⇒ Google::Cloud::Webrisk::V1beta1::ComputeThreatListDiffResponse::ResponseType
The type of response.
Instance Attribute Details
#additions ⇒ Google::Cloud::Webrisk::V1beta1::ThreatEntryAdditions
Returns A set of entries to add to a local threat type's list.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/google/cloud/webrisk/v1beta1/doc/google/cloud/webrisk/v1beta1/webrisk.rb', line 75 class ComputeThreatListDiffResponse # The expected state of a client's local database. # @!attribute [rw] sha256 # @return [String] # The SHA256 hash of the client state; that is, of the sorted list of all # hashes present in the database. class Checksum; end # The type of response sent to the client. module ResponseType # Unknown. RESPONSE_TYPE_UNSPECIFIED = 0 # Partial updates are applied to the client's existing local database. DIFF = 1 # Full updates resets the client's entire local database. This means # that either the client had no state, was seriously out-of-date, # or the client is believed to be corrupt. RESET = 2 end end |
#checksum ⇒ Google::Cloud::Webrisk::V1beta1::ComputeThreatListDiffResponse::Checksum
Returns The expected SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database after applying the provided diff. If the client state doesn't match the expected state, the client must disregard this diff and retry later.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/google/cloud/webrisk/v1beta1/doc/google/cloud/webrisk/v1beta1/webrisk.rb', line 75 class ComputeThreatListDiffResponse # The expected state of a client's local database. # @!attribute [rw] sha256 # @return [String] # The SHA256 hash of the client state; that is, of the sorted list of all # hashes present in the database. class Checksum; end # The type of response sent to the client. module ResponseType # Unknown. RESPONSE_TYPE_UNSPECIFIED = 0 # Partial updates are applied to the client's existing local database. DIFF = 1 # Full updates resets the client's entire local database. This means # that either the client had no state, was seriously out-of-date, # or the client is believed to be corrupt. RESET = 2 end end |
#new_version_token ⇒ String
Returns The new opaque client version token.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/google/cloud/webrisk/v1beta1/doc/google/cloud/webrisk/v1beta1/webrisk.rb', line 75 class ComputeThreatListDiffResponse # The expected state of a client's local database. # @!attribute [rw] sha256 # @return [String] # The SHA256 hash of the client state; that is, of the sorted list of all # hashes present in the database. class Checksum; end # The type of response sent to the client. module ResponseType # Unknown. RESPONSE_TYPE_UNSPECIFIED = 0 # Partial updates are applied to the client's existing local database. DIFF = 1 # Full updates resets the client's entire local database. This means # that either the client had no state, was seriously out-of-date, # or the client is believed to be corrupt. RESET = 2 end end |
#recommended_next_diff ⇒ Google::Protobuf::Timestamp
Returns The soonest the client should wait before issuing any diff request. Querying sooner is unlikely to produce a meaningful diff. Waiting longer is acceptable considering the use case. If this field is not set clients may update as soon as they want.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/google/cloud/webrisk/v1beta1/doc/google/cloud/webrisk/v1beta1/webrisk.rb', line 75 class ComputeThreatListDiffResponse # The expected state of a client's local database. # @!attribute [rw] sha256 # @return [String] # The SHA256 hash of the client state; that is, of the sorted list of all # hashes present in the database. class Checksum; end # The type of response sent to the client. module ResponseType # Unknown. RESPONSE_TYPE_UNSPECIFIED = 0 # Partial updates are applied to the client's existing local database. DIFF = 1 # Full updates resets the client's entire local database. This means # that either the client had no state, was seriously out-of-date, # or the client is believed to be corrupt. RESET = 2 end end |
#removals ⇒ Google::Cloud::Webrisk::V1beta1::ThreatEntryRemovals
Returns A set of entries to remove from a local threat type's list. This field may be empty.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/google/cloud/webrisk/v1beta1/doc/google/cloud/webrisk/v1beta1/webrisk.rb', line 75 class ComputeThreatListDiffResponse # The expected state of a client's local database. # @!attribute [rw] sha256 # @return [String] # The SHA256 hash of the client state; that is, of the sorted list of all # hashes present in the database. class Checksum; end # The type of response sent to the client. module ResponseType # Unknown. RESPONSE_TYPE_UNSPECIFIED = 0 # Partial updates are applied to the client's existing local database. DIFF = 1 # Full updates resets the client's entire local database. This means # that either the client had no state, was seriously out-of-date, # or the client is believed to be corrupt. RESET = 2 end end |
#response_type ⇒ Google::Cloud::Webrisk::V1beta1::ComputeThreatListDiffResponse::ResponseType
Returns The type of response. This may indicate that an action must be taken by the client when the response is received.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/google/cloud/webrisk/v1beta1/doc/google/cloud/webrisk/v1beta1/webrisk.rb', line 75 class ComputeThreatListDiffResponse # The expected state of a client's local database. # @!attribute [rw] sha256 # @return [String] # The SHA256 hash of the client state; that is, of the sorted list of all # hashes present in the database. class Checksum; end # The type of response sent to the client. module ResponseType # Unknown. RESPONSE_TYPE_UNSPECIFIED = 0 # Partial updates are applied to the client's existing local database. DIFF = 1 # Full updates resets the client's entire local database. This means # that either the client had no state, was seriously out-of-date, # or the client is believed to be corrupt. RESET = 2 end end |