Class: Google::Apis::NetworkservicesV1::GrpcRouteRouteAction
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1::GrpcRouteRouteAction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkservices_v1/classes.rb,
lib/google/apis/networkservices_v1/representations.rb,
lib/google/apis/networkservices_v1/representations.rb
Overview
Specifies how to route matched traffic.
Instance Attribute Summary collapse
-
#destinations ⇒ Array<Google::Apis::NetworkservicesV1::GrpcRouteDestination>
Optional.
-
#fault_injection_policy ⇒ Google::Apis::NetworkservicesV1::GrpcRouteFaultInjectionPolicy
The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure.
-
#retry_policy ⇒ Google::Apis::NetworkservicesV1::GrpcRouteRetryPolicy
The specifications for retries.
-
#timeout ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GrpcRouteRouteAction
constructor
A new instance of GrpcRouteRouteAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GrpcRouteRouteAction
Returns a new instance of GrpcRouteRouteAction.
886 887 888 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 886 def initialize(**args) update!(**args) end |
Instance Attribute Details
#destinations ⇒ Array<Google::Apis::NetworkservicesV1::GrpcRouteDestination>
Optional. The destination services to which traffic should be forwarded. If
multiple destinations are specified, traffic will be split between Backend
Service(s) according to the weight field of these destinations.
Corresponds to the JSON property destinations
862 863 864 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 862 def destinations @destinations end |
#fault_injection_policy ⇒ Google::Apis::NetworkservicesV1::GrpcRouteFaultInjectionPolicy
The specification for fault injection introduced into traffic to test the
resiliency of clients to destination service failure. As part of fault
injection, when clients send requests to a destination, delays can be
introduced on a percentage of requests before sending those requests to the
destination service. Similarly requests from clients can be aborted by for a
percentage of requests.
Corresponds to the JSON property faultInjectionPolicy
872 873 874 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 872 def fault_injection_policy @fault_injection_policy end |
#retry_policy ⇒ Google::Apis::NetworkservicesV1::GrpcRouteRetryPolicy
The specifications for retries.
Corresponds to the JSON property retryPolicy
877 878 879 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 877 def retry_policy @retry_policy end |
#timeout ⇒ String
Optional. Specifies the timeout for selected route. Timeout is computed from
the time the request has been fully processed (i.e. end of stream) up until
the response has been completely processed. Timeout includes all retries.
Corresponds to the JSON property timeout
884 885 886 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 884 def timeout @timeout end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
891 892 893 894 895 896 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 891 def update!(**args) @destinations = args[:destinations] if args.key?(:destinations) @fault_injection_policy = args[:fault_injection_policy] if args.key?(:fault_injection_policy) @retry_policy = args[:retry_policy] if args.key?(:retry_policy) @timeout = args[:timeout] if args.key?(:timeout) end |