Class: Google::Apis::DomainsV1alpha2::Domain

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

A domain that the calling user manages in Google Domains.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Domain

Returns a new instance of Domain.



473
474
475
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 473

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

Instance Attribute Details

#domain_nameString

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

Returns:

  • (String)


461
462
463
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 461

def domain_name
  @domain_name
end

#resource_stateString

The state of this domain as a Registration resource. Corresponds to the JSON property resourceState

Returns:

  • (String)


466
467
468
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 466

def resource_state
  @resource_state
end

#yearly_priceGoogle::Apis::DomainsV1alpha2::Money

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



471
472
473
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 471

def yearly_price
  @yearly_price
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



478
479
480
481
482
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 478

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