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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dns_v1beta2/classes.rb,
generated/google/apis/dns_v1beta2/representations.rb,
generated/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.



1435
1436
1437
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 1435

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 - we'll return the primarily configured rrdata irrespective of whether it is healthy or not. Corresponds to the JSON property failovers



1422
1423
1424
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 1422

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



1428
1429
1430
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 1428

def items
  @items
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


1433
1434
1435
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 1433

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1440
1441
1442
1443
1444
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 1440

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