Class: Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dns_v1/classes.rb,
generated/google/apis/dns_v1/representations.rb,
generated/google/apis/dns_v1/representations.rb
Instance Attribute Summary collapse
-
#failovers ⇒ Array<Google::Apis::DnsV1::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::DnsV1::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.
1435 1436 1437 |
# File 'generated/google/apis/dns_v1/classes.rb', line 1435 def initialize(**args) update!(**args) end |
Instance Attribute Details
#failovers ⇒ Array<Google::Apis::DnsV1::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_v1/classes.rb', line 1422 def failovers @failovers end |
#items ⇒ Array<Google::Apis::DnsV1::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_v1/classes.rb', line 1428 def items @items end |
#kind ⇒ String
Corresponds to the JSON property kind
1433 1434 1435 |
# File 'generated/google/apis/dns_v1/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_v1/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 |