Class: Google::Apis::GkeonpremV1::VmwareIpBlock

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

Overview

Represents a collection of IP addresses to assign to nodes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmwareIpBlock

Returns a new instance of VmwareIpBlock.



4925
4926
4927
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4925

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

Instance Attribute Details

#gatewayString

The network gateway used by the VMware user cluster. Corresponds to the JSON property gateway

Returns:

  • (String)


4913
4914
4915
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4913

def gateway
  @gateway
end

#ipsArray<Google::Apis::GkeonpremV1::VmwareHostIp>

The node's network configurations used by the VMware user cluster. Corresponds to the JSON property ips



4918
4919
4920
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4918

def ips
  @ips
end

#netmaskString

The netmask used by the VMware user cluster. Corresponds to the JSON property netmask

Returns:

  • (String)


4923
4924
4925
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4923

def netmask
  @netmask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4930
4931
4932
4933
4934
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4930

def update!(**args)
  @gateway = args[:gateway] if args.key?(:gateway)
  @ips = args[:ips] if args.key?(:ips)
  @netmask = args[:netmask] if args.key?(:netmask)
end