Class FunctionServiceConnection (2.28.0)

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
Type Description
Options

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

Parameter
Name Description
request google::cloud::functions::v2::GetFunctionRequest const &
Returns
Type Description
StatusOr< google::cloud::functions::v2::Function >

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

Parameter
Name Description
request google::cloud::functions::v2::ListFunctionsRequest
Returns
Type Description
StreamRange< google::cloud::functions::v2::Function >

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

Parameter
Name Description
request google::cloud::functions::v2::CreateFunctionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::functions::v2::Function > >

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

Parameters
Name Description
NoAwaitTag
request google::cloud::functions::v2::CreateFunctionRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateFunction(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::functions::v2::Function > >

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

Parameter
Name Description
request google::cloud::functions::v2::UpdateFunctionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::functions::v2::Function > >

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

Parameters
Name Description
NoAwaitTag
request google::cloud::functions::v2::UpdateFunctionRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateFunction(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::functions::v2::Function > >

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

Parameter
Name Description
request google::cloud::functions::v2::DeleteFunctionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::functions::v2::OperationMetadata > >

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

Parameters
Name Description
NoAwaitTag
request google::cloud::functions::v2::DeleteFunctionRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteFunction(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::functions::v2::OperationMetadata > >

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

Parameter
Name Description
request google::cloud::functions::v2::GenerateUploadUrlRequest const &
Returns
Type Description
StatusOr< google::cloud::functions::v2::GenerateUploadUrlResponse >

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

Parameter
Name Description
request google::cloud::functions::v2::GenerateDownloadUrlRequest const &
Returns
Type Description
StatusOr< google::cloud::functions::v2::GenerateDownloadUrlResponse >

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

Parameter
Name Description
request google::cloud::functions::v2::ListRuntimesRequest const &
Returns
Type Description
StatusOr< google::cloud::functions::v2::ListRuntimesResponse >