# Cloud Domains V1beta1 API - Class Google::Cloud::Domains::V1beta1::Registration (v0.16.0)

0.16.0 (latest) 0.15.1 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.1 0.8.2 0.7.0 0.6.0 0.5.0 0.4.0 0.3.2 Reference documentation and code samples for the Cloud Domains V1beta1 API class Google::Cloud::Domains::V1beta1::Registration.

The `Registration` resource facilitates managing and configuring domain name
registrations.


There are several ways to create a new `Registration` resource:

To create a new `Registration` resource, find a suitable domain name by
calling the `SearchDomains` method with a query to see available domain name
options. After choosing a name, call `RetrieveRegisterParameters` to
ensure availability and obtain information like pricing, which is needed to
build a call to `RegisterDomain`.

<br />

Another way to create a new `Registration` is to transfer an existing
domain from another registrar. First, go to the current registrar to unlock
the domain for transfer and retrieve the domain's transfer authorization
code. Then call `RetrieveTransferParameters` to confirm that the domain is
unlocked and to get values needed to build a call to `TransferDomain`.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #contact_settings

    def contact_settings() -> ::Google::Cloud::Domains::V1beta1::ContactSettings

**Returns**

- ([::Google::Cloud::Domains::V1beta1::ContactSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1beta1/latest/Google-Cloud-Domains-V1beta1-ContactSettings)) --- Required. Settings for contact information linked to the `Registration`. You cannot update these with the `UpdateRegistration` method. To update these settings, use the `ConfigureContactSettings` method.

### #contact_settings=

    def contact_settings=(value) -> ::Google::Cloud::Domains::V1beta1::ContactSettings

**Parameter**

- **value** ([::Google::Cloud::Domains::V1beta1::ContactSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1beta1/latest/Google-Cloud-Domains-V1beta1-ContactSettings)) --- Required. Settings for contact information linked to the `Registration`. You cannot update these with the `UpdateRegistration` method. To update these settings, use the `ConfigureContactSettings` method.
**Returns**

- ([::Google::Cloud::Domains::V1beta1::ContactSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1beta1/latest/Google-Cloud-Domains-V1beta1-ContactSettings)) --- Required. Settings for contact information linked to the `Registration`. You cannot update these with the `UpdateRegistration` method. To update these settings, use the `ConfigureContactSettings` method.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1beta1/latest/Google-Protobuf-Timestamp)) --- Output only. The creation timestamp of the `Registration` resource.

### #dns_settings

    def dns_settings() -> ::Google::Cloud::Domains::V1beta1::DnsSettings

**Returns**

- ([::Google::Cloud::Domains::V1beta1::DnsSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1beta1/latest/Google-Cloud-Domains-V1beta1-DnsSettings)) --- Settings controlling the DNS configuration of the `Registration`. You cannot update these with the `UpdateRegistration` method. To update these settings, use the `ConfigureDnsSettings` method.

### #dns_settings=

    def dns_settings=(value) -> ::Google::Cloud::Domains::V1beta1::DnsSettings

**Parameter**

- **value** ([::Google::Cloud::Domains::V1beta1::DnsSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1beta1/latest/Google-Cloud-Domains-V1beta1-DnsSettings)) --- Settings controlling the DNS configuration of the `Registration`. You cannot update these with the `UpdateRegistration` method. To update these settings, use the `ConfigureDnsSettings` method.
**Returns**

- ([::Google::Cloud::Domains::V1beta1::DnsSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1beta1/latest/Google-Cloud-Domains-V1beta1-DnsSettings)) --- Settings controlling the DNS configuration of the `Registration`. You cannot update these with the `UpdateRegistration` method. To update these settings, use the `ConfigureDnsSettings` method.

### #domain_name

    def domain_name() -> ::String

**Returns**

- (::String) --- Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.

### #domain_name=

    def domain_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
**Returns**

- (::String) --- Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.

### #expire_time

    def expire_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1beta1/latest/Google-Protobuf-Timestamp)) --- Output only. The expiration timestamp of the `Registration`.

### #issues

    def issues() -> ::Array<::Google::Cloud::Domains::V1beta1::Registration::Issue>

**Returns**

- (::Array\<[::Google::Cloud::Domains::V1beta1::Registration::Issue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1beta1/latest/Google-Cloud-Domains-V1beta1-Registration-Issue)\>) --- Output only. The set of issues with the `Registration` that require attention.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Set of labels associated with the `Registration`.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Set of labels associated with the `Registration`.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Set of labels associated with the `Registration`.

### #management_settings

    def management_settings() -> ::Google::Cloud::Domains::V1beta1::ManagementSettings

**Returns**

- ([::Google::Cloud::Domains::V1beta1::ManagementSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1beta1/latest/Google-Cloud-Domains-V1beta1-ManagementSettings)) --- Settings for management of the `Registration`, including renewal, billing, and transfer. You cannot update these with the `UpdateRegistration` method. To update these settings, use the `ConfigureManagementSettings` method.

### #management_settings=

    def management_settings=(value) -> ::Google::Cloud::Domains::V1beta1::ManagementSettings

**Parameter**

- **value** ([::Google::Cloud::Domains::V1beta1::ManagementSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1beta1/latest/Google-Cloud-Domains-V1beta1-ManagementSettings)) --- Settings for management of the `Registration`, including renewal, billing, and transfer. You cannot update these with the `UpdateRegistration` method. To update these settings, use the `ConfigureManagementSettings` method.
**Returns**

- ([::Google::Cloud::Domains::V1beta1::ManagementSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1beta1/latest/Google-Cloud-Domains-V1beta1-ManagementSettings)) --- Settings for management of the `Registration`, including renewal, billing, and transfer. You cannot update these with the `UpdateRegistration` method. To update these settings, use the `ConfigureManagementSettings` method.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. Name of the `Registration` resource, in the format `projects/*/locations/*/registrations/<domain_name>`.

### #pending_contact_settings

    def pending_contact_settings() -> ::Google::Cloud::Domains::V1beta1::ContactSettings

**Returns**

- ([::Google::Cloud::Domains::V1beta1::ContactSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1beta1/latest/Google-Cloud-Domains-V1beta1-ContactSettings)) --- Output only. Pending contact settings for the `Registration`. Updates to the `contact_settings` field that change its `registrant_contact` or `privacy` fields require email confirmation by the `registrant_contact` before taking effect. This field is set only if there are pending updates to the `contact_settings` that have not been confirmed. To confirm the changes, the `registrant_contact` must follow the instructions in the email they receive.

### #state

    def state() -> ::Google::Cloud::Domains::V1beta1::Registration::State

**Returns**

- ([::Google::Cloud::Domains::V1beta1::Registration::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1beta1/latest/Google-Cloud-Domains-V1beta1-Registration-State)) --- Output only. The state of the `Registration`

### #supported_privacy

    def supported_privacy() -> ::Array<::Google::Cloud::Domains::V1beta1::ContactPrivacy>

**Returns**

- (::Array\<[::Google::Cloud::Domains::V1beta1::ContactPrivacy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1beta1/latest/Google-Cloud-Domains-V1beta1-ContactPrivacy)\>) --- Output only. Set of options for the `contact_settings.privacy` field that this `Registration` supports.