Class: Google::Apis::ComputeV1::BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
- 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 custom policy implemented by the user and deployed with the client.
Instance Attribute Summary collapse
-
#data ⇒ String
An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.
-
#name ⇒ String
Identifies the custom policy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
constructor
A new instance of BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
Returns a new instance of BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.
4112 4113 4114 |
# File 'lib/google/apis/compute_v1/classes.rb', line 4112 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data ⇒ String
An optional, arbitrary JSON object with configuration data, understood by a
locally installed custom policy implementation.
Corresponds to the JSON property data
4100 4101 4102 |
# File 'lib/google/apis/compute_v1/classes.rb', line 4100 def data @data end |
#name ⇒ String
Identifies the custom policy. The value should match the type the custom
implementation is registered with on the gRPC clients. It should follow
protocol buffer message naming conventions and include the full path (e.g.
myorg.CustomLbPolicy). The maximum length is 256 characters. Note that
specifying the same custom policy more than once for a backend is not a valid
configuration and will be rejected.
Corresponds to the JSON property name
4110 4111 4112 |
# File 'lib/google/apis/compute_v1/classes.rb', line 4110 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4117 4118 4119 4120 |
# File 'lib/google/apis/compute_v1/classes.rb', line 4117 def update!(**args) @data = args[:data] if args.key?(:data) @name = args[:name] if args.key?(:name) end |