Class AppHubGrpc.AppHubFutureStub (0.5.0)

public static final class AppHubGrpc.AppHubFutureStub extends AbstractFutureStub<AppHubGrpc.AppHubFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service AppHub.

The App Hub API allows you to manage App Hub resources.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > AppHubGrpc.AppHubFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected AppHubGrpc.AppHubFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
AppHubGrpc.AppHubFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createApplication(CreateApplicationRequest request)

public ListenableFuture<Operation> createApplication(CreateApplicationRequest request)

Creates an Application in a host project and location.

Parameter
Name Description
request CreateApplicationRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

createService(CreateServiceRequest request)

public ListenableFuture<Operation> createService(CreateServiceRequest request)

Creates a Service in an Application.

Parameter
Name Description
request CreateServiceRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

createServiceProjectAttachment(CreateServiceProjectAttachmentRequest request)

public ListenableFuture<Operation> createServiceProjectAttachment(CreateServiceProjectAttachmentRequest request)

Attaches a service project to the host project.

Parameter
Name Description
request CreateServiceProjectAttachmentRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

createWorkload(CreateWorkloadRequest request)

public ListenableFuture<Operation> createWorkload(CreateWorkloadRequest request)

Creates a Workload in an Application.

Parameter
Name Description
request CreateWorkloadRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteApplication(DeleteApplicationRequest request)

public ListenableFuture<Operation> deleteApplication(DeleteApplicationRequest request)

Deletes an Application in a host project and location.

Parameter
Name Description
request DeleteApplicationRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteService(DeleteServiceRequest request)

public ListenableFuture<Operation> deleteService(DeleteServiceRequest request)

Deletes a Service from an Application.

Parameter
Name Description
request DeleteServiceRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteServiceProjectAttachment(DeleteServiceProjectAttachmentRequest request)

public ListenableFuture<Operation> deleteServiceProjectAttachment(DeleteServiceProjectAttachmentRequest request)

Deletes a service project attachment.

Parameter
Name Description
request DeleteServiceProjectAttachmentRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteWorkload(DeleteWorkloadRequest request)

public ListenableFuture<Operation> deleteWorkload(DeleteWorkloadRequest request)

Deletes a Workload from an Application.

Parameter
Name Description
request DeleteWorkloadRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

detachServiceProjectAttachment(DetachServiceProjectAttachmentRequest request)

public ListenableFuture<DetachServiceProjectAttachmentResponse> detachServiceProjectAttachment(DetachServiceProjectAttachmentRequest request)

Detaches a service project from a host project. You can call this API from any service project without needing access to the host project that it is attached to.

Parameter
Name Description
request DetachServiceProjectAttachmentRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DetachServiceProjectAttachmentResponse>

getApplication(GetApplicationRequest request)

public ListenableFuture<Application> getApplication(GetApplicationRequest request)

Gets an Application in a host project and location.

Parameter
Name Description
request GetApplicationRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Application>

getDiscoveredService(GetDiscoveredServiceRequest request)

public ListenableFuture<DiscoveredService> getDiscoveredService(GetDiscoveredServiceRequest request)

Gets a Discovered Service in a host project and location.

Parameter
Name Description
request GetDiscoveredServiceRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DiscoveredService>

getDiscoveredWorkload(GetDiscoveredWorkloadRequest request)

public ListenableFuture<DiscoveredWorkload> getDiscoveredWorkload(GetDiscoveredWorkloadRequest request)

Gets a Discovered Workload in a host project and location.

Parameter
Name Description
request GetDiscoveredWorkloadRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DiscoveredWorkload>

getService(GetServiceRequest request)

public ListenableFuture<Service> getService(GetServiceRequest request)

Gets a Service in an Application.

Parameter
Name Description
request GetServiceRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Service>

getServiceProjectAttachment(GetServiceProjectAttachmentRequest request)

public ListenableFuture<ServiceProjectAttachment> getServiceProjectAttachment(GetServiceProjectAttachmentRequest request)

Gets a service project attachment.

Parameter
Name Description
request GetServiceProjectAttachmentRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ServiceProjectAttachment>

getWorkload(GetWorkloadRequest request)

public ListenableFuture<Workload> getWorkload(GetWorkloadRequest request)

Gets a Workload in an Application.

Parameter
Name Description
request GetWorkloadRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Workload>

listApplications(ListApplicationsRequest request)

public ListenableFuture<ListApplicationsResponse> listApplications(ListApplicationsRequest request)

Lists Applications in a host project and location.

Parameter
Name Description
request ListApplicationsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListApplicationsResponse>

listDiscoveredServices(ListDiscoveredServicesRequest request)

public ListenableFuture<ListDiscoveredServicesResponse> listDiscoveredServices(ListDiscoveredServicesRequest request)

Lists Discovered Services that can be added to an Application in a host project and location.

Parameter
Name Description
request ListDiscoveredServicesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListDiscoveredServicesResponse>

listDiscoveredWorkloads(ListDiscoveredWorkloadsRequest request)

public ListenableFuture<ListDiscoveredWorkloadsResponse> listDiscoveredWorkloads(ListDiscoveredWorkloadsRequest request)

Lists Discovered Workloads that can be added to an Application in a host project and location.

Parameter
Name Description
request ListDiscoveredWorkloadsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListDiscoveredWorkloadsResponse>

listServiceProjectAttachments(ListServiceProjectAttachmentsRequest request)

public ListenableFuture<ListServiceProjectAttachmentsResponse> listServiceProjectAttachments(ListServiceProjectAttachmentsRequest request)

Lists service projects attached to the host project.

Parameter
Name Description
request ListServiceProjectAttachmentsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListServiceProjectAttachmentsResponse>

listServices(ListServicesRequest request)

public ListenableFuture<ListServicesResponse> listServices(ListServicesRequest request)

Lists Services in an Application.

Parameter
Name Description
request ListServicesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListServicesResponse>

listWorkloads(ListWorkloadsRequest request)

public ListenableFuture<ListWorkloadsResponse> listWorkloads(ListWorkloadsRequest request)

Lists Workloads in an Application.

Parameter
Name Description
request ListWorkloadsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListWorkloadsResponse>

lookupDiscoveredService(LookupDiscoveredServiceRequest request)

public ListenableFuture<LookupDiscoveredServiceResponse> lookupDiscoveredService(LookupDiscoveredServiceRequest request)

Lists a Discovered Service in a host project and location, with a given resource URI.

Parameter
Name Description
request LookupDiscoveredServiceRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<LookupDiscoveredServiceResponse>

lookupDiscoveredWorkload(LookupDiscoveredWorkloadRequest request)

public ListenableFuture<LookupDiscoveredWorkloadResponse> lookupDiscoveredWorkload(LookupDiscoveredWorkloadRequest request)

Lists a Discovered Workload in a host project and location, with a given resource URI.

Parameter
Name Description
request LookupDiscoveredWorkloadRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<LookupDiscoveredWorkloadResponse>

lookupServiceProjectAttachment(LookupServiceProjectAttachmentRequest request)

public ListenableFuture<LookupServiceProjectAttachmentResponse> lookupServiceProjectAttachment(LookupServiceProjectAttachmentRequest request)

Lists a service project attachment for a given service project. You can call this API from any project to find if it is attached to a host project.

Parameter
Name Description
request LookupServiceProjectAttachmentRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<LookupServiceProjectAttachmentResponse>

updateApplication(UpdateApplicationRequest request)

public ListenableFuture<Operation> updateApplication(UpdateApplicationRequest request)

Updates an Application in a host project and location.

Parameter
Name Description
request UpdateApplicationRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

updateService(UpdateServiceRequest request)

public ListenableFuture<Operation> updateService(UpdateServiceRequest request)

Updates a Service in an Application.

Parameter
Name Description
request UpdateServiceRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

updateWorkload(UpdateWorkloadRequest request)

public ListenableFuture<Operation> updateWorkload(UpdateWorkloadRequest request)

Updates a Workload in an Application.

Parameter
Name Description
request UpdateWorkloadRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>