Class AppHubGrpc.AppHubStub (0.17.0)

public static final class AppHubGrpc.AppHubStub extends AbstractAsyncStub<AppHubGrpc.AppHubStub>

A stub to allow clients to do asynchronous 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.AbstractAsyncStub > AppHubGrpc.AppHubStub

Methods

build(Channel channel, CallOptions callOptions)

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

createApplication(CreateApplicationRequest request, StreamObserver<Operation> responseObserver)

public 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 void updateWorkload(UpdateWorkloadRequest request, StreamObserver<Operation> responseObserver)

Updates a Workload in an Application.

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