Class: Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RrSetRoutingPolicyGeoPolicy

Returns a new instance of RrSetRoutingPolicyGeoPolicy.



2090
2091
2092
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2090

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enable_fencingBoolean 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

Returns:

  • (Boolean)


2076
2077
2078
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2076

def enable_fencing
  @enable_fencing
end

#itemsArray<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



2083
2084
2085
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2083

def items
  @items
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


2088
2089
2090
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2088

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2095
2096
2097
2098
2099
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2095

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