Class AppHubConnection (2.26.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(ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateServiceProjectAttachmentRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteServiceProjectAttachmentRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateServiceRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateServiceRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteServiceRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateWorkloadRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateWorkloadRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteWorkloadRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::CreateApplicationRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::UpdateApplicationRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::apphub::v1::DeleteApplicationRequest const &)

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

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

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