class Google::Apis::DnsV1::RrSetRoutingPolicy

A RRSetRoutingPolicy represents ResourceRecordSet data that is returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection.

Attributes

geo[RW]

Configures a RRSetRoutingPolicy that routes based on the geo location of the querying user. Corresponds to the JSON property `geo` @return [Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy]

kind[RW]

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

primary_backup[RW]

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. Corresponds to the JSON property `primaryBackup` @return [Google::Apis::DnsV1::RrSetRoutingPolicyPrimaryBackupPolicy]

wrr[RW]

Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion. Corresponds to the JSON property `wrr` @return [Google::Apis::DnsV1::RrSetRoutingPolicyWrrPolicy]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dns_v1/classes.rb, line 1963
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_v1/classes.rb, line 1968
def update!(**args)
  @geo = args[:geo] if args.key?(:geo)
  @kind = args[:kind] if args.key?(:kind)
  @primary_backup = args[:primary_backup] if args.key?(:primary_backup)
  @wrr = args[:wrr] if args.key?(:wrr)
end