RegionUrlMapPathMatcher

data class RegionUrlMapPathMatcher(val defaultService: String? = null, val defaultUrlRedirect: RegionUrlMapPathMatcherDefaultUrlRedirect? = null, val description: String? = null, val name: String, val pathRules: List<RegionUrlMapPathMatcherPathRule>? = null, val routeRules: List<RegionUrlMapPathMatcherRouteRule>? = null)

Constructors

Link copied to clipboard
constructor(defaultService: String? = null, defaultUrlRedirect: RegionUrlMapPathMatcherDefaultUrlRedirect? = null, description: String? = null, name: String, pathRules: List<RegionUrlMapPathMatcherPathRule>? = null, routeRules: List<RegionUrlMapPathMatcherRouteRule>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val defaultService: String? = null

A reference to a RegionBackendService resource. This will be used if none of the pathRules defined by this PathMatcher is matched by the URL's path portion.

Link copied to clipboard

When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Structure is documented below.

Link copied to clipboard
val description: String? = null

An optional description of this resource.

Link copied to clipboard

The name to which this PathMatcher is referred by the HostRule.

Link copied to clipboard

The list of path rules. Use this list instead of routeRules when routing based on simple path matching is all that's required. The order by which path rules are specified does not matter. Matches are always done on the longest-path-first basis. For example: a pathRule with a path /a/b/c/* will match before /a/b/* irrespective of the order in which those paths appear in this list. Within a given pathMatcher, only one of pathRules or routeRules must be set. Structure is documented below.

Link copied to clipboard

The list of ordered HTTP route rules. Use this list instead of pathRules when advanced route matching and routing actions are desired. The order of specifying routeRules matters: the first rule that matches will cause its specified routing action to take effect. Within a given pathMatcher, only one of pathRules or routeRules must be set. routeRules are not supported in UrlMaps intended for External load balancers. Structure is documented below. //