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
- request_pb (::Google::Cloud::WebRisk::V1::ComputeThreatListDiffRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::WebRisk::V1::ComputeThreatListDiffResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::WebRisk::V1::ComputeThreatListDiffResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::WebRisk::V1::CreateSubmissionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::WebRisk::V1::Submission)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::WebRisk::V1::Submission) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#search_hashes
def search_hashes(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::WebRisk::V1::SearchHashesResponse
Baseline implementation for the search_hashes REST call
- 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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::WebRisk::V1::SearchHashesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::WebRisk::V1::SearchHashesResponse) — A result object deserialized from the server's reply
- (::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
- 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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::WebRisk::V1::SearchUrisResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::WebRisk::V1::SearchUrisResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#submit_uri
def submit_uri(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the submit_uri REST call
- 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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)