Class: Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy
- 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
-
#failovers ⇒ Array<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.
-
#items ⇒ Array<Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicyGeoPolicyItem>
The primary geo routing configuration.
-
#kind ⇒ String
Corresponds to the JSON property
kind.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RrSetRoutingPolicyGeoPolicy
constructor
A new instance of RrSetRoutingPolicyGeoPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#failovers ⇒ Array<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 |
#items ⇒ Array<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 |
#kind ⇒ String
Corresponds to the JSON property kind
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 |