Class RegistrationService.RegistrationServiceBase (1.0.0)

[BindServiceMethod(typeof(RegistrationService), "BindService")]
public abstract class RegistrationServiceBase

Base class for server-side implementations of RegistrationService

Inheritance

System.Object > RegistrationService.RegistrationServiceBase

Namespace

Google.Cloud.ServiceDirectory.V1

Assembly

Google.Cloud.ServiceDirectory.V1.dll

Methods

CreateEndpoint(CreateEndpointRequest, ServerCallContext)

public virtual Task<Endpoint> CreateEndpoint(CreateEndpointRequest request, ServerCallContext context)

Creates a endpoint, and returns the new Endpoint.

Parameters
NameDescription
requestCreateEndpointRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Endpoint>

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

CreateNamespace(CreateNamespaceRequest, ServerCallContext)

public virtual Task<Namespace> CreateNamespace(CreateNamespaceRequest request, ServerCallContext context)

Creates a namespace, and returns the new Namespace.

Parameters
NameDescription
requestCreateNamespaceRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Namespace>

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

CreateService(CreateServiceRequest, ServerCallContext)

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

Creates a service, and returns the new Service.

Parameters
NameDescription
requestCreateServiceRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Service>

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

DeleteEndpoint(DeleteEndpointRequest, ServerCallContext)

public virtual Task<Empty> DeleteEndpoint(DeleteEndpointRequest request, ServerCallContext context)

Deletes a endpoint.

Parameters
NameDescription
requestDeleteEndpointRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Google.Protobuf.WellKnownTypes.Empty>

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

DeleteNamespace(DeleteNamespaceRequest, ServerCallContext)

public virtual Task<Empty> DeleteNamespace(DeleteNamespaceRequest request, ServerCallContext context)

Deletes a namespace. This also deletes all services and endpoints in the namespace.

Parameters
NameDescription
requestDeleteNamespaceRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Google.Protobuf.WellKnownTypes.Empty>

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

DeleteService(DeleteServiceRequest, ServerCallContext)

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

Deletes a service. This also deletes all endpoints associated with the service.

Parameters
NameDescription
requestDeleteServiceRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Google.Protobuf.WellKnownTypes.Empty>

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

GetEndpoint(GetEndpointRequest, ServerCallContext)

public virtual Task<Endpoint> GetEndpoint(GetEndpointRequest request, ServerCallContext context)

Gets a endpoint.

Parameters
NameDescription
requestGetEndpointRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Endpoint>

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

GetIamPolicy(GetIamPolicyRequest, ServerCallContext)

public virtual Task<Policy> GetIamPolicy(GetIamPolicyRequest request, ServerCallContext context)

Gets the IAM Policy for a resource (namespace or service only).

Parameters
NameDescription
requestGoogle.Cloud.Iam.V1.GetIamPolicyRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Google.Cloud.Iam.V1.Policy>

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

GetNamespace(GetNamespaceRequest, ServerCallContext)

public virtual Task<Namespace> GetNamespace(GetNamespaceRequest request, ServerCallContext context)

Gets a namespace.

Parameters
NameDescription
requestGetNamespaceRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Namespace>

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.

Parameters
NameDescription
requestGetServiceRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Service>

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

ListEndpoints(ListEndpointsRequest, ServerCallContext)

public virtual Task<ListEndpointsResponse> ListEndpoints(ListEndpointsRequest request, ServerCallContext context)

Lists all endpoints.

Parameters
NameDescription
requestListEndpointsRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<ListEndpointsResponse>

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

ListNamespaces(ListNamespacesRequest, ServerCallContext)

public virtual Task<ListNamespacesResponse> ListNamespaces(ListNamespacesRequest request, ServerCallContext context)

Lists all namespaces.

Parameters
NameDescription
requestListNamespacesRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<ListNamespacesResponse>

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 all services belonging to a namespace.

Parameters
NameDescription
requestListServicesRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<ListServicesResponse>

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

SetIamPolicy(SetIamPolicyRequest, ServerCallContext)

public virtual Task<Policy> SetIamPolicy(SetIamPolicyRequest request, ServerCallContext context)

Sets the IAM Policy for a resource (namespace or service only).

Parameters
NameDescription
requestGoogle.Cloud.Iam.V1.SetIamPolicyRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Google.Cloud.Iam.V1.Policy>

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

TestIamPermissions(TestIamPermissionsRequest, ServerCallContext)

public virtual Task<TestIamPermissionsResponse> TestIamPermissions(TestIamPermissionsRequest request, ServerCallContext context)

Tests IAM permissions for a resource (namespace or service only).

Parameters
NameDescription
requestGoogle.Cloud.Iam.V1.TestIamPermissionsRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Google.Cloud.Iam.V1.TestIamPermissionsResponse>

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

UpdateEndpoint(UpdateEndpointRequest, ServerCallContext)

public virtual Task<Endpoint> UpdateEndpoint(UpdateEndpointRequest request, ServerCallContext context)

Updates a endpoint.

Parameters
NameDescription
requestUpdateEndpointRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Endpoint>

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

UpdateNamespace(UpdateNamespaceRequest, ServerCallContext)

public virtual Task<Namespace> UpdateNamespace(UpdateNamespaceRequest request, ServerCallContext context)

Updates a namespace.

Parameters
NameDescription
requestUpdateNamespaceRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Namespace>

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

UpdateService(UpdateServiceRequest, ServerCallContext)

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

Updates a service.

Parameters
NameDescription
requestUpdateServiceRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Service>

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