# Cloud Domains V1 API - Class Google::Cloud::Domains::V1::Registration (v1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.9.0 0.8.0 0.7.1 0.6.2 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Domains V1 API class Google::Cloud::Domains::V1::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::V1::ContactSettings

**Returns**

- ([::Google::Cloud::Domains::V1::ContactSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1/latest/Google-Cloud-Domains-V1-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::V1::ContactSettings

**Parameter**

- **value** ([::Google::Cloud::Domains::V1::ContactSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1/latest/Google-Cloud-Domains-V1-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::V1::ContactSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1/latest/Google-Cloud-Domains-V1-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-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The creation timestamp of the `Registration` resource.

### #dns_settings

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

**Returns**

- ([::Google::Cloud::Domains::V1::DnsSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1/latest/Google-Cloud-Domains-V1-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::V1::DnsSettings

**Parameter**

- **value** ([::Google::Cloud::Domains::V1::DnsSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1/latest/Google-Cloud-Domains-V1-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::V1::DnsSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1/latest/Google-Cloud-Domains-V1-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-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The expiration timestamp of the `Registration`.

### #issues

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

**Returns**

- (::Array\<[::Google::Cloud::Domains::V1::Registration::Issue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1/latest/Google-Cloud-Domains-V1-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::V1::ManagementSettings

**Returns**

- ([::Google::Cloud::Domains::V1::ManagementSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1/latest/Google-Cloud-Domains-V1-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::V1::ManagementSettings

**Parameter**

- **value** ([::Google::Cloud::Domains::V1::ManagementSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1/latest/Google-Cloud-Domains-V1-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::V1::ManagementSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1/latest/Google-Cloud-Domains-V1-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::V1::ContactSettings

**Returns**

- ([::Google::Cloud::Domains::V1::ContactSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-domains-v1/latest/Google-Cloud-Domains-V1-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::V1::Registration::State

**Returns**

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

### #supported_privacy

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

**Returns**

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