Class: Google::Apis::DomainsV1::Domain

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/domains_v1/classes.rb,
lib/google/apis/domains_v1/representations.rb,
lib/google/apis/domains_v1/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.



514
515
516
# File 'lib/google/apis/domains_v1/classes.rb', line 514

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)


502
503
504
# File 'lib/google/apis/domains_v1/classes.rb', line 502

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)


507
508
509
# File 'lib/google/apis/domains_v1/classes.rb', line 507

def resource_state
  @resource_state
end

#yearly_priceGoogle::Apis::DomainsV1::Money

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



512
513
514
# File 'lib/google/apis/domains_v1/classes.rb', line 512

def yearly_price
  @yearly_price
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



519
520
521
522
523
# File 'lib/google/apis/domains_v1/classes.rb', line 519

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