public abstract class RegistrationServiceClient
Reference documentation and code samples for the Service Directory v1 API class RegistrationServiceClient.
RegistrationService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.ServiceDirectory.V1Assembly
Google.Cloud.ServiceDirectory.V1.dll
Remarks
Service Directory API for registering services. It defines the following resource model:
The API has a collection of [Namespace][google.cloud.servicedirectory.v1.Namespace] resources, named
projects/*/locations/*/namespaces/*
.Each Namespace has a collection of [Service][google.cloud.servicedirectory.v1.Service] resources, named
projects/*/locations/*/namespaces/*/services/*
.Each Service has a collection of [Endpoint][google.cloud.servicedirectory.v1.Endpoint] resources, named
projects/*/locations/*/namespaces/*/services/*/endpoints/*
.
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 | |
---|---|
Type | Description |
String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default RegistrationService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyList<String> |
The default RegistrationService scopes are:
GrpcClient
public virtual RegistrationService.RegistrationServiceClient GrpcClient { get; }
The underlying gRPC RegistrationService client
Property Value | |
---|---|
Type | Description |
RegistrationService.RegistrationServiceClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
Methods
Create()
public static RegistrationServiceClient Create()
Synchronously creates a RegistrationServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RegistrationServiceClientBuilder.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | CreateEndpointRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Endpoint | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | ServiceName Required. The resource name of the service that this endpoint provides. |
endpoint | Endpoint Required. A endpoint with initial fields set. |
endpointId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Endpoint | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The resource name of the service that this endpoint provides. |
endpoint | Endpoint Required. A endpoint with initial fields set. |
endpointId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Endpoint | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateEndpointRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Endpoint> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateEndpointRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Endpoint> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | ServiceName Required. The resource name of the service that this endpoint provides. |
endpoint | Endpoint Required. A endpoint with initial fields set. |
endpointId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Endpoint> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | ServiceName Required. The resource name of the service that this endpoint provides. |
endpoint | Endpoint Required. A endpoint with initial fields set. |
endpointId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Endpoint> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The resource name of the service that this endpoint provides. |
endpoint | Endpoint Required. A endpoint with initial fields set. |
endpointId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Endpoint> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The resource name of the service that this endpoint provides. |
endpoint | Endpoint Required. A endpoint with initial fields set. |
endpointId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Endpoint> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the project and location the namespace will be created in. |
namespace | Namespace Required. A namespace with initial fields set. |
namespaceId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Namespace | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateNamespaceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Namespace | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The resource name of the project and location the namespace will be created in. |
namespace | Namespace Required. A namespace with initial fields set. |
namespaceId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Namespace | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the project and location the namespace will be created in. |
namespace | Namespace Required. A namespace with initial fields set. |
namespaceId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Namespace> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the project and location the namespace will be created in. |
namespace | Namespace Required. A namespace with initial fields set. |
namespaceId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Namespace> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateNamespaceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Namespace> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateNamespaceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Namespace> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The resource name of the project and location the namespace will be created in. |
namespace | Namespace Required. A namespace with initial fields set. |
namespaceId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Namespace> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The resource name of the project and location the namespace will be created in. |
namespace | Namespace Required. A namespace with initial fields set. |
namespaceId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Namespace> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Service | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | NamespaceName Required. The resource name of the namespace this service will belong to. |
service | Service Required. A service with initial fields set. |
serviceId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Service | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The resource name of the namespace this service will belong to. |
service | Service Required. A service with initial fields set. |
serviceId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Service | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Service> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateServiceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Service> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | NamespaceName Required. The resource name of the namespace this service will belong to. |
service | Service Required. A service with initial fields set. |
serviceId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Service> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | NamespaceName Required. The resource name of the namespace this service will belong to. |
service | Service Required. A service with initial fields set. |
serviceId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Service> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The resource name of the namespace this service will belong to. |
service | Service Required. A service with initial fields set. |
serviceId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Service> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The resource name of the namespace this service will belong to. |
service | Service Required. A service with initial fields set. |
serviceId | String Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Service> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteEndpointRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
name | EndpointName Required. The name of the endpoint to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the endpoint to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
request | DeleteEndpointRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteEndpointRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | EndpointName Required. The name of the endpoint to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | EndpointName Required. The name of the endpoint to delete. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the endpoint to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the endpoint to delete. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteNamespaceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
name | NamespaceName Required. The name of the namespace to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the namespace to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
request | DeleteNamespaceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteNamespaceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | NamespaceName Required. The name of the namespace to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | NamespaceName Required. The name of the namespace to delete. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the namespace to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the namespace to delete. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
name | ServiceName Required. The name of the service to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the service to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
request | DeleteServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteServiceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | ServiceName Required. The name of the service to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | ServiceName Required. The name of the service to delete. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the service to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the service to delete. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | EndpointName Required. The name of the endpoint to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Endpoint | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetEndpointRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Endpoint | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the endpoint to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Endpoint | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | EndpointName Required. The name of the endpoint to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Endpoint> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | EndpointName Required. The name of the endpoint to get. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Endpoint> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetEndpointRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Endpoint> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetEndpointRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Endpoint> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the endpoint to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Endpoint> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the endpoint to get. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Endpoint> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetIamPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetNamespaceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Namespace | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | NamespaceName Required. The name of the namespace to retrieve. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Namespace | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the namespace to retrieve. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Namespace | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetNamespaceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Namespace> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetNamespaceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Namespace> | A Task containing the RPC response. |