Class: Google::Apis::DnsV1::ResourceRecordSet

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

Overview

A unit of data that is returned by the DNS servers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceRecordSet

Returns a new instance of ResourceRecordSet.



2107
2108
2109
# File 'lib/google/apis/dns_v1/classes.rb', line 2107

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

Instance Attribute Details

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


2071
2072
2073
# File 'lib/google/apis/dns_v1/classes.rb', line 2071

def kind
  @kind
end

#nameString

For example, www.example.com. Corresponds to the JSON property name

Returns:

  • (String)


2076
2077
2078
# File 'lib/google/apis/dns_v1/classes.rb', line 2076

def name
  @name
end

#routing_policyGoogle::Apis::DnsV1::RrSetRoutingPolicy

A RRSetRoutingPolicy represents ResourceRecordSet data that is returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection. Corresponds to the JSON property routingPolicy



2083
2084
2085
# File 'lib/google/apis/dns_v1/classes.rb', line 2083

def routing_policy
  @routing_policy
end

#rrdatasArray<String>

As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples. Corresponds to the JSON property rrdatas

Returns:

  • (Array<String>)


2089
2090
2091
# File 'lib/google/apis/dns_v1/classes.rb', line 2089

def rrdatas
  @rrdatas
end

#signature_rrdatasArray<String>

As defined in RFC 4034 (section 3.2). Corresponds to the JSON property signatureRrdatas

Returns:

  • (Array<String>)


2094
2095
2096
# File 'lib/google/apis/dns_v1/classes.rb', line 2094

def signature_rrdatas
  @signature_rrdatas
end

#ttlFixnum

Number of seconds that this ResourceRecordSet can be cached by resolvers. Corresponds to the JSON property ttl

Returns:

  • (Fixnum)


2099
2100
2101
# File 'lib/google/apis/dns_v1/classes.rb', line 2099

def ttl
  @ttl
end

#typeString

The identifier of a supported record type. See the list of Supported DNS record types. Corresponds to the JSON property type

Returns:

  • (String)


2105
2106
2107
# File 'lib/google/apis/dns_v1/classes.rb', line 2105

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2112
2113
2114
2115
2116
2117
2118
2119
2120
# File 'lib/google/apis/dns_v1/classes.rb', line 2112

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @routing_policy = args[:routing_policy] if args.key?(:routing_policy)
  @rrdatas = args[:rrdatas] if args.key?(:rrdatas)
  @signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas)
  @ttl = args[:ttl] if args.key?(:ttl)
  @type = args[:type] if args.key?(:type)
end