Class: Google::Apis::DnsV1::RrSetRoutingPolicy

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 RRSetRoutingPolicy represents ResourceRecordSet data that is returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RrSetRoutingPolicy

Returns a new instance of RrSetRoutingPolicy.



1917
1918
1919
# File 'lib/google/apis/dns_v1/classes.rb', line 1917

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

Instance Attribute Details

#geoGoogle::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy

Configures a RRSetRoutingPolicy that routes based on the geo location of the querying user. Corresponds to the JSON property geo



1905
1906
1907
# File 'lib/google/apis/dns_v1/classes.rb', line 1905

def geo
  @geo
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


1910
1911
1912
# File 'lib/google/apis/dns_v1/classes.rb', line 1910

def kind
  @kind
end

#wrrGoogle::Apis::DnsV1::RrSetRoutingPolicyWrrPolicy

Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion. Corresponds to the JSON property wrr



1915
1916
1917
# File 'lib/google/apis/dns_v1/classes.rb', line 1915

def wrr
  @wrr
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1922
1923
1924
1925
1926
# File 'lib/google/apis/dns_v1/classes.rb', line 1922

def update!(**args)
  @geo = args[:geo] if args.key?(:geo)
  @kind = args[:kind] if args.key?(:kind)
  @wrr = args[:wrr] if args.key?(:wrr)
end