Class: Google::Cloud::Webrisk::V1beta1::ComputeThreatListDiffResponse

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#additionsGoogle::Cloud::Webrisk::V1beta1::ThreatEntryAdditions

Returns A set of entries to add to a local threat type's list.

Returns:



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

#checksumGoogle::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.

Returns:



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_tokenString

Returns The new opaque client version token.

Returns:

  • (String)

    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

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.

Returns:

  • (Google::Protobuf::Timestamp)

    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

#removalsGoogle::Cloud::Webrisk::V1beta1::ThreatEntryRemovals

Returns A set of entries to remove from a local threat type's list. This field may be empty.

Returns:



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_typeGoogle::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.

Returns:



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