class Google::Apis::DnsV1beta2::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]
Corresponds to the JSON property `geo` @return [Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy]
geo_policy[RW]
Corresponds to the JSON property `geoPolicy` @return [Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy]
kind[RW]
Corresponds to the JSON property `kind` @return [String]
wrr[RW]
Corresponds to the JSON property `wrr` @return [Google::Apis::DnsV1beta2::RrSetRoutingPolicyWrrPolicy]
wrr_policy[RW]
Corresponds to the JSON property `wrrPolicy` @return [Google::Apis::DnsV1beta2::RrSetRoutingPolicyWrrPolicy]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/dns_v1beta2/classes.rb, line 1485 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_v1beta2/classes.rb, line 1490 def update!(**args) @geo = args[:geo] if args.key?(:geo) @geo_policy = args[:geo_policy] if args.key?(:geo_policy) @kind = args[:kind] if args.key?(:kind) @wrr = args[:wrr] if args.key?(:wrr) @wrr_policy = args[:wrr_policy] if args.key?(:wrr_policy) end