Class: Google::Apis::GkeonpremV1::VmwareAddressPool

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

Overview

Represents an IP pool used by the load balancer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmwareAddressPool

Returns a new instance of VmwareAddressPool.

[View source]

3699
3700
3701
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3699

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

Instance Attribute Details

#addressesArray<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

Returns:

  • (Array<String>)

3679
3680
3681
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3679

def addresses
  @addresses
end

#avoid_buggy_ipsBoolean 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

Returns:

  • (Boolean)

3685
3686
3687
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3685

def avoid_buggy_ips
  @avoid_buggy_ips
end

#manual_assignBoolean Also known as: manual_assign?

If true, prevent IP addresses from being automatically assigned. Corresponds to the JSON property manualAssign

Returns:

  • (Boolean)

3691
3692
3693
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3691

def manual_assign
  @manual_assign
end

#poolString

Required. The name of the address pool. Corresponds to the JSON property pool

Returns:

  • (String)

3697
3698
3699
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3697

def pool
  @pool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

3704
3705
3706
3707
3708
3709
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3704

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