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

public class RegistrationServiceClient : ClientBase<RegistrationService.RegistrationServiceClient>

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

Client for RegistrationService

Inheritance

Object > ClientBase > ClientBase<RegistrationService.RegistrationServiceClient> > 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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

RegistrationServiceClient(ChannelBase)

public RegistrationServiceClient(ChannelBase channel)

Creates a new client for RegistrationService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

RegistrationServiceClient(ClientBase.ClientBaseConfiguration)

protected RegistrationServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

CreateEndpoint(CreateEndpointRequest, CallOptions)

public virtual Endpoint CreateEndpoint(CreateEndpointRequest request, CallOptions options)

Creates a endpoint, and returns the new Endpoint.

Parameters
NameDescription
requestCreateEndpointRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Endpoint

The response received from the server.

CreateEndpoint(CreateEndpointRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Creates a endpoint, and returns the new Endpoint.

Parameters
NameDescription
requestCreateEndpointRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Endpoint

The response received from the server.

CreateEndpointAsync(CreateEndpointRequest, CallOptions)

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

Creates a endpoint, and returns the new Endpoint.

Parameters
NameDescription
requestCreateEndpointRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Endpoint>

The call object.

CreateEndpointAsync(CreateEndpointRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Creates a endpoint, and returns the new Endpoint.

Parameters
NameDescription
requestCreateEndpointRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Endpoint>

The call object.

CreateNamespace(CreateNamespaceRequest, CallOptions)

public virtual Namespace CreateNamespace(CreateNamespaceRequest request, CallOptions options)

Creates a namespace, and returns the new Namespace.

Parameters
NameDescription
requestCreateNamespaceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Namespace

The response received from the server.

CreateNamespace(CreateNamespaceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Creates a namespace, and returns the new Namespace.

Parameters
NameDescription
requestCreateNamespaceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestCreateNamespaceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Namespace>

The call object.

CreateNamespaceAsync(CreateNamespaceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Creates a namespace, and returns the new Namespace.

Parameters
NameDescription
requestCreateNamespaceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Namespace>

The call object.

CreateService(CreateServiceRequest, CallOptions)

public virtual Service CreateService(CreateServiceRequest request, CallOptions options)

Creates a service, and returns the new Service.

Parameters
NameDescription
requestCreateServiceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Service

The response received from the server.

CreateService(CreateServiceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Creates a service, and returns the new Service.

Parameters
NameDescription
requestCreateServiceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestCreateServiceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Service>

The call object.

CreateServiceAsync(CreateServiceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Creates a service, and returns the new Service.

Parameters
NameDescription
requestCreateServiceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Service>

The call object.

DeleteEndpoint(DeleteEndpointRequest, CallOptions)

public virtual Empty DeleteEndpoint(DeleteEndpointRequest request, CallOptions options)

Deletes a endpoint.

Parameters
NameDescription
requestDeleteEndpointRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteEndpoint(DeleteEndpointRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Deletes a endpoint.

Parameters
NameDescription
requestDeleteEndpointRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteEndpointAsync(DeleteEndpointRequest, CallOptions)

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

Deletes a endpoint.

Parameters
NameDescription
requestDeleteEndpointRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

DeleteEndpointAsync(DeleteEndpointRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Deletes a endpoint.

Parameters
NameDescription
requestDeleteEndpointRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

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
NameDescription
requestDeleteNamespaceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteNamespace(DeleteNamespaceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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

Parameters
NameDescription
requestDeleteNamespaceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestDeleteNamespaceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

DeleteNamespaceAsync(DeleteNamespaceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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

Parameters
NameDescription
requestDeleteNamespaceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

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
NameDescription
requestDeleteServiceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteService(DeleteServiceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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

Parameters
NameDescription
requestDeleteServiceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestDeleteServiceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

DeleteServiceAsync(DeleteServiceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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

Parameters
NameDescription
requestDeleteServiceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

GetEndpoint(GetEndpointRequest, CallOptions)

public virtual Endpoint GetEndpoint(GetEndpointRequest request, CallOptions options)

Gets a endpoint.

Parameters
NameDescription
requestGetEndpointRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Endpoint

The response received from the server.

GetEndpoint(GetEndpointRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Gets a endpoint.

Parameters
NameDescription
requestGetEndpointRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Endpoint

The response received from the server.

GetEndpointAsync(GetEndpointRequest, CallOptions)

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

Gets a endpoint.

Parameters
NameDescription
requestGetEndpointRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Endpoint>

The call object.

GetEndpointAsync(GetEndpointRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Gets a endpoint.

Parameters
NameDescription
requestGetEndpointRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Endpoint>

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
NameDescription
requestGetIamPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Policy

The response received from the server.

GetIamPolicy(GetIamPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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

Parameters
NameDescription
requestGetIamPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Policy>

The call object.

GetIamPolicyAsync(GetIamPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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

Parameters
NameDescription
requestGetIamPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Policy>

The call object.

GetNamespace(GetNamespaceRequest, CallOptions)

public virtual Namespace GetNamespace(GetNamespaceRequest request, CallOptions options)

Gets a namespace.

Parameters
NameDescription
requestGetNamespaceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Namespace

The response received from the server.

GetNamespace(GetNamespaceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Gets a namespace.

Parameters
NameDescription
requestGetNamespaceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Namespace

The response received from the server.

GetNamespaceAsync(GetNamespaceRequest, CallOptions)

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

Gets a namespace.

Parameters
NameDescription
requestGetNamespaceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Namespace>

The call object.

GetNamespaceAsync(GetNamespaceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Gets a namespace.

Parameters
NameDescription
requestGetNamespaceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Namespace>

The call object.

GetService(GetServiceRequest, CallOptions)

public virtual Service GetService(GetServiceRequest request, CallOptions options)

Gets a service.

Parameters
NameDescription
requestGetServiceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Service

The response received from the server.

GetService(GetServiceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Gets a service.

Parameters
NameDescription
requestGetServiceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Service

The response received from the server.

GetServiceAsync(GetServiceRequest, CallOptions)

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

Gets a service.

Parameters
NameDescription
requestGetServiceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Service>

The call object.

GetServiceAsync(GetServiceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Gets a service.

Parameters
NameDescription
requestGetServiceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Service>

The call object.

ListEndpoints(ListEndpointsRequest, CallOptions)

public virtual ListEndpointsResponse ListEndpoints(ListEndpointsRequest request, CallOptions options)

Lists all endpoints.

Parameters
NameDescription
requestListEndpointsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListEndpointsResponse

The response received from the server.

ListEndpoints(ListEndpointsRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Lists all endpoints.

Parameters
NameDescription
requestListEndpointsRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListEndpointsResponse

The response received from the server.

ListEndpointsAsync(ListEndpointsRequest, CallOptions)

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

Lists all endpoints.

Parameters
NameDescription
requestListEndpointsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListEndpointsResponse>

The call object.

ListEndpointsAsync(ListEndpointsRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Lists all endpoints.

Parameters
NameDescription
requestListEndpointsRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<ListEndpointsResponse>

The call object.

ListNamespaces(ListNamespacesRequest, CallOptions)

public virtual ListNamespacesResponse ListNamespaces(ListNamespacesRequest request, CallOptions options)

Lists all namespaces.

Parameters
NameDescription
requestListNamespacesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListNamespacesResponse

The response received from the server.

ListNamespaces(ListNamespacesRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Lists all namespaces.

Parameters
NameDescription
requestListNamespacesRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListNamespacesResponse

The response received from the server.

ListNamespacesAsync(ListNamespacesRequest, CallOptions)

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

Lists all namespaces.

Parameters
NameDescription
requestListNamespacesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListNamespacesResponse>

The call object.

ListNamespacesAsync(ListNamespacesRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Lists all namespaces.

Parameters
NameDescription
requestListNamespacesRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<ListNamespacesResponse>

The call object.

ListServices(ListServicesRequest, CallOptions)

public virtual ListServicesResponse ListServices(ListServicesRequest request, CallOptions options)

Lists all services belonging to a namespace.

Parameters
NameDescription
requestListServicesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListServicesResponse

The response received from the server.

ListServices(ListServicesRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Lists all services belonging to a namespace.

Parameters
NameDescription
requestListServicesRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListServicesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListServicesResponse>

The call object.

ListServicesAsync(ListServicesRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Lists all services belonging to a namespace.

Parameters
NameDescription
requestListServicesRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<ListServicesResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
RegistrationService.RegistrationServiceClient
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
NameDescription
requestSetIamPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Policy

The response received from the server.

SetIamPolicy(SetIamPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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

Parameters
NameDescription
requestSetIamPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestSetIamPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Policy>

The call object.

SetIamPolicyAsync(SetIamPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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

Parameters
NameDescription
requestSetIamPolicyRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Policy>

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
NameDescription
requestTestIamPermissionsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TestIamPermissionsResponse

The response received from the server.

TestIamPermissions(TestIamPermissionsRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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

Parameters
NameDescription
requestTestIamPermissionsRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<TestIamPermissionsResponse>

The call object.

TestIamPermissionsAsync(TestIamPermissionsRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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

Parameters
NameDescription
requestTestIamPermissionsRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<TestIamPermissionsResponse>

The call object.

UpdateEndpoint(UpdateEndpointRequest, CallOptions)

public virtual Endpoint UpdateEndpoint(UpdateEndpointRequest request, CallOptions options)

Updates a endpoint.

Parameters
NameDescription
requestUpdateEndpointRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Endpoint

The response received from the server.

UpdateEndpoint(UpdateEndpointRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Updates a endpoint.

Parameters
NameDescription
requestUpdateEndpointRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Endpoint

The response received from the server.

UpdateEndpointAsync(UpdateEndpointRequest, CallOptions)

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

Updates a endpoint.

Parameters
NameDescription
requestUpdateEndpointRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Endpoint>

The call object.

UpdateEndpointAsync(UpdateEndpointRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Updates a endpoint.

Parameters
NameDescription
requestUpdateEndpointRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Endpoint>

The call object.

UpdateNamespace(UpdateNamespaceRequest, CallOptions)

public virtual Namespace UpdateNamespace(UpdateNamespaceRequest request, CallOptions options)

Updates a namespace.

Parameters
NameDescription
requestUpdateNamespaceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Namespace

The response received from the server.

UpdateNamespace(UpdateNamespaceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Updates a namespace.

Parameters
NameDescription
requestUpdateNamespaceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Namespace

The response received from the server.

UpdateNamespaceAsync(UpdateNamespaceRequest, CallOptions)

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

Updates a namespace.

Parameters
NameDescription
requestUpdateNamespaceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Namespace>

The call object.

UpdateNamespaceAsync(UpdateNamespaceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Updates a namespace.

Parameters
NameDescription
requestUpdateNamespaceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Namespace>

The call object.

UpdateService(UpdateServiceRequest, CallOptions)

public virtual Service UpdateService(UpdateServiceRequest request, CallOptions options)

Updates a service.

Parameters
NameDescription
requestUpdateServiceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Service

The response received from the server.

UpdateService(UpdateServiceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Updates a service.

Parameters
NameDescription
requestUpdateServiceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Service

The response received from the server.

UpdateServiceAsync(UpdateServiceRequest, CallOptions)

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

Updates a service.

Parameters
NameDescription
requestUpdateServiceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Service>

The call object.

UpdateServiceAsync(UpdateServiceRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Updates a service.

Parameters
NameDescription
requestUpdateServiceRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Service>

The call object.