Class: Google::Apis::ComputeBeta::BackendServiceLocalityLoadBalancingPolicyConfigPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::BackendServiceLocalityLoadBalancingPolicyConfigPolicy
- 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
-
#name ⇒ String
The name of a locality load-balancing policy.
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.
4700 4701 4702 |
# File 'lib/google/apis/compute_beta/classes.rb', line 4700 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of a locality load-balancing policy. Valid values include ROUND_ROBIN
and, for Java clients, LEAST_REQUEST. For information about these values, see
the description of localityLbPolicy. Do not specify the same policy more than
once for a backend. If you do, the configuration is rejected.
Corresponds to the JSON property name
4698 4699 4700 |
# File 'lib/google/apis/compute_beta/classes.rb', line 4698 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4705 4706 4707 |
# File 'lib/google/apis/compute_beta/classes.rb', line 4705 def update!(**args) @name = args[:name] if args.key?(:name) end |