Class: Google::Apis::ComputeBeta::BackendServiceNetworkPassThroughLbTrafficPolicy

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackendServiceNetworkPassThroughLbTrafficPolicy

Returns a new instance of BackendServiceNetworkPassThroughLbTrafficPolicy.



6293
6294
6295
# File 'lib/google/apis/compute_beta/classes.rb', line 6293

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

Instance Attribute Details

#zonal_affinityGoogle::Apis::ComputeBeta::BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity

When configured, new connections are load balanced across healthy backend endpoints in the local zone. Corresponds to the JSON property zonalAffinity



6291
6292
6293
# File 'lib/google/apis/compute_beta/classes.rb', line 6291

def zonal_affinity
  @zonal_affinity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6298
6299
6300
# File 'lib/google/apis/compute_beta/classes.rb', line 6298

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