Class: Google::Apis::DnsV1beta2::RrSetRoutingPolicyLoadBalancerTarget

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

The configuration for an individual load balancer to health check.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RrSetRoutingPolicyLoadBalancerTarget

Returns a new instance of RrSetRoutingPolicyLoadBalancerTarget.



2231
2232
2233
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2231

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

Instance Attribute Details

#ip_addressString

The frontend IP address of the load balancer to health check. Corresponds to the JSON property ipAddress

Returns:

  • (String)


2187
2188
2189
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2187

def ip_address
  @ip_address
end

#ip_protocolString

The protocol of the load balancer to health check. Corresponds to the JSON property ipProtocol

Returns:

  • (String)


2192
2193
2194
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2192

def ip_protocol
  @ip_protocol
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


2197
2198
2199
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2197

def kind
  @kind
end

#load_balancer_typeString

The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - regionalL4ilb: for a regional internal passthrough Network Load Balancer. - regionalL7ilb: for a regional internal Application Load Balancer. - globalL7ilb: for a global internal Application Load Balancer. Corresponds to the JSON property loadBalancerType

Returns:

  • (String)


2207
2208
2209
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2207

def load_balancer_type
  @load_balancer_type
end

#network_urlString

The fully qualified URL of the network that the load balancer is attached to. This should be formatted like https://www.googleapis.com/compute/v1/projects/ project/global/networks/network`. Corresponds to the JSON propertynetworkUrl`

Returns:

  • (String)


2214
2215
2216
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2214

def network_url
  @network_url
end

#portString

The configured port of the load balancer. Corresponds to the JSON property port

Returns:

  • (String)


2219
2220
2221
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2219

def port
  @port
end

#projectString

The project ID in which the load balancer is located. Corresponds to the JSON property project

Returns:

  • (String)


2224
2225
2226
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2224

def project
  @project
end

#regionString

The region in which the load balancer is located. Corresponds to the JSON property region

Returns:

  • (String)


2229
2230
2231
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2229

def region
  @region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 2236

def update!(**args)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
  @kind = args[:kind] if args.key?(:kind)
  @load_balancer_type = args[:load_balancer_type] if args.key?(:load_balancer_type)
  @network_url = args[:network_url] if args.key?(:network_url)
  @port = args[:port] if args.key?(:port)
  @project = args[:project] if args.key?(:project)
  @region = args[:region] if args.key?(:region)
end