Class FunctionServiceConnection (2.32.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 >

virtual ListLocations(google::cloud::location::ListLocationsRequest)

Parameter
Name Description
request google::cloud::location::ListLocationsRequest
Returns
Type Description
StreamRange< google::cloud::location::Location >

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >