class Google::Apis::DnsV1::ResourceRecordSet

A unit of data that will be returned by the DNS servers.

Attributes

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “dns# resourceRecordSet”. Corresponds to the JSON property `kind` @return [String]

name[RW]

For example, www.example.com. Corresponds to the JSON property `name` @return [String]

rrdatas[RW]

As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1). Corresponds to the JSON property `rrdatas` @return [Array<String>]

ttl[RW]

Number of seconds that this ResourceRecordSet can be cached by resolvers. Corresponds to the JSON property `ttl` @return [Fixnum]

type[RW]

The identifier of a supported record type, for example, A, AAAA, MX, TXT, and so on. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/dns_v1/classes.rb, line 352
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/dns_v1/classes.rb, line 357
def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @rrdatas = args[:rrdatas] if args.key?(:rrdatas)
  @ttl = args[:ttl] if args.key?(:ttl)
  @type = args[:type] if args.key?(:type)
end