Class: Google::Apis::ComputeBeta::BackendServiceLocalityLoadBalancingPolicyConfigPolicy

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

Overview

The configuration for a built-in load balancing policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackendServiceLocalityLoadBalancingPolicyConfigPolicy

Returns a new instance of BackendServiceLocalityLoadBalancingPolicyConfigPolicy.



4292
4293
4294
# File 'lib/google/apis/compute_beta/classes.rb', line 4292

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

Instance Attribute Details

#nameString

The name of a locality load balancer policy to be used. The value should be one of the predefined ones as supported by localityLbPolicy, although at the moment only ROUND_ROBIN is supported. This field should only be populated when the customPolicy field is not used. Note that specifying the same policy more than once for a backend is not a valid configuration and will be rejected. Corresponds to the JSON property name

Returns:

  • (String)


4290
4291
4292
# File 'lib/google/apis/compute_beta/classes.rb', line 4290

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4297
4298
4299
# File 'lib/google/apis/compute_beta/classes.rb', line 4297

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