Service Directory v1beta1 API - Class RegistrationServiceClient (2.0.0-beta05)

public abstract class RegistrationServiceClient

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

RegistrationService client wrapper, for convenient use.

Inheritance

object > RegistrationServiceClient

Namespace

Google.Cloud.ServiceDirectory.V1Beta1

Assembly

Google.Cloud.ServiceDirectory.V1Beta1.dll

Remarks

Service Directory API for registering services. It defines the following resource model:

  • The API has a collection of [Namespace][google.cloud.servicedirectory.v1beta1.Namespace] resources, named projects/*/locations/*/namespaces/*.

  • Each Namespace has a collection of [Service][google.cloud.servicedirectory.v1beta1.Service] resources, named projects/*/locations/*/namespaces/*/services/*.

  • Each Service has a collection of [Endpoint][google.cloud.servicedirectory.v1beta1.Endpoint] resources, named projects/*/locations/*/namespaces/*/services/*/endpoints/*.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the RegistrationService service, which is a host of "servicedirectory.googleapis.com" and a port of 443.

Property Value
TypeDescription
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default RegistrationService scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

The default RegistrationService scopes are:

GrpcClient

public virtual RegistrationService.RegistrationServiceClient GrpcClient { get; }

The underlying gRPC RegistrationService client

Property Value
TypeDescription
RegistrationServiceRegistrationServiceClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

Methods

Create()

public static RegistrationServiceClient Create()

Synchronously creates a RegistrationServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RegistrationServiceClientBuilder.

Returns
TypeDescription
RegistrationServiceClient

The created RegistrationServiceClient.

CreateAsync(CancellationToken)

public static Task<RegistrationServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a RegistrationServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RegistrationServiceClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskRegistrationServiceClient

The task representing the created RegistrationServiceClient.

CreateEndpoint(CreateEndpointRequest, CallSettings)

public virtual Endpoint CreateEndpoint(CreateEndpointRequest request, CallSettings callSettings = null)

Creates an endpoint, and returns the new endpoint.

Parameters
NameDescription
requestCreateEndpointRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Endpoint

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
CreateEndpointRequest request = new CreateEndpointRequest
{
    ParentAsServiceName = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"),
    EndpointId = "",
    Endpoint = new Endpoint(),
};
// Make the request
Endpoint response = registrationServiceClient.CreateEndpoint(request);

CreateEndpoint(ServiceName, Endpoint, string, CallSettings)

public virtual Endpoint CreateEndpoint(ServiceName parent, Endpoint endpoint, string endpointId, CallSettings callSettings = null)

Creates an endpoint, and returns the new endpoint.

Parameters
NameDescription
parentServiceName

Required. The resource name of the service that this endpoint provides.

endpointEndpoint

Required. A endpoint with initial fields set.

endpointIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Endpoint

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]");
Endpoint endpoint = new Endpoint();
string endpointId = "";
// Make the request
Endpoint response = registrationServiceClient.CreateEndpoint(parent, endpoint, endpointId);

CreateEndpoint(string, Endpoint, string, CallSettings)

public virtual Endpoint CreateEndpoint(string parent, Endpoint endpoint, string endpointId, CallSettings callSettings = null)

Creates an endpoint, and returns the new endpoint.

Parameters
NameDescription
parentstring

Required. The resource name of the service that this endpoint provides.

endpointEndpoint

Required. A endpoint with initial fields set.

endpointIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Endpoint

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]";
Endpoint endpoint = new Endpoint();
string endpointId = "";
// Make the request
Endpoint response = registrationServiceClient.CreateEndpoint(parent, endpoint, endpointId);

CreateEndpointAsync(CreateEndpointRequest, CallSettings)

public virtual Task<Endpoint> CreateEndpointAsync(CreateEndpointRequest request, CallSettings callSettings = null)

Creates an endpoint, and returns the new endpoint.

Parameters
NameDescription
requestCreateEndpointRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskEndpoint

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateEndpointRequest request = new CreateEndpointRequest
{
    ParentAsServiceName = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"),
    EndpointId = "",
    Endpoint = new Endpoint(),
};
// Make the request
Endpoint response = await registrationServiceClient.CreateEndpointAsync(request);

CreateEndpointAsync(CreateEndpointRequest, CancellationToken)

public virtual Task<Endpoint> CreateEndpointAsync(CreateEndpointRequest request, CancellationToken cancellationToken)

Creates an endpoint, and returns the new endpoint.

Parameters
NameDescription
requestCreateEndpointRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskEndpoint

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateEndpointRequest request = new CreateEndpointRequest
{
    ParentAsServiceName = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"),
    EndpointId = "",
    Endpoint = new Endpoint(),
};
// Make the request
Endpoint response = await registrationServiceClient.CreateEndpointAsync(request);

CreateEndpointAsync(ServiceName, Endpoint, string, CallSettings)

public virtual Task<Endpoint> CreateEndpointAsync(ServiceName parent, Endpoint endpoint, string endpointId, CallSettings callSettings = null)

Creates an endpoint, and returns the new endpoint.

Parameters
NameDescription
parentServiceName

Required. The resource name of the service that this endpoint provides.

endpointEndpoint

Required. A endpoint with initial fields set.

endpointIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskEndpoint

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]");
Endpoint endpoint = new Endpoint();
string endpointId = "";
// Make the request
Endpoint response = await registrationServiceClient.CreateEndpointAsync(parent, endpoint, endpointId);

CreateEndpointAsync(ServiceName, Endpoint, string, CancellationToken)

public virtual Task<Endpoint> CreateEndpointAsync(ServiceName parent, Endpoint endpoint, string endpointId, CancellationToken cancellationToken)

Creates an endpoint, and returns the new endpoint.

Parameters
NameDescription
parentServiceName

Required. The resource name of the service that this endpoint provides.

endpointEndpoint

Required. A endpoint with initial fields set.

endpointIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskEndpoint

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]");
Endpoint endpoint = new Endpoint();
string endpointId = "";
// Make the request
Endpoint response = await registrationServiceClient.CreateEndpointAsync(parent, endpoint, endpointId);

CreateEndpointAsync(string, Endpoint, string, CallSettings)

public virtual Task<Endpoint> CreateEndpointAsync(string parent, Endpoint endpoint, string endpointId, CallSettings callSettings = null)

Creates an endpoint, and returns the new endpoint.

Parameters
NameDescription
parentstring

Required. The resource name of the service that this endpoint provides.

endpointEndpoint

Required. A endpoint with initial fields set.

endpointIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskEndpoint

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]";
Endpoint endpoint = new Endpoint();
string endpointId = "";
// Make the request
Endpoint response = await registrationServiceClient.CreateEndpointAsync(parent, endpoint, endpointId);

CreateEndpointAsync(string, Endpoint, string, CancellationToken)

public virtual Task<Endpoint> CreateEndpointAsync(string parent, Endpoint endpoint, string endpointId, CancellationToken cancellationToken)

Creates an endpoint, and returns the new endpoint.

Parameters
NameDescription
parentstring

Required. The resource name of the service that this endpoint provides.

endpointEndpoint

Required. A endpoint with initial fields set.

endpointIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskEndpoint

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]";
Endpoint endpoint = new Endpoint();
string endpointId = "";
// Make the request
Endpoint response = await registrationServiceClient.CreateEndpointAsync(parent, endpoint, endpointId);

CreateNamespace(LocationName, Namespace, string, CallSettings)

public virtual Namespace CreateNamespace(LocationName parent, Namespace @namespace, string namespaceId, CallSettings callSettings = null)

Creates a namespace, and returns the new namespace.

Parameters
NameDescription
parentLocationName

Required. The resource name of the project and location the namespace will be created in.

namespaceNamespace

Required. A namespace with initial fields set.

namespaceIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Namespace

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Namespace @namespace = new Namespace();
string namespaceId = "";
// Make the request
Namespace response = registrationServiceClient.CreateNamespace(parent, @namespace, namespaceId);

CreateNamespace(CreateNamespaceRequest, CallSettings)

public virtual Namespace CreateNamespace(CreateNamespaceRequest request, CallSettings callSettings = null)

Creates a namespace, and returns the new namespace.

Parameters
NameDescription
requestCreateNamespaceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Namespace

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
CreateNamespaceRequest request = new CreateNamespaceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    NamespaceId = "",
    Namespace = new Namespace(),
};
// Make the request
Namespace response = registrationServiceClient.CreateNamespace(request);

CreateNamespace(string, Namespace, string, CallSettings)

public virtual Namespace CreateNamespace(string parent, Namespace @namespace, string namespaceId, CallSettings callSettings = null)

Creates a namespace, and returns the new namespace.

Parameters
NameDescription
parentstring

Required. The resource name of the project and location the namespace will be created in.

namespaceNamespace

Required. A namespace with initial fields set.

namespaceIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Namespace

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Namespace @namespace = new Namespace();
string namespaceId = "";
// Make the request
Namespace response = registrationServiceClient.CreateNamespace(parent, @namespace, namespaceId);

CreateNamespaceAsync(LocationName, Namespace, string, CallSettings)

public virtual Task<Namespace> CreateNamespaceAsync(LocationName parent, Namespace @namespace, string namespaceId, CallSettings callSettings = null)

Creates a namespace, and returns the new namespace.

Parameters
NameDescription
parentLocationName

Required. The resource name of the project and location the namespace will be created in.

namespaceNamespace

Required. A namespace with initial fields set.

namespaceIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNamespace

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Namespace @namespace = new Namespace();
string namespaceId = "";
// Make the request
Namespace response = await registrationServiceClient.CreateNamespaceAsync(parent, @namespace, namespaceId);

CreateNamespaceAsync(LocationName, Namespace, string, CancellationToken)

public virtual Task<Namespace> CreateNamespaceAsync(LocationName parent, Namespace @namespace, string namespaceId, CancellationToken cancellationToken)

Creates a namespace, and returns the new namespace.

Parameters
NameDescription
parentLocationName

Required. The resource name of the project and location the namespace will be created in.

namespaceNamespace

Required. A namespace with initial fields set.

namespaceIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNamespace

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Namespace @namespace = new Namespace();
string namespaceId = "";
// Make the request
Namespace response = await registrationServiceClient.CreateNamespaceAsync(parent, @namespace, namespaceId);

CreateNamespaceAsync(CreateNamespaceRequest, CallSettings)

public virtual Task<Namespace> CreateNamespaceAsync(CreateNamespaceRequest request, CallSettings callSettings = null)

Creates a namespace, and returns the new namespace.

Parameters
NameDescription
requestCreateNamespaceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNamespace

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateNamespaceRequest request = new CreateNamespaceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    NamespaceId = "",
    Namespace = new Namespace(),
};
// Make the request
Namespace response = await registrationServiceClient.CreateNamespaceAsync(request);

CreateNamespaceAsync(CreateNamespaceRequest, CancellationToken)

public virtual Task<Namespace> CreateNamespaceAsync(CreateNamespaceRequest request, CancellationToken cancellationToken)

Creates a namespace, and returns the new namespace.

Parameters
NameDescription
requestCreateNamespaceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNamespace

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateNamespaceRequest request = new CreateNamespaceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    NamespaceId = "",
    Namespace = new Namespace(),
};
// Make the request
Namespace response = await registrationServiceClient.CreateNamespaceAsync(request);

CreateNamespaceAsync(string, Namespace, string, CallSettings)

public virtual Task<Namespace> CreateNamespaceAsync(string parent, Namespace @namespace, string namespaceId, CallSettings callSettings = null)

Creates a namespace, and returns the new namespace.

Parameters
NameDescription
parentstring

Required. The resource name of the project and location the namespace will be created in.

namespaceNamespace

Required. A namespace with initial fields set.

namespaceIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNamespace

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Namespace @namespace = new Namespace();
string namespaceId = "";
// Make the request
Namespace response = await registrationServiceClient.CreateNamespaceAsync(parent, @namespace, namespaceId);

CreateNamespaceAsync(string, Namespace, string, CancellationToken)

public virtual Task<Namespace> CreateNamespaceAsync(string parent, Namespace @namespace, string namespaceId, CancellationToken cancellationToken)

Creates a namespace, and returns the new namespace.

Parameters
NameDescription
parentstring

Required. The resource name of the project and location the namespace will be created in.

namespaceNamespace

Required. A namespace with initial fields set.

namespaceIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNamespace

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Namespace @namespace = new Namespace();
string namespaceId = "";
// Make the request
Namespace response = await registrationServiceClient.CreateNamespaceAsync(parent, @namespace, namespaceId);

CreateService(CreateServiceRequest, CallSettings)

public virtual Service CreateService(CreateServiceRequest request, CallSettings callSettings = null)

Creates a service, and returns the new service.

Parameters
NameDescription
requestCreateServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
CreateServiceRequest request = new CreateServiceRequest
{
    ParentAsNamespaceName = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]"),
    ServiceId = "",
    Service = new Service(),
};
// Make the request
Service response = registrationServiceClient.CreateService(request);

CreateService(NamespaceName, Service, string, CallSettings)

public virtual Service CreateService(NamespaceName parent, Service service, string serviceId, CallSettings callSettings = null)

Creates a service, and returns the new service.

Parameters
NameDescription
parentNamespaceName

Required. The resource name of the namespace this service will belong to.

serviceService

Required. A service with initial fields set.

serviceIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
NamespaceName parent = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]");
Service service = new Service();
string serviceId = "";
// Make the request
Service response = registrationServiceClient.CreateService(parent, service, serviceId);

CreateService(string, Service, string, CallSettings)

public virtual Service CreateService(string parent, Service service, string serviceId, CallSettings callSettings = null)

Creates a service, and returns the new service.

Parameters
NameDescription
parentstring

Required. The resource name of the namespace this service will belong to.

serviceService

Required. A service with initial fields set.

serviceIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]";
Service service = new Service();
string serviceId = "";
// Make the request
Service response = registrationServiceClient.CreateService(parent, service, serviceId);

CreateServiceAsync(CreateServiceRequest, CallSettings)

public virtual Task<Service> CreateServiceAsync(CreateServiceRequest request, CallSettings callSettings = null)

Creates a service, and returns the new service.

Parameters
NameDescription
requestCreateServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskService

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateServiceRequest request = new CreateServiceRequest
{
    ParentAsNamespaceName = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]"),
    ServiceId = "",
    Service = new Service(),
};
// Make the request
Service response = await registrationServiceClient.CreateServiceAsync(request);

CreateServiceAsync(CreateServiceRequest, CancellationToken)

public virtual Task<Service> CreateServiceAsync(CreateServiceRequest request, CancellationToken cancellationToken)

Creates a service, and returns the new service.

Parameters
NameDescription
requestCreateServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskService

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateServiceRequest request = new CreateServiceRequest
{
    ParentAsNamespaceName = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]"),
    ServiceId = "",
    Service = new Service(),
};
// Make the request
Service response = await registrationServiceClient.CreateServiceAsync(request);

CreateServiceAsync(NamespaceName, Service, string, CallSettings)

public virtual Task<Service> CreateServiceAsync(NamespaceName parent, Service service, string serviceId, CallSettings callSettings = null)

Creates a service, and returns the new service.

Parameters
NameDescription
parentNamespaceName

Required. The resource name of the namespace this service will belong to.

serviceService

Required. A service with initial fields set.

serviceIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskService

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
NamespaceName parent = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]");
Service service = new Service();
string serviceId = "";
// Make the request
Service response = await registrationServiceClient.CreateServiceAsync(parent, service, serviceId);

CreateServiceAsync(NamespaceName, Service, string, CancellationToken)

public virtual Task<Service> CreateServiceAsync(NamespaceName parent, Service service, string serviceId, CancellationToken cancellationToken)

Creates a service, and returns the new service.

Parameters
NameDescription
parentNamespaceName

Required. The resource name of the namespace this service will belong to.

serviceService

Required. A service with initial fields set.

serviceIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskService

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
NamespaceName parent = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]");
Service service = new Service();
string serviceId = "";
// Make the request
Service response = await registrationServiceClient.CreateServiceAsync(parent, service, serviceId);

CreateServiceAsync(string, Service, string, CallSettings)

public virtual Task<Service> CreateServiceAsync(string parent, Service service, string serviceId, CallSettings callSettings = null)

Creates a service, and returns the new service.

Parameters
NameDescription
parentstring

Required. The resource name of the namespace this service will belong to.

serviceService

Required. A service with initial fields set.

serviceIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskService

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]";
Service service = new Service();
string serviceId = "";
// Make the request
Service response = await registrationServiceClient.CreateServiceAsync(parent, service, serviceId);

CreateServiceAsync(string, Service, string, CancellationToken)

public virtual Task<Service> CreateServiceAsync(string parent, Service service, string serviceId, CancellationToken cancellationToken)

Creates a service, and returns the new service.

Parameters
NameDescription
parentstring

Required. The resource name of the namespace this service will belong to.

serviceService

Required. A service with initial fields set.

serviceIdstring

Required. The Resource ID must be 1-63 characters long, and comply with <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskService

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]";
Service service = new Service();
string serviceId = "";
// Make the request
Service response = await registrationServiceClient.CreateServiceAsync(parent, service, serviceId);

DeleteEndpoint(DeleteEndpointRequest, CallSettings)

public virtual void DeleteEndpoint(DeleteEndpointRequest request, CallSettings callSettings = null)

Deletes an endpoint.

Parameters
NameDescription
requestDeleteEndpointRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
DeleteEndpointRequest request = new DeleteEndpointRequest
{
    EndpointName = EndpointName.FromProjectLocationNamespaceServiceEndpoint("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]"),
};
// Make the request
registrationServiceClient.DeleteEndpoint(request);

DeleteEndpoint(EndpointName, CallSettings)

public virtual void DeleteEndpoint(EndpointName name, CallSettings callSettings = null)

Deletes an endpoint.

Parameters
NameDescription
nameEndpointName

Required. The name of the endpoint to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
EndpointName name = EndpointName.FromProjectLocationNamespaceServiceEndpoint("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]");
// Make the request
registrationServiceClient.DeleteEndpoint(name);

DeleteEndpoint(string, CallSettings)

public virtual void DeleteEndpoint(string name, CallSettings callSettings = null)

Deletes an endpoint.

Parameters
NameDescription
namestring

Required. The name of the endpoint to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]/endpoints/[ENDPOINT]";
// Make the request
registrationServiceClient.DeleteEndpoint(name);

DeleteEndpointAsync(DeleteEndpointRequest, CallSettings)

public virtual Task DeleteEndpointAsync(DeleteEndpointRequest request, CallSettings callSettings = null)

Deletes an endpoint.

Parameters
NameDescription
requestDeleteEndpointRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteEndpointRequest request = new DeleteEndpointRequest
{
    EndpointName = EndpointName.FromProjectLocationNamespaceServiceEndpoint("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]"),
};
// Make the request
await registrationServiceClient.DeleteEndpointAsync(request);

DeleteEndpointAsync(DeleteEndpointRequest, CancellationToken)

public virtual Task DeleteEndpointAsync(DeleteEndpointRequest request, CancellationToken cancellationToken)

Deletes an endpoint.

Parameters
NameDescription
requestDeleteEndpointRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteEndpointRequest request = new DeleteEndpointRequest
{
    EndpointName = EndpointName.FromProjectLocationNamespaceServiceEndpoint("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]"),
};
// Make the request
await registrationServiceClient.DeleteEndpointAsync(request);

DeleteEndpointAsync(EndpointName, CallSettings)

public virtual Task DeleteEndpointAsync(EndpointName name, CallSettings callSettings = null)

Deletes an endpoint.

Parameters
NameDescription
nameEndpointName

Required. The name of the endpoint to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
EndpointName name = EndpointName.FromProjectLocationNamespaceServiceEndpoint("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]");
// Make the request
await registrationServiceClient.DeleteEndpointAsync(name);

DeleteEndpointAsync(EndpointName, CancellationToken)

public virtual Task DeleteEndpointAsync(EndpointName name, CancellationToken cancellationToken)

Deletes an endpoint.

Parameters
NameDescription
nameEndpointName

Required. The name of the endpoint to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
EndpointName name = EndpointName.FromProjectLocationNamespaceServiceEndpoint("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]");
// Make the request
await registrationServiceClient.DeleteEndpointAsync(name);

DeleteEndpointAsync(string, CallSettings)

public virtual Task DeleteEndpointAsync(string name, CallSettings callSettings = null)

Deletes an endpoint.

Parameters
NameDescription
namestring

Required. The name of the endpoint to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]/endpoints/[ENDPOINT]";
// Make the request
await registrationServiceClient.DeleteEndpointAsync(name);

DeleteEndpointAsync(string, CancellationToken)

public virtual Task DeleteEndpointAsync(string name, CancellationToken cancellationToken)

Deletes an endpoint.

Parameters
NameDescription
namestring

Required. The name of the endpoint to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]/endpoints/[ENDPOINT]";
// Make the request
await registrationServiceClient.DeleteEndpointAsync(name);

DeleteNamespace(DeleteNamespaceRequest, CallSettings)

public virtual void DeleteNamespace(DeleteNamespaceRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeleteNamespaceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
DeleteNamespaceRequest request = new DeleteNamespaceRequest
{
    NamespaceName = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]"),
};
// Make the request
registrationServiceClient.DeleteNamespace(request);

DeleteNamespace(NamespaceName, CallSettings)

public virtual void DeleteNamespace(NamespaceName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameNamespaceName

Required. The name of the namespace to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
NamespaceName name = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]");
// Make the request
registrationServiceClient.DeleteNamespace(name);

DeleteNamespace(string, CallSettings)

public virtual void DeleteNamespace(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
namestring

Required. The name of the namespace to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]";
// Make the request
registrationServiceClient.DeleteNamespace(name);

DeleteNamespaceAsync(DeleteNamespaceRequest, CallSettings)

public virtual Task DeleteNamespaceAsync(DeleteNamespaceRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeleteNamespaceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteNamespaceRequest request = new DeleteNamespaceRequest
{
    NamespaceName = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]"),
};
// Make the request
await registrationServiceClient.DeleteNamespaceAsync(request);

DeleteNamespaceAsync(DeleteNamespaceRequest, CancellationToken)

public virtual Task DeleteNamespaceAsync(DeleteNamespaceRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestDeleteNamespaceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteNamespaceRequest request = new DeleteNamespaceRequest
{
    NamespaceName = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]"),
};
// Make the request
await registrationServiceClient.DeleteNamespaceAsync(request);

DeleteNamespaceAsync(NamespaceName, CallSettings)

public virtual Task DeleteNamespaceAsync(NamespaceName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameNamespaceName

Required. The name of the namespace to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
NamespaceName name = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]");
// Make the request
await registrationServiceClient.DeleteNamespaceAsync(name);

DeleteNamespaceAsync(NamespaceName, CancellationToken)

public virtual Task DeleteNamespaceAsync(NamespaceName name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameNamespaceName

Required. The name of the namespace to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
NamespaceName name = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]");
// Make the request
await registrationServiceClient.DeleteNamespaceAsync(name);

DeleteNamespaceAsync(string, CallSettings)

public virtual Task DeleteNamespaceAsync(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
namestring

Required. The name of the namespace to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]";
// Make the request
await registrationServiceClient.DeleteNamespaceAsync(name);

DeleteNamespaceAsync(string, CancellationToken)

public virtual Task DeleteNamespaceAsync(string name, CancellationToken cancellationToken)

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

Parameters
NameDescription
namestring

Required. The name of the namespace to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]";
// Make the request
await registrationServiceClient.DeleteNamespaceAsync(name);

DeleteService(DeleteServiceRequest, CallSettings)

public virtual void DeleteService(DeleteServiceRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeleteServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
DeleteServiceRequest request = new DeleteServiceRequest
{
    ServiceName = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"),
};
// Make the request
registrationServiceClient.DeleteService(request);

DeleteService(ServiceName, CallSettings)

public virtual void DeleteService(ServiceName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameServiceName

Required. The name of the service to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
ServiceName name = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]");
// Make the request
registrationServiceClient.DeleteService(name);

DeleteService(string, CallSettings)

public virtual void DeleteService(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
namestring

Required. The name of the service to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]";
// Make the request
registrationServiceClient.DeleteService(name);

DeleteServiceAsync(DeleteServiceRequest, CallSettings)

public virtual Task DeleteServiceAsync(DeleteServiceRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeleteServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteServiceRequest request = new DeleteServiceRequest
{
    ServiceName = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"),
};
// Make the request
await registrationServiceClient.DeleteServiceAsync(request);

DeleteServiceAsync(DeleteServiceRequest, CancellationToken)

public virtual Task DeleteServiceAsync(DeleteServiceRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestDeleteServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteServiceRequest request = new DeleteServiceRequest
{
    ServiceName = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"),
};
// Make the request
await registrationServiceClient.DeleteServiceAsync(request);

DeleteServiceAsync(ServiceName, CallSettings)

public virtual Task DeleteServiceAsync(ServiceName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameServiceName

Required. The name of the service to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceName name = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]");
// Make the request
await registrationServiceClient.DeleteServiceAsync(name);

DeleteServiceAsync(ServiceName, CancellationToken)

public virtual Task DeleteServiceAsync(ServiceName name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameServiceName

Required. The name of the service to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceName name = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]");
// Make the request
await registrationServiceClient.DeleteServiceAsync(name);

DeleteServiceAsync(string, CallSettings)

public virtual Task DeleteServiceAsync(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
namestring

Required. The name of the service to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]";
// Make the request
await registrationServiceClient.DeleteServiceAsync(name);

DeleteServiceAsync(string, CancellationToken)

public virtual Task DeleteServiceAsync(string name, CancellationToken cancellationToken)

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

Parameters
NameDescription
namestring

Required. The name of the service to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]";
// Make the request
await registrationServiceClient.DeleteServiceAsync(name);

GetEndpoint(EndpointName, CallSettings)

public virtual Endpoint GetEndpoint(EndpointName name, CallSettings callSettings = null)

Gets an endpoint.

Parameters
NameDescription
nameEndpointName

Required. The name of the endpoint to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Endpoint

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
EndpointName name = EndpointName.FromProjectLocationNamespaceServiceEndpoint("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]");
// Make the request
Endpoint response = registrationServiceClient.GetEndpoint(name);

GetEndpoint(GetEndpointRequest, CallSettings)

public virtual Endpoint GetEndpoint(GetEndpointRequest request, CallSettings callSettings = null)

Gets an endpoint.

Parameters
NameDescription
requestGetEndpointRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Endpoint

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
GetEndpointRequest request = new GetEndpointRequest
{
    EndpointName = EndpointName.FromProjectLocationNamespaceServiceEndpoint("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]"),
};
// Make the request
Endpoint response = registrationServiceClient.GetEndpoint(request);

GetEndpoint(string, CallSettings)

public virtual Endpoint GetEndpoint(string name, CallSettings callSettings = null)

Gets an endpoint.

Parameters
NameDescription
namestring

Required. The name of the endpoint to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Endpoint

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]/endpoints/[ENDPOINT]";
// Make the request
Endpoint response = registrationServiceClient.GetEndpoint(name);

GetEndpointAsync(EndpointName, CallSettings)

public virtual Task<Endpoint> GetEndpointAsync(EndpointName name, CallSettings callSettings = null)

Gets an endpoint.

Parameters
NameDescription
nameEndpointName

Required. The name of the endpoint to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskEndpoint

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
EndpointName name = EndpointName.FromProjectLocationNamespaceServiceEndpoint("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]");
// Make the request
Endpoint response = await registrationServiceClient.GetEndpointAsync(name);

GetEndpointAsync(EndpointName, CancellationToken)

public virtual Task<Endpoint> GetEndpointAsync(EndpointName name, CancellationToken cancellationToken)

Gets an endpoint.

Parameters
NameDescription
nameEndpointName

Required. The name of the endpoint to get.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskEndpoint

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
EndpointName name = EndpointName.FromProjectLocationNamespaceServiceEndpoint("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]");
// Make the request
Endpoint response = await registrationServiceClient.GetEndpointAsync(name);

GetEndpointAsync(GetEndpointRequest, CallSettings)

public virtual Task<Endpoint> GetEndpointAsync(GetEndpointRequest request, CallSettings callSettings = null)

Gets an endpoint.

Parameters
NameDescription
requestGetEndpointRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskEndpoint

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetEndpointRequest request = new GetEndpointRequest
{
    EndpointName = EndpointName.FromProjectLocationNamespaceServiceEndpoint("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]"),
};
// Make the request
Endpoint response = await registrationServiceClient.GetEndpointAsync(request);

GetEndpointAsync(GetEndpointRequest, CancellationToken)

public virtual Task<Endpoint> GetEndpointAsync(GetEndpointRequest request, CancellationToken cancellationToken)

Gets an endpoint.

Parameters
NameDescription
requestGetEndpointRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskEndpoint

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetEndpointRequest request = new GetEndpointRequest
{
    EndpointName = EndpointName.FromProjectLocationNamespaceServiceEndpoint("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]"),
};
// Make the request
Endpoint response = await registrationServiceClient.GetEndpointAsync(request);

GetEndpointAsync(string, CallSettings)

public virtual Task<Endpoint> GetEndpointAsync(string name, CallSettings callSettings = null)

Gets an endpoint.

Parameters
NameDescription
namestring

Required. The name of the endpoint to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskEndpoint

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]/endpoints/[ENDPOINT]";
// Make the request
Endpoint response = await registrationServiceClient.GetEndpointAsync(name);

GetEndpointAsync(string, CancellationToken)

public virtual Task<Endpoint> GetEndpointAsync(string name, CancellationToken cancellationToken)

Gets an endpoint.

Parameters
NameDescription
namestring

Required. The name of the endpoint to get.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskEndpoint

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]/endpoints/[ENDPOINT]";
// Make the request
Endpoint response = await registrationServiceClient.GetEndpointAsync(name);

GetIamPolicy(GetIamPolicyRequest, CallSettings)

public virtual Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the IAM Policy for a resource

Parameters
NameDescription
requestGetIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Options = new GetPolicyOptions(),
};
// Make the request
Policy response = registrationServiceClient.GetIamPolicy(request);

GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)

public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the IAM Policy for a resource

Parameters
NameDescription
requestGetIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Options = new GetPolicyOptions(),
};
// Make the request
Policy response = await registrationServiceClient.GetIamPolicyAsync(request);

GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken)

public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CancellationToken cancellationToken)

Gets the IAM Policy for a resource

Parameters
NameDescription
requestGetIamPolicyRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Options = new GetPolicyOptions(),
};
// Make the request
Policy response = await registrationServiceClient.GetIamPolicyAsync(request);

GetNamespace(GetNamespaceRequest, CallSettings)

public virtual Namespace GetNamespace(GetNamespaceRequest request, CallSettings callSettings = null)

Gets a namespace.

Parameters
NameDescription
requestGetNamespaceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Namespace

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
GetNamespaceRequest request = new GetNamespaceRequest
{
    NamespaceName = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]"),
};
// Make the request
Namespace response = registrationServiceClient.GetNamespace(request);

GetNamespace(NamespaceName, CallSettings)

public virtual Namespace GetNamespace(NamespaceName name, CallSettings callSettings = null)

Gets a namespace.

Parameters
NameDescription
nameNamespaceName

Required. The name of the namespace to retrieve.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Namespace

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
NamespaceName name = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]");
// Make the request
Namespace response = registrationServiceClient.GetNamespace(name);

GetNamespace(string, CallSettings)

public virtual Namespace GetNamespace(string name, CallSettings callSettings = null)

Gets a namespace.

Parameters
NameDescription
namestring

Required. The name of the namespace to retrieve.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Namespace

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]";
// Make the request
Namespace response = registrationServiceClient.GetNamespace(name);

GetNamespaceAsync(GetNamespaceRequest, CallSettings)

public virtual Task<Namespace> GetNamespaceAsync(GetNamespaceRequest request, CallSettings callSettings = null)

Gets a namespace.

Parameters
NameDescription
requestGetNamespaceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNamespace

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetNamespaceRequest request = new GetNamespaceRequest
{
    NamespaceName = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]"),
};
// Make the request
Namespace response = await registrationServiceClient.GetNamespaceAsync(request);

GetNamespaceAsync(GetNamespaceRequest, CancellationToken)

public virtual Task<Namespace> GetNamespaceAsync(GetNamespaceRequest request, CancellationToken cancellationToken)

Gets a namespace.

Parameters
NameDescription
requestGetNamespaceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNamespace

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetNamespaceRequest request = new GetNamespaceRequest
{
    NamespaceName = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]"),
};
// Make the request
Namespace response = await registrationServiceClient.GetNamespaceAsync(request);

GetNamespaceAsync(NamespaceName, CallSettings)

public virtual Task<Namespace> GetNamespaceAsync(NamespaceName name, CallSettings callSettings = null)

Gets a namespace.

Parameters
NameDescription
nameNamespaceName

Required. The name of the namespace to retrieve.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNamespace

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
NamespaceName name = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]");
// Make the request
Namespace response = await registrationServiceClient.GetNamespaceAsync(name);

GetNamespaceAsync(NamespaceName, CancellationToken)

public virtual Task<Namespace> GetNamespaceAsync(NamespaceName name, CancellationToken cancellationToken)

Gets a namespace.

Parameters
NameDescription
nameNamespaceName

Required. The name of the namespace to retrieve.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNamespace

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
NamespaceName name = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]");
// Make the request
Namespace response = await registrationServiceClient.GetNamespaceAsync(name);

GetNamespaceAsync(string, CallSettings)

public virtual Task<Namespace> GetNamespaceAsync(string name, CallSettings callSettings = null)

Gets a namespace.

Parameters
NameDescription
namestring

Required. The name of the namespace to retrieve.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNamespace

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]";
// Make the request
Namespace response = await registrationServiceClient.GetNamespaceAsync(name);

GetNamespaceAsync(string, CancellationToken)

public virtual Task<Namespace> GetNamespaceAsync(string name, CancellationToken cancellationToken)

Gets a namespace.

Parameters
NameDescription
namestring

Required. The name of the namespace to retrieve.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNamespace

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]";
// Make the request
Namespace response = await registrationServiceClient.GetNamespaceAsync(name);

GetService(GetServiceRequest, CallSettings)

public virtual Service GetService(GetServiceRequest request, CallSettings callSettings = null)

Gets a service.

Parameters
NameDescription
requestGetServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
GetServiceRequest request = new GetServiceRequest
{
    ServiceName = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"),
};
// Make the request
Service response = registrationServiceClient.GetService(request);

GetService(ServiceName, CallSettings)

public virtual Service GetService(ServiceName name, CallSettings callSettings = null)

Gets a service.

Parameters
NameDescription
nameServiceName

Required. The name of the service to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
ServiceName name = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]");
// Make the request
Service response = registrationServiceClient.GetService(name);

GetService(string, CallSettings)

public virtual Service GetService(string name, CallSettings callSettings = null)

Gets a service.

Parameters
NameDescription
namestring

Required. The name of the service to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]";
// Make the request
Service response = registrationServiceClient.GetService(name);

GetServiceAsync(GetServiceRequest, CallSettings)

public virtual Task<Service> GetServiceAsync(GetServiceRequest request, CallSettings callSettings = null)

Gets a service.

Parameters
NameDescription
requestGetServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskService

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetServiceRequest request = new GetServiceRequest
{
    ServiceName = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"),
};
// Make the request
Service response = await registrationServiceClient.GetServiceAsync(request);

GetServiceAsync(GetServiceRequest, CancellationToken)

public virtual Task<Service> GetServiceAsync(GetServiceRequest request, CancellationToken cancellationToken)

Gets a service.

Parameters
NameDescription
requestGetServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskService

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
GetServiceRequest request = new GetServiceRequest
{
    ServiceName = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"),
};
// Make the request
Service response = await registrationServiceClient.GetServiceAsync(request);

GetServiceAsync(ServiceName, CallSettings)

public virtual Task<Service> GetServiceAsync(ServiceName name, CallSettings callSettings = null)

Gets a service.

Parameters
NameDescription
nameServiceName

Required. The name of the service to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskService

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceName name = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]");
// Make the request
Service response = await registrationServiceClient.GetServiceAsync(name);

GetServiceAsync(ServiceName, CancellationToken)

public virtual Task<Service> GetServiceAsync(ServiceName name, CancellationToken cancellationToken)

Gets a service.

Parameters
NameDescription
nameServiceName

Required. The name of the service to get.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskService

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceName name = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]");
// Make the request
Service response = await registrationServiceClient.GetServiceAsync(name);

GetServiceAsync(string, CallSettings)

public virtual Task<Service> GetServiceAsync(string name, CallSettings callSettings = null)

Gets a service.

Parameters
NameDescription
namestring

Required. The name of the service to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskService

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]";
// Make the request
Service response = await registrationServiceClient.GetServiceAsync(name);

GetServiceAsync(string, CancellationToken)

public virtual Task<Service> GetServiceAsync(string name, CancellationToken cancellationToken)

Gets a service.

Parameters
NameDescription
namestring

Required. The name of the service to get.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskService

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]";
// Make the request
Service response = await registrationServiceClient.GetServiceAsync(name);

ListEndpoints(ListEndpointsRequest, CallSettings)

public virtual PagedEnumerable<ListEndpointsResponse, Endpoint> ListEndpoints(ListEndpointsRequest request, CallSettings callSettings = null)

Lists all endpoints.

Parameters
NameDescription
requestListEndpointsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListEndpointsResponseEndpoint

A pageable sequence of Endpoint resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
ListEndpointsRequest request = new ListEndpointsRequest
{
    ParentAsServiceName = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListEndpointsResponse, Endpoint> response = registrationServiceClient.ListEndpoints(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Endpoint item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEndpointsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Endpoint item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Endpoint> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Endpoint item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListEndpoints(ServiceName, string, int?, CallSettings)

public virtual PagedEnumerable<ListEndpointsResponse, Endpoint> ListEndpoints(ServiceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all endpoints.

Parameters
NameDescription
parentServiceName

Required. The resource name of the service whose endpoints you'd like to list.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListEndpointsResponseEndpoint

A pageable sequence of Endpoint resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]");
// Make the request
PagedEnumerable<ListEndpointsResponse, Endpoint> response = registrationServiceClient.ListEndpoints(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Endpoint item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEndpointsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Endpoint item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Endpoint> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Endpoint item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListEndpoints(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListEndpointsResponse, Endpoint> ListEndpoints(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all endpoints.

Parameters
NameDescription
parentstring

Required. The resource name of the service whose endpoints you'd like to list.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListEndpointsResponseEndpoint

A pageable sequence of Endpoint resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]";
// Make the request
PagedEnumerable<ListEndpointsResponse, Endpoint> response = registrationServiceClient.ListEndpoints(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Endpoint item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEndpointsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Endpoint item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Endpoint> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Endpoint item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListEndpointsAsync(ListEndpointsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListEndpointsResponse, Endpoint> ListEndpointsAsync(ListEndpointsRequest request, CallSettings callSettings = null)

Lists all endpoints.

Parameters
NameDescription
requestListEndpointsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListEndpointsResponseEndpoint

A pageable asynchronous sequence of Endpoint resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
ListEndpointsRequest request = new ListEndpointsRequest
{
    ParentAsServiceName = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListEndpointsResponse, Endpoint> response = registrationServiceClient.ListEndpointsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Endpoint item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListEndpointsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Endpoint item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Endpoint> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Endpoint item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListEndpointsAsync(ServiceName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListEndpointsResponse, Endpoint> ListEndpointsAsync(ServiceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all endpoints.

Parameters
NameDescription
parentServiceName

Required. The resource name of the service whose endpoints you'd like to list.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListEndpointsResponseEndpoint

A pageable asynchronous sequence of Endpoint resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]");
// Make the request
PagedAsyncEnumerable<ListEndpointsResponse, Endpoint> response = registrationServiceClient.ListEndpointsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Endpoint item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListEndpointsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Endpoint item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Endpoint> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Endpoint item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListEndpointsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListEndpointsResponse, Endpoint> ListEndpointsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all endpoints.

Parameters
NameDescription
parentstring

Required. The resource name of the service whose endpoints you'd like to list.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListEndpointsResponseEndpoint

A pageable asynchronous sequence of Endpoint resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]";
// Make the request
PagedAsyncEnumerable<ListEndpointsResponse, Endpoint> response = registrationServiceClient.ListEndpointsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Endpoint item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListEndpointsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Endpoint item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Endpoint> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Endpoint item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNamespaces(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListNamespacesResponse, Namespace> ListNamespaces(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all namespaces.

Parameters
NameDescription
parentLocationName

Required. The resource name of the project and location whose namespaces you'd like to list.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListNamespacesResponseNamespace

A pageable sequence of Namespace resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListNamespacesResponse, Namespace> response = registrationServiceClient.ListNamespaces(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Namespace item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNamespacesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Namespace item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Namespace> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Namespace item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNamespaces(ListNamespacesRequest, CallSettings)

public virtual PagedEnumerable<ListNamespacesResponse, Namespace> ListNamespaces(ListNamespacesRequest request, CallSettings callSettings = null)

Lists all namespaces.

Parameters
NameDescription
requestListNamespacesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListNamespacesResponseNamespace

A pageable sequence of Namespace resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
ListNamespacesRequest request = new ListNamespacesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListNamespacesResponse, Namespace> response = registrationServiceClient.ListNamespaces(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Namespace item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNamespacesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Namespace item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Namespace> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Namespace item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNamespaces(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListNamespacesResponse, Namespace> ListNamespaces(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all namespaces.

Parameters
NameDescription
parentstring

Required. The resource name of the project and location whose namespaces you'd like to list.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListNamespacesResponseNamespace

A pageable sequence of Namespace resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListNamespacesResponse, Namespace> response = registrationServiceClient.ListNamespaces(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Namespace item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListNamespacesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Namespace item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Namespace> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Namespace item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNamespacesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListNamespacesResponse, Namespace> ListNamespacesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all namespaces.

Parameters
NameDescription
parentLocationName

Required. The resource name of the project and location whose namespaces you'd like to list.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListNamespacesResponseNamespace

A pageable asynchronous sequence of Namespace resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListNamespacesResponse, Namespace> response = registrationServiceClient.ListNamespacesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Namespace item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNamespacesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Namespace item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Namespace> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Namespace item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNamespacesAsync(ListNamespacesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListNamespacesResponse, Namespace> ListNamespacesAsync(ListNamespacesRequest request, CallSettings callSettings = null)

Lists all namespaces.

Parameters
NameDescription
requestListNamespacesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListNamespacesResponseNamespace

A pageable asynchronous sequence of Namespace resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
ListNamespacesRequest request = new ListNamespacesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListNamespacesResponse, Namespace> response = registrationServiceClient.ListNamespacesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Namespace item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNamespacesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Namespace item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Namespace> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Namespace item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNamespacesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListNamespacesResponse, Namespace> ListNamespacesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all namespaces.

Parameters
NameDescription
parentstring

Required. The resource name of the project and location whose namespaces you'd like to list.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListNamespacesResponseNamespace

A pageable asynchronous sequence of Namespace resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListNamespacesResponse, Namespace> response = registrationServiceClient.ListNamespacesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Namespace item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNamespacesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Namespace item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Namespace> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Namespace item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServices(ListServicesRequest, CallSettings)

public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(ListServicesRequest request, CallSettings callSettings = null)

Lists all services belonging to a namespace.

Parameters
NameDescription
requestListServicesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListServicesResponseService

A pageable sequence of Service resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
ListServicesRequest request = new ListServicesRequest
{
    ParentAsNamespaceName = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListServicesResponse, Service> response = registrationServiceClient.ListServices(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Service item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Service> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Service item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServices(NamespaceName, string, int?, CallSettings)

public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(NamespaceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all services belonging to a namespace.

Parameters
NameDescription
parentNamespaceName

Required. The resource name of the namespace whose services you'd like to list.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListServicesResponseService

A pageable sequence of Service resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
NamespaceName parent = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]");
// Make the request
PagedEnumerable<ListServicesResponse, Service> response = registrationServiceClient.ListServices(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Service item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Service> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Service item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServices(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all services belonging to a namespace.

Parameters
NameDescription
parentstring

Required. The resource name of the namespace whose services you'd like to list.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListServicesResponseService

A pageable sequence of Service resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]";
// Make the request
PagedEnumerable<ListServicesResponse, Service> response = registrationServiceClient.ListServices(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Service item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Service> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Service item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServicesAsync(ListServicesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(ListServicesRequest request, CallSettings callSettings = null)

Lists all services belonging to a namespace.

Parameters
NameDescription
requestListServicesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListServicesResponseService

A pageable asynchronous sequence of Service resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
ListServicesRequest request = new ListServicesRequest
{
    ParentAsNamespaceName = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListServicesResponse, Service> response = registrationServiceClient.ListServicesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Service item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListServicesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Service> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Service item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServicesAsync(NamespaceName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(NamespaceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all services belonging to a namespace.

Parameters
NameDescription
parentNamespaceName

Required. The resource name of the namespace whose services you'd like to list.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListServicesResponseService

A pageable asynchronous sequence of Service resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
NamespaceName parent = NamespaceName.FromProjectLocationNamespace("[PROJECT]", "[LOCATION]", "[NAMESPACE]");
// Make the request
PagedAsyncEnumerable<ListServicesResponse, Service> response = registrationServiceClient.ListServicesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Service item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListServicesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Service> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Service item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServicesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all services belonging to a namespace.

Parameters
NameDescription
parentstring

Required. The resource name of the namespace whose services you'd like to list.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListServicesResponseService

A pageable asynchronous sequence of Service resources.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]";
// Make the request
PagedAsyncEnumerable<ListServicesResponse, Service> response = registrationServiceClient.ListServicesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Service item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListServicesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Service> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Service item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SetIamPolicy(SetIamPolicyRequest, CallSettings)

public virtual Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)

Sets the IAM Policy for a resource

Parameters
NameDescription
requestSetIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Policy = new Policy(),
    UpdateMask = new FieldMask(),
};
// Make the request
Policy response = registrationServiceClient.SetIamPolicy(request);

SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)

public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)

Sets the IAM Policy for a resource

Parameters
NameDescription
requestSetIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Policy = new Policy(),
    UpdateMask = new FieldMask(),
};
// Make the request
Policy response = await registrationServiceClient.SetIamPolicyAsync(request);

SetIamPolicyAsync(SetIamPolicyRequest, CancellationToken)

public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CancellationToken cancellationToken)

Sets the IAM Policy for a resource

Parameters
NameDescription
requestSetIamPolicyRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Policy = new Policy(),
    UpdateMask = new FieldMask(),
};
// Make the request
Policy response = await registrationServiceClient.SetIamPolicyAsync(request);

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
TypeDescription
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

TestIamPermissions(TestIamPermissionsRequest, CallSettings)

public virtual TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestTestIamPermissionsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TestIamPermissionsResponse

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = registrationServiceClient.TestIamPermissions(request);

TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)

public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestTestIamPermissionsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTestIamPermissionsResponse

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = await registrationServiceClient.TestIamPermissionsAsync(request);

TestIamPermissionsAsync(TestIamPermissionsRequest, CancellationToken)

public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestTestIamPermissionsRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskTestIamPermissionsResponse

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = await registrationServiceClient.TestIamPermissionsAsync(request);

UpdateEndpoint(Endpoint, FieldMask, CallSettings)

public virtual Endpoint UpdateEndpoint(Endpoint endpoint, FieldMask updateMask, CallSettings callSettings = null)

Updates an endpoint.

Parameters
NameDescription
endpointEndpoint

Required. The updated endpoint.

updateMaskFieldMask

Required. List of fields to be updated in this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Endpoint

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
Endpoint endpoint = new Endpoint();
FieldMask updateMask = new FieldMask();
// Make the request
Endpoint response = registrationServiceClient.UpdateEndpoint(endpoint, updateMask);

UpdateEndpoint(UpdateEndpointRequest, CallSettings)

public virtual Endpoint UpdateEndpoint(UpdateEndpointRequest request, CallSettings callSettings = null)

Updates an endpoint.

Parameters
NameDescription
requestUpdateEndpointRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Endpoint

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
UpdateEndpointRequest request = new UpdateEndpointRequest
{
    Endpoint = new Endpoint(),
    UpdateMask = new FieldMask(),
};
// Make the request
Endpoint response = registrationServiceClient.UpdateEndpoint(request);

UpdateEndpointAsync(Endpoint, FieldMask, CallSettings)

public virtual Task<Endpoint> UpdateEndpointAsync(Endpoint endpoint, FieldMask updateMask, CallSettings callSettings = null)

Updates an endpoint.

Parameters
NameDescription
endpointEndpoint

Required. The updated endpoint.

updateMaskFieldMask

Required. List of fields to be updated in this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskEndpoint

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
Endpoint endpoint = new Endpoint();
FieldMask updateMask = new FieldMask();
// Make the request
Endpoint response = await registrationServiceClient.UpdateEndpointAsync(endpoint, updateMask);

UpdateEndpointAsync(Endpoint, FieldMask, CancellationToken)

public virtual Task<Endpoint> UpdateEndpointAsync(Endpoint endpoint, FieldMask updateMask, CancellationToken cancellationToken)

Updates an endpoint.

Parameters
NameDescription
endpointEndpoint

Required. The updated endpoint.

updateMaskFieldMask

Required. List of fields to be updated in this request.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskEndpoint

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
Endpoint endpoint = new Endpoint();
FieldMask updateMask = new FieldMask();
// Make the request
Endpoint response = await registrationServiceClient.UpdateEndpointAsync(endpoint, updateMask);

UpdateEndpointAsync(UpdateEndpointRequest, CallSettings)

public virtual Task<Endpoint> UpdateEndpointAsync(UpdateEndpointRequest request, CallSettings callSettings = null)

Updates an endpoint.

Parameters
NameDescription
requestUpdateEndpointRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskEndpoint

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateEndpointRequest request = new UpdateEndpointRequest
{
    Endpoint = new Endpoint(),
    UpdateMask = new FieldMask(),
};
// Make the request
Endpoint response = await registrationServiceClient.UpdateEndpointAsync(request);

UpdateEndpointAsync(UpdateEndpointRequest, CancellationToken)

public virtual Task<Endpoint> UpdateEndpointAsync(UpdateEndpointRequest request, CancellationToken cancellationToken)

Updates an endpoint.

Parameters
NameDescription
requestUpdateEndpointRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskEndpoint

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateEndpointRequest request = new UpdateEndpointRequest
{
    Endpoint = new Endpoint(),
    UpdateMask = new FieldMask(),
};
// Make the request
Endpoint response = await registrationServiceClient.UpdateEndpointAsync(request);

UpdateNamespace(Namespace, FieldMask, CallSettings)

public virtual Namespace UpdateNamespace(Namespace @namespace, FieldMask updateMask, CallSettings callSettings = null)

Updates a namespace.

Parameters
NameDescription
namespaceNamespace

Required. The updated namespace.

updateMaskFieldMask

Required. List of fields to be updated in this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Namespace

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
Namespace @namespace = new Namespace();
FieldMask updateMask = new FieldMask();
// Make the request
Namespace response = registrationServiceClient.UpdateNamespace(@namespace, updateMask);

UpdateNamespace(UpdateNamespaceRequest, CallSettings)

public virtual Namespace UpdateNamespace(UpdateNamespaceRequest request, CallSettings callSettings = null)

Updates a namespace.

Parameters
NameDescription
requestUpdateNamespaceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Namespace

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
UpdateNamespaceRequest request = new UpdateNamespaceRequest
{
    Namespace = new Namespace(),
    UpdateMask = new FieldMask(),
};
// Make the request
Namespace response = registrationServiceClient.UpdateNamespace(request);

UpdateNamespaceAsync(Namespace, FieldMask, CallSettings)

public virtual Task<Namespace> UpdateNamespaceAsync(Namespace @namespace, FieldMask updateMask, CallSettings callSettings = null)

Updates a namespace.

Parameters
NameDescription
namespaceNamespace

Required. The updated namespace.

updateMaskFieldMask

Required. List of fields to be updated in this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNamespace

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
Namespace @namespace = new Namespace();
FieldMask updateMask = new FieldMask();
// Make the request
Namespace response = await registrationServiceClient.UpdateNamespaceAsync(@namespace, updateMask);

UpdateNamespaceAsync(Namespace, FieldMask, CancellationToken)

public virtual Task<Namespace> UpdateNamespaceAsync(Namespace @namespace, FieldMask updateMask, CancellationToken cancellationToken)

Updates a namespace.

Parameters
NameDescription
namespaceNamespace

Required. The updated namespace.

updateMaskFieldMask

Required. List of fields to be updated in this request.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNamespace

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
Namespace @namespace = new Namespace();
FieldMask updateMask = new FieldMask();
// Make the request
Namespace response = await registrationServiceClient.UpdateNamespaceAsync(@namespace, updateMask);

UpdateNamespaceAsync(UpdateNamespaceRequest, CallSettings)

public virtual Task<Namespace> UpdateNamespaceAsync(UpdateNamespaceRequest request, CallSettings callSettings = null)

Updates a namespace.

Parameters
NameDescription
requestUpdateNamespaceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNamespace

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateNamespaceRequest request = new UpdateNamespaceRequest
{
    Namespace = new Namespace(),
    UpdateMask = new FieldMask(),
};
// Make the request
Namespace response = await registrationServiceClient.UpdateNamespaceAsync(request);

UpdateNamespaceAsync(UpdateNamespaceRequest, CancellationToken)

public virtual Task<Namespace> UpdateNamespaceAsync(UpdateNamespaceRequest request, CancellationToken cancellationToken)

Updates a namespace.

Parameters
NameDescription
requestUpdateNamespaceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNamespace

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateNamespaceRequest request = new UpdateNamespaceRequest
{
    Namespace = new Namespace(),
    UpdateMask = new FieldMask(),
};
// Make the request
Namespace response = await registrationServiceClient.UpdateNamespaceAsync(request);

UpdateService(Service, FieldMask, CallSettings)

public virtual Service UpdateService(Service service, FieldMask updateMask, CallSettings callSettings = null)

Updates a service.

Parameters
NameDescription
serviceService

Required. The updated service.

updateMaskFieldMask

Required. List of fields to be updated in this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
Service service = new Service();
FieldMask updateMask = new FieldMask();
// Make the request
Service response = registrationServiceClient.UpdateService(service, updateMask);

UpdateService(UpdateServiceRequest, CallSettings)

public virtual Service UpdateService(UpdateServiceRequest request, CallSettings callSettings = null)

Updates a service.

Parameters
NameDescription
requestUpdateServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
UpdateServiceRequest request = new UpdateServiceRequest
{
    Service = new Service(),
    UpdateMask = new FieldMask(),
};
// Make the request
Service response = registrationServiceClient.UpdateService(request);

UpdateServiceAsync(Service, FieldMask, CallSettings)

public virtual Task<Service> UpdateServiceAsync(Service service, FieldMask updateMask, CallSettings callSettings = null)

Updates a service.

Parameters
NameDescription
serviceService

Required. The updated service.

updateMaskFieldMask

Required. List of fields to be updated in this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskService

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
Service service = new Service();
FieldMask updateMask = new FieldMask();
// Make the request
Service response = await registrationServiceClient.UpdateServiceAsync(service, updateMask);

UpdateServiceAsync(Service, FieldMask, CancellationToken)

public virtual Task<Service> UpdateServiceAsync(Service service, FieldMask updateMask, CancellationToken cancellationToken)

Updates a service.

Parameters
NameDescription
serviceService

Required. The updated service.

updateMaskFieldMask

Required. List of fields to be updated in this request.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskService

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
Service service = new Service();
FieldMask updateMask = new FieldMask();
// Make the request
Service response = await registrationServiceClient.UpdateServiceAsync(service, updateMask);

UpdateServiceAsync(UpdateServiceRequest, CallSettings)

public virtual Task<Service> UpdateServiceAsync(UpdateServiceRequest request, CallSettings callSettings = null)

Updates a service.

Parameters
NameDescription
requestUpdateServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskService

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateServiceRequest request = new UpdateServiceRequest
{
    Service = new Service(),
    UpdateMask = new FieldMask(),
};
// Make the request
Service response = await registrationServiceClient.UpdateServiceAsync(request);

UpdateServiceAsync(UpdateServiceRequest, CancellationToken)

public virtual Task<Service> UpdateServiceAsync(UpdateServiceRequest request, CancellationToken cancellationToken)

Updates a service.

Parameters
NameDescription
requestUpdateServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskService

A Task containing the RPC response.

Example
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateServiceRequest request = new UpdateServiceRequest
{
    Service = new Service(),
    UpdateMask = new FieldMask(),
};
// Make the request
Service response = await registrationServiceClient.UpdateServiceAsync(request);