Class: Google::Apis::FirebasehostingV1::DnsRecord

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



166
167
168
# File 'lib/google/apis/firebasehosting_v1/classes.rb', line 166

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)


144
145
146
# File 'lib/google/apis/firebasehosting_v1/classes.rb', line 144

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)


154
155
156
# File 'lib/google/apis/firebasehosting_v1/classes.rb', line 154

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)


159
160
161
# File 'lib/google/apis/firebasehosting_v1/classes.rb', line 159

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)


164
165
166
# File 'lib/google/apis/firebasehosting_v1/classes.rb', line 164

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



171
172
173
174
175
176
# File 'lib/google/apis/firebasehosting_v1/classes.rb', line 171

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