Web Risk V1 API - Class Google::Cloud::WebRisk::V1::WebRiskService::Rest::ServiceStub (v0.11.0)

Reference documentation and code samples for the Web Risk V1 API class Google::Cloud::WebRisk::V1::WebRiskService::Rest::ServiceStub.

REST service stub for the WebRiskService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#compute_threat_list_diff

def compute_threat_list_diff(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::WebRisk::V1::ComputeThreatListDiffResponse

Baseline implementation for the compute_threat_list_diff REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_submission

def create_submission(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::WebRisk::V1::Submission

Baseline implementation for the create_submission REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
Returns

#search_hashes

def search_hashes(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::WebRisk::V1::SearchHashesResponse

Baseline implementation for the search_hashes REST call

Parameters
  • request_pb (::Google::Cloud::WebRisk::V1::SearchHashesRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#search_uris

def search_uris(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::WebRisk::V1::SearchUrisResponse

Baseline implementation for the search_uris REST call

Parameters
  • request_pb (::Google::Cloud::WebRisk::V1::SearchUrisRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#submit_uri

def submit_uri(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the submit_uri REST call

Parameters
  • request_pb (::Google::Cloud::WebRisk::V1::SubmitUriRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)