class Google::Apis::DnsV1::RrSetRoutingPolicyPrimaryBackupPolicy
Configures a RRSetRoutingPolicy such that all queries are responded with the primary_targets
if they are healthy. And if all of them are unhealthy, then we fallback to a geo localized policy.
Attributes
Configures a RRSetRoutingPolicy that routes based on the geo location of the querying user. Corresponds to the JSON property `backupGeoTargets` @return [Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy]
Corresponds to the JSON property `kind` @return [String]
HealthCheckTargets describes endpoints to health-check when responding to Routing Policy
queries. Only the healthy endpoints will be included in the response. Corresponds to the JSON property `primaryTargets` @return [Google::Apis::DnsV1::RrSetRoutingPolicyHealthCheckTargets]
When serving state is PRIMARY, this field provides the option of sending a small percentage of the traffic to the backup targets. Corresponds to the JSON property `trickleTraffic` @return [Float]
Public Class Methods
# File lib/google/apis/dns_v1/classes.rb, line 2178 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dns_v1/classes.rb, line 2183 def update!(**args) @backup_geo_targets = args[:backup_geo_targets] if args.key?(:backup_geo_targets) @kind = args[:kind] if args.key?(:kind) @primary_targets = args[:primary_targets] if args.key?(:primary_targets) @trickle_traffic = args[:trickle_traffic] if args.key?(:trickle_traffic) end