Class: Google::Cloud::NetworkServices::V1::HttpRoute::RouteAction
- Inherits:
-
Object
- Object
- Google::Cloud::NetworkServices::V1::HttpRoute::RouteAction
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/networkservices/v1/http_route.rb
Overview
The specifications for routing traffic and applying associated policies.
Instance Attribute Summary collapse
-
#cors_policy ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::CorsPolicy
The specification for allowing client side cross-origin requests.
-
#destinations ⇒ ::Array<::Google::Cloud::NetworkServices::V1::HttpRoute::Destination>
The destination to which traffic should be forwarded.
-
#direct_response ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::HttpDirectResponse
Optional.
-
#fault_injection_policy ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy
The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure.
-
#idle_timeout ⇒ ::Google::Protobuf::Duration
Optional.
-
#redirect ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::Redirect
If set, the request is directed as configured by this field.
-
#request_header_modifier ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderModifier
The specification for modifying the headers of a matching request prior to delivery of the request to the destination.
-
#request_mirror_policy ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::RequestMirrorPolicy
Specifies the policy on how requests intended for the routes destination are shadowed to a separate mirrored destination.
-
#response_header_modifier ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderModifier
The specification for modifying the headers of a response prior to sending the response back to the client.
-
#retry_policy ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::RetryPolicy
Specifies the retry policy associated with this route.
-
#stateful_session_affinity ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::StatefulSessionAffinityPolicy
Optional.
-
#timeout ⇒ ::Google::Protobuf::Duration
Specifies the timeout for selected route.
-
#url_rewrite ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::URLRewrite
The specification for rewrite URL before forwarding requests to the destination.
Instance Attribute Details
#cors_policy ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::CorsPolicy
Returns The specification for allowing client side cross-origin requests.
646 647 648 649 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 646 class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#destinations ⇒ ::Array<::Google::Cloud::NetworkServices::V1::HttpRoute::Destination>
Returns The destination to which traffic should be forwarded.
646 647 648 649 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 646 class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#direct_response ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::HttpDirectResponse
Returns Optional. Static HTTP Response object to be returned regardless of the request.
646 647 648 649 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 646 class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#fault_injection_policy ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy
Returns The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced on a percentage of requests before sending those requests to the backend service. Similarly requests from clients can be aborted for a percentage of requests.
timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy.
646 647 648 649 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 646 class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#idle_timeout ⇒ ::Google::Protobuf::Duration
Returns Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.
646 647 648 649 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 646 class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#redirect ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::Redirect
Returns If set, the request is directed as configured by this field.
646 647 648 649 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 646 class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#request_header_modifier ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderModifier
Returns The specification for modifying the headers of a matching request prior to delivery of the request to the destination. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration.
646 647 648 649 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 646 class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#request_mirror_policy ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::RequestMirrorPolicy
Returns Specifies the policy on how requests intended for the routes destination are shadowed to a separate mirrored destination. Proxy will not wait for the shadow destination to respond before returning the response. Prior to sending traffic to the shadow service, the host/authority header is suffixed with -shadow.
646 647 648 649 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 646 class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#response_header_modifier ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderModifier
Returns The specification for modifying the headers of a response prior to sending the response back to the client. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration.
646 647 648 649 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 646 class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#retry_policy ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::RetryPolicy
Returns Specifies the retry policy associated with this route.
646 647 648 649 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 646 class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#stateful_session_affinity ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::StatefulSessionAffinityPolicy
Returns Optional. Specifies cookie-based stateful session affinity.
646 647 648 649 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 646 class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#timeout ⇒ ::Google::Protobuf::Duration
Returns 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.
646 647 648 649 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 646 class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#url_rewrite ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::URLRewrite
Returns The specification for rewrite URL before forwarding requests to the destination.
646 647 648 649 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 646 class RouteAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |