Class: Google::Apis::ComputeAlpha::BackendServiceLocalityLoadBalancingPolicyConfig
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::BackendServiceLocalityLoadBalancingPolicyConfig
- 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
Container for either a built-in LB policy supported by gRPC or Envoy or a custom one implemented by the end user.
Instance Attribute Summary collapse
-
#custom_policy ⇒ Google::Apis::ComputeAlpha::BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
The configuration for a custom policy implemented by the user and deployed with the client.
-
#policy ⇒ Google::Apis::ComputeAlpha::BackendServiceLocalityLoadBalancingPolicyConfigPolicy
The configuration for a built-in load balancing policy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackendServiceLocalityLoadBalancingPolicyConfig
constructor
A new instance of BackendServiceLocalityLoadBalancingPolicyConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackendServiceLocalityLoadBalancingPolicyConfig
Returns a new instance of BackendServiceLocalityLoadBalancingPolicyConfig.
4525 4526 4527 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 4525 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_policy ⇒ Google::Apis::ComputeAlpha::BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
The configuration for a custom policy implemented by the user and deployed
with the client.
Corresponds to the JSON property customPolicy
4518 4519 4520 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 4518 def custom_policy @custom_policy end |
#policy ⇒ Google::Apis::ComputeAlpha::BackendServiceLocalityLoadBalancingPolicyConfigPolicy
The configuration for a built-in load balancing policy.
Corresponds to the JSON property policy
4523 4524 4525 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 4523 def policy @policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4530 4531 4532 4533 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 4530 def update!(**args) @custom_policy = args[:custom_policy] if args.key?(:custom_policy) @policy = args[:policy] if args.key?(:policy) end |