Class: Google::Apis::DomainsV1alpha2::RegisterParameters

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

Parameters required to register a new domain.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RegisterParameters

Returns a new instance of RegisterParameters.



1313
1314
1315
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1313

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

Instance Attribute Details

#availabilityString

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. Corresponds to the JSON property availability

Returns:

  • (String)


1291
1292
1293
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1291

def availability
  @availability
end

#domain_nameString

The domain name. Unicode domain names are expressed in Punycode format. Corresponds to the JSON property domainName

Returns:

  • (String)


1296
1297
1298
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1296

def domain_name
  @domain_name
end

#domain_noticesArray<String>

Notices about special properties of the domain. Corresponds to the JSON property domainNotices

Returns:

  • (Array<String>)


1301
1302
1303
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1301

def domain_notices
  @domain_notices
end

#supported_privacyArray<String>

Contact privacy options that the domain supports. Corresponds to the JSON property supportedPrivacy

Returns:

  • (Array<String>)


1306
1307
1308
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1306

def supported_privacy
  @supported_privacy
end

#yearly_priceGoogle::Apis::DomainsV1alpha2::Money

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



1311
1312
1313
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1311

def yearly_price
  @yearly_price
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1318
1319
1320
1321
1322
1323
1324
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1318

def update!(**args)
  @availability = args[:availability] if args.key?(:availability)
  @domain_name = args[:domain_name] if args.key?(:domain_name)
  @domain_notices = args[:domain_notices] if args.key?(:domain_notices)
  @supported_privacy = args[:supported_privacy] if args.key?(:supported_privacy)
  @yearly_price = args[:yearly_price] if args.key?(:yearly_price)
end