Class: Google::Apis::DnsV1beta2::RrSetRoutingPolicyHealthCheckTargets

Inherits:
Object
  • Object
show all
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

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RrSetRoutingPolicyHealthCheckTargets

Returns a new instance of RrSetRoutingPolicyHealthCheckTargets.



2119
2120
2121
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2119

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

Instance Attribute Details

#external_endpointsArray<String>

The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 ( section 3.6.1) Corresponds to the JSON property externalEndpoints

Returns:

  • (Array<String>)


2112
2113
2114
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2112

def external_endpoints
  @external_endpoints
end

#internal_load_balancersArray<Google::Apis::DnsV1beta2::RrSetRoutingPolicyLoadBalancerTarget>

Configuration for internal load balancers to be health checked. Corresponds to the JSON property internalLoadBalancers



2117
2118
2119
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2117

def internal_load_balancers
  @internal_load_balancers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2124
2125
2126
2127
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2124

def update!(**args)
  @external_endpoints = args[:external_endpoints] if args.key?(:external_endpoints)
  @internal_load_balancers = args[:internal_load_balancers] if args.key?(:internal_load_balancers)
end