Class: Google::Apis::NetworkservicesV1beta1::TlsRouteRouteDestination
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1beta1::TlsRouteRouteDestination
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkservices_v1beta1/classes.rb,
lib/google/apis/networkservices_v1beta1/representations.rb,
lib/google/apis/networkservices_v1beta1/representations.rb
Overview
Describe the destination for traffic to be routed to.
Instance Attribute Summary collapse
-
#service_name ⇒ String
Required.
-
#weight ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TlsRouteRouteDestination
constructor
A new instance of TlsRouteRouteDestination.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TlsRouteRouteDestination
Returns a new instance of TlsRouteRouteDestination.
3636 3637 3638 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3636 def initialize(**args) update!(**args) end |
Instance Attribute Details
#service_name ⇒ String
Required. The URL of a BackendService to route traffic to.
Corresponds to the JSON property serviceName
3626 3627 3628 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3626 def service_name @service_name end |
#weight ⇒ Fixnum
Optional. Specifies the proportion of requests forwareded to the backend
referenced by the service_name field. This is computed as: - weight/Sum(
weights in destinations) Weights in all destinations does not need to sum up
to 100.
Corresponds to the JSON property weight
3634 3635 3636 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3634 def weight @weight end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3641 3642 3643 3644 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3641 def update!(**args) @service_name = args[:service_name] if args.key?(:service_name) @weight = args[:weight] if args.key?(:weight) end |