Class AppHubConnection (2.33.0)

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

To create a concrete instance, see MakeAppHubConnection().

For mocking, see apphub_v1_mocks::MockAppHubConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual LookupServiceProjectAttachment(google::cloud::apphub::v1::LookupServiceProjectAttachmentRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::LookupServiceProjectAttachmentRequest const &
Returns
Type Description
StatusOr< google::cloud::apphub::v1::LookupServiceProjectAttachmentResponse >

virtual ListServiceProjectAttachments(google::cloud::apphub::v1::ListServiceProjectAttachmentsRequest)

Parameter
Name Description
request google::cloud::apphub::v1::ListServiceProjectAttachmentsRequest
Returns
Type Description
StreamRange< google::cloud::apphub::v1::ServiceProjectAttachment >

virtual CreateServiceProjectAttachment(google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::ServiceProjectAttachment > >

virtual CreateServiceProjectAttachment(NoAwaitTag, google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::ServiceProjectAttachment > >

virtual GetServiceProjectAttachment(google::cloud::apphub::v1::GetServiceProjectAttachmentRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::GetServiceProjectAttachmentRequest const &
Returns
Type Description
StatusOr< google::cloud::apphub::v1::ServiceProjectAttachment >

virtual DeleteServiceProjectAttachment(google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::OperationMetadata > >

virtual DeleteServiceProjectAttachment(NoAwaitTag, google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

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

virtual DetachServiceProjectAttachment(google::cloud::apphub::v1::DetachServiceProjectAttachmentRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::DetachServiceProjectAttachmentRequest const &
Returns
Type Description
StatusOr< google::cloud::apphub::v1::DetachServiceProjectAttachmentResponse >

virtual ListDiscoveredServices(google::cloud::apphub::v1::ListDiscoveredServicesRequest)

Parameter
Name Description
request google::cloud::apphub::v1::ListDiscoveredServicesRequest
Returns
Type Description
StreamRange< google::cloud::apphub::v1::DiscoveredService >

virtual GetDiscoveredService(google::cloud::apphub::v1::GetDiscoveredServiceRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::GetDiscoveredServiceRequest const &
Returns
Type Description
StatusOr< google::cloud::apphub::v1::DiscoveredService >

virtual LookupDiscoveredService(google::cloud::apphub::v1::LookupDiscoveredServiceRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::LookupDiscoveredServiceRequest const &
Returns
Type Description
StatusOr< google::cloud::apphub::v1::LookupDiscoveredServiceResponse >

virtual ListServices(google::cloud::apphub::v1::ListServicesRequest)

Parameter
Name Description
request google::cloud::apphub::v1::ListServicesRequest
Returns
Type Description
StreamRange< google::cloud::apphub::v1::Service >

virtual CreateService(google::cloud::apphub::v1::CreateServiceRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::CreateServiceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::Service > >

virtual CreateService(NoAwaitTag, google::cloud::apphub::v1::CreateServiceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::apphub::v1::CreateServiceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::Service > >

virtual GetService(google::cloud::apphub::v1::GetServiceRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::GetServiceRequest const &
Returns
Type Description
StatusOr< google::cloud::apphub::v1::Service >

virtual UpdateService(google::cloud::apphub::v1::UpdateServiceRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::UpdateServiceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::Service > >

virtual UpdateService(NoAwaitTag, google::cloud::apphub::v1::UpdateServiceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::apphub::v1::UpdateServiceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::Service > >

virtual DeleteService(google::cloud::apphub::v1::DeleteServiceRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::DeleteServiceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::OperationMetadata > >

virtual DeleteService(NoAwaitTag, google::cloud::apphub::v1::DeleteServiceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::apphub::v1::DeleteServiceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

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

virtual ListDiscoveredWorkloads(google::cloud::apphub::v1::ListDiscoveredWorkloadsRequest)

Parameter
Name Description
request google::cloud::apphub::v1::ListDiscoveredWorkloadsRequest
Returns
Type Description
StreamRange< google::cloud::apphub::v1::DiscoveredWorkload >

virtual GetDiscoveredWorkload(google::cloud::apphub::v1::GetDiscoveredWorkloadRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::GetDiscoveredWorkloadRequest const &
Returns
Type Description
StatusOr< google::cloud::apphub::v1::DiscoveredWorkload >

virtual LookupDiscoveredWorkload(google::cloud::apphub::v1::LookupDiscoveredWorkloadRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::LookupDiscoveredWorkloadRequest const &
Returns
Type Description
StatusOr< google::cloud::apphub::v1::LookupDiscoveredWorkloadResponse >

virtual ListWorkloads(google::cloud::apphub::v1::ListWorkloadsRequest)

Parameter
Name Description
request google::cloud::apphub::v1::ListWorkloadsRequest
Returns
Type Description
StreamRange< google::cloud::apphub::v1::Workload >

virtual CreateWorkload(google::cloud::apphub::v1::CreateWorkloadRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::CreateWorkloadRequest const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::Workload > >

virtual CreateWorkload(NoAwaitTag, google::cloud::apphub::v1::CreateWorkloadRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::apphub::v1::CreateWorkloadRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::Workload > >

virtual GetWorkload(google::cloud::apphub::v1::GetWorkloadRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::GetWorkloadRequest const &
Returns
Type Description
StatusOr< google::cloud::apphub::v1::Workload >

virtual UpdateWorkload(google::cloud::apphub::v1::UpdateWorkloadRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::UpdateWorkloadRequest const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::Workload > >

virtual UpdateWorkload(NoAwaitTag, google::cloud::apphub::v1::UpdateWorkloadRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::apphub::v1::UpdateWorkloadRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::Workload > >

virtual DeleteWorkload(google::cloud::apphub::v1::DeleteWorkloadRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::DeleteWorkloadRequest const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::OperationMetadata > >

virtual DeleteWorkload(NoAwaitTag, google::cloud::apphub::v1::DeleteWorkloadRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::apphub::v1::DeleteWorkloadRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

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

virtual ListApplications(google::cloud::apphub::v1::ListApplicationsRequest)

Parameter
Name Description
request google::cloud::apphub::v1::ListApplicationsRequest
Returns
Type Description
StreamRange< google::cloud::apphub::v1::Application >

virtual CreateApplication(google::cloud::apphub::v1::CreateApplicationRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::CreateApplicationRequest const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::Application > >

virtual CreateApplication(NoAwaitTag, google::cloud::apphub::v1::CreateApplicationRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::apphub::v1::CreateApplicationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::Application > >

virtual GetApplication(google::cloud::apphub::v1::GetApplicationRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::GetApplicationRequest const &
Returns
Type Description
StatusOr< google::cloud::apphub::v1::Application >

virtual UpdateApplication(google::cloud::apphub::v1::UpdateApplicationRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::UpdateApplicationRequest const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::Application > >

virtual UpdateApplication(NoAwaitTag, google::cloud::apphub::v1::UpdateApplicationRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::apphub::v1::UpdateApplicationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::Application > >

virtual DeleteApplication(google::cloud::apphub::v1::DeleteApplicationRequest const &)

Parameter
Name Description
request google::cloud::apphub::v1::DeleteApplicationRequest const &
Returns
Type Description
future< StatusOr< google::cloud::apphub::v1::OperationMetadata > >

virtual DeleteApplication(NoAwaitTag, google::cloud::apphub::v1::DeleteApplicationRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::apphub::v1::DeleteApplicationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

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

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

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

virtual GetLocation(google::cloud::location::GetLocationRequest const &)

Parameter
Name Description
request google::cloud::location::GetLocationRequest const &
Returns
Type Description
StatusOr< 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 >

virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)

Parameter
Name Description
request google::longrunning::DeleteOperationRequest const &
Returns
Type Description
Status

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status