Cloud Functions V2 API - Class Google::Cloud::Functions::V2::FunctionService::Rest::ServiceStub (v0.7.0)

Reference documentation and code samples for the Cloud Functions V2 API class Google::Cloud::Functions::V2::FunctionService::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#create_function

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

Baseline implementation for the create_function REST call

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

#delete_function

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

Baseline implementation for the delete_function REST call

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

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#generate_download_url

def generate_download_url(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Functions::V2::GenerateDownloadUrlResponse

Baseline implementation for the generate_download_url REST call

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

#generate_upload_url

def generate_upload_url(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Functions::V2::GenerateUploadUrlResponse

Baseline implementation for the generate_upload_url REST call

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

#get_function

def get_function(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Functions::V2::Function

Baseline implementation for the get_function 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

#list_functions

def list_functions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Functions::V2::ListFunctionsResponse

Baseline implementation for the list_functions REST call

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

#list_runtimes

def list_runtimes(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Functions::V2::ListRuntimesResponse

Baseline implementation for the list_runtimes REST call

Parameters
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)

#update_function

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

Baseline implementation for the update_function REST call

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