Class: Google::Apis::GkeonpremV1::BareMetalLoadBalancerAddressPool
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalLoadBalancerAddressPool
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkeonprem_v1/classes.rb,
lib/google/apis/gkeonprem_v1/representations.rb,
lib/google/apis/gkeonprem_v1/representations.rb
Overview
Represents an IP pool used by the load balancer.
Instance Attribute Summary collapse
-
#addresses ⇒ Array<String>
Required.
-
#avoid_buggy_ips ⇒ Boolean
(also: #avoid_buggy_ips?)
If true, avoid using IPs ending in .0 or .255.
-
#manual_assign ⇒ Boolean
(also: #manual_assign?)
If true, prevent IP addresses from being automatically assigned.
-
#pool ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalLoadBalancerAddressPool
constructor
A new instance of BareMetalLoadBalancerAddressPool.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BareMetalLoadBalancerAddressPool
Returns a new instance of BareMetalLoadBalancerAddressPool.
1288 1289 1290 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1288 def initialize(**args) update!(**args) end |
Instance Attribute Details
#addresses ⇒ Array<String>
Required. The addresses that are part of this pool. Each address must be
either in the CIDR form (1.2.3.0/24) or range form (1.2.3.1-1.2.3.5).
Corresponds to the JSON property addresses
1268 1269 1270 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1268 def addresses @addresses end |
#avoid_buggy_ips ⇒ Boolean Also known as: avoid_buggy_ips?
If true, avoid using IPs ending in .0 or .255. This avoids buggy consumer
devices mistakenly dropping IPv4 traffic for those special IP addresses.
Corresponds to the JSON property avoidBuggyIps
1274 1275 1276 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1274 def avoid_buggy_ips @avoid_buggy_ips end |
#manual_assign ⇒ Boolean Also known as: manual_assign?
If true, prevent IP addresses from being automatically assigned.
Corresponds to the JSON property manualAssign
1280 1281 1282 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1280 def manual_assign @manual_assign end |
#pool ⇒ String
Required. The name of the address pool.
Corresponds to the JSON property pool
1286 1287 1288 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1286 def pool @pool end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1293 1294 1295 1296 1297 1298 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1293 def update!(**args) @addresses = args[:addresses] if args.key?(:addresses) @avoid_buggy_ips = args[:avoid_buggy_ips] if args.key?(:avoid_buggy_ips) @manual_assign = args[:manual_assign] if args.key?(:manual_assign) @pool = args[:pool] if args.key?(:pool) end |