Interface AppHubGrpc.AsyncService (0.10.0)

public static interface AppHubGrpc.AsyncService

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

Methods

createApplication(CreateApplicationRequest request, StreamObserver<Operation> responseObserver)

public default void createApplication(CreateApplicationRequest request, StreamObserver<Operation> responseObserver)

Creates an Application in a host project and location.

Parameters
Name Description
request CreateApplicationRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

createService(CreateServiceRequest request, StreamObserver<Operation> responseObserver)

public default void createService(CreateServiceRequest request, StreamObserver<Operation> responseObserver)

Creates a Service in an Application.

Parameters
Name Description
request CreateServiceRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

createServiceProjectAttachment(CreateServiceProjectAttachmentRequest request, StreamObserver<Operation> responseObserver)

public default void createServiceProjectAttachment(CreateServiceProjectAttachmentRequest request, StreamObserver<Operation> responseObserver)

Attaches a service project to the host project.

Parameters
Name Description
request CreateServiceProjectAttachmentRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

createWorkload(CreateWorkloadRequest request, StreamObserver<Operation> responseObserver)

public default void createWorkload(CreateWorkloadRequest request, StreamObserver<Operation> responseObserver)

Creates a Workload in an Application.

Parameters
Name Description
request CreateWorkloadRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteApplication(DeleteApplicationRequest request, StreamObserver<Operation> responseObserver)

public default void deleteApplication(DeleteApplicationRequest request, StreamObserver<Operation> responseObserver)

Deletes an Application in a host project and location.

Parameters
Name Description
request DeleteApplicationRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteService(DeleteServiceRequest request, StreamObserver<Operation> responseObserver)

public default void deleteService(DeleteServiceRequest request, StreamObserver<Operation> responseObserver)

Deletes a Service from an Application.

Parameters
Name Description
request DeleteServiceRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteServiceProjectAttachment(DeleteServiceProjectAttachmentRequest request, StreamObserver<Operation> responseObserver)

public default void deleteServiceProjectAttachment(DeleteServiceProjectAttachmentRequest request, StreamObserver<Operation> responseObserver)

Deletes a service project attachment.

Parameters
Name Description
request DeleteServiceProjectAttachmentRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteWorkload(DeleteWorkloadRequest request, StreamObserver<Operation> responseObserver)

public default void deleteWorkload(DeleteWorkloadRequest request, StreamObserver<Operation> responseObserver)

Deletes a Workload from an Application.

Parameters
Name Description
request DeleteWorkloadRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

detachServiceProjectAttachment(DetachServiceProjectAttachmentRequest request, StreamObserver<DetachServiceProjectAttachmentResponse> responseObserver)

public default void detachServiceProjectAttachment(DetachServiceProjectAttachmentRequest request, StreamObserver<DetachServiceProjectAttachmentResponse> responseObserver)

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.

Parameters
Name Description
request DetachServiceProjectAttachmentRequest
responseObserver io.grpc.stub.StreamObserver<DetachServiceProjectAttachmentResponse>

getApplication(GetApplicationRequest request, StreamObserver<Application> responseObserver)

public default void getApplication(GetApplicationRequest request, StreamObserver<Application> responseObserver)

Gets an Application in a host project and location.

Parameters
Name Description
request GetApplicationRequest
responseObserver io.grpc.stub.StreamObserver<Application>

getDiscoveredService(GetDiscoveredServiceRequest request, StreamObserver<DiscoveredService> responseObserver)

public default void getDiscoveredService(GetDiscoveredServiceRequest request, StreamObserver<DiscoveredService> responseObserver)

Gets a Discovered Service in a host project and location.

Parameters
Name Description
request GetDiscoveredServiceRequest
responseObserver io.grpc.stub.StreamObserver<DiscoveredService>

getDiscoveredWorkload(GetDiscoveredWorkloadRequest request, StreamObserver<DiscoveredWorkload> responseObserver)

public default void getDiscoveredWorkload(GetDiscoveredWorkloadRequest request, StreamObserver<DiscoveredWorkload> responseObserver)

Gets a Discovered Workload in a host project and location.

Parameters
Name Description
request GetDiscoveredWorkloadRequest
responseObserver io.grpc.stub.StreamObserver<DiscoveredWorkload>

getService(GetServiceRequest request, StreamObserver<Service> responseObserver)

public default void getService(GetServiceRequest request, StreamObserver<Service> responseObserver)

Gets a Service in an Application.

Parameters
Name Description
request GetServiceRequest
responseObserver io.grpc.stub.StreamObserver<Service>

getServiceProjectAttachment(GetServiceProjectAttachmentRequest request, StreamObserver<ServiceProjectAttachment> responseObserver)

public default void getServiceProjectAttachment(GetServiceProjectAttachmentRequest request, StreamObserver<ServiceProjectAttachment> responseObserver)

Gets a service project attachment.

Parameters
Name Description
request GetServiceProjectAttachmentRequest
responseObserver io.grpc.stub.StreamObserver<ServiceProjectAttachment>

getWorkload(GetWorkloadRequest request, StreamObserver<Workload> responseObserver)

public default void getWorkload(GetWorkloadRequest request, StreamObserver<Workload> responseObserver)

Gets a Workload in an Application.

Parameters
Name Description
request GetWorkloadRequest
responseObserver io.grpc.stub.StreamObserver<Workload>

listApplications(ListApplicationsRequest request, StreamObserver<ListApplicationsResponse> responseObserver)

public default void listApplications(ListApplicationsRequest request, StreamObserver<ListApplicationsResponse> responseObserver)

Lists Applications in a host project and location.

Parameters
Name Description
request ListApplicationsRequest
responseObserver io.grpc.stub.StreamObserver<ListApplicationsResponse>

listDiscoveredServices(ListDiscoveredServicesRequest request, StreamObserver<ListDiscoveredServicesResponse> responseObserver)

public default void listDiscoveredServices(ListDiscoveredServicesRequest request, StreamObserver<ListDiscoveredServicesResponse> responseObserver)

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

Parameters
Name Description
request ListDiscoveredServicesRequest
responseObserver io.grpc.stub.StreamObserver<ListDiscoveredServicesResponse>

listDiscoveredWorkloads(ListDiscoveredWorkloadsRequest request, StreamObserver<ListDiscoveredWorkloadsResponse> responseObserver)

public default void listDiscoveredWorkloads(ListDiscoveredWorkloadsRequest request, StreamObserver<ListDiscoveredWorkloadsResponse> responseObserver)

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

Parameters
Name Description
request ListDiscoveredWorkloadsRequest
responseObserver io.grpc.stub.StreamObserver<ListDiscoveredWorkloadsResponse>

listServiceProjectAttachments(ListServiceProjectAttachmentsRequest request, StreamObserver<ListServiceProjectAttachmentsResponse> responseObserver)

public default void listServiceProjectAttachments(ListServiceProjectAttachmentsRequest request, StreamObserver<ListServiceProjectAttachmentsResponse> responseObserver)

Lists service projects attached to the host project.

Parameters
Name Description
request ListServiceProjectAttachmentsRequest
responseObserver io.grpc.stub.StreamObserver<ListServiceProjectAttachmentsResponse>

listServices(ListServicesRequest request, StreamObserver<ListServicesResponse> responseObserver)

public default void listServices(ListServicesRequest request, StreamObserver<ListServicesResponse> responseObserver)

Lists Services in an Application.

Parameters
Name Description
request ListServicesRequest
responseObserver io.grpc.stub.StreamObserver<ListServicesResponse>

listWorkloads(ListWorkloadsRequest request, StreamObserver<ListWorkloadsResponse> responseObserver)

public default void listWorkloads(ListWorkloadsRequest request, StreamObserver<ListWorkloadsResponse> responseObserver)

Lists Workloads in an Application.

Parameters
Name Description
request ListWorkloadsRequest
responseObserver io.grpc.stub.StreamObserver<ListWorkloadsResponse>

lookupDiscoveredService(LookupDiscoveredServiceRequest request, StreamObserver<LookupDiscoveredServiceResponse> responseObserver)

public default void lookupDiscoveredService(LookupDiscoveredServiceRequest request, StreamObserver<LookupDiscoveredServiceResponse> responseObserver)

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

Parameters
Name Description
request LookupDiscoveredServiceRequest
responseObserver io.grpc.stub.StreamObserver<LookupDiscoveredServiceResponse>

lookupDiscoveredWorkload(LookupDiscoveredWorkloadRequest request, StreamObserver<LookupDiscoveredWorkloadResponse> responseObserver)

public default void lookupDiscoveredWorkload(LookupDiscoveredWorkloadRequest request, StreamObserver<LookupDiscoveredWorkloadResponse> responseObserver)

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

Parameters
Name Description
request LookupDiscoveredWorkloadRequest
responseObserver io.grpc.stub.StreamObserver<LookupDiscoveredWorkloadResponse>

lookupServiceProjectAttachment(LookupServiceProjectAttachmentRequest request, StreamObserver<LookupServiceProjectAttachmentResponse> responseObserver)

public default void lookupServiceProjectAttachment(LookupServiceProjectAttachmentRequest request, StreamObserver<LookupServiceProjectAttachmentResponse> responseObserver)

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.

Parameters
Name Description
request LookupServiceProjectAttachmentRequest
responseObserver io.grpc.stub.StreamObserver<LookupServiceProjectAttachmentResponse>

updateApplication(UpdateApplicationRequest request, StreamObserver<Operation> responseObserver)

public default void updateApplication(UpdateApplicationRequest request, StreamObserver<Operation> responseObserver)

Updates an Application in a host project and location.

Parameters
Name Description
request UpdateApplicationRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

updateService(UpdateServiceRequest request, StreamObserver<Operation> responseObserver)

public default void updateService(UpdateServiceRequest request, StreamObserver<Operation> responseObserver)

Updates a Service in an Application.

Parameters
Name Description
request UpdateServiceRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

updateWorkload(UpdateWorkloadRequest request, StreamObserver<Operation> responseObserver)

public default void updateWorkload(UpdateWorkloadRequest request, StreamObserver<Operation> responseObserver)

Updates a Workload in an Application.

Parameters
Name Description
request UpdateWorkloadRequest
responseObserver io.grpc.stub.StreamObserver<Operation>