Class AppHubGrpc.AppHubFutureStub (0.4.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
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
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
NameDescription
requestCreateApplicationRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

createService(CreateServiceRequest request)

public ListenableFuture<Operation> createService(CreateServiceRequest request)

Creates a Service in an Application.

Parameter
NameDescription
requestCreateServiceRequest
Returns
TypeDescription
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
NameDescription
requestCreateServiceProjectAttachmentRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

createWorkload(CreateWorkloadRequest request)

public ListenableFuture<Operation> createWorkload(CreateWorkloadRequest request)

Creates a Workload in an Application.

Parameter
NameDescription
requestCreateWorkloadRequest
Returns
TypeDescription
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
NameDescription
requestDeleteApplicationRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteService(DeleteServiceRequest request)

public ListenableFuture<Operation> deleteService(DeleteServiceRequest request)

Deletes a Service from an Application.

Parameter
NameDescription
requestDeleteServiceRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteServiceProjectAttachment(DeleteServiceProjectAttachmentRequest request)

public ListenableFuture<Operation> deleteServiceProjectAttachment(DeleteServiceProjectAttachmentRequest request)

Deletes a service project attachment.

Parameter
NameDescription
requestDeleteServiceProjectAttachmentRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteWorkload(DeleteWorkloadRequest request)

public ListenableFuture<Operation> deleteWorkload(DeleteWorkloadRequest request)

Deletes a Workload from an Application.

Parameter
NameDescription
requestDeleteWorkloadRequest
Returns
TypeDescription
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
NameDescription
requestDetachServiceProjectAttachmentRequest
Returns
TypeDescription
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
NameDescription
requestGetApplicationRequest
Returns
TypeDescription
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
NameDescription
requestGetDiscoveredServiceRequest
Returns
TypeDescription
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
NameDescription
requestGetDiscoveredWorkloadRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<DiscoveredWorkload>

getService(GetServiceRequest request)

public ListenableFuture<Service> getService(GetServiceRequest request)

Gets a Service in an Application.

Parameter
NameDescription
requestGetServiceRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Service>

getServiceProjectAttachment(GetServiceProjectAttachmentRequest request)

public ListenableFuture<ServiceProjectAttachment> getServiceProjectAttachment(GetServiceProjectAttachmentRequest request)

Gets a service project attachment.

Parameter
NameDescription
requestGetServiceProjectAttachmentRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ServiceProjectAttachment>

getWorkload(GetWorkloadRequest request)

public ListenableFuture<Workload> getWorkload(GetWorkloadRequest request)

Gets a Workload in an Application.

Parameter
NameDescription
requestGetWorkloadRequest
Returns
TypeDescription
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
NameDescription
requestListApplicationsRequest
Returns
TypeDescription
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
NameDescription
requestListDiscoveredServicesRequest
Returns
TypeDescription
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
NameDescription
requestListDiscoveredWorkloadsRequest
Returns
TypeDescription
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
NameDescription
requestListServiceProjectAttachmentsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListServiceProjectAttachmentsResponse>

listServices(ListServicesRequest request)

public ListenableFuture<ListServicesResponse> listServices(ListServicesRequest request)

Lists Services in an Application.

Parameter
NameDescription
requestListServicesRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListServicesResponse>

listWorkloads(ListWorkloadsRequest request)

public ListenableFuture<ListWorkloadsResponse> listWorkloads(ListWorkloadsRequest request)

Lists Workloads in an Application.

Parameter
NameDescription
requestListWorkloadsRequest
Returns
TypeDescription
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
NameDescription
requestLookupDiscoveredServiceRequest
Returns
TypeDescription
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
NameDescription
requestLookupDiscoveredWorkloadRequest
Returns
TypeDescription
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
NameDescription
requestLookupServiceProjectAttachmentRequest
Returns
TypeDescription
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
NameDescription
requestUpdateApplicationRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

updateService(UpdateServiceRequest request)

public ListenableFuture<Operation> updateService(UpdateServiceRequest request)

Updates a Service in an Application.

Parameter
NameDescription
requestUpdateServiceRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

updateWorkload(UpdateWorkloadRequest request)

public ListenableFuture<Operation> updateWorkload(UpdateWorkloadRequest request)

Updates a Workload in an Application.

Parameter
NameDescription
requestUpdateWorkloadRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>