App Hub v1 API - Class AppHub.AppHubBase (1.0.0-beta02)

[BindServiceMethod(typeof(AppHub), "BindService")]
public abstract class AppHub.AppHubBase

Reference documentation and code samples for the App Hub v1 API class AppHub.AppHubBase.

Base class for server-side implementations of AppHub

Inheritance

object > AppHub.AppHubBase

Namespace

Google.Cloud.AppHub.V1

Assembly

Google.Cloud.AppHub.V1.dll

Methods

CreateApplication(CreateApplicationRequest, ServerCallContext)

public virtual Task<Operation> CreateApplication(CreateApplicationRequest request, ServerCallContext context)

Creates an Application in a host project and location.

Parameters
Name Description
request CreateApplicationRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

CreateService(CreateServiceRequest, ServerCallContext)

public virtual Task<Operation> CreateService(CreateServiceRequest request, ServerCallContext context)

Creates a Service in an Application.

Parameters
Name Description
request CreateServiceRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

CreateServiceProjectAttachment(CreateServiceProjectAttachmentRequest, ServerCallContext)

public virtual Task<Operation> CreateServiceProjectAttachment(CreateServiceProjectAttachmentRequest request, ServerCallContext context)

Attaches a service project to the host project.

Parameters
Name Description
request CreateServiceProjectAttachmentRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

CreateWorkload(CreateWorkloadRequest, ServerCallContext)

public virtual Task<Operation> CreateWorkload(CreateWorkloadRequest request, ServerCallContext context)

Creates a Workload in an Application.

Parameters
Name Description
request CreateWorkloadRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

DeleteApplication(DeleteApplicationRequest, ServerCallContext)

public virtual Task<Operation> DeleteApplication(DeleteApplicationRequest request, ServerCallContext context)

Deletes an Application in a host project and location.

Parameters
Name Description
request DeleteApplicationRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

DeleteService(DeleteServiceRequest, ServerCallContext)

public virtual Task<Operation> DeleteService(DeleteServiceRequest request, ServerCallContext context)

Deletes a Service from an Application.

Parameters
Name Description
request DeleteServiceRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

DeleteServiceProjectAttachment(DeleteServiceProjectAttachmentRequest, ServerCallContext)

public virtual Task<Operation> DeleteServiceProjectAttachment(DeleteServiceProjectAttachmentRequest request, ServerCallContext context)

Deletes a service project attachment.

Parameters
Name Description
request DeleteServiceProjectAttachmentRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

DeleteWorkload(DeleteWorkloadRequest, ServerCallContext)

public virtual Task<Operation> DeleteWorkload(DeleteWorkloadRequest request, ServerCallContext context)

Deletes a Workload from an Application.

Parameters
Name Description
request DeleteWorkloadRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

DetachServiceProjectAttachment(DetachServiceProjectAttachmentRequest, ServerCallContext)

public virtual Task<DetachServiceProjectAttachmentResponse> DetachServiceProjectAttachment(DetachServiceProjectAttachmentRequest request, ServerCallContext context)

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

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskDetachServiceProjectAttachmentResponse

The response to send back to the client (wrapped by a task).

GetApplication(GetApplicationRequest, ServerCallContext)

public virtual Task<Application> GetApplication(GetApplicationRequest request, ServerCallContext context)

Gets an Application in a host project and location.

Parameters
Name Description
request GetApplicationRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskApplication

The response to send back to the client (wrapped by a task).

GetDiscoveredService(GetDiscoveredServiceRequest, ServerCallContext)

public virtual Task<DiscoveredService> GetDiscoveredService(GetDiscoveredServiceRequest request, ServerCallContext context)

Gets a Discovered Service in a host project and location.

Parameters
Name Description
request GetDiscoveredServiceRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskDiscoveredService

The response to send back to the client (wrapped by a task).

GetDiscoveredWorkload(GetDiscoveredWorkloadRequest, ServerCallContext)

public virtual Task<DiscoveredWorkload> GetDiscoveredWorkload(GetDiscoveredWorkloadRequest request, ServerCallContext context)

Gets a Discovered Workload in a host project and location.

Parameters
Name Description
request GetDiscoveredWorkloadRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskDiscoveredWorkload

The response to send back to the client (wrapped by a task).

GetService(GetServiceRequest, ServerCallContext)

public virtual Task<Service> GetService(GetServiceRequest request, ServerCallContext context)

Gets a Service in an Application.

Parameters
Name Description
request GetServiceRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskService

The response to send back to the client (wrapped by a task).

GetServiceProjectAttachment(GetServiceProjectAttachmentRequest, ServerCallContext)

public virtual Task<ServiceProjectAttachment> GetServiceProjectAttachment(GetServiceProjectAttachmentRequest request, ServerCallContext context)

Gets a service project attachment.

Parameters
Name Description
request GetServiceProjectAttachmentRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskServiceProjectAttachment

The response to send back to the client (wrapped by a task).

GetWorkload(GetWorkloadRequest, ServerCallContext)

public virtual Task<Workload> GetWorkload(GetWorkloadRequest request, ServerCallContext context)

Gets a Workload in an Application.

Parameters
Name Description
request GetWorkloadRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskWorkload

The response to send back to the client (wrapped by a task).

ListApplications(ListApplicationsRequest, ServerCallContext)

public virtual Task<ListApplicationsResponse> ListApplications(ListApplicationsRequest request, ServerCallContext context)

Lists Applications in a host project and location.

Parameters
Name Description
request ListApplicationsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListApplicationsResponse

The response to send back to the client (wrapped by a task).

ListDiscoveredServices(ListDiscoveredServicesRequest, ServerCallContext)

public virtual Task<ListDiscoveredServicesResponse> ListDiscoveredServices(ListDiscoveredServicesRequest request, ServerCallContext context)

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

Parameters
Name Description
request ListDiscoveredServicesRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListDiscoveredServicesResponse

The response to send back to the client (wrapped by a task).

ListDiscoveredWorkloads(ListDiscoveredWorkloadsRequest, ServerCallContext)

public virtual Task<ListDiscoveredWorkloadsResponse> ListDiscoveredWorkloads(ListDiscoveredWorkloadsRequest request, ServerCallContext context)

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

Parameters
Name Description
request ListDiscoveredWorkloadsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListDiscoveredWorkloadsResponse

The response to send back to the client (wrapped by a task).

ListServiceProjectAttachments(ListServiceProjectAttachmentsRequest, ServerCallContext)

public virtual Task<ListServiceProjectAttachmentsResponse> ListServiceProjectAttachments(ListServiceProjectAttachmentsRequest request, ServerCallContext context)

Lists service projects attached to the host project.

Parameters
Name Description
request ListServiceProjectAttachmentsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListServiceProjectAttachmentsResponse

The response to send back to the client (wrapped by a task).

ListServices(ListServicesRequest, ServerCallContext)

public virtual Task<ListServicesResponse> ListServices(ListServicesRequest request, ServerCallContext context)

Lists Services in an Application.

Parameters
Name Description
request ListServicesRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListServicesResponse

The response to send back to the client (wrapped by a task).

ListWorkloads(ListWorkloadsRequest, ServerCallContext)

public virtual Task<ListWorkloadsResponse> ListWorkloads(ListWorkloadsRequest request, ServerCallContext context)

Lists Workloads in an Application.

Parameters
Name Description
request ListWorkloadsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListWorkloadsResponse

The response to send back to the client (wrapped by a task).

LookupDiscoveredService(LookupDiscoveredServiceRequest, ServerCallContext)

public virtual Task<LookupDiscoveredServiceResponse> LookupDiscoveredService(LookupDiscoveredServiceRequest request, ServerCallContext context)

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

Parameters
Name Description
request LookupDiscoveredServiceRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskLookupDiscoveredServiceResponse

The response to send back to the client (wrapped by a task).

LookupDiscoveredWorkload(LookupDiscoveredWorkloadRequest, ServerCallContext)

public virtual Task<LookupDiscoveredWorkloadResponse> LookupDiscoveredWorkload(LookupDiscoveredWorkloadRequest request, ServerCallContext context)

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

Parameters
Name Description
request LookupDiscoveredWorkloadRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskLookupDiscoveredWorkloadResponse

The response to send back to the client (wrapped by a task).

LookupServiceProjectAttachment(LookupServiceProjectAttachmentRequest, ServerCallContext)

public virtual Task<LookupServiceProjectAttachmentResponse> LookupServiceProjectAttachment(LookupServiceProjectAttachmentRequest request, ServerCallContext context)

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

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskLookupServiceProjectAttachmentResponse

The response to send back to the client (wrapped by a task).

UpdateApplication(UpdateApplicationRequest, ServerCallContext)

public virtual Task<Operation> UpdateApplication(UpdateApplicationRequest request, ServerCallContext context)

Updates an Application in a host project and location.

Parameters
Name Description
request UpdateApplicationRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

UpdateService(UpdateServiceRequest, ServerCallContext)

public virtual Task<Operation> UpdateService(UpdateServiceRequest request, ServerCallContext context)

Updates a Service in an Application.

Parameters
Name Description
request UpdateServiceRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

UpdateWorkload(UpdateWorkloadRequest, ServerCallContext)

public virtual Task<Operation> UpdateWorkload(UpdateWorkloadRequest request, ServerCallContext context)

Updates a Workload in an Application.

Parameters
Name Description
request UpdateWorkloadRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).