Class FunctionServiceConnection (2.19.0-rc)

This interface defines virtual methods for each of the user-facing overload sets in FunctionServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type FunctionServiceClient.

To create a concrete instance, see MakeFunctionServiceConnection().

For mocking, see functions_v2_mocks::MockFunctionServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual GetFunction(google::cloud::functions::v2::GetFunctionRequest const &)

Parameter
NameDescription
request google::cloud::functions::v2::GetFunctionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::functions::v2::Function >

virtual ListFunctions(google::cloud::functions::v2::ListFunctionsRequest)

Parameter
NameDescription
request google::cloud::functions::v2::ListFunctionsRequest
Returns
TypeDescription
StreamRange< google::cloud::functions::v2::Function >

virtual CreateFunction(google::cloud::functions::v2::CreateFunctionRequest const &)

Parameter
NameDescription
request google::cloud::functions::v2::CreateFunctionRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::functions::v2::Function > >

virtual UpdateFunction(google::cloud::functions::v2::UpdateFunctionRequest const &)

Parameter
NameDescription
request google::cloud::functions::v2::UpdateFunctionRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::functions::v2::Function > >

virtual DeleteFunction(google::cloud::functions::v2::DeleteFunctionRequest const &)

Parameter
NameDescription
request google::cloud::functions::v2::DeleteFunctionRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::functions::v2::OperationMetadata > >

virtual GenerateUploadUrl(google::cloud::functions::v2::GenerateUploadUrlRequest const &)

Parameter
NameDescription
request google::cloud::functions::v2::GenerateUploadUrlRequest const &
Returns
TypeDescription
StatusOr< google::cloud::functions::v2::GenerateUploadUrlResponse >

virtual GenerateDownloadUrl(google::cloud::functions::v2::GenerateDownloadUrlRequest const &)

Parameter
NameDescription
request google::cloud::functions::v2::GenerateDownloadUrlRequest const &
Returns
TypeDescription
StatusOr< google::cloud::functions::v2::GenerateDownloadUrlResponse >

virtual ListRuntimes(google::cloud::functions::v2::ListRuntimesRequest const &)

Parameter
NameDescription
request google::cloud::functions::v2::ListRuntimesRequest const &
Returns
TypeDescription
StatusOr< google::cloud::functions::v2::ListRuntimesResponse >