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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RrSetRoutingPolicyGeoPolicy

Returns a new instance of RrSetRoutingPolicyGeoPolicy.



1523
1524
1525
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1523

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

Instance Attribute Details

#failoversArray<Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicyGeoPolicyItem>

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



1510
1511
1512
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1510

def failovers
  @failovers
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



1516
1517
1518
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1516

def items
  @items
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


1521
1522
1523
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1521

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1528
1529
1530
1531
1532
# 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