Class CloudFunctionsServiceConnection (2.21.0-rc)

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

To create a concrete instance, see MakeCloudFunctionsServiceConnection().

For mocking, see functions_v1_mocks::MockCloudFunctionsServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::functions::v1::ListFunctionsRequest
Returns
TypeDescription
StreamRange< google::cloud::functions::v1::CloudFunction >

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

Parameter
NameDescription
request google::cloud::functions::v1::GetFunctionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::functions::v1::CloudFunction >

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

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

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

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

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

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

virtual CallFunction(google::cloud::functions::v1::CallFunctionRequest const &)

Parameter
NameDescription
request google::cloud::functions::v1::CallFunctionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::functions::v1::CallFunctionResponse >

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

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

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

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

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

Parameter
NameDescription
request google::iam::v1::SetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

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

Parameter
NameDescription
request google::iam::v1::GetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

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

Parameter
NameDescription
request google::iam::v1::TestIamPermissionsRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::TestIamPermissionsResponse >