Service Directory v1 API - Class RegistrationServiceClient (2.1.0)

public abstract class RegistrationServiceClient

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

RegistrationService client wrapper, for convenient use.

Inheritance

Object > RegistrationServiceClient

Namespace

Google.Cloud.ServiceDirectory.V1

Assembly

Google.Cloud.ServiceDirectory.V1.dll

Remarks

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

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

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

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

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
IReadOnlyList<String>
Remarks

The default RegistrationService scopes are:

GrpcClient

public virtual RegistrationService.RegistrationServiceClient GrpcClient { get; }

The underlying gRPC RegistrationService client

Property Value
TypeDescription
RegistrationService.RegistrationServiceClient

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(CancellationToken))

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
Task<RegistrationServiceClient>

The task representing the created RegistrationServiceClient.

CreateEndpoint(CreateEndpointRequest, CallSettings)

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

Creates a 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 a 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 a 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 a 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
Task<Endpoint>

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 a 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
Task<Endpoint>

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 a 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
Task<Endpoint>

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 a 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
Task<Endpoint>

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 a 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
Task<Endpoint>

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 a 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
Task<Endpoint>

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
Task<Namespace>

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
Task<Namespace>

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
Task<Namespace>

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
Task<Namespace>

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
Task<Namespace>

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
Task<Namespace>

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
Task<Service>

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
Task<Service>

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
Task<Service>

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
Task<Service>

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
Task<Service>

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
Task<Service>

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 a 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 a 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 a 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 a 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 a 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 a 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 a 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 a 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 a 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 a 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 a 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 a 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 a endpoint.

Parameters
NameDescription
nameEndpointName

Required. The name of the endpoint to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Endpoint>

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 a endpoint.

Parameters
NameDescription
nameEndpointName

Required. The name of the endpoint to get.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Endpoint>

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 a 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
Task<Endpoint>

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 a 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
Task<Endpoint>

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 a endpoint.

Parameters
NameDescription
nameString

Required. The name of the endpoint to get.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Endpoint>

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 a endpoint.

Parameters
NameDescription
nameString

Required. The name of the endpoint to get.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Endpoint>

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 (namespace or service only).

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 (namespace or service only).

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
Task<Policy>

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 (namespace or service only).

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
Task<Policy>

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
Task<Namespace>

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
Task<Namespace>

A Task containing the RPC response.

Example