Class: Google::Apis::DnsV1::RrSetRoutingPolicyPrimaryBackupPolicy
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1::RrSetRoutingPolicyPrimaryBackupPolicy
- 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
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.
Instance Attribute Summary collapse
-
#backup_geo_targets ⇒ Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy
Configures a
RRSetRoutingPolicythat routes based on the geo location of the querying user. -
#kind ⇒ String
Corresponds to the JSON property
kind. -
#primary_targets ⇒ Google::Apis::DnsV1::RrSetRoutingPolicyHealthCheckTargets
HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries.
-
#trickle_traffic ⇒ Float
When serving state is
PRIMARY, this field provides the option of sending a small percentage of the traffic to the backup targets.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RrSetRoutingPolicyPrimaryBackupPolicy
constructor
A new instance of RrSetRoutingPolicyPrimaryBackupPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RrSetRoutingPolicyPrimaryBackupPolicy
Returns a new instance of RrSetRoutingPolicyPrimaryBackupPolicy.
2186 2187 2188 |
# File 'lib/google/apis/dns_v1/classes.rb', line 2186 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_geo_targets ⇒ Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy
Configures a RRSetRoutingPolicy that routes based on the geo location of the
querying user.
Corresponds to the JSON property backupGeoTargets
2166 2167 2168 |
# File 'lib/google/apis/dns_v1/classes.rb', line 2166 def backup_geo_targets @backup_geo_targets end |
#kind ⇒ String
Corresponds to the JSON property kind
2171 2172 2173 |
# File 'lib/google/apis/dns_v1/classes.rb', line 2171 def kind @kind end |
#primary_targets ⇒ Google::Apis::DnsV1::RrSetRoutingPolicyHealthCheckTargets
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
2178 2179 2180 |
# File 'lib/google/apis/dns_v1/classes.rb', line 2178 def primary_targets @primary_targets end |
#trickle_traffic ⇒ Float
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
2184 2185 2186 |
# File 'lib/google/apis/dns_v1/classes.rb', line 2184 def trickle_traffic @trickle_traffic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2191 2192 2193 2194 2195 2196 |
# File 'lib/google/apis/dns_v1/classes.rb', line 2191 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 |