ComputeUrlMapUrlMapPathMatcher class
One path_matcher entry. Each path matcher is named (so ComputeUrlMapUrlMapHostRule
can reference it) and carries a fallback defaultService plus the
path-based routing rules.
Routing precedence inside a path matcher:
- routeRules (priority-ordered, evaluated first if non-empty);
- pathRules (longest-prefix wins);
- fallback defaultService / defaultUrlRedirect.
Exactly one of defaultService / defaultUrlRedirect must be set per
path matcher. The advanced advancedExtra escape hatch covers the
uncurated sub-blocks (default_route_action,
default_custom_error_response_policy, header_action).
- Annotations
-
- @immutable
Constructors
-
ComputeUrlMapUrlMapPathMatcher({required TfArg<
String> name, TfArg<String> ? defaultService, TfArg<String> ? description, List<ComputeUrlMapUrlMapPathRule> ? pathRules, List<ComputeUrlMapUrlMapRouteRule> ? routeRules, ComputeUrlMapUrlMapUrlRedirect? defaultUrlRedirect, Map<String, Object?> ? advancedExtra}) -
const
Properties
-
advancedExtra
→ Map<
String, Object?> ? -
Escape hatch for the uncurated nested blocks of
path_matcher:final -
defaultService
→ TfArg<
String> ? -
Fallback backend self-link consulted when neither pathRules nor
routeRules match. Accepts either a
backend_serviceor abackend_bucketself-link (same union asGoogleComputeUrlMap.defaultService). Mutually exclusive with defaultUrlRedirect.final - defaultUrlRedirect → ComputeUrlMapUrlMapUrlRedirect?
-
Catch-all redirect when neither pathRules nor routeRules match.
Mutually exclusive with defaultService.
final
-
description
→ TfArg<
String> ? -
Free-form description.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
name
→ TfArg<
String> -
Local name used by ComputeUrlMapUrlMapHostRule.pathMatcher. NOT a self-link.
final
-
pathRules
→ List<
ComputeUrlMapUrlMapPathRule> ? -
Path-based routing rules. Simple "match longest prefix, send to
service" semantics. Mutually exclusive on a per-path-rule basis with
routeRules.
final
-
routeRules
→ List<
ComputeUrlMapUrlMapRouteRule> ? -
Priority-ordered routing rules with header / query / regex matching.
More expressive than pathRules; required for traffic-director use
cases. When non-empty, evaluated BEFORE pathRules.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toArgMap(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited