Class: Google::Apis::DomainsV1alpha2::WrrPolicyItem
- Inherits:
-
Object
- Object
- Google::Apis::DomainsV1alpha2::WrrPolicyItem
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/domains_v1alpha2/classes.rb,
lib/google/apis/domains_v1alpha2/representations.rb,
lib/google/apis/domains_v1alpha2/representations.rb
Overview
A routing block which contains the routing information for one WRR item.
Instance Attribute Summary collapse
-
#health_checked_targets ⇒ Google::Apis::DomainsV1alpha2::HealthCheckTargets
HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries.
-
#rrdata ⇒ Array<String>
Corresponds to the JSON property
rrdata
. -
#signature_rrdata ⇒ Array<String>
DNSSEC generated signatures for all the
rrdata
within this item. -
#weight ⇒ Float
The weight corresponding to this
WrrPolicyItem
object.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WrrPolicyItem
constructor
A new instance of WrrPolicyItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WrrPolicyItem
Returns a new instance of WrrPolicyItem.
2448 2449 2450 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 2448 def initialize(**args) update!(**args) end |
Instance Attribute Details
#health_checked_targets ⇒ Google::Apis::DomainsV1alpha2::HealthCheckTargets
HealthCheckTargets describes endpoints to health-check when responding to
Routing Policy queries. Only the healthy endpoints will be included in the
response.
Corresponds to the JSON property healthCheckedTargets
2426 2427 2428 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 2426 def health_checked_targets @health_checked_targets end |
#rrdata ⇒ Array<String>
Corresponds to the JSON property rrdata
2431 2432 2433 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 2431 def rrdata @rrdata end |
#signature_rrdata ⇒ Array<String>
DNSSEC generated signatures for all the rrdata
within this item. Note that
if health checked targets are provided for DNSSEC enabled zones, there's a
restriction of 1 IP address per item.
Corresponds to the JSON property signatureRrdata
2438 2439 2440 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 2438 def signature_rrdata @signature_rrdata end |
#weight ⇒ Float
The weight corresponding to this WrrPolicyItem
object. When multiple
WrrPolicyItem
objects are configured, the probability of returning an
WrrPolicyItem
object's data is proportional to its weight relative to the sum
of weights configured for all items. This weight must be non-negative.
Corresponds to the JSON property weight
2446 2447 2448 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 2446 def weight @weight end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2453 2454 2455 2456 2457 2458 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 2453 def update!(**args) @health_checked_targets = args[:health_checked_targets] if args.key?(:health_checked_targets) @rrdata = args[:rrdata] if args.key?(:rrdata) @signature_rrdata = args[:signature_rrdata] if args.key?(:signature_rrdata) @weight = args[:weight] if args.key?(:weight) end |