Class: Google::Apis::GkeonpremV1::BareMetalBgpLbConfig

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

BareMetalBgpLbConfig represents configuration parameters for a Border Gateway Protocol (BGP) load balancer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalBgpLbConfig

Returns a new instance of BareMetalBgpLbConfig.



810
811
812
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 810

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

Instance Attribute Details

#address_poolsArray<Google::Apis::GkeonpremV1::BareMetalLoadBalancerAddressPool>

Required. AddressPools is a list of non-overlapping IP pools used by load balancer typed services. All addresses must be routable to load balancer nodes. IngressVIP must be included in the pools. Corresponds to the JSON property addressPools



788
789
790
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 788

def address_pools
  @address_pools
end

#asnFixnum

Required. BGP autonomous system number (ASN) of the cluster. This field can be updated after cluster creation. Corresponds to the JSON property asn

Returns:

  • (Fixnum)


794
795
796
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 794

def asn
  @asn
end

#bgp_peer_configsArray<Google::Apis::GkeonpremV1::BareMetalBgpPeerConfig>

Required. The list of BGP peers that the cluster will connect to. At least one peer must be configured for each control plane node. Control plane nodes will connect to these peers to advertise the control plane VIP. The Services load balancer also uses these peers by default. This field can be updated after cluster creation. Corresponds to the JSON property bgpPeerConfigs



803
804
805
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 803

def bgp_peer_configs
  @bgp_peer_configs
end

#load_balancer_node_pool_configGoogle::Apis::GkeonpremV1::BareMetalLoadBalancerNodePoolConfig

Specifies the load balancer's node pool configuration. Corresponds to the JSON property loadBalancerNodePoolConfig



808
809
810
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 808

def load_balancer_node_pool_config
  @load_balancer_node_pool_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



815
816
817
818
819
820
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 815

def update!(**args)
  @address_pools = args[:address_pools] if args.key?(:address_pools)
  @asn = args[:asn] if args.key?(:asn)
  @bgp_peer_configs = args[:bgp_peer_configs] if args.key?(:bgp_peer_configs)
  @load_balancer_node_pool_config = args[:load_balancer_node_pool_config] if args.key?(:load_balancer_node_pool_config)
end