Service Client: Google::Cloud::Domains::V1beta1::Domains::DomainsClient

Client stub representing the remote Domains gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to domains.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Domains::V1beta1::Domains - Compiled Protocol Buffers messages for google/cloud/domains/v1beta1/domains.proto

SYNOPSIS

use Google::Cloud::Domains::V1beta1::Domains;

my $msg = Google::Cloud::Domains::V1beta1::Domains::Registration->new({
    name => $name,
    domain_name => $domain_name,
    create_time => $create_time,
    expire_time => $expire_time,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Domains::V1beta1::Domains::Registration->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/domains/v1beta1/domains.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Domains::V1beta1::Domains::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`.

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 from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

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

  • $msg->domain_name() / $msg->domain_name($value)

    Type: String

    Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The creation timestamp of the `Registration` resource.

  • $msg->expire_time() / $msg->expire_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The expiration timestamp of the `Registration`.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Domains::V1beta1::Registration::State)

    Output only. The state of the `Registration`

  • $msg->issues() / $msg->issues($value)

    Type: Enum (Google::Cloud::Domains::V1beta1::Registration::Issue)

    Output only. The set of issues with the `Registration` that require attention.

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Cloud::Domains::V1beta1::Domains::Registration::LabelsEntry)

    Set of labels associated with the `Registration`.

  • $msg->management_settings() / $msg->management_settings($value)

    Type: Message (Google::Cloud::Domains::V1beta1::Domains::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.

  • $msg->dns_settings() / $msg->dns_settings($value)

    Type: Message (Google::Cloud::Domains::V1beta1::Domains::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.

  • $msg->contact_settings() / $msg->contact_settings($value)

    Type: Message (Google::Cloud::Domains::V1beta1::Domains::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.

  • $msg->pending_contact_settings() / $msg->pending_contact_settings($value)

    Type: Message (Google::Cloud::Domains::V1beta1::Domains::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.

  • $msg->supported_privacy() / $msg->supported_privacy($value)

    Type: Enum (Google::Cloud::Domains::V1beta1::ContactPrivacy)

    Output only. Set of options for the `contact_settings.privacy` field that this `Registration` supports.

Enum: Registration::State

  • STATE_UNSPECIFIED => 0

  • REGISTRATION_PENDING => 1

  • REGISTRATION_FAILED => 2

  • TRANSFER_PENDING => 3

  • TRANSFER_FAILED => 4

  • ACTIVE => 6

  • SUSPENDED => 7

  • EXPORTED => 8

Enum: Registration::Issue

  • ISSUE_UNSPECIFIED => 0

  • CONTACT_SUPPORT => 1

  • UNVERIFIED_EMAIL => 2

Google::Cloud::Domains::V1beta1::Domains::ManagementSettings

Defines renewal, billing, and transfer settings for a `Registration`.

Inherits from Protobuf::Message.

Accessors

Enum: ManagementSettings::RenewalMethod

  • RENEWAL_METHOD_UNSPECIFIED => 0

  • AUTOMATIC_RENEWAL => 1

  • MANUAL_RENEWAL => 2

Google::Cloud::Domains::V1beta1::Domains::DnsSettings

Defines the DNS configuration of a `Registration`, including name servers, DNSSEC, and glue records.

Inherits from Protobuf::Message.

Accessors

Enum: DnsSettings::DsState

  • DS_STATE_UNSPECIFIED => 0

  • DS_RECORDS_UNPUBLISHED => 1

  • DS_RECORDS_PUBLISHED => 2

Google::Cloud::Domains::V1beta1::Domains::ContactSettings

Defines the contact information associated with a `Registration`.

[ICANN](https://icann.org/) requires all domain names to have associated contact information. The `registrant_contact` is considered the domain's legal owner, and often the other contacts are identical.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Domains::V1beta1::Domains::SearchDomainsRequest

Request for the `SearchDomains` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->query() / $msg->query($value)

    Type: String

    Required. String used to search for available domain names.

  • $msg->location() / $msg->location($value)

    Type: String

    Required. The location. Must be in the format `projects/*/locations/*`.

Google::Cloud::Domains::V1beta1::Domains::SearchDomainsResponse

Response for the `SearchDomains` method.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Domains::V1beta1::Domains::RetrieveRegisterParametersRequest

Request for the `RetrieveRegisterParameters` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->domain_name() / $msg->domain_name($value)

    Type: String

    Required. The domain name. Unicode domain names must be expressed in Punycode format.

  • $msg->location() / $msg->location($value)

    Type: String

    Required. The location. Must be in the format `projects/*/locations/*`.

Google::Cloud::Domains::V1beta1::Domains::RetrieveRegisterParametersResponse

Response for the `RetrieveRegisterParameters` method.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Domains::V1beta1::Domains::RegisterDomainRequest

Request for the `RegisterDomain` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource of the `Registration`. Must be in the format `projects/*/locations/*`.

  • $msg->registration() / $msg->registration($value)

    Type: Message (Google::Cloud::Domains::V1beta1::Domains::Registration)

    Required. The complete `Registration` resource to be created.

  • $msg->domain_notices() / $msg->domain_notices($value)

    Type: Enum (Google::Cloud::Domains::V1beta1::DomainNotice)

    The list of domain notices that you acknowledge. Call `RetrieveRegisterParameters` to see the notices that need acknowledgement.

  • $msg->contact_notices() / $msg->contact_notices($value)

    Type: Enum (Google::Cloud::Domains::V1beta1::ContactNotice)

    The list of contact notices that the caller acknowledges. The notices needed here depend on the values specified in `registration.contact_settings`.

  • $msg->yearly_price() / $msg->yearly_price($value)

    Type: Message (Google::Type::Money::Money)

    Required. Yearly price to register or renew the domain. The value that should be put here can be obtained from RetrieveRegisterParameters or SearchDomains calls.

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    When true, only validation is performed, without actually registering the domain. Follows: https://cloud.google.com/apis/design/design_patterns#request_validation

Google::Cloud::Domains::V1beta1::Domains::RetrieveTransferParametersRequest

Request for the `RetrieveTransferParameters` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->domain_name() / $msg->domain_name($value)

    Type: String

    Required. The domain name. Unicode domain names must be expressed in Punycode format.

  • $msg->location() / $msg->location($value)

    Type: String

    Required. The location. Must be in the format `projects/*/locations/*`.

Google::Cloud::Domains::V1beta1::Domains::RetrieveTransferParametersResponse

Response for the `RetrieveTransferParameters` method.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Domains::V1beta1::Domains::TransferDomainRequest

Request for the `TransferDomain` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource of the `Registration`. Must be in the format `projects/*/locations/*`.

  • $msg->registration() / $msg->registration($value)

    Type: Message (Google::Cloud::Domains::V1beta1::Domains::Registration)

    Required. The complete `Registration` resource to be created.

    You can leave `registration.dns_settings` unset to import the domain's current DNS configuration from its current registrar. Use this option only if you are sure that the domain's current DNS service does not cease upon transfer, as is often the case for DNS services provided for free by the registrar.

  • $msg->contact_notices() / $msg->contact_notices($value)

    Type: Enum (Google::Cloud::Domains::V1beta1::ContactNotice)

    The list of contact notices that you acknowledge. The notices needed here depend on the values specified in `registration.contact_settings`.

  • $msg->yearly_price() / $msg->yearly_price($value)

    Type: Message (Google::Type::Money::Money)

    Required. Acknowledgement of the price to transfer or renew the domain for one year. Call `RetrieveTransferParameters` to obtain the price, which you must acknowledge.

  • $msg->authorization_code() / $msg->authorization_code($value)

    Type: Message (Google::Cloud::Domains::V1beta1::Domains::AuthorizationCode)

    The domain's transfer authorization code. You can obtain this from the domain's current registrar.

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    Validate the request without actually transferring the domain.

Google::Cloud::Domains::V1beta1::Domains::ListRegistrationsRequest

Request for the `ListRegistrations` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The project and location from which to list `Registration`s, specified in the format `projects/*/locations/*`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Maximum number of results to return.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    When set to the `next_page_token` from a prior response, provides the next page of results.

  • $msg->filter() / $msg->filter($value)

    Type: String

    Filter expression to restrict the `Registration`s returned.

    The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, a boolean, or an enum value. The comparison operator should be one of =, !=, >, <, >=, <=, or : for prefix or wildcard matches.

    For example, to filter to a specific domain name, use an expression like `domainName="example.com"`. You can also check for the existence of a field; for example, to find domains using custom DNS settings, use an expression like `dnsSettings.customDns:*`.

    You can also create compound filters by combining expressions with the `AND` and `OR` operators. For example, to find domains that are suspended or have specific issues flagged, use an expression like `(state=SUSPENDED) OR (issue:*)`.

Google::Cloud::Domains::V1beta1::Domains::ListRegistrationsResponse

Response for the `ListRegistrations` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->registrations() / $msg->registrations($value)

    Type: Message (Google::Cloud::Domains::V1beta1::Domains::Registration)

    A list of `Registration`s.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    When present, there are more results to retrieve. Set `page_token` to this value on a subsequent call to get the next page of results.

Google::Cloud::Domains::V1beta1::Domains::GetRegistrationRequest

Request for the `GetRegistration` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the `Registration` to get, in the format `projects/*/locations/*/registrations/*`.

Google::Cloud::Domains::V1beta1::Domains::UpdateRegistrationRequest

Request for the `UpdateRegistration` method.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Domains::V1beta1::Domains::ConfigureManagementSettingsRequest

Request for the `ConfigureManagementSettings` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->registration() / $msg->registration($value)

    Type: String

    Required. The name of the `Registration` whose management settings are being updated, in the format `projects/*/locations/*/registrations/*`.

  • $msg->management_settings() / $msg->management_settings($value)

    Type: Message (Google::Cloud::Domains::V1beta1::Domains::ManagementSettings)

    Fields of the `ManagementSettings` to update.

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. The field mask describing which fields to update as a comma-separated list. For example, if only the transfer lock is being updated, the `update_mask` is `"transfer_lock_state"`.

Google::Cloud::Domains::V1beta1::Domains::ConfigureDnsSettingsRequest

Request for the `ConfigureDnsSettings` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->registration() / $msg->registration($value)

    Type: String

    Required. The name of the `Registration` whose DNS settings are being updated, in the format `projects/*/locations/*/registrations/*`.

  • $msg->dns_settings() / $msg->dns_settings($value)

    Type: Message (Google::Cloud::Domains::V1beta1::Domains::DnsSettings)

    Fields of the `DnsSettings` to update.

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. The field mask describing which fields to update as a comma-separated list. For example, if only the name servers are being updated for an existing Custom DNS configuration, the `update_mask` is `"custom_dns.name_servers"`.

    When changing the DNS provider from one type to another, pass the new provider's field name as part of the field mask. For example, when changing from a Google Domains DNS configuration to a Custom DNS configuration, the `update_mask` is `"custom_dns"`. //

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    Validate the request without actually updating the DNS settings.

Google::Cloud::Domains::V1beta1::Domains::ConfigureContactSettingsRequest

Request for the `ConfigureContactSettings` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->registration() / $msg->registration($value)

    Type: String

    Required. The name of the `Registration` whose contact settings are being updated, in the format `projects/*/locations/*/registrations/*`.

  • $msg->contact_settings() / $msg->contact_settings($value)

    Type: Message (Google::Cloud::Domains::V1beta1::Domains::ContactSettings)

    Fields of the `ContactSettings` to update.

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. The field mask describing which fields to update as a comma-separated list. For example, if only the registrant contact is being updated, the `update_mask` is `"registrant_contact"`.

  • $msg->contact_notices() / $msg->contact_notices($value)

    Type: Enum (Google::Cloud::Domains::V1beta1::ContactNotice)

    The list of contact notices that the caller acknowledges. The notices needed here depend on the values specified in `contact_settings`.

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    Validate the request without actually updating the contact settings.

Google::Cloud::Domains::V1beta1::Domains::ExportRegistrationRequest

Request for the `ExportRegistration` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the `Registration` to export, in the format `projects/*/locations/*/registrations/*`.

Google::Cloud::Domains::V1beta1::Domains::DeleteRegistrationRequest

Request for the `DeleteRegistration` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the `Registration` to delete, in the format `projects/*/locations/*/registrations/*`.

Google::Cloud::Domains::V1beta1::Domains::RetrieveAuthorizationCodeRequest

Request for the `RetrieveAuthorizationCode` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->registration() / $msg->registration($value)

    Type: String

    Required. The name of the `Registration` whose authorization code is being retrieved, in the format `projects/*/locations/*/registrations/*`.

Google::Cloud::Domains::V1beta1::Domains::ResetAuthorizationCodeRequest

Request for the `ResetAuthorizationCode` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->registration() / $msg->registration($value)

    Type: String

    Required. The name of the `Registration` whose authorization code is being reset, in the format `projects/*/locations/*/registrations/*`.

Google::Cloud::Domains::V1beta1::Domains::RegisterParameters

Parameters required to register a new domain.

Inherits from Protobuf::Message.

Accessors

  • $msg->domain_name() / $msg->domain_name($value)

    Type: String

    The domain name. Unicode domain names are expressed in Punycode format.

  • $msg->availability() / $msg->availability($value)

    Type: Enum (Google::Cloud::Domains::V1beta1::RegisterParameters::Availability)

    Indicates whether the domain is available for registration. This value is accurate when obtained by calling `RetrieveRegisterParameters`, but is approximate when obtained by calling `SearchDomains`.

  • $msg->supported_privacy() / $msg->supported_privacy($value)

    Type: Enum (Google::Cloud::Domains::V1beta1::ContactPrivacy)

    Contact privacy options that the domain supports.

  • $msg->domain_notices() / $msg->domain_notices($value)

    Type: Enum (Google::Cloud::Domains::V1beta1::DomainNotice)

    Notices about special properties of the domain.

  • $msg->yearly_price() / $msg->yearly_price($value)

    Type: Message (Google::Type::Money::Money)

    Price to register or renew the domain for one year.

Enum: RegisterParameters::Availability

  • AVAILABILITY_UNSPECIFIED => 0

  • AVAILABLE => 1

  • UNAVAILABLE => 2

  • UNSUPPORTED => 3

  • UNKNOWN => 4

Google::Cloud::Domains::V1beta1::Domains::TransferParameters

Parameters required to transfer a domain from another registrar.

Inherits from Protobuf::Message.

Accessors

  • $msg->domain_name() / $msg->domain_name($value)

    Type: String

    The domain name. Unicode domain names are expressed in Punycode format.

  • $msg->current_registrar() / $msg->current_registrar($value)

    Type: String

    The registrar that currently manages the domain.

  • $msg->name_servers() / $msg->name_servers($value)

    Type: String

    The name servers that currently store the configuration of the domain.

  • $msg->transfer_lock_state() / $msg->transfer_lock_state($value)

    Type: Enum (Google::Cloud::Domains::V1beta1::TransferLockState)

    Indicates whether the domain is protected by a transfer lock. For a transfer to succeed, this must show `UNLOCKED`. To unlock a domain, go to its current registrar.

  • $msg->supported_privacy() / $msg->supported_privacy($value)

    Type: Enum (Google::Cloud::Domains::V1beta1::ContactPrivacy)

    Contact privacy options that the domain supports.

  • $msg->yearly_price() / $msg->yearly_price($value)

    Type: Message (Google::Type::Money::Money)

    Price to transfer or renew the domain for one year.

Google::Cloud::Domains::V1beta1::Domains::AuthorizationCode

Defines an authorization code.

Inherits from Protobuf::Message.

Accessors

  • $msg->code() / $msg->code($value)

    Type: String

    The Authorization Code in ASCII. It can be used to transfer the domain to or from another registrar.

Google::Cloud::Domains::V1beta1::Domains::OperationMetadata

Represents the metadata of the long-running operation. Output only.

Inherits from Protobuf::Message.

Accessors

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time the operation was created.

  • $msg->end_time() / $msg->end_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time the operation finished running.

  • $msg->target() / $msg->target($value)

    Type: String

    Server-defined resource path for the target of the operation.

  • $msg->verb() / $msg->verb($value)

    Type: String

    Name of the verb executed by the operation.

  • $msg->status_detail() / $msg->status_detail($value)

    Type: String

    Human-readable status of the operation, if any.

  • $msg->api_version() / $msg->api_version($value)

    Type: String

    API version used to start the operation.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Domains::V1beta1::Domains::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.