class Google::Apis::ComputeV1::BackendServiceLocalityLoadBalancingPolicyConfig

Container for either a built-in LB policy supported by gRPC or Envoy or a custom one implemented by the end user.

Attributes

custom_policy[RW]

The configuration for a custom policy implemented by the user and deployed with the client. Corresponds to the JSON property `customPolicy` @return [Google::Apis::ComputeV1::BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy]

policy[RW]

The configuration for a built-in load balancing policy. Corresponds to the JSON property `policy` @return [Google::Apis::ComputeV1::BackendServiceLocalityLoadBalancingPolicyConfigPolicy]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 4078
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 4083
def update!(**args)
  @custom_policy = args[:custom_policy] if args.key?(:custom_policy)
  @policy = args[:policy] if args.key?(:policy)
end