Service Directory v1 API - Class RegistrationService.RegistrationServiceClient (2.6.0)

public class RegistrationService.RegistrationServiceClient : ClientBase<RegistrationService.RegistrationServiceClient>

Reference documentation and code samples for the Service Directory v1 API class RegistrationService.RegistrationServiceClient.

Client for RegistrationService

Inheritance

object > ClientBase > ClientBaseRegistrationServiceRegistrationServiceClient > RegistrationService.RegistrationServiceClient

Namespace

Google.Cloud.ServiceDirectory.V1

Assembly

Google.Cloud.ServiceDirectory.V1.dll

Constructors

RegistrationServiceClient()

protected RegistrationServiceClient()

Protected parameterless constructor to allow creation of test doubles.

RegistrationServiceClient(CallInvoker)

public RegistrationServiceClient(CallInvoker callInvoker)

Creates a new client for RegistrationService that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

RegistrationServiceClient(ChannelBase)

public RegistrationServiceClient(ChannelBase channel)

Creates a new client for RegistrationService

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

RegistrationServiceClient(ClientBaseConfiguration)

protected RegistrationServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateEndpoint(CreateEndpointRequest, CallOptions)

public virtual Endpoint CreateEndpoint(CreateEndpointRequest request, CallOptions options)

Creates an endpoint, and returns the new endpoint.

Parameters
Name Description
request CreateEndpointRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Endpoint

The response received from the server.

CreateEndpoint(CreateEndpointRequest, Metadata, DateTime?, CancellationToken)

public virtual Endpoint CreateEndpoint(CreateEndpointRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates an endpoint, and returns the new endpoint.

Parameters
Name Description
request CreateEndpointRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Endpoint

The response received from the server.

CreateEndpointAsync(CreateEndpointRequest, CallOptions)

public virtual AsyncUnaryCall<Endpoint> CreateEndpointAsync(CreateEndpointRequest request, CallOptions options)

Creates an endpoint, and returns the new endpoint.

Parameters
Name Description
request CreateEndpointRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEndpoint

The call object.

CreateEndpointAsync(CreateEndpointRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Endpoint> CreateEndpointAsync(CreateEndpointRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates an endpoint, and returns the new endpoint.

Parameters
Name Description
request CreateEndpointRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEndpoint

The call object.

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

CreateNamespace(CreateNamespaceRequest, CallOptions)

public virtual Namespace CreateNamespace(CreateNamespaceRequest request, CallOptions options)

Creates a namespace, and returns the new namespace.

Parameters
Name Description
request CreateNamespaceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Namespace

The response received from the server.

CreateNamespace(CreateNamespaceRequest, Metadata, DateTime?, CancellationToken)

public virtual Namespace CreateNamespace(CreateNamespaceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a namespace, and returns the new namespace.

Parameters
Name Description
request CreateNamespaceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Namespace

The response received from the server.

CreateNamespaceAsync(CreateNamespaceRequest, CallOptions)

public virtual AsyncUnaryCall<Namespace> CreateNamespaceAsync(CreateNamespaceRequest request, CallOptions options)

Creates a namespace, and returns the new namespace.

Parameters
Name Description
request CreateNamespaceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallNamespace

The call object.

CreateNamespaceAsync(CreateNamespaceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Namespace> CreateNamespaceAsync(CreateNamespaceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a namespace, and returns the new namespace.

Parameters
Name Description
request CreateNamespaceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallNamespace

The call object.

CreateService(CreateServiceRequest, CallOptions)

public virtual Service CreateService(CreateServiceRequest request, CallOptions options)

Creates a service, and returns the new service.

Parameters
Name Description
request CreateServiceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Service

The response received from the server.

CreateService(CreateServiceRequest, Metadata, DateTime?, CancellationToken)

public virtual Service CreateService(CreateServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a service, and returns the new service.

Parameters
Name Description
request CreateServiceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Service

The response received from the server.

CreateServiceAsync(CreateServiceRequest, CallOptions)

public virtual AsyncUnaryCall<Service> CreateServiceAsync(CreateServiceRequest request, CallOptions options)

Creates a service, and returns the new service.

Parameters
Name Description
request CreateServiceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallService

The call object.

CreateServiceAsync(CreateServiceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Service> CreateServiceAsync(CreateServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a service, and returns the new service.

Parameters
Name Description
request CreateServiceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallService

The call object.

DeleteEndpoint(DeleteEndpointRequest, CallOptions)

public virtual Empty DeleteEndpoint(DeleteEndpointRequest request, CallOptions options)

Deletes an endpoint.

Parameters
Name Description
request DeleteEndpointRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Empty

The response received from the server.

DeleteEndpoint(DeleteEndpointRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteEndpoint(DeleteEndpointRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes an endpoint.

Parameters
Name Description
request DeleteEndpointRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Empty

The response received from the server.

DeleteEndpointAsync(DeleteEndpointRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteEndpointAsync(DeleteEndpointRequest request, CallOptions options)

Deletes an endpoint.

Parameters
Name Description
request DeleteEndpointRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

DeleteEndpointAsync(DeleteEndpointRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteEndpointAsync(DeleteEndpointRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes an endpoint.

Parameters
Name Description
request DeleteEndpointRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

DeleteNamespace(DeleteNamespaceRequest, CallOptions)

public virtual Empty DeleteNamespace(DeleteNamespaceRequest request, CallOptions options)

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

Parameters
Name Description
request DeleteNamespaceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Empty

The response received from the server.

DeleteNamespace(DeleteNamespaceRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteNamespace(DeleteNamespaceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request DeleteNamespaceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Empty

The response received from the server.

DeleteNamespaceAsync(DeleteNamespaceRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteNamespaceAsync(DeleteNamespaceRequest request, CallOptions options)

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

Parameters
Name Description
request DeleteNamespaceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

DeleteNamespaceAsync(DeleteNamespaceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteNamespaceAsync(DeleteNamespaceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request DeleteNamespaceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

DeleteService(DeleteServiceRequest, CallOptions)

public virtual Empty DeleteService(DeleteServiceRequest request, CallOptions options)

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

Parameters
Name Description
request DeleteServiceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Empty

The response received from the server.

DeleteService(DeleteServiceRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteService(DeleteServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request DeleteServiceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Empty

The response received from the server.

DeleteServiceAsync(DeleteServiceRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteServiceAsync(DeleteServiceRequest request, CallOptions options)

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

Parameters
Name Description
request DeleteServiceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

DeleteServiceAsync(DeleteServiceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteServiceAsync(DeleteServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request DeleteServiceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

GetEndpoint(GetEndpointRequest, CallOptions)

public virtual Endpoint GetEndpoint(GetEndpointRequest request, CallOptions options)

Gets an endpoint.

Parameters
Name Description
request GetEndpointRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Endpoint

The response received from the server.

GetEndpoint(GetEndpointRequest, Metadata, DateTime?, CancellationToken)

public virtual Endpoint GetEndpoint(GetEndpointRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets an endpoint.

Parameters
Name Description
request GetEndpointRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Endpoint

The response received from the server.

GetEndpointAsync(GetEndpointRequest, CallOptions)

public virtual AsyncUnaryCall<Endpoint> GetEndpointAsync(GetEndpointRequest request, CallOptions options)

Gets an endpoint.

Parameters
Name Description
request GetEndpointRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEndpoint

The call object.

GetEndpointAsync(GetEndpointRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Endpoint> GetEndpointAsync(GetEndpointRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets an endpoint.

Parameters
Name Description
request GetEndpointRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEndpoint

The call object.

GetIamPolicy(GetIamPolicyRequest, CallOptions)

public virtual Policy GetIamPolicy(GetIamPolicyRequest request, CallOptions options)

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

Parameters
Name Description
request GetIamPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Policy

The response received from the server.

GetIamPolicy(GetIamPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Policy GetIamPolicy(GetIamPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request GetIamPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Policy

The response received from the server.

GetIamPolicyAsync(GetIamPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallOptions options)

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

Parameters
Name Description
request GetIamPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallPolicy

The call object.

GetIamPolicyAsync(GetIamPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request GetIamPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallPolicy

The call object.

GetNamespace(GetNamespaceRequest, CallOptions)

public virtual Namespace GetNamespace(GetNamespaceRequest request, CallOptions options)

Gets a namespace.

Parameters
Name Description
request GetNamespaceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Namespace

The response received from the server.

GetNamespace(GetNamespaceRequest, Metadata, DateTime?, CancellationToken)

public virtual Namespace GetNamespace(GetNamespaceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a namespace.

Parameters
Name Description
request GetNamespaceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Namespace

The response received from the server.

GetNamespaceAsync(GetNamespaceRequest, CallOptions)

public virtual AsyncUnaryCall<Namespace> GetNamespaceAsync(GetNamespaceRequest request, CallOptions options)

Gets a namespace.

Parameters
Name Description
request GetNamespaceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallNamespace

The call object.

GetNamespaceAsync(GetNamespaceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Namespace> GetNamespaceAsync(GetNamespaceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a namespace.

Parameters
Name Description
request GetNamespaceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallNamespace

The call object.

GetService(GetServiceRequest, CallOptions)

public virtual Service GetService(GetServiceRequest request, CallOptions options)

Gets a service.

Parameters
Name Description
request GetServiceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Service

The response received from the server.

GetService(GetServiceRequest, Metadata, DateTime?, CancellationToken)

public virtual Service GetService(GetServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a service.

Parameters
Name Description
request GetServiceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Service

The response received from the server.

GetServiceAsync(GetServiceRequest, CallOptions)

public virtual AsyncUnaryCall<Service> GetServiceAsync(GetServiceRequest request, CallOptions options)

Gets a service.

Parameters
Name Description
request GetServiceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallService

The call object.

GetServiceAsync(GetServiceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Service> GetServiceAsync(GetServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a service.

Parameters
Name Description
request GetServiceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallService

The call object.

ListEndpoints(ListEndpointsRequest, CallOptions)

public virtual ListEndpointsResponse ListEndpoints(ListEndpointsRequest request, CallOptions options)

Lists all endpoints.

Parameters
Name Description
request ListEndpointsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListEndpointsResponse

The response received from the server.

ListEndpoints(ListEndpointsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListEndpointsResponse ListEndpoints(ListEndpointsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists all endpoints.

Parameters
Name Description
request ListEndpointsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListEndpointsResponse

The response received from the server.

ListEndpointsAsync(ListEndpointsRequest, CallOptions)

public virtual AsyncUnaryCall<ListEndpointsResponse> ListEndpointsAsync(ListEndpointsRequest request, CallOptions options)

Lists all endpoints.

Parameters
Name Description
request ListEndpointsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListEndpointsResponse

The call object.

ListEndpointsAsync(ListEndpointsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListEndpointsResponse> ListEndpointsAsync(ListEndpointsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists all endpoints.

Parameters
Name Description
request ListEndpointsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListEndpointsResponse

The call object.

ListNamespaces(ListNamespacesRequest, CallOptions)

public virtual ListNamespacesResponse ListNamespaces(ListNamespacesRequest request, CallOptions options)

Lists all namespaces.

Parameters
Name Description
request ListNamespacesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListNamespacesResponse

The response received from the server.

ListNamespaces(ListNamespacesRequest, Metadata, DateTime?, CancellationToken)

public virtual ListNamespacesResponse ListNamespaces(ListNamespacesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists all namespaces.

Parameters
Name Description
request ListNamespacesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListNamespacesResponse

The response received from the server.

ListNamespacesAsync(ListNamespacesRequest, CallOptions)

public virtual AsyncUnaryCall<ListNamespacesResponse> ListNamespacesAsync(ListNamespacesRequest request, CallOptions options)

Lists all namespaces.

Parameters
Name Description
request ListNamespacesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListNamespacesResponse

The call object.

ListNamespacesAsync(ListNamespacesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListNamespacesResponse> ListNamespacesAsync(ListNamespacesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists all namespaces.

Parameters
Name Description
request ListNamespacesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListNamespacesResponse

The call object.

ListServices(ListServicesRequest, CallOptions)

public virtual ListServicesResponse ListServices(ListServicesRequest request, CallOptions options)

Lists all services belonging to a namespace.

Parameters
Name Description
request ListServicesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListServicesResponse

The response received from the server.

ListServices(ListServicesRequest, Metadata, DateTime?, CancellationToken)

public virtual ListServicesResponse ListServices(ListServicesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists all services belonging to a namespace.

Parameters
Name Description
request ListServicesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListServicesResponse

The response received from the server.

ListServicesAsync(ListServicesRequest, CallOptions)

public virtual AsyncUnaryCall<ListServicesResponse> ListServicesAsync(ListServicesRequest request, CallOptions options)

Lists all services belonging to a namespace.

Parameters
Name Description
request ListServicesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListServicesResponse

The call object.

ListServicesAsync(ListServicesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListServicesResponse> ListServicesAsync(ListServicesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists all services belonging to a namespace.

Parameters
Name Description
request ListServicesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListServicesResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override RegistrationService.RegistrationServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
RegistrationServiceRegistrationServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.ServiceDirectory.V1.RegistrationService.RegistrationServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

SetIamPolicy(SetIamPolicyRequest, CallOptions)

public virtual Policy SetIamPolicy(SetIamPolicyRequest request, CallOptions options)

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

Parameters
Name Description
request SetIamPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Policy

The response received from the server.

SetIamPolicy(SetIamPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Policy SetIamPolicy(SetIamPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request SetIamPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Policy

The response received from the server.

SetIamPolicyAsync(SetIamPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallOptions options)

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

Parameters
Name Description
request SetIamPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallPolicy

The call object.

SetIamPolicyAsync(SetIamPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request SetIamPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallPolicy

The call object.

TestIamPermissions(TestIamPermissionsRequest, CallOptions)

public virtual TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallOptions options)

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

Parameters
Name Description
request TestIamPermissionsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
TestIamPermissionsResponse

The response received from the server.

TestIamPermissions(TestIamPermissionsRequest, Metadata, DateTime?, CancellationToken)

public virtual TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request TestIamPermissionsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
TestIamPermissionsResponse

The response received from the server.

TestIamPermissionsAsync(TestIamPermissionsRequest, CallOptions)

public virtual AsyncUnaryCall<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallOptions options)

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

Parameters
Name Description
request TestIamPermissionsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallTestIamPermissionsResponse

The call object.

TestIamPermissionsAsync(TestIamPermissionsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request TestIamPermissionsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallTestIamPermissionsResponse

The call object.

UpdateEndpoint(UpdateEndpointRequest, CallOptions)

public virtual Endpoint UpdateEndpoint(UpdateEndpointRequest request, CallOptions options)

Updates an endpoint.

Parameters
Name Description
request UpdateEndpointRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Endpoint

The response received from the server.

UpdateEndpoint(UpdateEndpointRequest, Metadata, DateTime?, CancellationToken)

public virtual Endpoint UpdateEndpoint(UpdateEndpointRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates an endpoint.

Parameters
Name Description
request UpdateEndpointRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Endpoint

The response received from the server.

UpdateEndpointAsync(UpdateEndpointRequest, CallOptions)

public virtual AsyncUnaryCall<Endpoint> UpdateEndpointAsync(UpdateEndpointRequest request, CallOptions options)

Updates an endpoint.

Parameters
Name Description
request UpdateEndpointRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEndpoint

The call object.

UpdateEndpointAsync(UpdateEndpointRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Endpoint> UpdateEndpointAsync(UpdateEndpointRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates an endpoint.

Parameters
Name Description
request UpdateEndpointRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEndpoint

The call object.

UpdateNamespace(UpdateNamespaceRequest, CallOptions)

public virtual Namespace UpdateNamespace(UpdateNamespaceRequest request, CallOptions options)

Updates a namespace.

Parameters
Name Description
request UpdateNamespaceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Namespace

The response received from the server.

UpdateNamespace(UpdateNamespaceRequest, Metadata, DateTime?, CancellationToken)

public virtual Namespace UpdateNamespace(UpdateNamespaceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a namespace.

Parameters
Name Description
request UpdateNamespaceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Namespace

The response received from the server.

UpdateNamespaceAsync(UpdateNamespaceRequest, CallOptions)

public virtual AsyncUnaryCall<Namespace> UpdateNamespaceAsync(UpdateNamespaceRequest request, CallOptions options)

Updates a namespace.

Parameters
Name Description
request UpdateNamespaceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallNamespace

The call object.

UpdateNamespaceAsync(UpdateNamespaceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Namespace> UpdateNamespaceAsync(UpdateNamespaceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a namespace.

Parameters
Name Description
request UpdateNamespaceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallNamespace

The call object.

UpdateService(UpdateServiceRequest, CallOptions)

public virtual Service UpdateService(UpdateServiceRequest request, CallOptions options)

Updates a service.

Parameters
Name Description
request UpdateServiceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Service

The response received from the server.

UpdateService(UpdateServiceRequest, Metadata, DateTime?, CancellationToken)

public virtual Service UpdateService(UpdateServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a service.

Parameters
Name Description
request UpdateServiceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Service

The response received from the server.

UpdateServiceAsync(UpdateServiceRequest, CallOptions)

public virtual AsyncUnaryCall<Service> UpdateServiceAsync(UpdateServiceRequest request, CallOptions options)

Updates a service.

Parameters
Name Description
request UpdateServiceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallService

The call object.

UpdateServiceAsync(UpdateServiceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Service> UpdateServiceAsync(UpdateServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a service.

Parameters
Name Description
request UpdateServiceRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallService

The call object.