Class: Google::Apis::FirebasehostingV1beta1::DnsRecord
- Inherits:
-
Object
- Object
- Google::Apis::FirebasehostingV1beta1::DnsRecord
- 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
-
#domain_name ⇒ String
Output only.
-
#rdata ⇒ String
Output only.
-
#required_action ⇒ String
Output only.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DnsRecord
constructor
A new instance of DnsRecord.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_name ⇒ String
Output only. The domain name the record pertains to, e.g. foo.bar.com.
.
Corresponds to the JSON property domainName
571 572 573 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 571 def domain_name @domain_name end |
#rdata ⇒ String
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
581 582 583 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 581 def rdata @rdata end |
#required_action ⇒ String
Output only. An enum that indicates the a required action for this record.
Corresponds to the JSON property requiredAction
586 587 588 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 586 def required_action @required_action end |
#type ⇒ String
Output only. The record's type, which determines what data the record contains.
Corresponds to the JSON property type
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 |