Class: Google::Apis::DomainsV1beta1::Domain

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



500
501
502
# File 'lib/google/apis/domains_v1beta1/classes.rb', line 500

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)


488
489
490
# File 'lib/google/apis/domains_v1beta1/classes.rb', line 488

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)


493
494
495
# File 'lib/google/apis/domains_v1beta1/classes.rb', line 493

def resource_state
  @resource_state
end

#yearly_priceGoogle::Apis::DomainsV1beta1::Money

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



498
499
500
# File 'lib/google/apis/domains_v1beta1/classes.rb', line 498

def yearly_price
  @yearly_price
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



505
506
507
508
509
# File 'lib/google/apis/domains_v1beta1/classes.rb', line 505

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