Class: Google::Apis::DomainsV1alpha2::Domain
- Inherits:
-
Object
- Object
- Google::Apis::DomainsV1alpha2::Domain
- 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
-
#domain_name ⇒ String
The domain name.
-
#resource_state ⇒ String
The state of this domain as a
Registration
resource. -
#yearly_price ⇒ Google::Apis::DomainsV1alpha2::Money
Represents an amount of money with its currency type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Domain
constructor
A new instance of Domain.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Domain
Returns a new instance of Domain.
514 515 516 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 514 def initialize(**args) update!(**args) end |
Instance Attribute Details
#domain_name ⇒ String
The domain name. Unicode domain names are expressed in Punycode format.
Corresponds to the JSON property domainName
502 503 504 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 502 def domain_name @domain_name end |
#resource_state ⇒ String
The state of this domain as a Registration
resource.
Corresponds to the JSON property resourceState
507 508 509 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 507 def resource_state @resource_state end |
#yearly_price ⇒ Google::Apis::DomainsV1alpha2::Money
Represents an amount of money with its currency type.
Corresponds to the JSON property yearlyPrice
512 513 514 |
# File 'lib/google/apis/domains_v1alpha2/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_v1alpha2/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 |