# Service Directory V1beta1 API - Module Google::Cloud::ServiceDirectory::V1beta1::RegistrationService (v0.22.0)

0.22.0 (latest) 0.21.1 0.20.0 0.19.1 0.18.0 0.17.1 0.16.0 0.15.2 0.14.2 0.13.0 0.12.1 0.11.1 0.10.0 0.9.0 0.8.0 0.7.4 Reference documentation and code samples for the Service Directory V1beta1 API module Google::Cloud::ServiceDirectory::V1beta1::RegistrationService.

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

- The API has a collection of
  [Namespace](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_directory-v1beta1/latest/Google-Cloud-ServiceDirectory-V1beta1-Namespace "Google::Cloud::ServiceDirectory::V1beta1::Namespace (class)")
  resources, named `projects//locations//namespaces/`.

- Each Namespace has a collection of
  [Service](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_directory-v1beta1/latest/Google-Cloud-ServiceDirectory-V1beta1-Service "Google::Cloud::ServiceDirectory::V1beta1::Service (class)") resources, named
  `projects//locations//namespaces//services/`.

- Each Service has a collection of
  [Endpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_directory-v1beta1/latest/Google-Cloud-ServiceDirectory-V1beta1-Endpoint "Google::Cloud::ServiceDirectory::V1beta1::Endpoint (class)")
  resources, named
  `projects//locations//namespaces//services//endpoints/`.

To load this service and instantiate a REST client:

    require "google/cloud/service_directory/v1beta1/registration_service/rest"
    client = ::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Rest::Client.new