public sealed class RegistrationServiceClientImpl : RegistrationServiceClient
Reference documentation and code samples for the Service Directory v1 API class RegistrationServiceClientImpl.
RegistrationService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.ServiceDirectory.V1Assembly
Google.Cloud.ServiceDirectory.V1.dll
Remarks
Service Directory API for registering services. It defines the following resource model:
The API has a collection of [Namespace][google.cloud.servicedirectory.v1.Namespace] resources, named
projects/*/locations/*/namespaces/*
.Each Namespace has a collection of [Service][google.cloud.servicedirectory.v1.Service] resources, named
projects/*/locations/*/namespaces/*/services/*
.Each Service has a collection of [Endpoint][google.cloud.servicedirectory.v1.Endpoint] resources, named
projects/*/locations/*/namespaces/*/services/*/endpoints/*
.
Constructors
RegistrationServiceClientImpl(RegistrationServiceClient, RegistrationServiceSettings, ILogger)
public RegistrationServiceClientImpl(RegistrationService.RegistrationServiceClient grpcClient, RegistrationServiceSettings settings, ILogger logger)
Constructs a client wrapper for the RegistrationService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient |
RegistrationServiceRegistrationServiceClient The underlying gRPC client. |
settings |
RegistrationServiceSettings The base RegistrationServiceSettings used within this client. |
logger |
ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override RegistrationService.RegistrationServiceClient GrpcClient { get; }
The underlying gRPC RegistrationService client
Property Value | |
---|---|
Type | Description |
RegistrationServiceRegistrationServiceClient |
LocationsClient
public override LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
Methods
CreateEndpoint(CreateEndpointRequest, CallSettings)
public override Endpoint CreateEndpoint(CreateEndpointRequest request, CallSettings callSettings = null)
Creates an endpoint, and returns the new endpoint.
Parameters | |
---|---|
Name | Description |
request |
CreateEndpointRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Endpoint |
The RPC response. |
CreateEndpointAsync(CreateEndpointRequest, CallSettings)
public override Task<Endpoint> CreateEndpointAsync(CreateEndpointRequest request, CallSettings callSettings = null)
Creates an endpoint, and returns the new endpoint.
Parameters | |
---|---|
Name | Description |
request |
CreateEndpointRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEndpoint |
A Task containing the RPC response. |
CreateNamespace(CreateNamespaceRequest, CallSettings)
public override Namespace CreateNamespace(CreateNamespaceRequest request, CallSettings callSettings = null)
Creates a namespace, and returns the new namespace.
Parameters | |
---|---|
Name | Description |
request |
CreateNamespaceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Namespace |
The RPC response. |
CreateNamespaceAsync(CreateNamespaceRequest, CallSettings)
public override Task<Namespace> CreateNamespaceAsync(CreateNamespaceRequest request, CallSettings callSettings = null)
Creates a namespace, and returns the new namespace.
Parameters | |
---|---|
Name | Description |
request |
CreateNamespaceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNamespace |
A Task containing the RPC response. |
CreateService(CreateServiceRequest, CallSettings)
public override Service CreateService(CreateServiceRequest request, CallSettings callSettings = null)
Creates a service, and returns the new service.
Parameters | |
---|---|
Name | Description |
request |
CreateServiceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Service |
The RPC response. |
CreateServiceAsync(CreateServiceRequest, CallSettings)
public override Task<Service> CreateServiceAsync(CreateServiceRequest request, CallSettings callSettings = null)
Creates a service, and returns the new service.
Parameters | |
---|---|
Name | Description |
request |
CreateServiceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskService |
A Task containing the RPC response. |
DeleteEndpoint(DeleteEndpointRequest, CallSettings)
public override void DeleteEndpoint(DeleteEndpointRequest request, CallSettings callSettings = null)
Deletes an endpoint.
Parameters | |
---|---|
Name | Description |
request |
DeleteEndpointRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
DeleteEndpointAsync(DeleteEndpointRequest, CallSettings)
public override Task DeleteEndpointAsync(DeleteEndpointRequest request, CallSettings callSettings = null)
Deletes an endpoint.
Parameters | |
---|---|
Name | Description |
request |
DeleteEndpointRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
DeleteNamespace(DeleteNamespaceRequest, CallSettings)
public override void DeleteNamespace(DeleteNamespaceRequest request, CallSettings callSettings = null)
Deletes a namespace. This also deletes all services and endpoints in the namespace.
Parameters | |
---|---|
Name | Description |
request |
DeleteNamespaceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
DeleteNamespaceAsync(DeleteNamespaceRequest, CallSettings)
public override Task DeleteNamespaceAsync(DeleteNamespaceRequest request, CallSettings callSettings = null)
Deletes a namespace. This also deletes all services and endpoints in the namespace.
Parameters | |
---|---|
Name | Description |
request |
DeleteNamespaceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
DeleteService(DeleteServiceRequest, CallSettings)
public override void DeleteService(DeleteServiceRequest request, CallSettings callSettings = null)
Deletes a service. This also deletes all endpoints associated with the service.
Parameters | |
---|---|
Name | Description |
request |
DeleteServiceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
DeleteServiceAsync(DeleteServiceRequest, CallSettings)
public override Task DeleteServiceAsync(DeleteServiceRequest request, CallSettings callSettings = null)
Deletes a service. This also deletes all endpoints associated with the service.
Parameters | |
---|---|
Name | Description |
request |
DeleteServiceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
GetEndpoint(GetEndpointRequest, CallSettings)
public override Endpoint GetEndpoint(GetEndpointRequest request, CallSettings callSettings = null)
Gets an endpoint.
Parameters | |
---|---|
Name | Description |
request |
GetEndpointRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Endpoint |
The RPC response. |
GetEndpointAsync(GetEndpointRequest, CallSettings)
public override Task<Endpoint> GetEndpointAsync(GetEndpointRequest request, CallSettings callSettings = null)
Gets an endpoint.
Parameters | |
---|---|
Name | Description |
request |
GetEndpointRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEndpoint |
A Task containing the RPC response. |
GetIamPolicy(GetIamPolicyRequest, CallSettings)
public override Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)
Gets the IAM Policy for a resource (namespace or service only).
Parameters | |
---|---|
Name | Description |
request |
GetIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy |
The RPC response. |
GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)
public override Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)
Gets the IAM Policy for a resource (namespace or service only).
Parameters | |
---|---|
Name | Description |
request |
GetIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
GetNamespace(GetNamespaceRequest, CallSettings)
public override Namespace GetNamespace(GetNamespaceRequest request, CallSettings callSettings = null)
Gets a namespace.
Parameters | |
---|---|
Name | Description |
request |
GetNamespaceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Namespace |
The RPC response. |
GetNamespaceAsync(GetNamespaceRequest, CallSettings)
public override Task<Namespace> GetNamespaceAsync(GetNamespaceRequest request, CallSettings callSettings = null)
Gets a namespace.
Parameters | |
---|---|
Name | Description |
request |
GetNamespaceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNamespace |
A Task containing the RPC response. |
GetService(GetServiceRequest, CallSettings)
public override Service GetService(GetServiceRequest request, CallSettings callSettings = null)
Gets a service.
Parameters | |
---|---|
Name | Description |
request |
GetServiceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Service |
The RPC response. |
GetServiceAsync(GetServiceRequest, CallSettings)
public override Task<Service> GetServiceAsync(GetServiceRequest request, CallSettings callSettings = null)
Gets a service.
Parameters | |
---|---|
Name | Description |
request |
GetServiceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskService |
A Task containing the RPC response. |
ListEndpoints(ListEndpointsRequest, CallSettings)
public override PagedEnumerable<ListEndpointsResponse, Endpoint> ListEndpoints(ListEndpointsRequest request, CallSettings callSettings = null)
Lists all endpoints.
Parameters | |
---|---|
Name | Description |
request |
ListEndpointsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListEndpointsResponseEndpoint |
A pageable sequence of Endpoint resources. |
ListEndpointsAsync(ListEndpointsRequest, CallSettings)
public override PagedAsyncEnumerable<ListEndpointsResponse, Endpoint> ListEndpointsAsync(ListEndpointsRequest request, CallSettings callSettings = null)
Lists all endpoints.
Parameters | |
---|---|
Name | Description |
request |
ListEndpointsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListEndpointsResponseEndpoint |
A pageable asynchronous sequence of Endpoint resources. |
ListNamespaces(ListNamespacesRequest, CallSettings)
public override PagedEnumerable<ListNamespacesResponse, Namespace> ListNamespaces(ListNamespacesRequest request, CallSettings callSettings = null)
Lists all namespaces.
Parameters | |
---|---|
Name | Description |
request |
ListNamespacesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListNamespacesResponseNamespace |
A pageable sequence of Namespace resources. |
ListNamespacesAsync(ListNamespacesRequest, CallSettings)
public override PagedAsyncEnumerable<ListNamespacesResponse, Namespace> ListNamespacesAsync(ListNamespacesRequest request, CallSettings callSettings = null)
Lists all namespaces.
Parameters | |
---|---|
Name | Description |
request |
ListNamespacesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListNamespacesResponseNamespace |
A pageable asynchronous sequence of Namespace resources. |
ListServices(ListServicesRequest, CallSettings)
public override PagedEnumerable<ListServicesResponse, Service> ListServices(ListServicesRequest request, CallSettings callSettings = null)
Lists all services belonging to a namespace.
Parameters | |
---|---|
Name | Description |
request |
ListServicesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListServicesResponseService |
A pageable sequence of Service resources. |
ListServicesAsync(ListServicesRequest, CallSettings)
public override PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(ListServicesRequest request, CallSettings callSettings = null)
Lists all services belonging to a namespace.
Parameters | |
---|---|
Name | Description |
request |
ListServicesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListServicesResponseService |
A pageable asynchronous sequence of Service resources. |
SetIamPolicy(SetIamPolicyRequest, CallSettings)
public override Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)
Sets the IAM Policy for a resource (namespace or service only).
Parameters | |
---|---|
Name | Description |
request |
SetIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy |
The RPC response. |
SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)
public override Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)
Sets the IAM Policy for a resource (namespace or service only).
Parameters | |
---|---|
Name | Description |
request |
SetIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
TestIamPermissions(TestIamPermissionsRequest, CallSettings)
public override TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)
Tests IAM permissions for a resource (namespace or service only).
Parameters | |
---|---|
Name | Description |
request |
TestIamPermissionsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TestIamPermissionsResponse |
The RPC response. |
TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)
public override Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)
Tests IAM permissions for a resource (namespace or service only).
Parameters | |
---|---|
Name | Description |
request |
TestIamPermissionsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTestIamPermissionsResponse |
A Task containing the RPC response. |
UpdateEndpoint(UpdateEndpointRequest, CallSettings)
public override Endpoint UpdateEndpoint(UpdateEndpointRequest request, CallSettings callSettings = null)
Updates an endpoint.
Parameters | |
---|---|
Name | Description |
request |
UpdateEndpointRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Endpoint |
The RPC response. |
UpdateEndpointAsync(UpdateEndpointRequest, CallSettings)
public override Task<Endpoint> UpdateEndpointAsync(UpdateEndpointRequest request, CallSettings callSettings = null)
Updates an endpoint.
Parameters | |
---|---|
Name | Description |
request |
UpdateEndpointRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEndpoint |
A Task containing the RPC response. |
UpdateNamespace(UpdateNamespaceRequest, CallSettings)
public override Namespace UpdateNamespace(UpdateNamespaceRequest request, CallSettings callSettings = null)
Updates a namespace.
Parameters | |
---|---|
Name | Description |
request |
UpdateNamespaceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Namespace |
The RPC response. |
UpdateNamespaceAsync(UpdateNamespaceRequest, CallSettings)
public override Task<Namespace> UpdateNamespaceAsync(UpdateNamespaceRequest request, CallSettings callSettings = null)
Updates a namespace.
Parameters | |
---|---|
Name | Description |
request |
UpdateNamespaceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNamespace |
A Task containing the RPC response. |
UpdateService(UpdateServiceRequest, CallSettings)
public override Service UpdateService(UpdateServiceRequest request, CallSettings callSettings = null)
Updates a service.
Parameters | |
---|---|
Name | Description |
request |
UpdateServiceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Service |
The RPC response. |
UpdateServiceAsync(UpdateServiceRequest, CallSettings)
public override Task<Service> UpdateServiceAsync(UpdateServiceRequest request, CallSettings callSettings = null)
Updates a service.
Parameters | |
---|---|
Name | Description |
request |
UpdateServiceRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskService |
A Task containing the RPC response. |