Class: Google::Apis::DomainsV1alpha2::RegisterDomainRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/domains_v1alpha2/classes.rb,
lib/google/apis/domains_v1alpha2/representations.rb,
lib/google/apis/domains_v1alpha2/representations.rb

Overview

Request for the RegisterDomain method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RegisterDomainRequest

Returns a new instance of RegisterDomainRequest.



1268
1269
1270
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1268

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#contact_noticesArray<String>

The list of contact notices that the caller acknowledges. The notices needed here depend on the values specified in registration.contact_settings. Corresponds to the JSON property contactNotices

Returns:

  • (Array<String>)


1227
1228
1229
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1227

def contact_notices
  @contact_notices
end

#domain_noticesArray<String>

The list of domain notices that you acknowledge. Call RetrieveRegisterParameters to see the notices that need acknowledgement. Corresponds to the JSON property domainNotices

Returns:

  • (Array<String>)


1233
1234
1235
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1233

def domain_notices
  @domain_notices
end

#registrationGoogle::Apis::DomainsV1alpha2::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 . Finally, you can create a new Registration by importing an existing domain managed with Google Domains. First, call RetrieveImportableDomains to list domains to which the calling user has sufficient access. Then call ImportDomain on any domain names you want to use with Cloud Domains. Corresponds to the JSON property registration



1253
1254
1255
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1253

def registration
  @registration
end

#validate_onlyBoolean Also known as: validate_only?

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

Returns:

  • (Boolean)


1260
1261
1262
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1260

def validate_only
  @validate_only
end

#yearly_priceGoogle::Apis::DomainsV1alpha2::Money

Represents an amount of money with its currency type. Corresponds to the JSON property yearlyPrice



1266
1267
1268
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1266

def yearly_price
  @yearly_price
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1273
1274
1275
1276
1277
1278
1279
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1273

def update!(**args)
  @contact_notices = args[:contact_notices] if args.key?(:contact_notices)
  @domain_notices = args[:domain_notices] if args.key?(:domain_notices)
  @registration = args[:registration] if args.key?(:registration)
  @validate_only = args[:validate_only] if args.key?(:validate_only)
  @yearly_price = args[:yearly_price] if args.key?(:yearly_price)
end