Class: Google::Apis::DnsV1::RrSetRoutingPolicyWrrPolicyWrrPolicyItem

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dns_v1/classes.rb,
lib/google/apis/dns_v1/representations.rb,
lib/google/apis/dns_v1/representations.rb

Overview

A routing block which contains the routing information for one WRR item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RrSetRoutingPolicyWrrPolicyWrrPolicyItem

Returns a new instance of RrSetRoutingPolicyWrrPolicyWrrPolicyItem.



2313
2314
2315
# File 'lib/google/apis/dns_v1/classes.rb', line 2313

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

Instance Attribute Details

#health_checked_targetsGoogle::Apis::DnsV1::RrSetRoutingPolicyHealthCheckTargets

HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Only one of internal_load_balancer and external_endpoints should be set. Corresponds to the JSON property healthCheckedTargets



2286
2287
2288
# File 'lib/google/apis/dns_v1/classes.rb', line 2286

def health_checked_targets
  @health_checked_targets
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


2291
2292
2293
# File 'lib/google/apis/dns_v1/classes.rb', line 2291

def kind
  @kind
end

#rrdatasArray<String>

Corresponds to the JSON property rrdatas

Returns:

  • (Array<String>)


2296
2297
2298
# File 'lib/google/apis/dns_v1/classes.rb', line 2296

def rrdatas
  @rrdatas
end

#signature_rrdatasArray<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 signatureRrdatas

Returns:

  • (Array<String>)


2303
2304
2305
# File 'lib/google/apis/dns_v1/classes.rb', line 2303

def signature_rrdatas
  @signature_rrdatas
end

#weightFloat

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

Returns:

  • (Float)


2311
2312
2313
# File 'lib/google/apis/dns_v1/classes.rb', line 2311

def weight
  @weight
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2318
2319
2320
2321
2322
2323
2324
# File 'lib/google/apis/dns_v1/classes.rb', line 2318

def update!(**args)
  @health_checked_targets = args[:health_checked_targets] if args.key?(:health_checked_targets)
  @kind = args[:kind] if args.key?(:kind)
  @rrdatas = args[:rrdatas] if args.key?(:rrdatas)
  @signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas)
  @weight = args[:weight] if args.key?(:weight)
end