Class: Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dns_v1beta2/classes.rb,
lib/google/apis/dns_v1beta2/representations.rb,
lib/google/apis/dns_v1beta2/representations.rb
Overview
Configures a RRSetRoutingPolicy that routes based on the geo location of the querying user.
Instance Attribute Summary collapse
-
#enable_fencing ⇒ Boolean
(also: #enable_fencing?)
Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket.
-
#items ⇒ Array<Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicyGeoPolicyItem>
The primary geo routing configuration.
-
#kind ⇒ String
Corresponds to the JSON property
kind
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RrSetRoutingPolicyGeoPolicy
constructor
A new instance of RrSetRoutingPolicyGeoPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RrSetRoutingPolicyGeoPolicy
Returns a new instance of RrSetRoutingPolicyGeoPolicy.
2038 2039 2040 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2038 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_fencing ⇒ Boolean Also known as: enable_fencing?
Without fencing, if health check fails for all configured items in the current
geo bucket, we failover to the next nearest geo bucket. With fencing, if
health checking is enabled, as long as some targets in the current geo bucket
are healthy, we return only the healthy targets. However, if all targets are
unhealthy, we don't failover to the next nearest bucket; instead, we return
all the items in the current bucket even when all targets are unhealthy.
Corresponds to the JSON property enableFencing
2024 2025 2026 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2024 def enable_fencing @enable_fencing end |
#items ⇒ Array<Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicyGeoPolicyItem>
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
2031 2032 2033 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2031 def items @items end |
#kind ⇒ String
Corresponds to the JSON property kind
2036 2037 2038 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2036 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2043 2044 2045 2046 2047 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2043 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 |