Network Services V1 API - Class Google::Cloud::NetworkServices::V1::HttpRoute::RouteAction (v0.1.0)

Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::HttpRoute::RouteAction.

The specifications for routing traffic and applying associated policies.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#cors_policy

def cors_policy() -> ::Google::Cloud::NetworkServices::V1::HttpRoute::CorsPolicy
Returns

#cors_policy=

def cors_policy=(value) -> ::Google::Cloud::NetworkServices::V1::HttpRoute::CorsPolicy
Parameter
Returns

#destinations

def destinations() -> ::Array<::Google::Cloud::NetworkServices::V1::HttpRoute::Destination>
Returns

#destinations=

def destinations=(value) -> ::Array<::Google::Cloud::NetworkServices::V1::HttpRoute::Destination>
Parameter
Returns

#fault_injection_policy

def fault_injection_policy() -> ::Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy
Returns
  • (::Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy) — 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

#fault_injection_policy=

def fault_injection_policy=(value) -> ::Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy
Parameter
  • value (::Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy) — 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

Returns
  • (::Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy) — 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

#redirect

def redirect() -> ::Google::Cloud::NetworkServices::V1::HttpRoute::Redirect
Returns

#redirect=

def redirect=(value) -> ::Google::Cloud::NetworkServices::V1::HttpRoute::Redirect
Parameter
Returns

#request_header_modifier

def request_header_modifier() -> ::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderModifier
Returns
  • (::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. 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.

#request_header_modifier=

def request_header_modifier=(value) -> ::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderModifier
Parameter
  • value (::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. 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.
Returns
  • (::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. 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.

#request_mirror_policy

def request_mirror_policy() -> ::Google::Cloud::NetworkServices::V1::HttpRoute::RequestMirrorPolicy
Returns
  • (::Google::Cloud::NetworkServices::V1::HttpRoute::RequestMirrorPolicy) — 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.

#request_mirror_policy=

def request_mirror_policy=(value) -> ::Google::Cloud::NetworkServices::V1::HttpRoute::RequestMirrorPolicy
Parameter
  • value (::Google::Cloud::NetworkServices::V1::HttpRoute::RequestMirrorPolicy) — 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.
Returns
  • (::Google::Cloud::NetworkServices::V1::HttpRoute::RequestMirrorPolicy) — 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.

#response_header_modifier

def response_header_modifier() -> ::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderModifier
Returns
  • (::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderModifier) — 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.

#response_header_modifier=

def response_header_modifier=(value) -> ::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderModifier
Parameter
  • value (::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderModifier) — 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.
Returns
  • (::Google::Cloud::NetworkServices::V1::HttpRoute::HeaderModifier) — 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.

#retry_policy

def retry_policy() -> ::Google::Cloud::NetworkServices::V1::HttpRoute::RetryPolicy
Returns

#retry_policy=

def retry_policy=(value) -> ::Google::Cloud::NetworkServices::V1::HttpRoute::RetryPolicy
Parameter
Returns

#timeout

def timeout() -> ::Google::Protobuf::Duration
Returns
  • (::Google::Protobuf::Duration) — 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.

#timeout=

def timeout=(value) -> ::Google::Protobuf::Duration
Parameter
  • value (::Google::Protobuf::Duration) — 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.
Returns
  • (::Google::Protobuf::Duration) — 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.

#url_rewrite

def url_rewrite() -> ::Google::Cloud::NetworkServices::V1::HttpRoute::URLRewrite
Returns

#url_rewrite=

def url_rewrite=(value) -> ::Google::Cloud::NetworkServices::V1::HttpRoute::URLRewrite
Parameter
Returns