Class: Google::Apis::ComputeV1::BackendServiceLocalityLoadBalancingPolicyConfigPolicy

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/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.



4626
4627
4628
# File 'lib/google/apis/compute_v1/classes.rb', line 4626

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


4624
4625
4626
# File 'lib/google/apis/compute_v1/classes.rb', line 4624

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4631
4632
4633
# File 'lib/google/apis/compute_v1/classes.rb', line 4631

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