URLMapPathMatcherPathRuleRouteAction class

Constructors

URLMapPathMatcherPathRuleRouteAction({Input<URLMapPathMatcherPathRuleRouteActionCachePolicy?>? cachePolicy, Input<URLMapPathMatcherPathRuleRouteActionCorsPolicy?>? corsPolicy, Input<URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicy?>? faultInjectionPolicy, Input<URLMapPathMatcherPathRuleRouteActionMaxStreamDuration?>? maxStreamDuration, Input<URLMapPathMatcherPathRuleRouteActionRequestMirrorPolicy?>? requestMirrorPolicy, Input<URLMapPathMatcherPathRuleRouteActionRetryPolicy?>? retryPolicy, Input<URLMapPathMatcherPathRuleRouteActionTimeout?>? timeout, Input<URLMapPathMatcherPathRuleRouteActionUrlRewrite?>? urlRewrite, Input<List<URLMapPathMatcherPathRuleRouteActionWeightedBackendService>?>? weightedBackendServices})
Creates a new URLMapPathMatcherPathRuleRouteAction. 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
URLMapPathMatcherPathRuleRouteAction.fromMap(Map<String, dynamic> map)
factory

Properties

cachePolicy → Input<URLMapPathMatcherPathRuleRouteActionCachePolicy?>?
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<URLMapPathMatcherPathRuleRouteActionCorsPolicy?>?
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<URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicy?>?
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<URLMapPathMatcherPathRuleRouteActionMaxStreamDuration?>?
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<URLMapPathMatcherPathRuleRouteActionRequestMirrorPolicy?>?
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<URLMapPathMatcherPathRuleRouteActionRetryPolicy?>?
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<URLMapPathMatcherPathRuleRouteActionTimeout?>?
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<URLMapPathMatcherPathRuleRouteActionUrlRewrite?>?
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<URLMapPathMatcherPathRuleRouteActionWeightedBackendService>?>?
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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited