Class: Google::Apis::GkeonpremV1::BareMetalAdminBgpLbConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalAdminBgpLbConfig
- 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
BareMetalAdminBgpLbConfig represents configuration parameters for a Border Gateway Protocol (BGP) load balancer.
Instance Attribute Summary collapse
-
#address_pools ⇒ Array<Google::Apis::GkeonpremV1::BareMetalAdminLoadBalancerAddressPool>
Required.
-
#asn ⇒ Fixnum
Required.
-
#bgp_peer_configs ⇒ Array<Google::Apis::GkeonpremV1::BareMetalAdminBgpPeerConfig>
Required.
-
#load_balancer_node_pool_config ⇒ Google::Apis::GkeonpremV1::BareMetalAdminLoadBalancerNodePoolConfig
Specifies the load balancer's node pool configuration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalAdminBgpLbConfig
constructor
A new instance of BareMetalAdminBgpLbConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BareMetalAdminBgpLbConfig
Returns a new instance of BareMetalAdminBgpLbConfig.
110 111 112 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 110 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address_pools ⇒ Array<Google::Apis::GkeonpremV1::BareMetalAdminLoadBalancerAddressPool>
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
88 89 90 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 88 def address_pools @address_pools end |
#asn ⇒ Fixnum
Required. BGP autonomous system number (ASN) of the cluster. This field can be
updated after cluster creation.
Corresponds to the JSON property asn
94 95 96 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 94 def asn @asn end |
#bgp_peer_configs ⇒ Array<Google::Apis::GkeonpremV1::BareMetalAdminBgpPeerConfig>
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
103 104 105 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 103 def bgp_peer_configs @bgp_peer_configs end |
#load_balancer_node_pool_config ⇒ Google::Apis::GkeonpremV1::BareMetalAdminLoadBalancerNodePoolConfig
Specifies the load balancer's node pool configuration.
Corresponds to the JSON property loadBalancerNodePoolConfig
108 109 110 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 108 def load_balancer_node_pool_config @load_balancer_node_pool_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
115 116 117 118 119 120 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 115 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 |