Class: Google::Apis::DnsV1::RrSetRoutingPolicyLoadBalancerTarget

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RrSetRoutingPolicyLoadBalancerTarget

Returns a new instance of RrSetRoutingPolicyLoadBalancerTarget.



2147
2148
2149
# File 'lib/google/apis/dns_v1/classes.rb', line 2147

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)


2106
2107
2108
# File 'lib/google/apis/dns_v1/classes.rb', line 2106

def ip_address
  @ip_address
end

#ip_protocolString

Corresponds to the JSON property ipProtocol

Returns:

  • (String)


2111
2112
2113
# File 'lib/google/apis/dns_v1/classes.rb', line 2111

def ip_protocol
  @ip_protocol
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


2116
2117
2118
# File 'lib/google/apis/dns_v1/classes.rb', line 2116

def kind
  @kind
end

#load_balancer_typeString

The type of Load Balancer specified by this target. Must match the configuration of the Load Balancer located at the LoadBalancerTarget's IP address/port and region. Corresponds to the JSON property loadBalancerType

Returns:

  • (String)


2123
2124
2125
# File 'lib/google/apis/dns_v1/classes.rb', line 2123

def load_balancer_type
  @load_balancer_type
end

#network_urlString

The fully qualified url of the network on which the ILB is present. This should be formatted like https://www.googleapis.com/compute/v1/projects/` project/global/networks/network Corresponds to the JSON propertynetworkUrl`

Returns:

  • (String)


2130
2131
2132
# File 'lib/google/apis/dns_v1/classes.rb', line 2130

def network_url
  @network_url
end

#portString

The configured port of the Load Balancer. Corresponds to the JSON property port

Returns:

  • (String)


2135
2136
2137
# File 'lib/google/apis/dns_v1/classes.rb', line 2135

def port
  @port
end

#projectString

The project ID in which the ILB exists. Corresponds to the JSON property project

Returns:

  • (String)


2140
2141
2142
# File 'lib/google/apis/dns_v1/classes.rb', line 2140

def project
  @project
end

#regionString

The region in which the ILB exists. Corresponds to the JSON property region

Returns:

  • (String)


2145
2146
2147
# File 'lib/google/apis/dns_v1/classes.rb', line 2145

def region
  @region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
# File 'lib/google/apis/dns_v1/classes.rb', line 2152

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