class Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy

Attributes

failovers[RW]

If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won't be healthchecked, and it returns the primarily configured rrdata irrespective of whether it is healthy or not. Corresponds to the JSON property `failovers` @return [Array<Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicyGeoPolicyItem>]

items[RW]

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` @return [Array<Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicyGeoPolicyItem>]

kind[RW]

Corresponds to the JSON property `kind` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dns_v1beta2/classes.rb, line 1523
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dns_v1beta2/classes.rb, line 1528
def update!(**args)
  @failovers = args[:failovers] if args.key?(:failovers)
  @items = args[:items] if args.key?(:items)
  @kind = args[:kind] if args.key?(:kind)
end