google_api_safe_browsing v0.1.0 GoogleApi.SafeBrowsing.V4.Api.ThreatHits View Source

API calls for all endpoints tagged ThreatHits.

Link to this section Summary

Functions

Reports a Safe Browsing threat list hit to Google. Only projects with TRUSTED_REPORTER visibility can use this method

Link to this section Functions

Link to this function safebrowsing_threat_hits_create(connection, opts \\ []) View Source
safebrowsing_threat_hits_create(Tesla.Env.client(), keyword()) ::
  {:ok, GoogleApi.SafeBrowsing.V4.Model.Empty.t()} | {:error, Tesla.Env.t()}

Reports a Safe Browsing threat list hit to Google. Only projects with TRUSTED_REPORTER visibility can use this method.

Parameters

  • connection (GoogleApi.SafeBrowsing.V4.Connection): Connection to server
  • opts (KeywordList): [optional] Optional parameters

    • :fields (String.t): Selector specifying which fields to include in a partial response.
    • :uploadType (String.t): Legacy upload protocol for media (e.g. "media", "multipart").
    • :callback (String.t): JSONP
    • :oauth_token (String.t): OAuth 2.0 token for the current user.
    • :$.xgafv (String.t): V1 error format.
    • :alt (String.t): Data format for response.
    • :access_token (String.t): OAuth access token.
    • :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :upload_protocol (String.t): Upload protocol for media (e.g. "raw", "multipart").
    • :prettyPrint (boolean()): Returns response with indentations and line breaks.
    • :quotaUser (String.t): 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.
    • :body (ThreatHit):

Returns

{:ok, %GoogleApi.SafeBrowsing.V4.Model.Empty{}} on success {:error, info} on failure