Class: Google::Apis::ComputeAlpha::BackendServiceLocalityLoadBalancingPolicyConfigPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::BackendServiceLocalityLoadBalancingPolicyConfigPolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
The configuration for a built-in load balancing policy.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of a locality load balancer policy to be used.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackendServiceLocalityLoadBalancingPolicyConfigPolicy
constructor
A new instance of BackendServiceLocalityLoadBalancingPolicyConfigPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackendServiceLocalityLoadBalancingPolicyConfigPolicy
Returns a new instance of BackendServiceLocalityLoadBalancingPolicyConfigPolicy.
4665 4666 4667 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 4665 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
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
4663 4664 4665 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 4663 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4670 4671 4672 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 4670 def update!(**args) @name = args[:name] if args.key?(:name) end |