Class: Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy
- 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 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'll failover to the next nearest geo bucket.
-
#items ⇒ Array<Google::Apis::DnsV1::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.
1967 1968 1969 |
# File 'lib/google/apis/dns_v1/classes.rb', line 1967 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'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
1953 1954 1955 |
# File 'lib/google/apis/dns_v1/classes.rb', line 1953 def enable_fencing @enable_fencing end |
#items ⇒ Array<Google::Apis::DnsV1::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
1960 1961 1962 |
# File 'lib/google/apis/dns_v1/classes.rb', line 1960 def items @items end |
#kind ⇒ String
Corresponds to the JSON property kind
1965 1966 1967 |
# File 'lib/google/apis/dns_v1/classes.rb', line 1965 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1972 1973 1974 1975 1976 |
# File 'lib/google/apis/dns_v1/classes.rb', line 1972 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 |