class Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy
Configures a RRSetRoutingPolicy that routes based on the geo location of the querying user.
Attributes
Without fencing, if health check fails for all configured items in the current geo bucket, we'll failover to the next nearest geo bucket. With fencing, if health check is enabled, as long as some targets in the current geo bucket are healthy, we'll return only the healthy targets. However, if they're all unhealthy, we won't failover to the next nearest bucket, we'll simply return all the items in the current bucket even though they're unhealthy. Corresponds to the JSON property `enableFencing` @return [Boolean]
Without fencing, if health check fails for all configured items in the current geo bucket, we'll failover to the next nearest geo bucket. With fencing, if health check is enabled, as long as some targets in the current geo bucket are healthy, we'll return only the healthy targets. However, if they're all unhealthy, we won't failover to the next nearest bucket, we'll simply return all the items in the current bucket even though they're unhealthy. Corresponds to the JSON property `enableFencing` @return [Boolean]
The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. Corresponds to the JSON property `items` @return [Array<Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicyGeoPolicyItem>]
Corresponds to the JSON property `kind` @return [String]
Public Class Methods
# File lib/google/apis/dns_v1/classes.rb, line 2003 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dns_v1/classes.rb, line 2008 def update!(**args) @enable_fencing = args[:enable_fencing] if args.key?(:enable_fencing) @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) end