Class: Google::Apis::FirebasehostingV1beta1::DnsRecord

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebasehosting_v1beta1/classes.rb,
lib/google/apis/firebasehosting_v1beta1/representations.rb,
lib/google/apis/firebasehosting_v1beta1/representations.rb

Overview

DNS records are resource records that define how systems and services should behave when handling requests for a domain name. For example, when you add A records to your domain name's DNS records, you're informing other systems ( such as your users' web browsers) to contact those IPv4 addresses to retrieve resources relevant to your domain name (such as your Hosting site files).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DnsRecord

Returns a new instance of DnsRecord.



593
594
595
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 593

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

Instance Attribute Details

#domain_nameString

Output only. The domain name the record pertains to, e.g. foo.bar.com.. Corresponds to the JSON property domainName

Returns:

  • (String)


571
572
573
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 571

def domain_name
  @domain_name
end

#rdataString

Output only. The data of the record. The meaning of the value depends on record type: - A and AAAA: IP addresses for the domain name. - CNAME: Another domain to check for records. - TXT: Arbitrary text strings associated with the domain name. Hosting uses TXT records to determine which Firebase projects have permission to act on the domain name's behalf. - CAA: The record's flags, tag, and value, e.g. 0 issue "pki.goog". Corresponds to the JSON property rdata

Returns:

  • (String)


581
582
583
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 581

def rdata
  @rdata
end

#required_actionString

Output only. An enum that indicates the a required action for this record. Corresponds to the JSON property requiredAction

Returns:

  • (String)


586
587
588
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 586

def required_action
  @required_action
end

#typeString

Output only. The record's type, which determines what data the record contains. Corresponds to the JSON property type

Returns:

  • (String)


591
592
593
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 591

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



598
599
600
601
602
603
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 598

def update!(**args)
  @domain_name = args[:domain_name] if args.key?(:domain_name)
  @rdata = args[:rdata] if args.key?(:rdata)
  @required_action = args[:required_action] if args.key?(:required_action)
  @type = args[:type] if args.key?(:type)
end