URLMapPathMatcherRouteRuleRouteAction class
Constructors
-
URLMapPathMatcherRouteRuleRouteAction({Input<URLMapPathMatcherRouteRuleRouteActionCachePolicy?>? cachePolicy, Input<URLMapPathMatcherRouteRuleRouteActionCorsPolicy?>? corsPolicy, Input<URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicy?>? faultInjectionPolicy, Input<URLMapPathMatcherRouteRuleRouteActionMaxStreamDuration?>? maxStreamDuration, Input<URLMapPathMatcherRouteRuleRouteActionRequestMirrorPolicy?>? requestMirrorPolicy, Input<URLMapPathMatcherRouteRuleRouteActionRetryPolicy?>? retryPolicy, Input<URLMapPathMatcherRouteRuleRouteActionTimeout?>? timeout, Input<URLMapPathMatcherRouteRuleRouteActionUrlRewrite?>? urlRewrite, Input<List<URLMapPathMatcherRouteRuleRouteActionWeightedBackendService>?>? weightedBackendServices})
-
Creates a new URLMapPathMatcherRouteRuleRouteAction.
cachePolicy Specifies the cache policy configuration for matched traffic. Available
corsPolicy The specification for allowing client side cross-origin requests. Please see W3C
faultInjectionPolicy The specification for fault injection introduced into traffic to test the
maxStreamDuration Specifies the maximum duration (timeout) for streams on the selected route.
requestMirrorPolicy Specifies the policy on how requests intended for the route's backends are
retryPolicy Specifies the retry policy associated with this route.
timeout Specifies the timeout for the selected route. Timeout is computed from the time
urlRewrite The spec to modify the URL of the request, prior to forwarding the request to
weightedBackendServices A list of weighted backend services to send traffic to when a route match
const
-
URLMapPathMatcherRouteRuleRouteAction.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
cachePolicy
→ Input<URLMapPathMatcherRouteRuleRouteActionCachePolicy?>?
-
Specifies the cache policy configuration for matched traffic. Available
only for Global EXTERNAL_MANAGED load balancer schemes. At least one
property must be specified. This policy cannot be specified if any target
backend has Identity-Aware Proxy enabled.
Structure is documented below.
final
-
corsPolicy
→ Input<URLMapPathMatcherRouteRuleRouteActionCorsPolicy?>?
-
The specification for allowing client side cross-origin requests. Please see W3C
Recommendation for Cross Origin Resource Sharing
Structure is documented below.
final
-
faultInjectionPolicy
→ Input<URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicy?>?
-
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 by
Loadbalancer on a percentage of requests before sending those request to the
backend service. Similarly requests from clients can be aborted by the
Loadbalancer for a percentage of requests. timeout and retryPolicy will be
ignored by clients that are configured with a fault_injection_policy.
Structure is documented below.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
maxStreamDuration
→ Input<URLMapPathMatcherRouteRuleRouteActionMaxStreamDuration?>?
-
Specifies the maximum duration (timeout) for streams on the selected route.
Unlike the
Timeout field where the timeout duration starts from the time the request
has been fully processed (known as end-of-stream), the duration in this field
is computed from the beginning of the stream until the response has been processed,
including all retries. A stream that does not complete in this duration is closed.
Structure is documented below.
final
-
requestMirrorPolicy
→ Input<URLMapPathMatcherRouteRuleRouteActionRequestMirrorPolicy?>?
-
Specifies the policy on how requests intended for the route's backends are
shadowed to a separate mirrored backend service. Loadbalancer does not wait for
responses from the shadow service. Prior to sending traffic to the shadow
service, the host / authority header is suffixed with -shadow.
Structure is documented below.
final
-
retryPolicy
→ Input<URLMapPathMatcherRouteRuleRouteActionRetryPolicy?>?
-
Specifies the retry policy associated with this route.
Structure is documented below.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
timeout
→ Input<URLMapPathMatcherRouteRuleRouteActionTimeout?>?
-
Specifies the timeout for the selected route. Timeout is computed from the time
the request is has been fully processed (i.e. end-of-stream) up until the
response has been completely processed. Timeout includes all retries. If not
specified, the default value is 15 seconds.
Structure is documented below.
final
-
urlRewrite
→ Input<URLMapPathMatcherRouteRuleRouteActionUrlRewrite?>?
-
The spec to modify the URL of the request, prior to forwarding the request to
the matched service
Structure is documented below.
final
-
weightedBackendServices
→ Input<List<URLMapPathMatcherRouteRuleRouteActionWeightedBackendService>?>?
-
A list of weighted backend services to send traffic to when a route match
occurs. The weights determine the fraction of traffic that flows to their
corresponding backend service. If all traffic needs to go to a single backend
service, there must be one weightedBackendService with weight set to a non 0
number. Once a backendService is identified and before forwarding the request to
the backend service, advanced routing actions like Url rewrites and header
transformations are applied depending on additional settings specified in this
HttpRouteAction.
Structure is documented below.
final