Class RegistrationServiceClient (1.4.0)

public abstract 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

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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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 &lt;a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank"&gt;RFC1035&lt;/a&gt;. 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
// 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
Task<Namespace>

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

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

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

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

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

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

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

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

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

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
PagedEnumerable<ListEndpointsResponse, Endpoint>

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, Nullable<Int32>, CallSettings)

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

Lists all endpoints.

Parameters
NameDescription
parentServiceName

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedEnumerable<ListEndpointsResponse, Endpoint>

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, Nullable<Int32>, CallSettings)

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

Lists all endpoints.

Parameters
NameDescription
parentString

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedEnumerable<ListEndpointsResponse, Endpoint>

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
PagedAsyncEnumerable<ListEndpointsResponse, Endpoint>

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, Nullable<Int32>, CallSettings)

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

Lists all endpoints.

Parameters
NameDescription
parentServiceName

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedAsyncEnumerable<ListEndpointsResponse, Endpoint>

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, Nullable<Int32>, CallSettings)

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

Lists all endpoints.

Parameters
NameDescription
parentString

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedAsyncEnumerable<ListEndpointsResponse, Endpoint>

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, Nullable<Int32>, CallSettings)

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

Lists all namespaces.

Parameters
NameDescription
parentLocationName

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedEnumerable<ListNamespacesResponse, Namespace>

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
PagedEnumerable<ListNamespacesResponse, Namespace>

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, Nullable<Int32>, CallSettings)

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

Lists all namespaces.

Parameters
NameDescription
parentString

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedEnumerable<ListNamespacesResponse, Namespace>

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, Nullable<Int32>, CallSettings)

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

Lists all namespaces.

Parameters
NameDescription
parentLocationName

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedAsyncEnumerable<ListNamespacesResponse, Namespace>

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
PagedAsyncEnumerable<ListNamespacesResponse, Namespace>

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, Nullable<Int32>, CallSettings)

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

Lists all namespaces.

Parameters
NameDescription
parentString

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedAsyncEnumerable<ListNamespacesResponse, Namespace>

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
PagedEnumerable<ListServicesResponse, Service>

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, Nullable<Int32>, CallSettings)

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

Lists all services belonging to a namespace.

Parameters
NameDescription
parentNamespaceName

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedEnumerable<ListServicesResponse, Service>

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, Nullable<Int32>, CallSettings)

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

Lists all services belonging to a namespace.

Parameters
NameDescription
parentString

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedEnumerable<ListServicesResponse, Service>

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
PagedAsyncEnumerable<ListServicesResponse, Service>

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, Nullable<Int32>, CallSettings)

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

Lists all services belonging to a namespace.

Parameters
NameDescription
parentNamespaceName

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedAsyncEnumerable<ListServicesResponse, Service>

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, Nullable<Int32>, CallSettings)

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

Lists all services belonging to a namespace.

Parameters
NameDescription
parentString

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedAsyncEnumerable<ListServicesResponse, Service>

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

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

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

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

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

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 or service 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 or service 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
Task<TestIamPermissionsResponse>

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 or service 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
Task<TestIamPermissionsResponse>

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

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

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

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

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

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

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

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

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

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

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

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

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);