class Google::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.
Attributes
geo[RW]
Configures a RRSetRoutingPolicy that routes based on the geo location of the querying user. Corresponds to the JSON property `geo` @return [Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy]
kind[RW]
Corresponds to the JSON property `kind` @return [String]
wrr[RW]
Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion. Corresponds to the JSON property `wrr` @return [Google::Apis::DnsV1::RrSetRoutingPolicyWrrPolicy]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/dns_v1/classes.rb, line 1917 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# 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