generated/google-apis-webrisk_v1/lib/google/apis/webrisk_v1/service.rb
# Gets the most recent threat list diffs. These diffs should be applied to a
# local database of hashes to keep it up-to-date. If the local database is empty
# or excessively out-of-date, a complete snapshot of the database will be
# returned. This Method only updates a single ThreatList at a time. To update
# multiple ThreatList databases, this method needs to be called once for each
# list.
# @param [Fixnum] constraints_max_database_entries
#   Sets the maximum number of entries that the client is willing to have in the
#   local database. This should be a power of 2 between 2**10 and 2**20. If zero,
#   no database size limit is set.
# @param [Fixnum] constraints_max_diff_entries
#   The maximum size in number of entries. The diff will not contain more entries
#   than this value. This should be a power of 2 between 2**10 and 2**20. If zero,
#   no diff size limit is set.
# @param [Array<String>, String] constraints_supported_compressions
#   The compression types supported by the client.
# @param [String] threat_type
#   Required. The threat list to update. Only a single ThreatType should be
#   specified per request. If you want to handle multiple ThreatTypes, you must
#   make one request per ThreatType.
# @param [String] version_token
#   The current version token of the client for the requested list (the client
#   version that was received from the last successful diff). If the client does
#   not have a version token (this is the first time calling ComputeThreatListDiff)
#   , this may be left empty and a full database snapshot will be returned.
# @param [String] fields
#   Selector specifying which fields to include in a partial response.
# @param [String] quota_user
#   Available to use for quota purposes for server-side applications. Can be any
#   arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
#   Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::WebriskV1::GoogleCloudWebriskV1ComputeThreatListDiffResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::WebriskV1::GoogleCloudWebriskV1ComputeThreatListDiffResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
Gets the most recent threat list diffs. These diffs should be applied to a
local database of hashes to keep it up-to-date. If the local database is empty
or excessively out-of-date, a complete snapshot of the database will be
returned. This Method only updates a single ThreatList at a time. To update
multiple ThreatList databases, this method needs to be called once for each
list.
Gets the most recent threat list diffs . These diffs should be applied to a local database of hashes to keep it up - to - date . If the local database is empty or excessively out - of - date a complete snapshot of the database will be returned . This Method only updates a single ThreatList at a time . To update multiple ThreatList databases this method needs to be called once for each list .
def compute_threat_list_diff(constraints_max_database_entries: nil, constraints_max_diff_entries: nil, constraints_supported_compressions: nil, threat_type: nil, version_token: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/threatLists:computeDiff', options)
          command.response_representation = Google::Apis::WebriskV1::GoogleCloudWebriskV1ComputeThreatListDiffResponse::Representation
          command.response_class = Google::Apis::WebriskV1::GoogleCloudWebriskV1ComputeThreatListDiffResponse
          command.query['constraints.maxDatabaseEntries'] = constraints_max_database_entries unless constraints_max_database_entries.nil?
          command.query['constraints.maxDiffEntries'] = constraints_max_diff_entries unless constraints_max_diff_entries.nil?
          command.query['constraints.supportedCompressions'] = constraints_supported_compressions unless constraints_supported_compressions.nil?
          command.query['threatType'] = threat_type unless threat_type.nil?
          command.query['versionToken'] = version_token unless version_token.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
def compute_threat_list_diff ( constraints_max_database_entries : nil , constraints_max_diff_entries : nil , constraints_supported_compressions : nil , threat_type : nil , version_token : nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :get , 'v1/threatLists:computeDiff' , options ) command . response_representation = Google :: Apis :: WebriskV1 :: GoogleCloudWebriskV1ComputeThreatListDiffResponse :: Representation command . response_class = Google :: Apis :: WebriskV1 :: GoogleCloudWebriskV1ComputeThreatListDiffResponse command . query [ 'constraints.maxDatabaseEntries' ] = constraints_max_database_entries unless constraints_max_database_entries . nil? command . query [ 'constraints.maxDiffEntries' ] = constraints_max_diff_entries unless constraints_max_diff_entries . nil? command . query [ 'constraints.supportedCompressions' ] = constraints_supported_compressions unless constraints_supported_compressions . nil? command . query [ 'threatType' ] = threat_type unless threat_type . nil? command . query [ 'versionToken' ] = version_token unless version_token . nil? command . query [ 'fields' ] = fields unless fields . nil? command . query [ 'quotaUser' ] = quota_user unless quota_user . nil? execute_or_queue_command ( command , & block ) end
Gets the most recent threat list diffs.
Gets the most recent threat list diffs .
None
Google::Apis::WebriskV1::GoogleCloudWebriskV1ComputeThreatListDiffResponse
[Google::Apis::ServerError] An error occurred on the server and the request can be retried
[ Google :: Apis :: ServerError ] An error occurred on the server and the request can be retried
[Google::Apis::ClientError] The request is invalid and should not be retried without modification
[ Google :: Apis :: ClientError ] The request is invalid and should not be retried without modification
[Google::Apis::AuthorizationError] Authorization is required
[ Google :: Apis :: AuthorizationError ] Authorization is required
constraints_max_database_entries
constraints_max_diff_entries
constraints_supported_compressions
threat_type
version_token
fields
quota_user
options
block
options Request-specific options
options Request - specific options
]
Result & error if block supplied
Result & error if block supplied
result
parsed result object
parsed result object
err
error object if request failed
error object if request failed