Debian Codegraph @

docs/dyn/compute_v1.regionUrlMaps.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="compute_v1.html">Compute Engine API</a> . <a href="compute_v1.regionUrlMaps.html">regionUrlMaps</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#delete">delete(project, region, urlMap, requestId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Deletes the specified UrlMap resource.</p>
83 <p class="toc_element">
84 <code><a href="#get">get(project, region, urlMap, x__xgafv=None)</a></code></p>
85 <p class="firstline">Returns the specified UrlMap resource.</p>
86 <p class="toc_element">
87 <code><a href="#insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Creates a UrlMap resource in the specified project using</p>
89 <p class="toc_element">
90 <code><a href="#list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Retrieves the list of UrlMap resources available to the specified</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(project, region, urlMap, body=None, requestId=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Patches the specified UrlMap resource with the data included in the</p>
98 <p class="toc_element">
99 <code><a href="#update">update(project, region, urlMap, body=None, requestId=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Updates the specified UrlMap resource with the data included in the</p>
101 <p class="toc_element">
102 <code><a href="#validate">validate(project, region, urlMap, body=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Runs static validation for the UrlMap. In particular, the tests of the</p>
104 <h3>Method Details</h3>
105 <div class="method">
106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108 </div>
109
110 <div class="method">
111 <code class="details" id="delete">delete(project, region, urlMap, requestId=None, x__xgafv=None)</code>
112 <pre>Deletes the specified UrlMap resource.
113
114 Args:
115 project: string, Project ID for this request. (required)
116 region: string, Name of the region scoping this request. (required)
117 urlMap: string, Name of the UrlMap resource to delete. (required)
118 requestId: string, begin_interface: MixerMutationRequestBuilder
119 Request ID to support idempotency.
120 x__xgafv: string, V1 error format.
121 Allowed values
122 1 - v1 error format
123 2 - v2 error format
124
125 Returns:
126 An object of the form:
127
128 { # Represents an Operation resource.
129 #
130 # Google Compute Engine has three Operation resources:
131 #
132 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
133 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
134 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
135 #
136 # You can use an operation resource to manage asynchronous API requests.
137 # For more information, readHandling
138 # API responses.
139 #
140 # Operations can be global, regional or zonal.
141 #
142 # - For global operations, use the `globalOperations`
143 # resource.
144 # - For regional operations, use the
145 # `regionOperations` resource.
146 # - For zonal operations, use
147 # the `zoneOperations` resource.
148 #
149 #
150 #
151 # For more information, read
152 # Global, Regional, and Zonal Resources.
153 #
154 # Note that completed Operation resources have a limited
155 # retention period.
156 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
157 # Not present otherwise.
158 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
159 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
160 # set when the operation is created.
161 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
162 # text format.
163 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
164 # this field will be populated.
165 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
166 # operation.
167 {
168 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
169 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
170 # details. There is a set of defined message types to use for providing
171 # details.The syntax depends on the error code. For example,
172 # QuotaExceededInfo will have details when the error code is
173 # QUOTA_EXCEEDED.
174 {
175 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
176 #
177 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
178 # is not enabled:
179 #
180 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
181 # &quot;domain&quot;: &quot;googleapis.com&quot;
182 # &quot;metadata&quot;: {
183 # &quot;resource&quot;: &quot;projects/123&quot;,
184 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
185 # }
186 # }
187 #
188 # This response indicates that the pubsub.googleapis.com API is not enabled.
189 #
190 # Example of an error that is returned when attempting to create a Spanner
191 # instance in a region that is out of stock:
192 #
193 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
194 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
195 # &quot;metadata&quot;: {
196 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
197 # }
198 # }
199 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
200 # is typically the registered service name of the tool or product that
201 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
202 # generated by some common infrastructure, the error domain must be a
203 # globally unique value that identifies the infrastructure. For Google API
204 # infrastructure, the error domain is &quot;googleapis.com&quot;.
205 &quot;metadatas&quot;: { # Additional structured details about this error.
206 #
207 # Keys must match a regular expression of `a-z+` but should
208 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
209 # length. When identifying the current value of an exceeded limit, the units
210 # should be contained in the key, not the value. For example, rather than
211 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
212 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
213 # instances that can be created in a single (batch) request.
214 &quot;a_key&quot;: &quot;A String&quot;,
215 },
216 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
217 # proximate cause of the error. Error reasons are unique within a particular
218 # domain of errors. This should be at most 63 characters and match a
219 # regular expression of `A-Z+[A-Z0-9]`, which represents
220 # UPPER_SNAKE_CASE.
221 },
222 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
223 #
224 # For example, if a quota check failed with an error indicating the calling
225 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
226 # directly to the right place in the developer console to flip the bit.
227 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
228 { # Describes a URL link.
229 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
230 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
231 },
232 ],
233 },
234 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
235 # which can be attached to an RPC error.
236 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
237 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
238 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
239 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
240 },
241 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
242 &quot;dimensions&quot;: { # The map holding related quota dimensions.
243 &quot;a_key&quot;: &quot;A String&quot;,
244 },
245 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
246 # type or metric.
247 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
248 # or metric.
249 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
250 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
251 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
252 },
253 },
254 ],
255 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
256 # This property is optional.
257 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
258 },
259 ],
260 },
261 &quot;getVersionOperationMetadata&quot;: {
262 &quot;inlineSbomInfo&quot;: {
263 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
264 # appropriate identifiers.
265 &quot;a_key&quot;: &quot;A String&quot;,
266 },
267 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
268 # identifiers.
269 &quot;a_key&quot;: &quot;A String&quot;,
270 },
271 },
272 },
273 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
274 # message that was returned, such as `NOT FOUND`.
275 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
276 # status code that was returned. For example, a `404` means the
277 # resource was not found.
278 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
279 # defined by the server.
280 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
281 # This value is inRFC3339
282 # text format.
283 &quot;instancesBulkInsertOperationMetadata&quot;: {
284 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
285 # Example key: zones/us-central1-a
286 &quot;a_key&quot;: {
287 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
288 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
289 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
290 # error.
291 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
292 # if the flow is rolling forward or rolling back.
293 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
294 },
295 },
296 },
297 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
298 # Operation resources.
299 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
300 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
301 # group of operations results from a `bulkInsert` API request.
302 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
303 # `update`, or `delete`, and so on.
304 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
305 # There is no requirement that this be linear or support any granularity of
306 # operations. This should not be used to guess when the operation will be
307 # complete. This number should monotonically increase as the operation
308 # progresses.
309 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
310 # applicable when performing regional operations.
311 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
312 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
313 # this field will contain information on all underlying zonal actions and
314 # their state.
315 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
316 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
317 # Example key: zones/us-central1-a
318 &quot;a_key&quot;: {
319 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # [Output Only] If state is `ABANDONED` or `FAILED`, this field is
320 # populated.
321 # different programming environments, including REST APIs and RPC APIs. It is
322 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
323 # three pieces of data: error code, error message, and error details.
324 #
325 # You can find out more about this error model and how to work with it in the
326 # [API Design Guide](https://cloud.google.com/apis/design/errors).
327 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
328 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
329 # message types for APIs to use.
330 {
331 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
332 },
333 ],
334 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
335 # user-facing error message should be localized and sent in the
336 # google.rpc.Status.details field, or localized by the client.
337 },
338 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
339 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
340 },
341 },
342 },
343 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
344 # This value is inRFC3339
345 # text format.
346 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
347 # following:
348 # `PENDING`, `RUNNING`, or `DONE`.
349 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
350 # operation.
351 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
352 # of the target resource.
353 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
354 # operations related to creating a snapshot, this points to the disk
355 # that the snapshot was created from.
356 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
357 # `[email protected]` or
358 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
359 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
360 # operation, this field will be populated.
361 {
362 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
363 # Engine returns NO_RESULTS_ON_PAGE if there
364 # are no results in the response.
365 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
366 # value format. For example:
367 #
368 # &quot;data&quot;: [
369 # {
370 # &quot;key&quot;: &quot;scope&quot;,
371 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
372 # }
373 {
374 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
375 # returned. For example, for warnings where there are no results in a list
376 # request for a particular zone, this key might be scope and
377 # the key value might be the zone name. Other examples might be a key
378 # indicating a deprecated resource and a suggested replacement, or a
379 # warning about invalid network settings (for example, if an instance
380 # attempts to perform IP forwarding but is not enabled for IP forwarding).
381 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
382 },
383 ],
384 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
385 },
386 ],
387 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
388 # applicable when performing per-zone operations.
389 }</pre>
390 </div>
391
392 <div class="method">
393 <code class="details" id="get">get(project, region, urlMap, x__xgafv=None)</code>
394 <pre>Returns the specified UrlMap resource.
395
396 Args:
397 project: string, Project ID for this request. (required)
398 region: string, Name of the region scoping this request. (required)
399 urlMap: string, Name of the UrlMap resource to return. (required)
400 x__xgafv: string, V1 error format.
401 Allowed values
402 1 - v1 error format
403 2 - v2 error format
404
405 Returns:
406 An object of the form:
407
408 { # Represents a URL Map resource.
409 #
410 # Compute Engine has two URL Map resources:
411 #
412 # * [Global](/compute/docs/reference/rest/v1/urlMaps)
413 # * [Regional](/compute/docs/reference/rest/v1/regionUrlMaps)
414 #
415 # A URL map resource is a component of certain types of cloud load balancers
416 # and Traffic Director:
417 #
418 # * urlMaps are used by global external Application Load
419 # Balancers, classic Application Load Balancers, and cross-region internal
420 # Application Load Balancers.
421 # * regionUrlMaps are used by internal Application Load Balancers,
422 # regional external Application Load Balancers and regional internal
423 # Application Load Balancers.
424 #
425 # For a list of supported URL map features by the load balancer type, see the
426 # Load balancing features: Routing and traffic management table.
427 #
428 # For a list of supported URL map features for Traffic Director, see the
429 # Traffic Director features: Routing and traffic management table.
430 #
431 # This resource defines mappings from hostnames and URL paths to either a
432 # backend service or a backend bucket.
433 #
434 # To use the global urlMaps resource, the backend service must
435 # have a loadBalancingScheme of either EXTERNAL,EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To use
436 # the regionUrlMaps resource, the backend service must have aloadBalancingScheme of INTERNAL_MANAGED. For more
437 # information, read URL
438 # Map Concepts.
439 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
440 # text format.
441 &quot;defaultCustomErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # defaultCustomErrorResponsePolicy specifies how the Load
442 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
443 #
444 # This policy takes
445 # effect at the load balancer level and applies only when no policy has been
446 # defined for the error code at lower levels like PathMatcher, RouteRule and
447 # PathRule within this UrlMap.
448 #
449 # For example, consider a UrlMap with the
450 # following configuration:
451 #
452 #
453 # - defaultCustomErrorResponsePolicy containing policies for
454 # responding to 5xx and 4xx errors
455 # - A PathMatcher configured for *.example.com has
456 # defaultCustomErrorResponsePolicy for 4xx.
457 #
458 # If a request for http://www.example.com/ encounters a404, the policy inpathMatcher.defaultCustomErrorResponsePolicy will be enforced.
459 # When the request for http://www.example.com/ encounters a502, the policy inUrlMap.defaultCustomErrorResponsePolicy will be enforced. When
460 # a request that does not match any host in *.example.com such
461 # as http://www.myotherexample.com/, encounters a404, UrlMap.defaultCustomErrorResponsePolicy
462 # takes effect.
463 #
464 # When used in conjunction withdefaultRouteAction.retryPolicy, retries take precedence. Only
465 # once all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting
466 # a retry, if load balancer is successful in reaching the
467 # service, the defaultCustomErrorResponsePolicy is ignored and
468 # the response from the service is returned to the client.
469 #
470 # defaultCustomErrorResponsePolicy is supported only for
471 # global external Application Load Balancers.
472 # backend service or backend bucket responds with an error.
473 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
474 #
475 # In a given policy, if you specify rules for both a range of error codes
476 # as well as rules for specific error codes then rules with specific error
477 # codes have a higher priority. For example, assume that you configure a rule
478 # for 401 (Un-authorized) code, and another for all 4 series
479 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
480 # However if the backend service returns a 403, the rule for4xx takes effect.
481 { # Specifies the mapping between the response code that will be returned along
482 # with the custom error content and the response code returned by the backend
483 # service.
484 &quot;matchResponseCodes&quot;: [ # Valid values include:
485 #
486 #
487 # - A number between 400 and 599: For example
488 # 401 or 503, in which case the load balancer
489 # applies the policy if the error code exactly matches this value.
490 # - 5xx: Load Balancer will apply the policy if the
491 # backend service responds with any response code in the range of
492 # 500 to 599.
493 # - 4xx: Load
494 # Balancer will apply the policy if the backend service responds with any
495 # response code in the range of 400 to
496 # 499.
497 #
498 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
499 &quot;A String&quot;,
500 ],
501 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
502 # error content. If overrideResponseCode is not supplied, the
503 # same response code returned by the original backend bucket or backend
504 # service is returned to the client.
505 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
506 #
507 # path must start
508 # with a leading slash. path cannot have trailing slashes.
509 #
510 # If the file is not available in backendBucket or the
511 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
512 #
513 # The value must
514 # be from 1 to 1024 characters
515 },
516 ],
517 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
518 # contains the custom error content. Examples are:
519 #
520 #
521 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
522 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
523 # - global/backendBuckets/myBackendBucket
524 #
525 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
526 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
527 #
528 # If load balancer cannot reach
529 # the backendBucket, a simple Not Found Error will
530 # be returned, with the original response code (oroverrideResponseCode if configured).
531 #
532 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
533 },
534 &quot;defaultRouteAction&quot;: { # defaultRouteAction takes effect when none of the
535 # hostRules match. The load balancer performs advanced routing
536 # actions, such as URL rewrites and header transformations, before forwarding
537 # the request to the selected backend.
538 #
539 #
540 # Only one of defaultUrlRedirect, defaultService
541 # or defaultRouteAction.weightedBackendService can be set.
542 #
543 #
544 # URL maps for classic Application Load Balancers only support
545 # the urlRewrite action within defaultRouteAction.
546 #
547 #
548 # defaultRouteAction has no effect when the URL map is bound
549 # to a target gRPC proxy that has the validateForProxyless field
550 # set to true.
551 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
552 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
553 # property must be specified. This policy cannot be specified if any target
554 # backend has Identity-Aware Proxy enabled.
555 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
556 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
557 # header names can be specified. The cache is bypassed for all `cacheMode`
558 # values.
559 &quot;A String&quot;,
560 ],
561 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
562 # on the backend type: for Backend Services, the complete request URI is
563 # used; for Backend Buckets, the request URI is used without the protocol or
564 # host, and only query parameters known to Cloud Storage are included.
565 # Policy defined on Route Action.
566 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
567 # parameters will be included. Either specify `excludedQueryParameters`
568 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
569 # encoded and not treated as delimiters.
570 #
571 # Note: This field applies to routes that use backend services. Attempting
572 # to set it on a route that points exclusively to Backend Buckets will
573 # result in a configuration error. For routes that point to a Backend
574 # Bucket, use `includedQueryParameters` to define which parameters should
575 # be part of the cache key.
576 &quot;A String&quot;,
577 ],
578 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
579 #
580 # Note: This setting is only applicable to routes that use a Backend
581 # Service. It does not affect requests served by a Backend Bucket, as the
582 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
583 # it on a route that points exclusively to Backend Buckets will result in a
584 # configuration error.
585 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
586 #
587 # Note: This setting is only applicable to routes that use a Backend
588 # Service. It does not affect requests served by a Backend Bucket, as the
589 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
590 # set on a route that points exclusively to Backend Buckets will result in
591 # a configuration error.
592 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
593 # `includedQueryParameters` and `excludedQueryParameters`. If neither
594 # is set, the entire query string will be included. If false, the query
595 # string will be excluded from the cache key entirely.
596 #
597 # Note: This field applies to routes that use backend services. Attempting
598 # to set it on a route that points exclusively to Backend Buckets will
599 # result in a configuration error. For routes that point to a Backend
600 # Bucket, use `includedQueryParameters` to define which parameters should
601 # be part of the cache key.
602 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
603 # The name=value pair will be used in the cache key Cloud CDN generates.
604 #
605 # Note: This setting is only applicable to routes that use a Backend
606 # Service. It does not affect requests served by a Backend Bucket.
607 # Attempting to set it on a route that points exclusively to Backend
608 # Buckets will result in a configuration error. Up to 5 cookie names can be
609 # specified.
610 &quot;A String&quot;,
611 ],
612 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
613 &quot;A String&quot;,
614 ],
615 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
616 # parameters will be excluded. Either specify `includedQueryParameters`
617 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
618 # encoded and not treated as delimiters.
619 &quot;A String&quot;,
620 ],
621 },
622 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
623 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
624 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
625 # content. This is used to clamp the max-age (or Expires) value sent to the
626 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
627 # is used for the response max-age directive, along with a &quot;public&quot;
628 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
629 # clamps the max-age from the origin (if specified), or else sets the
630 # response max-age directive to the lesser of the `clientTtl` and
631 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
632 # present. The maximum allowed value is 31,622,400s (1 year). If not
633 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
634 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
635 # `USE_ORIGIN_HEADERS`.
636 # as a count of seconds and fractions of seconds at nanosecond
637 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
638 # or &quot;month&quot;. Range is approximately 10,000 years.
639 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
640 # Durations less than one second are represented with a 0
641 # `seconds` field and a positive `nanos` field. Must be from 0
642 # to 999,999,999 inclusive.
643 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
644 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
645 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
646 },
647 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
648 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
649 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
650 # greater than that of `maxTtl`. When the `cacheMode` is set to
651 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
652 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
653 # accessed objects may be evicted from the cache before the defined TTL. If
654 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
655 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
656 # `USE_ORIGIN_HEADERS`.
657 # as a count of seconds and fractions of seconds at nanosecond
658 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
659 # or &quot;month&quot;. Range is approximately 10,000 years.
660 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
661 # Durations less than one second are represented with a 0
662 # `seconds` field and a positive `nanos` field. Must be from 0
663 # to 999,999,999 inclusive.
664 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
665 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
666 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
667 },
668 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
669 # attempt to set a max-age or s-maxage higher than this, or an Expires header
670 # more than `maxTtl` seconds in the future will be capped at the value of
671 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
672 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
673 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
674 # Infrequently accessed objects may be evicted from the cache before the
675 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
676 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
677 # mode.
678 # as a count of seconds and fractions of seconds at nanosecond
679 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
680 # or &quot;month&quot;. Range is approximately 10,000 years.
681 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
682 # Durations less than one second are represented with a 0
683 # `seconds` field and a positive `nanos` field. Must be from 0
684 # to 999,999,999 inclusive.
685 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
686 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
687 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
688 },
689 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
690 # to apply fine-grained caching for common errors or redirects.
691 # This can reduce the load on your origin and improve end-user
692 # experience by reducing response latency.
693 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
694 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
695 # the specified response code that lack any Cache-Control, Expires, or
696 # Pragma: no-cache directives. When the `cacheMode` is set to
697 # `FORCE_CACHE_ALL`, negative caching applies to all responses
698 # with the specified response code, and overrides any caching headers. By
699 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
700 #
701 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
702 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
703 # * 405 (Method Not Found), 501 (Not Implemented): 60s
704 #
705 # These defaults can be overridden in `negativeCachingPolicy`.
706 # If not specified, Cloud CDN applies negative caching by default.
707 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
708 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
709 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
710 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
711 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
712 # all response codes that you wish to cache. Cloud CDN will not apply any
713 # default negative caching when a policy exists.
714 { # Specify CDN TTLs for response error codes.
715 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
716 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
717 # specified as values, and you cannot specify a status code more than
718 # once.
719 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
720 # corresponding status code.
721 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
722 # objects may be evicted from the cache before the defined TTL.
723 # as a count of seconds and fractions of seconds at nanosecond
724 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
725 # or &quot;month&quot;. Range is approximately 10,000 years.
726 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
727 # Durations less than one second are represented with a 0
728 # `seconds` field and a positive `nanos` field. Must be from 0
729 # to 999,999,999 inclusive.
730 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
731 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
732 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
733 },
734 },
735 ],
736 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
737 # requests into a small number of requests to the origin. If not specified,
738 # Cloud CDN applies request coalescing by default.
739 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
740 # content with the origin, or when an error is encountered when refreshing
741 # the cache.
742 # This setting defines the default &quot;max-stale&quot; duration for any cached
743 # responses that do not specify a max-stale directive. Stale responses that
744 # exceed the TTL configured here will not be served. The default limit
745 # (max-stale) is 86400s (1 day), which will allow stale content to be
746 # served up to this limit beyond the max-age (or s-maxage) of a cached
747 # response.
748 # The maximum allowed value is 604800 (1 week).
749 # Set this to zero (0) to disable serve-while-stale.
750 # as a count of seconds and fractions of seconds at nanosecond
751 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
752 # or &quot;month&quot;. Range is approximately 10,000 years.
753 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
754 # Durations less than one second are represented with a 0
755 # `seconds` field and a positive `nanos` field. Must be from 0
756 # to 999,999,999 inclusive.
757 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
758 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
759 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
760 },
761 },
762 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
763 # information about the W3C recommendation for cross-origin resource sharing
764 # (CORS), see Fetch API Living
765 # Standard.
766 #
767 # Not supported when the URL map is bound to a target gRPC proxy.
768 # information about the W3C recommendation for cross-origin resource sharing
769 # (CORS), see Fetch API Living
770 # Standard.
771 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
772 # indicates that
773 # the actual request can include user credentials. This field translates to
774 # the Access-Control-Allow-Credentials header.
775 #
776 # Default is false.
777 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
778 # header.
779 &quot;A String&quot;,
780 ],
781 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
782 # header.
783 &quot;A String&quot;,
784 ],
785 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
786 # more information, see regular expression syntax.
787 #
788 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
789 #
790 # Regular expressions can only be used when the loadBalancingScheme is
791 # set to INTERNAL_SELF_MANAGED.
792 &quot;A String&quot;,
793 ],
794 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
795 #
796 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
797 &quot;A String&quot;,
798 ],
799 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
800 # The default value is false, which indicates that the CORS
801 # policy is in effect.
802 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
803 # header.
804 &quot;A String&quot;,
805 ],
806 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
807 # seconds. This field translates to the Access-Control-Max-Age
808 # header.
809 },
810 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
811 # the resiliency of clients to backend service failure. As part of fault
812 # injection, when clients send requests to a backend service, delays can be
813 # introduced by a load balancer on a percentage of requests before sending
814 # those requests to the backend service. Similarly requests from clients can
815 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
816 # that are configured with a fault_injection_policy if:
817 # 1. The traffic is generated by fault injection AND
818 # 2. The fault injection is not a delay fault injection.
819 # Fault injection is not supported with the classic Application Load Balancer
820 # . To see which load balancers support fault injection,
821 # see Load
822 # balancing: Routing and traffic management features.
823 # the resiliency of clients to backend service failure. As part of fault
824 # injection, when clients send requests to a backend service, delays can be
825 # introduced by the load balancer on a percentage of requests before sending
826 # those request to the backend service. Similarly requests from clients can be
827 # aborted by the load balancer for a percentage of requests.
828 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
829 # injection.
830 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
831 #
832 # The value must be from 200 to 599 inclusive.
833 #
834 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
835 # according to this
836 # mapping table. HTTP status 200 is mapped to gRPC status
837 # UNKNOWN. Injecting an OK status is currently not supported by
838 # Traffic Director.
839 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
840 # that is aborted as part of fault injection.
841 #
842 # The value must be from 0.0 to 100.0 inclusive.
843 },
844 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
845 # injection, before being sent to a backend service.
846 # request to the backend service as part of fault injection.
847 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
848 # as a count of seconds and fractions of seconds at nanosecond
849 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
850 # or &quot;month&quot;. Range is approximately 10,000 years.
851 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
852 # Durations less than one second are represented with a 0
853 # `seconds` field and a positive `nanos` field. Must be from 0
854 # to 999,999,999 inclusive.
855 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
856 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
857 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
858 },
859 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
860 # which a delay is introduced as part of fault injection.
861 #
862 # The value must be from 0.0 to 100.0 inclusive.
863 },
864 },
865 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
866 # Unlike the timeout field where the timeout duration starts
867 # from the time the request has been fully processed (known as*end-of-stream*),
868 # the duration in this field is computed from the beginning of the stream
869 # until the response has been processed, including all retries. A
870 # stream that does not complete in this duration is closed.
871 #
872 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
873 # with the route.
874 #
875 # This field is only allowed if the Url map is used with backend services
876 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
877 # as a count of seconds and fractions of seconds at nanosecond
878 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
879 # or &quot;month&quot;. Range is approximately 10,000 years.
880 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
881 # Durations less than one second are represented with a 0
882 # `seconds` field and a positive `nanos` field. Must be from 0
883 # to 999,999,999 inclusive.
884 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
885 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
886 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
887 },
888 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
889 # are shadowed to a separate mirrored backend service. The load balancer does
890 # not wait for responses from the shadow service. Before sending traffic
891 # to the shadow service, the host / authority header is suffixed with-shadow.
892 #
893 # Not supported when the URL map is bound to a target gRPC proxy that
894 # has the validateForProxyless field set to true.
895 # are shadowed to a separate mirrored backend service. The load balancer
896 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
897 # to the shadow service, the host or authority header is suffixed with-shadow.
898 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
899 # mirrored to.
900 #
901 # The backend service configured for a mirroring
902 # policy must reference backends that are of the same type as the original
903 # backend service matched in the URL map.
904 #
905 # Serverless NEG backends are not currently supported as a mirrored
906 # backend service.
907 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
908 },
909 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
910 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
911 # If not specified, defaults to 1.
912 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
913 #
914 # If not specified, will use the timeout set in theHttpRouteAction field.
915 # If timeout in the HttpRouteAction field is not set, this field
916 # uses the largest timeout
917 # among all backend services associated with the route.
918 #
919 # Not supported when the URL map is bound to a target gRPC proxy that
920 # has the validateForProxyless field set to true.
921 # as a count of seconds and fractions of seconds at nanosecond
922 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
923 # or &quot;month&quot;. Range is approximately 10,000 years.
924 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
925 # Durations less than one second are represented with a 0
926 # `seconds` field and a positive `nanos` field. Must be from 0
927 # to 999,999,999 inclusive.
928 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
929 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
930 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
931 },
932 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
933 # values are:
934 #
935 # - 5xx: retry is attempted if the instance or endpoint
936 # responds with any 5xx response code, or if the instance or
937 # endpoint does not respond at all. For example, disconnects, reset, read
938 # timeout, connection failure, and refused streams.
939 # - gateway-error: Similar to 5xx, but only
940 # applies to response codes 502, 503 or504.
941 # - connect-failure: a retry is attempted on failures
942 # connecting to the instance or endpoint. For example, connection
943 # timeouts.
944 # - retriable-4xx: a retry is attempted if the instance
945 # or endpoint responds with a 4xx response code.
946 # The only error that you can retry is error code 409.
947 # - refused-stream: a retry is attempted if the instance
948 # or endpoint resets the stream with a REFUSED_STREAM error
949 # code. This reset type indicates that it is safe to retry.
950 # - cancelled: a retry is attempted if the gRPC status
951 # code in the response header is set to cancelled.
952 # - deadline-exceeded: a retry is attempted if the gRPC
953 # status code in the response header is set todeadline-exceeded.
954 # - internal: a retry is attempted if the gRPC
955 # status code in the response header is set tointernal.
956 # - resource-exhausted: a retry is attempted if the gRPC
957 # status code in the response header is set toresource-exhausted.
958 # - unavailable: a retry is attempted if the gRPC
959 # status code in the response header is set tounavailable.
960 #
961 # Only the following codes are supported when the URL map is bound to
962 # target gRPC proxy that has validateForProxyless field set to true.
963 #
964 # - cancelled
965 # - deadline-exceeded
966 # - internal
967 # - resource-exhausted
968 # - unavailable
969 &quot;A String&quot;,
970 ],
971 },
972 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
973 # time the request has been fully processed (known as *end-of-stream*)
974 # up until the response has been processed. Timeout includes
975 # all retries.
976 #
977 # If not specified, this field uses the largest timeout among all backend
978 # services associated with the route.
979 #
980 # Not supported when the URL map is bound to a target gRPC proxy that
981 # has validateForProxyless field set to true.
982 # as a count of seconds and fractions of seconds at nanosecond
983 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
984 # or &quot;month&quot;. Range is approximately 10,000 years.
985 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
986 # Durations less than one second are represented with a 0
987 # `seconds` field and a positive `nanos` field. Must be from 0
988 # to 999,999,999 inclusive.
989 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
990 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
991 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
992 },
993 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
994 # to the matched service.
995 #
996 # urlRewrite is the only action supported in UrlMaps
997 # for classic Application Load Balancers.
998 #
999 # Not supported when the URL map is bound to a target gRPC proxy that
1000 # has the validateForProxyless field set to true.
1001 # backend service.
1002 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
1003 # host header is replaced with contents of hostRewrite.
1004 #
1005 # The value must be from 1 to 255 characters.
1006 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
1007 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
1008 #
1009 # The value must be from 1 to 1024 characters.
1010 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
1011 # header) using the HTTP template syntax.
1012 #
1013 # A corresponding
1014 # path_template_match must be specified. Any template variables must exist in
1015 # the path_template_match field.
1016 #
1017 #
1018 # - -At least one variable must be specified in the path_template_match
1019 # field
1020 # - You can omit variables from the rewritten URL
1021 # - The * and ** operators cannot be matched
1022 # unless they have a corresponding variable name - e.g.
1023 # {format=*} or {var=**}.
1024 #
1025 # For example, a path_template_match of /static/{format=**}
1026 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
1027 # rewrite, so that /{country}/{format}/{suffix=**} can be
1028 # rewritten as /content/{format}/{country}/{suffix}.
1029 #
1030 # At least
1031 # one non-empty routeRules[].matchRules[].path_template_match is
1032 # required.
1033 #
1034 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
1035 },
1036 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
1037 # occurs. The weights determine the fraction of traffic that flows to
1038 # their corresponding backend service. If all traffic needs to
1039 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
1040 #
1041 # After a backend service is identified and before forwarding
1042 # the request to
1043 # the backend service, advanced routing actions such as URL rewrites and
1044 # header transformations are applied depending on additional settings
1045 # specified in this HttpRouteAction.
1046 { # In contrast to a single BackendService in
1047 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
1048 # multiple backend services. The volume of traffic for each
1049 # backend service is proportional to the weight specified
1050 # in each WeightedBackendService
1051 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
1052 # resource. Before
1053 # forwarding the request to backendService, the load balancer
1054 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
1055 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
1056 # effect for the selected backendService.
1057 #
1058 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
1059 #
1060 # headerAction is not supported for load balancers that have
1061 # their loadBalancingScheme set to EXTERNAL.
1062 #
1063 # Not supported when the URL map is bound to a target gRPC proxy that
1064 # has validateForProxyless field set to true.
1065 # the request is passed along to the selected backendService.
1066 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
1067 { # Specification determining how headers are added to requests or responses.
1068 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
1069 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
1070 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
1071 # that already
1072 # exist for the header. If true, headerValue is set for the
1073 # header, discarding any values that were set for that header.
1074 #
1075 # The default value is true,
1076 # unless a variable is present in headerValue,
1077 # in which case the default value is false.
1078 # .
1079 },
1080 ],
1081 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
1082 # request before forwarding the request to the backendService.
1083 &quot;A String&quot;,
1084 ],
1085 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
1086 # client.
1087 { # Specification determining how headers are added to requests or responses.
1088 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
1089 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
1090 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
1091 # that already
1092 # exist for the header. If true, headerValue is set for the
1093 # header, discarding any values that were set for that header.
1094 #
1095 # The default value is true,
1096 # unless a variable is present in headerValue,
1097 # in which case the default value is false.
1098 # .
1099 },
1100 ],
1101 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
1102 # response before sending the response back to the client.
1103 &quot;A String&quot;,
1104 ],
1105 },
1106 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
1107 # computed asweight / (sum of all weightedBackendService weights in routeAction).
1108 #
1109 # The selection of a backend service is determined only for new traffic.
1110 # Once a user&#x27;s request has been directed to a backend service,
1111 # subsequent requests are sent to the same backend service as
1112 # determined by the backend service&#x27;s session affinity policy.
1113 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
1114 # splitting. If you do, the weighted traffic splitting configuration takes
1115 # precedence.
1116 #
1117 # The value must be from 0 to 1000.
1118 },
1119 ],
1120 },
1121 &quot;defaultService&quot;: &quot;A String&quot;, # The full or partial URL of the defaultService resource to
1122 # which traffic is directed if none of the hostRules match.
1123 # If defaultRouteAction is also specified, advanced
1124 # routing actions, such as URL rewrites, take effect before sending the
1125 # request to the backend.
1126 #
1127 #
1128 # Only one of defaultUrlRedirect, defaultService
1129 # or defaultRouteAction.weightedBackendService can be set.
1130 #
1131 #
1132 # defaultService has no effect when the URL map is bound
1133 # to a target gRPC proxy that has the validateForProxyless field
1134 # set to true.
1135 &quot;defaultUrlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When none of the specified hostRules match, the request
1136 # is redirected to a URL specified by defaultUrlRedirect.
1137 #
1138 #
1139 # Only one of defaultUrlRedirect, defaultService
1140 # or defaultRouteAction.weightedBackendService can be set.
1141 #
1142 #
1143 # Not supported when the URL map is bound to a target gRPC proxy.
1144 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
1145 # was supplied in the request.
1146 #
1147 # The value must be from 1 to 255
1148 # characters.
1149 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
1150 # set to HTTPS.
1151 # If set to false, the URL scheme of the redirected request
1152 # remains the same as that of the request.
1153 #
1154 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
1155 #
1156 # The default is set to false.
1157 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
1158 # that was supplied in the request.
1159 #
1160 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
1161 # supplied, the path of the original request is used for the redirect.
1162 #
1163 # The value must be from 1 to 1024 characters.
1164 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
1165 # the HttpRouteRuleMatch, retaining the remaining portion
1166 # of the URL before redirecting the request.
1167 #
1168 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
1169 # supplied, the path of the original request is used for the redirect.
1170 #
1171 # The value must be from 1 to 1024 characters.
1172 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
1173 #
1174 # Supported values are:
1175 #
1176 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
1177 # to 301.
1178 # - FOUND, which corresponds to 302.
1179 # - SEE_OTHER which corresponds to 303.
1180 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
1181 # method is retained.
1182 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
1183 # method is retained.
1184 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
1185 # URL is
1186 # removed before redirecting the request. If set to false, the
1187 # query portion of the original URL is retained.
1188 #
1189 # The default is set to false.
1190 },
1191 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
1192 # create the resource.
1193 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint of this resource. A hash of the contents stored in this object.
1194 # This field is used in optimistic locking. This field is ignored when
1195 # inserting a UrlMap. An up-to-date fingerprint must be provided
1196 # in order to update the UrlMap, otherwise the request will
1197 # fail with error 412 conditionNotMet.
1198 #
1199 # To see the latest fingerprint, make a get() request to
1200 # retrieve a UrlMap.
1201 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
1202 # for the selected backendService.
1203 #
1204 # The headerAction specified here take effect afterheaderAction specified under pathMatcher.
1205 #
1206 # headerAction is not supported for load balancers
1207 # that have
1208 # their loadBalancingScheme set to EXTERNAL.
1209 #
1210 # Not supported when the URL map is bound to a target gRPC proxy that
1211 # has validateForProxyless field set to true.
1212 # the request is passed along to the selected backendService.
1213 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
1214 { # Specification determining how headers are added to requests or responses.
1215 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
1216 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
1217 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
1218 # that already
1219 # exist for the header. If true, headerValue is set for the
1220 # header, discarding any values that were set for that header.
1221 #
1222 # The default value is true,
1223 # unless a variable is present in headerValue,
1224 # in which case the default value is false.
1225 # .
1226 },
1227 ],
1228 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
1229 # request before forwarding the request to the backendService.
1230 &quot;A String&quot;,
1231 ],
1232 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
1233 # client.
1234 { # Specification determining how headers are added to requests or responses.
1235 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
1236 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
1237 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
1238 # that already
1239 # exist for the header. If true, headerValue is set for the
1240 # header, discarding any values that were set for that header.
1241 #
1242 # The default value is true,
1243 # unless a variable is present in headerValue,
1244 # in which case the default value is false.
1245 # .
1246 },
1247 ],
1248 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
1249 # response before sending the response back to the client.
1250 &quot;A String&quot;,
1251 ],
1252 },
1253 &quot;hostRules&quot;: [ # The list of host rules to use against the URL.
1254 { # UrlMaps
1255 # A host-matching rule for a URL. If matched, will use the namedPathMatcher to select the BackendService.
1256 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
1257 # create the resource.
1258 &quot;hosts&quot;: [ # The list of host patterns to match. They must be valid hostnames with
1259 # optional port numbers in the format host:port.* matches any string of ([a-z0-9-.]*). In
1260 # that case, * must be the first character, and if followed by
1261 # anything, the immediate following character must be either -
1262 # or ..
1263 #
1264 # * based matching is not supported when the URL map is bound
1265 # to a target gRPC proxy that has the validateForProxyless field
1266 # set to true.
1267 &quot;A String&quot;,
1268 ],
1269 &quot;pathMatcher&quot;: &quot;A String&quot;, # The name of the PathMatcher to use to match the path portion
1270 # of the URL if the hostRule matches the URL&#x27;s host portion.
1271 },
1272 ],
1273 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
1274 # defined by the server.
1275 &quot;kind&quot;: &quot;compute#urlMap&quot;, # Output only. [Output Only] Type of the resource. Always compute#urlMaps for
1276 # url maps.
1277 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
1278 # The name must be 1-63 characters long, and comply withRFC1035.
1279 # Specifically, the name must be 1-63 characters long and match the regular
1280 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1281 # character must be a lowercase letter, and all following characters must
1282 # be a dash, lowercase letter, or digit, except the last character, which
1283 # cannot be a dash.
1284 &quot;pathMatchers&quot;: [ # The list of named PathMatchers to use against the URL.
1285 { # A matcher for the path portion of the URL. The BackendService
1286 # from the longest-matched rule will serve the URL. If no rule was matched, the
1287 # default service is used.
1288 &quot;defaultCustomErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # defaultCustomErrorResponsePolicy specifies how the Load
1289 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
1290 #
1291 # This policy takes
1292 # effect at the PathMatcher level and applies only when no
1293 # policy has been defined for the error code at lower levels likeRouteRule and PathRule within thisPathMatcher. If an error code does not have a policy defined
1294 # in defaultCustomErrorResponsePolicy, then a policy defined for
1295 # the error code in UrlMap.defaultCustomErrorResponsePolicy
1296 # takes effect.
1297 #
1298 # For example, consider a UrlMap with the following
1299 # configuration:
1300 #
1301 #
1302 # - UrlMap.defaultCustomErrorResponsePolicy is configured
1303 # with policies for 5xx and 4xx errors
1304 # - A RouteRule for /coming_soon/ is configured for the
1305 # error code 404.
1306 #
1307 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
1308 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
1309 # the policy in RouteRule.customErrorResponsePolicy takes
1310 # effect. If any of the requests in this example encounter a 500
1311 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
1312 #
1313 # When
1314 # used in conjunction withpathMatcher.defaultRouteAction.retryPolicy, retries take
1315 # precedence. Only once all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting
1316 # a retry, if load balancer is successful in reaching the
1317 # service, the defaultCustomErrorResponsePolicy is ignored and
1318 # the response from the service is returned to the client.
1319 #
1320 # defaultCustomErrorResponsePolicy is supported only for
1321 # global external Application Load Balancers.
1322 # backend service or backend bucket responds with an error.
1323 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
1324 #
1325 # In a given policy, if you specify rules for both a range of error codes
1326 # as well as rules for specific error codes then rules with specific error
1327 # codes have a higher priority. For example, assume that you configure a rule
1328 # for 401 (Un-authorized) code, and another for all 4 series
1329 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
1330 # However if the backend service returns a 403, the rule for4xx takes effect.
1331 { # Specifies the mapping between the response code that will be returned along
1332 # with the custom error content and the response code returned by the backend
1333 # service.
1334 &quot;matchResponseCodes&quot;: [ # Valid values include:
1335 #
1336 #
1337 # - A number between 400 and 599: For example
1338 # 401 or 503, in which case the load balancer
1339 # applies the policy if the error code exactly matches this value.
1340 # - 5xx: Load Balancer will apply the policy if the
1341 # backend service responds with any response code in the range of
1342 # 500 to 599.
1343 # - 4xx: Load
1344 # Balancer will apply the policy if the backend service responds with any
1345 # response code in the range of 400 to
1346 # 499.
1347 #
1348 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
1349 &quot;A String&quot;,
1350 ],
1351 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
1352 # error content. If overrideResponseCode is not supplied, the
1353 # same response code returned by the original backend bucket or backend
1354 # service is returned to the client.
1355 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
1356 #
1357 # path must start
1358 # with a leading slash. path cannot have trailing slashes.
1359 #
1360 # If the file is not available in backendBucket or the
1361 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
1362 #
1363 # The value must
1364 # be from 1 to 1024 characters
1365 },
1366 ],
1367 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
1368 # contains the custom error content. Examples are:
1369 #
1370 #
1371 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
1372 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
1373 # - global/backendBuckets/myBackendBucket
1374 #
1375 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
1376 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
1377 #
1378 # If load balancer cannot reach
1379 # the backendBucket, a simple Not Found Error will
1380 # be returned, with the original response code (oroverrideResponseCode if configured).
1381 #
1382 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
1383 },
1384 &quot;defaultRouteAction&quot;: { # defaultRouteAction takes effect when none of the
1385 # pathRules or routeRules match. The load balancer
1386 # performs advanced routing actions, such as URL rewrites and
1387 # header transformations, before forwarding the request to the
1388 # selected backend.
1389 #
1390 #
1391 # Only one of defaultUrlRedirect, defaultService
1392 # or defaultRouteAction.weightedBackendService can be set.
1393 #
1394 #
1395 # URL maps for classic Application Load Balancers only support
1396 # the urlRewrite action within a path matcher&#x27;sdefaultRouteAction.
1397 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
1398 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
1399 # property must be specified. This policy cannot be specified if any target
1400 # backend has Identity-Aware Proxy enabled.
1401 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
1402 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
1403 # header names can be specified. The cache is bypassed for all `cacheMode`
1404 # values.
1405 &quot;A String&quot;,
1406 ],
1407 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
1408 # on the backend type: for Backend Services, the complete request URI is
1409 # used; for Backend Buckets, the request URI is used without the protocol or
1410 # host, and only query parameters known to Cloud Storage are included.
1411 # Policy defined on Route Action.
1412 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
1413 # parameters will be included. Either specify `excludedQueryParameters`
1414 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
1415 # encoded and not treated as delimiters.
1416 #
1417 # Note: This field applies to routes that use backend services. Attempting
1418 # to set it on a route that points exclusively to Backend Buckets will
1419 # result in a configuration error. For routes that point to a Backend
1420 # Bucket, use `includedQueryParameters` to define which parameters should
1421 # be part of the cache key.
1422 &quot;A String&quot;,
1423 ],
1424 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
1425 #
1426 # Note: This setting is only applicable to routes that use a Backend
1427 # Service. It does not affect requests served by a Backend Bucket, as the
1428 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
1429 # it on a route that points exclusively to Backend Buckets will result in a
1430 # configuration error.
1431 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
1432 #
1433 # Note: This setting is only applicable to routes that use a Backend
1434 # Service. It does not affect requests served by a Backend Bucket, as the
1435 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
1436 # set on a route that points exclusively to Backend Buckets will result in
1437 # a configuration error.
1438 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
1439 # `includedQueryParameters` and `excludedQueryParameters`. If neither
1440 # is set, the entire query string will be included. If false, the query
1441 # string will be excluded from the cache key entirely.
1442 #
1443 # Note: This field applies to routes that use backend services. Attempting
1444 # to set it on a route that points exclusively to Backend Buckets will
1445 # result in a configuration error. For routes that point to a Backend
1446 # Bucket, use `includedQueryParameters` to define which parameters should
1447 # be part of the cache key.
1448 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
1449 # The name=value pair will be used in the cache key Cloud CDN generates.
1450 #
1451 # Note: This setting is only applicable to routes that use a Backend
1452 # Service. It does not affect requests served by a Backend Bucket.
1453 # Attempting to set it on a route that points exclusively to Backend
1454 # Buckets will result in a configuration error. Up to 5 cookie names can be
1455 # specified.
1456 &quot;A String&quot;,
1457 ],
1458 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
1459 &quot;A String&quot;,
1460 ],
1461 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
1462 # parameters will be excluded. Either specify `includedQueryParameters`
1463 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
1464 # encoded and not treated as delimiters.
1465 &quot;A String&quot;,
1466 ],
1467 },
1468 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
1469 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
1470 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
1471 # content. This is used to clamp the max-age (or Expires) value sent to the
1472 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
1473 # is used for the response max-age directive, along with a &quot;public&quot;
1474 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
1475 # clamps the max-age from the origin (if specified), or else sets the
1476 # response max-age directive to the lesser of the `clientTtl` and
1477 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
1478 # present. The maximum allowed value is 31,622,400s (1 year). If not
1479 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
1480 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
1481 # `USE_ORIGIN_HEADERS`.
1482 # as a count of seconds and fractions of seconds at nanosecond
1483 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
1484 # or &quot;month&quot;. Range is approximately 10,000 years.
1485 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
1486 # Durations less than one second are represented with a 0
1487 # `seconds` field and a positive `nanos` field. Must be from 0
1488 # to 999,999,999 inclusive.
1489 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
1490 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
1491 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
1492 },
1493 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
1494 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
1495 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
1496 # greater than that of `maxTtl`. When the `cacheMode` is set to
1497 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
1498 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
1499 # accessed objects may be evicted from the cache before the defined TTL. If
1500 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
1501 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
1502 # `USE_ORIGIN_HEADERS`.
1503 # as a count of seconds and fractions of seconds at nanosecond
1504 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
1505 # or &quot;month&quot;. Range is approximately 10,000 years.
1506 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
1507 # Durations less than one second are represented with a 0
1508 # `seconds` field and a positive `nanos` field. Must be from 0
1509 # to 999,999,999 inclusive.
1510 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
1511 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
1512 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
1513 },
1514 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
1515 # attempt to set a max-age or s-maxage higher than this, or an Expires header
1516 # more than `maxTtl` seconds in the future will be capped at the value of
1517 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
1518 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
1519 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
1520 # Infrequently accessed objects may be evicted from the cache before the
1521 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
1522 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
1523 # mode.
1524 # as a count of seconds and fractions of seconds at nanosecond
1525 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
1526 # or &quot;month&quot;. Range is approximately 10,000 years.
1527 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
1528 # Durations less than one second are represented with a 0
1529 # `seconds` field and a positive `nanos` field. Must be from 0
1530 # to 999,999,999 inclusive.
1531 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
1532 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
1533 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
1534 },
1535 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
1536 # to apply fine-grained caching for common errors or redirects.
1537 # This can reduce the load on your origin and improve end-user
1538 # experience by reducing response latency.
1539 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
1540 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
1541 # the specified response code that lack any Cache-Control, Expires, or
1542 # Pragma: no-cache directives. When the `cacheMode` is set to
1543 # `FORCE_CACHE_ALL`, negative caching applies to all responses
1544 # with the specified response code, and overrides any caching headers. By
1545 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
1546 #
1547 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
1548 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
1549 # * 405 (Method Not Found), 501 (Not Implemented): 60s
1550 #
1551 # These defaults can be overridden in `negativeCachingPolicy`.
1552 # If not specified, Cloud CDN applies negative caching by default.
1553 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
1554 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
1555 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
1556 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
1557 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
1558 # all response codes that you wish to cache. Cloud CDN will not apply any
1559 # default negative caching when a policy exists.
1560 { # Specify CDN TTLs for response error codes.
1561 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
1562 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
1563 # specified as values, and you cannot specify a status code more than
1564 # once.
1565 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
1566 # corresponding status code.
1567 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
1568 # objects may be evicted from the cache before the defined TTL.
1569 # as a count of seconds and fractions of seconds at nanosecond
1570 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
1571 # or &quot;month&quot;. Range is approximately 10,000 years.
1572 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
1573 # Durations less than one second are represented with a 0
1574 # `seconds` field and a positive `nanos` field. Must be from 0
1575 # to 999,999,999 inclusive.
1576 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
1577 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
1578 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
1579 },
1580 },
1581 ],
1582 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
1583 # requests into a small number of requests to the origin. If not specified,
1584 # Cloud CDN applies request coalescing by default.
1585 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
1586 # content with the origin, or when an error is encountered when refreshing
1587 # the cache.
1588 # This setting defines the default &quot;max-stale&quot; duration for any cached
1589 # responses that do not specify a max-stale directive. Stale responses that
1590 # exceed the TTL configured here will not be served. The default limit
1591 # (max-stale) is 86400s (1 day), which will allow stale content to be
1592 # served up to this limit beyond the max-age (or s-maxage) of a cached
1593 # response.
1594 # The maximum allowed value is 604800 (1 week).
1595 # Set this to zero (0) to disable serve-while-stale.
1596 # as a count of seconds and fractions of seconds at nanosecond
1597 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
1598 # or &quot;month&quot;. Range is approximately 10,000 years.
1599 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
1600 # Durations less than one second are represented with a 0
1601 # `seconds` field and a positive `nanos` field. Must be from 0
1602 # to 999,999,999 inclusive.
1603 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
1604 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
1605 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
1606 },
1607 },
1608 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
1609 # information about the W3C recommendation for cross-origin resource sharing
1610 # (CORS), see Fetch API Living
1611 # Standard.
1612 #
1613 # Not supported when the URL map is bound to a target gRPC proxy.
1614 # information about the W3C recommendation for cross-origin resource sharing
1615 # (CORS), see Fetch API Living
1616 # Standard.
1617 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
1618 # indicates that
1619 # the actual request can include user credentials. This field translates to
1620 # the Access-Control-Allow-Credentials header.
1621 #
1622 # Default is false.
1623 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
1624 # header.
1625 &quot;A String&quot;,
1626 ],
1627 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
1628 # header.
1629 &quot;A String&quot;,
1630 ],
1631 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
1632 # more information, see regular expression syntax.
1633 #
1634 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
1635 #
1636 # Regular expressions can only be used when the loadBalancingScheme is
1637 # set to INTERNAL_SELF_MANAGED.
1638 &quot;A String&quot;,
1639 ],
1640 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
1641 #
1642 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
1643 &quot;A String&quot;,
1644 ],
1645 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
1646 # The default value is false, which indicates that the CORS
1647 # policy is in effect.
1648 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
1649 # header.
1650 &quot;A String&quot;,
1651 ],
1652 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
1653 # seconds. This field translates to the Access-Control-Max-Age
1654 # header.
1655 },
1656 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
1657 # the resiliency of clients to backend service failure. As part of fault
1658 # injection, when clients send requests to a backend service, delays can be
1659 # introduced by a load balancer on a percentage of requests before sending
1660 # those requests to the backend service. Similarly requests from clients can
1661 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
1662 # that are configured with a fault_injection_policy if:
1663 # 1. The traffic is generated by fault injection AND
1664 # 2. The fault injection is not a delay fault injection.
1665 # Fault injection is not supported with the classic Application Load Balancer
1666 # . To see which load balancers support fault injection,
1667 # see Load
1668 # balancing: Routing and traffic management features.
1669 # the resiliency of clients to backend service failure. As part of fault
1670 # injection, when clients send requests to a backend service, delays can be
1671 # introduced by the load balancer on a percentage of requests before sending
1672 # those request to the backend service. Similarly requests from clients can be
1673 # aborted by the load balancer for a percentage of requests.
1674 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
1675 # injection.
1676 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
1677 #
1678 # The value must be from 200 to 599 inclusive.
1679 #
1680 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
1681 # according to this
1682 # mapping table. HTTP status 200 is mapped to gRPC status
1683 # UNKNOWN. Injecting an OK status is currently not supported by
1684 # Traffic Director.
1685 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
1686 # that is aborted as part of fault injection.
1687 #
1688 # The value must be from 0.0 to 100.0 inclusive.
1689 },
1690 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
1691 # injection, before being sent to a backend service.
1692 # request to the backend service as part of fault injection.
1693 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
1694 # as a count of seconds and fractions of seconds at nanosecond
1695 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
1696 # or &quot;month&quot;. Range is approximately 10,000 years.
1697 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
1698 # Durations less than one second are represented with a 0
1699 # `seconds` field and a positive `nanos` field. Must be from 0
1700 # to 999,999,999 inclusive.
1701 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
1702 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
1703 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
1704 },
1705 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
1706 # which a delay is introduced as part of fault injection.
1707 #
1708 # The value must be from 0.0 to 100.0 inclusive.
1709 },
1710 },
1711 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
1712 # Unlike the timeout field where the timeout duration starts
1713 # from the time the request has been fully processed (known as*end-of-stream*),
1714 # the duration in this field is computed from the beginning of the stream
1715 # until the response has been processed, including all retries. A
1716 # stream that does not complete in this duration is closed.
1717 #
1718 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
1719 # with the route.
1720 #
1721 # This field is only allowed if the Url map is used with backend services
1722 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
1723 # as a count of seconds and fractions of seconds at nanosecond
1724 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
1725 # or &quot;month&quot;. Range is approximately 10,000 years.
1726 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
1727 # Durations less than one second are represented with a 0
1728 # `seconds` field and a positive `nanos` field. Must be from 0
1729 # to 999,999,999 inclusive.
1730 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
1731 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
1732 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
1733 },
1734 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
1735 # are shadowed to a separate mirrored backend service. The load balancer does
1736 # not wait for responses from the shadow service. Before sending traffic
1737 # to the shadow service, the host / authority header is suffixed with-shadow.
1738 #
1739 # Not supported when the URL map is bound to a target gRPC proxy that
1740 # has the validateForProxyless field set to true.
1741 # are shadowed to a separate mirrored backend service. The load balancer
1742 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
1743 # to the shadow service, the host or authority header is suffixed with-shadow.
1744 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
1745 # mirrored to.
1746 #
1747 # The backend service configured for a mirroring
1748 # policy must reference backends that are of the same type as the original
1749 # backend service matched in the URL map.
1750 #
1751 # Serverless NEG backends are not currently supported as a mirrored
1752 # backend service.
1753 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
1754 },
1755 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
1756 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
1757 # If not specified, defaults to 1.
1758 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
1759 #
1760 # If not specified, will use the timeout set in theHttpRouteAction field.
1761 # If timeout in the HttpRouteAction field is not set, this field
1762 # uses the largest timeout
1763 # among all backend services associated with the route.
1764 #
1765 # Not supported when the URL map is bound to a target gRPC proxy that
1766 # has the validateForProxyless field set to true.
1767 # as a count of seconds and fractions of seconds at nanosecond
1768 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
1769 # or &quot;month&quot;. Range is approximately 10,000 years.
1770 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
1771 # Durations less than one second are represented with a 0
1772 # `seconds` field and a positive `nanos` field. Must be from 0
1773 # to 999,999,999 inclusive.
1774 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
1775 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
1776 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
1777 },
1778 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
1779 # values are:
1780 #
1781 # - 5xx: retry is attempted if the instance or endpoint
1782 # responds with any 5xx response code, or if the instance or
1783 # endpoint does not respond at all. For example, disconnects, reset, read
1784 # timeout, connection failure, and refused streams.
1785 # - gateway-error: Similar to 5xx, but only
1786 # applies to response codes 502, 503 or504.
1787 # - connect-failure: a retry is attempted on failures
1788 # connecting to the instance or endpoint. For example, connection
1789 # timeouts.
1790 # - retriable-4xx: a retry is attempted if the instance
1791 # or endpoint responds with a 4xx response code.
1792 # The only error that you can retry is error code 409.
1793 # - refused-stream: a retry is attempted if the instance
1794 # or endpoint resets the stream with a REFUSED_STREAM error
1795 # code. This reset type indicates that it is safe to retry.
1796 # - cancelled: a retry is attempted if the gRPC status
1797 # code in the response header is set to cancelled.
1798 # - deadline-exceeded: a retry is attempted if the gRPC
1799 # status code in the response header is set todeadline-exceeded.
1800 # - internal: a retry is attempted if the gRPC
1801 # status code in the response header is set tointernal.
1802 # - resource-exhausted: a retry is attempted if the gRPC
1803 # status code in the response header is set toresource-exhausted.
1804 # - unavailable: a retry is attempted if the gRPC
1805 # status code in the response header is set tounavailable.
1806 #
1807 # Only the following codes are supported when the URL map is bound to
1808 # target gRPC proxy that has validateForProxyless field set to true.
1809 #
1810 # - cancelled
1811 # - deadline-exceeded
1812 # - internal
1813 # - resource-exhausted
1814 # - unavailable
1815 &quot;A String&quot;,
1816 ],
1817 },
1818 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
1819 # time the request has been fully processed (known as *end-of-stream*)
1820 # up until the response has been processed. Timeout includes
1821 # all retries.
1822 #
1823 # If not specified, this field uses the largest timeout among all backend
1824 # services associated with the route.
1825 #
1826 # Not supported when the URL map is bound to a target gRPC proxy that
1827 # has validateForProxyless field set to true.
1828 # as a count of seconds and fractions of seconds at nanosecond
1829 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
1830 # or &quot;month&quot;. Range is approximately 10,000 years.
1831 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
1832 # Durations less than one second are represented with a 0
1833 # `seconds` field and a positive `nanos` field. Must be from 0
1834 # to 999,999,999 inclusive.
1835 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
1836 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
1837 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
1838 },
1839 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
1840 # to the matched service.
1841 #
1842 # urlRewrite is the only action supported in UrlMaps
1843 # for classic Application Load Balancers.
1844 #
1845 # Not supported when the URL map is bound to a target gRPC proxy that
1846 # has the validateForProxyless field set to true.
1847 # backend service.
1848 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
1849 # host header is replaced with contents of hostRewrite.
1850 #
1851 # The value must be from 1 to 255 characters.
1852 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
1853 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
1854 #
1855 # The value must be from 1 to 1024 characters.
1856 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
1857 # header) using the HTTP template syntax.
1858 #
1859 # A corresponding
1860 # path_template_match must be specified. Any template variables must exist in
1861 # the path_template_match field.
1862 #
1863 #
1864 # - -At least one variable must be specified in the path_template_match
1865 # field
1866 # - You can omit variables from the rewritten URL
1867 # - The * and ** operators cannot be matched
1868 # unless they have a corresponding variable name - e.g.
1869 # {format=*} or {var=**}.
1870 #
1871 # For example, a path_template_match of /static/{format=**}
1872 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
1873 # rewrite, so that /{country}/{format}/{suffix=**} can be
1874 # rewritten as /content/{format}/{country}/{suffix}.
1875 #
1876 # At least
1877 # one non-empty routeRules[].matchRules[].path_template_match is
1878 # required.
1879 #
1880 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
1881 },
1882 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
1883 # occurs. The weights determine the fraction of traffic that flows to
1884 # their corresponding backend service. If all traffic needs to
1885 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
1886 #
1887 # After a backend service is identified and before forwarding
1888 # the request to
1889 # the backend service, advanced routing actions such as URL rewrites and
1890 # header transformations are applied depending on additional settings
1891 # specified in this HttpRouteAction.
1892 { # In contrast to a single BackendService in
1893 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
1894 # multiple backend services. The volume of traffic for each
1895 # backend service is proportional to the weight specified
1896 # in each WeightedBackendService
1897 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
1898 # resource. Before
1899 # forwarding the request to backendService, the load balancer
1900 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
1901 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
1902 # effect for the selected backendService.
1903 #
1904 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
1905 #
1906 # headerAction is not supported for load balancers that have
1907 # their loadBalancingScheme set to EXTERNAL.
1908 #
1909 # Not supported when the URL map is bound to a target gRPC proxy that
1910 # has validateForProxyless field set to true.
1911 # the request is passed along to the selected backendService.
1912 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
1913 { # Specification determining how headers are added to requests or responses.
1914 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
1915 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
1916 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
1917 # that already
1918 # exist for the header. If true, headerValue is set for the
1919 # header, discarding any values that were set for that header.
1920 #
1921 # The default value is true,
1922 # unless a variable is present in headerValue,
1923 # in which case the default value is false.
1924 # .
1925 },
1926 ],
1927 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
1928 # request before forwarding the request to the backendService.
1929 &quot;A String&quot;,
1930 ],
1931 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
1932 # client.
1933 { # Specification determining how headers are added to requests or responses.
1934 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
1935 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
1936 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
1937 # that already
1938 # exist for the header. If true, headerValue is set for the
1939 # header, discarding any values that were set for that header.
1940 #
1941 # The default value is true,
1942 # unless a variable is present in headerValue,
1943 # in which case the default value is false.
1944 # .
1945 },
1946 ],
1947 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
1948 # response before sending the response back to the client.
1949 &quot;A String&quot;,
1950 ],
1951 },
1952 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
1953 # computed asweight / (sum of all weightedBackendService weights in routeAction).
1954 #
1955 # The selection of a backend service is determined only for new traffic.
1956 # Once a user&#x27;s request has been directed to a backend service,
1957 # subsequent requests are sent to the same backend service as
1958 # determined by the backend service&#x27;s session affinity policy.
1959 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
1960 # splitting. If you do, the weighted traffic splitting configuration takes
1961 # precedence.
1962 #
1963 # The value must be from 0 to 1000.
1964 },
1965 ],
1966 },
1967 &quot;defaultService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource. This
1968 # URL is used if none of the pathRules orrouteRules defined by this PathMatcher are
1969 # matched. For example, the
1970 # following are all valid URLs to a BackendService resource:
1971 #
1972 #
1973 # - https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService
1974 # - compute/v1/projects/project/global/backendServices/backendService
1975 # - global/backendServices/backendService
1976 #
1977 #
1978 # If defaultRouteAction is also specified, advanced
1979 # routing actions, such as URL rewrites, take effect before sending the
1980 # request to the backend.
1981 #
1982 #
1983 # Only one of defaultUrlRedirect, defaultService
1984 # or defaultRouteAction.weightedBackendService can be set.
1985 #
1986 #
1987 # Authorization requires one or more of the following Google IAM permissions on the
1988 # specified resource default_service:
1989 #
1990 #
1991 # - compute.backendBuckets.use
1992 # - compute.backendServices.use
1993 &quot;defaultUrlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When none of the specified pathRules orrouteRules match, the request is redirected to a URL specified
1994 # by defaultUrlRedirect.
1995 #
1996 #
1997 # Only one of defaultUrlRedirect, defaultService
1998 # or defaultRouteAction.weightedBackendService can be set.
1999 #
2000 #
2001 # Not supported when the URL map is bound to a target gRPC proxy.
2002 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
2003 # was supplied in the request.
2004 #
2005 # The value must be from 1 to 255
2006 # characters.
2007 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
2008 # set to HTTPS.
2009 # If set to false, the URL scheme of the redirected request
2010 # remains the same as that of the request.
2011 #
2012 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
2013 #
2014 # The default is set to false.
2015 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
2016 # that was supplied in the request.
2017 #
2018 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
2019 # supplied, the path of the original request is used for the redirect.
2020 #
2021 # The value must be from 1 to 1024 characters.
2022 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
2023 # the HttpRouteRuleMatch, retaining the remaining portion
2024 # of the URL before redirecting the request.
2025 #
2026 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
2027 # supplied, the path of the original request is used for the redirect.
2028 #
2029 # The value must be from 1 to 1024 characters.
2030 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
2031 #
2032 # Supported values are:
2033 #
2034 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
2035 # to 301.
2036 # - FOUND, which corresponds to 302.
2037 # - SEE_OTHER which corresponds to 303.
2038 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
2039 # method is retained.
2040 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
2041 # method is retained.
2042 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
2043 # URL is
2044 # removed before redirecting the request. If set to false, the
2045 # query portion of the original URL is retained.
2046 #
2047 # The default is set to false.
2048 },
2049 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
2050 # create the resource.
2051 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
2052 # for the selected backend service.
2053 #
2054 # HeaderAction specified here are applied after the matchingHttpRouteRule HeaderAction and before theHeaderAction in the UrlMap
2055 #
2056 # HeaderAction is not supported for load balancers
2057 # that have
2058 # their loadBalancingScheme set to EXTERNAL.
2059 #
2060 # Not supported when the URL map is bound to a target gRPC proxy that
2061 # has validateForProxyless field set to true.
2062 # the request is passed along to the selected backendService.
2063 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
2064 { # Specification determining how headers are added to requests or responses.
2065 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
2066 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
2067 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
2068 # that already
2069 # exist for the header. If true, headerValue is set for the
2070 # header, discarding any values that were set for that header.
2071 #
2072 # The default value is true,
2073 # unless a variable is present in headerValue,
2074 # in which case the default value is false.
2075 # .
2076 },
2077 ],
2078 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
2079 # request before forwarding the request to the backendService.
2080 &quot;A String&quot;,
2081 ],
2082 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
2083 # client.
2084 { # Specification determining how headers are added to requests or responses.
2085 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
2086 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
2087 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
2088 # that already
2089 # exist for the header. If true, headerValue is set for the
2090 # header, discarding any values that were set for that header.
2091 #
2092 # The default value is true,
2093 # unless a variable is present in headerValue,
2094 # in which case the default value is false.
2095 # .
2096 },
2097 ],
2098 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
2099 # response before sending the response back to the client.
2100 &quot;A String&quot;,
2101 ],
2102 },
2103 &quot;name&quot;: &quot;A String&quot;, # The name to which this PathMatcher is referred by theHostRule.
2104 &quot;pathRules&quot;: [ # The list of path rules. Use this list instead of routeRules
2105 # when routing based on simple path matching is all that&#x27;s required. A path
2106 # rule can only include a wildcard character (*) after a
2107 # forward slash character (&quot;/&quot;).
2108 #
2109 # The order by which path rules are specified does not matter.
2110 # Matches are always done on the longest-path-first basis.
2111 #
2112 # For example: a pathRule with a path /a/b/c/* will match
2113 # before /a/b/* irrespective of the order in which those paths appear in this
2114 # list.
2115 #
2116 # Within a given pathMatcher, only one ofpathRules or routeRules must be set.
2117 { # A path-matching rule for a URL. If matched, will use the specifiedBackendService to handle the traffic arriving at this URL.
2118 &quot;customErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # customErrorResponsePolicy specifies how the Load
2119 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
2120 #
2121 # If a policy for an
2122 # error code is not configured for the PathRule, a policy for
2123 # the error code configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If
2124 # one is not specified inpathMatcher.defaultCustomErrorResponsePolicy, the policy
2125 # configured in UrlMap.defaultCustomErrorResponsePolicy takes
2126 # effect.
2127 #
2128 # For example, consider a UrlMap with the following configuration:
2129 #
2130 #
2131 # - UrlMap.defaultCustomErrorResponsePolicy are configured
2132 # with policies for 5xx and 4xx errors
2133 # - A PathRule for /coming_soon/ is configured for the error
2134 # code 404.
2135 #
2136 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
2137 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
2138 # the policy in PathRule.customErrorResponsePolicy takes
2139 # effect. If any of the requests in this example encounter a 500
2140 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
2141 #
2142 # customErrorResponsePolicy is supported only for
2143 # global external Application Load Balancers.
2144 # backend service or backend bucket responds with an error.
2145 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
2146 #
2147 # In a given policy, if you specify rules for both a range of error codes
2148 # as well as rules for specific error codes then rules with specific error
2149 # codes have a higher priority. For example, assume that you configure a rule
2150 # for 401 (Un-authorized) code, and another for all 4 series
2151 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
2152 # However if the backend service returns a 403, the rule for4xx takes effect.
2153 { # Specifies the mapping between the response code that will be returned along
2154 # with the custom error content and the response code returned by the backend
2155 # service.
2156 &quot;matchResponseCodes&quot;: [ # Valid values include:
2157 #
2158 #
2159 # - A number between 400 and 599: For example
2160 # 401 or 503, in which case the load balancer
2161 # applies the policy if the error code exactly matches this value.
2162 # - 5xx: Load Balancer will apply the policy if the
2163 # backend service responds with any response code in the range of
2164 # 500 to 599.
2165 # - 4xx: Load
2166 # Balancer will apply the policy if the backend service responds with any
2167 # response code in the range of 400 to
2168 # 499.
2169 #
2170 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
2171 &quot;A String&quot;,
2172 ],
2173 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
2174 # error content. If overrideResponseCode is not supplied, the
2175 # same response code returned by the original backend bucket or backend
2176 # service is returned to the client.
2177 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
2178 #
2179 # path must start
2180 # with a leading slash. path cannot have trailing slashes.
2181 #
2182 # If the file is not available in backendBucket or the
2183 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
2184 #
2185 # The value must
2186 # be from 1 to 1024 characters
2187 },
2188 ],
2189 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
2190 # contains the custom error content. Examples are:
2191 #
2192 #
2193 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
2194 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
2195 # - global/backendBuckets/myBackendBucket
2196 #
2197 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
2198 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
2199 #
2200 # If load balancer cannot reach
2201 # the backendBucket, a simple Not Found Error will
2202 # be returned, with the original response code (oroverrideResponseCode if configured).
2203 #
2204 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
2205 },
2206 &quot;paths&quot;: [ # The list of path patterns to match. Each must start with /
2207 # and the only place a * is allowed is at the end following
2208 # a /. The string fed to the path matcher does not include
2209 # any text after the first ? or #, and
2210 # those chars are not allowed here.
2211 &quot;A String&quot;,
2212 ],
2213 &quot;routeAction&quot;: { # In response to a matching path, the load balancer
2214 # performs advanced routing actions, such as URL rewrites and header
2215 # transformations, before forwarding the request to the selected
2216 # backend.
2217 #
2218 #
2219 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
2220 #
2221 #
2222 # URL maps for classic Application Load Balancers only support
2223 # the urlRewrite action within a path rule&#x27;srouteAction.
2224 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
2225 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
2226 # property must be specified. This policy cannot be specified if any target
2227 # backend has Identity-Aware Proxy enabled.
2228 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
2229 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
2230 # header names can be specified. The cache is bypassed for all `cacheMode`
2231 # values.
2232 &quot;A String&quot;,
2233 ],
2234 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
2235 # on the backend type: for Backend Services, the complete request URI is
2236 # used; for Backend Buckets, the request URI is used without the protocol or
2237 # host, and only query parameters known to Cloud Storage are included.
2238 # Policy defined on Route Action.
2239 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
2240 # parameters will be included. Either specify `excludedQueryParameters`
2241 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
2242 # encoded and not treated as delimiters.
2243 #
2244 # Note: This field applies to routes that use backend services. Attempting
2245 # to set it on a route that points exclusively to Backend Buckets will
2246 # result in a configuration error. For routes that point to a Backend
2247 # Bucket, use `includedQueryParameters` to define which parameters should
2248 # be part of the cache key.
2249 &quot;A String&quot;,
2250 ],
2251 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
2252 #
2253 # Note: This setting is only applicable to routes that use a Backend
2254 # Service. It does not affect requests served by a Backend Bucket, as the
2255 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
2256 # it on a route that points exclusively to Backend Buckets will result in a
2257 # configuration error.
2258 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
2259 #
2260 # Note: This setting is only applicable to routes that use a Backend
2261 # Service. It does not affect requests served by a Backend Bucket, as the
2262 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
2263 # set on a route that points exclusively to Backend Buckets will result in
2264 # a configuration error.
2265 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
2266 # `includedQueryParameters` and `excludedQueryParameters`. If neither
2267 # is set, the entire query string will be included. If false, the query
2268 # string will be excluded from the cache key entirely.
2269 #
2270 # Note: This field applies to routes that use backend services. Attempting
2271 # to set it on a route that points exclusively to Backend Buckets will
2272 # result in a configuration error. For routes that point to a Backend
2273 # Bucket, use `includedQueryParameters` to define which parameters should
2274 # be part of the cache key.
2275 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
2276 # The name=value pair will be used in the cache key Cloud CDN generates.
2277 #
2278 # Note: This setting is only applicable to routes that use a Backend
2279 # Service. It does not affect requests served by a Backend Bucket.
2280 # Attempting to set it on a route that points exclusively to Backend
2281 # Buckets will result in a configuration error. Up to 5 cookie names can be
2282 # specified.
2283 &quot;A String&quot;,
2284 ],
2285 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
2286 &quot;A String&quot;,
2287 ],
2288 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
2289 # parameters will be excluded. Either specify `includedQueryParameters`
2290 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
2291 # encoded and not treated as delimiters.
2292 &quot;A String&quot;,
2293 ],
2294 },
2295 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
2296 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
2297 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
2298 # content. This is used to clamp the max-age (or Expires) value sent to the
2299 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
2300 # is used for the response max-age directive, along with a &quot;public&quot;
2301 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
2302 # clamps the max-age from the origin (if specified), or else sets the
2303 # response max-age directive to the lesser of the `clientTtl` and
2304 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
2305 # present. The maximum allowed value is 31,622,400s (1 year). If not
2306 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
2307 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
2308 # `USE_ORIGIN_HEADERS`.
2309 # as a count of seconds and fractions of seconds at nanosecond
2310 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
2311 # or &quot;month&quot;. Range is approximately 10,000 years.
2312 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
2313 # Durations less than one second are represented with a 0
2314 # `seconds` field and a positive `nanos` field. Must be from 0
2315 # to 999,999,999 inclusive.
2316 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
2317 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
2318 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
2319 },
2320 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
2321 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
2322 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
2323 # greater than that of `maxTtl`. When the `cacheMode` is set to
2324 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
2325 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
2326 # accessed objects may be evicted from the cache before the defined TTL. If
2327 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
2328 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
2329 # `USE_ORIGIN_HEADERS`.
2330 # as a count of seconds and fractions of seconds at nanosecond
2331 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
2332 # or &quot;month&quot;. Range is approximately 10,000 years.
2333 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
2334 # Durations less than one second are represented with a 0
2335 # `seconds` field and a positive `nanos` field. Must be from 0
2336 # to 999,999,999 inclusive.
2337 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
2338 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
2339 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
2340 },
2341 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
2342 # attempt to set a max-age or s-maxage higher than this, or an Expires header
2343 # more than `maxTtl` seconds in the future will be capped at the value of
2344 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
2345 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
2346 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
2347 # Infrequently accessed objects may be evicted from the cache before the
2348 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
2349 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
2350 # mode.
2351 # as a count of seconds and fractions of seconds at nanosecond
2352 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
2353 # or &quot;month&quot;. Range is approximately 10,000 years.
2354 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
2355 # Durations less than one second are represented with a 0
2356 # `seconds` field and a positive `nanos` field. Must be from 0
2357 # to 999,999,999 inclusive.
2358 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
2359 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
2360 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
2361 },
2362 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
2363 # to apply fine-grained caching for common errors or redirects.
2364 # This can reduce the load on your origin and improve end-user
2365 # experience by reducing response latency.
2366 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
2367 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
2368 # the specified response code that lack any Cache-Control, Expires, or
2369 # Pragma: no-cache directives. When the `cacheMode` is set to
2370 # `FORCE_CACHE_ALL`, negative caching applies to all responses
2371 # with the specified response code, and overrides any caching headers. By
2372 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
2373 #
2374 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
2375 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
2376 # * 405 (Method Not Found), 501 (Not Implemented): 60s
2377 #
2378 # These defaults can be overridden in `negativeCachingPolicy`.
2379 # If not specified, Cloud CDN applies negative caching by default.
2380 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
2381 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
2382 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
2383 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
2384 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
2385 # all response codes that you wish to cache. Cloud CDN will not apply any
2386 # default negative caching when a policy exists.
2387 { # Specify CDN TTLs for response error codes.
2388 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
2389 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
2390 # specified as values, and you cannot specify a status code more than
2391 # once.
2392 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
2393 # corresponding status code.
2394 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
2395 # objects may be evicted from the cache before the defined TTL.
2396 # as a count of seconds and fractions of seconds at nanosecond
2397 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
2398 # or &quot;month&quot;. Range is approximately 10,000 years.
2399 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
2400 # Durations less than one second are represented with a 0
2401 # `seconds` field and a positive `nanos` field. Must be from 0
2402 # to 999,999,999 inclusive.
2403 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
2404 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
2405 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
2406 },
2407 },
2408 ],
2409 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
2410 # requests into a small number of requests to the origin. If not specified,
2411 # Cloud CDN applies request coalescing by default.
2412 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
2413 # content with the origin, or when an error is encountered when refreshing
2414 # the cache.
2415 # This setting defines the default &quot;max-stale&quot; duration for any cached
2416 # responses that do not specify a max-stale directive. Stale responses that
2417 # exceed the TTL configured here will not be served. The default limit
2418 # (max-stale) is 86400s (1 day), which will allow stale content to be
2419 # served up to this limit beyond the max-age (or s-maxage) of a cached
2420 # response.
2421 # The maximum allowed value is 604800 (1 week).
2422 # Set this to zero (0) to disable serve-while-stale.
2423 # as a count of seconds and fractions of seconds at nanosecond
2424 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
2425 # or &quot;month&quot;. Range is approximately 10,000 years.
2426 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
2427 # Durations less than one second are represented with a 0
2428 # `seconds` field and a positive `nanos` field. Must be from 0
2429 # to 999,999,999 inclusive.
2430 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
2431 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
2432 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
2433 },
2434 },
2435 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
2436 # information about the W3C recommendation for cross-origin resource sharing
2437 # (CORS), see Fetch API Living
2438 # Standard.
2439 #
2440 # Not supported when the URL map is bound to a target gRPC proxy.
2441 # information about the W3C recommendation for cross-origin resource sharing
2442 # (CORS), see Fetch API Living
2443 # Standard.
2444 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
2445 # indicates that
2446 # the actual request can include user credentials. This field translates to
2447 # the Access-Control-Allow-Credentials header.
2448 #
2449 # Default is false.
2450 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
2451 # header.
2452 &quot;A String&quot;,
2453 ],
2454 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
2455 # header.
2456 &quot;A String&quot;,
2457 ],
2458 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
2459 # more information, see regular expression syntax.
2460 #
2461 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
2462 #
2463 # Regular expressions can only be used when the loadBalancingScheme is
2464 # set to INTERNAL_SELF_MANAGED.
2465 &quot;A String&quot;,
2466 ],
2467 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
2468 #
2469 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
2470 &quot;A String&quot;,
2471 ],
2472 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
2473 # The default value is false, which indicates that the CORS
2474 # policy is in effect.
2475 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
2476 # header.
2477 &quot;A String&quot;,
2478 ],
2479 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
2480 # seconds. This field translates to the Access-Control-Max-Age
2481 # header.
2482 },
2483 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
2484 # the resiliency of clients to backend service failure. As part of fault
2485 # injection, when clients send requests to a backend service, delays can be
2486 # introduced by a load balancer on a percentage of requests before sending
2487 # those requests to the backend service. Similarly requests from clients can
2488 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
2489 # that are configured with a fault_injection_policy if:
2490 # 1. The traffic is generated by fault injection AND
2491 # 2. The fault injection is not a delay fault injection.
2492 # Fault injection is not supported with the classic Application Load Balancer
2493 # . To see which load balancers support fault injection,
2494 # see Load
2495 # balancing: Routing and traffic management features.
2496 # the resiliency of clients to backend service failure. As part of fault
2497 # injection, when clients send requests to a backend service, delays can be
2498 # introduced by the load balancer on a percentage of requests before sending
2499 # those request to the backend service. Similarly requests from clients can be
2500 # aborted by the load balancer for a percentage of requests.
2501 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
2502 # injection.
2503 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
2504 #
2505 # The value must be from 200 to 599 inclusive.
2506 #
2507 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
2508 # according to this
2509 # mapping table. HTTP status 200 is mapped to gRPC status
2510 # UNKNOWN. Injecting an OK status is currently not supported by
2511 # Traffic Director.
2512 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
2513 # that is aborted as part of fault injection.
2514 #
2515 # The value must be from 0.0 to 100.0 inclusive.
2516 },
2517 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
2518 # injection, before being sent to a backend service.
2519 # request to the backend service as part of fault injection.
2520 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
2521 # as a count of seconds and fractions of seconds at nanosecond
2522 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
2523 # or &quot;month&quot;. Range is approximately 10,000 years.
2524 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
2525 # Durations less than one second are represented with a 0
2526 # `seconds` field and a positive `nanos` field. Must be from 0
2527 # to 999,999,999 inclusive.
2528 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
2529 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
2530 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
2531 },
2532 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
2533 # which a delay is introduced as part of fault injection.
2534 #
2535 # The value must be from 0.0 to 100.0 inclusive.
2536 },
2537 },
2538 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
2539 # Unlike the timeout field where the timeout duration starts
2540 # from the time the request has been fully processed (known as*end-of-stream*),
2541 # the duration in this field is computed from the beginning of the stream
2542 # until the response has been processed, including all retries. A
2543 # stream that does not complete in this duration is closed.
2544 #
2545 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
2546 # with the route.
2547 #
2548 # This field is only allowed if the Url map is used with backend services
2549 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
2550 # as a count of seconds and fractions of seconds at nanosecond
2551 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
2552 # or &quot;month&quot;. Range is approximately 10,000 years.
2553 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
2554 # Durations less than one second are represented with a 0
2555 # `seconds` field and a positive `nanos` field. Must be from 0
2556 # to 999,999,999 inclusive.
2557 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
2558 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
2559 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
2560 },
2561 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
2562 # are shadowed to a separate mirrored backend service. The load balancer does
2563 # not wait for responses from the shadow service. Before sending traffic
2564 # to the shadow service, the host / authority header is suffixed with-shadow.
2565 #
2566 # Not supported when the URL map is bound to a target gRPC proxy that
2567 # has the validateForProxyless field set to true.
2568 # are shadowed to a separate mirrored backend service. The load balancer
2569 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
2570 # to the shadow service, the host or authority header is suffixed with-shadow.
2571 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
2572 # mirrored to.
2573 #
2574 # The backend service configured for a mirroring
2575 # policy must reference backends that are of the same type as the original
2576 # backend service matched in the URL map.
2577 #
2578 # Serverless NEG backends are not currently supported as a mirrored
2579 # backend service.
2580 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
2581 },
2582 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
2583 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
2584 # If not specified, defaults to 1.
2585 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
2586 #
2587 # If not specified, will use the timeout set in theHttpRouteAction field.
2588 # If timeout in the HttpRouteAction field is not set, this field
2589 # uses the largest timeout
2590 # among all backend services associated with the route.
2591 #
2592 # Not supported when the URL map is bound to a target gRPC proxy that
2593 # has the validateForProxyless field set to true.
2594 # as a count of seconds and fractions of seconds at nanosecond
2595 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
2596 # or &quot;month&quot;. Range is approximately 10,000 years.
2597 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
2598 # Durations less than one second are represented with a 0
2599 # `seconds` field and a positive `nanos` field. Must be from 0
2600 # to 999,999,999 inclusive.
2601 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
2602 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
2603 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
2604 },
2605 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
2606 # values are:
2607 #
2608 # - 5xx: retry is attempted if the instance or endpoint
2609 # responds with any 5xx response code, or if the instance or
2610 # endpoint does not respond at all. For example, disconnects, reset, read
2611 # timeout, connection failure, and refused streams.
2612 # - gateway-error: Similar to 5xx, but only
2613 # applies to response codes 502, 503 or504.
2614 # - connect-failure: a retry is attempted on failures
2615 # connecting to the instance or endpoint. For example, connection
2616 # timeouts.
2617 # - retriable-4xx: a retry is attempted if the instance
2618 # or endpoint responds with a 4xx response code.
2619 # The only error that you can retry is error code 409.
2620 # - refused-stream: a retry is attempted if the instance
2621 # or endpoint resets the stream with a REFUSED_STREAM error
2622 # code. This reset type indicates that it is safe to retry.
2623 # - cancelled: a retry is attempted if the gRPC status
2624 # code in the response header is set to cancelled.
2625 # - deadline-exceeded: a retry is attempted if the gRPC
2626 # status code in the response header is set todeadline-exceeded.
2627 # - internal: a retry is attempted if the gRPC
2628 # status code in the response header is set tointernal.
2629 # - resource-exhausted: a retry is attempted if the gRPC
2630 # status code in the response header is set toresource-exhausted.
2631 # - unavailable: a retry is attempted if the gRPC
2632 # status code in the response header is set tounavailable.
2633 #
2634 # Only the following codes are supported when the URL map is bound to
2635 # target gRPC proxy that has validateForProxyless field set to true.
2636 #
2637 # - cancelled
2638 # - deadline-exceeded
2639 # - internal
2640 # - resource-exhausted
2641 # - unavailable
2642 &quot;A String&quot;,
2643 ],
2644 },
2645 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
2646 # time the request has been fully processed (known as *end-of-stream*)
2647 # up until the response has been processed. Timeout includes
2648 # all retries.
2649 #
2650 # If not specified, this field uses the largest timeout among all backend
2651 # services associated with the route.
2652 #
2653 # Not supported when the URL map is bound to a target gRPC proxy that
2654 # has validateForProxyless field set to true.
2655 # as a count of seconds and fractions of seconds at nanosecond
2656 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
2657 # or &quot;month&quot;. Range is approximately 10,000 years.
2658 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
2659 # Durations less than one second are represented with a 0
2660 # `seconds` field and a positive `nanos` field. Must be from 0
2661 # to 999,999,999 inclusive.
2662 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
2663 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
2664 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
2665 },
2666 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
2667 # to the matched service.
2668 #
2669 # urlRewrite is the only action supported in UrlMaps
2670 # for classic Application Load Balancers.
2671 #
2672 # Not supported when the URL map is bound to a target gRPC proxy that
2673 # has the validateForProxyless field set to true.
2674 # backend service.
2675 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
2676 # host header is replaced with contents of hostRewrite.
2677 #
2678 # The value must be from 1 to 255 characters.
2679 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
2680 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
2681 #
2682 # The value must be from 1 to 1024 characters.
2683 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
2684 # header) using the HTTP template syntax.
2685 #
2686 # A corresponding
2687 # path_template_match must be specified. Any template variables must exist in
2688 # the path_template_match field.
2689 #
2690 #
2691 # - -At least one variable must be specified in the path_template_match
2692 # field
2693 # - You can omit variables from the rewritten URL
2694 # - The * and ** operators cannot be matched
2695 # unless they have a corresponding variable name - e.g.
2696 # {format=*} or {var=**}.
2697 #
2698 # For example, a path_template_match of /static/{format=**}
2699 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
2700 # rewrite, so that /{country}/{format}/{suffix=**} can be
2701 # rewritten as /content/{format}/{country}/{suffix}.
2702 #
2703 # At least
2704 # one non-empty routeRules[].matchRules[].path_template_match is
2705 # required.
2706 #
2707 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
2708 },
2709 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
2710 # occurs. The weights determine the fraction of traffic that flows to
2711 # their corresponding backend service. If all traffic needs to
2712 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
2713 #
2714 # After a backend service is identified and before forwarding
2715 # the request to
2716 # the backend service, advanced routing actions such as URL rewrites and
2717 # header transformations are applied depending on additional settings
2718 # specified in this HttpRouteAction.
2719 { # In contrast to a single BackendService in
2720 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
2721 # multiple backend services. The volume of traffic for each
2722 # backend service is proportional to the weight specified
2723 # in each WeightedBackendService
2724 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
2725 # resource. Before
2726 # forwarding the request to backendService, the load balancer
2727 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
2728 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
2729 # effect for the selected backendService.
2730 #
2731 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
2732 #
2733 # headerAction is not supported for load balancers that have
2734 # their loadBalancingScheme set to EXTERNAL.
2735 #
2736 # Not supported when the URL map is bound to a target gRPC proxy that
2737 # has validateForProxyless field set to true.
2738 # the request is passed along to the selected backendService.
2739 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
2740 { # Specification determining how headers are added to requests or responses.
2741 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
2742 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
2743 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
2744 # that already
2745 # exist for the header. If true, headerValue is set for the
2746 # header, discarding any values that were set for that header.
2747 #
2748 # The default value is true,
2749 # unless a variable is present in headerValue,
2750 # in which case the default value is false.
2751 # .
2752 },
2753 ],
2754 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
2755 # request before forwarding the request to the backendService.
2756 &quot;A String&quot;,
2757 ],
2758 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
2759 # client.
2760 { # Specification determining how headers are added to requests or responses.
2761 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
2762 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
2763 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
2764 # that already
2765 # exist for the header. If true, headerValue is set for the
2766 # header, discarding any values that were set for that header.
2767 #
2768 # The default value is true,
2769 # unless a variable is present in headerValue,
2770 # in which case the default value is false.
2771 # .
2772 },
2773 ],
2774 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
2775 # response before sending the response back to the client.
2776 &quot;A String&quot;,
2777 ],
2778 },
2779 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
2780 # computed asweight / (sum of all weightedBackendService weights in routeAction).
2781 #
2782 # The selection of a backend service is determined only for new traffic.
2783 # Once a user&#x27;s request has been directed to a backend service,
2784 # subsequent requests are sent to the same backend service as
2785 # determined by the backend service&#x27;s session affinity policy.
2786 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
2787 # splitting. If you do, the weighted traffic splitting configuration takes
2788 # precedence.
2789 #
2790 # The value must be from 0 to 1000.
2791 },
2792 ],
2793 },
2794 &quot;service&quot;: &quot;A String&quot;, # The full or partial URL of the backend service resource to which traffic
2795 # is directed if this rule is matched. If routeAction is
2796 # also specified, advanced routing actions, such as URL rewrites,
2797 # take effect before sending the request to the backend.
2798 #
2799 #
2800 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
2801 &quot;urlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When a path pattern is matched, the request is redirected to a URL
2802 # specified by urlRedirect.
2803 #
2804 #
2805 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
2806 #
2807 #
2808 # Not supported when the URL map is bound to a target gRPC proxy.
2809 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
2810 # was supplied in the request.
2811 #
2812 # The value must be from 1 to 255
2813 # characters.
2814 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
2815 # set to HTTPS.
2816 # If set to false, the URL scheme of the redirected request
2817 # remains the same as that of the request.
2818 #
2819 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
2820 #
2821 # The default is set to false.
2822 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
2823 # that was supplied in the request.
2824 #
2825 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
2826 # supplied, the path of the original request is used for the redirect.
2827 #
2828 # The value must be from 1 to 1024 characters.
2829 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
2830 # the HttpRouteRuleMatch, retaining the remaining portion
2831 # of the URL before redirecting the request.
2832 #
2833 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
2834 # supplied, the path of the original request is used for the redirect.
2835 #
2836 # The value must be from 1 to 1024 characters.
2837 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
2838 #
2839 # Supported values are:
2840 #
2841 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
2842 # to 301.
2843 # - FOUND, which corresponds to 302.
2844 # - SEE_OTHER which corresponds to 303.
2845 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
2846 # method is retained.
2847 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
2848 # method is retained.
2849 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
2850 # URL is
2851 # removed before redirecting the request. If set to false, the
2852 # query portion of the original URL is retained.
2853 #
2854 # The default is set to false.
2855 },
2856 },
2857 ],
2858 &quot;routeRules&quot;: [ # The list of HTTP route rules. Use this list instead ofpathRules when advanced route matching and routing actions are
2859 # desired. routeRules are evaluated in order of priority, from
2860 # the lowest to highest number.
2861 #
2862 # Within a given pathMatcher, you can set only one ofpathRules or routeRules.
2863 { # The HttpRouteRule setting specifies how to match an HTTP request
2864 # and the corresponding routing action that load balancing proxies perform.
2865 &quot;customErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # customErrorResponsePolicy specifies how the Load
2866 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
2867 #
2868 # If a policy for an
2869 # error code is not configured for the RouteRule, a policy for
2870 # the error code configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If
2871 # one is not specified inpathMatcher.defaultCustomErrorResponsePolicy, the policy
2872 # configured in UrlMap.defaultCustomErrorResponsePolicy takes
2873 # effect.
2874 #
2875 # For example, consider a UrlMap with the following configuration:
2876 #
2877 #
2878 # - UrlMap.defaultCustomErrorResponsePolicy are configured
2879 # with policies for 5xx and 4xx errors
2880 # - A RouteRule for /coming_soon/ is configured for the
2881 # error code 404.
2882 #
2883 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
2884 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
2885 # the policy in RouteRule.customErrorResponsePolicy takes
2886 # effect. If any of the requests in this example encounter a 500
2887 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
2888 #
2889 # When
2890 # used in conjunction withrouteRules.routeAction.retryPolicy, retries take
2891 # precedence. Only once all retries are exhausted, thecustomErrorResponsePolicy is applied. While attempting
2892 # a retry, if load balancer is successful in reaching the
2893 # service, the customErrorResponsePolicy is ignored and
2894 # the response from the service is returned to the client.
2895 #
2896 # customErrorResponsePolicy is supported only for
2897 # global external Application Load Balancers.
2898 # backend service or backend bucket responds with an error.
2899 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
2900 #
2901 # In a given policy, if you specify rules for both a range of error codes
2902 # as well as rules for specific error codes then rules with specific error
2903 # codes have a higher priority. For example, assume that you configure a rule
2904 # for 401 (Un-authorized) code, and another for all 4 series
2905 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
2906 # However if the backend service returns a 403, the rule for4xx takes effect.
2907 { # Specifies the mapping between the response code that will be returned along
2908 # with the custom error content and the response code returned by the backend
2909 # service.
2910 &quot;matchResponseCodes&quot;: [ # Valid values include:
2911 #
2912 #
2913 # - A number between 400 and 599: For example
2914 # 401 or 503, in which case the load balancer
2915 # applies the policy if the error code exactly matches this value.
2916 # - 5xx: Load Balancer will apply the policy if the
2917 # backend service responds with any response code in the range of
2918 # 500 to 599.
2919 # - 4xx: Load
2920 # Balancer will apply the policy if the backend service responds with any
2921 # response code in the range of 400 to
2922 # 499.
2923 #
2924 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
2925 &quot;A String&quot;,
2926 ],
2927 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
2928 # error content. If overrideResponseCode is not supplied, the
2929 # same response code returned by the original backend bucket or backend
2930 # service is returned to the client.
2931 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
2932 #
2933 # path must start
2934 # with a leading slash. path cannot have trailing slashes.
2935 #
2936 # If the file is not available in backendBucket or the
2937 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
2938 #
2939 # The value must
2940 # be from 1 to 1024 characters
2941 },
2942 ],
2943 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
2944 # contains the custom error content. Examples are:
2945 #
2946 #
2947 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
2948 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
2949 # - global/backendBuckets/myBackendBucket
2950 #
2951 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
2952 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
2953 #
2954 # If load balancer cannot reach
2955 # the backendBucket, a simple Not Found Error will
2956 # be returned, with the original response code (oroverrideResponseCode if configured).
2957 #
2958 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
2959 },
2960 &quot;description&quot;: &quot;A String&quot;, # The short description conveying the intent of this routeRule.
2961 #
2962 #
2963 # The description can have a maximum length of 1024 characters.
2964 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
2965 # for the selected backendService.
2966 #
2967 # The headerAction value specified here is applied before the
2968 # matching pathMatchers[].headerAction and afterpathMatchers[].routeRules[].routeAction.weightedBackendService.backendServiceWeightAction[].headerAction
2969 #
2970 # HeaderAction is not supported for load balancers
2971 # that have
2972 # their loadBalancingScheme set to EXTERNAL.
2973 #
2974 # Not supported when the URL map is bound to a target gRPC proxy that
2975 # has validateForProxyless field set to true.
2976 # the request is passed along to the selected backendService.
2977 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
2978 { # Specification determining how headers are added to requests or responses.
2979 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
2980 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
2981 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
2982 # that already
2983 # exist for the header. If true, headerValue is set for the
2984 # header, discarding any values that were set for that header.
2985 #
2986 # The default value is true,
2987 # unless a variable is present in headerValue,
2988 # in which case the default value is false.
2989 # .
2990 },
2991 ],
2992 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
2993 # request before forwarding the request to the backendService.
2994 &quot;A String&quot;,
2995 ],
2996 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
2997 # client.
2998 { # Specification determining how headers are added to requests or responses.
2999 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
3000 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
3001 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
3002 # that already
3003 # exist for the header. If true, headerValue is set for the
3004 # header, discarding any values that were set for that header.
3005 #
3006 # The default value is true,
3007 # unless a variable is present in headerValue,
3008 # in which case the default value is false.
3009 # .
3010 },
3011 ],
3012 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
3013 # response before sending the response back to the client.
3014 &quot;A String&quot;,
3015 ],
3016 },
3017 &quot;matchRules&quot;: [ # The list of criteria for matching attributes of a request to thisrouteRule. This list has OR semantics: the request matches
3018 # this routeRule when any of thematchRules are satisfied. However predicates within
3019 # a given matchRule have AND semantics. All predicates
3020 # within a matchRule must match for the request to
3021 # match the rule.
3022 { # HttpRouteRuleMatch specifies a set of criteria for matching
3023 # requests to an HttpRouteRule. All specified criteria must
3024 # be satisfied for a match to occur.
3025 &quot;fullPathMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the path of the
3026 # request must exactly match the value specified infullPathMatch after removing any query parameters and anchor
3027 # that may be part of the original URL.
3028 #
3029 # fullPathMatch must be from 1 to 1024 characters.
3030 #
3031 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be
3032 # specified.
3033 &quot;headerMatches&quot;: [ # Specifies a list of header match criteria, all of which must match
3034 # corresponding headers in the request.
3035 { # matchRule criteria for request header matches.
3036 &quot;exactMatch&quot;: &quot;A String&quot;, # The value should exactly match contents of exactMatch.
3037 #
3038 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
3039 &quot;headerName&quot;: &quot;A String&quot;, # The name of the HTTP header to match.
3040 #
3041 # For matching against the HTTP request&#x27;s authority, use a headerMatch
3042 # with the header name &quot;:authority&quot;.
3043 #
3044 # For matching a request&#x27;s method, use the headerName &quot;:method&quot;.
3045 #
3046 # When the URL map is bound to a target gRPC proxy that has
3047 # the validateForProxyless field set to true, only
3048 # non-binary
3049 # user-specified custom metadata and the `content-type` header are supported.
3050 # The following transport-level headers cannot be used in header matching
3051 # rules:
3052 # `:authority`, `:method`, `:path`, `:scheme`, `user-agent`,
3053 # `accept-encoding`, `content-encoding`, `grpc-accept-encoding`,
3054 # `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags-bin`,
3055 # `grpc-timeout` and `grpc-trace-bin`.
3056 &quot;invertMatch&quot;: True or False, # If set to false, the headerMatch is considered a
3057 # match if the preceding match criteria are met. If set to true,
3058 # the headerMatch is considered a match if the preceding
3059 # match criteria are NOT met.
3060 #
3061 # The default setting is false.
3062 &quot;prefixMatch&quot;: &quot;A String&quot;, # The value of the header must start with the contents ofprefixMatch.
3063 #
3064 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
3065 &quot;presentMatch&quot;: True or False, # A header with the contents of headerName must exist. The
3066 # match takes place whether or not the request&#x27;s header has a value.
3067 #
3068 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
3069 &quot;rangeMatch&quot;: { # HttpRouteRuleMatch criteria for field values that must stay # The header value must be an integer and its value must be in the range
3070 # specified in rangeMatch. If the header does not contain an
3071 # integer, number or is empty, the match fails.
3072 #
3073 # For example for a range [-5, 0]
3074 #
3075 #
3076 # - -3 will match.
3077 # - 0 will not match.
3078 # - 0.25 will not match.
3079 # - -3someString will not match.
3080 #
3081 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
3082 #
3083 # rangeMatch is not supported for load balancers
3084 # that have loadBalancingScheme set to EXTERNAL.
3085 # within the specified integer range.
3086 &quot;rangeEnd&quot;: &quot;A String&quot;, # The end of the range (exclusive) in signed long integer format.
3087 &quot;rangeStart&quot;: &quot;A String&quot;, # The start of the range (inclusive) in signed long integer format.
3088 },
3089 &quot;regexMatch&quot;: &quot;A String&quot;, # The value of the header must match the regular expression specified inregexMatch.
3090 # For more information about regular expression syntax, see Syntax.
3091 #
3092 # For matching against a port specified in the HTTP request, use a
3093 # headerMatch with headerName set to PORT and a regular expression that
3094 # satisfies the RFC2616 Host header&#x27;s port specifier.
3095 #
3096 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
3097 #
3098 # Regular expressions can only be used when the loadBalancingScheme is
3099 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
3100 # (regional scope) or INTERNAL_MANAGED.
3101 &quot;suffixMatch&quot;: &quot;A String&quot;, # The value of the header must end with the contents ofsuffixMatch.
3102 #
3103 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
3104 },
3105 ],
3106 &quot;ignoreCase&quot;: True or False, # Specifies that prefixMatch and fullPathMatch
3107 # matches are case sensitive.
3108 #
3109 # The default value is false.
3110 #
3111 # ignoreCase must not be used with regexMatch.
3112 #
3113 # Not supported when the URL map is bound to a target gRPC proxy.
3114 &quot;metadataFilters&quot;: [ # Opaque filter criteria used by the load balancer to restrict routing
3115 # configuration to a limited set of xDS
3116 # compliant clients. In their xDS requests to the load balancer, xDS clients
3117 # present node
3118 # metadata. When there is a match, the relevant routing configuration
3119 # is made available to those proxies.
3120 #
3121 # For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least one of thefilterLabels must match the corresponding label provided in
3122 # the metadata. If its filterMatchCriteria is set to
3123 # MATCH_ALL, then all of its filterLabels must match with
3124 # corresponding labels provided in the metadata. If multiple
3125 # metadata filters are specified, all of them need to be
3126 # satisfied in order to be considered a match.
3127 #
3128 # metadataFilters specified here is applied after those
3129 # specified in ForwardingRule that refers to theUrlMap this HttpRouteRuleMatch belongs to.
3130 #
3131 # metadataFilters only applies to load balancers that haveloadBalancingScheme set toINTERNAL_SELF_MANAGED.
3132 #
3133 # Not supported when the URL map is bound to a target gRPC proxy that
3134 # has validateForProxyless field set to true.
3135 { # Opaque filter criteria used by load balancers to restrict routing
3136 # configuration to a limited set of load balancing proxies. Proxies and
3137 # sidecars involved in load balancing would typically present metadata to the
3138 # load balancers that need to match criteria specified here. If a match takes
3139 # place, the relevant configuration is made available to those
3140 # proxies.
3141 #
3142 # For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least
3143 # one of thefilterLabels must match the corresponding label provided in
3144 # the metadata. If its filterMatchCriteria is set to
3145 # MATCH_ALL, then all of its filterLabels must match with
3146 # corresponding labels provided in the metadata.
3147 #
3148 # An example for using metadataFilters would be: if
3149 # load balancing involves
3150 # Envoys, they receive routing configuration when values inmetadataFilters match values supplied in of their XDS requests to loadbalancers.
3151 &quot;filterLabels&quot;: [ # The list of label value pairs that must match labels in the provided
3152 # metadata based on filterMatchCriteria
3153 #
3154 # This list must not be empty and can have at the most 64 entries.
3155 { # MetadataFilter label name value pairs that are expected
3156 # to match corresponding labels presented as metadata to the load balancer.
3157 &quot;name&quot;: &quot;A String&quot;, # Name of metadata label.
3158 #
3159 # The name can have a maximum length of 1024 characters and must be at
3160 # least 1 character long.
3161 &quot;value&quot;: &quot;A String&quot;, # The value of the label must match the specified value.
3162 #
3163 # value can have a maximum length of 1024 characters.
3164 },
3165 ],
3166 &quot;filterMatchCriteria&quot;: &quot;A String&quot;, # Specifies how individual filter label matches
3167 # within the list of filterLabels and contributes toward the
3168 # overall metadataFilter match.
3169 #
3170 # Supported values are:
3171 #
3172 # - MATCH_ANY: at least one of the filterLabels
3173 # must have a matching label in the provided metadata.
3174 # - MATCH_ALL: all filterLabels must have
3175 # matching labels in the provided metadata.
3176 },
3177 ],
3178 &quot;pathTemplateMatch&quot;: &quot;A String&quot;, # If specified, this field defines a path template pattern that must match
3179 # the :path header after the query string is removed.
3180 #
3181 # A path template pattern can include variables and wildcards.
3182 # Variables are enclosed in curly braces, for example{variable_name}. Wildcards include * that
3183 # matches a single path segment, and ** that matches zero or
3184 # more path segments. The pattern must follow these rules:
3185 #
3186 #
3187 # - The value must be between 1 and 1024 characters.
3188 # - The pattern must start with a leading slash (&quot;/&quot;).
3189 # - No more than 5 operators (variables or wildcards) may appear in
3190 # the pattern.
3191 #
3192 # Precisely one ofprefixMatch, fullPathMatch,regexMatch, or pathTemplateMatch must be
3193 # set.
3194 &quot;prefixMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the request&#x27;s
3195 # path must begin with the specified prefixMatch.prefixMatch must begin with a /.
3196 #
3197 # The value must be from 1 to 1024 characters.
3198 #
3199 # The * character inside a prefix match is
3200 # treated as a literal character, not as a wildcard.
3201 #
3202 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match can be
3203 # used within a matchRule.
3204 &quot;queryParameterMatches&quot;: [ # Specifies a list of query parameter match criteria, all of which must
3205 # match corresponding query parameters in the request.
3206 #
3207 # Not supported when the URL map is bound to a target gRPC proxy.
3208 { # HttpRouteRuleMatch criteria for a request&#x27;s query parameter.
3209 &quot;exactMatch&quot;: &quot;A String&quot;, # The queryParameterMatch matches if the value of the
3210 # parameter exactly matches the contents of exactMatch.
3211 #
3212 # Only one of presentMatch, exactMatch, orregexMatch must be set.
3213 &quot;name&quot;: &quot;A String&quot;, # The name of the query parameter to match. The query parameter must exist in
3214 # the request, in the absence of which the request match fails.
3215 &quot;presentMatch&quot;: True or False, # Specifies that the queryParameterMatch matches if the
3216 # request contains the query parameter, irrespective of whether the
3217 # parameter has a value or not.
3218 #
3219 # Only one of presentMatch, exactMatch, orregexMatch must be set.
3220 &quot;regexMatch&quot;: &quot;A String&quot;, # The queryParameterMatch matches if the value of the
3221 # parameter matches the regular expression specified byregexMatch. For
3222 # more information about regular expression syntax, see Syntax.
3223 #
3224 # Only one of presentMatch, exactMatch, orregexMatch must be set.
3225 #
3226 # Regular expressions can only be used when the loadBalancingScheme is
3227 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
3228 # (regional scope) or INTERNAL_MANAGED.
3229 },
3230 ],
3231 &quot;regexMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the path of the
3232 # request must satisfy the regular expression specified inregexMatch after removing any query parameters and anchor
3233 # supplied with the original URL. For
3234 # more information about regular expression syntax, see Syntax.
3235 #
3236 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be
3237 # specified.
3238 #
3239 # Regular expressions can only be used when the loadBalancingScheme is
3240 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
3241 # (regional scope) or INTERNAL_MANAGED.
3242 },
3243 ],
3244 &quot;priority&quot;: 42, # For routeRules within a given pathMatcher,
3245 # priority determines the order in which a load balancer interpretsrouteRules. RouteRules are evaluated in order
3246 # of priority, from the lowest to highest number. The priority of a
3247 # rule decreases as its number increases (1, 2, 3, N+1). The first rule
3248 # that matches the request is applied.
3249 #
3250 #
3251 # You cannot configure two or more routeRules with the same priority.
3252 # Priority for each rule must be set to a number from 0 to 2147483647
3253 # inclusive.
3254 #
3255 #
3256 # Priority numbers can have gaps, which enable you to add or remove rules
3257 # in the future without affecting the rest of the rules. For example, 1, 2,
3258 # 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you
3259 # could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future
3260 # without any impact on existing rules.
3261 &quot;routeAction&quot;: { # In response to a matching matchRule, the load balancer
3262 # performs advanced routing actions, such as URL rewrites and header
3263 # transformations, before forwarding the request to the selected backend.
3264 #
3265 #
3266 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
3267 #
3268 #
3269 # URL maps for classic Application Load Balancers only support
3270 # the urlRewrite action within a route rule&#x27;srouteAction.
3271 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
3272 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
3273 # property must be specified. This policy cannot be specified if any target
3274 # backend has Identity-Aware Proxy enabled.
3275 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
3276 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
3277 # header names can be specified. The cache is bypassed for all `cacheMode`
3278 # values.
3279 &quot;A String&quot;,
3280 ],
3281 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
3282 # on the backend type: for Backend Services, the complete request URI is
3283 # used; for Backend Buckets, the request URI is used without the protocol or
3284 # host, and only query parameters known to Cloud Storage are included.
3285 # Policy defined on Route Action.
3286 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
3287 # parameters will be included. Either specify `excludedQueryParameters`
3288 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
3289 # encoded and not treated as delimiters.
3290 #
3291 # Note: This field applies to routes that use backend services. Attempting
3292 # to set it on a route that points exclusively to Backend Buckets will
3293 # result in a configuration error. For routes that point to a Backend
3294 # Bucket, use `includedQueryParameters` to define which parameters should
3295 # be part of the cache key.
3296 &quot;A String&quot;,
3297 ],
3298 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
3299 #
3300 # Note: This setting is only applicable to routes that use a Backend
3301 # Service. It does not affect requests served by a Backend Bucket, as the
3302 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
3303 # it on a route that points exclusively to Backend Buckets will result in a
3304 # configuration error.
3305 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
3306 #
3307 # Note: This setting is only applicable to routes that use a Backend
3308 # Service. It does not affect requests served by a Backend Bucket, as the
3309 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
3310 # set on a route that points exclusively to Backend Buckets will result in
3311 # a configuration error.
3312 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
3313 # `includedQueryParameters` and `excludedQueryParameters`. If neither
3314 # is set, the entire query string will be included. If false, the query
3315 # string will be excluded from the cache key entirely.
3316 #
3317 # Note: This field applies to routes that use backend services. Attempting
3318 # to set it on a route that points exclusively to Backend Buckets will
3319 # result in a configuration error. For routes that point to a Backend
3320 # Bucket, use `includedQueryParameters` to define which parameters should
3321 # be part of the cache key.
3322 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
3323 # The name=value pair will be used in the cache key Cloud CDN generates.
3324 #
3325 # Note: This setting is only applicable to routes that use a Backend
3326 # Service. It does not affect requests served by a Backend Bucket.
3327 # Attempting to set it on a route that points exclusively to Backend
3328 # Buckets will result in a configuration error. Up to 5 cookie names can be
3329 # specified.
3330 &quot;A String&quot;,
3331 ],
3332 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
3333 &quot;A String&quot;,
3334 ],
3335 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
3336 # parameters will be excluded. Either specify `includedQueryParameters`
3337 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
3338 # encoded and not treated as delimiters.
3339 &quot;A String&quot;,
3340 ],
3341 },
3342 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
3343 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
3344 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
3345 # content. This is used to clamp the max-age (or Expires) value sent to the
3346 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
3347 # is used for the response max-age directive, along with a &quot;public&quot;
3348 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
3349 # clamps the max-age from the origin (if specified), or else sets the
3350 # response max-age directive to the lesser of the `clientTtl` and
3351 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
3352 # present. The maximum allowed value is 31,622,400s (1 year). If not
3353 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
3354 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
3355 # `USE_ORIGIN_HEADERS`.
3356 # as a count of seconds and fractions of seconds at nanosecond
3357 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
3358 # or &quot;month&quot;. Range is approximately 10,000 years.
3359 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
3360 # Durations less than one second are represented with a 0
3361 # `seconds` field and a positive `nanos` field. Must be from 0
3362 # to 999,999,999 inclusive.
3363 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
3364 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
3365 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
3366 },
3367 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
3368 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
3369 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
3370 # greater than that of `maxTtl`. When the `cacheMode` is set to
3371 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
3372 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
3373 # accessed objects may be evicted from the cache before the defined TTL. If
3374 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
3375 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
3376 # `USE_ORIGIN_HEADERS`.
3377 # as a count of seconds and fractions of seconds at nanosecond
3378 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
3379 # or &quot;month&quot;. Range is approximately 10,000 years.
3380 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
3381 # Durations less than one second are represented with a 0
3382 # `seconds` field and a positive `nanos` field. Must be from 0
3383 # to 999,999,999 inclusive.
3384 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
3385 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
3386 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
3387 },
3388 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
3389 # attempt to set a max-age or s-maxage higher than this, or an Expires header
3390 # more than `maxTtl` seconds in the future will be capped at the value of
3391 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
3392 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
3393 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
3394 # Infrequently accessed objects may be evicted from the cache before the
3395 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
3396 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
3397 # mode.
3398 # as a count of seconds and fractions of seconds at nanosecond
3399 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
3400 # or &quot;month&quot;. Range is approximately 10,000 years.
3401 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
3402 # Durations less than one second are represented with a 0
3403 # `seconds` field and a positive `nanos` field. Must be from 0
3404 # to 999,999,999 inclusive.
3405 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
3406 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
3407 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
3408 },
3409 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
3410 # to apply fine-grained caching for common errors or redirects.
3411 # This can reduce the load on your origin and improve end-user
3412 # experience by reducing response latency.
3413 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
3414 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
3415 # the specified response code that lack any Cache-Control, Expires, or
3416 # Pragma: no-cache directives. When the `cacheMode` is set to
3417 # `FORCE_CACHE_ALL`, negative caching applies to all responses
3418 # with the specified response code, and overrides any caching headers. By
3419 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
3420 #
3421 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
3422 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
3423 # * 405 (Method Not Found), 501 (Not Implemented): 60s
3424 #
3425 # These defaults can be overridden in `negativeCachingPolicy`.
3426 # If not specified, Cloud CDN applies negative caching by default.
3427 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
3428 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
3429 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
3430 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
3431 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
3432 # all response codes that you wish to cache. Cloud CDN will not apply any
3433 # default negative caching when a policy exists.
3434 { # Specify CDN TTLs for response error codes.
3435 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
3436 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
3437 # specified as values, and you cannot specify a status code more than
3438 # once.
3439 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
3440 # corresponding status code.
3441 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
3442 # objects may be evicted from the cache before the defined TTL.
3443 # as a count of seconds and fractions of seconds at nanosecond
3444 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
3445 # or &quot;month&quot;. Range is approximately 10,000 years.
3446 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
3447 # Durations less than one second are represented with a 0
3448 # `seconds` field and a positive `nanos` field. Must be from 0
3449 # to 999,999,999 inclusive.
3450 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
3451 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
3452 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
3453 },
3454 },
3455 ],
3456 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
3457 # requests into a small number of requests to the origin. If not specified,
3458 # Cloud CDN applies request coalescing by default.
3459 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
3460 # content with the origin, or when an error is encountered when refreshing
3461 # the cache.
3462 # This setting defines the default &quot;max-stale&quot; duration for any cached
3463 # responses that do not specify a max-stale directive. Stale responses that
3464 # exceed the TTL configured here will not be served. The default limit
3465 # (max-stale) is 86400s (1 day), which will allow stale content to be
3466 # served up to this limit beyond the max-age (or s-maxage) of a cached
3467 # response.
3468 # The maximum allowed value is 604800 (1 week).
3469 # Set this to zero (0) to disable serve-while-stale.
3470 # as a count of seconds and fractions of seconds at nanosecond
3471 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
3472 # or &quot;month&quot;. Range is approximately 10,000 years.
3473 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
3474 # Durations less than one second are represented with a 0
3475 # `seconds` field and a positive `nanos` field. Must be from 0
3476 # to 999,999,999 inclusive.
3477 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
3478 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
3479 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
3480 },
3481 },
3482 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
3483 # information about the W3C recommendation for cross-origin resource sharing
3484 # (CORS), see Fetch API Living
3485 # Standard.
3486 #
3487 # Not supported when the URL map is bound to a target gRPC proxy.
3488 # information about the W3C recommendation for cross-origin resource sharing
3489 # (CORS), see Fetch API Living
3490 # Standard.
3491 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
3492 # indicates that
3493 # the actual request can include user credentials. This field translates to
3494 # the Access-Control-Allow-Credentials header.
3495 #
3496 # Default is false.
3497 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
3498 # header.
3499 &quot;A String&quot;,
3500 ],
3501 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
3502 # header.
3503 &quot;A String&quot;,
3504 ],
3505 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
3506 # more information, see regular expression syntax.
3507 #
3508 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
3509 #
3510 # Regular expressions can only be used when the loadBalancingScheme is
3511 # set to INTERNAL_SELF_MANAGED.
3512 &quot;A String&quot;,
3513 ],
3514 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
3515 #
3516 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
3517 &quot;A String&quot;,
3518 ],
3519 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
3520 # The default value is false, which indicates that the CORS
3521 # policy is in effect.
3522 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
3523 # header.
3524 &quot;A String&quot;,
3525 ],
3526 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
3527 # seconds. This field translates to the Access-Control-Max-Age
3528 # header.
3529 },
3530 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
3531 # the resiliency of clients to backend service failure. As part of fault
3532 # injection, when clients send requests to a backend service, delays can be
3533 # introduced by a load balancer on a percentage of requests before sending
3534 # those requests to the backend service. Similarly requests from clients can
3535 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
3536 # that are configured with a fault_injection_policy if:
3537 # 1. The traffic is generated by fault injection AND
3538 # 2. The fault injection is not a delay fault injection.
3539 # Fault injection is not supported with the classic Application Load Balancer
3540 # . To see which load balancers support fault injection,
3541 # see Load
3542 # balancing: Routing and traffic management features.
3543 # the resiliency of clients to backend service failure. As part of fault
3544 # injection, when clients send requests to a backend service, delays can be
3545 # introduced by the load balancer on a percentage of requests before sending
3546 # those request to the backend service. Similarly requests from clients can be
3547 # aborted by the load balancer for a percentage of requests.
3548 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
3549 # injection.
3550 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
3551 #
3552 # The value must be from 200 to 599 inclusive.
3553 #
3554 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
3555 # according to this
3556 # mapping table. HTTP status 200 is mapped to gRPC status
3557 # UNKNOWN. Injecting an OK status is currently not supported by
3558 # Traffic Director.
3559 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
3560 # that is aborted as part of fault injection.
3561 #
3562 # The value must be from 0.0 to 100.0 inclusive.
3563 },
3564 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
3565 # injection, before being sent to a backend service.
3566 # request to the backend service as part of fault injection.
3567 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
3568 # as a count of seconds and fractions of seconds at nanosecond
3569 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
3570 # or &quot;month&quot;. Range is approximately 10,000 years.
3571 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
3572 # Durations less than one second are represented with a 0
3573 # `seconds` field and a positive `nanos` field. Must be from 0
3574 # to 999,999,999 inclusive.
3575 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
3576 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
3577 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
3578 },
3579 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
3580 # which a delay is introduced as part of fault injection.
3581 #
3582 # The value must be from 0.0 to 100.0 inclusive.
3583 },
3584 },
3585 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
3586 # Unlike the timeout field where the timeout duration starts
3587 # from the time the request has been fully processed (known as*end-of-stream*),
3588 # the duration in this field is computed from the beginning of the stream
3589 # until the response has been processed, including all retries. A
3590 # stream that does not complete in this duration is closed.
3591 #
3592 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
3593 # with the route.
3594 #
3595 # This field is only allowed if the Url map is used with backend services
3596 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
3597 # as a count of seconds and fractions of seconds at nanosecond
3598 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
3599 # or &quot;month&quot;. Range is approximately 10,000 years.
3600 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
3601 # Durations less than one second are represented with a 0
3602 # `seconds` field and a positive `nanos` field. Must be from 0
3603 # to 999,999,999 inclusive.
3604 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
3605 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
3606 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
3607 },
3608 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
3609 # are shadowed to a separate mirrored backend service. The load balancer does
3610 # not wait for responses from the shadow service. Before sending traffic
3611 # to the shadow service, the host / authority header is suffixed with-shadow.
3612 #
3613 # Not supported when the URL map is bound to a target gRPC proxy that
3614 # has the validateForProxyless field set to true.
3615 # are shadowed to a separate mirrored backend service. The load balancer
3616 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
3617 # to the shadow service, the host or authority header is suffixed with-shadow.
3618 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
3619 # mirrored to.
3620 #
3621 # The backend service configured for a mirroring
3622 # policy must reference backends that are of the same type as the original
3623 # backend service matched in the URL map.
3624 #
3625 # Serverless NEG backends are not currently supported as a mirrored
3626 # backend service.
3627 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
3628 },
3629 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
3630 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
3631 # If not specified, defaults to 1.
3632 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
3633 #
3634 # If not specified, will use the timeout set in theHttpRouteAction field.
3635 # If timeout in the HttpRouteAction field is not set, this field
3636 # uses the largest timeout
3637 # among all backend services associated with the route.
3638 #
3639 # Not supported when the URL map is bound to a target gRPC proxy that
3640 # has the validateForProxyless field set to true.
3641 # as a count of seconds and fractions of seconds at nanosecond
3642 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
3643 # or &quot;month&quot;. Range is approximately 10,000 years.
3644 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
3645 # Durations less than one second are represented with a 0
3646 # `seconds` field and a positive `nanos` field. Must be from 0
3647 # to 999,999,999 inclusive.
3648 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
3649 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
3650 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
3651 },
3652 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
3653 # values are:
3654 #
3655 # - 5xx: retry is attempted if the instance or endpoint
3656 # responds with any 5xx response code, or if the instance or
3657 # endpoint does not respond at all. For example, disconnects, reset, read
3658 # timeout, connection failure, and refused streams.
3659 # - gateway-error: Similar to 5xx, but only
3660 # applies to response codes 502, 503 or504.
3661 # - connect-failure: a retry is attempted on failures
3662 # connecting to the instance or endpoint. For example, connection
3663 # timeouts.
3664 # - retriable-4xx: a retry is attempted if the instance
3665 # or endpoint responds with a 4xx response code.
3666 # The only error that you can retry is error code 409.
3667 # - refused-stream: a retry is attempted if the instance
3668 # or endpoint resets the stream with a REFUSED_STREAM error
3669 # code. This reset type indicates that it is safe to retry.
3670 # - cancelled: a retry is attempted if the gRPC status
3671 # code in the response header is set to cancelled.
3672 # - deadline-exceeded: a retry is attempted if the gRPC
3673 # status code in the response header is set todeadline-exceeded.
3674 # - internal: a retry is attempted if the gRPC
3675 # status code in the response header is set tointernal.
3676 # - resource-exhausted: a retry is attempted if the gRPC
3677 # status code in the response header is set toresource-exhausted.
3678 # - unavailable: a retry is attempted if the gRPC
3679 # status code in the response header is set tounavailable.
3680 #
3681 # Only the following codes are supported when the URL map is bound to
3682 # target gRPC proxy that has validateForProxyless field set to true.
3683 #
3684 # - cancelled
3685 # - deadline-exceeded
3686 # - internal
3687 # - resource-exhausted
3688 # - unavailable
3689 &quot;A String&quot;,
3690 ],
3691 },
3692 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
3693 # time the request has been fully processed (known as *end-of-stream*)
3694 # up until the response has been processed. Timeout includes
3695 # all retries.
3696 #
3697 # If not specified, this field uses the largest timeout among all backend
3698 # services associated with the route.
3699 #
3700 # Not supported when the URL map is bound to a target gRPC proxy that
3701 # has validateForProxyless field set to true.
3702 # as a count of seconds and fractions of seconds at nanosecond
3703 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
3704 # or &quot;month&quot;. Range is approximately 10,000 years.
3705 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
3706 # Durations less than one second are represented with a 0
3707 # `seconds` field and a positive `nanos` field. Must be from 0
3708 # to 999,999,999 inclusive.
3709 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
3710 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
3711 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
3712 },
3713 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
3714 # to the matched service.
3715 #
3716 # urlRewrite is the only action supported in UrlMaps
3717 # for classic Application Load Balancers.
3718 #
3719 # Not supported when the URL map is bound to a target gRPC proxy that
3720 # has the validateForProxyless field set to true.
3721 # backend service.
3722 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
3723 # host header is replaced with contents of hostRewrite.
3724 #
3725 # The value must be from 1 to 255 characters.
3726 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
3727 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
3728 #
3729 # The value must be from 1 to 1024 characters.
3730 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
3731 # header) using the HTTP template syntax.
3732 #
3733 # A corresponding
3734 # path_template_match must be specified. Any template variables must exist in
3735 # the path_template_match field.
3736 #
3737 #
3738 # - -At least one variable must be specified in the path_template_match
3739 # field
3740 # - You can omit variables from the rewritten URL
3741 # - The * and ** operators cannot be matched
3742 # unless they have a corresponding variable name - e.g.
3743 # {format=*} or {var=**}.
3744 #
3745 # For example, a path_template_match of /static/{format=**}
3746 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
3747 # rewrite, so that /{country}/{format}/{suffix=**} can be
3748 # rewritten as /content/{format}/{country}/{suffix}.
3749 #
3750 # At least
3751 # one non-empty routeRules[].matchRules[].path_template_match is
3752 # required.
3753 #
3754 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
3755 },
3756 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
3757 # occurs. The weights determine the fraction of traffic that flows to
3758 # their corresponding backend service. If all traffic needs to
3759 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
3760 #
3761 # After a backend service is identified and before forwarding
3762 # the request to
3763 # the backend service, advanced routing actions such as URL rewrites and
3764 # header transformations are applied depending on additional settings
3765 # specified in this HttpRouteAction.
3766 { # In contrast to a single BackendService in
3767 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
3768 # multiple backend services. The volume of traffic for each
3769 # backend service is proportional to the weight specified
3770 # in each WeightedBackendService
3771 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
3772 # resource. Before
3773 # forwarding the request to backendService, the load balancer
3774 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
3775 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
3776 # effect for the selected backendService.
3777 #
3778 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
3779 #
3780 # headerAction is not supported for load balancers that have
3781 # their loadBalancingScheme set to EXTERNAL.
3782 #
3783 # Not supported when the URL map is bound to a target gRPC proxy that
3784 # has validateForProxyless field set to true.
3785 # the request is passed along to the selected backendService.
3786 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
3787 { # Specification determining how headers are added to requests or responses.
3788 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
3789 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
3790 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
3791 # that already
3792 # exist for the header. If true, headerValue is set for the
3793 # header, discarding any values that were set for that header.
3794 #
3795 # The default value is true,
3796 # unless a variable is present in headerValue,
3797 # in which case the default value is false.
3798 # .
3799 },
3800 ],
3801 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
3802 # request before forwarding the request to the backendService.
3803 &quot;A String&quot;,
3804 ],
3805 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
3806 # client.
3807 { # Specification determining how headers are added to requests or responses.
3808 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
3809 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
3810 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
3811 # that already
3812 # exist for the header. If true, headerValue is set for the
3813 # header, discarding any values that were set for that header.
3814 #
3815 # The default value is true,
3816 # unless a variable is present in headerValue,
3817 # in which case the default value is false.
3818 # .
3819 },
3820 ],
3821 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
3822 # response before sending the response back to the client.
3823 &quot;A String&quot;,
3824 ],
3825 },
3826 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
3827 # computed asweight / (sum of all weightedBackendService weights in routeAction).
3828 #
3829 # The selection of a backend service is determined only for new traffic.
3830 # Once a user&#x27;s request has been directed to a backend service,
3831 # subsequent requests are sent to the same backend service as
3832 # determined by the backend service&#x27;s session affinity policy.
3833 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
3834 # splitting. If you do, the weighted traffic splitting configuration takes
3835 # precedence.
3836 #
3837 # The value must be from 0 to 1000.
3838 },
3839 ],
3840 },
3841 &quot;service&quot;: &quot;A String&quot;, # The full or partial URL of the backend service resource to which traffic
3842 # is directed if this rule is matched. If routeAction is
3843 # also specified, advanced routing actions, such as URL rewrites,
3844 # take effect before sending the request to the backend.
3845 #
3846 #
3847 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
3848 &quot;urlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When this rule is matched, the request is redirected to a URL
3849 # specified by urlRedirect.
3850 #
3851 #
3852 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
3853 #
3854 #
3855 # Not supported when the URL map is bound to a target gRPC proxy.
3856 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
3857 # was supplied in the request.
3858 #
3859 # The value must be from 1 to 255
3860 # characters.
3861 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
3862 # set to HTTPS.
3863 # If set to false, the URL scheme of the redirected request
3864 # remains the same as that of the request.
3865 #
3866 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
3867 #
3868 # The default is set to false.
3869 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
3870 # that was supplied in the request.
3871 #
3872 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
3873 # supplied, the path of the original request is used for the redirect.
3874 #
3875 # The value must be from 1 to 1024 characters.
3876 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
3877 # the HttpRouteRuleMatch, retaining the remaining portion
3878 # of the URL before redirecting the request.
3879 #
3880 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
3881 # supplied, the path of the original request is used for the redirect.
3882 #
3883 # The value must be from 1 to 1024 characters.
3884 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
3885 #
3886 # Supported values are:
3887 #
3888 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
3889 # to 301.
3890 # - FOUND, which corresponds to 302.
3891 # - SEE_OTHER which corresponds to 303.
3892 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
3893 # method is retained.
3894 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
3895 # method is retained.
3896 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
3897 # URL is
3898 # removed before redirecting the request. If set to false, the
3899 # query portion of the original URL is retained.
3900 #
3901 # The default is set to false.
3902 },
3903 },
3904 ],
3905 },
3906 ],
3907 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional URL map resides.
3908 # This field is not applicable to global URL maps.
3909 # You must specify this field as part of the HTTP request URL. It is
3910 # not settable as a field in the request body.
3911 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
3912 &quot;tests&quot;: [ # The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test cases pass. You can specify a
3913 # maximum of 100 tests per UrlMap.
3914 #
3915 # Not supported when the URL map is bound to a target gRPC proxy that
3916 # has validateForProxyless field set to true.
3917 { # Message for the expected URL mappings.
3918 &quot;description&quot;: &quot;A String&quot;, # Description of this test case.
3919 &quot;expectedOutputUrl&quot;: &quot;A String&quot;, # The expected output URL evaluated by the load balancer
3920 # containing the scheme, host, path and query parameters.
3921 #
3922 # For rules that forward requests to backends, the test passes only whenexpectedOutputUrl matches the request forwarded by
3923 # the load balancer to backends. For rules with urlRewrite,
3924 # the test verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite action. When service is specified,expectedOutputUrl`s scheme is ignored.
3925 #
3926 # For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the load balancer&#x27;s
3927 # redirect response. If urlRedirect specifieshttps_redirect, the test passes only if the scheme inexpectedOutputUrl is also set to HTTPS.
3928 # If urlRedirect specifies strip_query, the test
3929 # passes only if expectedOutputUrl does not contain any query
3930 # parameters.
3931 #
3932 # expectedOutputUrl is optional whenservice is specified.
3933 &quot;expectedRedirectResponseCode&quot;: 42, # For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in
3934 # load balancer&#x27;s redirect response.
3935 #
3936 # expectedRedirectResponseCode cannot be set whenservice is set.
3937 &quot;headers&quot;: [ # HTTP headers for this request. If headers contains
3938 # a host header, then host must also match the header value.
3939 { # HTTP headers used in UrlMapTests.
3940 &quot;name&quot;: &quot;A String&quot;, # Header name.
3941 &quot;value&quot;: &quot;A String&quot;, # Header value.
3942 },
3943 ],
3944 &quot;host&quot;: &quot;A String&quot;, # Host portion of the URL. If headers contains a host header,
3945 # then host must also match the header value.
3946 &quot;path&quot;: &quot;A String&quot;, # Path portion of the URL.
3947 &quot;service&quot;: &quot;A String&quot;, # Expected BackendService or BackendBucket resource
3948 # the given URL should be mapped to.
3949 #
3950 # The service field cannot
3951 # be set if expectedRedirectResponseCode is set.
3952 },
3953 ],
3954 }</pre>
3955 </div>
3956
3957 <div class="method">
3958 <code class="details" id="insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</code>
3959 <pre>Creates a UrlMap resource in the specified project using
3960 the data included in the request.
3961
3962 Args:
3963 project: string, Project ID for this request. (required)
3964 region: string, Name of the region scoping this request. (required)
3965 body: object, The request body.
3966 The object takes the form of:
3967
3968 { # Represents a URL Map resource.
3969 #
3970 # Compute Engine has two URL Map resources:
3971 #
3972 # * [Global](/compute/docs/reference/rest/v1/urlMaps)
3973 # * [Regional](/compute/docs/reference/rest/v1/regionUrlMaps)
3974 #
3975 # A URL map resource is a component of certain types of cloud load balancers
3976 # and Traffic Director:
3977 #
3978 # * urlMaps are used by global external Application Load
3979 # Balancers, classic Application Load Balancers, and cross-region internal
3980 # Application Load Balancers.
3981 # * regionUrlMaps are used by internal Application Load Balancers,
3982 # regional external Application Load Balancers and regional internal
3983 # Application Load Balancers.
3984 #
3985 # For a list of supported URL map features by the load balancer type, see the
3986 # Load balancing features: Routing and traffic management table.
3987 #
3988 # For a list of supported URL map features for Traffic Director, see the
3989 # Traffic Director features: Routing and traffic management table.
3990 #
3991 # This resource defines mappings from hostnames and URL paths to either a
3992 # backend service or a backend bucket.
3993 #
3994 # To use the global urlMaps resource, the backend service must
3995 # have a loadBalancingScheme of either EXTERNAL,EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To use
3996 # the regionUrlMaps resource, the backend service must have aloadBalancingScheme of INTERNAL_MANAGED. For more
3997 # information, read URL
3998 # Map Concepts.
3999 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
4000 # text format.
4001 &quot;defaultCustomErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # defaultCustomErrorResponsePolicy specifies how the Load
4002 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
4003 #
4004 # This policy takes
4005 # effect at the load balancer level and applies only when no policy has been
4006 # defined for the error code at lower levels like PathMatcher, RouteRule and
4007 # PathRule within this UrlMap.
4008 #
4009 # For example, consider a UrlMap with the
4010 # following configuration:
4011 #
4012 #
4013 # - defaultCustomErrorResponsePolicy containing policies for
4014 # responding to 5xx and 4xx errors
4015 # - A PathMatcher configured for *.example.com has
4016 # defaultCustomErrorResponsePolicy for 4xx.
4017 #
4018 # If a request for http://www.example.com/ encounters a404, the policy inpathMatcher.defaultCustomErrorResponsePolicy will be enforced.
4019 # When the request for http://www.example.com/ encounters a502, the policy inUrlMap.defaultCustomErrorResponsePolicy will be enforced. When
4020 # a request that does not match any host in *.example.com such
4021 # as http://www.myotherexample.com/, encounters a404, UrlMap.defaultCustomErrorResponsePolicy
4022 # takes effect.
4023 #
4024 # When used in conjunction withdefaultRouteAction.retryPolicy, retries take precedence. Only
4025 # once all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting
4026 # a retry, if load balancer is successful in reaching the
4027 # service, the defaultCustomErrorResponsePolicy is ignored and
4028 # the response from the service is returned to the client.
4029 #
4030 # defaultCustomErrorResponsePolicy is supported only for
4031 # global external Application Load Balancers.
4032 # backend service or backend bucket responds with an error.
4033 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
4034 #
4035 # In a given policy, if you specify rules for both a range of error codes
4036 # as well as rules for specific error codes then rules with specific error
4037 # codes have a higher priority. For example, assume that you configure a rule
4038 # for 401 (Un-authorized) code, and another for all 4 series
4039 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
4040 # However if the backend service returns a 403, the rule for4xx takes effect.
4041 { # Specifies the mapping between the response code that will be returned along
4042 # with the custom error content and the response code returned by the backend
4043 # service.
4044 &quot;matchResponseCodes&quot;: [ # Valid values include:
4045 #
4046 #
4047 # - A number between 400 and 599: For example
4048 # 401 or 503, in which case the load balancer
4049 # applies the policy if the error code exactly matches this value.
4050 # - 5xx: Load Balancer will apply the policy if the
4051 # backend service responds with any response code in the range of
4052 # 500 to 599.
4053 # - 4xx: Load
4054 # Balancer will apply the policy if the backend service responds with any
4055 # response code in the range of 400 to
4056 # 499.
4057 #
4058 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
4059 &quot;A String&quot;,
4060 ],
4061 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
4062 # error content. If overrideResponseCode is not supplied, the
4063 # same response code returned by the original backend bucket or backend
4064 # service is returned to the client.
4065 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
4066 #
4067 # path must start
4068 # with a leading slash. path cannot have trailing slashes.
4069 #
4070 # If the file is not available in backendBucket or the
4071 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
4072 #
4073 # The value must
4074 # be from 1 to 1024 characters
4075 },
4076 ],
4077 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
4078 # contains the custom error content. Examples are:
4079 #
4080 #
4081 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
4082 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
4083 # - global/backendBuckets/myBackendBucket
4084 #
4085 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
4086 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
4087 #
4088 # If load balancer cannot reach
4089 # the backendBucket, a simple Not Found Error will
4090 # be returned, with the original response code (oroverrideResponseCode if configured).
4091 #
4092 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
4093 },
4094 &quot;defaultRouteAction&quot;: { # defaultRouteAction takes effect when none of the
4095 # hostRules match. The load balancer performs advanced routing
4096 # actions, such as URL rewrites and header transformations, before forwarding
4097 # the request to the selected backend.
4098 #
4099 #
4100 # Only one of defaultUrlRedirect, defaultService
4101 # or defaultRouteAction.weightedBackendService can be set.
4102 #
4103 #
4104 # URL maps for classic Application Load Balancers only support
4105 # the urlRewrite action within defaultRouteAction.
4106 #
4107 #
4108 # defaultRouteAction has no effect when the URL map is bound
4109 # to a target gRPC proxy that has the validateForProxyless field
4110 # set to true.
4111 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
4112 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
4113 # property must be specified. This policy cannot be specified if any target
4114 # backend has Identity-Aware Proxy enabled.
4115 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
4116 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
4117 # header names can be specified. The cache is bypassed for all `cacheMode`
4118 # values.
4119 &quot;A String&quot;,
4120 ],
4121 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
4122 # on the backend type: for Backend Services, the complete request URI is
4123 # used; for Backend Buckets, the request URI is used without the protocol or
4124 # host, and only query parameters known to Cloud Storage are included.
4125 # Policy defined on Route Action.
4126 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
4127 # parameters will be included. Either specify `excludedQueryParameters`
4128 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
4129 # encoded and not treated as delimiters.
4130 #
4131 # Note: This field applies to routes that use backend services. Attempting
4132 # to set it on a route that points exclusively to Backend Buckets will
4133 # result in a configuration error. For routes that point to a Backend
4134 # Bucket, use `includedQueryParameters` to define which parameters should
4135 # be part of the cache key.
4136 &quot;A String&quot;,
4137 ],
4138 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
4139 #
4140 # Note: This setting is only applicable to routes that use a Backend
4141 # Service. It does not affect requests served by a Backend Bucket, as the
4142 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
4143 # it on a route that points exclusively to Backend Buckets will result in a
4144 # configuration error.
4145 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
4146 #
4147 # Note: This setting is only applicable to routes that use a Backend
4148 # Service. It does not affect requests served by a Backend Bucket, as the
4149 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
4150 # set on a route that points exclusively to Backend Buckets will result in
4151 # a configuration error.
4152 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
4153 # `includedQueryParameters` and `excludedQueryParameters`. If neither
4154 # is set, the entire query string will be included. If false, the query
4155 # string will be excluded from the cache key entirely.
4156 #
4157 # Note: This field applies to routes that use backend services. Attempting
4158 # to set it on a route that points exclusively to Backend Buckets will
4159 # result in a configuration error. For routes that point to a Backend
4160 # Bucket, use `includedQueryParameters` to define which parameters should
4161 # be part of the cache key.
4162 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
4163 # The name=value pair will be used in the cache key Cloud CDN generates.
4164 #
4165 # Note: This setting is only applicable to routes that use a Backend
4166 # Service. It does not affect requests served by a Backend Bucket.
4167 # Attempting to set it on a route that points exclusively to Backend
4168 # Buckets will result in a configuration error. Up to 5 cookie names can be
4169 # specified.
4170 &quot;A String&quot;,
4171 ],
4172 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
4173 &quot;A String&quot;,
4174 ],
4175 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
4176 # parameters will be excluded. Either specify `includedQueryParameters`
4177 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
4178 # encoded and not treated as delimiters.
4179 &quot;A String&quot;,
4180 ],
4181 },
4182 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
4183 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
4184 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
4185 # content. This is used to clamp the max-age (or Expires) value sent to the
4186 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
4187 # is used for the response max-age directive, along with a &quot;public&quot;
4188 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
4189 # clamps the max-age from the origin (if specified), or else sets the
4190 # response max-age directive to the lesser of the `clientTtl` and
4191 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
4192 # present. The maximum allowed value is 31,622,400s (1 year). If not
4193 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
4194 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
4195 # `USE_ORIGIN_HEADERS`.
4196 # as a count of seconds and fractions of seconds at nanosecond
4197 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
4198 # or &quot;month&quot;. Range is approximately 10,000 years.
4199 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
4200 # Durations less than one second are represented with a 0
4201 # `seconds` field and a positive `nanos` field. Must be from 0
4202 # to 999,999,999 inclusive.
4203 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
4204 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
4205 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
4206 },
4207 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
4208 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
4209 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
4210 # greater than that of `maxTtl`. When the `cacheMode` is set to
4211 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
4212 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
4213 # accessed objects may be evicted from the cache before the defined TTL. If
4214 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
4215 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
4216 # `USE_ORIGIN_HEADERS`.
4217 # as a count of seconds and fractions of seconds at nanosecond
4218 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
4219 # or &quot;month&quot;. Range is approximately 10,000 years.
4220 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
4221 # Durations less than one second are represented with a 0
4222 # `seconds` field and a positive `nanos` field. Must be from 0
4223 # to 999,999,999 inclusive.
4224 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
4225 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
4226 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
4227 },
4228 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
4229 # attempt to set a max-age or s-maxage higher than this, or an Expires header
4230 # more than `maxTtl` seconds in the future will be capped at the value of
4231 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
4232 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
4233 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
4234 # Infrequently accessed objects may be evicted from the cache before the
4235 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
4236 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
4237 # mode.
4238 # as a count of seconds and fractions of seconds at nanosecond
4239 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
4240 # or &quot;month&quot;. Range is approximately 10,000 years.
4241 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
4242 # Durations less than one second are represented with a 0
4243 # `seconds` field and a positive `nanos` field. Must be from 0
4244 # to 999,999,999 inclusive.
4245 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
4246 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
4247 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
4248 },
4249 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
4250 # to apply fine-grained caching for common errors or redirects.
4251 # This can reduce the load on your origin and improve end-user
4252 # experience by reducing response latency.
4253 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
4254 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
4255 # the specified response code that lack any Cache-Control, Expires, or
4256 # Pragma: no-cache directives. When the `cacheMode` is set to
4257 # `FORCE_CACHE_ALL`, negative caching applies to all responses
4258 # with the specified response code, and overrides any caching headers. By
4259 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
4260 #
4261 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
4262 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
4263 # * 405 (Method Not Found), 501 (Not Implemented): 60s
4264 #
4265 # These defaults can be overridden in `negativeCachingPolicy`.
4266 # If not specified, Cloud CDN applies negative caching by default.
4267 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
4268 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
4269 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
4270 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
4271 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
4272 # all response codes that you wish to cache. Cloud CDN will not apply any
4273 # default negative caching when a policy exists.
4274 { # Specify CDN TTLs for response error codes.
4275 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
4276 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
4277 # specified as values, and you cannot specify a status code more than
4278 # once.
4279 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
4280 # corresponding status code.
4281 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
4282 # objects may be evicted from the cache before the defined TTL.
4283 # as a count of seconds and fractions of seconds at nanosecond
4284 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
4285 # or &quot;month&quot;. Range is approximately 10,000 years.
4286 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
4287 # Durations less than one second are represented with a 0
4288 # `seconds` field and a positive `nanos` field. Must be from 0
4289 # to 999,999,999 inclusive.
4290 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
4291 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
4292 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
4293 },
4294 },
4295 ],
4296 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
4297 # requests into a small number of requests to the origin. If not specified,
4298 # Cloud CDN applies request coalescing by default.
4299 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
4300 # content with the origin, or when an error is encountered when refreshing
4301 # the cache.
4302 # This setting defines the default &quot;max-stale&quot; duration for any cached
4303 # responses that do not specify a max-stale directive. Stale responses that
4304 # exceed the TTL configured here will not be served. The default limit
4305 # (max-stale) is 86400s (1 day), which will allow stale content to be
4306 # served up to this limit beyond the max-age (or s-maxage) of a cached
4307 # response.
4308 # The maximum allowed value is 604800 (1 week).
4309 # Set this to zero (0) to disable serve-while-stale.
4310 # as a count of seconds and fractions of seconds at nanosecond
4311 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
4312 # or &quot;month&quot;. Range is approximately 10,000 years.
4313 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
4314 # Durations less than one second are represented with a 0
4315 # `seconds` field and a positive `nanos` field. Must be from 0
4316 # to 999,999,999 inclusive.
4317 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
4318 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
4319 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
4320 },
4321 },
4322 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
4323 # information about the W3C recommendation for cross-origin resource sharing
4324 # (CORS), see Fetch API Living
4325 # Standard.
4326 #
4327 # Not supported when the URL map is bound to a target gRPC proxy.
4328 # information about the W3C recommendation for cross-origin resource sharing
4329 # (CORS), see Fetch API Living
4330 # Standard.
4331 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
4332 # indicates that
4333 # the actual request can include user credentials. This field translates to
4334 # the Access-Control-Allow-Credentials header.
4335 #
4336 # Default is false.
4337 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
4338 # header.
4339 &quot;A String&quot;,
4340 ],
4341 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
4342 # header.
4343 &quot;A String&quot;,
4344 ],
4345 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
4346 # more information, see regular expression syntax.
4347 #
4348 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
4349 #
4350 # Regular expressions can only be used when the loadBalancingScheme is
4351 # set to INTERNAL_SELF_MANAGED.
4352 &quot;A String&quot;,
4353 ],
4354 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
4355 #
4356 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
4357 &quot;A String&quot;,
4358 ],
4359 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
4360 # The default value is false, which indicates that the CORS
4361 # policy is in effect.
4362 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
4363 # header.
4364 &quot;A String&quot;,
4365 ],
4366 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
4367 # seconds. This field translates to the Access-Control-Max-Age
4368 # header.
4369 },
4370 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
4371 # the resiliency of clients to backend service failure. As part of fault
4372 # injection, when clients send requests to a backend service, delays can be
4373 # introduced by a load balancer on a percentage of requests before sending
4374 # those requests to the backend service. Similarly requests from clients can
4375 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
4376 # that are configured with a fault_injection_policy if:
4377 # 1. The traffic is generated by fault injection AND
4378 # 2. The fault injection is not a delay fault injection.
4379 # Fault injection is not supported with the classic Application Load Balancer
4380 # . To see which load balancers support fault injection,
4381 # see Load
4382 # balancing: Routing and traffic management features.
4383 # the resiliency of clients to backend service failure. As part of fault
4384 # injection, when clients send requests to a backend service, delays can be
4385 # introduced by the load balancer on a percentage of requests before sending
4386 # those request to the backend service. Similarly requests from clients can be
4387 # aborted by the load balancer for a percentage of requests.
4388 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
4389 # injection.
4390 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
4391 #
4392 # The value must be from 200 to 599 inclusive.
4393 #
4394 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
4395 # according to this
4396 # mapping table. HTTP status 200 is mapped to gRPC status
4397 # UNKNOWN. Injecting an OK status is currently not supported by
4398 # Traffic Director.
4399 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
4400 # that is aborted as part of fault injection.
4401 #
4402 # The value must be from 0.0 to 100.0 inclusive.
4403 },
4404 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
4405 # injection, before being sent to a backend service.
4406 # request to the backend service as part of fault injection.
4407 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
4408 # as a count of seconds and fractions of seconds at nanosecond
4409 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
4410 # or &quot;month&quot;. Range is approximately 10,000 years.
4411 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
4412 # Durations less than one second are represented with a 0
4413 # `seconds` field and a positive `nanos` field. Must be from 0
4414 # to 999,999,999 inclusive.
4415 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
4416 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
4417 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
4418 },
4419 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
4420 # which a delay is introduced as part of fault injection.
4421 #
4422 # The value must be from 0.0 to 100.0 inclusive.
4423 },
4424 },
4425 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
4426 # Unlike the timeout field where the timeout duration starts
4427 # from the time the request has been fully processed (known as*end-of-stream*),
4428 # the duration in this field is computed from the beginning of the stream
4429 # until the response has been processed, including all retries. A
4430 # stream that does not complete in this duration is closed.
4431 #
4432 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
4433 # with the route.
4434 #
4435 # This field is only allowed if the Url map is used with backend services
4436 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
4437 # as a count of seconds and fractions of seconds at nanosecond
4438 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
4439 # or &quot;month&quot;. Range is approximately 10,000 years.
4440 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
4441 # Durations less than one second are represented with a 0
4442 # `seconds` field and a positive `nanos` field. Must be from 0
4443 # to 999,999,999 inclusive.
4444 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
4445 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
4446 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
4447 },
4448 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
4449 # are shadowed to a separate mirrored backend service. The load balancer does
4450 # not wait for responses from the shadow service. Before sending traffic
4451 # to the shadow service, the host / authority header is suffixed with-shadow.
4452 #
4453 # Not supported when the URL map is bound to a target gRPC proxy that
4454 # has the validateForProxyless field set to true.
4455 # are shadowed to a separate mirrored backend service. The load balancer
4456 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
4457 # to the shadow service, the host or authority header is suffixed with-shadow.
4458 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
4459 # mirrored to.
4460 #
4461 # The backend service configured for a mirroring
4462 # policy must reference backends that are of the same type as the original
4463 # backend service matched in the URL map.
4464 #
4465 # Serverless NEG backends are not currently supported as a mirrored
4466 # backend service.
4467 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
4468 },
4469 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
4470 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
4471 # If not specified, defaults to 1.
4472 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
4473 #
4474 # If not specified, will use the timeout set in theHttpRouteAction field.
4475 # If timeout in the HttpRouteAction field is not set, this field
4476 # uses the largest timeout
4477 # among all backend services associated with the route.
4478 #
4479 # Not supported when the URL map is bound to a target gRPC proxy that
4480 # has the validateForProxyless field set to true.
4481 # as a count of seconds and fractions of seconds at nanosecond
4482 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
4483 # or &quot;month&quot;. Range is approximately 10,000 years.
4484 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
4485 # Durations less than one second are represented with a 0
4486 # `seconds` field and a positive `nanos` field. Must be from 0
4487 # to 999,999,999 inclusive.
4488 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
4489 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
4490 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
4491 },
4492 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
4493 # values are:
4494 #
4495 # - 5xx: retry is attempted if the instance or endpoint
4496 # responds with any 5xx response code, or if the instance or
4497 # endpoint does not respond at all. For example, disconnects, reset, read
4498 # timeout, connection failure, and refused streams.
4499 # - gateway-error: Similar to 5xx, but only
4500 # applies to response codes 502, 503 or504.
4501 # - connect-failure: a retry is attempted on failures
4502 # connecting to the instance or endpoint. For example, connection
4503 # timeouts.
4504 # - retriable-4xx: a retry is attempted if the instance
4505 # or endpoint responds with a 4xx response code.
4506 # The only error that you can retry is error code 409.
4507 # - refused-stream: a retry is attempted if the instance
4508 # or endpoint resets the stream with a REFUSED_STREAM error
4509 # code. This reset type indicates that it is safe to retry.
4510 # - cancelled: a retry is attempted if the gRPC status
4511 # code in the response header is set to cancelled.
4512 # - deadline-exceeded: a retry is attempted if the gRPC
4513 # status code in the response header is set todeadline-exceeded.
4514 # - internal: a retry is attempted if the gRPC
4515 # status code in the response header is set tointernal.
4516 # - resource-exhausted: a retry is attempted if the gRPC
4517 # status code in the response header is set toresource-exhausted.
4518 # - unavailable: a retry is attempted if the gRPC
4519 # status code in the response header is set tounavailable.
4520 #
4521 # Only the following codes are supported when the URL map is bound to
4522 # target gRPC proxy that has validateForProxyless field set to true.
4523 #
4524 # - cancelled
4525 # - deadline-exceeded
4526 # - internal
4527 # - resource-exhausted
4528 # - unavailable
4529 &quot;A String&quot;,
4530 ],
4531 },
4532 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
4533 # time the request has been fully processed (known as *end-of-stream*)
4534 # up until the response has been processed. Timeout includes
4535 # all retries.
4536 #
4537 # If not specified, this field uses the largest timeout among all backend
4538 # services associated with the route.
4539 #
4540 # Not supported when the URL map is bound to a target gRPC proxy that
4541 # has validateForProxyless field set to true.
4542 # as a count of seconds and fractions of seconds at nanosecond
4543 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
4544 # or &quot;month&quot;. Range is approximately 10,000 years.
4545 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
4546 # Durations less than one second are represented with a 0
4547 # `seconds` field and a positive `nanos` field. Must be from 0
4548 # to 999,999,999 inclusive.
4549 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
4550 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
4551 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
4552 },
4553 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
4554 # to the matched service.
4555 #
4556 # urlRewrite is the only action supported in UrlMaps
4557 # for classic Application Load Balancers.
4558 #
4559 # Not supported when the URL map is bound to a target gRPC proxy that
4560 # has the validateForProxyless field set to true.
4561 # backend service.
4562 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
4563 # host header is replaced with contents of hostRewrite.
4564 #
4565 # The value must be from 1 to 255 characters.
4566 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
4567 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
4568 #
4569 # The value must be from 1 to 1024 characters.
4570 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
4571 # header) using the HTTP template syntax.
4572 #
4573 # A corresponding
4574 # path_template_match must be specified. Any template variables must exist in
4575 # the path_template_match field.
4576 #
4577 #
4578 # - -At least one variable must be specified in the path_template_match
4579 # field
4580 # - You can omit variables from the rewritten URL
4581 # - The * and ** operators cannot be matched
4582 # unless they have a corresponding variable name - e.g.
4583 # {format=*} or {var=**}.
4584 #
4585 # For example, a path_template_match of /static/{format=**}
4586 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
4587 # rewrite, so that /{country}/{format}/{suffix=**} can be
4588 # rewritten as /content/{format}/{country}/{suffix}.
4589 #
4590 # At least
4591 # one non-empty routeRules[].matchRules[].path_template_match is
4592 # required.
4593 #
4594 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
4595 },
4596 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
4597 # occurs. The weights determine the fraction of traffic that flows to
4598 # their corresponding backend service. If all traffic needs to
4599 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
4600 #
4601 # After a backend service is identified and before forwarding
4602 # the request to
4603 # the backend service, advanced routing actions such as URL rewrites and
4604 # header transformations are applied depending on additional settings
4605 # specified in this HttpRouteAction.
4606 { # In contrast to a single BackendService in
4607 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
4608 # multiple backend services. The volume of traffic for each
4609 # backend service is proportional to the weight specified
4610 # in each WeightedBackendService
4611 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
4612 # resource. Before
4613 # forwarding the request to backendService, the load balancer
4614 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
4615 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
4616 # effect for the selected backendService.
4617 #
4618 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
4619 #
4620 # headerAction is not supported for load balancers that have
4621 # their loadBalancingScheme set to EXTERNAL.
4622 #
4623 # Not supported when the URL map is bound to a target gRPC proxy that
4624 # has validateForProxyless field set to true.
4625 # the request is passed along to the selected backendService.
4626 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
4627 { # Specification determining how headers are added to requests or responses.
4628 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
4629 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
4630 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
4631 # that already
4632 # exist for the header. If true, headerValue is set for the
4633 # header, discarding any values that were set for that header.
4634 #
4635 # The default value is true,
4636 # unless a variable is present in headerValue,
4637 # in which case the default value is false.
4638 # .
4639 },
4640 ],
4641 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
4642 # request before forwarding the request to the backendService.
4643 &quot;A String&quot;,
4644 ],
4645 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
4646 # client.
4647 { # Specification determining how headers are added to requests or responses.
4648 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
4649 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
4650 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
4651 # that already
4652 # exist for the header. If true, headerValue is set for the
4653 # header, discarding any values that were set for that header.
4654 #
4655 # The default value is true,
4656 # unless a variable is present in headerValue,
4657 # in which case the default value is false.
4658 # .
4659 },
4660 ],
4661 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
4662 # response before sending the response back to the client.
4663 &quot;A String&quot;,
4664 ],
4665 },
4666 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
4667 # computed asweight / (sum of all weightedBackendService weights in routeAction).
4668 #
4669 # The selection of a backend service is determined only for new traffic.
4670 # Once a user&#x27;s request has been directed to a backend service,
4671 # subsequent requests are sent to the same backend service as
4672 # determined by the backend service&#x27;s session affinity policy.
4673 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
4674 # splitting. If you do, the weighted traffic splitting configuration takes
4675 # precedence.
4676 #
4677 # The value must be from 0 to 1000.
4678 },
4679 ],
4680 },
4681 &quot;defaultService&quot;: &quot;A String&quot;, # The full or partial URL of the defaultService resource to
4682 # which traffic is directed if none of the hostRules match.
4683 # If defaultRouteAction is also specified, advanced
4684 # routing actions, such as URL rewrites, take effect before sending the
4685 # request to the backend.
4686 #
4687 #
4688 # Only one of defaultUrlRedirect, defaultService
4689 # or defaultRouteAction.weightedBackendService can be set.
4690 #
4691 #
4692 # defaultService has no effect when the URL map is bound
4693 # to a target gRPC proxy that has the validateForProxyless field
4694 # set to true.
4695 &quot;defaultUrlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When none of the specified hostRules match, the request
4696 # is redirected to a URL specified by defaultUrlRedirect.
4697 #
4698 #
4699 # Only one of defaultUrlRedirect, defaultService
4700 # or defaultRouteAction.weightedBackendService can be set.
4701 #
4702 #
4703 # Not supported when the URL map is bound to a target gRPC proxy.
4704 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
4705 # was supplied in the request.
4706 #
4707 # The value must be from 1 to 255
4708 # characters.
4709 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
4710 # set to HTTPS.
4711 # If set to false, the URL scheme of the redirected request
4712 # remains the same as that of the request.
4713 #
4714 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
4715 #
4716 # The default is set to false.
4717 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
4718 # that was supplied in the request.
4719 #
4720 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
4721 # supplied, the path of the original request is used for the redirect.
4722 #
4723 # The value must be from 1 to 1024 characters.
4724 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
4725 # the HttpRouteRuleMatch, retaining the remaining portion
4726 # of the URL before redirecting the request.
4727 #
4728 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
4729 # supplied, the path of the original request is used for the redirect.
4730 #
4731 # The value must be from 1 to 1024 characters.
4732 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
4733 #
4734 # Supported values are:
4735 #
4736 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
4737 # to 301.
4738 # - FOUND, which corresponds to 302.
4739 # - SEE_OTHER which corresponds to 303.
4740 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
4741 # method is retained.
4742 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
4743 # method is retained.
4744 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
4745 # URL is
4746 # removed before redirecting the request. If set to false, the
4747 # query portion of the original URL is retained.
4748 #
4749 # The default is set to false.
4750 },
4751 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
4752 # create the resource.
4753 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint of this resource. A hash of the contents stored in this object.
4754 # This field is used in optimistic locking. This field is ignored when
4755 # inserting a UrlMap. An up-to-date fingerprint must be provided
4756 # in order to update the UrlMap, otherwise the request will
4757 # fail with error 412 conditionNotMet.
4758 #
4759 # To see the latest fingerprint, make a get() request to
4760 # retrieve a UrlMap.
4761 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
4762 # for the selected backendService.
4763 #
4764 # The headerAction specified here take effect afterheaderAction specified under pathMatcher.
4765 #
4766 # headerAction is not supported for load balancers
4767 # that have
4768 # their loadBalancingScheme set to EXTERNAL.
4769 #
4770 # Not supported when the URL map is bound to a target gRPC proxy that
4771 # has validateForProxyless field set to true.
4772 # the request is passed along to the selected backendService.
4773 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
4774 { # Specification determining how headers are added to requests or responses.
4775 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
4776 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
4777 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
4778 # that already
4779 # exist for the header. If true, headerValue is set for the
4780 # header, discarding any values that were set for that header.
4781 #
4782 # The default value is true,
4783 # unless a variable is present in headerValue,
4784 # in which case the default value is false.
4785 # .
4786 },
4787 ],
4788 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
4789 # request before forwarding the request to the backendService.
4790 &quot;A String&quot;,
4791 ],
4792 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
4793 # client.
4794 { # Specification determining how headers are added to requests or responses.
4795 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
4796 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
4797 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
4798 # that already
4799 # exist for the header. If true, headerValue is set for the
4800 # header, discarding any values that were set for that header.
4801 #
4802 # The default value is true,
4803 # unless a variable is present in headerValue,
4804 # in which case the default value is false.
4805 # .
4806 },
4807 ],
4808 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
4809 # response before sending the response back to the client.
4810 &quot;A String&quot;,
4811 ],
4812 },
4813 &quot;hostRules&quot;: [ # The list of host rules to use against the URL.
4814 { # UrlMaps
4815 # A host-matching rule for a URL. If matched, will use the namedPathMatcher to select the BackendService.
4816 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
4817 # create the resource.
4818 &quot;hosts&quot;: [ # The list of host patterns to match. They must be valid hostnames with
4819 # optional port numbers in the format host:port.* matches any string of ([a-z0-9-.]*). In
4820 # that case, * must be the first character, and if followed by
4821 # anything, the immediate following character must be either -
4822 # or ..
4823 #
4824 # * based matching is not supported when the URL map is bound
4825 # to a target gRPC proxy that has the validateForProxyless field
4826 # set to true.
4827 &quot;A String&quot;,
4828 ],
4829 &quot;pathMatcher&quot;: &quot;A String&quot;, # The name of the PathMatcher to use to match the path portion
4830 # of the URL if the hostRule matches the URL&#x27;s host portion.
4831 },
4832 ],
4833 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
4834 # defined by the server.
4835 &quot;kind&quot;: &quot;compute#urlMap&quot;, # Output only. [Output Only] Type of the resource. Always compute#urlMaps for
4836 # url maps.
4837 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
4838 # The name must be 1-63 characters long, and comply withRFC1035.
4839 # Specifically, the name must be 1-63 characters long and match the regular
4840 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
4841 # character must be a lowercase letter, and all following characters must
4842 # be a dash, lowercase letter, or digit, except the last character, which
4843 # cannot be a dash.
4844 &quot;pathMatchers&quot;: [ # The list of named PathMatchers to use against the URL.
4845 { # A matcher for the path portion of the URL. The BackendService
4846 # from the longest-matched rule will serve the URL. If no rule was matched, the
4847 # default service is used.
4848 &quot;defaultCustomErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # defaultCustomErrorResponsePolicy specifies how the Load
4849 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
4850 #
4851 # This policy takes
4852 # effect at the PathMatcher level and applies only when no
4853 # policy has been defined for the error code at lower levels likeRouteRule and PathRule within thisPathMatcher. If an error code does not have a policy defined
4854 # in defaultCustomErrorResponsePolicy, then a policy defined for
4855 # the error code in UrlMap.defaultCustomErrorResponsePolicy
4856 # takes effect.
4857 #
4858 # For example, consider a UrlMap with the following
4859 # configuration:
4860 #
4861 #
4862 # - UrlMap.defaultCustomErrorResponsePolicy is configured
4863 # with policies for 5xx and 4xx errors
4864 # - A RouteRule for /coming_soon/ is configured for the
4865 # error code 404.
4866 #
4867 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
4868 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
4869 # the policy in RouteRule.customErrorResponsePolicy takes
4870 # effect. If any of the requests in this example encounter a 500
4871 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
4872 #
4873 # When
4874 # used in conjunction withpathMatcher.defaultRouteAction.retryPolicy, retries take
4875 # precedence. Only once all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting
4876 # a retry, if load balancer is successful in reaching the
4877 # service, the defaultCustomErrorResponsePolicy is ignored and
4878 # the response from the service is returned to the client.
4879 #
4880 # defaultCustomErrorResponsePolicy is supported only for
4881 # global external Application Load Balancers.
4882 # backend service or backend bucket responds with an error.
4883 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
4884 #
4885 # In a given policy, if you specify rules for both a range of error codes
4886 # as well as rules for specific error codes then rules with specific error
4887 # codes have a higher priority. For example, assume that you configure a rule
4888 # for 401 (Un-authorized) code, and another for all 4 series
4889 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
4890 # However if the backend service returns a 403, the rule for4xx takes effect.
4891 { # Specifies the mapping between the response code that will be returned along
4892 # with the custom error content and the response code returned by the backend
4893 # service.
4894 &quot;matchResponseCodes&quot;: [ # Valid values include:
4895 #
4896 #
4897 # - A number between 400 and 599: For example
4898 # 401 or 503, in which case the load balancer
4899 # applies the policy if the error code exactly matches this value.
4900 # - 5xx: Load Balancer will apply the policy if the
4901 # backend service responds with any response code in the range of
4902 # 500 to 599.
4903 # - 4xx: Load
4904 # Balancer will apply the policy if the backend service responds with any
4905 # response code in the range of 400 to
4906 # 499.
4907 #
4908 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
4909 &quot;A String&quot;,
4910 ],
4911 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
4912 # error content. If overrideResponseCode is not supplied, the
4913 # same response code returned by the original backend bucket or backend
4914 # service is returned to the client.
4915 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
4916 #
4917 # path must start
4918 # with a leading slash. path cannot have trailing slashes.
4919 #
4920 # If the file is not available in backendBucket or the
4921 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
4922 #
4923 # The value must
4924 # be from 1 to 1024 characters
4925 },
4926 ],
4927 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
4928 # contains the custom error content. Examples are:
4929 #
4930 #
4931 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
4932 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
4933 # - global/backendBuckets/myBackendBucket
4934 #
4935 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
4936 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
4937 #
4938 # If load balancer cannot reach
4939 # the backendBucket, a simple Not Found Error will
4940 # be returned, with the original response code (oroverrideResponseCode if configured).
4941 #
4942 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
4943 },
4944 &quot;defaultRouteAction&quot;: { # defaultRouteAction takes effect when none of the
4945 # pathRules or routeRules match. The load balancer
4946 # performs advanced routing actions, such as URL rewrites and
4947 # header transformations, before forwarding the request to the
4948 # selected backend.
4949 #
4950 #
4951 # Only one of defaultUrlRedirect, defaultService
4952 # or defaultRouteAction.weightedBackendService can be set.
4953 #
4954 #
4955 # URL maps for classic Application Load Balancers only support
4956 # the urlRewrite action within a path matcher&#x27;sdefaultRouteAction.
4957 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
4958 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
4959 # property must be specified. This policy cannot be specified if any target
4960 # backend has Identity-Aware Proxy enabled.
4961 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
4962 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
4963 # header names can be specified. The cache is bypassed for all `cacheMode`
4964 # values.
4965 &quot;A String&quot;,
4966 ],
4967 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
4968 # on the backend type: for Backend Services, the complete request URI is
4969 # used; for Backend Buckets, the request URI is used without the protocol or
4970 # host, and only query parameters known to Cloud Storage are included.
4971 # Policy defined on Route Action.
4972 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
4973 # parameters will be included. Either specify `excludedQueryParameters`
4974 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
4975 # encoded and not treated as delimiters.
4976 #
4977 # Note: This field applies to routes that use backend services. Attempting
4978 # to set it on a route that points exclusively to Backend Buckets will
4979 # result in a configuration error. For routes that point to a Backend
4980 # Bucket, use `includedQueryParameters` to define which parameters should
4981 # be part of the cache key.
4982 &quot;A String&quot;,
4983 ],
4984 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
4985 #
4986 # Note: This setting is only applicable to routes that use a Backend
4987 # Service. It does not affect requests served by a Backend Bucket, as the
4988 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
4989 # it on a route that points exclusively to Backend Buckets will result in a
4990 # configuration error.
4991 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
4992 #
4993 # Note: This setting is only applicable to routes that use a Backend
4994 # Service. It does not affect requests served by a Backend Bucket, as the
4995 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
4996 # set on a route that points exclusively to Backend Buckets will result in
4997 # a configuration error.
4998 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
4999 # `includedQueryParameters` and `excludedQueryParameters`. If neither
5000 # is set, the entire query string will be included. If false, the query
5001 # string will be excluded from the cache key entirely.
5002 #
5003 # Note: This field applies to routes that use backend services. Attempting
5004 # to set it on a route that points exclusively to Backend Buckets will
5005 # result in a configuration error. For routes that point to a Backend
5006 # Bucket, use `includedQueryParameters` to define which parameters should
5007 # be part of the cache key.
5008 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
5009 # The name=value pair will be used in the cache key Cloud CDN generates.
5010 #
5011 # Note: This setting is only applicable to routes that use a Backend
5012 # Service. It does not affect requests served by a Backend Bucket.
5013 # Attempting to set it on a route that points exclusively to Backend
5014 # Buckets will result in a configuration error. Up to 5 cookie names can be
5015 # specified.
5016 &quot;A String&quot;,
5017 ],
5018 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
5019 &quot;A String&quot;,
5020 ],
5021 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
5022 # parameters will be excluded. Either specify `includedQueryParameters`
5023 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
5024 # encoded and not treated as delimiters.
5025 &quot;A String&quot;,
5026 ],
5027 },
5028 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
5029 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
5030 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
5031 # content. This is used to clamp the max-age (or Expires) value sent to the
5032 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
5033 # is used for the response max-age directive, along with a &quot;public&quot;
5034 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
5035 # clamps the max-age from the origin (if specified), or else sets the
5036 # response max-age directive to the lesser of the `clientTtl` and
5037 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
5038 # present. The maximum allowed value is 31,622,400s (1 year). If not
5039 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
5040 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
5041 # `USE_ORIGIN_HEADERS`.
5042 # as a count of seconds and fractions of seconds at nanosecond
5043 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
5044 # or &quot;month&quot;. Range is approximately 10,000 years.
5045 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
5046 # Durations less than one second are represented with a 0
5047 # `seconds` field and a positive `nanos` field. Must be from 0
5048 # to 999,999,999 inclusive.
5049 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
5050 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
5051 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
5052 },
5053 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
5054 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
5055 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
5056 # greater than that of `maxTtl`. When the `cacheMode` is set to
5057 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
5058 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
5059 # accessed objects may be evicted from the cache before the defined TTL. If
5060 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
5061 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
5062 # `USE_ORIGIN_HEADERS`.
5063 # as a count of seconds and fractions of seconds at nanosecond
5064 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
5065 # or &quot;month&quot;. Range is approximately 10,000 years.
5066 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
5067 # Durations less than one second are represented with a 0
5068 # `seconds` field and a positive `nanos` field. Must be from 0
5069 # to 999,999,999 inclusive.
5070 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
5071 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
5072 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
5073 },
5074 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
5075 # attempt to set a max-age or s-maxage higher than this, or an Expires header
5076 # more than `maxTtl` seconds in the future will be capped at the value of
5077 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
5078 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
5079 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
5080 # Infrequently accessed objects may be evicted from the cache before the
5081 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
5082 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
5083 # mode.
5084 # as a count of seconds and fractions of seconds at nanosecond
5085 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
5086 # or &quot;month&quot;. Range is approximately 10,000 years.
5087 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
5088 # Durations less than one second are represented with a 0
5089 # `seconds` field and a positive `nanos` field. Must be from 0
5090 # to 999,999,999 inclusive.
5091 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
5092 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
5093 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
5094 },
5095 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
5096 # to apply fine-grained caching for common errors or redirects.
5097 # This can reduce the load on your origin and improve end-user
5098 # experience by reducing response latency.
5099 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
5100 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
5101 # the specified response code that lack any Cache-Control, Expires, or
5102 # Pragma: no-cache directives. When the `cacheMode` is set to
5103 # `FORCE_CACHE_ALL`, negative caching applies to all responses
5104 # with the specified response code, and overrides any caching headers. By
5105 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
5106 #
5107 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
5108 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
5109 # * 405 (Method Not Found), 501 (Not Implemented): 60s
5110 #
5111 # These defaults can be overridden in `negativeCachingPolicy`.
5112 # If not specified, Cloud CDN applies negative caching by default.
5113 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
5114 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
5115 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
5116 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
5117 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
5118 # all response codes that you wish to cache. Cloud CDN will not apply any
5119 # default negative caching when a policy exists.
5120 { # Specify CDN TTLs for response error codes.
5121 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
5122 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
5123 # specified as values, and you cannot specify a status code more than
5124 # once.
5125 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
5126 # corresponding status code.
5127 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
5128 # objects may be evicted from the cache before the defined TTL.
5129 # as a count of seconds and fractions of seconds at nanosecond
5130 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
5131 # or &quot;month&quot;. Range is approximately 10,000 years.
5132 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
5133 # Durations less than one second are represented with a 0
5134 # `seconds` field and a positive `nanos` field. Must be from 0
5135 # to 999,999,999 inclusive.
5136 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
5137 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
5138 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
5139 },
5140 },
5141 ],
5142 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
5143 # requests into a small number of requests to the origin. If not specified,
5144 # Cloud CDN applies request coalescing by default.
5145 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
5146 # content with the origin, or when an error is encountered when refreshing
5147 # the cache.
5148 # This setting defines the default &quot;max-stale&quot; duration for any cached
5149 # responses that do not specify a max-stale directive. Stale responses that
5150 # exceed the TTL configured here will not be served. The default limit
5151 # (max-stale) is 86400s (1 day), which will allow stale content to be
5152 # served up to this limit beyond the max-age (or s-maxage) of a cached
5153 # response.
5154 # The maximum allowed value is 604800 (1 week).
5155 # Set this to zero (0) to disable serve-while-stale.
5156 # as a count of seconds and fractions of seconds at nanosecond
5157 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
5158 # or &quot;month&quot;. Range is approximately 10,000 years.
5159 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
5160 # Durations less than one second are represented with a 0
5161 # `seconds` field and a positive `nanos` field. Must be from 0
5162 # to 999,999,999 inclusive.
5163 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
5164 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
5165 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
5166 },
5167 },
5168 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
5169 # information about the W3C recommendation for cross-origin resource sharing
5170 # (CORS), see Fetch API Living
5171 # Standard.
5172 #
5173 # Not supported when the URL map is bound to a target gRPC proxy.
5174 # information about the W3C recommendation for cross-origin resource sharing
5175 # (CORS), see Fetch API Living
5176 # Standard.
5177 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
5178 # indicates that
5179 # the actual request can include user credentials. This field translates to
5180 # the Access-Control-Allow-Credentials header.
5181 #
5182 # Default is false.
5183 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
5184 # header.
5185 &quot;A String&quot;,
5186 ],
5187 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
5188 # header.
5189 &quot;A String&quot;,
5190 ],
5191 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
5192 # more information, see regular expression syntax.
5193 #
5194 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
5195 #
5196 # Regular expressions can only be used when the loadBalancingScheme is
5197 # set to INTERNAL_SELF_MANAGED.
5198 &quot;A String&quot;,
5199 ],
5200 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
5201 #
5202 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
5203 &quot;A String&quot;,
5204 ],
5205 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
5206 # The default value is false, which indicates that the CORS
5207 # policy is in effect.
5208 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
5209 # header.
5210 &quot;A String&quot;,
5211 ],
5212 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
5213 # seconds. This field translates to the Access-Control-Max-Age
5214 # header.
5215 },
5216 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
5217 # the resiliency of clients to backend service failure. As part of fault
5218 # injection, when clients send requests to a backend service, delays can be
5219 # introduced by a load balancer on a percentage of requests before sending
5220 # those requests to the backend service. Similarly requests from clients can
5221 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
5222 # that are configured with a fault_injection_policy if:
5223 # 1. The traffic is generated by fault injection AND
5224 # 2. The fault injection is not a delay fault injection.
5225 # Fault injection is not supported with the classic Application Load Balancer
5226 # . To see which load balancers support fault injection,
5227 # see Load
5228 # balancing: Routing and traffic management features.
5229 # the resiliency of clients to backend service failure. As part of fault
5230 # injection, when clients send requests to a backend service, delays can be
5231 # introduced by the load balancer on a percentage of requests before sending
5232 # those request to the backend service. Similarly requests from clients can be
5233 # aborted by the load balancer for a percentage of requests.
5234 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
5235 # injection.
5236 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
5237 #
5238 # The value must be from 200 to 599 inclusive.
5239 #
5240 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
5241 # according to this
5242 # mapping table. HTTP status 200 is mapped to gRPC status
5243 # UNKNOWN. Injecting an OK status is currently not supported by
5244 # Traffic Director.
5245 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
5246 # that is aborted as part of fault injection.
5247 #
5248 # The value must be from 0.0 to 100.0 inclusive.
5249 },
5250 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
5251 # injection, before being sent to a backend service.
5252 # request to the backend service as part of fault injection.
5253 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
5254 # as a count of seconds and fractions of seconds at nanosecond
5255 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
5256 # or &quot;month&quot;. Range is approximately 10,000 years.
5257 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
5258 # Durations less than one second are represented with a 0
5259 # `seconds` field and a positive `nanos` field. Must be from 0
5260 # to 999,999,999 inclusive.
5261 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
5262 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
5263 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
5264 },
5265 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
5266 # which a delay is introduced as part of fault injection.
5267 #
5268 # The value must be from 0.0 to 100.0 inclusive.
5269 },
5270 },
5271 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
5272 # Unlike the timeout field where the timeout duration starts
5273 # from the time the request has been fully processed (known as*end-of-stream*),
5274 # the duration in this field is computed from the beginning of the stream
5275 # until the response has been processed, including all retries. A
5276 # stream that does not complete in this duration is closed.
5277 #
5278 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
5279 # with the route.
5280 #
5281 # This field is only allowed if the Url map is used with backend services
5282 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
5283 # as a count of seconds and fractions of seconds at nanosecond
5284 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
5285 # or &quot;month&quot;. Range is approximately 10,000 years.
5286 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
5287 # Durations less than one second are represented with a 0
5288 # `seconds` field and a positive `nanos` field. Must be from 0
5289 # to 999,999,999 inclusive.
5290 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
5291 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
5292 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
5293 },
5294 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
5295 # are shadowed to a separate mirrored backend service. The load balancer does
5296 # not wait for responses from the shadow service. Before sending traffic
5297 # to the shadow service, the host / authority header is suffixed with-shadow.
5298 #
5299 # Not supported when the URL map is bound to a target gRPC proxy that
5300 # has the validateForProxyless field set to true.
5301 # are shadowed to a separate mirrored backend service. The load balancer
5302 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
5303 # to the shadow service, the host or authority header is suffixed with-shadow.
5304 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
5305 # mirrored to.
5306 #
5307 # The backend service configured for a mirroring
5308 # policy must reference backends that are of the same type as the original
5309 # backend service matched in the URL map.
5310 #
5311 # Serverless NEG backends are not currently supported as a mirrored
5312 # backend service.
5313 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
5314 },
5315 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
5316 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
5317 # If not specified, defaults to 1.
5318 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
5319 #
5320 # If not specified, will use the timeout set in theHttpRouteAction field.
5321 # If timeout in the HttpRouteAction field is not set, this field
5322 # uses the largest timeout
5323 # among all backend services associated with the route.
5324 #
5325 # Not supported when the URL map is bound to a target gRPC proxy that
5326 # has the validateForProxyless field set to true.
5327 # as a count of seconds and fractions of seconds at nanosecond
5328 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
5329 # or &quot;month&quot;. Range is approximately 10,000 years.
5330 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
5331 # Durations less than one second are represented with a 0
5332 # `seconds` field and a positive `nanos` field. Must be from 0
5333 # to 999,999,999 inclusive.
5334 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
5335 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
5336 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
5337 },
5338 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
5339 # values are:
5340 #
5341 # - 5xx: retry is attempted if the instance or endpoint
5342 # responds with any 5xx response code, or if the instance or
5343 # endpoint does not respond at all. For example, disconnects, reset, read
5344 # timeout, connection failure, and refused streams.
5345 # - gateway-error: Similar to 5xx, but only
5346 # applies to response codes 502, 503 or504.
5347 # - connect-failure: a retry is attempted on failures
5348 # connecting to the instance or endpoint. For example, connection
5349 # timeouts.
5350 # - retriable-4xx: a retry is attempted if the instance
5351 # or endpoint responds with a 4xx response code.
5352 # The only error that you can retry is error code 409.
5353 # - refused-stream: a retry is attempted if the instance
5354 # or endpoint resets the stream with a REFUSED_STREAM error
5355 # code. This reset type indicates that it is safe to retry.
5356 # - cancelled: a retry is attempted if the gRPC status
5357 # code in the response header is set to cancelled.
5358 # - deadline-exceeded: a retry is attempted if the gRPC
5359 # status code in the response header is set todeadline-exceeded.
5360 # - internal: a retry is attempted if the gRPC
5361 # status code in the response header is set tointernal.
5362 # - resource-exhausted: a retry is attempted if the gRPC
5363 # status code in the response header is set toresource-exhausted.
5364 # - unavailable: a retry is attempted if the gRPC
5365 # status code in the response header is set tounavailable.
5366 #
5367 # Only the following codes are supported when the URL map is bound to
5368 # target gRPC proxy that has validateForProxyless field set to true.
5369 #
5370 # - cancelled
5371 # - deadline-exceeded
5372 # - internal
5373 # - resource-exhausted
5374 # - unavailable
5375 &quot;A String&quot;,
5376 ],
5377 },
5378 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
5379 # time the request has been fully processed (known as *end-of-stream*)
5380 # up until the response has been processed. Timeout includes
5381 # all retries.
5382 #
5383 # If not specified, this field uses the largest timeout among all backend
5384 # services associated with the route.
5385 #
5386 # Not supported when the URL map is bound to a target gRPC proxy that
5387 # has validateForProxyless field set to true.
5388 # as a count of seconds and fractions of seconds at nanosecond
5389 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
5390 # or &quot;month&quot;. Range is approximately 10,000 years.
5391 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
5392 # Durations less than one second are represented with a 0
5393 # `seconds` field and a positive `nanos` field. Must be from 0
5394 # to 999,999,999 inclusive.
5395 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
5396 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
5397 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
5398 },
5399 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
5400 # to the matched service.
5401 #
5402 # urlRewrite is the only action supported in UrlMaps
5403 # for classic Application Load Balancers.
5404 #
5405 # Not supported when the URL map is bound to a target gRPC proxy that
5406 # has the validateForProxyless field set to true.
5407 # backend service.
5408 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
5409 # host header is replaced with contents of hostRewrite.
5410 #
5411 # The value must be from 1 to 255 characters.
5412 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
5413 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
5414 #
5415 # The value must be from 1 to 1024 characters.
5416 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
5417 # header) using the HTTP template syntax.
5418 #
5419 # A corresponding
5420 # path_template_match must be specified. Any template variables must exist in
5421 # the path_template_match field.
5422 #
5423 #
5424 # - -At least one variable must be specified in the path_template_match
5425 # field
5426 # - You can omit variables from the rewritten URL
5427 # - The * and ** operators cannot be matched
5428 # unless they have a corresponding variable name - e.g.
5429 # {format=*} or {var=**}.
5430 #
5431 # For example, a path_template_match of /static/{format=**}
5432 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
5433 # rewrite, so that /{country}/{format}/{suffix=**} can be
5434 # rewritten as /content/{format}/{country}/{suffix}.
5435 #
5436 # At least
5437 # one non-empty routeRules[].matchRules[].path_template_match is
5438 # required.
5439 #
5440 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
5441 },
5442 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
5443 # occurs. The weights determine the fraction of traffic that flows to
5444 # their corresponding backend service. If all traffic needs to
5445 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
5446 #
5447 # After a backend service is identified and before forwarding
5448 # the request to
5449 # the backend service, advanced routing actions such as URL rewrites and
5450 # header transformations are applied depending on additional settings
5451 # specified in this HttpRouteAction.
5452 { # In contrast to a single BackendService in
5453 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
5454 # multiple backend services. The volume of traffic for each
5455 # backend service is proportional to the weight specified
5456 # in each WeightedBackendService
5457 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
5458 # resource. Before
5459 # forwarding the request to backendService, the load balancer
5460 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
5461 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
5462 # effect for the selected backendService.
5463 #
5464 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
5465 #
5466 # headerAction is not supported for load balancers that have
5467 # their loadBalancingScheme set to EXTERNAL.
5468 #
5469 # Not supported when the URL map is bound to a target gRPC proxy that
5470 # has validateForProxyless field set to true.
5471 # the request is passed along to the selected backendService.
5472 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
5473 { # Specification determining how headers are added to requests or responses.
5474 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
5475 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
5476 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
5477 # that already
5478 # exist for the header. If true, headerValue is set for the
5479 # header, discarding any values that were set for that header.
5480 #
5481 # The default value is true,
5482 # unless a variable is present in headerValue,
5483 # in which case the default value is false.
5484 # .
5485 },
5486 ],
5487 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
5488 # request before forwarding the request to the backendService.
5489 &quot;A String&quot;,
5490 ],
5491 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
5492 # client.
5493 { # Specification determining how headers are added to requests or responses.
5494 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
5495 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
5496 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
5497 # that already
5498 # exist for the header. If true, headerValue is set for the
5499 # header, discarding any values that were set for that header.
5500 #
5501 # The default value is true,
5502 # unless a variable is present in headerValue,
5503 # in which case the default value is false.
5504 # .
5505 },
5506 ],
5507 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
5508 # response before sending the response back to the client.
5509 &quot;A String&quot;,
5510 ],
5511 },
5512 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
5513 # computed asweight / (sum of all weightedBackendService weights in routeAction).
5514 #
5515 # The selection of a backend service is determined only for new traffic.
5516 # Once a user&#x27;s request has been directed to a backend service,
5517 # subsequent requests are sent to the same backend service as
5518 # determined by the backend service&#x27;s session affinity policy.
5519 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
5520 # splitting. If you do, the weighted traffic splitting configuration takes
5521 # precedence.
5522 #
5523 # The value must be from 0 to 1000.
5524 },
5525 ],
5526 },
5527 &quot;defaultService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource. This
5528 # URL is used if none of the pathRules orrouteRules defined by this PathMatcher are
5529 # matched. For example, the
5530 # following are all valid URLs to a BackendService resource:
5531 #
5532 #
5533 # - https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService
5534 # - compute/v1/projects/project/global/backendServices/backendService
5535 # - global/backendServices/backendService
5536 #
5537 #
5538 # If defaultRouteAction is also specified, advanced
5539 # routing actions, such as URL rewrites, take effect before sending the
5540 # request to the backend.
5541 #
5542 #
5543 # Only one of defaultUrlRedirect, defaultService
5544 # or defaultRouteAction.weightedBackendService can be set.
5545 #
5546 #
5547 # Authorization requires one or more of the following Google IAM permissions on the
5548 # specified resource default_service:
5549 #
5550 #
5551 # - compute.backendBuckets.use
5552 # - compute.backendServices.use
5553 &quot;defaultUrlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When none of the specified pathRules orrouteRules match, the request is redirected to a URL specified
5554 # by defaultUrlRedirect.
5555 #
5556 #
5557 # Only one of defaultUrlRedirect, defaultService
5558 # or defaultRouteAction.weightedBackendService can be set.
5559 #
5560 #
5561 # Not supported when the URL map is bound to a target gRPC proxy.
5562 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
5563 # was supplied in the request.
5564 #
5565 # The value must be from 1 to 255
5566 # characters.
5567 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
5568 # set to HTTPS.
5569 # If set to false, the URL scheme of the redirected request
5570 # remains the same as that of the request.
5571 #
5572 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
5573 #
5574 # The default is set to false.
5575 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
5576 # that was supplied in the request.
5577 #
5578 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
5579 # supplied, the path of the original request is used for the redirect.
5580 #
5581 # The value must be from 1 to 1024 characters.
5582 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
5583 # the HttpRouteRuleMatch, retaining the remaining portion
5584 # of the URL before redirecting the request.
5585 #
5586 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
5587 # supplied, the path of the original request is used for the redirect.
5588 #
5589 # The value must be from 1 to 1024 characters.
5590 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
5591 #
5592 # Supported values are:
5593 #
5594 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
5595 # to 301.
5596 # - FOUND, which corresponds to 302.
5597 # - SEE_OTHER which corresponds to 303.
5598 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
5599 # method is retained.
5600 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
5601 # method is retained.
5602 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
5603 # URL is
5604 # removed before redirecting the request. If set to false, the
5605 # query portion of the original URL is retained.
5606 #
5607 # The default is set to false.
5608 },
5609 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
5610 # create the resource.
5611 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
5612 # for the selected backend service.
5613 #
5614 # HeaderAction specified here are applied after the matchingHttpRouteRule HeaderAction and before theHeaderAction in the UrlMap
5615 #
5616 # HeaderAction is not supported for load balancers
5617 # that have
5618 # their loadBalancingScheme set to EXTERNAL.
5619 #
5620 # Not supported when the URL map is bound to a target gRPC proxy that
5621 # has validateForProxyless field set to true.
5622 # the request is passed along to the selected backendService.
5623 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
5624 { # Specification determining how headers are added to requests or responses.
5625 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
5626 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
5627 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
5628 # that already
5629 # exist for the header. If true, headerValue is set for the
5630 # header, discarding any values that were set for that header.
5631 #
5632 # The default value is true,
5633 # unless a variable is present in headerValue,
5634 # in which case the default value is false.
5635 # .
5636 },
5637 ],
5638 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
5639 # request before forwarding the request to the backendService.
5640 &quot;A String&quot;,
5641 ],
5642 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
5643 # client.
5644 { # Specification determining how headers are added to requests or responses.
5645 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
5646 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
5647 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
5648 # that already
5649 # exist for the header. If true, headerValue is set for the
5650 # header, discarding any values that were set for that header.
5651 #
5652 # The default value is true,
5653 # unless a variable is present in headerValue,
5654 # in which case the default value is false.
5655 # .
5656 },
5657 ],
5658 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
5659 # response before sending the response back to the client.
5660 &quot;A String&quot;,
5661 ],
5662 },
5663 &quot;name&quot;: &quot;A String&quot;, # The name to which this PathMatcher is referred by theHostRule.
5664 &quot;pathRules&quot;: [ # The list of path rules. Use this list instead of routeRules
5665 # when routing based on simple path matching is all that&#x27;s required. A path
5666 # rule can only include a wildcard character (*) after a
5667 # forward slash character (&quot;/&quot;).
5668 #
5669 # The order by which path rules are specified does not matter.
5670 # Matches are always done on the longest-path-first basis.
5671 #
5672 # For example: a pathRule with a path /a/b/c/* will match
5673 # before /a/b/* irrespective of the order in which those paths appear in this
5674 # list.
5675 #
5676 # Within a given pathMatcher, only one ofpathRules or routeRules must be set.
5677 { # A path-matching rule for a URL. If matched, will use the specifiedBackendService to handle the traffic arriving at this URL.
5678 &quot;customErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # customErrorResponsePolicy specifies how the Load
5679 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
5680 #
5681 # If a policy for an
5682 # error code is not configured for the PathRule, a policy for
5683 # the error code configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If
5684 # one is not specified inpathMatcher.defaultCustomErrorResponsePolicy, the policy
5685 # configured in UrlMap.defaultCustomErrorResponsePolicy takes
5686 # effect.
5687 #
5688 # For example, consider a UrlMap with the following configuration:
5689 #
5690 #
5691 # - UrlMap.defaultCustomErrorResponsePolicy are configured
5692 # with policies for 5xx and 4xx errors
5693 # - A PathRule for /coming_soon/ is configured for the error
5694 # code 404.
5695 #
5696 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
5697 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
5698 # the policy in PathRule.customErrorResponsePolicy takes
5699 # effect. If any of the requests in this example encounter a 500
5700 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
5701 #
5702 # customErrorResponsePolicy is supported only for
5703 # global external Application Load Balancers.
5704 # backend service or backend bucket responds with an error.
5705 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
5706 #
5707 # In a given policy, if you specify rules for both a range of error codes
5708 # as well as rules for specific error codes then rules with specific error
5709 # codes have a higher priority. For example, assume that you configure a rule
5710 # for 401 (Un-authorized) code, and another for all 4 series
5711 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
5712 # However if the backend service returns a 403, the rule for4xx takes effect.
5713 { # Specifies the mapping between the response code that will be returned along
5714 # with the custom error content and the response code returned by the backend
5715 # service.
5716 &quot;matchResponseCodes&quot;: [ # Valid values include:
5717 #
5718 #
5719 # - A number between 400 and 599: For example
5720 # 401 or 503, in which case the load balancer
5721 # applies the policy if the error code exactly matches this value.
5722 # - 5xx: Load Balancer will apply the policy if the
5723 # backend service responds with any response code in the range of
5724 # 500 to 599.
5725 # - 4xx: Load
5726 # Balancer will apply the policy if the backend service responds with any
5727 # response code in the range of 400 to
5728 # 499.
5729 #
5730 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
5731 &quot;A String&quot;,
5732 ],
5733 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
5734 # error content. If overrideResponseCode is not supplied, the
5735 # same response code returned by the original backend bucket or backend
5736 # service is returned to the client.
5737 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
5738 #
5739 # path must start
5740 # with a leading slash. path cannot have trailing slashes.
5741 #
5742 # If the file is not available in backendBucket or the
5743 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
5744 #
5745 # The value must
5746 # be from 1 to 1024 characters
5747 },
5748 ],
5749 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
5750 # contains the custom error content. Examples are:
5751 #
5752 #
5753 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
5754 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
5755 # - global/backendBuckets/myBackendBucket
5756 #
5757 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
5758 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
5759 #
5760 # If load balancer cannot reach
5761 # the backendBucket, a simple Not Found Error will
5762 # be returned, with the original response code (oroverrideResponseCode if configured).
5763 #
5764 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
5765 },
5766 &quot;paths&quot;: [ # The list of path patterns to match. Each must start with /
5767 # and the only place a * is allowed is at the end following
5768 # a /. The string fed to the path matcher does not include
5769 # any text after the first ? or #, and
5770 # those chars are not allowed here.
5771 &quot;A String&quot;,
5772 ],
5773 &quot;routeAction&quot;: { # In response to a matching path, the load balancer
5774 # performs advanced routing actions, such as URL rewrites and header
5775 # transformations, before forwarding the request to the selected
5776 # backend.
5777 #
5778 #
5779 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
5780 #
5781 #
5782 # URL maps for classic Application Load Balancers only support
5783 # the urlRewrite action within a path rule&#x27;srouteAction.
5784 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
5785 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
5786 # property must be specified. This policy cannot be specified if any target
5787 # backend has Identity-Aware Proxy enabled.
5788 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
5789 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
5790 # header names can be specified. The cache is bypassed for all `cacheMode`
5791 # values.
5792 &quot;A String&quot;,
5793 ],
5794 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
5795 # on the backend type: for Backend Services, the complete request URI is
5796 # used; for Backend Buckets, the request URI is used without the protocol or
5797 # host, and only query parameters known to Cloud Storage are included.
5798 # Policy defined on Route Action.
5799 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
5800 # parameters will be included. Either specify `excludedQueryParameters`
5801 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
5802 # encoded and not treated as delimiters.
5803 #
5804 # Note: This field applies to routes that use backend services. Attempting
5805 # to set it on a route that points exclusively to Backend Buckets will
5806 # result in a configuration error. For routes that point to a Backend
5807 # Bucket, use `includedQueryParameters` to define which parameters should
5808 # be part of the cache key.
5809 &quot;A String&quot;,
5810 ],
5811 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
5812 #
5813 # Note: This setting is only applicable to routes that use a Backend
5814 # Service. It does not affect requests served by a Backend Bucket, as the
5815 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
5816 # it on a route that points exclusively to Backend Buckets will result in a
5817 # configuration error.
5818 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
5819 #
5820 # Note: This setting is only applicable to routes that use a Backend
5821 # Service. It does not affect requests served by a Backend Bucket, as the
5822 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
5823 # set on a route that points exclusively to Backend Buckets will result in
5824 # a configuration error.
5825 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
5826 # `includedQueryParameters` and `excludedQueryParameters`. If neither
5827 # is set, the entire query string will be included. If false, the query
5828 # string will be excluded from the cache key entirely.
5829 #
5830 # Note: This field applies to routes that use backend services. Attempting
5831 # to set it on a route that points exclusively to Backend Buckets will
5832 # result in a configuration error. For routes that point to a Backend
5833 # Bucket, use `includedQueryParameters` to define which parameters should
5834 # be part of the cache key.
5835 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
5836 # The name=value pair will be used in the cache key Cloud CDN generates.
5837 #
5838 # Note: This setting is only applicable to routes that use a Backend
5839 # Service. It does not affect requests served by a Backend Bucket.
5840 # Attempting to set it on a route that points exclusively to Backend
5841 # Buckets will result in a configuration error. Up to 5 cookie names can be
5842 # specified.
5843 &quot;A String&quot;,
5844 ],
5845 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
5846 &quot;A String&quot;,
5847 ],
5848 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
5849 # parameters will be excluded. Either specify `includedQueryParameters`
5850 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
5851 # encoded and not treated as delimiters.
5852 &quot;A String&quot;,
5853 ],
5854 },
5855 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
5856 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
5857 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
5858 # content. This is used to clamp the max-age (or Expires) value sent to the
5859 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
5860 # is used for the response max-age directive, along with a &quot;public&quot;
5861 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
5862 # clamps the max-age from the origin (if specified), or else sets the
5863 # response max-age directive to the lesser of the `clientTtl` and
5864 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
5865 # present. The maximum allowed value is 31,622,400s (1 year). If not
5866 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
5867 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
5868 # `USE_ORIGIN_HEADERS`.
5869 # as a count of seconds and fractions of seconds at nanosecond
5870 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
5871 # or &quot;month&quot;. Range is approximately 10,000 years.
5872 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
5873 # Durations less than one second are represented with a 0
5874 # `seconds` field and a positive `nanos` field. Must be from 0
5875 # to 999,999,999 inclusive.
5876 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
5877 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
5878 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
5879 },
5880 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
5881 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
5882 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
5883 # greater than that of `maxTtl`. When the `cacheMode` is set to
5884 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
5885 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
5886 # accessed objects may be evicted from the cache before the defined TTL. If
5887 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
5888 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
5889 # `USE_ORIGIN_HEADERS`.
5890 # as a count of seconds and fractions of seconds at nanosecond
5891 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
5892 # or &quot;month&quot;. Range is approximately 10,000 years.
5893 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
5894 # Durations less than one second are represented with a 0
5895 # `seconds` field and a positive `nanos` field. Must be from 0
5896 # to 999,999,999 inclusive.
5897 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
5898 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
5899 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
5900 },
5901 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
5902 # attempt to set a max-age or s-maxage higher than this, or an Expires header
5903 # more than `maxTtl` seconds in the future will be capped at the value of
5904 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
5905 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
5906 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
5907 # Infrequently accessed objects may be evicted from the cache before the
5908 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
5909 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
5910 # mode.
5911 # as a count of seconds and fractions of seconds at nanosecond
5912 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
5913 # or &quot;month&quot;. Range is approximately 10,000 years.
5914 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
5915 # Durations less than one second are represented with a 0
5916 # `seconds` field and a positive `nanos` field. Must be from 0
5917 # to 999,999,999 inclusive.
5918 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
5919 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
5920 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
5921 },
5922 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
5923 # to apply fine-grained caching for common errors or redirects.
5924 # This can reduce the load on your origin and improve end-user
5925 # experience by reducing response latency.
5926 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
5927 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
5928 # the specified response code that lack any Cache-Control, Expires, or
5929 # Pragma: no-cache directives. When the `cacheMode` is set to
5930 # `FORCE_CACHE_ALL`, negative caching applies to all responses
5931 # with the specified response code, and overrides any caching headers. By
5932 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
5933 #
5934 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
5935 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
5936 # * 405 (Method Not Found), 501 (Not Implemented): 60s
5937 #
5938 # These defaults can be overridden in `negativeCachingPolicy`.
5939 # If not specified, Cloud CDN applies negative caching by default.
5940 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
5941 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
5942 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
5943 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
5944 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
5945 # all response codes that you wish to cache. Cloud CDN will not apply any
5946 # default negative caching when a policy exists.
5947 { # Specify CDN TTLs for response error codes.
5948 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
5949 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
5950 # specified as values, and you cannot specify a status code more than
5951 # once.
5952 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
5953 # corresponding status code.
5954 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
5955 # objects may be evicted from the cache before the defined TTL.
5956 # as a count of seconds and fractions of seconds at nanosecond
5957 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
5958 # or &quot;month&quot;. Range is approximately 10,000 years.
5959 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
5960 # Durations less than one second are represented with a 0
5961 # `seconds` field and a positive `nanos` field. Must be from 0
5962 # to 999,999,999 inclusive.
5963 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
5964 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
5965 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
5966 },
5967 },
5968 ],
5969 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
5970 # requests into a small number of requests to the origin. If not specified,
5971 # Cloud CDN applies request coalescing by default.
5972 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
5973 # content with the origin, or when an error is encountered when refreshing
5974 # the cache.
5975 # This setting defines the default &quot;max-stale&quot; duration for any cached
5976 # responses that do not specify a max-stale directive. Stale responses that
5977 # exceed the TTL configured here will not be served. The default limit
5978 # (max-stale) is 86400s (1 day), which will allow stale content to be
5979 # served up to this limit beyond the max-age (or s-maxage) of a cached
5980 # response.
5981 # The maximum allowed value is 604800 (1 week).
5982 # Set this to zero (0) to disable serve-while-stale.
5983 # as a count of seconds and fractions of seconds at nanosecond
5984 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
5985 # or &quot;month&quot;. Range is approximately 10,000 years.
5986 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
5987 # Durations less than one second are represented with a 0
5988 # `seconds` field and a positive `nanos` field. Must be from 0
5989 # to 999,999,999 inclusive.
5990 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
5991 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
5992 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
5993 },
5994 },
5995 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
5996 # information about the W3C recommendation for cross-origin resource sharing
5997 # (CORS), see Fetch API Living
5998 # Standard.
5999 #
6000 # Not supported when the URL map is bound to a target gRPC proxy.
6001 # information about the W3C recommendation for cross-origin resource sharing
6002 # (CORS), see Fetch API Living
6003 # Standard.
6004 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
6005 # indicates that
6006 # the actual request can include user credentials. This field translates to
6007 # the Access-Control-Allow-Credentials header.
6008 #
6009 # Default is false.
6010 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
6011 # header.
6012 &quot;A String&quot;,
6013 ],
6014 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
6015 # header.
6016 &quot;A String&quot;,
6017 ],
6018 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
6019 # more information, see regular expression syntax.
6020 #
6021 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
6022 #
6023 # Regular expressions can only be used when the loadBalancingScheme is
6024 # set to INTERNAL_SELF_MANAGED.
6025 &quot;A String&quot;,
6026 ],
6027 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
6028 #
6029 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
6030 &quot;A String&quot;,
6031 ],
6032 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
6033 # The default value is false, which indicates that the CORS
6034 # policy is in effect.
6035 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
6036 # header.
6037 &quot;A String&quot;,
6038 ],
6039 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
6040 # seconds. This field translates to the Access-Control-Max-Age
6041 # header.
6042 },
6043 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
6044 # the resiliency of clients to backend service failure. As part of fault
6045 # injection, when clients send requests to a backend service, delays can be
6046 # introduced by a load balancer on a percentage of requests before sending
6047 # those requests to the backend service. Similarly requests from clients can
6048 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
6049 # that are configured with a fault_injection_policy if:
6050 # 1. The traffic is generated by fault injection AND
6051 # 2. The fault injection is not a delay fault injection.
6052 # Fault injection is not supported with the classic Application Load Balancer
6053 # . To see which load balancers support fault injection,
6054 # see Load
6055 # balancing: Routing and traffic management features.
6056 # the resiliency of clients to backend service failure. As part of fault
6057 # injection, when clients send requests to a backend service, delays can be
6058 # introduced by the load balancer on a percentage of requests before sending
6059 # those request to the backend service. Similarly requests from clients can be
6060 # aborted by the load balancer for a percentage of requests.
6061 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
6062 # injection.
6063 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
6064 #
6065 # The value must be from 200 to 599 inclusive.
6066 #
6067 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
6068 # according to this
6069 # mapping table. HTTP status 200 is mapped to gRPC status
6070 # UNKNOWN. Injecting an OK status is currently not supported by
6071 # Traffic Director.
6072 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
6073 # that is aborted as part of fault injection.
6074 #
6075 # The value must be from 0.0 to 100.0 inclusive.
6076 },
6077 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
6078 # injection, before being sent to a backend service.
6079 # request to the backend service as part of fault injection.
6080 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
6081 # as a count of seconds and fractions of seconds at nanosecond
6082 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
6083 # or &quot;month&quot;. Range is approximately 10,000 years.
6084 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
6085 # Durations less than one second are represented with a 0
6086 # `seconds` field and a positive `nanos` field. Must be from 0
6087 # to 999,999,999 inclusive.
6088 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
6089 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
6090 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
6091 },
6092 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
6093 # which a delay is introduced as part of fault injection.
6094 #
6095 # The value must be from 0.0 to 100.0 inclusive.
6096 },
6097 },
6098 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
6099 # Unlike the timeout field where the timeout duration starts
6100 # from the time the request has been fully processed (known as*end-of-stream*),
6101 # the duration in this field is computed from the beginning of the stream
6102 # until the response has been processed, including all retries. A
6103 # stream that does not complete in this duration is closed.
6104 #
6105 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
6106 # with the route.
6107 #
6108 # This field is only allowed if the Url map is used with backend services
6109 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
6110 # as a count of seconds and fractions of seconds at nanosecond
6111 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
6112 # or &quot;month&quot;. Range is approximately 10,000 years.
6113 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
6114 # Durations less than one second are represented with a 0
6115 # `seconds` field and a positive `nanos` field. Must be from 0
6116 # to 999,999,999 inclusive.
6117 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
6118 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
6119 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
6120 },
6121 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
6122 # are shadowed to a separate mirrored backend service. The load balancer does
6123 # not wait for responses from the shadow service. Before sending traffic
6124 # to the shadow service, the host / authority header is suffixed with-shadow.
6125 #
6126 # Not supported when the URL map is bound to a target gRPC proxy that
6127 # has the validateForProxyless field set to true.
6128 # are shadowed to a separate mirrored backend service. The load balancer
6129 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
6130 # to the shadow service, the host or authority header is suffixed with-shadow.
6131 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
6132 # mirrored to.
6133 #
6134 # The backend service configured for a mirroring
6135 # policy must reference backends that are of the same type as the original
6136 # backend service matched in the URL map.
6137 #
6138 # Serverless NEG backends are not currently supported as a mirrored
6139 # backend service.
6140 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
6141 },
6142 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
6143 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
6144 # If not specified, defaults to 1.
6145 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
6146 #
6147 # If not specified, will use the timeout set in theHttpRouteAction field.
6148 # If timeout in the HttpRouteAction field is not set, this field
6149 # uses the largest timeout
6150 # among all backend services associated with the route.
6151 #
6152 # Not supported when the URL map is bound to a target gRPC proxy that
6153 # has the validateForProxyless field set to true.
6154 # as a count of seconds and fractions of seconds at nanosecond
6155 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
6156 # or &quot;month&quot;. Range is approximately 10,000 years.
6157 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
6158 # Durations less than one second are represented with a 0
6159 # `seconds` field and a positive `nanos` field. Must be from 0
6160 # to 999,999,999 inclusive.
6161 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
6162 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
6163 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
6164 },
6165 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
6166 # values are:
6167 #
6168 # - 5xx: retry is attempted if the instance or endpoint
6169 # responds with any 5xx response code, or if the instance or
6170 # endpoint does not respond at all. For example, disconnects, reset, read
6171 # timeout, connection failure, and refused streams.
6172 # - gateway-error: Similar to 5xx, but only
6173 # applies to response codes 502, 503 or504.
6174 # - connect-failure: a retry is attempted on failures
6175 # connecting to the instance or endpoint. For example, connection
6176 # timeouts.
6177 # - retriable-4xx: a retry is attempted if the instance
6178 # or endpoint responds with a 4xx response code.
6179 # The only error that you can retry is error code 409.
6180 # - refused-stream: a retry is attempted if the instance
6181 # or endpoint resets the stream with a REFUSED_STREAM error
6182 # code. This reset type indicates that it is safe to retry.
6183 # - cancelled: a retry is attempted if the gRPC status
6184 # code in the response header is set to cancelled.
6185 # - deadline-exceeded: a retry is attempted if the gRPC
6186 # status code in the response header is set todeadline-exceeded.
6187 # - internal: a retry is attempted if the gRPC
6188 # status code in the response header is set tointernal.
6189 # - resource-exhausted: a retry is attempted if the gRPC
6190 # status code in the response header is set toresource-exhausted.
6191 # - unavailable: a retry is attempted if the gRPC
6192 # status code in the response header is set tounavailable.
6193 #
6194 # Only the following codes are supported when the URL map is bound to
6195 # target gRPC proxy that has validateForProxyless field set to true.
6196 #
6197 # - cancelled
6198 # - deadline-exceeded
6199 # - internal
6200 # - resource-exhausted
6201 # - unavailable
6202 &quot;A String&quot;,
6203 ],
6204 },
6205 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
6206 # time the request has been fully processed (known as *end-of-stream*)
6207 # up until the response has been processed. Timeout includes
6208 # all retries.
6209 #
6210 # If not specified, this field uses the largest timeout among all backend
6211 # services associated with the route.
6212 #
6213 # Not supported when the URL map is bound to a target gRPC proxy that
6214 # has validateForProxyless field set to true.
6215 # as a count of seconds and fractions of seconds at nanosecond
6216 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
6217 # or &quot;month&quot;. Range is approximately 10,000 years.
6218 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
6219 # Durations less than one second are represented with a 0
6220 # `seconds` field and a positive `nanos` field. Must be from 0
6221 # to 999,999,999 inclusive.
6222 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
6223 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
6224 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
6225 },
6226 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
6227 # to the matched service.
6228 #
6229 # urlRewrite is the only action supported in UrlMaps
6230 # for classic Application Load Balancers.
6231 #
6232 # Not supported when the URL map is bound to a target gRPC proxy that
6233 # has the validateForProxyless field set to true.
6234 # backend service.
6235 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
6236 # host header is replaced with contents of hostRewrite.
6237 #
6238 # The value must be from 1 to 255 characters.
6239 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
6240 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
6241 #
6242 # The value must be from 1 to 1024 characters.
6243 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
6244 # header) using the HTTP template syntax.
6245 #
6246 # A corresponding
6247 # path_template_match must be specified. Any template variables must exist in
6248 # the path_template_match field.
6249 #
6250 #
6251 # - -At least one variable must be specified in the path_template_match
6252 # field
6253 # - You can omit variables from the rewritten URL
6254 # - The * and ** operators cannot be matched
6255 # unless they have a corresponding variable name - e.g.
6256 # {format=*} or {var=**}.
6257 #
6258 # For example, a path_template_match of /static/{format=**}
6259 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
6260 # rewrite, so that /{country}/{format}/{suffix=**} can be
6261 # rewritten as /content/{format}/{country}/{suffix}.
6262 #
6263 # At least
6264 # one non-empty routeRules[].matchRules[].path_template_match is
6265 # required.
6266 #
6267 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
6268 },
6269 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
6270 # occurs. The weights determine the fraction of traffic that flows to
6271 # their corresponding backend service. If all traffic needs to
6272 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
6273 #
6274 # After a backend service is identified and before forwarding
6275 # the request to
6276 # the backend service, advanced routing actions such as URL rewrites and
6277 # header transformations are applied depending on additional settings
6278 # specified in this HttpRouteAction.
6279 { # In contrast to a single BackendService in
6280 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
6281 # multiple backend services. The volume of traffic for each
6282 # backend service is proportional to the weight specified
6283 # in each WeightedBackendService
6284 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
6285 # resource. Before
6286 # forwarding the request to backendService, the load balancer
6287 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
6288 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
6289 # effect for the selected backendService.
6290 #
6291 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
6292 #
6293 # headerAction is not supported for load balancers that have
6294 # their loadBalancingScheme set to EXTERNAL.
6295 #
6296 # Not supported when the URL map is bound to a target gRPC proxy that
6297 # has validateForProxyless field set to true.
6298 # the request is passed along to the selected backendService.
6299 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
6300 { # Specification determining how headers are added to requests or responses.
6301 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
6302 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
6303 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
6304 # that already
6305 # exist for the header. If true, headerValue is set for the
6306 # header, discarding any values that were set for that header.
6307 #
6308 # The default value is true,
6309 # unless a variable is present in headerValue,
6310 # in which case the default value is false.
6311 # .
6312 },
6313 ],
6314 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
6315 # request before forwarding the request to the backendService.
6316 &quot;A String&quot;,
6317 ],
6318 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
6319 # client.
6320 { # Specification determining how headers are added to requests or responses.
6321 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
6322 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
6323 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
6324 # that already
6325 # exist for the header. If true, headerValue is set for the
6326 # header, discarding any values that were set for that header.
6327 #
6328 # The default value is true,
6329 # unless a variable is present in headerValue,
6330 # in which case the default value is false.
6331 # .
6332 },
6333 ],
6334 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
6335 # response before sending the response back to the client.
6336 &quot;A String&quot;,
6337 ],
6338 },
6339 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
6340 # computed asweight / (sum of all weightedBackendService weights in routeAction).
6341 #
6342 # The selection of a backend service is determined only for new traffic.
6343 # Once a user&#x27;s request has been directed to a backend service,
6344 # subsequent requests are sent to the same backend service as
6345 # determined by the backend service&#x27;s session affinity policy.
6346 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
6347 # splitting. If you do, the weighted traffic splitting configuration takes
6348 # precedence.
6349 #
6350 # The value must be from 0 to 1000.
6351 },
6352 ],
6353 },
6354 &quot;service&quot;: &quot;A String&quot;, # The full or partial URL of the backend service resource to which traffic
6355 # is directed if this rule is matched. If routeAction is
6356 # also specified, advanced routing actions, such as URL rewrites,
6357 # take effect before sending the request to the backend.
6358 #
6359 #
6360 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
6361 &quot;urlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When a path pattern is matched, the request is redirected to a URL
6362 # specified by urlRedirect.
6363 #
6364 #
6365 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
6366 #
6367 #
6368 # Not supported when the URL map is bound to a target gRPC proxy.
6369 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
6370 # was supplied in the request.
6371 #
6372 # The value must be from 1 to 255
6373 # characters.
6374 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
6375 # set to HTTPS.
6376 # If set to false, the URL scheme of the redirected request
6377 # remains the same as that of the request.
6378 #
6379 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
6380 #
6381 # The default is set to false.
6382 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
6383 # that was supplied in the request.
6384 #
6385 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
6386 # supplied, the path of the original request is used for the redirect.
6387 #
6388 # The value must be from 1 to 1024 characters.
6389 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
6390 # the HttpRouteRuleMatch, retaining the remaining portion
6391 # of the URL before redirecting the request.
6392 #
6393 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
6394 # supplied, the path of the original request is used for the redirect.
6395 #
6396 # The value must be from 1 to 1024 characters.
6397 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
6398 #
6399 # Supported values are:
6400 #
6401 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
6402 # to 301.
6403 # - FOUND, which corresponds to 302.
6404 # - SEE_OTHER which corresponds to 303.
6405 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
6406 # method is retained.
6407 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
6408 # method is retained.
6409 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
6410 # URL is
6411 # removed before redirecting the request. If set to false, the
6412 # query portion of the original URL is retained.
6413 #
6414 # The default is set to false.
6415 },
6416 },
6417 ],
6418 &quot;routeRules&quot;: [ # The list of HTTP route rules. Use this list instead ofpathRules when advanced route matching and routing actions are
6419 # desired. routeRules are evaluated in order of priority, from
6420 # the lowest to highest number.
6421 #
6422 # Within a given pathMatcher, you can set only one ofpathRules or routeRules.
6423 { # The HttpRouteRule setting specifies how to match an HTTP request
6424 # and the corresponding routing action that load balancing proxies perform.
6425 &quot;customErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # customErrorResponsePolicy specifies how the Load
6426 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
6427 #
6428 # If a policy for an
6429 # error code is not configured for the RouteRule, a policy for
6430 # the error code configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If
6431 # one is not specified inpathMatcher.defaultCustomErrorResponsePolicy, the policy
6432 # configured in UrlMap.defaultCustomErrorResponsePolicy takes
6433 # effect.
6434 #
6435 # For example, consider a UrlMap with the following configuration:
6436 #
6437 #
6438 # - UrlMap.defaultCustomErrorResponsePolicy are configured
6439 # with policies for 5xx and 4xx errors
6440 # - A RouteRule for /coming_soon/ is configured for the
6441 # error code 404.
6442 #
6443 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
6444 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
6445 # the policy in RouteRule.customErrorResponsePolicy takes
6446 # effect. If any of the requests in this example encounter a 500
6447 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
6448 #
6449 # When
6450 # used in conjunction withrouteRules.routeAction.retryPolicy, retries take
6451 # precedence. Only once all retries are exhausted, thecustomErrorResponsePolicy is applied. While attempting
6452 # a retry, if load balancer is successful in reaching the
6453 # service, the customErrorResponsePolicy is ignored and
6454 # the response from the service is returned to the client.
6455 #
6456 # customErrorResponsePolicy is supported only for
6457 # global external Application Load Balancers.
6458 # backend service or backend bucket responds with an error.
6459 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
6460 #
6461 # In a given policy, if you specify rules for both a range of error codes
6462 # as well as rules for specific error codes then rules with specific error
6463 # codes have a higher priority. For example, assume that you configure a rule
6464 # for 401 (Un-authorized) code, and another for all 4 series
6465 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
6466 # However if the backend service returns a 403, the rule for4xx takes effect.
6467 { # Specifies the mapping between the response code that will be returned along
6468 # with the custom error content and the response code returned by the backend
6469 # service.
6470 &quot;matchResponseCodes&quot;: [ # Valid values include:
6471 #
6472 #
6473 # - A number between 400 and 599: For example
6474 # 401 or 503, in which case the load balancer
6475 # applies the policy if the error code exactly matches this value.
6476 # - 5xx: Load Balancer will apply the policy if the
6477 # backend service responds with any response code in the range of
6478 # 500 to 599.
6479 # - 4xx: Load
6480 # Balancer will apply the policy if the backend service responds with any
6481 # response code in the range of 400 to
6482 # 499.
6483 #
6484 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
6485 &quot;A String&quot;,
6486 ],
6487 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
6488 # error content. If overrideResponseCode is not supplied, the
6489 # same response code returned by the original backend bucket or backend
6490 # service is returned to the client.
6491 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
6492 #
6493 # path must start
6494 # with a leading slash. path cannot have trailing slashes.
6495 #
6496 # If the file is not available in backendBucket or the
6497 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
6498 #
6499 # The value must
6500 # be from 1 to 1024 characters
6501 },
6502 ],
6503 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
6504 # contains the custom error content. Examples are:
6505 #
6506 #
6507 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
6508 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
6509 # - global/backendBuckets/myBackendBucket
6510 #
6511 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
6512 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
6513 #
6514 # If load balancer cannot reach
6515 # the backendBucket, a simple Not Found Error will
6516 # be returned, with the original response code (oroverrideResponseCode if configured).
6517 #
6518 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
6519 },
6520 &quot;description&quot;: &quot;A String&quot;, # The short description conveying the intent of this routeRule.
6521 #
6522 #
6523 # The description can have a maximum length of 1024 characters.
6524 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
6525 # for the selected backendService.
6526 #
6527 # The headerAction value specified here is applied before the
6528 # matching pathMatchers[].headerAction and afterpathMatchers[].routeRules[].routeAction.weightedBackendService.backendServiceWeightAction[].headerAction
6529 #
6530 # HeaderAction is not supported for load balancers
6531 # that have
6532 # their loadBalancingScheme set to EXTERNAL.
6533 #
6534 # Not supported when the URL map is bound to a target gRPC proxy that
6535 # has validateForProxyless field set to true.
6536 # the request is passed along to the selected backendService.
6537 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
6538 { # Specification determining how headers are added to requests or responses.
6539 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
6540 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
6541 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
6542 # that already
6543 # exist for the header. If true, headerValue is set for the
6544 # header, discarding any values that were set for that header.
6545 #
6546 # The default value is true,
6547 # unless a variable is present in headerValue,
6548 # in which case the default value is false.
6549 # .
6550 },
6551 ],
6552 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
6553 # request before forwarding the request to the backendService.
6554 &quot;A String&quot;,
6555 ],
6556 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
6557 # client.
6558 { # Specification determining how headers are added to requests or responses.
6559 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
6560 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
6561 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
6562 # that already
6563 # exist for the header. If true, headerValue is set for the
6564 # header, discarding any values that were set for that header.
6565 #
6566 # The default value is true,
6567 # unless a variable is present in headerValue,
6568 # in which case the default value is false.
6569 # .
6570 },
6571 ],
6572 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
6573 # response before sending the response back to the client.
6574 &quot;A String&quot;,
6575 ],
6576 },
6577 &quot;matchRules&quot;: [ # The list of criteria for matching attributes of a request to thisrouteRule. This list has OR semantics: the request matches
6578 # this routeRule when any of thematchRules are satisfied. However predicates within
6579 # a given matchRule have AND semantics. All predicates
6580 # within a matchRule must match for the request to
6581 # match the rule.
6582 { # HttpRouteRuleMatch specifies a set of criteria for matching
6583 # requests to an HttpRouteRule. All specified criteria must
6584 # be satisfied for a match to occur.
6585 &quot;fullPathMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the path of the
6586 # request must exactly match the value specified infullPathMatch after removing any query parameters and anchor
6587 # that may be part of the original URL.
6588 #
6589 # fullPathMatch must be from 1 to 1024 characters.
6590 #
6591 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be
6592 # specified.
6593 &quot;headerMatches&quot;: [ # Specifies a list of header match criteria, all of which must match
6594 # corresponding headers in the request.
6595 { # matchRule criteria for request header matches.
6596 &quot;exactMatch&quot;: &quot;A String&quot;, # The value should exactly match contents of exactMatch.
6597 #
6598 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
6599 &quot;headerName&quot;: &quot;A String&quot;, # The name of the HTTP header to match.
6600 #
6601 # For matching against the HTTP request&#x27;s authority, use a headerMatch
6602 # with the header name &quot;:authority&quot;.
6603 #
6604 # For matching a request&#x27;s method, use the headerName &quot;:method&quot;.
6605 #
6606 # When the URL map is bound to a target gRPC proxy that has
6607 # the validateForProxyless field set to true, only
6608 # non-binary
6609 # user-specified custom metadata and the `content-type` header are supported.
6610 # The following transport-level headers cannot be used in header matching
6611 # rules:
6612 # `:authority`, `:method`, `:path`, `:scheme`, `user-agent`,
6613 # `accept-encoding`, `content-encoding`, `grpc-accept-encoding`,
6614 # `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags-bin`,
6615 # `grpc-timeout` and `grpc-trace-bin`.
6616 &quot;invertMatch&quot;: True or False, # If set to false, the headerMatch is considered a
6617 # match if the preceding match criteria are met. If set to true,
6618 # the headerMatch is considered a match if the preceding
6619 # match criteria are NOT met.
6620 #
6621 # The default setting is false.
6622 &quot;prefixMatch&quot;: &quot;A String&quot;, # The value of the header must start with the contents ofprefixMatch.
6623 #
6624 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
6625 &quot;presentMatch&quot;: True or False, # A header with the contents of headerName must exist. The
6626 # match takes place whether or not the request&#x27;s header has a value.
6627 #
6628 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
6629 &quot;rangeMatch&quot;: { # HttpRouteRuleMatch criteria for field values that must stay # The header value must be an integer and its value must be in the range
6630 # specified in rangeMatch. If the header does not contain an
6631 # integer, number or is empty, the match fails.
6632 #
6633 # For example for a range [-5, 0]
6634 #
6635 #
6636 # - -3 will match.
6637 # - 0 will not match.
6638 # - 0.25 will not match.
6639 # - -3someString will not match.
6640 #
6641 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
6642 #
6643 # rangeMatch is not supported for load balancers
6644 # that have loadBalancingScheme set to EXTERNAL.
6645 # within the specified integer range.
6646 &quot;rangeEnd&quot;: &quot;A String&quot;, # The end of the range (exclusive) in signed long integer format.
6647 &quot;rangeStart&quot;: &quot;A String&quot;, # The start of the range (inclusive) in signed long integer format.
6648 },
6649 &quot;regexMatch&quot;: &quot;A String&quot;, # The value of the header must match the regular expression specified inregexMatch.
6650 # For more information about regular expression syntax, see Syntax.
6651 #
6652 # For matching against a port specified in the HTTP request, use a
6653 # headerMatch with headerName set to PORT and a regular expression that
6654 # satisfies the RFC2616 Host header&#x27;s port specifier.
6655 #
6656 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
6657 #
6658 # Regular expressions can only be used when the loadBalancingScheme is
6659 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
6660 # (regional scope) or INTERNAL_MANAGED.
6661 &quot;suffixMatch&quot;: &quot;A String&quot;, # The value of the header must end with the contents ofsuffixMatch.
6662 #
6663 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
6664 },
6665 ],
6666 &quot;ignoreCase&quot;: True or False, # Specifies that prefixMatch and fullPathMatch
6667 # matches are case sensitive.
6668 #
6669 # The default value is false.
6670 #
6671 # ignoreCase must not be used with regexMatch.
6672 #
6673 # Not supported when the URL map is bound to a target gRPC proxy.
6674 &quot;metadataFilters&quot;: [ # Opaque filter criteria used by the load balancer to restrict routing
6675 # configuration to a limited set of xDS
6676 # compliant clients. In their xDS requests to the load balancer, xDS clients
6677 # present node
6678 # metadata. When there is a match, the relevant routing configuration
6679 # is made available to those proxies.
6680 #
6681 # For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least one of thefilterLabels must match the corresponding label provided in
6682 # the metadata. If its filterMatchCriteria is set to
6683 # MATCH_ALL, then all of its filterLabels must match with
6684 # corresponding labels provided in the metadata. If multiple
6685 # metadata filters are specified, all of them need to be
6686 # satisfied in order to be considered a match.
6687 #
6688 # metadataFilters specified here is applied after those
6689 # specified in ForwardingRule that refers to theUrlMap this HttpRouteRuleMatch belongs to.
6690 #
6691 # metadataFilters only applies to load balancers that haveloadBalancingScheme set toINTERNAL_SELF_MANAGED.
6692 #
6693 # Not supported when the URL map is bound to a target gRPC proxy that
6694 # has validateForProxyless field set to true.
6695 { # Opaque filter criteria used by load balancers to restrict routing
6696 # configuration to a limited set of load balancing proxies. Proxies and
6697 # sidecars involved in load balancing would typically present metadata to the
6698 # load balancers that need to match criteria specified here. If a match takes
6699 # place, the relevant configuration is made available to those
6700 # proxies.
6701 #
6702 # For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least
6703 # one of thefilterLabels must match the corresponding label provided in
6704 # the metadata. If its filterMatchCriteria is set to
6705 # MATCH_ALL, then all of its filterLabels must match with
6706 # corresponding labels provided in the metadata.
6707 #
6708 # An example for using metadataFilters would be: if
6709 # load balancing involves
6710 # Envoys, they receive routing configuration when values inmetadataFilters match values supplied in of their XDS requests to loadbalancers.
6711 &quot;filterLabels&quot;: [ # The list of label value pairs that must match labels in the provided
6712 # metadata based on filterMatchCriteria
6713 #
6714 # This list must not be empty and can have at the most 64 entries.
6715 { # MetadataFilter label name value pairs that are expected
6716 # to match corresponding labels presented as metadata to the load balancer.
6717 &quot;name&quot;: &quot;A String&quot;, # Name of metadata label.
6718 #
6719 # The name can have a maximum length of 1024 characters and must be at
6720 # least 1 character long.
6721 &quot;value&quot;: &quot;A String&quot;, # The value of the label must match the specified value.
6722 #
6723 # value can have a maximum length of 1024 characters.
6724 },
6725 ],
6726 &quot;filterMatchCriteria&quot;: &quot;A String&quot;, # Specifies how individual filter label matches
6727 # within the list of filterLabels and contributes toward the
6728 # overall metadataFilter match.
6729 #
6730 # Supported values are:
6731 #
6732 # - MATCH_ANY: at least one of the filterLabels
6733 # must have a matching label in the provided metadata.
6734 # - MATCH_ALL: all filterLabels must have
6735 # matching labels in the provided metadata.
6736 },
6737 ],
6738 &quot;pathTemplateMatch&quot;: &quot;A String&quot;, # If specified, this field defines a path template pattern that must match
6739 # the :path header after the query string is removed.
6740 #
6741 # A path template pattern can include variables and wildcards.
6742 # Variables are enclosed in curly braces, for example{variable_name}. Wildcards include * that
6743 # matches a single path segment, and ** that matches zero or
6744 # more path segments. The pattern must follow these rules:
6745 #
6746 #
6747 # - The value must be between 1 and 1024 characters.
6748 # - The pattern must start with a leading slash (&quot;/&quot;).
6749 # - No more than 5 operators (variables or wildcards) may appear in
6750 # the pattern.
6751 #
6752 # Precisely one ofprefixMatch, fullPathMatch,regexMatch, or pathTemplateMatch must be
6753 # set.
6754 &quot;prefixMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the request&#x27;s
6755 # path must begin with the specified prefixMatch.prefixMatch must begin with a /.
6756 #
6757 # The value must be from 1 to 1024 characters.
6758 #
6759 # The * character inside a prefix match is
6760 # treated as a literal character, not as a wildcard.
6761 #
6762 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match can be
6763 # used within a matchRule.
6764 &quot;queryParameterMatches&quot;: [ # Specifies a list of query parameter match criteria, all of which must
6765 # match corresponding query parameters in the request.
6766 #
6767 # Not supported when the URL map is bound to a target gRPC proxy.
6768 { # HttpRouteRuleMatch criteria for a request&#x27;s query parameter.
6769 &quot;exactMatch&quot;: &quot;A String&quot;, # The queryParameterMatch matches if the value of the
6770 # parameter exactly matches the contents of exactMatch.
6771 #
6772 # Only one of presentMatch, exactMatch, orregexMatch must be set.
6773 &quot;name&quot;: &quot;A String&quot;, # The name of the query parameter to match. The query parameter must exist in
6774 # the request, in the absence of which the request match fails.
6775 &quot;presentMatch&quot;: True or False, # Specifies that the queryParameterMatch matches if the
6776 # request contains the query parameter, irrespective of whether the
6777 # parameter has a value or not.
6778 #
6779 # Only one of presentMatch, exactMatch, orregexMatch must be set.
6780 &quot;regexMatch&quot;: &quot;A String&quot;, # The queryParameterMatch matches if the value of the
6781 # parameter matches the regular expression specified byregexMatch. For
6782 # more information about regular expression syntax, see Syntax.
6783 #
6784 # Only one of presentMatch, exactMatch, orregexMatch must be set.
6785 #
6786 # Regular expressions can only be used when the loadBalancingScheme is
6787 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
6788 # (regional scope) or INTERNAL_MANAGED.
6789 },
6790 ],
6791 &quot;regexMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the path of the
6792 # request must satisfy the regular expression specified inregexMatch after removing any query parameters and anchor
6793 # supplied with the original URL. For
6794 # more information about regular expression syntax, see Syntax.
6795 #
6796 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be
6797 # specified.
6798 #
6799 # Regular expressions can only be used when the loadBalancingScheme is
6800 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
6801 # (regional scope) or INTERNAL_MANAGED.
6802 },
6803 ],
6804 &quot;priority&quot;: 42, # For routeRules within a given pathMatcher,
6805 # priority determines the order in which a load balancer interpretsrouteRules. RouteRules are evaluated in order
6806 # of priority, from the lowest to highest number. The priority of a
6807 # rule decreases as its number increases (1, 2, 3, N+1). The first rule
6808 # that matches the request is applied.
6809 #
6810 #
6811 # You cannot configure two or more routeRules with the same priority.
6812 # Priority for each rule must be set to a number from 0 to 2147483647
6813 # inclusive.
6814 #
6815 #
6816 # Priority numbers can have gaps, which enable you to add or remove rules
6817 # in the future without affecting the rest of the rules. For example, 1, 2,
6818 # 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you
6819 # could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future
6820 # without any impact on existing rules.
6821 &quot;routeAction&quot;: { # In response to a matching matchRule, the load balancer
6822 # performs advanced routing actions, such as URL rewrites and header
6823 # transformations, before forwarding the request to the selected backend.
6824 #
6825 #
6826 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
6827 #
6828 #
6829 # URL maps for classic Application Load Balancers only support
6830 # the urlRewrite action within a route rule&#x27;srouteAction.
6831 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
6832 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
6833 # property must be specified. This policy cannot be specified if any target
6834 # backend has Identity-Aware Proxy enabled.
6835 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
6836 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
6837 # header names can be specified. The cache is bypassed for all `cacheMode`
6838 # values.
6839 &quot;A String&quot;,
6840 ],
6841 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
6842 # on the backend type: for Backend Services, the complete request URI is
6843 # used; for Backend Buckets, the request URI is used without the protocol or
6844 # host, and only query parameters known to Cloud Storage are included.
6845 # Policy defined on Route Action.
6846 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
6847 # parameters will be included. Either specify `excludedQueryParameters`
6848 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
6849 # encoded and not treated as delimiters.
6850 #
6851 # Note: This field applies to routes that use backend services. Attempting
6852 # to set it on a route that points exclusively to Backend Buckets will
6853 # result in a configuration error. For routes that point to a Backend
6854 # Bucket, use `includedQueryParameters` to define which parameters should
6855 # be part of the cache key.
6856 &quot;A String&quot;,
6857 ],
6858 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
6859 #
6860 # Note: This setting is only applicable to routes that use a Backend
6861 # Service. It does not affect requests served by a Backend Bucket, as the
6862 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
6863 # it on a route that points exclusively to Backend Buckets will result in a
6864 # configuration error.
6865 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
6866 #
6867 # Note: This setting is only applicable to routes that use a Backend
6868 # Service. It does not affect requests served by a Backend Bucket, as the
6869 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
6870 # set on a route that points exclusively to Backend Buckets will result in
6871 # a configuration error.
6872 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
6873 # `includedQueryParameters` and `excludedQueryParameters`. If neither
6874 # is set, the entire query string will be included. If false, the query
6875 # string will be excluded from the cache key entirely.
6876 #
6877 # Note: This field applies to routes that use backend services. Attempting
6878 # to set it on a route that points exclusively to Backend Buckets will
6879 # result in a configuration error. For routes that point to a Backend
6880 # Bucket, use `includedQueryParameters` to define which parameters should
6881 # be part of the cache key.
6882 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
6883 # The name=value pair will be used in the cache key Cloud CDN generates.
6884 #
6885 # Note: This setting is only applicable to routes that use a Backend
6886 # Service. It does not affect requests served by a Backend Bucket.
6887 # Attempting to set it on a route that points exclusively to Backend
6888 # Buckets will result in a configuration error. Up to 5 cookie names can be
6889 # specified.
6890 &quot;A String&quot;,
6891 ],
6892 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
6893 &quot;A String&quot;,
6894 ],
6895 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
6896 # parameters will be excluded. Either specify `includedQueryParameters`
6897 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
6898 # encoded and not treated as delimiters.
6899 &quot;A String&quot;,
6900 ],
6901 },
6902 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
6903 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
6904 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
6905 # content. This is used to clamp the max-age (or Expires) value sent to the
6906 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
6907 # is used for the response max-age directive, along with a &quot;public&quot;
6908 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
6909 # clamps the max-age from the origin (if specified), or else sets the
6910 # response max-age directive to the lesser of the `clientTtl` and
6911 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
6912 # present. The maximum allowed value is 31,622,400s (1 year). If not
6913 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
6914 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
6915 # `USE_ORIGIN_HEADERS`.
6916 # as a count of seconds and fractions of seconds at nanosecond
6917 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
6918 # or &quot;month&quot;. Range is approximately 10,000 years.
6919 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
6920 # Durations less than one second are represented with a 0
6921 # `seconds` field and a positive `nanos` field. Must be from 0
6922 # to 999,999,999 inclusive.
6923 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
6924 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
6925 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
6926 },
6927 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
6928 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
6929 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
6930 # greater than that of `maxTtl`. When the `cacheMode` is set to
6931 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
6932 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
6933 # accessed objects may be evicted from the cache before the defined TTL. If
6934 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
6935 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
6936 # `USE_ORIGIN_HEADERS`.
6937 # as a count of seconds and fractions of seconds at nanosecond
6938 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
6939 # or &quot;month&quot;. Range is approximately 10,000 years.
6940 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
6941 # Durations less than one second are represented with a 0
6942 # `seconds` field and a positive `nanos` field. Must be from 0
6943 # to 999,999,999 inclusive.
6944 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
6945 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
6946 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
6947 },
6948 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
6949 # attempt to set a max-age or s-maxage higher than this, or an Expires header
6950 # more than `maxTtl` seconds in the future will be capped at the value of
6951 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
6952 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
6953 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
6954 # Infrequently accessed objects may be evicted from the cache before the
6955 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
6956 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
6957 # mode.
6958 # as a count of seconds and fractions of seconds at nanosecond
6959 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
6960 # or &quot;month&quot;. Range is approximately 10,000 years.
6961 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
6962 # Durations less than one second are represented with a 0
6963 # `seconds` field and a positive `nanos` field. Must be from 0
6964 # to 999,999,999 inclusive.
6965 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
6966 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
6967 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
6968 },
6969 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
6970 # to apply fine-grained caching for common errors or redirects.
6971 # This can reduce the load on your origin and improve end-user
6972 # experience by reducing response latency.
6973 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
6974 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
6975 # the specified response code that lack any Cache-Control, Expires, or
6976 # Pragma: no-cache directives. When the `cacheMode` is set to
6977 # `FORCE_CACHE_ALL`, negative caching applies to all responses
6978 # with the specified response code, and overrides any caching headers. By
6979 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
6980 #
6981 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
6982 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
6983 # * 405 (Method Not Found), 501 (Not Implemented): 60s
6984 #
6985 # These defaults can be overridden in `negativeCachingPolicy`.
6986 # If not specified, Cloud CDN applies negative caching by default.
6987 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
6988 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
6989 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
6990 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
6991 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
6992 # all response codes that you wish to cache. Cloud CDN will not apply any
6993 # default negative caching when a policy exists.
6994 { # Specify CDN TTLs for response error codes.
6995 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
6996 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
6997 # specified as values, and you cannot specify a status code more than
6998 # once.
6999 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
7000 # corresponding status code.
7001 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
7002 # objects may be evicted from the cache before the defined TTL.
7003 # as a count of seconds and fractions of seconds at nanosecond
7004 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
7005 # or &quot;month&quot;. Range is approximately 10,000 years.
7006 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
7007 # Durations less than one second are represented with a 0
7008 # `seconds` field and a positive `nanos` field. Must be from 0
7009 # to 999,999,999 inclusive.
7010 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
7011 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
7012 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
7013 },
7014 },
7015 ],
7016 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
7017 # requests into a small number of requests to the origin. If not specified,
7018 # Cloud CDN applies request coalescing by default.
7019 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
7020 # content with the origin, or when an error is encountered when refreshing
7021 # the cache.
7022 # This setting defines the default &quot;max-stale&quot; duration for any cached
7023 # responses that do not specify a max-stale directive. Stale responses that
7024 # exceed the TTL configured here will not be served. The default limit
7025 # (max-stale) is 86400s (1 day), which will allow stale content to be
7026 # served up to this limit beyond the max-age (or s-maxage) of a cached
7027 # response.
7028 # The maximum allowed value is 604800 (1 week).
7029 # Set this to zero (0) to disable serve-while-stale.
7030 # as a count of seconds and fractions of seconds at nanosecond
7031 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
7032 # or &quot;month&quot;. Range is approximately 10,000 years.
7033 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
7034 # Durations less than one second are represented with a 0
7035 # `seconds` field and a positive `nanos` field. Must be from 0
7036 # to 999,999,999 inclusive.
7037 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
7038 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
7039 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
7040 },
7041 },
7042 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
7043 # information about the W3C recommendation for cross-origin resource sharing
7044 # (CORS), see Fetch API Living
7045 # Standard.
7046 #
7047 # Not supported when the URL map is bound to a target gRPC proxy.
7048 # information about the W3C recommendation for cross-origin resource sharing
7049 # (CORS), see Fetch API Living
7050 # Standard.
7051 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
7052 # indicates that
7053 # the actual request can include user credentials. This field translates to
7054 # the Access-Control-Allow-Credentials header.
7055 #
7056 # Default is false.
7057 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
7058 # header.
7059 &quot;A String&quot;,
7060 ],
7061 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
7062 # header.
7063 &quot;A String&quot;,
7064 ],
7065 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
7066 # more information, see regular expression syntax.
7067 #
7068 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
7069 #
7070 # Regular expressions can only be used when the loadBalancingScheme is
7071 # set to INTERNAL_SELF_MANAGED.
7072 &quot;A String&quot;,
7073 ],
7074 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
7075 #
7076 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
7077 &quot;A String&quot;,
7078 ],
7079 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
7080 # The default value is false, which indicates that the CORS
7081 # policy is in effect.
7082 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
7083 # header.
7084 &quot;A String&quot;,
7085 ],
7086 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
7087 # seconds. This field translates to the Access-Control-Max-Age
7088 # header.
7089 },
7090 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
7091 # the resiliency of clients to backend service failure. As part of fault
7092 # injection, when clients send requests to a backend service, delays can be
7093 # introduced by a load balancer on a percentage of requests before sending
7094 # those requests to the backend service. Similarly requests from clients can
7095 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
7096 # that are configured with a fault_injection_policy if:
7097 # 1. The traffic is generated by fault injection AND
7098 # 2. The fault injection is not a delay fault injection.
7099 # Fault injection is not supported with the classic Application Load Balancer
7100 # . To see which load balancers support fault injection,
7101 # see Load
7102 # balancing: Routing and traffic management features.
7103 # the resiliency of clients to backend service failure. As part of fault
7104 # injection, when clients send requests to a backend service, delays can be
7105 # introduced by the load balancer on a percentage of requests before sending
7106 # those request to the backend service. Similarly requests from clients can be
7107 # aborted by the load balancer for a percentage of requests.
7108 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
7109 # injection.
7110 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
7111 #
7112 # The value must be from 200 to 599 inclusive.
7113 #
7114 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
7115 # according to this
7116 # mapping table. HTTP status 200 is mapped to gRPC status
7117 # UNKNOWN. Injecting an OK status is currently not supported by
7118 # Traffic Director.
7119 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
7120 # that is aborted as part of fault injection.
7121 #
7122 # The value must be from 0.0 to 100.0 inclusive.
7123 },
7124 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
7125 # injection, before being sent to a backend service.
7126 # request to the backend service as part of fault injection.
7127 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
7128 # as a count of seconds and fractions of seconds at nanosecond
7129 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
7130 # or &quot;month&quot;. Range is approximately 10,000 years.
7131 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
7132 # Durations less than one second are represented with a 0
7133 # `seconds` field and a positive `nanos` field. Must be from 0
7134 # to 999,999,999 inclusive.
7135 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
7136 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
7137 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
7138 },
7139 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
7140 # which a delay is introduced as part of fault injection.
7141 #
7142 # The value must be from 0.0 to 100.0 inclusive.
7143 },
7144 },
7145 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
7146 # Unlike the timeout field where the timeout duration starts
7147 # from the time the request has been fully processed (known as*end-of-stream*),
7148 # the duration in this field is computed from the beginning of the stream
7149 # until the response has been processed, including all retries. A
7150 # stream that does not complete in this duration is closed.
7151 #
7152 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
7153 # with the route.
7154 #
7155 # This field is only allowed if the Url map is used with backend services
7156 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
7157 # as a count of seconds and fractions of seconds at nanosecond
7158 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
7159 # or &quot;month&quot;. Range is approximately 10,000 years.
7160 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
7161 # Durations less than one second are represented with a 0
7162 # `seconds` field and a positive `nanos` field. Must be from 0
7163 # to 999,999,999 inclusive.
7164 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
7165 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
7166 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
7167 },
7168 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
7169 # are shadowed to a separate mirrored backend service. The load balancer does
7170 # not wait for responses from the shadow service. Before sending traffic
7171 # to the shadow service, the host / authority header is suffixed with-shadow.
7172 #
7173 # Not supported when the URL map is bound to a target gRPC proxy that
7174 # has the validateForProxyless field set to true.
7175 # are shadowed to a separate mirrored backend service. The load balancer
7176 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
7177 # to the shadow service, the host or authority header is suffixed with-shadow.
7178 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
7179 # mirrored to.
7180 #
7181 # The backend service configured for a mirroring
7182 # policy must reference backends that are of the same type as the original
7183 # backend service matched in the URL map.
7184 #
7185 # Serverless NEG backends are not currently supported as a mirrored
7186 # backend service.
7187 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
7188 },
7189 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
7190 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
7191 # If not specified, defaults to 1.
7192 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
7193 #
7194 # If not specified, will use the timeout set in theHttpRouteAction field.
7195 # If timeout in the HttpRouteAction field is not set, this field
7196 # uses the largest timeout
7197 # among all backend services associated with the route.
7198 #
7199 # Not supported when the URL map is bound to a target gRPC proxy that
7200 # has the validateForProxyless field set to true.
7201 # as a count of seconds and fractions of seconds at nanosecond
7202 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
7203 # or &quot;month&quot;. Range is approximately 10,000 years.
7204 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
7205 # Durations less than one second are represented with a 0
7206 # `seconds` field and a positive `nanos` field. Must be from 0
7207 # to 999,999,999 inclusive.
7208 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
7209 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
7210 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
7211 },
7212 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
7213 # values are:
7214 #
7215 # - 5xx: retry is attempted if the instance or endpoint
7216 # responds with any 5xx response code, or if the instance or
7217 # endpoint does not respond at all. For example, disconnects, reset, read
7218 # timeout, connection failure, and refused streams.
7219 # - gateway-error: Similar to 5xx, but only
7220 # applies to response codes 502, 503 or504.
7221 # - connect-failure: a retry is attempted on failures
7222 # connecting to the instance or endpoint. For example, connection
7223 # timeouts.
7224 # - retriable-4xx: a retry is attempted if the instance
7225 # or endpoint responds with a 4xx response code.
7226 # The only error that you can retry is error code 409.
7227 # - refused-stream: a retry is attempted if the instance
7228 # or endpoint resets the stream with a REFUSED_STREAM error
7229 # code. This reset type indicates that it is safe to retry.
7230 # - cancelled: a retry is attempted if the gRPC status
7231 # code in the response header is set to cancelled.
7232 # - deadline-exceeded: a retry is attempted if the gRPC
7233 # status code in the response header is set todeadline-exceeded.
7234 # - internal: a retry is attempted if the gRPC
7235 # status code in the response header is set tointernal.
7236 # - resource-exhausted: a retry is attempted if the gRPC
7237 # status code in the response header is set toresource-exhausted.
7238 # - unavailable: a retry is attempted if the gRPC
7239 # status code in the response header is set tounavailable.
7240 #
7241 # Only the following codes are supported when the URL map is bound to
7242 # target gRPC proxy that has validateForProxyless field set to true.
7243 #
7244 # - cancelled
7245 # - deadline-exceeded
7246 # - internal
7247 # - resource-exhausted
7248 # - unavailable
7249 &quot;A String&quot;,
7250 ],
7251 },
7252 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
7253 # time the request has been fully processed (known as *end-of-stream*)
7254 # up until the response has been processed. Timeout includes
7255 # all retries.
7256 #
7257 # If not specified, this field uses the largest timeout among all backend
7258 # services associated with the route.
7259 #
7260 # Not supported when the URL map is bound to a target gRPC proxy that
7261 # has validateForProxyless field set to true.
7262 # as a count of seconds and fractions of seconds at nanosecond
7263 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
7264 # or &quot;month&quot;. Range is approximately 10,000 years.
7265 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
7266 # Durations less than one second are represented with a 0
7267 # `seconds` field and a positive `nanos` field. Must be from 0
7268 # to 999,999,999 inclusive.
7269 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
7270 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
7271 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
7272 },
7273 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
7274 # to the matched service.
7275 #
7276 # urlRewrite is the only action supported in UrlMaps
7277 # for classic Application Load Balancers.
7278 #
7279 # Not supported when the URL map is bound to a target gRPC proxy that
7280 # has the validateForProxyless field set to true.
7281 # backend service.
7282 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
7283 # host header is replaced with contents of hostRewrite.
7284 #
7285 # The value must be from 1 to 255 characters.
7286 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
7287 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
7288 #
7289 # The value must be from 1 to 1024 characters.
7290 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
7291 # header) using the HTTP template syntax.
7292 #
7293 # A corresponding
7294 # path_template_match must be specified. Any template variables must exist in
7295 # the path_template_match field.
7296 #
7297 #
7298 # - -At least one variable must be specified in the path_template_match
7299 # field
7300 # - You can omit variables from the rewritten URL
7301 # - The * and ** operators cannot be matched
7302 # unless they have a corresponding variable name - e.g.
7303 # {format=*} or {var=**}.
7304 #
7305 # For example, a path_template_match of /static/{format=**}
7306 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
7307 # rewrite, so that /{country}/{format}/{suffix=**} can be
7308 # rewritten as /content/{format}/{country}/{suffix}.
7309 #
7310 # At least
7311 # one non-empty routeRules[].matchRules[].path_template_match is
7312 # required.
7313 #
7314 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
7315 },
7316 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
7317 # occurs. The weights determine the fraction of traffic that flows to
7318 # their corresponding backend service. If all traffic needs to
7319 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
7320 #
7321 # After a backend service is identified and before forwarding
7322 # the request to
7323 # the backend service, advanced routing actions such as URL rewrites and
7324 # header transformations are applied depending on additional settings
7325 # specified in this HttpRouteAction.
7326 { # In contrast to a single BackendService in
7327 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
7328 # multiple backend services. The volume of traffic for each
7329 # backend service is proportional to the weight specified
7330 # in each WeightedBackendService
7331 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
7332 # resource. Before
7333 # forwarding the request to backendService, the load balancer
7334 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
7335 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
7336 # effect for the selected backendService.
7337 #
7338 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
7339 #
7340 # headerAction is not supported for load balancers that have
7341 # their loadBalancingScheme set to EXTERNAL.
7342 #
7343 # Not supported when the URL map is bound to a target gRPC proxy that
7344 # has validateForProxyless field set to true.
7345 # the request is passed along to the selected backendService.
7346 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
7347 { # Specification determining how headers are added to requests or responses.
7348 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
7349 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
7350 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
7351 # that already
7352 # exist for the header. If true, headerValue is set for the
7353 # header, discarding any values that were set for that header.
7354 #
7355 # The default value is true,
7356 # unless a variable is present in headerValue,
7357 # in which case the default value is false.
7358 # .
7359 },
7360 ],
7361 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
7362 # request before forwarding the request to the backendService.
7363 &quot;A String&quot;,
7364 ],
7365 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
7366 # client.
7367 { # Specification determining how headers are added to requests or responses.
7368 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
7369 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
7370 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
7371 # that already
7372 # exist for the header. If true, headerValue is set for the
7373 # header, discarding any values that were set for that header.
7374 #
7375 # The default value is true,
7376 # unless a variable is present in headerValue,
7377 # in which case the default value is false.
7378 # .
7379 },
7380 ],
7381 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
7382 # response before sending the response back to the client.
7383 &quot;A String&quot;,
7384 ],
7385 },
7386 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
7387 # computed asweight / (sum of all weightedBackendService weights in routeAction).
7388 #
7389 # The selection of a backend service is determined only for new traffic.
7390 # Once a user&#x27;s request has been directed to a backend service,
7391 # subsequent requests are sent to the same backend service as
7392 # determined by the backend service&#x27;s session affinity policy.
7393 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
7394 # splitting. If you do, the weighted traffic splitting configuration takes
7395 # precedence.
7396 #
7397 # The value must be from 0 to 1000.
7398 },
7399 ],
7400 },
7401 &quot;service&quot;: &quot;A String&quot;, # The full or partial URL of the backend service resource to which traffic
7402 # is directed if this rule is matched. If routeAction is
7403 # also specified, advanced routing actions, such as URL rewrites,
7404 # take effect before sending the request to the backend.
7405 #
7406 #
7407 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
7408 &quot;urlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When this rule is matched, the request is redirected to a URL
7409 # specified by urlRedirect.
7410 #
7411 #
7412 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
7413 #
7414 #
7415 # Not supported when the URL map is bound to a target gRPC proxy.
7416 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
7417 # was supplied in the request.
7418 #
7419 # The value must be from 1 to 255
7420 # characters.
7421 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
7422 # set to HTTPS.
7423 # If set to false, the URL scheme of the redirected request
7424 # remains the same as that of the request.
7425 #
7426 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
7427 #
7428 # The default is set to false.
7429 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
7430 # that was supplied in the request.
7431 #
7432 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
7433 # supplied, the path of the original request is used for the redirect.
7434 #
7435 # The value must be from 1 to 1024 characters.
7436 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
7437 # the HttpRouteRuleMatch, retaining the remaining portion
7438 # of the URL before redirecting the request.
7439 #
7440 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
7441 # supplied, the path of the original request is used for the redirect.
7442 #
7443 # The value must be from 1 to 1024 characters.
7444 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
7445 #
7446 # Supported values are:
7447 #
7448 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
7449 # to 301.
7450 # - FOUND, which corresponds to 302.
7451 # - SEE_OTHER which corresponds to 303.
7452 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
7453 # method is retained.
7454 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
7455 # method is retained.
7456 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
7457 # URL is
7458 # removed before redirecting the request. If set to false, the
7459 # query portion of the original URL is retained.
7460 #
7461 # The default is set to false.
7462 },
7463 },
7464 ],
7465 },
7466 ],
7467 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional URL map resides.
7468 # This field is not applicable to global URL maps.
7469 # You must specify this field as part of the HTTP request URL. It is
7470 # not settable as a field in the request body.
7471 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
7472 &quot;tests&quot;: [ # The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test cases pass. You can specify a
7473 # maximum of 100 tests per UrlMap.
7474 #
7475 # Not supported when the URL map is bound to a target gRPC proxy that
7476 # has validateForProxyless field set to true.
7477 { # Message for the expected URL mappings.
7478 &quot;description&quot;: &quot;A String&quot;, # Description of this test case.
7479 &quot;expectedOutputUrl&quot;: &quot;A String&quot;, # The expected output URL evaluated by the load balancer
7480 # containing the scheme, host, path and query parameters.
7481 #
7482 # For rules that forward requests to backends, the test passes only whenexpectedOutputUrl matches the request forwarded by
7483 # the load balancer to backends. For rules with urlRewrite,
7484 # the test verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite action. When service is specified,expectedOutputUrl`s scheme is ignored.
7485 #
7486 # For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the load balancer&#x27;s
7487 # redirect response. If urlRedirect specifieshttps_redirect, the test passes only if the scheme inexpectedOutputUrl is also set to HTTPS.
7488 # If urlRedirect specifies strip_query, the test
7489 # passes only if expectedOutputUrl does not contain any query
7490 # parameters.
7491 #
7492 # expectedOutputUrl is optional whenservice is specified.
7493 &quot;expectedRedirectResponseCode&quot;: 42, # For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in
7494 # load balancer&#x27;s redirect response.
7495 #
7496 # expectedRedirectResponseCode cannot be set whenservice is set.
7497 &quot;headers&quot;: [ # HTTP headers for this request. If headers contains
7498 # a host header, then host must also match the header value.
7499 { # HTTP headers used in UrlMapTests.
7500 &quot;name&quot;: &quot;A String&quot;, # Header name.
7501 &quot;value&quot;: &quot;A String&quot;, # Header value.
7502 },
7503 ],
7504 &quot;host&quot;: &quot;A String&quot;, # Host portion of the URL. If headers contains a host header,
7505 # then host must also match the header value.
7506 &quot;path&quot;: &quot;A String&quot;, # Path portion of the URL.
7507 &quot;service&quot;: &quot;A String&quot;, # Expected BackendService or BackendBucket resource
7508 # the given URL should be mapped to.
7509 #
7510 # The service field cannot
7511 # be set if expectedRedirectResponseCode is set.
7512 },
7513 ],
7514 }
7515
7516 requestId: string, begin_interface: MixerMutationRequestBuilder
7517 Request ID to support idempotency.
7518 x__xgafv: string, V1 error format.
7519 Allowed values
7520 1 - v1 error format
7521 2 - v2 error format
7522
7523 Returns:
7524 An object of the form:
7525
7526 { # Represents an Operation resource.
7527 #
7528 # Google Compute Engine has three Operation resources:
7529 #
7530 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
7531 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
7532 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
7533 #
7534 # You can use an operation resource to manage asynchronous API requests.
7535 # For more information, readHandling
7536 # API responses.
7537 #
7538 # Operations can be global, regional or zonal.
7539 #
7540 # - For global operations, use the `globalOperations`
7541 # resource.
7542 # - For regional operations, use the
7543 # `regionOperations` resource.
7544 # - For zonal operations, use
7545 # the `zoneOperations` resource.
7546 #
7547 #
7548 #
7549 # For more information, read
7550 # Global, Regional, and Zonal Resources.
7551 #
7552 # Note that completed Operation resources have a limited
7553 # retention period.
7554 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
7555 # Not present otherwise.
7556 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
7557 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
7558 # set when the operation is created.
7559 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
7560 # text format.
7561 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
7562 # this field will be populated.
7563 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
7564 # operation.
7565 {
7566 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
7567 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
7568 # details. There is a set of defined message types to use for providing
7569 # details.The syntax depends on the error code. For example,
7570 # QuotaExceededInfo will have details when the error code is
7571 # QUOTA_EXCEEDED.
7572 {
7573 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
7574 #
7575 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
7576 # is not enabled:
7577 #
7578 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
7579 # &quot;domain&quot;: &quot;googleapis.com&quot;
7580 # &quot;metadata&quot;: {
7581 # &quot;resource&quot;: &quot;projects/123&quot;,
7582 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
7583 # }
7584 # }
7585 #
7586 # This response indicates that the pubsub.googleapis.com API is not enabled.
7587 #
7588 # Example of an error that is returned when attempting to create a Spanner
7589 # instance in a region that is out of stock:
7590 #
7591 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
7592 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
7593 # &quot;metadata&quot;: {
7594 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
7595 # }
7596 # }
7597 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
7598 # is typically the registered service name of the tool or product that
7599 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
7600 # generated by some common infrastructure, the error domain must be a
7601 # globally unique value that identifies the infrastructure. For Google API
7602 # infrastructure, the error domain is &quot;googleapis.com&quot;.
7603 &quot;metadatas&quot;: { # Additional structured details about this error.
7604 #
7605 # Keys must match a regular expression of `a-z+` but should
7606 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
7607 # length. When identifying the current value of an exceeded limit, the units
7608 # should be contained in the key, not the value. For example, rather than
7609 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
7610 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
7611 # instances that can be created in a single (batch) request.
7612 &quot;a_key&quot;: &quot;A String&quot;,
7613 },
7614 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
7615 # proximate cause of the error. Error reasons are unique within a particular
7616 # domain of errors. This should be at most 63 characters and match a
7617 # regular expression of `A-Z+[A-Z0-9]`, which represents
7618 # UPPER_SNAKE_CASE.
7619 },
7620 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
7621 #
7622 # For example, if a quota check failed with an error indicating the calling
7623 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
7624 # directly to the right place in the developer console to flip the bit.
7625 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
7626 { # Describes a URL link.
7627 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
7628 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
7629 },
7630 ],
7631 },
7632 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
7633 # which can be attached to an RPC error.
7634 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
7635 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
7636 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
7637 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
7638 },
7639 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
7640 &quot;dimensions&quot;: { # The map holding related quota dimensions.
7641 &quot;a_key&quot;: &quot;A String&quot;,
7642 },
7643 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
7644 # type or metric.
7645 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
7646 # or metric.
7647 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
7648 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
7649 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
7650 },
7651 },
7652 ],
7653 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
7654 # This property is optional.
7655 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
7656 },
7657 ],
7658 },
7659 &quot;getVersionOperationMetadata&quot;: {
7660 &quot;inlineSbomInfo&quot;: {
7661 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
7662 # appropriate identifiers.
7663 &quot;a_key&quot;: &quot;A String&quot;,
7664 },
7665 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
7666 # identifiers.
7667 &quot;a_key&quot;: &quot;A String&quot;,
7668 },
7669 },
7670 },
7671 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
7672 # message that was returned, such as `NOT FOUND`.
7673 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
7674 # status code that was returned. For example, a `404` means the
7675 # resource was not found.
7676 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
7677 # defined by the server.
7678 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
7679 # This value is inRFC3339
7680 # text format.
7681 &quot;instancesBulkInsertOperationMetadata&quot;: {
7682 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
7683 # Example key: zones/us-central1-a
7684 &quot;a_key&quot;: {
7685 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
7686 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
7687 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
7688 # error.
7689 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
7690 # if the flow is rolling forward or rolling back.
7691 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
7692 },
7693 },
7694 },
7695 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
7696 # Operation resources.
7697 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
7698 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
7699 # group of operations results from a `bulkInsert` API request.
7700 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
7701 # `update`, or `delete`, and so on.
7702 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
7703 # There is no requirement that this be linear or support any granularity of
7704 # operations. This should not be used to guess when the operation will be
7705 # complete. This number should monotonically increase as the operation
7706 # progresses.
7707 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
7708 # applicable when performing regional operations.
7709 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
7710 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
7711 # this field will contain information on all underlying zonal actions and
7712 # their state.
7713 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
7714 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
7715 # Example key: zones/us-central1-a
7716 &quot;a_key&quot;: {
7717 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # [Output Only] If state is `ABANDONED` or `FAILED`, this field is
7718 # populated.
7719 # different programming environments, including REST APIs and RPC APIs. It is
7720 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
7721 # three pieces of data: error code, error message, and error details.
7722 #
7723 # You can find out more about this error model and how to work with it in the
7724 # [API Design Guide](https://cloud.google.com/apis/design/errors).
7725 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
7726 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
7727 # message types for APIs to use.
7728 {
7729 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
7730 },
7731 ],
7732 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
7733 # user-facing error message should be localized and sent in the
7734 # google.rpc.Status.details field, or localized by the client.
7735 },
7736 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
7737 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
7738 },
7739 },
7740 },
7741 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
7742 # This value is inRFC3339
7743 # text format.
7744 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
7745 # following:
7746 # `PENDING`, `RUNNING`, or `DONE`.
7747 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
7748 # operation.
7749 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
7750 # of the target resource.
7751 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
7752 # operations related to creating a snapshot, this points to the disk
7753 # that the snapshot was created from.
7754 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
7755 # `[email protected]` or
7756 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
7757 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
7758 # operation, this field will be populated.
7759 {
7760 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
7761 # Engine returns NO_RESULTS_ON_PAGE if there
7762 # are no results in the response.
7763 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
7764 # value format. For example:
7765 #
7766 # &quot;data&quot;: [
7767 # {
7768 # &quot;key&quot;: &quot;scope&quot;,
7769 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
7770 # }
7771 {
7772 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
7773 # returned. For example, for warnings where there are no results in a list
7774 # request for a particular zone, this key might be scope and
7775 # the key value might be the zone name. Other examples might be a key
7776 # indicating a deprecated resource and a suggested replacement, or a
7777 # warning about invalid network settings (for example, if an instance
7778 # attempts to perform IP forwarding but is not enabled for IP forwarding).
7779 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
7780 },
7781 ],
7782 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
7783 },
7784 ],
7785 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
7786 # applicable when performing per-zone operations.
7787 }</pre>
7788 </div>
7789
7790 <div class="method">
7791 <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
7792 <pre>Retrieves the list of UrlMap resources available to the specified
7793 project in the specified region.
7794
7795 Args:
7796 project: string, Project ID for this request. (required)
7797 region: string, Name of the region scoping this request. (required)
7798 filter: string, A filter expression that filters resources listed in the response. Most
7799 Compute resources support two types of filter expressions:
7800 expressions that support regular expressions and expressions that follow
7801 API improvement proposal AIP-160.
7802 These two types of filter expressions cannot be mixed in one request.
7803
7804 If you want to use AIP-160, your expression must specify the field name, an
7805 operator, and the value that you want to use for filtering. The value
7806 must be a string, a number, or a boolean. The operator
7807 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
7808
7809 For example, if you are filtering Compute Engine instances, you can
7810 exclude instances named `example-instance` by specifying
7811 `name != example-instance`.
7812
7813 The `:*` comparison can be used to test whether a key has been defined.
7814 For example, to find all objects with `owner` label use:
7815 ```
7816 labels.owner:*
7817 ```
7818
7819 You can also filter nested fields. For example, you could specify
7820 `scheduling.automaticRestart = false` to include instances only
7821 if they are not scheduled for automatic restarts. You can use filtering
7822 on nested fields to filter based onresource labels.
7823
7824 To filter on multiple expressions, provide each separate expression within
7825 parentheses. For example:
7826 ```
7827 (scheduling.automaticRestart = true)
7828 (cpuPlatform = &quot;Intel Skylake&quot;)
7829 ```
7830 By default, each expression is an `AND` expression. However, you
7831 can include `AND` and `OR` expressions explicitly.
7832 For example:
7833 ```
7834 (cpuPlatform = &quot;Intel Skylake&quot;) OR
7835 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
7836 (scheduling.automaticRestart = true)
7837 ```
7838
7839 If you want to use a regular expression, use the `eq` (equal) or `ne`
7840 (not equal) operator against a single un-parenthesized expression with or
7841 without quotes or against multiple parenthesized expressions. Examples:
7842
7843 `fieldname eq unquoted literal`
7844 `fieldname eq &#x27;single quoted literal&#x27;`
7845 `fieldname eq &quot;double quoted literal&quot;`
7846 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
7847
7848 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
7849 The literal value must match the entire field.
7850
7851 For example, to filter for instances that do not end with name &quot;instance&quot;,
7852 you would use `name ne .*instance`.
7853
7854 You cannot combine constraints on multiple fields using regular
7855 expressions.
7856 maxResults: integer, The maximum number of results per page that should be returned.
7857 If the number of available results is larger than `maxResults`,
7858 Compute Engine returns a `nextPageToken` that can be used to get
7859 the next page of results in subsequent list requests. Acceptable values are
7860 `0` to `500`, inclusive. (Default: `500`)
7861 orderBy: string, Sorts list results by a certain order. By default, results
7862 are returned in alphanumerical order based on the resource name.
7863
7864 You can also sort results in descending order based on the creation
7865 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
7866 results based on the `creationTimestamp` field in
7867 reverse chronological order (newest result first). Use this to sort
7868 resources like operations so that the newest operation is returned first.
7869
7870 Currently, only sorting by `name` or
7871 `creationTimestamp desc` is supported.
7872 pageToken: string, Specifies a page token to use. Set `pageToken` to the
7873 `nextPageToken` returned by a previous list request to get
7874 the next page of results.
7875 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
7876 of failure. The default value is false.
7877
7878 For example, when partial success behavior is enabled, aggregatedList for a
7879 single zone scope either returns all resources in the zone or no resources,
7880 with an error code.
7881 x__xgafv: string, V1 error format.
7882 Allowed values
7883 1 - v1 error format
7884 2 - v2 error format
7885
7886 Returns:
7887 An object of the form:
7888
7889 { # Contains a list of UrlMap resources.
7890 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
7891 &quot;items&quot;: [ # A list of UrlMap resources.
7892 { # Represents a URL Map resource.
7893 #
7894 # Compute Engine has two URL Map resources:
7895 #
7896 # * [Global](/compute/docs/reference/rest/v1/urlMaps)
7897 # * [Regional](/compute/docs/reference/rest/v1/regionUrlMaps)
7898 #
7899 # A URL map resource is a component of certain types of cloud load balancers
7900 # and Traffic Director:
7901 #
7902 # * urlMaps are used by global external Application Load
7903 # Balancers, classic Application Load Balancers, and cross-region internal
7904 # Application Load Balancers.
7905 # * regionUrlMaps are used by internal Application Load Balancers,
7906 # regional external Application Load Balancers and regional internal
7907 # Application Load Balancers.
7908 #
7909 # For a list of supported URL map features by the load balancer type, see the
7910 # Load balancing features: Routing and traffic management table.
7911 #
7912 # For a list of supported URL map features for Traffic Director, see the
7913 # Traffic Director features: Routing and traffic management table.
7914 #
7915 # This resource defines mappings from hostnames and URL paths to either a
7916 # backend service or a backend bucket.
7917 #
7918 # To use the global urlMaps resource, the backend service must
7919 # have a loadBalancingScheme of either EXTERNAL,EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To use
7920 # the regionUrlMaps resource, the backend service must have aloadBalancingScheme of INTERNAL_MANAGED. For more
7921 # information, read URL
7922 # Map Concepts.
7923 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
7924 # text format.
7925 &quot;defaultCustomErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # defaultCustomErrorResponsePolicy specifies how the Load
7926 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
7927 #
7928 # This policy takes
7929 # effect at the load balancer level and applies only when no policy has been
7930 # defined for the error code at lower levels like PathMatcher, RouteRule and
7931 # PathRule within this UrlMap.
7932 #
7933 # For example, consider a UrlMap with the
7934 # following configuration:
7935 #
7936 #
7937 # - defaultCustomErrorResponsePolicy containing policies for
7938 # responding to 5xx and 4xx errors
7939 # - A PathMatcher configured for *.example.com has
7940 # defaultCustomErrorResponsePolicy for 4xx.
7941 #
7942 # If a request for http://www.example.com/ encounters a404, the policy inpathMatcher.defaultCustomErrorResponsePolicy will be enforced.
7943 # When the request for http://www.example.com/ encounters a502, the policy inUrlMap.defaultCustomErrorResponsePolicy will be enforced. When
7944 # a request that does not match any host in *.example.com such
7945 # as http://www.myotherexample.com/, encounters a404, UrlMap.defaultCustomErrorResponsePolicy
7946 # takes effect.
7947 #
7948 # When used in conjunction withdefaultRouteAction.retryPolicy, retries take precedence. Only
7949 # once all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting
7950 # a retry, if load balancer is successful in reaching the
7951 # service, the defaultCustomErrorResponsePolicy is ignored and
7952 # the response from the service is returned to the client.
7953 #
7954 # defaultCustomErrorResponsePolicy is supported only for
7955 # global external Application Load Balancers.
7956 # backend service or backend bucket responds with an error.
7957 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
7958 #
7959 # In a given policy, if you specify rules for both a range of error codes
7960 # as well as rules for specific error codes then rules with specific error
7961 # codes have a higher priority. For example, assume that you configure a rule
7962 # for 401 (Un-authorized) code, and another for all 4 series
7963 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
7964 # However if the backend service returns a 403, the rule for4xx takes effect.
7965 { # Specifies the mapping between the response code that will be returned along
7966 # with the custom error content and the response code returned by the backend
7967 # service.
7968 &quot;matchResponseCodes&quot;: [ # Valid values include:
7969 #
7970 #
7971 # - A number between 400 and 599: For example
7972 # 401 or 503, in which case the load balancer
7973 # applies the policy if the error code exactly matches this value.
7974 # - 5xx: Load Balancer will apply the policy if the
7975 # backend service responds with any response code in the range of
7976 # 500 to 599.
7977 # - 4xx: Load
7978 # Balancer will apply the policy if the backend service responds with any
7979 # response code in the range of 400 to
7980 # 499.
7981 #
7982 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
7983 &quot;A String&quot;,
7984 ],
7985 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
7986 # error content. If overrideResponseCode is not supplied, the
7987 # same response code returned by the original backend bucket or backend
7988 # service is returned to the client.
7989 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
7990 #
7991 # path must start
7992 # with a leading slash. path cannot have trailing slashes.
7993 #
7994 # If the file is not available in backendBucket or the
7995 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
7996 #
7997 # The value must
7998 # be from 1 to 1024 characters
7999 },
8000 ],
8001 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
8002 # contains the custom error content. Examples are:
8003 #
8004 #
8005 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
8006 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
8007 # - global/backendBuckets/myBackendBucket
8008 #
8009 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
8010 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
8011 #
8012 # If load balancer cannot reach
8013 # the backendBucket, a simple Not Found Error will
8014 # be returned, with the original response code (oroverrideResponseCode if configured).
8015 #
8016 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
8017 },
8018 &quot;defaultRouteAction&quot;: { # defaultRouteAction takes effect when none of the
8019 # hostRules match. The load balancer performs advanced routing
8020 # actions, such as URL rewrites and header transformations, before forwarding
8021 # the request to the selected backend.
8022 #
8023 #
8024 # Only one of defaultUrlRedirect, defaultService
8025 # or defaultRouteAction.weightedBackendService can be set.
8026 #
8027 #
8028 # URL maps for classic Application Load Balancers only support
8029 # the urlRewrite action within defaultRouteAction.
8030 #
8031 #
8032 # defaultRouteAction has no effect when the URL map is bound
8033 # to a target gRPC proxy that has the validateForProxyless field
8034 # set to true.
8035 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
8036 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
8037 # property must be specified. This policy cannot be specified if any target
8038 # backend has Identity-Aware Proxy enabled.
8039 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
8040 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
8041 # header names can be specified. The cache is bypassed for all `cacheMode`
8042 # values.
8043 &quot;A String&quot;,
8044 ],
8045 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
8046 # on the backend type: for Backend Services, the complete request URI is
8047 # used; for Backend Buckets, the request URI is used without the protocol or
8048 # host, and only query parameters known to Cloud Storage are included.
8049 # Policy defined on Route Action.
8050 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
8051 # parameters will be included. Either specify `excludedQueryParameters`
8052 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
8053 # encoded and not treated as delimiters.
8054 #
8055 # Note: This field applies to routes that use backend services. Attempting
8056 # to set it on a route that points exclusively to Backend Buckets will
8057 # result in a configuration error. For routes that point to a Backend
8058 # Bucket, use `includedQueryParameters` to define which parameters should
8059 # be part of the cache key.
8060 &quot;A String&quot;,
8061 ],
8062 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
8063 #
8064 # Note: This setting is only applicable to routes that use a Backend
8065 # Service. It does not affect requests served by a Backend Bucket, as the
8066 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
8067 # it on a route that points exclusively to Backend Buckets will result in a
8068 # configuration error.
8069 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
8070 #
8071 # Note: This setting is only applicable to routes that use a Backend
8072 # Service. It does not affect requests served by a Backend Bucket, as the
8073 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
8074 # set on a route that points exclusively to Backend Buckets will result in
8075 # a configuration error.
8076 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
8077 # `includedQueryParameters` and `excludedQueryParameters`. If neither
8078 # is set, the entire query string will be included. If false, the query
8079 # string will be excluded from the cache key entirely.
8080 #
8081 # Note: This field applies to routes that use backend services. Attempting
8082 # to set it on a route that points exclusively to Backend Buckets will
8083 # result in a configuration error. For routes that point to a Backend
8084 # Bucket, use `includedQueryParameters` to define which parameters should
8085 # be part of the cache key.
8086 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
8087 # The name=value pair will be used in the cache key Cloud CDN generates.
8088 #
8089 # Note: This setting is only applicable to routes that use a Backend
8090 # Service. It does not affect requests served by a Backend Bucket.
8091 # Attempting to set it on a route that points exclusively to Backend
8092 # Buckets will result in a configuration error. Up to 5 cookie names can be
8093 # specified.
8094 &quot;A String&quot;,
8095 ],
8096 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
8097 &quot;A String&quot;,
8098 ],
8099 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
8100 # parameters will be excluded. Either specify `includedQueryParameters`
8101 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
8102 # encoded and not treated as delimiters.
8103 &quot;A String&quot;,
8104 ],
8105 },
8106 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
8107 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
8108 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
8109 # content. This is used to clamp the max-age (or Expires) value sent to the
8110 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
8111 # is used for the response max-age directive, along with a &quot;public&quot;
8112 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
8113 # clamps the max-age from the origin (if specified), or else sets the
8114 # response max-age directive to the lesser of the `clientTtl` and
8115 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
8116 # present. The maximum allowed value is 31,622,400s (1 year). If not
8117 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
8118 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
8119 # `USE_ORIGIN_HEADERS`.
8120 # as a count of seconds and fractions of seconds at nanosecond
8121 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
8122 # or &quot;month&quot;. Range is approximately 10,000 years.
8123 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
8124 # Durations less than one second are represented with a 0
8125 # `seconds` field and a positive `nanos` field. Must be from 0
8126 # to 999,999,999 inclusive.
8127 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
8128 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
8129 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
8130 },
8131 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
8132 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
8133 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
8134 # greater than that of `maxTtl`. When the `cacheMode` is set to
8135 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
8136 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
8137 # accessed objects may be evicted from the cache before the defined TTL. If
8138 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
8139 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
8140 # `USE_ORIGIN_HEADERS`.
8141 # as a count of seconds and fractions of seconds at nanosecond
8142 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
8143 # or &quot;month&quot;. Range is approximately 10,000 years.
8144 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
8145 # Durations less than one second are represented with a 0
8146 # `seconds` field and a positive `nanos` field. Must be from 0
8147 # to 999,999,999 inclusive.
8148 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
8149 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
8150 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
8151 },
8152 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
8153 # attempt to set a max-age or s-maxage higher than this, or an Expires header
8154 # more than `maxTtl` seconds in the future will be capped at the value of
8155 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
8156 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
8157 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
8158 # Infrequently accessed objects may be evicted from the cache before the
8159 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
8160 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
8161 # mode.
8162 # as a count of seconds and fractions of seconds at nanosecond
8163 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
8164 # or &quot;month&quot;. Range is approximately 10,000 years.
8165 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
8166 # Durations less than one second are represented with a 0
8167 # `seconds` field and a positive `nanos` field. Must be from 0
8168 # to 999,999,999 inclusive.
8169 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
8170 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
8171 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
8172 },
8173 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
8174 # to apply fine-grained caching for common errors or redirects.
8175 # This can reduce the load on your origin and improve end-user
8176 # experience by reducing response latency.
8177 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
8178 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
8179 # the specified response code that lack any Cache-Control, Expires, or
8180 # Pragma: no-cache directives. When the `cacheMode` is set to
8181 # `FORCE_CACHE_ALL`, negative caching applies to all responses
8182 # with the specified response code, and overrides any caching headers. By
8183 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
8184 #
8185 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
8186 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
8187 # * 405 (Method Not Found), 501 (Not Implemented): 60s
8188 #
8189 # These defaults can be overridden in `negativeCachingPolicy`.
8190 # If not specified, Cloud CDN applies negative caching by default.
8191 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
8192 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
8193 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
8194 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
8195 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
8196 # all response codes that you wish to cache. Cloud CDN will not apply any
8197 # default negative caching when a policy exists.
8198 { # Specify CDN TTLs for response error codes.
8199 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
8200 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
8201 # specified as values, and you cannot specify a status code more than
8202 # once.
8203 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
8204 # corresponding status code.
8205 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
8206 # objects may be evicted from the cache before the defined TTL.
8207 # as a count of seconds and fractions of seconds at nanosecond
8208 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
8209 # or &quot;month&quot;. Range is approximately 10,000 years.
8210 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
8211 # Durations less than one second are represented with a 0
8212 # `seconds` field and a positive `nanos` field. Must be from 0
8213 # to 999,999,999 inclusive.
8214 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
8215 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
8216 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
8217 },
8218 },
8219 ],
8220 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
8221 # requests into a small number of requests to the origin. If not specified,
8222 # Cloud CDN applies request coalescing by default.
8223 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
8224 # content with the origin, or when an error is encountered when refreshing
8225 # the cache.
8226 # This setting defines the default &quot;max-stale&quot; duration for any cached
8227 # responses that do not specify a max-stale directive. Stale responses that
8228 # exceed the TTL configured here will not be served. The default limit
8229 # (max-stale) is 86400s (1 day), which will allow stale content to be
8230 # served up to this limit beyond the max-age (or s-maxage) of a cached
8231 # response.
8232 # The maximum allowed value is 604800 (1 week).
8233 # Set this to zero (0) to disable serve-while-stale.
8234 # as a count of seconds and fractions of seconds at nanosecond
8235 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
8236 # or &quot;month&quot;. Range is approximately 10,000 years.
8237 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
8238 # Durations less than one second are represented with a 0
8239 # `seconds` field and a positive `nanos` field. Must be from 0
8240 # to 999,999,999 inclusive.
8241 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
8242 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
8243 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
8244 },
8245 },
8246 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
8247 # information about the W3C recommendation for cross-origin resource sharing
8248 # (CORS), see Fetch API Living
8249 # Standard.
8250 #
8251 # Not supported when the URL map is bound to a target gRPC proxy.
8252 # information about the W3C recommendation for cross-origin resource sharing
8253 # (CORS), see Fetch API Living
8254 # Standard.
8255 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
8256 # indicates that
8257 # the actual request can include user credentials. This field translates to
8258 # the Access-Control-Allow-Credentials header.
8259 #
8260 # Default is false.
8261 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
8262 # header.
8263 &quot;A String&quot;,
8264 ],
8265 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
8266 # header.
8267 &quot;A String&quot;,
8268 ],
8269 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
8270 # more information, see regular expression syntax.
8271 #
8272 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
8273 #
8274 # Regular expressions can only be used when the loadBalancingScheme is
8275 # set to INTERNAL_SELF_MANAGED.
8276 &quot;A String&quot;,
8277 ],
8278 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
8279 #
8280 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
8281 &quot;A String&quot;,
8282 ],
8283 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
8284 # The default value is false, which indicates that the CORS
8285 # policy is in effect.
8286 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
8287 # header.
8288 &quot;A String&quot;,
8289 ],
8290 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
8291 # seconds. This field translates to the Access-Control-Max-Age
8292 # header.
8293 },
8294 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
8295 # the resiliency of clients to backend service failure. As part of fault
8296 # injection, when clients send requests to a backend service, delays can be
8297 # introduced by a load balancer on a percentage of requests before sending
8298 # those requests to the backend service. Similarly requests from clients can
8299 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
8300 # that are configured with a fault_injection_policy if:
8301 # 1. The traffic is generated by fault injection AND
8302 # 2. The fault injection is not a delay fault injection.
8303 # Fault injection is not supported with the classic Application Load Balancer
8304 # . To see which load balancers support fault injection,
8305 # see Load
8306 # balancing: Routing and traffic management features.
8307 # the resiliency of clients to backend service failure. As part of fault
8308 # injection, when clients send requests to a backend service, delays can be
8309 # introduced by the load balancer on a percentage of requests before sending
8310 # those request to the backend service. Similarly requests from clients can be
8311 # aborted by the load balancer for a percentage of requests.
8312 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
8313 # injection.
8314 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
8315 #
8316 # The value must be from 200 to 599 inclusive.
8317 #
8318 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
8319 # according to this
8320 # mapping table. HTTP status 200 is mapped to gRPC status
8321 # UNKNOWN. Injecting an OK status is currently not supported by
8322 # Traffic Director.
8323 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
8324 # that is aborted as part of fault injection.
8325 #
8326 # The value must be from 0.0 to 100.0 inclusive.
8327 },
8328 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
8329 # injection, before being sent to a backend service.
8330 # request to the backend service as part of fault injection.
8331 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
8332 # as a count of seconds and fractions of seconds at nanosecond
8333 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
8334 # or &quot;month&quot;. Range is approximately 10,000 years.
8335 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
8336 # Durations less than one second are represented with a 0
8337 # `seconds` field and a positive `nanos` field. Must be from 0
8338 # to 999,999,999 inclusive.
8339 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
8340 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
8341 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
8342 },
8343 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
8344 # which a delay is introduced as part of fault injection.
8345 #
8346 # The value must be from 0.0 to 100.0 inclusive.
8347 },
8348 },
8349 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
8350 # Unlike the timeout field where the timeout duration starts
8351 # from the time the request has been fully processed (known as*end-of-stream*),
8352 # the duration in this field is computed from the beginning of the stream
8353 # until the response has been processed, including all retries. A
8354 # stream that does not complete in this duration is closed.
8355 #
8356 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
8357 # with the route.
8358 #
8359 # This field is only allowed if the Url map is used with backend services
8360 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
8361 # as a count of seconds and fractions of seconds at nanosecond
8362 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
8363 # or &quot;month&quot;. Range is approximately 10,000 years.
8364 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
8365 # Durations less than one second are represented with a 0
8366 # `seconds` field and a positive `nanos` field. Must be from 0
8367 # to 999,999,999 inclusive.
8368 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
8369 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
8370 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
8371 },
8372 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
8373 # are shadowed to a separate mirrored backend service. The load balancer does
8374 # not wait for responses from the shadow service. Before sending traffic
8375 # to the shadow service, the host / authority header is suffixed with-shadow.
8376 #
8377 # Not supported when the URL map is bound to a target gRPC proxy that
8378 # has the validateForProxyless field set to true.
8379 # are shadowed to a separate mirrored backend service. The load balancer
8380 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
8381 # to the shadow service, the host or authority header is suffixed with-shadow.
8382 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
8383 # mirrored to.
8384 #
8385 # The backend service configured for a mirroring
8386 # policy must reference backends that are of the same type as the original
8387 # backend service matched in the URL map.
8388 #
8389 # Serverless NEG backends are not currently supported as a mirrored
8390 # backend service.
8391 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
8392 },
8393 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
8394 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
8395 # If not specified, defaults to 1.
8396 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
8397 #
8398 # If not specified, will use the timeout set in theHttpRouteAction field.
8399 # If timeout in the HttpRouteAction field is not set, this field
8400 # uses the largest timeout
8401 # among all backend services associated with the route.
8402 #
8403 # Not supported when the URL map is bound to a target gRPC proxy that
8404 # has the validateForProxyless field set to true.
8405 # as a count of seconds and fractions of seconds at nanosecond
8406 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
8407 # or &quot;month&quot;. Range is approximately 10,000 years.
8408 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
8409 # Durations less than one second are represented with a 0
8410 # `seconds` field and a positive `nanos` field. Must be from 0
8411 # to 999,999,999 inclusive.
8412 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
8413 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
8414 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
8415 },
8416 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
8417 # values are:
8418 #
8419 # - 5xx: retry is attempted if the instance or endpoint
8420 # responds with any 5xx response code, or if the instance or
8421 # endpoint does not respond at all. For example, disconnects, reset, read
8422 # timeout, connection failure, and refused streams.
8423 # - gateway-error: Similar to 5xx, but only
8424 # applies to response codes 502, 503 or504.
8425 # - connect-failure: a retry is attempted on failures
8426 # connecting to the instance or endpoint. For example, connection
8427 # timeouts.
8428 # - retriable-4xx: a retry is attempted if the instance
8429 # or endpoint responds with a 4xx response code.
8430 # The only error that you can retry is error code 409.
8431 # - refused-stream: a retry is attempted if the instance
8432 # or endpoint resets the stream with a REFUSED_STREAM error
8433 # code. This reset type indicates that it is safe to retry.
8434 # - cancelled: a retry is attempted if the gRPC status
8435 # code in the response header is set to cancelled.
8436 # - deadline-exceeded: a retry is attempted if the gRPC
8437 # status code in the response header is set todeadline-exceeded.
8438 # - internal: a retry is attempted if the gRPC
8439 # status code in the response header is set tointernal.
8440 # - resource-exhausted: a retry is attempted if the gRPC
8441 # status code in the response header is set toresource-exhausted.
8442 # - unavailable: a retry is attempted if the gRPC
8443 # status code in the response header is set tounavailable.
8444 #
8445 # Only the following codes are supported when the URL map is bound to
8446 # target gRPC proxy that has validateForProxyless field set to true.
8447 #
8448 # - cancelled
8449 # - deadline-exceeded
8450 # - internal
8451 # - resource-exhausted
8452 # - unavailable
8453 &quot;A String&quot;,
8454 ],
8455 },
8456 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
8457 # time the request has been fully processed (known as *end-of-stream*)
8458 # up until the response has been processed. Timeout includes
8459 # all retries.
8460 #
8461 # If not specified, this field uses the largest timeout among all backend
8462 # services associated with the route.
8463 #
8464 # Not supported when the URL map is bound to a target gRPC proxy that
8465 # has validateForProxyless field set to true.
8466 # as a count of seconds and fractions of seconds at nanosecond
8467 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
8468 # or &quot;month&quot;. Range is approximately 10,000 years.
8469 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
8470 # Durations less than one second are represented with a 0
8471 # `seconds` field and a positive `nanos` field. Must be from 0
8472 # to 999,999,999 inclusive.
8473 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
8474 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
8475 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
8476 },
8477 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
8478 # to the matched service.
8479 #
8480 # urlRewrite is the only action supported in UrlMaps
8481 # for classic Application Load Balancers.
8482 #
8483 # Not supported when the URL map is bound to a target gRPC proxy that
8484 # has the validateForProxyless field set to true.
8485 # backend service.
8486 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
8487 # host header is replaced with contents of hostRewrite.
8488 #
8489 # The value must be from 1 to 255 characters.
8490 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
8491 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
8492 #
8493 # The value must be from 1 to 1024 characters.
8494 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
8495 # header) using the HTTP template syntax.
8496 #
8497 # A corresponding
8498 # path_template_match must be specified. Any template variables must exist in
8499 # the path_template_match field.
8500 #
8501 #
8502 # - -At least one variable must be specified in the path_template_match
8503 # field
8504 # - You can omit variables from the rewritten URL
8505 # - The * and ** operators cannot be matched
8506 # unless they have a corresponding variable name - e.g.
8507 # {format=*} or {var=**}.
8508 #
8509 # For example, a path_template_match of /static/{format=**}
8510 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
8511 # rewrite, so that /{country}/{format}/{suffix=**} can be
8512 # rewritten as /content/{format}/{country}/{suffix}.
8513 #
8514 # At least
8515 # one non-empty routeRules[].matchRules[].path_template_match is
8516 # required.
8517 #
8518 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
8519 },
8520 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
8521 # occurs. The weights determine the fraction of traffic that flows to
8522 # their corresponding backend service. If all traffic needs to
8523 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
8524 #
8525 # After a backend service is identified and before forwarding
8526 # the request to
8527 # the backend service, advanced routing actions such as URL rewrites and
8528 # header transformations are applied depending on additional settings
8529 # specified in this HttpRouteAction.
8530 { # In contrast to a single BackendService in
8531 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
8532 # multiple backend services. The volume of traffic for each
8533 # backend service is proportional to the weight specified
8534 # in each WeightedBackendService
8535 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
8536 # resource. Before
8537 # forwarding the request to backendService, the load balancer
8538 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
8539 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
8540 # effect for the selected backendService.
8541 #
8542 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
8543 #
8544 # headerAction is not supported for load balancers that have
8545 # their loadBalancingScheme set to EXTERNAL.
8546 #
8547 # Not supported when the URL map is bound to a target gRPC proxy that
8548 # has validateForProxyless field set to true.
8549 # the request is passed along to the selected backendService.
8550 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
8551 { # Specification determining how headers are added to requests or responses.
8552 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
8553 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
8554 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
8555 # that already
8556 # exist for the header. If true, headerValue is set for the
8557 # header, discarding any values that were set for that header.
8558 #
8559 # The default value is true,
8560 # unless a variable is present in headerValue,
8561 # in which case the default value is false.
8562 # .
8563 },
8564 ],
8565 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
8566 # request before forwarding the request to the backendService.
8567 &quot;A String&quot;,
8568 ],
8569 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
8570 # client.
8571 { # Specification determining how headers are added to requests or responses.
8572 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
8573 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
8574 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
8575 # that already
8576 # exist for the header. If true, headerValue is set for the
8577 # header, discarding any values that were set for that header.
8578 #
8579 # The default value is true,
8580 # unless a variable is present in headerValue,
8581 # in which case the default value is false.
8582 # .
8583 },
8584 ],
8585 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
8586 # response before sending the response back to the client.
8587 &quot;A String&quot;,
8588 ],
8589 },
8590 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
8591 # computed asweight / (sum of all weightedBackendService weights in routeAction).
8592 #
8593 # The selection of a backend service is determined only for new traffic.
8594 # Once a user&#x27;s request has been directed to a backend service,
8595 # subsequent requests are sent to the same backend service as
8596 # determined by the backend service&#x27;s session affinity policy.
8597 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
8598 # splitting. If you do, the weighted traffic splitting configuration takes
8599 # precedence.
8600 #
8601 # The value must be from 0 to 1000.
8602 },
8603 ],
8604 },
8605 &quot;defaultService&quot;: &quot;A String&quot;, # The full or partial URL of the defaultService resource to
8606 # which traffic is directed if none of the hostRules match.
8607 # If defaultRouteAction is also specified, advanced
8608 # routing actions, such as URL rewrites, take effect before sending the
8609 # request to the backend.
8610 #
8611 #
8612 # Only one of defaultUrlRedirect, defaultService
8613 # or defaultRouteAction.weightedBackendService can be set.
8614 #
8615 #
8616 # defaultService has no effect when the URL map is bound
8617 # to a target gRPC proxy that has the validateForProxyless field
8618 # set to true.
8619 &quot;defaultUrlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When none of the specified hostRules match, the request
8620 # is redirected to a URL specified by defaultUrlRedirect.
8621 #
8622 #
8623 # Only one of defaultUrlRedirect, defaultService
8624 # or defaultRouteAction.weightedBackendService can be set.
8625 #
8626 #
8627 # Not supported when the URL map is bound to a target gRPC proxy.
8628 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
8629 # was supplied in the request.
8630 #
8631 # The value must be from 1 to 255
8632 # characters.
8633 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
8634 # set to HTTPS.
8635 # If set to false, the URL scheme of the redirected request
8636 # remains the same as that of the request.
8637 #
8638 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
8639 #
8640 # The default is set to false.
8641 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
8642 # that was supplied in the request.
8643 #
8644 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
8645 # supplied, the path of the original request is used for the redirect.
8646 #
8647 # The value must be from 1 to 1024 characters.
8648 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
8649 # the HttpRouteRuleMatch, retaining the remaining portion
8650 # of the URL before redirecting the request.
8651 #
8652 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
8653 # supplied, the path of the original request is used for the redirect.
8654 #
8655 # The value must be from 1 to 1024 characters.
8656 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
8657 #
8658 # Supported values are:
8659 #
8660 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
8661 # to 301.
8662 # - FOUND, which corresponds to 302.
8663 # - SEE_OTHER which corresponds to 303.
8664 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
8665 # method is retained.
8666 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
8667 # method is retained.
8668 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
8669 # URL is
8670 # removed before redirecting the request. If set to false, the
8671 # query portion of the original URL is retained.
8672 #
8673 # The default is set to false.
8674 },
8675 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
8676 # create the resource.
8677 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint of this resource. A hash of the contents stored in this object.
8678 # This field is used in optimistic locking. This field is ignored when
8679 # inserting a UrlMap. An up-to-date fingerprint must be provided
8680 # in order to update the UrlMap, otherwise the request will
8681 # fail with error 412 conditionNotMet.
8682 #
8683 # To see the latest fingerprint, make a get() request to
8684 # retrieve a UrlMap.
8685 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
8686 # for the selected backendService.
8687 #
8688 # The headerAction specified here take effect afterheaderAction specified under pathMatcher.
8689 #
8690 # headerAction is not supported for load balancers
8691 # that have
8692 # their loadBalancingScheme set to EXTERNAL.
8693 #
8694 # Not supported when the URL map is bound to a target gRPC proxy that
8695 # has validateForProxyless field set to true.
8696 # the request is passed along to the selected backendService.
8697 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
8698 { # Specification determining how headers are added to requests or responses.
8699 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
8700 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
8701 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
8702 # that already
8703 # exist for the header. If true, headerValue is set for the
8704 # header, discarding any values that were set for that header.
8705 #
8706 # The default value is true,
8707 # unless a variable is present in headerValue,
8708 # in which case the default value is false.
8709 # .
8710 },
8711 ],
8712 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
8713 # request before forwarding the request to the backendService.
8714 &quot;A String&quot;,
8715 ],
8716 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
8717 # client.
8718 { # Specification determining how headers are added to requests or responses.
8719 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
8720 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
8721 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
8722 # that already
8723 # exist for the header. If true, headerValue is set for the
8724 # header, discarding any values that were set for that header.
8725 #
8726 # The default value is true,
8727 # unless a variable is present in headerValue,
8728 # in which case the default value is false.
8729 # .
8730 },
8731 ],
8732 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
8733 # response before sending the response back to the client.
8734 &quot;A String&quot;,
8735 ],
8736 },
8737 &quot;hostRules&quot;: [ # The list of host rules to use against the URL.
8738 { # UrlMaps
8739 # A host-matching rule for a URL. If matched, will use the namedPathMatcher to select the BackendService.
8740 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
8741 # create the resource.
8742 &quot;hosts&quot;: [ # The list of host patterns to match. They must be valid hostnames with
8743 # optional port numbers in the format host:port.* matches any string of ([a-z0-9-.]*). In
8744 # that case, * must be the first character, and if followed by
8745 # anything, the immediate following character must be either -
8746 # or ..
8747 #
8748 # * based matching is not supported when the URL map is bound
8749 # to a target gRPC proxy that has the validateForProxyless field
8750 # set to true.
8751 &quot;A String&quot;,
8752 ],
8753 &quot;pathMatcher&quot;: &quot;A String&quot;, # The name of the PathMatcher to use to match the path portion
8754 # of the URL if the hostRule matches the URL&#x27;s host portion.
8755 },
8756 ],
8757 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
8758 # defined by the server.
8759 &quot;kind&quot;: &quot;compute#urlMap&quot;, # Output only. [Output Only] Type of the resource. Always compute#urlMaps for
8760 # url maps.
8761 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
8762 # The name must be 1-63 characters long, and comply withRFC1035.
8763 # Specifically, the name must be 1-63 characters long and match the regular
8764 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
8765 # character must be a lowercase letter, and all following characters must
8766 # be a dash, lowercase letter, or digit, except the last character, which
8767 # cannot be a dash.
8768 &quot;pathMatchers&quot;: [ # The list of named PathMatchers to use against the URL.
8769 { # A matcher for the path portion of the URL. The BackendService
8770 # from the longest-matched rule will serve the URL. If no rule was matched, the
8771 # default service is used.
8772 &quot;defaultCustomErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # defaultCustomErrorResponsePolicy specifies how the Load
8773 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
8774 #
8775 # This policy takes
8776 # effect at the PathMatcher level and applies only when no
8777 # policy has been defined for the error code at lower levels likeRouteRule and PathRule within thisPathMatcher. If an error code does not have a policy defined
8778 # in defaultCustomErrorResponsePolicy, then a policy defined for
8779 # the error code in UrlMap.defaultCustomErrorResponsePolicy
8780 # takes effect.
8781 #
8782 # For example, consider a UrlMap with the following
8783 # configuration:
8784 #
8785 #
8786 # - UrlMap.defaultCustomErrorResponsePolicy is configured
8787 # with policies for 5xx and 4xx errors
8788 # - A RouteRule for /coming_soon/ is configured for the
8789 # error code 404.
8790 #
8791 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
8792 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
8793 # the policy in RouteRule.customErrorResponsePolicy takes
8794 # effect. If any of the requests in this example encounter a 500
8795 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
8796 #
8797 # When
8798 # used in conjunction withpathMatcher.defaultRouteAction.retryPolicy, retries take
8799 # precedence. Only once all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting
8800 # a retry, if load balancer is successful in reaching the
8801 # service, the defaultCustomErrorResponsePolicy is ignored and
8802 # the response from the service is returned to the client.
8803 #
8804 # defaultCustomErrorResponsePolicy is supported only for
8805 # global external Application Load Balancers.
8806 # backend service or backend bucket responds with an error.
8807 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
8808 #
8809 # In a given policy, if you specify rules for both a range of error codes
8810 # as well as rules for specific error codes then rules with specific error
8811 # codes have a higher priority. For example, assume that you configure a rule
8812 # for 401 (Un-authorized) code, and another for all 4 series
8813 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
8814 # However if the backend service returns a 403, the rule for4xx takes effect.
8815 { # Specifies the mapping between the response code that will be returned along
8816 # with the custom error content and the response code returned by the backend
8817 # service.
8818 &quot;matchResponseCodes&quot;: [ # Valid values include:
8819 #
8820 #
8821 # - A number between 400 and 599: For example
8822 # 401 or 503, in which case the load balancer
8823 # applies the policy if the error code exactly matches this value.
8824 # - 5xx: Load Balancer will apply the policy if the
8825 # backend service responds with any response code in the range of
8826 # 500 to 599.
8827 # - 4xx: Load
8828 # Balancer will apply the policy if the backend service responds with any
8829 # response code in the range of 400 to
8830 # 499.
8831 #
8832 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
8833 &quot;A String&quot;,
8834 ],
8835 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
8836 # error content. If overrideResponseCode is not supplied, the
8837 # same response code returned by the original backend bucket or backend
8838 # service is returned to the client.
8839 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
8840 #
8841 # path must start
8842 # with a leading slash. path cannot have trailing slashes.
8843 #
8844 # If the file is not available in backendBucket or the
8845 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
8846 #
8847 # The value must
8848 # be from 1 to 1024 characters
8849 },
8850 ],
8851 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
8852 # contains the custom error content. Examples are:
8853 #
8854 #
8855 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
8856 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
8857 # - global/backendBuckets/myBackendBucket
8858 #
8859 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
8860 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
8861 #
8862 # If load balancer cannot reach
8863 # the backendBucket, a simple Not Found Error will
8864 # be returned, with the original response code (oroverrideResponseCode if configured).
8865 #
8866 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
8867 },
8868 &quot;defaultRouteAction&quot;: { # defaultRouteAction takes effect when none of the
8869 # pathRules or routeRules match. The load balancer
8870 # performs advanced routing actions, such as URL rewrites and
8871 # header transformations, before forwarding the request to the
8872 # selected backend.
8873 #
8874 #
8875 # Only one of defaultUrlRedirect, defaultService
8876 # or defaultRouteAction.weightedBackendService can be set.
8877 #
8878 #
8879 # URL maps for classic Application Load Balancers only support
8880 # the urlRewrite action within a path matcher&#x27;sdefaultRouteAction.
8881 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
8882 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
8883 # property must be specified. This policy cannot be specified if any target
8884 # backend has Identity-Aware Proxy enabled.
8885 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
8886 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
8887 # header names can be specified. The cache is bypassed for all `cacheMode`
8888 # values.
8889 &quot;A String&quot;,
8890 ],
8891 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
8892 # on the backend type: for Backend Services, the complete request URI is
8893 # used; for Backend Buckets, the request URI is used without the protocol or
8894 # host, and only query parameters known to Cloud Storage are included.
8895 # Policy defined on Route Action.
8896 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
8897 # parameters will be included. Either specify `excludedQueryParameters`
8898 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
8899 # encoded and not treated as delimiters.
8900 #
8901 # Note: This field applies to routes that use backend services. Attempting
8902 # to set it on a route that points exclusively to Backend Buckets will
8903 # result in a configuration error. For routes that point to a Backend
8904 # Bucket, use `includedQueryParameters` to define which parameters should
8905 # be part of the cache key.
8906 &quot;A String&quot;,
8907 ],
8908 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
8909 #
8910 # Note: This setting is only applicable to routes that use a Backend
8911 # Service. It does not affect requests served by a Backend Bucket, as the
8912 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
8913 # it on a route that points exclusively to Backend Buckets will result in a
8914 # configuration error.
8915 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
8916 #
8917 # Note: This setting is only applicable to routes that use a Backend
8918 # Service. It does not affect requests served by a Backend Bucket, as the
8919 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
8920 # set on a route that points exclusively to Backend Buckets will result in
8921 # a configuration error.
8922 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
8923 # `includedQueryParameters` and `excludedQueryParameters`. If neither
8924 # is set, the entire query string will be included. If false, the query
8925 # string will be excluded from the cache key entirely.
8926 #
8927 # Note: This field applies to routes that use backend services. Attempting
8928 # to set it on a route that points exclusively to Backend Buckets will
8929 # result in a configuration error. For routes that point to a Backend
8930 # Bucket, use `includedQueryParameters` to define which parameters should
8931 # be part of the cache key.
8932 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
8933 # The name=value pair will be used in the cache key Cloud CDN generates.
8934 #
8935 # Note: This setting is only applicable to routes that use a Backend
8936 # Service. It does not affect requests served by a Backend Bucket.
8937 # Attempting to set it on a route that points exclusively to Backend
8938 # Buckets will result in a configuration error. Up to 5 cookie names can be
8939 # specified.
8940 &quot;A String&quot;,
8941 ],
8942 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
8943 &quot;A String&quot;,
8944 ],
8945 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
8946 # parameters will be excluded. Either specify `includedQueryParameters`
8947 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
8948 # encoded and not treated as delimiters.
8949 &quot;A String&quot;,
8950 ],
8951 },
8952 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
8953 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
8954 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
8955 # content. This is used to clamp the max-age (or Expires) value sent to the
8956 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
8957 # is used for the response max-age directive, along with a &quot;public&quot;
8958 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
8959 # clamps the max-age from the origin (if specified), or else sets the
8960 # response max-age directive to the lesser of the `clientTtl` and
8961 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
8962 # present. The maximum allowed value is 31,622,400s (1 year). If not
8963 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
8964 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
8965 # `USE_ORIGIN_HEADERS`.
8966 # as a count of seconds and fractions of seconds at nanosecond
8967 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
8968 # or &quot;month&quot;. Range is approximately 10,000 years.
8969 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
8970 # Durations less than one second are represented with a 0
8971 # `seconds` field and a positive `nanos` field. Must be from 0
8972 # to 999,999,999 inclusive.
8973 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
8974 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
8975 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
8976 },
8977 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
8978 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
8979 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
8980 # greater than that of `maxTtl`. When the `cacheMode` is set to
8981 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
8982 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
8983 # accessed objects may be evicted from the cache before the defined TTL. If
8984 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
8985 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
8986 # `USE_ORIGIN_HEADERS`.
8987 # as a count of seconds and fractions of seconds at nanosecond
8988 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
8989 # or &quot;month&quot;. Range is approximately 10,000 years.
8990 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
8991 # Durations less than one second are represented with a 0
8992 # `seconds` field and a positive `nanos` field. Must be from 0
8993 # to 999,999,999 inclusive.
8994 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
8995 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
8996 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
8997 },
8998 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
8999 # attempt to set a max-age or s-maxage higher than this, or an Expires header
9000 # more than `maxTtl` seconds in the future will be capped at the value of
9001 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
9002 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
9003 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
9004 # Infrequently accessed objects may be evicted from the cache before the
9005 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
9006 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
9007 # mode.
9008 # as a count of seconds and fractions of seconds at nanosecond
9009 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
9010 # or &quot;month&quot;. Range is approximately 10,000 years.
9011 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
9012 # Durations less than one second are represented with a 0
9013 # `seconds` field and a positive `nanos` field. Must be from 0
9014 # to 999,999,999 inclusive.
9015 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
9016 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
9017 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
9018 },
9019 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
9020 # to apply fine-grained caching for common errors or redirects.
9021 # This can reduce the load on your origin and improve end-user
9022 # experience by reducing response latency.
9023 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
9024 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
9025 # the specified response code that lack any Cache-Control, Expires, or
9026 # Pragma: no-cache directives. When the `cacheMode` is set to
9027 # `FORCE_CACHE_ALL`, negative caching applies to all responses
9028 # with the specified response code, and overrides any caching headers. By
9029 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
9030 #
9031 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
9032 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
9033 # * 405 (Method Not Found), 501 (Not Implemented): 60s
9034 #
9035 # These defaults can be overridden in `negativeCachingPolicy`.
9036 # If not specified, Cloud CDN applies negative caching by default.
9037 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
9038 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
9039 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
9040 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
9041 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
9042 # all response codes that you wish to cache. Cloud CDN will not apply any
9043 # default negative caching when a policy exists.
9044 { # Specify CDN TTLs for response error codes.
9045 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
9046 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
9047 # specified as values, and you cannot specify a status code more than
9048 # once.
9049 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
9050 # corresponding status code.
9051 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
9052 # objects may be evicted from the cache before the defined TTL.
9053 # as a count of seconds and fractions of seconds at nanosecond
9054 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
9055 # or &quot;month&quot;. Range is approximately 10,000 years.
9056 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
9057 # Durations less than one second are represented with a 0
9058 # `seconds` field and a positive `nanos` field. Must be from 0
9059 # to 999,999,999 inclusive.
9060 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
9061 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
9062 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
9063 },
9064 },
9065 ],
9066 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
9067 # requests into a small number of requests to the origin. If not specified,
9068 # Cloud CDN applies request coalescing by default.
9069 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
9070 # content with the origin, or when an error is encountered when refreshing
9071 # the cache.
9072 # This setting defines the default &quot;max-stale&quot; duration for any cached
9073 # responses that do not specify a max-stale directive. Stale responses that
9074 # exceed the TTL configured here will not be served. The default limit
9075 # (max-stale) is 86400s (1 day), which will allow stale content to be
9076 # served up to this limit beyond the max-age (or s-maxage) of a cached
9077 # response.
9078 # The maximum allowed value is 604800 (1 week).
9079 # Set this to zero (0) to disable serve-while-stale.
9080 # as a count of seconds and fractions of seconds at nanosecond
9081 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
9082 # or &quot;month&quot;. Range is approximately 10,000 years.
9083 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
9084 # Durations less than one second are represented with a 0
9085 # `seconds` field and a positive `nanos` field. Must be from 0
9086 # to 999,999,999 inclusive.
9087 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
9088 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
9089 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
9090 },
9091 },
9092 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
9093 # information about the W3C recommendation for cross-origin resource sharing
9094 # (CORS), see Fetch API Living
9095 # Standard.
9096 #
9097 # Not supported when the URL map is bound to a target gRPC proxy.
9098 # information about the W3C recommendation for cross-origin resource sharing
9099 # (CORS), see Fetch API Living
9100 # Standard.
9101 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
9102 # indicates that
9103 # the actual request can include user credentials. This field translates to
9104 # the Access-Control-Allow-Credentials header.
9105 #
9106 # Default is false.
9107 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
9108 # header.
9109 &quot;A String&quot;,
9110 ],
9111 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
9112 # header.
9113 &quot;A String&quot;,
9114 ],
9115 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
9116 # more information, see regular expression syntax.
9117 #
9118 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
9119 #
9120 # Regular expressions can only be used when the loadBalancingScheme is
9121 # set to INTERNAL_SELF_MANAGED.
9122 &quot;A String&quot;,
9123 ],
9124 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
9125 #
9126 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
9127 &quot;A String&quot;,
9128 ],
9129 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
9130 # The default value is false, which indicates that the CORS
9131 # policy is in effect.
9132 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
9133 # header.
9134 &quot;A String&quot;,
9135 ],
9136 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
9137 # seconds. This field translates to the Access-Control-Max-Age
9138 # header.
9139 },
9140 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
9141 # the resiliency of clients to backend service failure. As part of fault
9142 # injection, when clients send requests to a backend service, delays can be
9143 # introduced by a load balancer on a percentage of requests before sending
9144 # those requests to the backend service. Similarly requests from clients can
9145 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
9146 # that are configured with a fault_injection_policy if:
9147 # 1. The traffic is generated by fault injection AND
9148 # 2. The fault injection is not a delay fault injection.
9149 # Fault injection is not supported with the classic Application Load Balancer
9150 # . To see which load balancers support fault injection,
9151 # see Load
9152 # balancing: Routing and traffic management features.
9153 # the resiliency of clients to backend service failure. As part of fault
9154 # injection, when clients send requests to a backend service, delays can be
9155 # introduced by the load balancer on a percentage of requests before sending
9156 # those request to the backend service. Similarly requests from clients can be
9157 # aborted by the load balancer for a percentage of requests.
9158 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
9159 # injection.
9160 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
9161 #
9162 # The value must be from 200 to 599 inclusive.
9163 #
9164 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
9165 # according to this
9166 # mapping table. HTTP status 200 is mapped to gRPC status
9167 # UNKNOWN. Injecting an OK status is currently not supported by
9168 # Traffic Director.
9169 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
9170 # that is aborted as part of fault injection.
9171 #
9172 # The value must be from 0.0 to 100.0 inclusive.
9173 },
9174 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
9175 # injection, before being sent to a backend service.
9176 # request to the backend service as part of fault injection.
9177 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
9178 # as a count of seconds and fractions of seconds at nanosecond
9179 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
9180 # or &quot;month&quot;. Range is approximately 10,000 years.
9181 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
9182 # Durations less than one second are represented with a 0
9183 # `seconds` field and a positive `nanos` field. Must be from 0
9184 # to 999,999,999 inclusive.
9185 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
9186 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
9187 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
9188 },
9189 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
9190 # which a delay is introduced as part of fault injection.
9191 #
9192 # The value must be from 0.0 to 100.0 inclusive.
9193 },
9194 },
9195 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
9196 # Unlike the timeout field where the timeout duration starts
9197 # from the time the request has been fully processed (known as*end-of-stream*),
9198 # the duration in this field is computed from the beginning of the stream
9199 # until the response has been processed, including all retries. A
9200 # stream that does not complete in this duration is closed.
9201 #
9202 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
9203 # with the route.
9204 #
9205 # This field is only allowed if the Url map is used with backend services
9206 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
9207 # as a count of seconds and fractions of seconds at nanosecond
9208 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
9209 # or &quot;month&quot;. Range is approximately 10,000 years.
9210 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
9211 # Durations less than one second are represented with a 0
9212 # `seconds` field and a positive `nanos` field. Must be from 0
9213 # to 999,999,999 inclusive.
9214 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
9215 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
9216 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
9217 },
9218 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
9219 # are shadowed to a separate mirrored backend service. The load balancer does
9220 # not wait for responses from the shadow service. Before sending traffic
9221 # to the shadow service, the host / authority header is suffixed with-shadow.
9222 #
9223 # Not supported when the URL map is bound to a target gRPC proxy that
9224 # has the validateForProxyless field set to true.
9225 # are shadowed to a separate mirrored backend service. The load balancer
9226 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
9227 # to the shadow service, the host or authority header is suffixed with-shadow.
9228 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
9229 # mirrored to.
9230 #
9231 # The backend service configured for a mirroring
9232 # policy must reference backends that are of the same type as the original
9233 # backend service matched in the URL map.
9234 #
9235 # Serverless NEG backends are not currently supported as a mirrored
9236 # backend service.
9237 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
9238 },
9239 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
9240 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
9241 # If not specified, defaults to 1.
9242 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
9243 #
9244 # If not specified, will use the timeout set in theHttpRouteAction field.
9245 # If timeout in the HttpRouteAction field is not set, this field
9246 # uses the largest timeout
9247 # among all backend services associated with the route.
9248 #
9249 # Not supported when the URL map is bound to a target gRPC proxy that
9250 # has the validateForProxyless field set to true.
9251 # as a count of seconds and fractions of seconds at nanosecond
9252 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
9253 # or &quot;month&quot;. Range is approximately 10,000 years.
9254 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
9255 # Durations less than one second are represented with a 0
9256 # `seconds` field and a positive `nanos` field. Must be from 0
9257 # to 999,999,999 inclusive.
9258 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
9259 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
9260 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
9261 },
9262 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
9263 # values are:
9264 #
9265 # - 5xx: retry is attempted if the instance or endpoint
9266 # responds with any 5xx response code, or if the instance or
9267 # endpoint does not respond at all. For example, disconnects, reset, read
9268 # timeout, connection failure, and refused streams.
9269 # - gateway-error: Similar to 5xx, but only
9270 # applies to response codes 502, 503 or504.
9271 # - connect-failure: a retry is attempted on failures
9272 # connecting to the instance or endpoint. For example, connection
9273 # timeouts.
9274 # - retriable-4xx: a retry is attempted if the instance
9275 # or endpoint responds with a 4xx response code.
9276 # The only error that you can retry is error code 409.
9277 # - refused-stream: a retry is attempted if the instance
9278 # or endpoint resets the stream with a REFUSED_STREAM error
9279 # code. This reset type indicates that it is safe to retry.
9280 # - cancelled: a retry is attempted if the gRPC status
9281 # code in the response header is set to cancelled.
9282 # - deadline-exceeded: a retry is attempted if the gRPC
9283 # status code in the response header is set todeadline-exceeded.
9284 # - internal: a retry is attempted if the gRPC
9285 # status code in the response header is set tointernal.
9286 # - resource-exhausted: a retry is attempted if the gRPC
9287 # status code in the response header is set toresource-exhausted.
9288 # - unavailable: a retry is attempted if the gRPC
9289 # status code in the response header is set tounavailable.
9290 #
9291 # Only the following codes are supported when the URL map is bound to
9292 # target gRPC proxy that has validateForProxyless field set to true.
9293 #
9294 # - cancelled
9295 # - deadline-exceeded
9296 # - internal
9297 # - resource-exhausted
9298 # - unavailable
9299 &quot;A String&quot;,
9300 ],
9301 },
9302 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
9303 # time the request has been fully processed (known as *end-of-stream*)
9304 # up until the response has been processed. Timeout includes
9305 # all retries.
9306 #
9307 # If not specified, this field uses the largest timeout among all backend
9308 # services associated with the route.
9309 #
9310 # Not supported when the URL map is bound to a target gRPC proxy that
9311 # has validateForProxyless field set to true.
9312 # as a count of seconds and fractions of seconds at nanosecond
9313 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
9314 # or &quot;month&quot;. Range is approximately 10,000 years.
9315 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
9316 # Durations less than one second are represented with a 0
9317 # `seconds` field and a positive `nanos` field. Must be from 0
9318 # to 999,999,999 inclusive.
9319 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
9320 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
9321 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
9322 },
9323 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
9324 # to the matched service.
9325 #
9326 # urlRewrite is the only action supported in UrlMaps
9327 # for classic Application Load Balancers.
9328 #
9329 # Not supported when the URL map is bound to a target gRPC proxy that
9330 # has the validateForProxyless field set to true.
9331 # backend service.
9332 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
9333 # host header is replaced with contents of hostRewrite.
9334 #
9335 # The value must be from 1 to 255 characters.
9336 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
9337 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
9338 #
9339 # The value must be from 1 to 1024 characters.
9340 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
9341 # header) using the HTTP template syntax.
9342 #
9343 # A corresponding
9344 # path_template_match must be specified. Any template variables must exist in
9345 # the path_template_match field.
9346 #
9347 #
9348 # - -At least one variable must be specified in the path_template_match
9349 # field
9350 # - You can omit variables from the rewritten URL
9351 # - The * and ** operators cannot be matched
9352 # unless they have a corresponding variable name - e.g.
9353 # {format=*} or {var=**}.
9354 #
9355 # For example, a path_template_match of /static/{format=**}
9356 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
9357 # rewrite, so that /{country}/{format}/{suffix=**} can be
9358 # rewritten as /content/{format}/{country}/{suffix}.
9359 #
9360 # At least
9361 # one non-empty routeRules[].matchRules[].path_template_match is
9362 # required.
9363 #
9364 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
9365 },
9366 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
9367 # occurs. The weights determine the fraction of traffic that flows to
9368 # their corresponding backend service. If all traffic needs to
9369 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
9370 #
9371 # After a backend service is identified and before forwarding
9372 # the request to
9373 # the backend service, advanced routing actions such as URL rewrites and
9374 # header transformations are applied depending on additional settings
9375 # specified in this HttpRouteAction.
9376 { # In contrast to a single BackendService in
9377 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
9378 # multiple backend services. The volume of traffic for each
9379 # backend service is proportional to the weight specified
9380 # in each WeightedBackendService
9381 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
9382 # resource. Before
9383 # forwarding the request to backendService, the load balancer
9384 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
9385 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
9386 # effect for the selected backendService.
9387 #
9388 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
9389 #
9390 # headerAction is not supported for load balancers that have
9391 # their loadBalancingScheme set to EXTERNAL.
9392 #
9393 # Not supported when the URL map is bound to a target gRPC proxy that
9394 # has validateForProxyless field set to true.
9395 # the request is passed along to the selected backendService.
9396 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
9397 { # Specification determining how headers are added to requests or responses.
9398 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
9399 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
9400 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
9401 # that already
9402 # exist for the header. If true, headerValue is set for the
9403 # header, discarding any values that were set for that header.
9404 #
9405 # The default value is true,
9406 # unless a variable is present in headerValue,
9407 # in which case the default value is false.
9408 # .
9409 },
9410 ],
9411 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
9412 # request before forwarding the request to the backendService.
9413 &quot;A String&quot;,
9414 ],
9415 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
9416 # client.
9417 { # Specification determining how headers are added to requests or responses.
9418 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
9419 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
9420 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
9421 # that already
9422 # exist for the header. If true, headerValue is set for the
9423 # header, discarding any values that were set for that header.
9424 #
9425 # The default value is true,
9426 # unless a variable is present in headerValue,
9427 # in which case the default value is false.
9428 # .
9429 },
9430 ],
9431 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
9432 # response before sending the response back to the client.
9433 &quot;A String&quot;,
9434 ],
9435 },
9436 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
9437 # computed asweight / (sum of all weightedBackendService weights in routeAction).
9438 #
9439 # The selection of a backend service is determined only for new traffic.
9440 # Once a user&#x27;s request has been directed to a backend service,
9441 # subsequent requests are sent to the same backend service as
9442 # determined by the backend service&#x27;s session affinity policy.
9443 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
9444 # splitting. If you do, the weighted traffic splitting configuration takes
9445 # precedence.
9446 #
9447 # The value must be from 0 to 1000.
9448 },
9449 ],
9450 },
9451 &quot;defaultService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource. This
9452 # URL is used if none of the pathRules orrouteRules defined by this PathMatcher are
9453 # matched. For example, the
9454 # following are all valid URLs to a BackendService resource:
9455 #
9456 #
9457 # - https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService
9458 # - compute/v1/projects/project/global/backendServices/backendService
9459 # - global/backendServices/backendService
9460 #
9461 #
9462 # If defaultRouteAction is also specified, advanced
9463 # routing actions, such as URL rewrites, take effect before sending the
9464 # request to the backend.
9465 #
9466 #
9467 # Only one of defaultUrlRedirect, defaultService
9468 # or defaultRouteAction.weightedBackendService can be set.
9469 #
9470 #
9471 # Authorization requires one or more of the following Google IAM permissions on the
9472 # specified resource default_service:
9473 #
9474 #
9475 # - compute.backendBuckets.use
9476 # - compute.backendServices.use
9477 &quot;defaultUrlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When none of the specified pathRules orrouteRules match, the request is redirected to a URL specified
9478 # by defaultUrlRedirect.
9479 #
9480 #
9481 # Only one of defaultUrlRedirect, defaultService
9482 # or defaultRouteAction.weightedBackendService can be set.
9483 #
9484 #
9485 # Not supported when the URL map is bound to a target gRPC proxy.
9486 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
9487 # was supplied in the request.
9488 #
9489 # The value must be from 1 to 255
9490 # characters.
9491 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
9492 # set to HTTPS.
9493 # If set to false, the URL scheme of the redirected request
9494 # remains the same as that of the request.
9495 #
9496 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
9497 #
9498 # The default is set to false.
9499 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
9500 # that was supplied in the request.
9501 #
9502 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
9503 # supplied, the path of the original request is used for the redirect.
9504 #
9505 # The value must be from 1 to 1024 characters.
9506 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
9507 # the HttpRouteRuleMatch, retaining the remaining portion
9508 # of the URL before redirecting the request.
9509 #
9510 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
9511 # supplied, the path of the original request is used for the redirect.
9512 #
9513 # The value must be from 1 to 1024 characters.
9514 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
9515 #
9516 # Supported values are:
9517 #
9518 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
9519 # to 301.
9520 # - FOUND, which corresponds to 302.
9521 # - SEE_OTHER which corresponds to 303.
9522 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
9523 # method is retained.
9524 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
9525 # method is retained.
9526 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
9527 # URL is
9528 # removed before redirecting the request. If set to false, the
9529 # query portion of the original URL is retained.
9530 #
9531 # The default is set to false.
9532 },
9533 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
9534 # create the resource.
9535 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
9536 # for the selected backend service.
9537 #
9538 # HeaderAction specified here are applied after the matchingHttpRouteRule HeaderAction and before theHeaderAction in the UrlMap
9539 #
9540 # HeaderAction is not supported for load balancers
9541 # that have
9542 # their loadBalancingScheme set to EXTERNAL.
9543 #
9544 # Not supported when the URL map is bound to a target gRPC proxy that
9545 # has validateForProxyless field set to true.
9546 # the request is passed along to the selected backendService.
9547 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
9548 { # Specification determining how headers are added to requests or responses.
9549 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
9550 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
9551 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
9552 # that already
9553 # exist for the header. If true, headerValue is set for the
9554 # header, discarding any values that were set for that header.
9555 #
9556 # The default value is true,
9557 # unless a variable is present in headerValue,
9558 # in which case the default value is false.
9559 # .
9560 },
9561 ],
9562 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
9563 # request before forwarding the request to the backendService.
9564 &quot;A String&quot;,
9565 ],
9566 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
9567 # client.
9568 { # Specification determining how headers are added to requests or responses.
9569 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
9570 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
9571 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
9572 # that already
9573 # exist for the header. If true, headerValue is set for the
9574 # header, discarding any values that were set for that header.
9575 #
9576 # The default value is true,
9577 # unless a variable is present in headerValue,
9578 # in which case the default value is false.
9579 # .
9580 },
9581 ],
9582 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
9583 # response before sending the response back to the client.
9584 &quot;A String&quot;,
9585 ],
9586 },
9587 &quot;name&quot;: &quot;A String&quot;, # The name to which this PathMatcher is referred by theHostRule.
9588 &quot;pathRules&quot;: [ # The list of path rules. Use this list instead of routeRules
9589 # when routing based on simple path matching is all that&#x27;s required. A path
9590 # rule can only include a wildcard character (*) after a
9591 # forward slash character (&quot;/&quot;).
9592 #
9593 # The order by which path rules are specified does not matter.
9594 # Matches are always done on the longest-path-first basis.
9595 #
9596 # For example: a pathRule with a path /a/b/c/* will match
9597 # before /a/b/* irrespective of the order in which those paths appear in this
9598 # list.
9599 #
9600 # Within a given pathMatcher, only one ofpathRules or routeRules must be set.
9601 { # A path-matching rule for a URL. If matched, will use the specifiedBackendService to handle the traffic arriving at this URL.
9602 &quot;customErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # customErrorResponsePolicy specifies how the Load
9603 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
9604 #
9605 # If a policy for an
9606 # error code is not configured for the PathRule, a policy for
9607 # the error code configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If
9608 # one is not specified inpathMatcher.defaultCustomErrorResponsePolicy, the policy
9609 # configured in UrlMap.defaultCustomErrorResponsePolicy takes
9610 # effect.
9611 #
9612 # For example, consider a UrlMap with the following configuration:
9613 #
9614 #
9615 # - UrlMap.defaultCustomErrorResponsePolicy are configured
9616 # with policies for 5xx and 4xx errors
9617 # - A PathRule for /coming_soon/ is configured for the error
9618 # code 404.
9619 #
9620 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
9621 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
9622 # the policy in PathRule.customErrorResponsePolicy takes
9623 # effect. If any of the requests in this example encounter a 500
9624 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
9625 #
9626 # customErrorResponsePolicy is supported only for
9627 # global external Application Load Balancers.
9628 # backend service or backend bucket responds with an error.
9629 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
9630 #
9631 # In a given policy, if you specify rules for both a range of error codes
9632 # as well as rules for specific error codes then rules with specific error
9633 # codes have a higher priority. For example, assume that you configure a rule
9634 # for 401 (Un-authorized) code, and another for all 4 series
9635 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
9636 # However if the backend service returns a 403, the rule for4xx takes effect.
9637 { # Specifies the mapping between the response code that will be returned along
9638 # with the custom error content and the response code returned by the backend
9639 # service.
9640 &quot;matchResponseCodes&quot;: [ # Valid values include:
9641 #
9642 #
9643 # - A number between 400 and 599: For example
9644 # 401 or 503, in which case the load balancer
9645 # applies the policy if the error code exactly matches this value.
9646 # - 5xx: Load Balancer will apply the policy if the
9647 # backend service responds with any response code in the range of
9648 # 500 to 599.
9649 # - 4xx: Load
9650 # Balancer will apply the policy if the backend service responds with any
9651 # response code in the range of 400 to
9652 # 499.
9653 #
9654 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
9655 &quot;A String&quot;,
9656 ],
9657 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
9658 # error content. If overrideResponseCode is not supplied, the
9659 # same response code returned by the original backend bucket or backend
9660 # service is returned to the client.
9661 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
9662 #
9663 # path must start
9664 # with a leading slash. path cannot have trailing slashes.
9665 #
9666 # If the file is not available in backendBucket or the
9667 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
9668 #
9669 # The value must
9670 # be from 1 to 1024 characters
9671 },
9672 ],
9673 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
9674 # contains the custom error content. Examples are:
9675 #
9676 #
9677 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
9678 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
9679 # - global/backendBuckets/myBackendBucket
9680 #
9681 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
9682 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
9683 #
9684 # If load balancer cannot reach
9685 # the backendBucket, a simple Not Found Error will
9686 # be returned, with the original response code (oroverrideResponseCode if configured).
9687 #
9688 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
9689 },
9690 &quot;paths&quot;: [ # The list of path patterns to match. Each must start with /
9691 # and the only place a * is allowed is at the end following
9692 # a /. The string fed to the path matcher does not include
9693 # any text after the first ? or #, and
9694 # those chars are not allowed here.
9695 &quot;A String&quot;,
9696 ],
9697 &quot;routeAction&quot;: { # In response to a matching path, the load balancer
9698 # performs advanced routing actions, such as URL rewrites and header
9699 # transformations, before forwarding the request to the selected
9700 # backend.
9701 #
9702 #
9703 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
9704 #
9705 #
9706 # URL maps for classic Application Load Balancers only support
9707 # the urlRewrite action within a path rule&#x27;srouteAction.
9708 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
9709 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
9710 # property must be specified. This policy cannot be specified if any target
9711 # backend has Identity-Aware Proxy enabled.
9712 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
9713 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
9714 # header names can be specified. The cache is bypassed for all `cacheMode`
9715 # values.
9716 &quot;A String&quot;,
9717 ],
9718 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
9719 # on the backend type: for Backend Services, the complete request URI is
9720 # used; for Backend Buckets, the request URI is used without the protocol or
9721 # host, and only query parameters known to Cloud Storage are included.
9722 # Policy defined on Route Action.
9723 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
9724 # parameters will be included. Either specify `excludedQueryParameters`
9725 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
9726 # encoded and not treated as delimiters.
9727 #
9728 # Note: This field applies to routes that use backend services. Attempting
9729 # to set it on a route that points exclusively to Backend Buckets will
9730 # result in a configuration error. For routes that point to a Backend
9731 # Bucket, use `includedQueryParameters` to define which parameters should
9732 # be part of the cache key.
9733 &quot;A String&quot;,
9734 ],
9735 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
9736 #
9737 # Note: This setting is only applicable to routes that use a Backend
9738 # Service. It does not affect requests served by a Backend Bucket, as the
9739 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
9740 # it on a route that points exclusively to Backend Buckets will result in a
9741 # configuration error.
9742 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
9743 #
9744 # Note: This setting is only applicable to routes that use a Backend
9745 # Service. It does not affect requests served by a Backend Bucket, as the
9746 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
9747 # set on a route that points exclusively to Backend Buckets will result in
9748 # a configuration error.
9749 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
9750 # `includedQueryParameters` and `excludedQueryParameters`. If neither
9751 # is set, the entire query string will be included. If false, the query
9752 # string will be excluded from the cache key entirely.
9753 #
9754 # Note: This field applies to routes that use backend services. Attempting
9755 # to set it on a route that points exclusively to Backend Buckets will
9756 # result in a configuration error. For routes that point to a Backend
9757 # Bucket, use `includedQueryParameters` to define which parameters should
9758 # be part of the cache key.
9759 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
9760 # The name=value pair will be used in the cache key Cloud CDN generates.
9761 #
9762 # Note: This setting is only applicable to routes that use a Backend
9763 # Service. It does not affect requests served by a Backend Bucket.
9764 # Attempting to set it on a route that points exclusively to Backend
9765 # Buckets will result in a configuration error. Up to 5 cookie names can be
9766 # specified.
9767 &quot;A String&quot;,
9768 ],
9769 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
9770 &quot;A String&quot;,
9771 ],
9772 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
9773 # parameters will be excluded. Either specify `includedQueryParameters`
9774 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
9775 # encoded and not treated as delimiters.
9776 &quot;A String&quot;,
9777 ],
9778 },
9779 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
9780 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
9781 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
9782 # content. This is used to clamp the max-age (or Expires) value sent to the
9783 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
9784 # is used for the response max-age directive, along with a &quot;public&quot;
9785 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
9786 # clamps the max-age from the origin (if specified), or else sets the
9787 # response max-age directive to the lesser of the `clientTtl` and
9788 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
9789 # present. The maximum allowed value is 31,622,400s (1 year). If not
9790 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
9791 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
9792 # `USE_ORIGIN_HEADERS`.
9793 # as a count of seconds and fractions of seconds at nanosecond
9794 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
9795 # or &quot;month&quot;. Range is approximately 10,000 years.
9796 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
9797 # Durations less than one second are represented with a 0
9798 # `seconds` field and a positive `nanos` field. Must be from 0
9799 # to 999,999,999 inclusive.
9800 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
9801 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
9802 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
9803 },
9804 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
9805 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
9806 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
9807 # greater than that of `maxTtl`. When the `cacheMode` is set to
9808 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
9809 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
9810 # accessed objects may be evicted from the cache before the defined TTL. If
9811 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
9812 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
9813 # `USE_ORIGIN_HEADERS`.
9814 # as a count of seconds and fractions of seconds at nanosecond
9815 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
9816 # or &quot;month&quot;. Range is approximately 10,000 years.
9817 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
9818 # Durations less than one second are represented with a 0
9819 # `seconds` field and a positive `nanos` field. Must be from 0
9820 # to 999,999,999 inclusive.
9821 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
9822 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
9823 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
9824 },
9825 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
9826 # attempt to set a max-age or s-maxage higher than this, or an Expires header
9827 # more than `maxTtl` seconds in the future will be capped at the value of
9828 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
9829 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
9830 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
9831 # Infrequently accessed objects may be evicted from the cache before the
9832 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
9833 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
9834 # mode.
9835 # as a count of seconds and fractions of seconds at nanosecond
9836 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
9837 # or &quot;month&quot;. Range is approximately 10,000 years.
9838 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
9839 # Durations less than one second are represented with a 0
9840 # `seconds` field and a positive `nanos` field. Must be from 0
9841 # to 999,999,999 inclusive.
9842 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
9843 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
9844 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
9845 },
9846 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
9847 # to apply fine-grained caching for common errors or redirects.
9848 # This can reduce the load on your origin and improve end-user
9849 # experience by reducing response latency.
9850 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
9851 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
9852 # the specified response code that lack any Cache-Control, Expires, or
9853 # Pragma: no-cache directives. When the `cacheMode` is set to
9854 # `FORCE_CACHE_ALL`, negative caching applies to all responses
9855 # with the specified response code, and overrides any caching headers. By
9856 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
9857 #
9858 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
9859 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
9860 # * 405 (Method Not Found), 501 (Not Implemented): 60s
9861 #
9862 # These defaults can be overridden in `negativeCachingPolicy`.
9863 # If not specified, Cloud CDN applies negative caching by default.
9864 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
9865 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
9866 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
9867 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
9868 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
9869 # all response codes that you wish to cache. Cloud CDN will not apply any
9870 # default negative caching when a policy exists.
9871 { # Specify CDN TTLs for response error codes.
9872 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
9873 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
9874 # specified as values, and you cannot specify a status code more than
9875 # once.
9876 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
9877 # corresponding status code.
9878 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
9879 # objects may be evicted from the cache before the defined TTL.
9880 # as a count of seconds and fractions of seconds at nanosecond
9881 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
9882 # or &quot;month&quot;. Range is approximately 10,000 years.
9883 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
9884 # Durations less than one second are represented with a 0
9885 # `seconds` field and a positive `nanos` field. Must be from 0
9886 # to 999,999,999 inclusive.
9887 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
9888 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
9889 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
9890 },
9891 },
9892 ],
9893 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
9894 # requests into a small number of requests to the origin. If not specified,
9895 # Cloud CDN applies request coalescing by default.
9896 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
9897 # content with the origin, or when an error is encountered when refreshing
9898 # the cache.
9899 # This setting defines the default &quot;max-stale&quot; duration for any cached
9900 # responses that do not specify a max-stale directive. Stale responses that
9901 # exceed the TTL configured here will not be served. The default limit
9902 # (max-stale) is 86400s (1 day), which will allow stale content to be
9903 # served up to this limit beyond the max-age (or s-maxage) of a cached
9904 # response.
9905 # The maximum allowed value is 604800 (1 week).
9906 # Set this to zero (0) to disable serve-while-stale.
9907 # as a count of seconds and fractions of seconds at nanosecond
9908 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
9909 # or &quot;month&quot;. Range is approximately 10,000 years.
9910 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
9911 # Durations less than one second are represented with a 0
9912 # `seconds` field and a positive `nanos` field. Must be from 0
9913 # to 999,999,999 inclusive.
9914 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
9915 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
9916 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
9917 },
9918 },
9919 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
9920 # information about the W3C recommendation for cross-origin resource sharing
9921 # (CORS), see Fetch API Living
9922 # Standard.
9923 #
9924 # Not supported when the URL map is bound to a target gRPC proxy.
9925 # information about the W3C recommendation for cross-origin resource sharing
9926 # (CORS), see Fetch API Living
9927 # Standard.
9928 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
9929 # indicates that
9930 # the actual request can include user credentials. This field translates to
9931 # the Access-Control-Allow-Credentials header.
9932 #
9933 # Default is false.
9934 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
9935 # header.
9936 &quot;A String&quot;,
9937 ],
9938 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
9939 # header.
9940 &quot;A String&quot;,
9941 ],
9942 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
9943 # more information, see regular expression syntax.
9944 #
9945 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
9946 #
9947 # Regular expressions can only be used when the loadBalancingScheme is
9948 # set to INTERNAL_SELF_MANAGED.
9949 &quot;A String&quot;,
9950 ],
9951 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
9952 #
9953 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
9954 &quot;A String&quot;,
9955 ],
9956 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
9957 # The default value is false, which indicates that the CORS
9958 # policy is in effect.
9959 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
9960 # header.
9961 &quot;A String&quot;,
9962 ],
9963 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
9964 # seconds. This field translates to the Access-Control-Max-Age
9965 # header.
9966 },
9967 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
9968 # the resiliency of clients to backend service failure. As part of fault
9969 # injection, when clients send requests to a backend service, delays can be
9970 # introduced by a load balancer on a percentage of requests before sending
9971 # those requests to the backend service. Similarly requests from clients can
9972 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
9973 # that are configured with a fault_injection_policy if:
9974 # 1. The traffic is generated by fault injection AND
9975 # 2. The fault injection is not a delay fault injection.
9976 # Fault injection is not supported with the classic Application Load Balancer
9977 # . To see which load balancers support fault injection,
9978 # see Load
9979 # balancing: Routing and traffic management features.
9980 # the resiliency of clients to backend service failure. As part of fault
9981 # injection, when clients send requests to a backend service, delays can be
9982 # introduced by the load balancer on a percentage of requests before sending
9983 # those request to the backend service. Similarly requests from clients can be
9984 # aborted by the load balancer for a percentage of requests.
9985 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
9986 # injection.
9987 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
9988 #
9989 # The value must be from 200 to 599 inclusive.
9990 #
9991 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
9992 # according to this
9993 # mapping table. HTTP status 200 is mapped to gRPC status
9994 # UNKNOWN. Injecting an OK status is currently not supported by
9995 # Traffic Director.
9996 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
9997 # that is aborted as part of fault injection.
9998 #
9999 # The value must be from 0.0 to 100.0 inclusive.
10000 },
10001 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
10002 # injection, before being sent to a backend service.
10003 # request to the backend service as part of fault injection.
10004 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
10005 # as a count of seconds and fractions of seconds at nanosecond
10006 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
10007 # or &quot;month&quot;. Range is approximately 10,000 years.
10008 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
10009 # Durations less than one second are represented with a 0
10010 # `seconds` field and a positive `nanos` field. Must be from 0
10011 # to 999,999,999 inclusive.
10012 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
10013 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
10014 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
10015 },
10016 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
10017 # which a delay is introduced as part of fault injection.
10018 #
10019 # The value must be from 0.0 to 100.0 inclusive.
10020 },
10021 },
10022 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
10023 # Unlike the timeout field where the timeout duration starts
10024 # from the time the request has been fully processed (known as*end-of-stream*),
10025 # the duration in this field is computed from the beginning of the stream
10026 # until the response has been processed, including all retries. A
10027 # stream that does not complete in this duration is closed.
10028 #
10029 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
10030 # with the route.
10031 #
10032 # This field is only allowed if the Url map is used with backend services
10033 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
10034 # as a count of seconds and fractions of seconds at nanosecond
10035 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
10036 # or &quot;month&quot;. Range is approximately 10,000 years.
10037 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
10038 # Durations less than one second are represented with a 0
10039 # `seconds` field and a positive `nanos` field. Must be from 0
10040 # to 999,999,999 inclusive.
10041 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
10042 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
10043 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
10044 },
10045 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
10046 # are shadowed to a separate mirrored backend service. The load balancer does
10047 # not wait for responses from the shadow service. Before sending traffic
10048 # to the shadow service, the host / authority header is suffixed with-shadow.
10049 #
10050 # Not supported when the URL map is bound to a target gRPC proxy that
10051 # has the validateForProxyless field set to true.
10052 # are shadowed to a separate mirrored backend service. The load balancer
10053 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
10054 # to the shadow service, the host or authority header is suffixed with-shadow.
10055 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
10056 # mirrored to.
10057 #
10058 # The backend service configured for a mirroring
10059 # policy must reference backends that are of the same type as the original
10060 # backend service matched in the URL map.
10061 #
10062 # Serverless NEG backends are not currently supported as a mirrored
10063 # backend service.
10064 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
10065 },
10066 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
10067 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
10068 # If not specified, defaults to 1.
10069 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
10070 #
10071 # If not specified, will use the timeout set in theHttpRouteAction field.
10072 # If timeout in the HttpRouteAction field is not set, this field
10073 # uses the largest timeout
10074 # among all backend services associated with the route.
10075 #
10076 # Not supported when the URL map is bound to a target gRPC proxy that
10077 # has the validateForProxyless field set to true.
10078 # as a count of seconds and fractions of seconds at nanosecond
10079 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
10080 # or &quot;month&quot;. Range is approximately 10,000 years.
10081 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
10082 # Durations less than one second are represented with a 0
10083 # `seconds` field and a positive `nanos` field. Must be from 0
10084 # to 999,999,999 inclusive.
10085 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
10086 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
10087 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
10088 },
10089 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
10090 # values are:
10091 #
10092 # - 5xx: retry is attempted if the instance or endpoint
10093 # responds with any 5xx response code, or if the instance or
10094 # endpoint does not respond at all. For example, disconnects, reset, read
10095 # timeout, connection failure, and refused streams.
10096 # - gateway-error: Similar to 5xx, but only
10097 # applies to response codes 502, 503 or504.
10098 # - connect-failure: a retry is attempted on failures
10099 # connecting to the instance or endpoint. For example, connection
10100 # timeouts.
10101 # - retriable-4xx: a retry is attempted if the instance
10102 # or endpoint responds with a 4xx response code.
10103 # The only error that you can retry is error code 409.
10104 # - refused-stream: a retry is attempted if the instance
10105 # or endpoint resets the stream with a REFUSED_STREAM error
10106 # code. This reset type indicates that it is safe to retry.
10107 # - cancelled: a retry is attempted if the gRPC status
10108 # code in the response header is set to cancelled.
10109 # - deadline-exceeded: a retry is attempted if the gRPC
10110 # status code in the response header is set todeadline-exceeded.
10111 # - internal: a retry is attempted if the gRPC
10112 # status code in the response header is set tointernal.
10113 # - resource-exhausted: a retry is attempted if the gRPC
10114 # status code in the response header is set toresource-exhausted.
10115 # - unavailable: a retry is attempted if the gRPC
10116 # status code in the response header is set tounavailable.
10117 #
10118 # Only the following codes are supported when the URL map is bound to
10119 # target gRPC proxy that has validateForProxyless field set to true.
10120 #
10121 # - cancelled
10122 # - deadline-exceeded
10123 # - internal
10124 # - resource-exhausted
10125 # - unavailable
10126 &quot;A String&quot;,
10127 ],
10128 },
10129 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
10130 # time the request has been fully processed (known as *end-of-stream*)
10131 # up until the response has been processed. Timeout includes
10132 # all retries.
10133 #
10134 # If not specified, this field uses the largest timeout among all backend
10135 # services associated with the route.
10136 #
10137 # Not supported when the URL map is bound to a target gRPC proxy that
10138 # has validateForProxyless field set to true.
10139 # as a count of seconds and fractions of seconds at nanosecond
10140 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
10141 # or &quot;month&quot;. Range is approximately 10,000 years.
10142 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
10143 # Durations less than one second are represented with a 0
10144 # `seconds` field and a positive `nanos` field. Must be from 0
10145 # to 999,999,999 inclusive.
10146 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
10147 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
10148 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
10149 },
10150 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
10151 # to the matched service.
10152 #
10153 # urlRewrite is the only action supported in UrlMaps
10154 # for classic Application Load Balancers.
10155 #
10156 # Not supported when the URL map is bound to a target gRPC proxy that
10157 # has the validateForProxyless field set to true.
10158 # backend service.
10159 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
10160 # host header is replaced with contents of hostRewrite.
10161 #
10162 # The value must be from 1 to 255 characters.
10163 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
10164 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
10165 #
10166 # The value must be from 1 to 1024 characters.
10167 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
10168 # header) using the HTTP template syntax.
10169 #
10170 # A corresponding
10171 # path_template_match must be specified. Any template variables must exist in
10172 # the path_template_match field.
10173 #
10174 #
10175 # - -At least one variable must be specified in the path_template_match
10176 # field
10177 # - You can omit variables from the rewritten URL
10178 # - The * and ** operators cannot be matched
10179 # unless they have a corresponding variable name - e.g.
10180 # {format=*} or {var=**}.
10181 #
10182 # For example, a path_template_match of /static/{format=**}
10183 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
10184 # rewrite, so that /{country}/{format}/{suffix=**} can be
10185 # rewritten as /content/{format}/{country}/{suffix}.
10186 #
10187 # At least
10188 # one non-empty routeRules[].matchRules[].path_template_match is
10189 # required.
10190 #
10191 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
10192 },
10193 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
10194 # occurs. The weights determine the fraction of traffic that flows to
10195 # their corresponding backend service. If all traffic needs to
10196 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
10197 #
10198 # After a backend service is identified and before forwarding
10199 # the request to
10200 # the backend service, advanced routing actions such as URL rewrites and
10201 # header transformations are applied depending on additional settings
10202 # specified in this HttpRouteAction.
10203 { # In contrast to a single BackendService in
10204 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
10205 # multiple backend services. The volume of traffic for each
10206 # backend service is proportional to the weight specified
10207 # in each WeightedBackendService
10208 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
10209 # resource. Before
10210 # forwarding the request to backendService, the load balancer
10211 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
10212 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
10213 # effect for the selected backendService.
10214 #
10215 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
10216 #
10217 # headerAction is not supported for load balancers that have
10218 # their loadBalancingScheme set to EXTERNAL.
10219 #
10220 # Not supported when the URL map is bound to a target gRPC proxy that
10221 # has validateForProxyless field set to true.
10222 # the request is passed along to the selected backendService.
10223 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
10224 { # Specification determining how headers are added to requests or responses.
10225 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
10226 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
10227 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
10228 # that already
10229 # exist for the header. If true, headerValue is set for the
10230 # header, discarding any values that were set for that header.
10231 #
10232 # The default value is true,
10233 # unless a variable is present in headerValue,
10234 # in which case the default value is false.
10235 # .
10236 },
10237 ],
10238 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
10239 # request before forwarding the request to the backendService.
10240 &quot;A String&quot;,
10241 ],
10242 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
10243 # client.
10244 { # Specification determining how headers are added to requests or responses.
10245 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
10246 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
10247 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
10248 # that already
10249 # exist for the header. If true, headerValue is set for the
10250 # header, discarding any values that were set for that header.
10251 #
10252 # The default value is true,
10253 # unless a variable is present in headerValue,
10254 # in which case the default value is false.
10255 # .
10256 },
10257 ],
10258 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
10259 # response before sending the response back to the client.
10260 &quot;A String&quot;,
10261 ],
10262 },
10263 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
10264 # computed asweight / (sum of all weightedBackendService weights in routeAction).
10265 #
10266 # The selection of a backend service is determined only for new traffic.
10267 # Once a user&#x27;s request has been directed to a backend service,
10268 # subsequent requests are sent to the same backend service as
10269 # determined by the backend service&#x27;s session affinity policy.
10270 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
10271 # splitting. If you do, the weighted traffic splitting configuration takes
10272 # precedence.
10273 #
10274 # The value must be from 0 to 1000.
10275 },
10276 ],
10277 },
10278 &quot;service&quot;: &quot;A String&quot;, # The full or partial URL of the backend service resource to which traffic
10279 # is directed if this rule is matched. If routeAction is
10280 # also specified, advanced routing actions, such as URL rewrites,
10281 # take effect before sending the request to the backend.
10282 #
10283 #
10284 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
10285 &quot;urlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When a path pattern is matched, the request is redirected to a URL
10286 # specified by urlRedirect.
10287 #
10288 #
10289 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
10290 #
10291 #
10292 # Not supported when the URL map is bound to a target gRPC proxy.
10293 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
10294 # was supplied in the request.
10295 #
10296 # The value must be from 1 to 255
10297 # characters.
10298 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
10299 # set to HTTPS.
10300 # If set to false, the URL scheme of the redirected request
10301 # remains the same as that of the request.
10302 #
10303 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
10304 #
10305 # The default is set to false.
10306 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
10307 # that was supplied in the request.
10308 #
10309 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
10310 # supplied, the path of the original request is used for the redirect.
10311 #
10312 # The value must be from 1 to 1024 characters.
10313 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
10314 # the HttpRouteRuleMatch, retaining the remaining portion
10315 # of the URL before redirecting the request.
10316 #
10317 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
10318 # supplied, the path of the original request is used for the redirect.
10319 #
10320 # The value must be from 1 to 1024 characters.
10321 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
10322 #
10323 # Supported values are:
10324 #
10325 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
10326 # to 301.
10327 # - FOUND, which corresponds to 302.
10328 # - SEE_OTHER which corresponds to 303.
10329 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
10330 # method is retained.
10331 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
10332 # method is retained.
10333 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
10334 # URL is
10335 # removed before redirecting the request. If set to false, the
10336 # query portion of the original URL is retained.
10337 #
10338 # The default is set to false.
10339 },
10340 },
10341 ],
10342 &quot;routeRules&quot;: [ # The list of HTTP route rules. Use this list instead ofpathRules when advanced route matching and routing actions are
10343 # desired. routeRules are evaluated in order of priority, from
10344 # the lowest to highest number.
10345 #
10346 # Within a given pathMatcher, you can set only one ofpathRules or routeRules.
10347 { # The HttpRouteRule setting specifies how to match an HTTP request
10348 # and the corresponding routing action that load balancing proxies perform.
10349 &quot;customErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # customErrorResponsePolicy specifies how the Load
10350 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
10351 #
10352 # If a policy for an
10353 # error code is not configured for the RouteRule, a policy for
10354 # the error code configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If
10355 # one is not specified inpathMatcher.defaultCustomErrorResponsePolicy, the policy
10356 # configured in UrlMap.defaultCustomErrorResponsePolicy takes
10357 # effect.
10358 #
10359 # For example, consider a UrlMap with the following configuration:
10360 #
10361 #
10362 # - UrlMap.defaultCustomErrorResponsePolicy are configured
10363 # with policies for 5xx and 4xx errors
10364 # - A RouteRule for /coming_soon/ is configured for the
10365 # error code 404.
10366 #
10367 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
10368 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
10369 # the policy in RouteRule.customErrorResponsePolicy takes
10370 # effect. If any of the requests in this example encounter a 500
10371 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
10372 #
10373 # When
10374 # used in conjunction withrouteRules.routeAction.retryPolicy, retries take
10375 # precedence. Only once all retries are exhausted, thecustomErrorResponsePolicy is applied. While attempting
10376 # a retry, if load balancer is successful in reaching the
10377 # service, the customErrorResponsePolicy is ignored and
10378 # the response from the service is returned to the client.
10379 #
10380 # customErrorResponsePolicy is supported only for
10381 # global external Application Load Balancers.
10382 # backend service or backend bucket responds with an error.
10383 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
10384 #
10385 # In a given policy, if you specify rules for both a range of error codes
10386 # as well as rules for specific error codes then rules with specific error
10387 # codes have a higher priority. For example, assume that you configure a rule
10388 # for 401 (Un-authorized) code, and another for all 4 series
10389 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
10390 # However if the backend service returns a 403, the rule for4xx takes effect.
10391 { # Specifies the mapping between the response code that will be returned along
10392 # with the custom error content and the response code returned by the backend
10393 # service.
10394 &quot;matchResponseCodes&quot;: [ # Valid values include:
10395 #
10396 #
10397 # - A number between 400 and 599: For example
10398 # 401 or 503, in which case the load balancer
10399 # applies the policy if the error code exactly matches this value.
10400 # - 5xx: Load Balancer will apply the policy if the
10401 # backend service responds with any response code in the range of
10402 # 500 to 599.
10403 # - 4xx: Load
10404 # Balancer will apply the policy if the backend service responds with any
10405 # response code in the range of 400 to
10406 # 499.
10407 #
10408 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
10409 &quot;A String&quot;,
10410 ],
10411 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
10412 # error content. If overrideResponseCode is not supplied, the
10413 # same response code returned by the original backend bucket or backend
10414 # service is returned to the client.
10415 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
10416 #
10417 # path must start
10418 # with a leading slash. path cannot have trailing slashes.
10419 #
10420 # If the file is not available in backendBucket or the
10421 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
10422 #
10423 # The value must
10424 # be from 1 to 1024 characters
10425 },
10426 ],
10427 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
10428 # contains the custom error content. Examples are:
10429 #
10430 #
10431 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
10432 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
10433 # - global/backendBuckets/myBackendBucket
10434 #
10435 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
10436 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
10437 #
10438 # If load balancer cannot reach
10439 # the backendBucket, a simple Not Found Error will
10440 # be returned, with the original response code (oroverrideResponseCode if configured).
10441 #
10442 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
10443 },
10444 &quot;description&quot;: &quot;A String&quot;, # The short description conveying the intent of this routeRule.
10445 #
10446 #
10447 # The description can have a maximum length of 1024 characters.
10448 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
10449 # for the selected backendService.
10450 #
10451 # The headerAction value specified here is applied before the
10452 # matching pathMatchers[].headerAction and afterpathMatchers[].routeRules[].routeAction.weightedBackendService.backendServiceWeightAction[].headerAction
10453 #
10454 # HeaderAction is not supported for load balancers
10455 # that have
10456 # their loadBalancingScheme set to EXTERNAL.
10457 #
10458 # Not supported when the URL map is bound to a target gRPC proxy that
10459 # has validateForProxyless field set to true.
10460 # the request is passed along to the selected backendService.
10461 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
10462 { # Specification determining how headers are added to requests or responses.
10463 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
10464 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
10465 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
10466 # that already
10467 # exist for the header. If true, headerValue is set for the
10468 # header, discarding any values that were set for that header.
10469 #
10470 # The default value is true,
10471 # unless a variable is present in headerValue,
10472 # in which case the default value is false.
10473 # .
10474 },
10475 ],
10476 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
10477 # request before forwarding the request to the backendService.
10478 &quot;A String&quot;,
10479 ],
10480 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
10481 # client.
10482 { # Specification determining how headers are added to requests or responses.
10483 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
10484 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
10485 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
10486 # that already
10487 # exist for the header. If true, headerValue is set for the
10488 # header, discarding any values that were set for that header.
10489 #
10490 # The default value is true,
10491 # unless a variable is present in headerValue,
10492 # in which case the default value is false.
10493 # .
10494 },
10495 ],
10496 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
10497 # response before sending the response back to the client.
10498 &quot;A String&quot;,
10499 ],
10500 },
10501 &quot;matchRules&quot;: [ # The list of criteria for matching attributes of a request to thisrouteRule. This list has OR semantics: the request matches
10502 # this routeRule when any of thematchRules are satisfied. However predicates within
10503 # a given matchRule have AND semantics. All predicates
10504 # within a matchRule must match for the request to
10505 # match the rule.
10506 { # HttpRouteRuleMatch specifies a set of criteria for matching
10507 # requests to an HttpRouteRule. All specified criteria must
10508 # be satisfied for a match to occur.
10509 &quot;fullPathMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the path of the
10510 # request must exactly match the value specified infullPathMatch after removing any query parameters and anchor
10511 # that may be part of the original URL.
10512 #
10513 # fullPathMatch must be from 1 to 1024 characters.
10514 #
10515 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be
10516 # specified.
10517 &quot;headerMatches&quot;: [ # Specifies a list of header match criteria, all of which must match
10518 # corresponding headers in the request.
10519 { # matchRule criteria for request header matches.
10520 &quot;exactMatch&quot;: &quot;A String&quot;, # The value should exactly match contents of exactMatch.
10521 #
10522 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
10523 &quot;headerName&quot;: &quot;A String&quot;, # The name of the HTTP header to match.
10524 #
10525 # For matching against the HTTP request&#x27;s authority, use a headerMatch
10526 # with the header name &quot;:authority&quot;.
10527 #
10528 # For matching a request&#x27;s method, use the headerName &quot;:method&quot;.
10529 #
10530 # When the URL map is bound to a target gRPC proxy that has
10531 # the validateForProxyless field set to true, only
10532 # non-binary
10533 # user-specified custom metadata and the `content-type` header are supported.
10534 # The following transport-level headers cannot be used in header matching
10535 # rules:
10536 # `:authority`, `:method`, `:path`, `:scheme`, `user-agent`,
10537 # `accept-encoding`, `content-encoding`, `grpc-accept-encoding`,
10538 # `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags-bin`,
10539 # `grpc-timeout` and `grpc-trace-bin`.
10540 &quot;invertMatch&quot;: True or False, # If set to false, the headerMatch is considered a
10541 # match if the preceding match criteria are met. If set to true,
10542 # the headerMatch is considered a match if the preceding
10543 # match criteria are NOT met.
10544 #
10545 # The default setting is false.
10546 &quot;prefixMatch&quot;: &quot;A String&quot;, # The value of the header must start with the contents ofprefixMatch.
10547 #
10548 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
10549 &quot;presentMatch&quot;: True or False, # A header with the contents of headerName must exist. The
10550 # match takes place whether or not the request&#x27;s header has a value.
10551 #
10552 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
10553 &quot;rangeMatch&quot;: { # HttpRouteRuleMatch criteria for field values that must stay # The header value must be an integer and its value must be in the range
10554 # specified in rangeMatch. If the header does not contain an
10555 # integer, number or is empty, the match fails.
10556 #
10557 # For example for a range [-5, 0]
10558 #
10559 #
10560 # - -3 will match.
10561 # - 0 will not match.
10562 # - 0.25 will not match.
10563 # - -3someString will not match.
10564 #
10565 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
10566 #
10567 # rangeMatch is not supported for load balancers
10568 # that have loadBalancingScheme set to EXTERNAL.
10569 # within the specified integer range.
10570 &quot;rangeEnd&quot;: &quot;A String&quot;, # The end of the range (exclusive) in signed long integer format.
10571 &quot;rangeStart&quot;: &quot;A String&quot;, # The start of the range (inclusive) in signed long integer format.
10572 },
10573 &quot;regexMatch&quot;: &quot;A String&quot;, # The value of the header must match the regular expression specified inregexMatch.
10574 # For more information about regular expression syntax, see Syntax.
10575 #
10576 # For matching against a port specified in the HTTP request, use a
10577 # headerMatch with headerName set to PORT and a regular expression that
10578 # satisfies the RFC2616 Host header&#x27;s port specifier.
10579 #
10580 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
10581 #
10582 # Regular expressions can only be used when the loadBalancingScheme is
10583 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
10584 # (regional scope) or INTERNAL_MANAGED.
10585 &quot;suffixMatch&quot;: &quot;A String&quot;, # The value of the header must end with the contents ofsuffixMatch.
10586 #
10587 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
10588 },
10589 ],
10590 &quot;ignoreCase&quot;: True or False, # Specifies that prefixMatch and fullPathMatch
10591 # matches are case sensitive.
10592 #
10593 # The default value is false.
10594 #
10595 # ignoreCase must not be used with regexMatch.
10596 #
10597 # Not supported when the URL map is bound to a target gRPC proxy.
10598 &quot;metadataFilters&quot;: [ # Opaque filter criteria used by the load balancer to restrict routing
10599 # configuration to a limited set of xDS
10600 # compliant clients. In their xDS requests to the load balancer, xDS clients
10601 # present node
10602 # metadata. When there is a match, the relevant routing configuration
10603 # is made available to those proxies.
10604 #
10605 # For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least one of thefilterLabels must match the corresponding label provided in
10606 # the metadata. If its filterMatchCriteria is set to
10607 # MATCH_ALL, then all of its filterLabels must match with
10608 # corresponding labels provided in the metadata. If multiple
10609 # metadata filters are specified, all of them need to be
10610 # satisfied in order to be considered a match.
10611 #
10612 # metadataFilters specified here is applied after those
10613 # specified in ForwardingRule that refers to theUrlMap this HttpRouteRuleMatch belongs to.
10614 #
10615 # metadataFilters only applies to load balancers that haveloadBalancingScheme set toINTERNAL_SELF_MANAGED.
10616 #
10617 # Not supported when the URL map is bound to a target gRPC proxy that
10618 # has validateForProxyless field set to true.
10619 { # Opaque filter criteria used by load balancers to restrict routing
10620 # configuration to a limited set of load balancing proxies. Proxies and
10621 # sidecars involved in load balancing would typically present metadata to the
10622 # load balancers that need to match criteria specified here. If a match takes
10623 # place, the relevant configuration is made available to those
10624 # proxies.
10625 #
10626 # For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least
10627 # one of thefilterLabels must match the corresponding label provided in
10628 # the metadata. If its filterMatchCriteria is set to
10629 # MATCH_ALL, then all of its filterLabels must match with
10630 # corresponding labels provided in the metadata.
10631 #
10632 # An example for using metadataFilters would be: if
10633 # load balancing involves
10634 # Envoys, they receive routing configuration when values inmetadataFilters match values supplied in of their XDS requests to loadbalancers.
10635 &quot;filterLabels&quot;: [ # The list of label value pairs that must match labels in the provided
10636 # metadata based on filterMatchCriteria
10637 #
10638 # This list must not be empty and can have at the most 64 entries.
10639 { # MetadataFilter label name value pairs that are expected
10640 # to match corresponding labels presented as metadata to the load balancer.
10641 &quot;name&quot;: &quot;A String&quot;, # Name of metadata label.
10642 #
10643 # The name can have a maximum length of 1024 characters and must be at
10644 # least 1 character long.
10645 &quot;value&quot;: &quot;A String&quot;, # The value of the label must match the specified value.
10646 #
10647 # value can have a maximum length of 1024 characters.
10648 },
10649 ],
10650 &quot;filterMatchCriteria&quot;: &quot;A String&quot;, # Specifies how individual filter label matches
10651 # within the list of filterLabels and contributes toward the
10652 # overall metadataFilter match.
10653 #
10654 # Supported values are:
10655 #
10656 # - MATCH_ANY: at least one of the filterLabels
10657 # must have a matching label in the provided metadata.
10658 # - MATCH_ALL: all filterLabels must have
10659 # matching labels in the provided metadata.
10660 },
10661 ],
10662 &quot;pathTemplateMatch&quot;: &quot;A String&quot;, # If specified, this field defines a path template pattern that must match
10663 # the :path header after the query string is removed.
10664 #
10665 # A path template pattern can include variables and wildcards.
10666 # Variables are enclosed in curly braces, for example{variable_name}. Wildcards include * that
10667 # matches a single path segment, and ** that matches zero or
10668 # more path segments. The pattern must follow these rules:
10669 #
10670 #
10671 # - The value must be between 1 and 1024 characters.
10672 # - The pattern must start with a leading slash (&quot;/&quot;).
10673 # - No more than 5 operators (variables or wildcards) may appear in
10674 # the pattern.
10675 #
10676 # Precisely one ofprefixMatch, fullPathMatch,regexMatch, or pathTemplateMatch must be
10677 # set.
10678 &quot;prefixMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the request&#x27;s
10679 # path must begin with the specified prefixMatch.prefixMatch must begin with a /.
10680 #
10681 # The value must be from 1 to 1024 characters.
10682 #
10683 # The * character inside a prefix match is
10684 # treated as a literal character, not as a wildcard.
10685 #
10686 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match can be
10687 # used within a matchRule.
10688 &quot;queryParameterMatches&quot;: [ # Specifies a list of query parameter match criteria, all of which must
10689 # match corresponding query parameters in the request.
10690 #
10691 # Not supported when the URL map is bound to a target gRPC proxy.
10692 { # HttpRouteRuleMatch criteria for a request&#x27;s query parameter.
10693 &quot;exactMatch&quot;: &quot;A String&quot;, # The queryParameterMatch matches if the value of the
10694 # parameter exactly matches the contents of exactMatch.
10695 #
10696 # Only one of presentMatch, exactMatch, orregexMatch must be set.
10697 &quot;name&quot;: &quot;A String&quot;, # The name of the query parameter to match. The query parameter must exist in
10698 # the request, in the absence of which the request match fails.
10699 &quot;presentMatch&quot;: True or False, # Specifies that the queryParameterMatch matches if the
10700 # request contains the query parameter, irrespective of whether the
10701 # parameter has a value or not.
10702 #
10703 # Only one of presentMatch, exactMatch, orregexMatch must be set.
10704 &quot;regexMatch&quot;: &quot;A String&quot;, # The queryParameterMatch matches if the value of the
10705 # parameter matches the regular expression specified byregexMatch. For
10706 # more information about regular expression syntax, see Syntax.
10707 #
10708 # Only one of presentMatch, exactMatch, orregexMatch must be set.
10709 #
10710 # Regular expressions can only be used when the loadBalancingScheme is
10711 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
10712 # (regional scope) or INTERNAL_MANAGED.
10713 },
10714 ],
10715 &quot;regexMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the path of the
10716 # request must satisfy the regular expression specified inregexMatch after removing any query parameters and anchor
10717 # supplied with the original URL. For
10718 # more information about regular expression syntax, see Syntax.
10719 #
10720 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be
10721 # specified.
10722 #
10723 # Regular expressions can only be used when the loadBalancingScheme is
10724 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
10725 # (regional scope) or INTERNAL_MANAGED.
10726 },
10727 ],
10728 &quot;priority&quot;: 42, # For routeRules within a given pathMatcher,
10729 # priority determines the order in which a load balancer interpretsrouteRules. RouteRules are evaluated in order
10730 # of priority, from the lowest to highest number. The priority of a
10731 # rule decreases as its number increases (1, 2, 3, N+1). The first rule
10732 # that matches the request is applied.
10733 #
10734 #
10735 # You cannot configure two or more routeRules with the same priority.
10736 # Priority for each rule must be set to a number from 0 to 2147483647
10737 # inclusive.
10738 #
10739 #
10740 # Priority numbers can have gaps, which enable you to add or remove rules
10741 # in the future without affecting the rest of the rules. For example, 1, 2,
10742 # 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you
10743 # could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future
10744 # without any impact on existing rules.
10745 &quot;routeAction&quot;: { # In response to a matching matchRule, the load balancer
10746 # performs advanced routing actions, such as URL rewrites and header
10747 # transformations, before forwarding the request to the selected backend.
10748 #
10749 #
10750 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
10751 #
10752 #
10753 # URL maps for classic Application Load Balancers only support
10754 # the urlRewrite action within a route rule&#x27;srouteAction.
10755 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
10756 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
10757 # property must be specified. This policy cannot be specified if any target
10758 # backend has Identity-Aware Proxy enabled.
10759 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
10760 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
10761 # header names can be specified. The cache is bypassed for all `cacheMode`
10762 # values.
10763 &quot;A String&quot;,
10764 ],
10765 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
10766 # on the backend type: for Backend Services, the complete request URI is
10767 # used; for Backend Buckets, the request URI is used without the protocol or
10768 # host, and only query parameters known to Cloud Storage are included.
10769 # Policy defined on Route Action.
10770 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
10771 # parameters will be included. Either specify `excludedQueryParameters`
10772 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
10773 # encoded and not treated as delimiters.
10774 #
10775 # Note: This field applies to routes that use backend services. Attempting
10776 # to set it on a route that points exclusively to Backend Buckets will
10777 # result in a configuration error. For routes that point to a Backend
10778 # Bucket, use `includedQueryParameters` to define which parameters should
10779 # be part of the cache key.
10780 &quot;A String&quot;,
10781 ],
10782 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
10783 #
10784 # Note: This setting is only applicable to routes that use a Backend
10785 # Service. It does not affect requests served by a Backend Bucket, as the
10786 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
10787 # it on a route that points exclusively to Backend Buckets will result in a
10788 # configuration error.
10789 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
10790 #
10791 # Note: This setting is only applicable to routes that use a Backend
10792 # Service. It does not affect requests served by a Backend Bucket, as the
10793 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
10794 # set on a route that points exclusively to Backend Buckets will result in
10795 # a configuration error.
10796 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
10797 # `includedQueryParameters` and `excludedQueryParameters`. If neither
10798 # is set, the entire query string will be included. If false, the query
10799 # string will be excluded from the cache key entirely.
10800 #
10801 # Note: This field applies to routes that use backend services. Attempting
10802 # to set it on a route that points exclusively to Backend Buckets will
10803 # result in a configuration error. For routes that point to a Backend
10804 # Bucket, use `includedQueryParameters` to define which parameters should
10805 # be part of the cache key.
10806 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
10807 # The name=value pair will be used in the cache key Cloud CDN generates.
10808 #
10809 # Note: This setting is only applicable to routes that use a Backend
10810 # Service. It does not affect requests served by a Backend Bucket.
10811 # Attempting to set it on a route that points exclusively to Backend
10812 # Buckets will result in a configuration error. Up to 5 cookie names can be
10813 # specified.
10814 &quot;A String&quot;,
10815 ],
10816 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
10817 &quot;A String&quot;,
10818 ],
10819 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
10820 # parameters will be excluded. Either specify `includedQueryParameters`
10821 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
10822 # encoded and not treated as delimiters.
10823 &quot;A String&quot;,
10824 ],
10825 },
10826 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
10827 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
10828 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
10829 # content. This is used to clamp the max-age (or Expires) value sent to the
10830 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
10831 # is used for the response max-age directive, along with a &quot;public&quot;
10832 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
10833 # clamps the max-age from the origin (if specified), or else sets the
10834 # response max-age directive to the lesser of the `clientTtl` and
10835 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
10836 # present. The maximum allowed value is 31,622,400s (1 year). If not
10837 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
10838 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
10839 # `USE_ORIGIN_HEADERS`.
10840 # as a count of seconds and fractions of seconds at nanosecond
10841 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
10842 # or &quot;month&quot;. Range is approximately 10,000 years.
10843 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
10844 # Durations less than one second are represented with a 0
10845 # `seconds` field and a positive `nanos` field. Must be from 0
10846 # to 999,999,999 inclusive.
10847 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
10848 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
10849 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
10850 },
10851 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
10852 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
10853 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
10854 # greater than that of `maxTtl`. When the `cacheMode` is set to
10855 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
10856 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
10857 # accessed objects may be evicted from the cache before the defined TTL. If
10858 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
10859 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
10860 # `USE_ORIGIN_HEADERS`.
10861 # as a count of seconds and fractions of seconds at nanosecond
10862 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
10863 # or &quot;month&quot;. Range is approximately 10,000 years.
10864 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
10865 # Durations less than one second are represented with a 0
10866 # `seconds` field and a positive `nanos` field. Must be from 0
10867 # to 999,999,999 inclusive.
10868 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
10869 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
10870 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
10871 },
10872 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
10873 # attempt to set a max-age or s-maxage higher than this, or an Expires header
10874 # more than `maxTtl` seconds in the future will be capped at the value of
10875 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
10876 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
10877 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
10878 # Infrequently accessed objects may be evicted from the cache before the
10879 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
10880 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
10881 # mode.
10882 # as a count of seconds and fractions of seconds at nanosecond
10883 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
10884 # or &quot;month&quot;. Range is approximately 10,000 years.
10885 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
10886 # Durations less than one second are represented with a 0
10887 # `seconds` field and a positive `nanos` field. Must be from 0
10888 # to 999,999,999 inclusive.
10889 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
10890 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
10891 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
10892 },
10893 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
10894 # to apply fine-grained caching for common errors or redirects.
10895 # This can reduce the load on your origin and improve end-user
10896 # experience by reducing response latency.
10897 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
10898 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
10899 # the specified response code that lack any Cache-Control, Expires, or
10900 # Pragma: no-cache directives. When the `cacheMode` is set to
10901 # `FORCE_CACHE_ALL`, negative caching applies to all responses
10902 # with the specified response code, and overrides any caching headers. By
10903 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
10904 #
10905 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
10906 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
10907 # * 405 (Method Not Found), 501 (Not Implemented): 60s
10908 #
10909 # These defaults can be overridden in `negativeCachingPolicy`.
10910 # If not specified, Cloud CDN applies negative caching by default.
10911 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
10912 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
10913 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
10914 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
10915 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
10916 # all response codes that you wish to cache. Cloud CDN will not apply any
10917 # default negative caching when a policy exists.
10918 { # Specify CDN TTLs for response error codes.
10919 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
10920 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
10921 # specified as values, and you cannot specify a status code more than
10922 # once.
10923 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
10924 # corresponding status code.
10925 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
10926 # objects may be evicted from the cache before the defined TTL.
10927 # as a count of seconds and fractions of seconds at nanosecond
10928 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
10929 # or &quot;month&quot;. Range is approximately 10,000 years.
10930 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
10931 # Durations less than one second are represented with a 0
10932 # `seconds` field and a positive `nanos` field. Must be from 0
10933 # to 999,999,999 inclusive.
10934 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
10935 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
10936 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
10937 },
10938 },
10939 ],
10940 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
10941 # requests into a small number of requests to the origin. If not specified,
10942 # Cloud CDN applies request coalescing by default.
10943 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
10944 # content with the origin, or when an error is encountered when refreshing
10945 # the cache.
10946 # This setting defines the default &quot;max-stale&quot; duration for any cached
10947 # responses that do not specify a max-stale directive. Stale responses that
10948 # exceed the TTL configured here will not be served. The default limit
10949 # (max-stale) is 86400s (1 day), which will allow stale content to be
10950 # served up to this limit beyond the max-age (or s-maxage) of a cached
10951 # response.
10952 # The maximum allowed value is 604800 (1 week).
10953 # Set this to zero (0) to disable serve-while-stale.
10954 # as a count of seconds and fractions of seconds at nanosecond
10955 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
10956 # or &quot;month&quot;. Range is approximately 10,000 years.
10957 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
10958 # Durations less than one second are represented with a 0
10959 # `seconds` field and a positive `nanos` field. Must be from 0
10960 # to 999,999,999 inclusive.
10961 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
10962 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
10963 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
10964 },
10965 },
10966 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
10967 # information about the W3C recommendation for cross-origin resource sharing
10968 # (CORS), see Fetch API Living
10969 # Standard.
10970 #
10971 # Not supported when the URL map is bound to a target gRPC proxy.
10972 # information about the W3C recommendation for cross-origin resource sharing
10973 # (CORS), see Fetch API Living
10974 # Standard.
10975 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
10976 # indicates that
10977 # the actual request can include user credentials. This field translates to
10978 # the Access-Control-Allow-Credentials header.
10979 #
10980 # Default is false.
10981 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
10982 # header.
10983 &quot;A String&quot;,
10984 ],
10985 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
10986 # header.
10987 &quot;A String&quot;,
10988 ],
10989 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
10990 # more information, see regular expression syntax.
10991 #
10992 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
10993 #
10994 # Regular expressions can only be used when the loadBalancingScheme is
10995 # set to INTERNAL_SELF_MANAGED.
10996 &quot;A String&quot;,
10997 ],
10998 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
10999 #
11000 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
11001 &quot;A String&quot;,
11002 ],
11003 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
11004 # The default value is false, which indicates that the CORS
11005 # policy is in effect.
11006 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
11007 # header.
11008 &quot;A String&quot;,
11009 ],
11010 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
11011 # seconds. This field translates to the Access-Control-Max-Age
11012 # header.
11013 },
11014 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
11015 # the resiliency of clients to backend service failure. As part of fault
11016 # injection, when clients send requests to a backend service, delays can be
11017 # introduced by a load balancer on a percentage of requests before sending
11018 # those requests to the backend service. Similarly requests from clients can
11019 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
11020 # that are configured with a fault_injection_policy if:
11021 # 1. The traffic is generated by fault injection AND
11022 # 2. The fault injection is not a delay fault injection.
11023 # Fault injection is not supported with the classic Application Load Balancer
11024 # . To see which load balancers support fault injection,
11025 # see Load
11026 # balancing: Routing and traffic management features.
11027 # the resiliency of clients to backend service failure. As part of fault
11028 # injection, when clients send requests to a backend service, delays can be
11029 # introduced by the load balancer on a percentage of requests before sending
11030 # those request to the backend service. Similarly requests from clients can be
11031 # aborted by the load balancer for a percentage of requests.
11032 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
11033 # injection.
11034 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
11035 #
11036 # The value must be from 200 to 599 inclusive.
11037 #
11038 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
11039 # according to this
11040 # mapping table. HTTP status 200 is mapped to gRPC status
11041 # UNKNOWN. Injecting an OK status is currently not supported by
11042 # Traffic Director.
11043 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
11044 # that is aborted as part of fault injection.
11045 #
11046 # The value must be from 0.0 to 100.0 inclusive.
11047 },
11048 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
11049 # injection, before being sent to a backend service.
11050 # request to the backend service as part of fault injection.
11051 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
11052 # as a count of seconds and fractions of seconds at nanosecond
11053 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
11054 # or &quot;month&quot;. Range is approximately 10,000 years.
11055 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
11056 # Durations less than one second are represented with a 0
11057 # `seconds` field and a positive `nanos` field. Must be from 0
11058 # to 999,999,999 inclusive.
11059 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
11060 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
11061 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
11062 },
11063 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
11064 # which a delay is introduced as part of fault injection.
11065 #
11066 # The value must be from 0.0 to 100.0 inclusive.
11067 },
11068 },
11069 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
11070 # Unlike the timeout field where the timeout duration starts
11071 # from the time the request has been fully processed (known as*end-of-stream*),
11072 # the duration in this field is computed from the beginning of the stream
11073 # until the response has been processed, including all retries. A
11074 # stream that does not complete in this duration is closed.
11075 #
11076 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
11077 # with the route.
11078 #
11079 # This field is only allowed if the Url map is used with backend services
11080 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
11081 # as a count of seconds and fractions of seconds at nanosecond
11082 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
11083 # or &quot;month&quot;. Range is approximately 10,000 years.
11084 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
11085 # Durations less than one second are represented with a 0
11086 # `seconds` field and a positive `nanos` field. Must be from 0
11087 # to 999,999,999 inclusive.
11088 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
11089 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
11090 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
11091 },
11092 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
11093 # are shadowed to a separate mirrored backend service. The load balancer does
11094 # not wait for responses from the shadow service. Before sending traffic
11095 # to the shadow service, the host / authority header is suffixed with-shadow.
11096 #
11097 # Not supported when the URL map is bound to a target gRPC proxy that
11098 # has the validateForProxyless field set to true.
11099 # are shadowed to a separate mirrored backend service. The load balancer
11100 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
11101 # to the shadow service, the host or authority header is suffixed with-shadow.
11102 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
11103 # mirrored to.
11104 #
11105 # The backend service configured for a mirroring
11106 # policy must reference backends that are of the same type as the original
11107 # backend service matched in the URL map.
11108 #
11109 # Serverless NEG backends are not currently supported as a mirrored
11110 # backend service.
11111 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
11112 },
11113 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
11114 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
11115 # If not specified, defaults to 1.
11116 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
11117 #
11118 # If not specified, will use the timeout set in theHttpRouteAction field.
11119 # If timeout in the HttpRouteAction field is not set, this field
11120 # uses the largest timeout
11121 # among all backend services associated with the route.
11122 #
11123 # Not supported when the URL map is bound to a target gRPC proxy that
11124 # has the validateForProxyless field set to true.
11125 # as a count of seconds and fractions of seconds at nanosecond
11126 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
11127 # or &quot;month&quot;. Range is approximately 10,000 years.
11128 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
11129 # Durations less than one second are represented with a 0
11130 # `seconds` field and a positive `nanos` field. Must be from 0
11131 # to 999,999,999 inclusive.
11132 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
11133 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
11134 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
11135 },
11136 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
11137 # values are:
11138 #
11139 # - 5xx: retry is attempted if the instance or endpoint
11140 # responds with any 5xx response code, or if the instance or
11141 # endpoint does not respond at all. For example, disconnects, reset, read
11142 # timeout, connection failure, and refused streams.
11143 # - gateway-error: Similar to 5xx, but only
11144 # applies to response codes 502, 503 or504.
11145 # - connect-failure: a retry is attempted on failures
11146 # connecting to the instance or endpoint. For example, connection
11147 # timeouts.
11148 # - retriable-4xx: a retry is attempted if the instance
11149 # or endpoint responds with a 4xx response code.
11150 # The only error that you can retry is error code 409.
11151 # - refused-stream: a retry is attempted if the instance
11152 # or endpoint resets the stream with a REFUSED_STREAM error
11153 # code. This reset type indicates that it is safe to retry.
11154 # - cancelled: a retry is attempted if the gRPC status
11155 # code in the response header is set to cancelled.
11156 # - deadline-exceeded: a retry is attempted if the gRPC
11157 # status code in the response header is set todeadline-exceeded.
11158 # - internal: a retry is attempted if the gRPC
11159 # status code in the response header is set tointernal.
11160 # - resource-exhausted: a retry is attempted if the gRPC
11161 # status code in the response header is set toresource-exhausted.
11162 # - unavailable: a retry is attempted if the gRPC
11163 # status code in the response header is set tounavailable.
11164 #
11165 # Only the following codes are supported when the URL map is bound to
11166 # target gRPC proxy that has validateForProxyless field set to true.
11167 #
11168 # - cancelled
11169 # - deadline-exceeded
11170 # - internal
11171 # - resource-exhausted
11172 # - unavailable
11173 &quot;A String&quot;,
11174 ],
11175 },
11176 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
11177 # time the request has been fully processed (known as *end-of-stream*)
11178 # up until the response has been processed. Timeout includes
11179 # all retries.
11180 #
11181 # If not specified, this field uses the largest timeout among all backend
11182 # services associated with the route.
11183 #
11184 # Not supported when the URL map is bound to a target gRPC proxy that
11185 # has validateForProxyless field set to true.
11186 # as a count of seconds and fractions of seconds at nanosecond
11187 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
11188 # or &quot;month&quot;. Range is approximately 10,000 years.
11189 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
11190 # Durations less than one second are represented with a 0
11191 # `seconds` field and a positive `nanos` field. Must be from 0
11192 # to 999,999,999 inclusive.
11193 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
11194 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
11195 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
11196 },
11197 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
11198 # to the matched service.
11199 #
11200 # urlRewrite is the only action supported in UrlMaps
11201 # for classic Application Load Balancers.
11202 #
11203 # Not supported when the URL map is bound to a target gRPC proxy that
11204 # has the validateForProxyless field set to true.
11205 # backend service.
11206 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
11207 # host header is replaced with contents of hostRewrite.
11208 #
11209 # The value must be from 1 to 255 characters.
11210 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
11211 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
11212 #
11213 # The value must be from 1 to 1024 characters.
11214 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
11215 # header) using the HTTP template syntax.
11216 #
11217 # A corresponding
11218 # path_template_match must be specified. Any template variables must exist in
11219 # the path_template_match field.
11220 #
11221 #
11222 # - -At least one variable must be specified in the path_template_match
11223 # field
11224 # - You can omit variables from the rewritten URL
11225 # - The * and ** operators cannot be matched
11226 # unless they have a corresponding variable name - e.g.
11227 # {format=*} or {var=**}.
11228 #
11229 # For example, a path_template_match of /static/{format=**}
11230 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
11231 # rewrite, so that /{country}/{format}/{suffix=**} can be
11232 # rewritten as /content/{format}/{country}/{suffix}.
11233 #
11234 # At least
11235 # one non-empty routeRules[].matchRules[].path_template_match is
11236 # required.
11237 #
11238 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
11239 },
11240 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
11241 # occurs. The weights determine the fraction of traffic that flows to
11242 # their corresponding backend service. If all traffic needs to
11243 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
11244 #
11245 # After a backend service is identified and before forwarding
11246 # the request to
11247 # the backend service, advanced routing actions such as URL rewrites and
11248 # header transformations are applied depending on additional settings
11249 # specified in this HttpRouteAction.
11250 { # In contrast to a single BackendService in
11251 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
11252 # multiple backend services. The volume of traffic for each
11253 # backend service is proportional to the weight specified
11254 # in each WeightedBackendService
11255 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
11256 # resource. Before
11257 # forwarding the request to backendService, the load balancer
11258 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
11259 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
11260 # effect for the selected backendService.
11261 #
11262 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
11263 #
11264 # headerAction is not supported for load balancers that have
11265 # their loadBalancingScheme set to EXTERNAL.
11266 #
11267 # Not supported when the URL map is bound to a target gRPC proxy that
11268 # has validateForProxyless field set to true.
11269 # the request is passed along to the selected backendService.
11270 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
11271 { # Specification determining how headers are added to requests or responses.
11272 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
11273 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
11274 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
11275 # that already
11276 # exist for the header. If true, headerValue is set for the
11277 # header, discarding any values that were set for that header.
11278 #
11279 # The default value is true,
11280 # unless a variable is present in headerValue,
11281 # in which case the default value is false.
11282 # .
11283 },
11284 ],
11285 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
11286 # request before forwarding the request to the backendService.
11287 &quot;A String&quot;,
11288 ],
11289 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
11290 # client.
11291 { # Specification determining how headers are added to requests or responses.
11292 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
11293 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
11294 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
11295 # that already
11296 # exist for the header. If true, headerValue is set for the
11297 # header, discarding any values that were set for that header.
11298 #
11299 # The default value is true,
11300 # unless a variable is present in headerValue,
11301 # in which case the default value is false.
11302 # .
11303 },
11304 ],
11305 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
11306 # response before sending the response back to the client.
11307 &quot;A String&quot;,
11308 ],
11309 },
11310 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
11311 # computed asweight / (sum of all weightedBackendService weights in routeAction).
11312 #
11313 # The selection of a backend service is determined only for new traffic.
11314 # Once a user&#x27;s request has been directed to a backend service,
11315 # subsequent requests are sent to the same backend service as
11316 # determined by the backend service&#x27;s session affinity policy.
11317 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
11318 # splitting. If you do, the weighted traffic splitting configuration takes
11319 # precedence.
11320 #
11321 # The value must be from 0 to 1000.
11322 },
11323 ],
11324 },
11325 &quot;service&quot;: &quot;A String&quot;, # The full or partial URL of the backend service resource to which traffic
11326 # is directed if this rule is matched. If routeAction is
11327 # also specified, advanced routing actions, such as URL rewrites,
11328 # take effect before sending the request to the backend.
11329 #
11330 #
11331 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
11332 &quot;urlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When this rule is matched, the request is redirected to a URL
11333 # specified by urlRedirect.
11334 #
11335 #
11336 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
11337 #
11338 #
11339 # Not supported when the URL map is bound to a target gRPC proxy.
11340 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
11341 # was supplied in the request.
11342 #
11343 # The value must be from 1 to 255
11344 # characters.
11345 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
11346 # set to HTTPS.
11347 # If set to false, the URL scheme of the redirected request
11348 # remains the same as that of the request.
11349 #
11350 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
11351 #
11352 # The default is set to false.
11353 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
11354 # that was supplied in the request.
11355 #
11356 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
11357 # supplied, the path of the original request is used for the redirect.
11358 #
11359 # The value must be from 1 to 1024 characters.
11360 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
11361 # the HttpRouteRuleMatch, retaining the remaining portion
11362 # of the URL before redirecting the request.
11363 #
11364 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
11365 # supplied, the path of the original request is used for the redirect.
11366 #
11367 # The value must be from 1 to 1024 characters.
11368 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
11369 #
11370 # Supported values are:
11371 #
11372 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
11373 # to 301.
11374 # - FOUND, which corresponds to 302.
11375 # - SEE_OTHER which corresponds to 303.
11376 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
11377 # method is retained.
11378 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
11379 # method is retained.
11380 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
11381 # URL is
11382 # removed before redirecting the request. If set to false, the
11383 # query portion of the original URL is retained.
11384 #
11385 # The default is set to false.
11386 },
11387 },
11388 ],
11389 },
11390 ],
11391 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional URL map resides.
11392 # This field is not applicable to global URL maps.
11393 # You must specify this field as part of the HTTP request URL. It is
11394 # not settable as a field in the request body.
11395 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
11396 &quot;tests&quot;: [ # The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test cases pass. You can specify a
11397 # maximum of 100 tests per UrlMap.
11398 #
11399 # Not supported when the URL map is bound to a target gRPC proxy that
11400 # has validateForProxyless field set to true.
11401 { # Message for the expected URL mappings.
11402 &quot;description&quot;: &quot;A String&quot;, # Description of this test case.
11403 &quot;expectedOutputUrl&quot;: &quot;A String&quot;, # The expected output URL evaluated by the load balancer
11404 # containing the scheme, host, path and query parameters.
11405 #
11406 # For rules that forward requests to backends, the test passes only whenexpectedOutputUrl matches the request forwarded by
11407 # the load balancer to backends. For rules with urlRewrite,
11408 # the test verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite action. When service is specified,expectedOutputUrl`s scheme is ignored.
11409 #
11410 # For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the load balancer&#x27;s
11411 # redirect response. If urlRedirect specifieshttps_redirect, the test passes only if the scheme inexpectedOutputUrl is also set to HTTPS.
11412 # If urlRedirect specifies strip_query, the test
11413 # passes only if expectedOutputUrl does not contain any query
11414 # parameters.
11415 #
11416 # expectedOutputUrl is optional whenservice is specified.
11417 &quot;expectedRedirectResponseCode&quot;: 42, # For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in
11418 # load balancer&#x27;s redirect response.
11419 #
11420 # expectedRedirectResponseCode cannot be set whenservice is set.
11421 &quot;headers&quot;: [ # HTTP headers for this request. If headers contains
11422 # a host header, then host must also match the header value.
11423 { # HTTP headers used in UrlMapTests.
11424 &quot;name&quot;: &quot;A String&quot;, # Header name.
11425 &quot;value&quot;: &quot;A String&quot;, # Header value.
11426 },
11427 ],
11428 &quot;host&quot;: &quot;A String&quot;, # Host portion of the URL. If headers contains a host header,
11429 # then host must also match the header value.
11430 &quot;path&quot;: &quot;A String&quot;, # Path portion of the URL.
11431 &quot;service&quot;: &quot;A String&quot;, # Expected BackendService or BackendBucket resource
11432 # the given URL should be mapped to.
11433 #
11434 # The service field cannot
11435 # be set if expectedRedirectResponseCode is set.
11436 },
11437 ],
11438 },
11439 ],
11440 &quot;kind&quot;: &quot;compute#urlMapList&quot;, # Output only. Type of resource.
11441 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
11442 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
11443 # the query parameter pageToken in the next list request.
11444 # Subsequent list requests will have their own nextPageToken to
11445 # continue paging through the results.
11446 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource.
11447 &quot;warning&quot;: { # [Output Only] Informational warning message.
11448 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
11449 # Engine returns NO_RESULTS_ON_PAGE if there
11450 # are no results in the response.
11451 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
11452 # value format. For example:
11453 #
11454 # &quot;data&quot;: [
11455 # {
11456 # &quot;key&quot;: &quot;scope&quot;,
11457 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
11458 # }
11459 {
11460 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
11461 # returned. For example, for warnings where there are no results in a list
11462 # request for a particular zone, this key might be scope and
11463 # the key value might be the zone name. Other examples might be a key
11464 # indicating a deprecated resource and a suggested replacement, or a
11465 # warning about invalid network settings (for example, if an instance
11466 # attempts to perform IP forwarding but is not enabled for IP forwarding).
11467 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
11468 },
11469 ],
11470 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
11471 },
11472 }</pre>
11473 </div>
11474
11475 <div class="method">
11476 <code class="details" id="list_next">list_next()</code>
11477 <pre>Retrieves the next page of results.
11478
11479 Args:
11480 previous_request: The request for the previous page. (required)
11481 previous_response: The response from the request for the previous page. (required)
11482
11483 Returns:
11484 A request object that you can call &#x27;execute()&#x27; on to request the next
11485 page. Returns None if there are no more items in the collection.
11486 </pre>
11487 </div>
11488
11489 <div class="method">
11490 <code class="details" id="patch">patch(project, region, urlMap, body=None, requestId=None, x__xgafv=None)</code>
11491 <pre>Patches the specified UrlMap resource with the data included in the
11492 request. This method supportsPATCH
11493 semantics and usesJSON merge
11494 patch format and processing rules.
11495
11496 Args:
11497 project: string, Project ID for this request. (required)
11498 region: string, Name of the region scoping this request. (required)
11499 urlMap: string, Name of the UrlMap resource to patch. (required)
11500 body: object, The request body.
11501 The object takes the form of:
11502
11503 { # Represents a URL Map resource.
11504 #
11505 # Compute Engine has two URL Map resources:
11506 #
11507 # * [Global](/compute/docs/reference/rest/v1/urlMaps)
11508 # * [Regional](/compute/docs/reference/rest/v1/regionUrlMaps)
11509 #
11510 # A URL map resource is a component of certain types of cloud load balancers
11511 # and Traffic Director:
11512 #
11513 # * urlMaps are used by global external Application Load
11514 # Balancers, classic Application Load Balancers, and cross-region internal
11515 # Application Load Balancers.
11516 # * regionUrlMaps are used by internal Application Load Balancers,
11517 # regional external Application Load Balancers and regional internal
11518 # Application Load Balancers.
11519 #
11520 # For a list of supported URL map features by the load balancer type, see the
11521 # Load balancing features: Routing and traffic management table.
11522 #
11523 # For a list of supported URL map features for Traffic Director, see the
11524 # Traffic Director features: Routing and traffic management table.
11525 #
11526 # This resource defines mappings from hostnames and URL paths to either a
11527 # backend service or a backend bucket.
11528 #
11529 # To use the global urlMaps resource, the backend service must
11530 # have a loadBalancingScheme of either EXTERNAL,EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To use
11531 # the regionUrlMaps resource, the backend service must have aloadBalancingScheme of INTERNAL_MANAGED. For more
11532 # information, read URL
11533 # Map Concepts.
11534 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
11535 # text format.
11536 &quot;defaultCustomErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # defaultCustomErrorResponsePolicy specifies how the Load
11537 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
11538 #
11539 # This policy takes
11540 # effect at the load balancer level and applies only when no policy has been
11541 # defined for the error code at lower levels like PathMatcher, RouteRule and
11542 # PathRule within this UrlMap.
11543 #
11544 # For example, consider a UrlMap with the
11545 # following configuration:
11546 #
11547 #
11548 # - defaultCustomErrorResponsePolicy containing policies for
11549 # responding to 5xx and 4xx errors
11550 # - A PathMatcher configured for *.example.com has
11551 # defaultCustomErrorResponsePolicy for 4xx.
11552 #
11553 # If a request for http://www.example.com/ encounters a404, the policy inpathMatcher.defaultCustomErrorResponsePolicy will be enforced.
11554 # When the request for http://www.example.com/ encounters a502, the policy inUrlMap.defaultCustomErrorResponsePolicy will be enforced. When
11555 # a request that does not match any host in *.example.com such
11556 # as http://www.myotherexample.com/, encounters a404, UrlMap.defaultCustomErrorResponsePolicy
11557 # takes effect.
11558 #
11559 # When used in conjunction withdefaultRouteAction.retryPolicy, retries take precedence. Only
11560 # once all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting
11561 # a retry, if load balancer is successful in reaching the
11562 # service, the defaultCustomErrorResponsePolicy is ignored and
11563 # the response from the service is returned to the client.
11564 #
11565 # defaultCustomErrorResponsePolicy is supported only for
11566 # global external Application Load Balancers.
11567 # backend service or backend bucket responds with an error.
11568 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
11569 #
11570 # In a given policy, if you specify rules for both a range of error codes
11571 # as well as rules for specific error codes then rules with specific error
11572 # codes have a higher priority. For example, assume that you configure a rule
11573 # for 401 (Un-authorized) code, and another for all 4 series
11574 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
11575 # However if the backend service returns a 403, the rule for4xx takes effect.
11576 { # Specifies the mapping between the response code that will be returned along
11577 # with the custom error content and the response code returned by the backend
11578 # service.
11579 &quot;matchResponseCodes&quot;: [ # Valid values include:
11580 #
11581 #
11582 # - A number between 400 and 599: For example
11583 # 401 or 503, in which case the load balancer
11584 # applies the policy if the error code exactly matches this value.
11585 # - 5xx: Load Balancer will apply the policy if the
11586 # backend service responds with any response code in the range of
11587 # 500 to 599.
11588 # - 4xx: Load
11589 # Balancer will apply the policy if the backend service responds with any
11590 # response code in the range of 400 to
11591 # 499.
11592 #
11593 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
11594 &quot;A String&quot;,
11595 ],
11596 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
11597 # error content. If overrideResponseCode is not supplied, the
11598 # same response code returned by the original backend bucket or backend
11599 # service is returned to the client.
11600 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
11601 #
11602 # path must start
11603 # with a leading slash. path cannot have trailing slashes.
11604 #
11605 # If the file is not available in backendBucket or the
11606 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
11607 #
11608 # The value must
11609 # be from 1 to 1024 characters
11610 },
11611 ],
11612 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
11613 # contains the custom error content. Examples are:
11614 #
11615 #
11616 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
11617 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
11618 # - global/backendBuckets/myBackendBucket
11619 #
11620 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
11621 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
11622 #
11623 # If load balancer cannot reach
11624 # the backendBucket, a simple Not Found Error will
11625 # be returned, with the original response code (oroverrideResponseCode if configured).
11626 #
11627 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
11628 },
11629 &quot;defaultRouteAction&quot;: { # defaultRouteAction takes effect when none of the
11630 # hostRules match. The load balancer performs advanced routing
11631 # actions, such as URL rewrites and header transformations, before forwarding
11632 # the request to the selected backend.
11633 #
11634 #
11635 # Only one of defaultUrlRedirect, defaultService
11636 # or defaultRouteAction.weightedBackendService can be set.
11637 #
11638 #
11639 # URL maps for classic Application Load Balancers only support
11640 # the urlRewrite action within defaultRouteAction.
11641 #
11642 #
11643 # defaultRouteAction has no effect when the URL map is bound
11644 # to a target gRPC proxy that has the validateForProxyless field
11645 # set to true.
11646 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
11647 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
11648 # property must be specified. This policy cannot be specified if any target
11649 # backend has Identity-Aware Proxy enabled.
11650 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
11651 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
11652 # header names can be specified. The cache is bypassed for all `cacheMode`
11653 # values.
11654 &quot;A String&quot;,
11655 ],
11656 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
11657 # on the backend type: for Backend Services, the complete request URI is
11658 # used; for Backend Buckets, the request URI is used without the protocol or
11659 # host, and only query parameters known to Cloud Storage are included.
11660 # Policy defined on Route Action.
11661 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
11662 # parameters will be included. Either specify `excludedQueryParameters`
11663 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
11664 # encoded and not treated as delimiters.
11665 #
11666 # Note: This field applies to routes that use backend services. Attempting
11667 # to set it on a route that points exclusively to Backend Buckets will
11668 # result in a configuration error. For routes that point to a Backend
11669 # Bucket, use `includedQueryParameters` to define which parameters should
11670 # be part of the cache key.
11671 &quot;A String&quot;,
11672 ],
11673 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
11674 #
11675 # Note: This setting is only applicable to routes that use a Backend
11676 # Service. It does not affect requests served by a Backend Bucket, as the
11677 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
11678 # it on a route that points exclusively to Backend Buckets will result in a
11679 # configuration error.
11680 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
11681 #
11682 # Note: This setting is only applicable to routes that use a Backend
11683 # Service. It does not affect requests served by a Backend Bucket, as the
11684 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
11685 # set on a route that points exclusively to Backend Buckets will result in
11686 # a configuration error.
11687 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
11688 # `includedQueryParameters` and `excludedQueryParameters`. If neither
11689 # is set, the entire query string will be included. If false, the query
11690 # string will be excluded from the cache key entirely.
11691 #
11692 # Note: This field applies to routes that use backend services. Attempting
11693 # to set it on a route that points exclusively to Backend Buckets will
11694 # result in a configuration error. For routes that point to a Backend
11695 # Bucket, use `includedQueryParameters` to define which parameters should
11696 # be part of the cache key.
11697 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
11698 # The name=value pair will be used in the cache key Cloud CDN generates.
11699 #
11700 # Note: This setting is only applicable to routes that use a Backend
11701 # Service. It does not affect requests served by a Backend Bucket.
11702 # Attempting to set it on a route that points exclusively to Backend
11703 # Buckets will result in a configuration error. Up to 5 cookie names can be
11704 # specified.
11705 &quot;A String&quot;,
11706 ],
11707 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
11708 &quot;A String&quot;,
11709 ],
11710 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
11711 # parameters will be excluded. Either specify `includedQueryParameters`
11712 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
11713 # encoded and not treated as delimiters.
11714 &quot;A String&quot;,
11715 ],
11716 },
11717 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
11718 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
11719 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
11720 # content. This is used to clamp the max-age (or Expires) value sent to the
11721 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
11722 # is used for the response max-age directive, along with a &quot;public&quot;
11723 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
11724 # clamps the max-age from the origin (if specified), or else sets the
11725 # response max-age directive to the lesser of the `clientTtl` and
11726 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
11727 # present. The maximum allowed value is 31,622,400s (1 year). If not
11728 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
11729 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
11730 # `USE_ORIGIN_HEADERS`.
11731 # as a count of seconds and fractions of seconds at nanosecond
11732 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
11733 # or &quot;month&quot;. Range is approximately 10,000 years.
11734 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
11735 # Durations less than one second are represented with a 0
11736 # `seconds` field and a positive `nanos` field. Must be from 0
11737 # to 999,999,999 inclusive.
11738 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
11739 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
11740 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
11741 },
11742 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
11743 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
11744 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
11745 # greater than that of `maxTtl`. When the `cacheMode` is set to
11746 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
11747 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
11748 # accessed objects may be evicted from the cache before the defined TTL. If
11749 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
11750 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
11751 # `USE_ORIGIN_HEADERS`.
11752 # as a count of seconds and fractions of seconds at nanosecond
11753 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
11754 # or &quot;month&quot;. Range is approximately 10,000 years.
11755 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
11756 # Durations less than one second are represented with a 0
11757 # `seconds` field and a positive `nanos` field. Must be from 0
11758 # to 999,999,999 inclusive.
11759 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
11760 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
11761 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
11762 },
11763 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
11764 # attempt to set a max-age or s-maxage higher than this, or an Expires header
11765 # more than `maxTtl` seconds in the future will be capped at the value of
11766 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
11767 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
11768 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
11769 # Infrequently accessed objects may be evicted from the cache before the
11770 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
11771 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
11772 # mode.
11773 # as a count of seconds and fractions of seconds at nanosecond
11774 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
11775 # or &quot;month&quot;. Range is approximately 10,000 years.
11776 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
11777 # Durations less than one second are represented with a 0
11778 # `seconds` field and a positive `nanos` field. Must be from 0
11779 # to 999,999,999 inclusive.
11780 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
11781 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
11782 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
11783 },
11784 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
11785 # to apply fine-grained caching for common errors or redirects.
11786 # This can reduce the load on your origin and improve end-user
11787 # experience by reducing response latency.
11788 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
11789 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
11790 # the specified response code that lack any Cache-Control, Expires, or
11791 # Pragma: no-cache directives. When the `cacheMode` is set to
11792 # `FORCE_CACHE_ALL`, negative caching applies to all responses
11793 # with the specified response code, and overrides any caching headers. By
11794 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
11795 #
11796 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
11797 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
11798 # * 405 (Method Not Found), 501 (Not Implemented): 60s
11799 #
11800 # These defaults can be overridden in `negativeCachingPolicy`.
11801 # If not specified, Cloud CDN applies negative caching by default.
11802 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
11803 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
11804 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
11805 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
11806 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
11807 # all response codes that you wish to cache. Cloud CDN will not apply any
11808 # default negative caching when a policy exists.
11809 { # Specify CDN TTLs for response error codes.
11810 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
11811 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
11812 # specified as values, and you cannot specify a status code more than
11813 # once.
11814 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
11815 # corresponding status code.
11816 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
11817 # objects may be evicted from the cache before the defined TTL.
11818 # as a count of seconds and fractions of seconds at nanosecond
11819 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
11820 # or &quot;month&quot;. Range is approximately 10,000 years.
11821 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
11822 # Durations less than one second are represented with a 0
11823 # `seconds` field and a positive `nanos` field. Must be from 0
11824 # to 999,999,999 inclusive.
11825 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
11826 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
11827 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
11828 },
11829 },
11830 ],
11831 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
11832 # requests into a small number of requests to the origin. If not specified,
11833 # Cloud CDN applies request coalescing by default.
11834 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
11835 # content with the origin, or when an error is encountered when refreshing
11836 # the cache.
11837 # This setting defines the default &quot;max-stale&quot; duration for any cached
11838 # responses that do not specify a max-stale directive. Stale responses that
11839 # exceed the TTL configured here will not be served. The default limit
11840 # (max-stale) is 86400s (1 day), which will allow stale content to be
11841 # served up to this limit beyond the max-age (or s-maxage) of a cached
11842 # response.
11843 # The maximum allowed value is 604800 (1 week).
11844 # Set this to zero (0) to disable serve-while-stale.
11845 # as a count of seconds and fractions of seconds at nanosecond
11846 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
11847 # or &quot;month&quot;. Range is approximately 10,000 years.
11848 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
11849 # Durations less than one second are represented with a 0
11850 # `seconds` field and a positive `nanos` field. Must be from 0
11851 # to 999,999,999 inclusive.
11852 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
11853 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
11854 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
11855 },
11856 },
11857 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
11858 # information about the W3C recommendation for cross-origin resource sharing
11859 # (CORS), see Fetch API Living
11860 # Standard.
11861 #
11862 # Not supported when the URL map is bound to a target gRPC proxy.
11863 # information about the W3C recommendation for cross-origin resource sharing
11864 # (CORS), see Fetch API Living
11865 # Standard.
11866 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
11867 # indicates that
11868 # the actual request can include user credentials. This field translates to
11869 # the Access-Control-Allow-Credentials header.
11870 #
11871 # Default is false.
11872 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
11873 # header.
11874 &quot;A String&quot;,
11875 ],
11876 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
11877 # header.
11878 &quot;A String&quot;,
11879 ],
11880 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
11881 # more information, see regular expression syntax.
11882 #
11883 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
11884 #
11885 # Regular expressions can only be used when the loadBalancingScheme is
11886 # set to INTERNAL_SELF_MANAGED.
11887 &quot;A String&quot;,
11888 ],
11889 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
11890 #
11891 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
11892 &quot;A String&quot;,
11893 ],
11894 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
11895 # The default value is false, which indicates that the CORS
11896 # policy is in effect.
11897 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
11898 # header.
11899 &quot;A String&quot;,
11900 ],
11901 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
11902 # seconds. This field translates to the Access-Control-Max-Age
11903 # header.
11904 },
11905 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
11906 # the resiliency of clients to backend service failure. As part of fault
11907 # injection, when clients send requests to a backend service, delays can be
11908 # introduced by a load balancer on a percentage of requests before sending
11909 # those requests to the backend service. Similarly requests from clients can
11910 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
11911 # that are configured with a fault_injection_policy if:
11912 # 1. The traffic is generated by fault injection AND
11913 # 2. The fault injection is not a delay fault injection.
11914 # Fault injection is not supported with the classic Application Load Balancer
11915 # . To see which load balancers support fault injection,
11916 # see Load
11917 # balancing: Routing and traffic management features.
11918 # the resiliency of clients to backend service failure. As part of fault
11919 # injection, when clients send requests to a backend service, delays can be
11920 # introduced by the load balancer on a percentage of requests before sending
11921 # those request to the backend service. Similarly requests from clients can be
11922 # aborted by the load balancer for a percentage of requests.
11923 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
11924 # injection.
11925 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
11926 #
11927 # The value must be from 200 to 599 inclusive.
11928 #
11929 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
11930 # according to this
11931 # mapping table. HTTP status 200 is mapped to gRPC status
11932 # UNKNOWN. Injecting an OK status is currently not supported by
11933 # Traffic Director.
11934 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
11935 # that is aborted as part of fault injection.
11936 #
11937 # The value must be from 0.0 to 100.0 inclusive.
11938 },
11939 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
11940 # injection, before being sent to a backend service.
11941 # request to the backend service as part of fault injection.
11942 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
11943 # as a count of seconds and fractions of seconds at nanosecond
11944 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
11945 # or &quot;month&quot;. Range is approximately 10,000 years.
11946 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
11947 # Durations less than one second are represented with a 0
11948 # `seconds` field and a positive `nanos` field. Must be from 0
11949 # to 999,999,999 inclusive.
11950 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
11951 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
11952 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
11953 },
11954 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
11955 # which a delay is introduced as part of fault injection.
11956 #
11957 # The value must be from 0.0 to 100.0 inclusive.
11958 },
11959 },
11960 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
11961 # Unlike the timeout field where the timeout duration starts
11962 # from the time the request has been fully processed (known as*end-of-stream*),
11963 # the duration in this field is computed from the beginning of the stream
11964 # until the response has been processed, including all retries. A
11965 # stream that does not complete in this duration is closed.
11966 #
11967 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
11968 # with the route.
11969 #
11970 # This field is only allowed if the Url map is used with backend services
11971 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
11972 # as a count of seconds and fractions of seconds at nanosecond
11973 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
11974 # or &quot;month&quot;. Range is approximately 10,000 years.
11975 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
11976 # Durations less than one second are represented with a 0
11977 # `seconds` field and a positive `nanos` field. Must be from 0
11978 # to 999,999,999 inclusive.
11979 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
11980 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
11981 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
11982 },
11983 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
11984 # are shadowed to a separate mirrored backend service. The load balancer does
11985 # not wait for responses from the shadow service. Before sending traffic
11986 # to the shadow service, the host / authority header is suffixed with-shadow.
11987 #
11988 # Not supported when the URL map is bound to a target gRPC proxy that
11989 # has the validateForProxyless field set to true.
11990 # are shadowed to a separate mirrored backend service. The load balancer
11991 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
11992 # to the shadow service, the host or authority header is suffixed with-shadow.
11993 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
11994 # mirrored to.
11995 #
11996 # The backend service configured for a mirroring
11997 # policy must reference backends that are of the same type as the original
11998 # backend service matched in the URL map.
11999 #
12000 # Serverless NEG backends are not currently supported as a mirrored
12001 # backend service.
12002 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
12003 },
12004 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
12005 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
12006 # If not specified, defaults to 1.
12007 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
12008 #
12009 # If not specified, will use the timeout set in theHttpRouteAction field.
12010 # If timeout in the HttpRouteAction field is not set, this field
12011 # uses the largest timeout
12012 # among all backend services associated with the route.
12013 #
12014 # Not supported when the URL map is bound to a target gRPC proxy that
12015 # has the validateForProxyless field set to true.
12016 # as a count of seconds and fractions of seconds at nanosecond
12017 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
12018 # or &quot;month&quot;. Range is approximately 10,000 years.
12019 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
12020 # Durations less than one second are represented with a 0
12021 # `seconds` field and a positive `nanos` field. Must be from 0
12022 # to 999,999,999 inclusive.
12023 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
12024 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
12025 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
12026 },
12027 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
12028 # values are:
12029 #
12030 # - 5xx: retry is attempted if the instance or endpoint
12031 # responds with any 5xx response code, or if the instance or
12032 # endpoint does not respond at all. For example, disconnects, reset, read
12033 # timeout, connection failure, and refused streams.
12034 # - gateway-error: Similar to 5xx, but only
12035 # applies to response codes 502, 503 or504.
12036 # - connect-failure: a retry is attempted on failures
12037 # connecting to the instance or endpoint. For example, connection
12038 # timeouts.
12039 # - retriable-4xx: a retry is attempted if the instance
12040 # or endpoint responds with a 4xx response code.
12041 # The only error that you can retry is error code 409.
12042 # - refused-stream: a retry is attempted if the instance
12043 # or endpoint resets the stream with a REFUSED_STREAM error
12044 # code. This reset type indicates that it is safe to retry.
12045 # - cancelled: a retry is attempted if the gRPC status
12046 # code in the response header is set to cancelled.
12047 # - deadline-exceeded: a retry is attempted if the gRPC
12048 # status code in the response header is set todeadline-exceeded.
12049 # - internal: a retry is attempted if the gRPC
12050 # status code in the response header is set tointernal.
12051 # - resource-exhausted: a retry is attempted if the gRPC
12052 # status code in the response header is set toresource-exhausted.
12053 # - unavailable: a retry is attempted if the gRPC
12054 # status code in the response header is set tounavailable.
12055 #
12056 # Only the following codes are supported when the URL map is bound to
12057 # target gRPC proxy that has validateForProxyless field set to true.
12058 #
12059 # - cancelled
12060 # - deadline-exceeded
12061 # - internal
12062 # - resource-exhausted
12063 # - unavailable
12064 &quot;A String&quot;,
12065 ],
12066 },
12067 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
12068 # time the request has been fully processed (known as *end-of-stream*)
12069 # up until the response has been processed. Timeout includes
12070 # all retries.
12071 #
12072 # If not specified, this field uses the largest timeout among all backend
12073 # services associated with the route.
12074 #
12075 # Not supported when the URL map is bound to a target gRPC proxy that
12076 # has validateForProxyless field set to true.
12077 # as a count of seconds and fractions of seconds at nanosecond
12078 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
12079 # or &quot;month&quot;. Range is approximately 10,000 years.
12080 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
12081 # Durations less than one second are represented with a 0
12082 # `seconds` field and a positive `nanos` field. Must be from 0
12083 # to 999,999,999 inclusive.
12084 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
12085 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
12086 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
12087 },
12088 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
12089 # to the matched service.
12090 #
12091 # urlRewrite is the only action supported in UrlMaps
12092 # for classic Application Load Balancers.
12093 #
12094 # Not supported when the URL map is bound to a target gRPC proxy that
12095 # has the validateForProxyless field set to true.
12096 # backend service.
12097 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
12098 # host header is replaced with contents of hostRewrite.
12099 #
12100 # The value must be from 1 to 255 characters.
12101 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
12102 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
12103 #
12104 # The value must be from 1 to 1024 characters.
12105 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
12106 # header) using the HTTP template syntax.
12107 #
12108 # A corresponding
12109 # path_template_match must be specified. Any template variables must exist in
12110 # the path_template_match field.
12111 #
12112 #
12113 # - -At least one variable must be specified in the path_template_match
12114 # field
12115 # - You can omit variables from the rewritten URL
12116 # - The * and ** operators cannot be matched
12117 # unless they have a corresponding variable name - e.g.
12118 # {format=*} or {var=**}.
12119 #
12120 # For example, a path_template_match of /static/{format=**}
12121 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
12122 # rewrite, so that /{country}/{format}/{suffix=**} can be
12123 # rewritten as /content/{format}/{country}/{suffix}.
12124 #
12125 # At least
12126 # one non-empty routeRules[].matchRules[].path_template_match is
12127 # required.
12128 #
12129 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
12130 },
12131 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
12132 # occurs. The weights determine the fraction of traffic that flows to
12133 # their corresponding backend service. If all traffic needs to
12134 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
12135 #
12136 # After a backend service is identified and before forwarding
12137 # the request to
12138 # the backend service, advanced routing actions such as URL rewrites and
12139 # header transformations are applied depending on additional settings
12140 # specified in this HttpRouteAction.
12141 { # In contrast to a single BackendService in
12142 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
12143 # multiple backend services. The volume of traffic for each
12144 # backend service is proportional to the weight specified
12145 # in each WeightedBackendService
12146 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
12147 # resource. Before
12148 # forwarding the request to backendService, the load balancer
12149 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
12150 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
12151 # effect for the selected backendService.
12152 #
12153 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
12154 #
12155 # headerAction is not supported for load balancers that have
12156 # their loadBalancingScheme set to EXTERNAL.
12157 #
12158 # Not supported when the URL map is bound to a target gRPC proxy that
12159 # has validateForProxyless field set to true.
12160 # the request is passed along to the selected backendService.
12161 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
12162 { # Specification determining how headers are added to requests or responses.
12163 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
12164 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
12165 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
12166 # that already
12167 # exist for the header. If true, headerValue is set for the
12168 # header, discarding any values that were set for that header.
12169 #
12170 # The default value is true,
12171 # unless a variable is present in headerValue,
12172 # in which case the default value is false.
12173 # .
12174 },
12175 ],
12176 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
12177 # request before forwarding the request to the backendService.
12178 &quot;A String&quot;,
12179 ],
12180 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
12181 # client.
12182 { # Specification determining how headers are added to requests or responses.
12183 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
12184 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
12185 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
12186 # that already
12187 # exist for the header. If true, headerValue is set for the
12188 # header, discarding any values that were set for that header.
12189 #
12190 # The default value is true,
12191 # unless a variable is present in headerValue,
12192 # in which case the default value is false.
12193 # .
12194 },
12195 ],
12196 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
12197 # response before sending the response back to the client.
12198 &quot;A String&quot;,
12199 ],
12200 },
12201 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
12202 # computed asweight / (sum of all weightedBackendService weights in routeAction).
12203 #
12204 # The selection of a backend service is determined only for new traffic.
12205 # Once a user&#x27;s request has been directed to a backend service,
12206 # subsequent requests are sent to the same backend service as
12207 # determined by the backend service&#x27;s session affinity policy.
12208 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
12209 # splitting. If you do, the weighted traffic splitting configuration takes
12210 # precedence.
12211 #
12212 # The value must be from 0 to 1000.
12213 },
12214 ],
12215 },
12216 &quot;defaultService&quot;: &quot;A String&quot;, # The full or partial URL of the defaultService resource to
12217 # which traffic is directed if none of the hostRules match.
12218 # If defaultRouteAction is also specified, advanced
12219 # routing actions, such as URL rewrites, take effect before sending the
12220 # request to the backend.
12221 #
12222 #
12223 # Only one of defaultUrlRedirect, defaultService
12224 # or defaultRouteAction.weightedBackendService can be set.
12225 #
12226 #
12227 # defaultService has no effect when the URL map is bound
12228 # to a target gRPC proxy that has the validateForProxyless field
12229 # set to true.
12230 &quot;defaultUrlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When none of the specified hostRules match, the request
12231 # is redirected to a URL specified by defaultUrlRedirect.
12232 #
12233 #
12234 # Only one of defaultUrlRedirect, defaultService
12235 # or defaultRouteAction.weightedBackendService can be set.
12236 #
12237 #
12238 # Not supported when the URL map is bound to a target gRPC proxy.
12239 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
12240 # was supplied in the request.
12241 #
12242 # The value must be from 1 to 255
12243 # characters.
12244 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
12245 # set to HTTPS.
12246 # If set to false, the URL scheme of the redirected request
12247 # remains the same as that of the request.
12248 #
12249 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
12250 #
12251 # The default is set to false.
12252 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
12253 # that was supplied in the request.
12254 #
12255 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
12256 # supplied, the path of the original request is used for the redirect.
12257 #
12258 # The value must be from 1 to 1024 characters.
12259 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
12260 # the HttpRouteRuleMatch, retaining the remaining portion
12261 # of the URL before redirecting the request.
12262 #
12263 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
12264 # supplied, the path of the original request is used for the redirect.
12265 #
12266 # The value must be from 1 to 1024 characters.
12267 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
12268 #
12269 # Supported values are:
12270 #
12271 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
12272 # to 301.
12273 # - FOUND, which corresponds to 302.
12274 # - SEE_OTHER which corresponds to 303.
12275 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
12276 # method is retained.
12277 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
12278 # method is retained.
12279 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
12280 # URL is
12281 # removed before redirecting the request. If set to false, the
12282 # query portion of the original URL is retained.
12283 #
12284 # The default is set to false.
12285 },
12286 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
12287 # create the resource.
12288 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint of this resource. A hash of the contents stored in this object.
12289 # This field is used in optimistic locking. This field is ignored when
12290 # inserting a UrlMap. An up-to-date fingerprint must be provided
12291 # in order to update the UrlMap, otherwise the request will
12292 # fail with error 412 conditionNotMet.
12293 #
12294 # To see the latest fingerprint, make a get() request to
12295 # retrieve a UrlMap.
12296 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
12297 # for the selected backendService.
12298 #
12299 # The headerAction specified here take effect afterheaderAction specified under pathMatcher.
12300 #
12301 # headerAction is not supported for load balancers
12302 # that have
12303 # their loadBalancingScheme set to EXTERNAL.
12304 #
12305 # Not supported when the URL map is bound to a target gRPC proxy that
12306 # has validateForProxyless field set to true.
12307 # the request is passed along to the selected backendService.
12308 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
12309 { # Specification determining how headers are added to requests or responses.
12310 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
12311 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
12312 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
12313 # that already
12314 # exist for the header. If true, headerValue is set for the
12315 # header, discarding any values that were set for that header.
12316 #
12317 # The default value is true,
12318 # unless a variable is present in headerValue,
12319 # in which case the default value is false.
12320 # .
12321 },
12322 ],
12323 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
12324 # request before forwarding the request to the backendService.
12325 &quot;A String&quot;,
12326 ],
12327 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
12328 # client.
12329 { # Specification determining how headers are added to requests or responses.
12330 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
12331 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
12332 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
12333 # that already
12334 # exist for the header. If true, headerValue is set for the
12335 # header, discarding any values that were set for that header.
12336 #
12337 # The default value is true,
12338 # unless a variable is present in headerValue,
12339 # in which case the default value is false.
12340 # .
12341 },
12342 ],
12343 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
12344 # response before sending the response back to the client.
12345 &quot;A String&quot;,
12346 ],
12347 },
12348 &quot;hostRules&quot;: [ # The list of host rules to use against the URL.
12349 { # UrlMaps
12350 # A host-matching rule for a URL. If matched, will use the namedPathMatcher to select the BackendService.
12351 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
12352 # create the resource.
12353 &quot;hosts&quot;: [ # The list of host patterns to match. They must be valid hostnames with
12354 # optional port numbers in the format host:port.* matches any string of ([a-z0-9-.]*). In
12355 # that case, * must be the first character, and if followed by
12356 # anything, the immediate following character must be either -
12357 # or ..
12358 #
12359 # * based matching is not supported when the URL map is bound
12360 # to a target gRPC proxy that has the validateForProxyless field
12361 # set to true.
12362 &quot;A String&quot;,
12363 ],
12364 &quot;pathMatcher&quot;: &quot;A String&quot;, # The name of the PathMatcher to use to match the path portion
12365 # of the URL if the hostRule matches the URL&#x27;s host portion.
12366 },
12367 ],
12368 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
12369 # defined by the server.
12370 &quot;kind&quot;: &quot;compute#urlMap&quot;, # Output only. [Output Only] Type of the resource. Always compute#urlMaps for
12371 # url maps.
12372 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
12373 # The name must be 1-63 characters long, and comply withRFC1035.
12374 # Specifically, the name must be 1-63 characters long and match the regular
12375 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
12376 # character must be a lowercase letter, and all following characters must
12377 # be a dash, lowercase letter, or digit, except the last character, which
12378 # cannot be a dash.
12379 &quot;pathMatchers&quot;: [ # The list of named PathMatchers to use against the URL.
12380 { # A matcher for the path portion of the URL. The BackendService
12381 # from the longest-matched rule will serve the URL. If no rule was matched, the
12382 # default service is used.
12383 &quot;defaultCustomErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # defaultCustomErrorResponsePolicy specifies how the Load
12384 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
12385 #
12386 # This policy takes
12387 # effect at the PathMatcher level and applies only when no
12388 # policy has been defined for the error code at lower levels likeRouteRule and PathRule within thisPathMatcher. If an error code does not have a policy defined
12389 # in defaultCustomErrorResponsePolicy, then a policy defined for
12390 # the error code in UrlMap.defaultCustomErrorResponsePolicy
12391 # takes effect.
12392 #
12393 # For example, consider a UrlMap with the following
12394 # configuration:
12395 #
12396 #
12397 # - UrlMap.defaultCustomErrorResponsePolicy is configured
12398 # with policies for 5xx and 4xx errors
12399 # - A RouteRule for /coming_soon/ is configured for the
12400 # error code 404.
12401 #
12402 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
12403 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
12404 # the policy in RouteRule.customErrorResponsePolicy takes
12405 # effect. If any of the requests in this example encounter a 500
12406 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
12407 #
12408 # When
12409 # used in conjunction withpathMatcher.defaultRouteAction.retryPolicy, retries take
12410 # precedence. Only once all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting
12411 # a retry, if load balancer is successful in reaching the
12412 # service, the defaultCustomErrorResponsePolicy is ignored and
12413 # the response from the service is returned to the client.
12414 #
12415 # defaultCustomErrorResponsePolicy is supported only for
12416 # global external Application Load Balancers.
12417 # backend service or backend bucket responds with an error.
12418 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
12419 #
12420 # In a given policy, if you specify rules for both a range of error codes
12421 # as well as rules for specific error codes then rules with specific error
12422 # codes have a higher priority. For example, assume that you configure a rule
12423 # for 401 (Un-authorized) code, and another for all 4 series
12424 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
12425 # However if the backend service returns a 403, the rule for4xx takes effect.
12426 { # Specifies the mapping between the response code that will be returned along
12427 # with the custom error content and the response code returned by the backend
12428 # service.
12429 &quot;matchResponseCodes&quot;: [ # Valid values include:
12430 #
12431 #
12432 # - A number between 400 and 599: For example
12433 # 401 or 503, in which case the load balancer
12434 # applies the policy if the error code exactly matches this value.
12435 # - 5xx: Load Balancer will apply the policy if the
12436 # backend service responds with any response code in the range of
12437 # 500 to 599.
12438 # - 4xx: Load
12439 # Balancer will apply the policy if the backend service responds with any
12440 # response code in the range of 400 to
12441 # 499.
12442 #
12443 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
12444 &quot;A String&quot;,
12445 ],
12446 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
12447 # error content. If overrideResponseCode is not supplied, the
12448 # same response code returned by the original backend bucket or backend
12449 # service is returned to the client.
12450 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
12451 #
12452 # path must start
12453 # with a leading slash. path cannot have trailing slashes.
12454 #
12455 # If the file is not available in backendBucket or the
12456 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
12457 #
12458 # The value must
12459 # be from 1 to 1024 characters
12460 },
12461 ],
12462 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
12463 # contains the custom error content. Examples are:
12464 #
12465 #
12466 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
12467 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
12468 # - global/backendBuckets/myBackendBucket
12469 #
12470 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
12471 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
12472 #
12473 # If load balancer cannot reach
12474 # the backendBucket, a simple Not Found Error will
12475 # be returned, with the original response code (oroverrideResponseCode if configured).
12476 #
12477 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
12478 },
12479 &quot;defaultRouteAction&quot;: { # defaultRouteAction takes effect when none of the
12480 # pathRules or routeRules match. The load balancer
12481 # performs advanced routing actions, such as URL rewrites and
12482 # header transformations, before forwarding the request to the
12483 # selected backend.
12484 #
12485 #
12486 # Only one of defaultUrlRedirect, defaultService
12487 # or defaultRouteAction.weightedBackendService can be set.
12488 #
12489 #
12490 # URL maps for classic Application Load Balancers only support
12491 # the urlRewrite action within a path matcher&#x27;sdefaultRouteAction.
12492 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
12493 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
12494 # property must be specified. This policy cannot be specified if any target
12495 # backend has Identity-Aware Proxy enabled.
12496 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
12497 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
12498 # header names can be specified. The cache is bypassed for all `cacheMode`
12499 # values.
12500 &quot;A String&quot;,
12501 ],
12502 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
12503 # on the backend type: for Backend Services, the complete request URI is
12504 # used; for Backend Buckets, the request URI is used without the protocol or
12505 # host, and only query parameters known to Cloud Storage are included.
12506 # Policy defined on Route Action.
12507 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
12508 # parameters will be included. Either specify `excludedQueryParameters`
12509 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
12510 # encoded and not treated as delimiters.
12511 #
12512 # Note: This field applies to routes that use backend services. Attempting
12513 # to set it on a route that points exclusively to Backend Buckets will
12514 # result in a configuration error. For routes that point to a Backend
12515 # Bucket, use `includedQueryParameters` to define which parameters should
12516 # be part of the cache key.
12517 &quot;A String&quot;,
12518 ],
12519 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
12520 #
12521 # Note: This setting is only applicable to routes that use a Backend
12522 # Service. It does not affect requests served by a Backend Bucket, as the
12523 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
12524 # it on a route that points exclusively to Backend Buckets will result in a
12525 # configuration error.
12526 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
12527 #
12528 # Note: This setting is only applicable to routes that use a Backend
12529 # Service. It does not affect requests served by a Backend Bucket, as the
12530 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
12531 # set on a route that points exclusively to Backend Buckets will result in
12532 # a configuration error.
12533 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
12534 # `includedQueryParameters` and `excludedQueryParameters`. If neither
12535 # is set, the entire query string will be included. If false, the query
12536 # string will be excluded from the cache key entirely.
12537 #
12538 # Note: This field applies to routes that use backend services. Attempting
12539 # to set it on a route that points exclusively to Backend Buckets will
12540 # result in a configuration error. For routes that point to a Backend
12541 # Bucket, use `includedQueryParameters` to define which parameters should
12542 # be part of the cache key.
12543 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
12544 # The name=value pair will be used in the cache key Cloud CDN generates.
12545 #
12546 # Note: This setting is only applicable to routes that use a Backend
12547 # Service. It does not affect requests served by a Backend Bucket.
12548 # Attempting to set it on a route that points exclusively to Backend
12549 # Buckets will result in a configuration error. Up to 5 cookie names can be
12550 # specified.
12551 &quot;A String&quot;,
12552 ],
12553 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
12554 &quot;A String&quot;,
12555 ],
12556 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
12557 # parameters will be excluded. Either specify `includedQueryParameters`
12558 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
12559 # encoded and not treated as delimiters.
12560 &quot;A String&quot;,
12561 ],
12562 },
12563 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
12564 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
12565 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
12566 # content. This is used to clamp the max-age (or Expires) value sent to the
12567 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
12568 # is used for the response max-age directive, along with a &quot;public&quot;
12569 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
12570 # clamps the max-age from the origin (if specified), or else sets the
12571 # response max-age directive to the lesser of the `clientTtl` and
12572 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
12573 # present. The maximum allowed value is 31,622,400s (1 year). If not
12574 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
12575 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
12576 # `USE_ORIGIN_HEADERS`.
12577 # as a count of seconds and fractions of seconds at nanosecond
12578 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
12579 # or &quot;month&quot;. Range is approximately 10,000 years.
12580 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
12581 # Durations less than one second are represented with a 0
12582 # `seconds` field and a positive `nanos` field. Must be from 0
12583 # to 999,999,999 inclusive.
12584 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
12585 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
12586 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
12587 },
12588 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
12589 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
12590 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
12591 # greater than that of `maxTtl`. When the `cacheMode` is set to
12592 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
12593 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
12594 # accessed objects may be evicted from the cache before the defined TTL. If
12595 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
12596 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
12597 # `USE_ORIGIN_HEADERS`.
12598 # as a count of seconds and fractions of seconds at nanosecond
12599 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
12600 # or &quot;month&quot;. Range is approximately 10,000 years.
12601 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
12602 # Durations less than one second are represented with a 0
12603 # `seconds` field and a positive `nanos` field. Must be from 0
12604 # to 999,999,999 inclusive.
12605 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
12606 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
12607 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
12608 },
12609 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
12610 # attempt to set a max-age or s-maxage higher than this, or an Expires header
12611 # more than `maxTtl` seconds in the future will be capped at the value of
12612 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
12613 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
12614 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
12615 # Infrequently accessed objects may be evicted from the cache before the
12616 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
12617 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
12618 # mode.
12619 # as a count of seconds and fractions of seconds at nanosecond
12620 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
12621 # or &quot;month&quot;. Range is approximately 10,000 years.
12622 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
12623 # Durations less than one second are represented with a 0
12624 # `seconds` field and a positive `nanos` field. Must be from 0
12625 # to 999,999,999 inclusive.
12626 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
12627 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
12628 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
12629 },
12630 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
12631 # to apply fine-grained caching for common errors or redirects.
12632 # This can reduce the load on your origin and improve end-user
12633 # experience by reducing response latency.
12634 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
12635 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
12636 # the specified response code that lack any Cache-Control, Expires, or
12637 # Pragma: no-cache directives. When the `cacheMode` is set to
12638 # `FORCE_CACHE_ALL`, negative caching applies to all responses
12639 # with the specified response code, and overrides any caching headers. By
12640 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
12641 #
12642 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
12643 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
12644 # * 405 (Method Not Found), 501 (Not Implemented): 60s
12645 #
12646 # These defaults can be overridden in `negativeCachingPolicy`.
12647 # If not specified, Cloud CDN applies negative caching by default.
12648 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
12649 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
12650 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
12651 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
12652 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
12653 # all response codes that you wish to cache. Cloud CDN will not apply any
12654 # default negative caching when a policy exists.
12655 { # Specify CDN TTLs for response error codes.
12656 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
12657 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
12658 # specified as values, and you cannot specify a status code more than
12659 # once.
12660 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
12661 # corresponding status code.
12662 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
12663 # objects may be evicted from the cache before the defined TTL.
12664 # as a count of seconds and fractions of seconds at nanosecond
12665 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
12666 # or &quot;month&quot;. Range is approximately 10,000 years.
12667 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
12668 # Durations less than one second are represented with a 0
12669 # `seconds` field and a positive `nanos` field. Must be from 0
12670 # to 999,999,999 inclusive.
12671 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
12672 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
12673 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
12674 },
12675 },
12676 ],
12677 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
12678 # requests into a small number of requests to the origin. If not specified,
12679 # Cloud CDN applies request coalescing by default.
12680 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
12681 # content with the origin, or when an error is encountered when refreshing
12682 # the cache.
12683 # This setting defines the default &quot;max-stale&quot; duration for any cached
12684 # responses that do not specify a max-stale directive. Stale responses that
12685 # exceed the TTL configured here will not be served. The default limit
12686 # (max-stale) is 86400s (1 day), which will allow stale content to be
12687 # served up to this limit beyond the max-age (or s-maxage) of a cached
12688 # response.
12689 # The maximum allowed value is 604800 (1 week).
12690 # Set this to zero (0) to disable serve-while-stale.
12691 # as a count of seconds and fractions of seconds at nanosecond
12692 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
12693 # or &quot;month&quot;. Range is approximately 10,000 years.
12694 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
12695 # Durations less than one second are represented with a 0
12696 # `seconds` field and a positive `nanos` field. Must be from 0
12697 # to 999,999,999 inclusive.
12698 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
12699 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
12700 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
12701 },
12702 },
12703 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
12704 # information about the W3C recommendation for cross-origin resource sharing
12705 # (CORS), see Fetch API Living
12706 # Standard.
12707 #
12708 # Not supported when the URL map is bound to a target gRPC proxy.
12709 # information about the W3C recommendation for cross-origin resource sharing
12710 # (CORS), see Fetch API Living
12711 # Standard.
12712 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
12713 # indicates that
12714 # the actual request can include user credentials. This field translates to
12715 # the Access-Control-Allow-Credentials header.
12716 #
12717 # Default is false.
12718 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
12719 # header.
12720 &quot;A String&quot;,
12721 ],
12722 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
12723 # header.
12724 &quot;A String&quot;,
12725 ],
12726 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
12727 # more information, see regular expression syntax.
12728 #
12729 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
12730 #
12731 # Regular expressions can only be used when the loadBalancingScheme is
12732 # set to INTERNAL_SELF_MANAGED.
12733 &quot;A String&quot;,
12734 ],
12735 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
12736 #
12737 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
12738 &quot;A String&quot;,
12739 ],
12740 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
12741 # The default value is false, which indicates that the CORS
12742 # policy is in effect.
12743 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
12744 # header.
12745 &quot;A String&quot;,
12746 ],
12747 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
12748 # seconds. This field translates to the Access-Control-Max-Age
12749 # header.
12750 },
12751 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
12752 # the resiliency of clients to backend service failure. As part of fault
12753 # injection, when clients send requests to a backend service, delays can be
12754 # introduced by a load balancer on a percentage of requests before sending
12755 # those requests to the backend service. Similarly requests from clients can
12756 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
12757 # that are configured with a fault_injection_policy if:
12758 # 1. The traffic is generated by fault injection AND
12759 # 2. The fault injection is not a delay fault injection.
12760 # Fault injection is not supported with the classic Application Load Balancer
12761 # . To see which load balancers support fault injection,
12762 # see Load
12763 # balancing: Routing and traffic management features.
12764 # the resiliency of clients to backend service failure. As part of fault
12765 # injection, when clients send requests to a backend service, delays can be
12766 # introduced by the load balancer on a percentage of requests before sending
12767 # those request to the backend service. Similarly requests from clients can be
12768 # aborted by the load balancer for a percentage of requests.
12769 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
12770 # injection.
12771 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
12772 #
12773 # The value must be from 200 to 599 inclusive.
12774 #
12775 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
12776 # according to this
12777 # mapping table. HTTP status 200 is mapped to gRPC status
12778 # UNKNOWN. Injecting an OK status is currently not supported by
12779 # Traffic Director.
12780 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
12781 # that is aborted as part of fault injection.
12782 #
12783 # The value must be from 0.0 to 100.0 inclusive.
12784 },
12785 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
12786 # injection, before being sent to a backend service.
12787 # request to the backend service as part of fault injection.
12788 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
12789 # as a count of seconds and fractions of seconds at nanosecond
12790 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
12791 # or &quot;month&quot;. Range is approximately 10,000 years.
12792 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
12793 # Durations less than one second are represented with a 0
12794 # `seconds` field and a positive `nanos` field. Must be from 0
12795 # to 999,999,999 inclusive.
12796 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
12797 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
12798 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
12799 },
12800 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
12801 # which a delay is introduced as part of fault injection.
12802 #
12803 # The value must be from 0.0 to 100.0 inclusive.
12804 },
12805 },
12806 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
12807 # Unlike the timeout field where the timeout duration starts
12808 # from the time the request has been fully processed (known as*end-of-stream*),
12809 # the duration in this field is computed from the beginning of the stream
12810 # until the response has been processed, including all retries. A
12811 # stream that does not complete in this duration is closed.
12812 #
12813 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
12814 # with the route.
12815 #
12816 # This field is only allowed if the Url map is used with backend services
12817 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
12818 # as a count of seconds and fractions of seconds at nanosecond
12819 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
12820 # or &quot;month&quot;. Range is approximately 10,000 years.
12821 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
12822 # Durations less than one second are represented with a 0
12823 # `seconds` field and a positive `nanos` field. Must be from 0
12824 # to 999,999,999 inclusive.
12825 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
12826 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
12827 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
12828 },
12829 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
12830 # are shadowed to a separate mirrored backend service. The load balancer does
12831 # not wait for responses from the shadow service. Before sending traffic
12832 # to the shadow service, the host / authority header is suffixed with-shadow.
12833 #
12834 # Not supported when the URL map is bound to a target gRPC proxy that
12835 # has the validateForProxyless field set to true.
12836 # are shadowed to a separate mirrored backend service. The load balancer
12837 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
12838 # to the shadow service, the host or authority header is suffixed with-shadow.
12839 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
12840 # mirrored to.
12841 #
12842 # The backend service configured for a mirroring
12843 # policy must reference backends that are of the same type as the original
12844 # backend service matched in the URL map.
12845 #
12846 # Serverless NEG backends are not currently supported as a mirrored
12847 # backend service.
12848 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
12849 },
12850 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
12851 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
12852 # If not specified, defaults to 1.
12853 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
12854 #
12855 # If not specified, will use the timeout set in theHttpRouteAction field.
12856 # If timeout in the HttpRouteAction field is not set, this field
12857 # uses the largest timeout
12858 # among all backend services associated with the route.
12859 #
12860 # Not supported when the URL map is bound to a target gRPC proxy that
12861 # has the validateForProxyless field set to true.
12862 # as a count of seconds and fractions of seconds at nanosecond
12863 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
12864 # or &quot;month&quot;. Range is approximately 10,000 years.
12865 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
12866 # Durations less than one second are represented with a 0
12867 # `seconds` field and a positive `nanos` field. Must be from 0
12868 # to 999,999,999 inclusive.
12869 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
12870 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
12871 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
12872 },
12873 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
12874 # values are:
12875 #
12876 # - 5xx: retry is attempted if the instance or endpoint
12877 # responds with any 5xx response code, or if the instance or
12878 # endpoint does not respond at all. For example, disconnects, reset, read
12879 # timeout, connection failure, and refused streams.
12880 # - gateway-error: Similar to 5xx, but only
12881 # applies to response codes 502, 503 or504.
12882 # - connect-failure: a retry is attempted on failures
12883 # connecting to the instance or endpoint. For example, connection
12884 # timeouts.
12885 # - retriable-4xx: a retry is attempted if the instance
12886 # or endpoint responds with a 4xx response code.
12887 # The only error that you can retry is error code 409.
12888 # - refused-stream: a retry is attempted if the instance
12889 # or endpoint resets the stream with a REFUSED_STREAM error
12890 # code. This reset type indicates that it is safe to retry.
12891 # - cancelled: a retry is attempted if the gRPC status
12892 # code in the response header is set to cancelled.
12893 # - deadline-exceeded: a retry is attempted if the gRPC
12894 # status code in the response header is set todeadline-exceeded.
12895 # - internal: a retry is attempted if the gRPC
12896 # status code in the response header is set tointernal.
12897 # - resource-exhausted: a retry is attempted if the gRPC
12898 # status code in the response header is set toresource-exhausted.
12899 # - unavailable: a retry is attempted if the gRPC
12900 # status code in the response header is set tounavailable.
12901 #
12902 # Only the following codes are supported when the URL map is bound to
12903 # target gRPC proxy that has validateForProxyless field set to true.
12904 #
12905 # - cancelled
12906 # - deadline-exceeded
12907 # - internal
12908 # - resource-exhausted
12909 # - unavailable
12910 &quot;A String&quot;,
12911 ],
12912 },
12913 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
12914 # time the request has been fully processed (known as *end-of-stream*)
12915 # up until the response has been processed. Timeout includes
12916 # all retries.
12917 #
12918 # If not specified, this field uses the largest timeout among all backend
12919 # services associated with the route.
12920 #
12921 # Not supported when the URL map is bound to a target gRPC proxy that
12922 # has validateForProxyless field set to true.
12923 # as a count of seconds and fractions of seconds at nanosecond
12924 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
12925 # or &quot;month&quot;. Range is approximately 10,000 years.
12926 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
12927 # Durations less than one second are represented with a 0
12928 # `seconds` field and a positive `nanos` field. Must be from 0
12929 # to 999,999,999 inclusive.
12930 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
12931 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
12932 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
12933 },
12934 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
12935 # to the matched service.
12936 #
12937 # urlRewrite is the only action supported in UrlMaps
12938 # for classic Application Load Balancers.
12939 #
12940 # Not supported when the URL map is bound to a target gRPC proxy that
12941 # has the validateForProxyless field set to true.
12942 # backend service.
12943 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
12944 # host header is replaced with contents of hostRewrite.
12945 #
12946 # The value must be from 1 to 255 characters.
12947 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
12948 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
12949 #
12950 # The value must be from 1 to 1024 characters.
12951 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
12952 # header) using the HTTP template syntax.
12953 #
12954 # A corresponding
12955 # path_template_match must be specified. Any template variables must exist in
12956 # the path_template_match field.
12957 #
12958 #
12959 # - -At least one variable must be specified in the path_template_match
12960 # field
12961 # - You can omit variables from the rewritten URL
12962 # - The * and ** operators cannot be matched
12963 # unless they have a corresponding variable name - e.g.
12964 # {format=*} or {var=**}.
12965 #
12966 # For example, a path_template_match of /static/{format=**}
12967 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
12968 # rewrite, so that /{country}/{format}/{suffix=**} can be
12969 # rewritten as /content/{format}/{country}/{suffix}.
12970 #
12971 # At least
12972 # one non-empty routeRules[].matchRules[].path_template_match is
12973 # required.
12974 #
12975 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
12976 },
12977 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
12978 # occurs. The weights determine the fraction of traffic that flows to
12979 # their corresponding backend service. If all traffic needs to
12980 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
12981 #
12982 # After a backend service is identified and before forwarding
12983 # the request to
12984 # the backend service, advanced routing actions such as URL rewrites and
12985 # header transformations are applied depending on additional settings
12986 # specified in this HttpRouteAction.
12987 { # In contrast to a single BackendService in
12988 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
12989 # multiple backend services. The volume of traffic for each
12990 # backend service is proportional to the weight specified
12991 # in each WeightedBackendService
12992 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
12993 # resource. Before
12994 # forwarding the request to backendService, the load balancer
12995 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
12996 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
12997 # effect for the selected backendService.
12998 #
12999 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
13000 #
13001 # headerAction is not supported for load balancers that have
13002 # their loadBalancingScheme set to EXTERNAL.
13003 #
13004 # Not supported when the URL map is bound to a target gRPC proxy that
13005 # has validateForProxyless field set to true.
13006 # the request is passed along to the selected backendService.
13007 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
13008 { # Specification determining how headers are added to requests or responses.
13009 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
13010 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
13011 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
13012 # that already
13013 # exist for the header. If true, headerValue is set for the
13014 # header, discarding any values that were set for that header.
13015 #
13016 # The default value is true,
13017 # unless a variable is present in headerValue,
13018 # in which case the default value is false.
13019 # .
13020 },
13021 ],
13022 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
13023 # request before forwarding the request to the backendService.
13024 &quot;A String&quot;,
13025 ],
13026 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
13027 # client.
13028 { # Specification determining how headers are added to requests or responses.
13029 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
13030 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
13031 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
13032 # that already
13033 # exist for the header. If true, headerValue is set for the
13034 # header, discarding any values that were set for that header.
13035 #
13036 # The default value is true,
13037 # unless a variable is present in headerValue,
13038 # in which case the default value is false.
13039 # .
13040 },
13041 ],
13042 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
13043 # response before sending the response back to the client.
13044 &quot;A String&quot;,
13045 ],
13046 },
13047 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
13048 # computed asweight / (sum of all weightedBackendService weights in routeAction).
13049 #
13050 # The selection of a backend service is determined only for new traffic.
13051 # Once a user&#x27;s request has been directed to a backend service,
13052 # subsequent requests are sent to the same backend service as
13053 # determined by the backend service&#x27;s session affinity policy.
13054 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
13055 # splitting. If you do, the weighted traffic splitting configuration takes
13056 # precedence.
13057 #
13058 # The value must be from 0 to 1000.
13059 },
13060 ],
13061 },
13062 &quot;defaultService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource. This
13063 # URL is used if none of the pathRules orrouteRules defined by this PathMatcher are
13064 # matched. For example, the
13065 # following are all valid URLs to a BackendService resource:
13066 #
13067 #
13068 # - https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService
13069 # - compute/v1/projects/project/global/backendServices/backendService
13070 # - global/backendServices/backendService
13071 #
13072 #
13073 # If defaultRouteAction is also specified, advanced
13074 # routing actions, such as URL rewrites, take effect before sending the
13075 # request to the backend.
13076 #
13077 #
13078 # Only one of defaultUrlRedirect, defaultService
13079 # or defaultRouteAction.weightedBackendService can be set.
13080 #
13081 #
13082 # Authorization requires one or more of the following Google IAM permissions on the
13083 # specified resource default_service:
13084 #
13085 #
13086 # - compute.backendBuckets.use
13087 # - compute.backendServices.use
13088 &quot;defaultUrlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When none of the specified pathRules orrouteRules match, the request is redirected to a URL specified
13089 # by defaultUrlRedirect.
13090 #
13091 #
13092 # Only one of defaultUrlRedirect, defaultService
13093 # or defaultRouteAction.weightedBackendService can be set.
13094 #
13095 #
13096 # Not supported when the URL map is bound to a target gRPC proxy.
13097 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
13098 # was supplied in the request.
13099 #
13100 # The value must be from 1 to 255
13101 # characters.
13102 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
13103 # set to HTTPS.
13104 # If set to false, the URL scheme of the redirected request
13105 # remains the same as that of the request.
13106 #
13107 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
13108 #
13109 # The default is set to false.
13110 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
13111 # that was supplied in the request.
13112 #
13113 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
13114 # supplied, the path of the original request is used for the redirect.
13115 #
13116 # The value must be from 1 to 1024 characters.
13117 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
13118 # the HttpRouteRuleMatch, retaining the remaining portion
13119 # of the URL before redirecting the request.
13120 #
13121 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
13122 # supplied, the path of the original request is used for the redirect.
13123 #
13124 # The value must be from 1 to 1024 characters.
13125 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
13126 #
13127 # Supported values are:
13128 #
13129 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
13130 # to 301.
13131 # - FOUND, which corresponds to 302.
13132 # - SEE_OTHER which corresponds to 303.
13133 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
13134 # method is retained.
13135 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
13136 # method is retained.
13137 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
13138 # URL is
13139 # removed before redirecting the request. If set to false, the
13140 # query portion of the original URL is retained.
13141 #
13142 # The default is set to false.
13143 },
13144 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
13145 # create the resource.
13146 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
13147 # for the selected backend service.
13148 #
13149 # HeaderAction specified here are applied after the matchingHttpRouteRule HeaderAction and before theHeaderAction in the UrlMap
13150 #
13151 # HeaderAction is not supported for load balancers
13152 # that have
13153 # their loadBalancingScheme set to EXTERNAL.
13154 #
13155 # Not supported when the URL map is bound to a target gRPC proxy that
13156 # has validateForProxyless field set to true.
13157 # the request is passed along to the selected backendService.
13158 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
13159 { # Specification determining how headers are added to requests or responses.
13160 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
13161 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
13162 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
13163 # that already
13164 # exist for the header. If true, headerValue is set for the
13165 # header, discarding any values that were set for that header.
13166 #
13167 # The default value is true,
13168 # unless a variable is present in headerValue,
13169 # in which case the default value is false.
13170 # .
13171 },
13172 ],
13173 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
13174 # request before forwarding the request to the backendService.
13175 &quot;A String&quot;,
13176 ],
13177 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
13178 # client.
13179 { # Specification determining how headers are added to requests or responses.
13180 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
13181 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
13182 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
13183 # that already
13184 # exist for the header. If true, headerValue is set for the
13185 # header, discarding any values that were set for that header.
13186 #
13187 # The default value is true,
13188 # unless a variable is present in headerValue,
13189 # in which case the default value is false.
13190 # .
13191 },
13192 ],
13193 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
13194 # response before sending the response back to the client.
13195 &quot;A String&quot;,
13196 ],
13197 },
13198 &quot;name&quot;: &quot;A String&quot;, # The name to which this PathMatcher is referred by theHostRule.
13199 &quot;pathRules&quot;: [ # The list of path rules. Use this list instead of routeRules
13200 # when routing based on simple path matching is all that&#x27;s required. A path
13201 # rule can only include a wildcard character (*) after a
13202 # forward slash character (&quot;/&quot;).
13203 #
13204 # The order by which path rules are specified does not matter.
13205 # Matches are always done on the longest-path-first basis.
13206 #
13207 # For example: a pathRule with a path /a/b/c/* will match
13208 # before /a/b/* irrespective of the order in which those paths appear in this
13209 # list.
13210 #
13211 # Within a given pathMatcher, only one ofpathRules or routeRules must be set.
13212 { # A path-matching rule for a URL. If matched, will use the specifiedBackendService to handle the traffic arriving at this URL.
13213 &quot;customErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # customErrorResponsePolicy specifies how the Load
13214 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
13215 #
13216 # If a policy for an
13217 # error code is not configured for the PathRule, a policy for
13218 # the error code configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If
13219 # one is not specified inpathMatcher.defaultCustomErrorResponsePolicy, the policy
13220 # configured in UrlMap.defaultCustomErrorResponsePolicy takes
13221 # effect.
13222 #
13223 # For example, consider a UrlMap with the following configuration:
13224 #
13225 #
13226 # - UrlMap.defaultCustomErrorResponsePolicy are configured
13227 # with policies for 5xx and 4xx errors
13228 # - A PathRule for /coming_soon/ is configured for the error
13229 # code 404.
13230 #
13231 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
13232 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
13233 # the policy in PathRule.customErrorResponsePolicy takes
13234 # effect. If any of the requests in this example encounter a 500
13235 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
13236 #
13237 # customErrorResponsePolicy is supported only for
13238 # global external Application Load Balancers.
13239 # backend service or backend bucket responds with an error.
13240 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
13241 #
13242 # In a given policy, if you specify rules for both a range of error codes
13243 # as well as rules for specific error codes then rules with specific error
13244 # codes have a higher priority. For example, assume that you configure a rule
13245 # for 401 (Un-authorized) code, and another for all 4 series
13246 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
13247 # However if the backend service returns a 403, the rule for4xx takes effect.
13248 { # Specifies the mapping between the response code that will be returned along
13249 # with the custom error content and the response code returned by the backend
13250 # service.
13251 &quot;matchResponseCodes&quot;: [ # Valid values include:
13252 #
13253 #
13254 # - A number between 400 and 599: For example
13255 # 401 or 503, in which case the load balancer
13256 # applies the policy if the error code exactly matches this value.
13257 # - 5xx: Load Balancer will apply the policy if the
13258 # backend service responds with any response code in the range of
13259 # 500 to 599.
13260 # - 4xx: Load
13261 # Balancer will apply the policy if the backend service responds with any
13262 # response code in the range of 400 to
13263 # 499.
13264 #
13265 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
13266 &quot;A String&quot;,
13267 ],
13268 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
13269 # error content. If overrideResponseCode is not supplied, the
13270 # same response code returned by the original backend bucket or backend
13271 # service is returned to the client.
13272 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
13273 #
13274 # path must start
13275 # with a leading slash. path cannot have trailing slashes.
13276 #
13277 # If the file is not available in backendBucket or the
13278 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
13279 #
13280 # The value must
13281 # be from 1 to 1024 characters
13282 },
13283 ],
13284 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
13285 # contains the custom error content. Examples are:
13286 #
13287 #
13288 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
13289 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
13290 # - global/backendBuckets/myBackendBucket
13291 #
13292 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
13293 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
13294 #
13295 # If load balancer cannot reach
13296 # the backendBucket, a simple Not Found Error will
13297 # be returned, with the original response code (oroverrideResponseCode if configured).
13298 #
13299 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
13300 },
13301 &quot;paths&quot;: [ # The list of path patterns to match. Each must start with /
13302 # and the only place a * is allowed is at the end following
13303 # a /. The string fed to the path matcher does not include
13304 # any text after the first ? or #, and
13305 # those chars are not allowed here.
13306 &quot;A String&quot;,
13307 ],
13308 &quot;routeAction&quot;: { # In response to a matching path, the load balancer
13309 # performs advanced routing actions, such as URL rewrites and header
13310 # transformations, before forwarding the request to the selected
13311 # backend.
13312 #
13313 #
13314 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
13315 #
13316 #
13317 # URL maps for classic Application Load Balancers only support
13318 # the urlRewrite action within a path rule&#x27;srouteAction.
13319 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
13320 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
13321 # property must be specified. This policy cannot be specified if any target
13322 # backend has Identity-Aware Proxy enabled.
13323 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
13324 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
13325 # header names can be specified. The cache is bypassed for all `cacheMode`
13326 # values.
13327 &quot;A String&quot;,
13328 ],
13329 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
13330 # on the backend type: for Backend Services, the complete request URI is
13331 # used; for Backend Buckets, the request URI is used without the protocol or
13332 # host, and only query parameters known to Cloud Storage are included.
13333 # Policy defined on Route Action.
13334 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
13335 # parameters will be included. Either specify `excludedQueryParameters`
13336 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
13337 # encoded and not treated as delimiters.
13338 #
13339 # Note: This field applies to routes that use backend services. Attempting
13340 # to set it on a route that points exclusively to Backend Buckets will
13341 # result in a configuration error. For routes that point to a Backend
13342 # Bucket, use `includedQueryParameters` to define which parameters should
13343 # be part of the cache key.
13344 &quot;A String&quot;,
13345 ],
13346 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
13347 #
13348 # Note: This setting is only applicable to routes that use a Backend
13349 # Service. It does not affect requests served by a Backend Bucket, as the
13350 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
13351 # it on a route that points exclusively to Backend Buckets will result in a
13352 # configuration error.
13353 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
13354 #
13355 # Note: This setting is only applicable to routes that use a Backend
13356 # Service. It does not affect requests served by a Backend Bucket, as the
13357 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
13358 # set on a route that points exclusively to Backend Buckets will result in
13359 # a configuration error.
13360 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
13361 # `includedQueryParameters` and `excludedQueryParameters`. If neither
13362 # is set, the entire query string will be included. If false, the query
13363 # string will be excluded from the cache key entirely.
13364 #
13365 # Note: This field applies to routes that use backend services. Attempting
13366 # to set it on a route that points exclusively to Backend Buckets will
13367 # result in a configuration error. For routes that point to a Backend
13368 # Bucket, use `includedQueryParameters` to define which parameters should
13369 # be part of the cache key.
13370 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
13371 # The name=value pair will be used in the cache key Cloud CDN generates.
13372 #
13373 # Note: This setting is only applicable to routes that use a Backend
13374 # Service. It does not affect requests served by a Backend Bucket.
13375 # Attempting to set it on a route that points exclusively to Backend
13376 # Buckets will result in a configuration error. Up to 5 cookie names can be
13377 # specified.
13378 &quot;A String&quot;,
13379 ],
13380 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
13381 &quot;A String&quot;,
13382 ],
13383 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
13384 # parameters will be excluded. Either specify `includedQueryParameters`
13385 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
13386 # encoded and not treated as delimiters.
13387 &quot;A String&quot;,
13388 ],
13389 },
13390 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
13391 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
13392 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
13393 # content. This is used to clamp the max-age (or Expires) value sent to the
13394 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
13395 # is used for the response max-age directive, along with a &quot;public&quot;
13396 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
13397 # clamps the max-age from the origin (if specified), or else sets the
13398 # response max-age directive to the lesser of the `clientTtl` and
13399 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
13400 # present. The maximum allowed value is 31,622,400s (1 year). If not
13401 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
13402 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
13403 # `USE_ORIGIN_HEADERS`.
13404 # as a count of seconds and fractions of seconds at nanosecond
13405 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
13406 # or &quot;month&quot;. Range is approximately 10,000 years.
13407 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
13408 # Durations less than one second are represented with a 0
13409 # `seconds` field and a positive `nanos` field. Must be from 0
13410 # to 999,999,999 inclusive.
13411 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
13412 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
13413 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
13414 },
13415 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
13416 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
13417 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
13418 # greater than that of `maxTtl`. When the `cacheMode` is set to
13419 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
13420 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
13421 # accessed objects may be evicted from the cache before the defined TTL. If
13422 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
13423 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
13424 # `USE_ORIGIN_HEADERS`.
13425 # as a count of seconds and fractions of seconds at nanosecond
13426 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
13427 # or &quot;month&quot;. Range is approximately 10,000 years.
13428 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
13429 # Durations less than one second are represented with a 0
13430 # `seconds` field and a positive `nanos` field. Must be from 0
13431 # to 999,999,999 inclusive.
13432 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
13433 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
13434 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
13435 },
13436 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
13437 # attempt to set a max-age or s-maxage higher than this, or an Expires header
13438 # more than `maxTtl` seconds in the future will be capped at the value of
13439 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
13440 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
13441 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
13442 # Infrequently accessed objects may be evicted from the cache before the
13443 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
13444 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
13445 # mode.
13446 # as a count of seconds and fractions of seconds at nanosecond
13447 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
13448 # or &quot;month&quot;. Range is approximately 10,000 years.
13449 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
13450 # Durations less than one second are represented with a 0
13451 # `seconds` field and a positive `nanos` field. Must be from 0
13452 # to 999,999,999 inclusive.
13453 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
13454 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
13455 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
13456 },
13457 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
13458 # to apply fine-grained caching for common errors or redirects.
13459 # This can reduce the load on your origin and improve end-user
13460 # experience by reducing response latency.
13461 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
13462 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
13463 # the specified response code that lack any Cache-Control, Expires, or
13464 # Pragma: no-cache directives. When the `cacheMode` is set to
13465 # `FORCE_CACHE_ALL`, negative caching applies to all responses
13466 # with the specified response code, and overrides any caching headers. By
13467 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
13468 #
13469 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
13470 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
13471 # * 405 (Method Not Found), 501 (Not Implemented): 60s
13472 #
13473 # These defaults can be overridden in `negativeCachingPolicy`.
13474 # If not specified, Cloud CDN applies negative caching by default.
13475 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
13476 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
13477 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
13478 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
13479 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
13480 # all response codes that you wish to cache. Cloud CDN will not apply any
13481 # default negative caching when a policy exists.
13482 { # Specify CDN TTLs for response error codes.
13483 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
13484 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
13485 # specified as values, and you cannot specify a status code more than
13486 # once.
13487 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
13488 # corresponding status code.
13489 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
13490 # objects may be evicted from the cache before the defined TTL.
13491 # as a count of seconds and fractions of seconds at nanosecond
13492 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
13493 # or &quot;month&quot;. Range is approximately 10,000 years.
13494 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
13495 # Durations less than one second are represented with a 0
13496 # `seconds` field and a positive `nanos` field. Must be from 0
13497 # to 999,999,999 inclusive.
13498 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
13499 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
13500 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
13501 },
13502 },
13503 ],
13504 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
13505 # requests into a small number of requests to the origin. If not specified,
13506 # Cloud CDN applies request coalescing by default.
13507 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
13508 # content with the origin, or when an error is encountered when refreshing
13509 # the cache.
13510 # This setting defines the default &quot;max-stale&quot; duration for any cached
13511 # responses that do not specify a max-stale directive. Stale responses that
13512 # exceed the TTL configured here will not be served. The default limit
13513 # (max-stale) is 86400s (1 day), which will allow stale content to be
13514 # served up to this limit beyond the max-age (or s-maxage) of a cached
13515 # response.
13516 # The maximum allowed value is 604800 (1 week).
13517 # Set this to zero (0) to disable serve-while-stale.
13518 # as a count of seconds and fractions of seconds at nanosecond
13519 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
13520 # or &quot;month&quot;. Range is approximately 10,000 years.
13521 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
13522 # Durations less than one second are represented with a 0
13523 # `seconds` field and a positive `nanos` field. Must be from 0
13524 # to 999,999,999 inclusive.
13525 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
13526 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
13527 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
13528 },
13529 },
13530 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
13531 # information about the W3C recommendation for cross-origin resource sharing
13532 # (CORS), see Fetch API Living
13533 # Standard.
13534 #
13535 # Not supported when the URL map is bound to a target gRPC proxy.
13536 # information about the W3C recommendation for cross-origin resource sharing
13537 # (CORS), see Fetch API Living
13538 # Standard.
13539 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
13540 # indicates that
13541 # the actual request can include user credentials. This field translates to
13542 # the Access-Control-Allow-Credentials header.
13543 #
13544 # Default is false.
13545 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
13546 # header.
13547 &quot;A String&quot;,
13548 ],
13549 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
13550 # header.
13551 &quot;A String&quot;,
13552 ],
13553 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
13554 # more information, see regular expression syntax.
13555 #
13556 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
13557 #
13558 # Regular expressions can only be used when the loadBalancingScheme is
13559 # set to INTERNAL_SELF_MANAGED.
13560 &quot;A String&quot;,
13561 ],
13562 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
13563 #
13564 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
13565 &quot;A String&quot;,
13566 ],
13567 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
13568 # The default value is false, which indicates that the CORS
13569 # policy is in effect.
13570 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
13571 # header.
13572 &quot;A String&quot;,
13573 ],
13574 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
13575 # seconds. This field translates to the Access-Control-Max-Age
13576 # header.
13577 },
13578 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
13579 # the resiliency of clients to backend service failure. As part of fault
13580 # injection, when clients send requests to a backend service, delays can be
13581 # introduced by a load balancer on a percentage of requests before sending
13582 # those requests to the backend service. Similarly requests from clients can
13583 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
13584 # that are configured with a fault_injection_policy if:
13585 # 1. The traffic is generated by fault injection AND
13586 # 2. The fault injection is not a delay fault injection.
13587 # Fault injection is not supported with the classic Application Load Balancer
13588 # . To see which load balancers support fault injection,
13589 # see Load
13590 # balancing: Routing and traffic management features.
13591 # the resiliency of clients to backend service failure. As part of fault
13592 # injection, when clients send requests to a backend service, delays can be
13593 # introduced by the load balancer on a percentage of requests before sending
13594 # those request to the backend service. Similarly requests from clients can be
13595 # aborted by the load balancer for a percentage of requests.
13596 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
13597 # injection.
13598 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
13599 #
13600 # The value must be from 200 to 599 inclusive.
13601 #
13602 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
13603 # according to this
13604 # mapping table. HTTP status 200 is mapped to gRPC status
13605 # UNKNOWN. Injecting an OK status is currently not supported by
13606 # Traffic Director.
13607 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
13608 # that is aborted as part of fault injection.
13609 #
13610 # The value must be from 0.0 to 100.0 inclusive.
13611 },
13612 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
13613 # injection, before being sent to a backend service.
13614 # request to the backend service as part of fault injection.
13615 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
13616 # as a count of seconds and fractions of seconds at nanosecond
13617 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
13618 # or &quot;month&quot;. Range is approximately 10,000 years.
13619 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
13620 # Durations less than one second are represented with a 0
13621 # `seconds` field and a positive `nanos` field. Must be from 0
13622 # to 999,999,999 inclusive.
13623 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
13624 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
13625 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
13626 },
13627 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
13628 # which a delay is introduced as part of fault injection.
13629 #
13630 # The value must be from 0.0 to 100.0 inclusive.
13631 },
13632 },
13633 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
13634 # Unlike the timeout field where the timeout duration starts
13635 # from the time the request has been fully processed (known as*end-of-stream*),
13636 # the duration in this field is computed from the beginning of the stream
13637 # until the response has been processed, including all retries. A
13638 # stream that does not complete in this duration is closed.
13639 #
13640 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
13641 # with the route.
13642 #
13643 # This field is only allowed if the Url map is used with backend services
13644 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
13645 # as a count of seconds and fractions of seconds at nanosecond
13646 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
13647 # or &quot;month&quot;. Range is approximately 10,000 years.
13648 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
13649 # Durations less than one second are represented with a 0
13650 # `seconds` field and a positive `nanos` field. Must be from 0
13651 # to 999,999,999 inclusive.
13652 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
13653 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
13654 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
13655 },
13656 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
13657 # are shadowed to a separate mirrored backend service. The load balancer does
13658 # not wait for responses from the shadow service. Before sending traffic
13659 # to the shadow service, the host / authority header is suffixed with-shadow.
13660 #
13661 # Not supported when the URL map is bound to a target gRPC proxy that
13662 # has the validateForProxyless field set to true.
13663 # are shadowed to a separate mirrored backend service. The load balancer
13664 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
13665 # to the shadow service, the host or authority header is suffixed with-shadow.
13666 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
13667 # mirrored to.
13668 #
13669 # The backend service configured for a mirroring
13670 # policy must reference backends that are of the same type as the original
13671 # backend service matched in the URL map.
13672 #
13673 # Serverless NEG backends are not currently supported as a mirrored
13674 # backend service.
13675 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
13676 },
13677 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
13678 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
13679 # If not specified, defaults to 1.
13680 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
13681 #
13682 # If not specified, will use the timeout set in theHttpRouteAction field.
13683 # If timeout in the HttpRouteAction field is not set, this field
13684 # uses the largest timeout
13685 # among all backend services associated with the route.
13686 #
13687 # Not supported when the URL map is bound to a target gRPC proxy that
13688 # has the validateForProxyless field set to true.
13689 # as a count of seconds and fractions of seconds at nanosecond
13690 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
13691 # or &quot;month&quot;. Range is approximately 10,000 years.
13692 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
13693 # Durations less than one second are represented with a 0
13694 # `seconds` field and a positive `nanos` field. Must be from 0
13695 # to 999,999,999 inclusive.
13696 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
13697 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
13698 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
13699 },
13700 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
13701 # values are:
13702 #
13703 # - 5xx: retry is attempted if the instance or endpoint
13704 # responds with any 5xx response code, or if the instance or
13705 # endpoint does not respond at all. For example, disconnects, reset, read
13706 # timeout, connection failure, and refused streams.
13707 # - gateway-error: Similar to 5xx, but only
13708 # applies to response codes 502, 503 or504.
13709 # - connect-failure: a retry is attempted on failures
13710 # connecting to the instance or endpoint. For example, connection
13711 # timeouts.
13712 # - retriable-4xx: a retry is attempted if the instance
13713 # or endpoint responds with a 4xx response code.
13714 # The only error that you can retry is error code 409.
13715 # - refused-stream: a retry is attempted if the instance
13716 # or endpoint resets the stream with a REFUSED_STREAM error
13717 # code. This reset type indicates that it is safe to retry.
13718 # - cancelled: a retry is attempted if the gRPC status
13719 # code in the response header is set to cancelled.
13720 # - deadline-exceeded: a retry is attempted if the gRPC
13721 # status code in the response header is set todeadline-exceeded.
13722 # - internal: a retry is attempted if the gRPC
13723 # status code in the response header is set tointernal.
13724 # - resource-exhausted: a retry is attempted if the gRPC
13725 # status code in the response header is set toresource-exhausted.
13726 # - unavailable: a retry is attempted if the gRPC
13727 # status code in the response header is set tounavailable.
13728 #
13729 # Only the following codes are supported when the URL map is bound to
13730 # target gRPC proxy that has validateForProxyless field set to true.
13731 #
13732 # - cancelled
13733 # - deadline-exceeded
13734 # - internal
13735 # - resource-exhausted
13736 # - unavailable
13737 &quot;A String&quot;,
13738 ],
13739 },
13740 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
13741 # time the request has been fully processed (known as *end-of-stream*)
13742 # up until the response has been processed. Timeout includes
13743 # all retries.
13744 #
13745 # If not specified, this field uses the largest timeout among all backend
13746 # services associated with the route.
13747 #
13748 # Not supported when the URL map is bound to a target gRPC proxy that
13749 # has validateForProxyless field set to true.
13750 # as a count of seconds and fractions of seconds at nanosecond
13751 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
13752 # or &quot;month&quot;. Range is approximately 10,000 years.
13753 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
13754 # Durations less than one second are represented with a 0
13755 # `seconds` field and a positive `nanos` field. Must be from 0
13756 # to 999,999,999 inclusive.
13757 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
13758 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
13759 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
13760 },
13761 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
13762 # to the matched service.
13763 #
13764 # urlRewrite is the only action supported in UrlMaps
13765 # for classic Application Load Balancers.
13766 #
13767 # Not supported when the URL map is bound to a target gRPC proxy that
13768 # has the validateForProxyless field set to true.
13769 # backend service.
13770 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
13771 # host header is replaced with contents of hostRewrite.
13772 #
13773 # The value must be from 1 to 255 characters.
13774 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
13775 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
13776 #
13777 # The value must be from 1 to 1024 characters.
13778 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
13779 # header) using the HTTP template syntax.
13780 #
13781 # A corresponding
13782 # path_template_match must be specified. Any template variables must exist in
13783 # the path_template_match field.
13784 #
13785 #
13786 # - -At least one variable must be specified in the path_template_match
13787 # field
13788 # - You can omit variables from the rewritten URL
13789 # - The * and ** operators cannot be matched
13790 # unless they have a corresponding variable name - e.g.
13791 # {format=*} or {var=**}.
13792 #
13793 # For example, a path_template_match of /static/{format=**}
13794 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
13795 # rewrite, so that /{country}/{format}/{suffix=**} can be
13796 # rewritten as /content/{format}/{country}/{suffix}.
13797 #
13798 # At least
13799 # one non-empty routeRules[].matchRules[].path_template_match is
13800 # required.
13801 #
13802 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
13803 },
13804 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
13805 # occurs. The weights determine the fraction of traffic that flows to
13806 # their corresponding backend service. If all traffic needs to
13807 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
13808 #
13809 # After a backend service is identified and before forwarding
13810 # the request to
13811 # the backend service, advanced routing actions such as URL rewrites and
13812 # header transformations are applied depending on additional settings
13813 # specified in this HttpRouteAction.
13814 { # In contrast to a single BackendService in
13815 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
13816 # multiple backend services. The volume of traffic for each
13817 # backend service is proportional to the weight specified
13818 # in each WeightedBackendService
13819 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
13820 # resource. Before
13821 # forwarding the request to backendService, the load balancer
13822 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
13823 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
13824 # effect for the selected backendService.
13825 #
13826 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
13827 #
13828 # headerAction is not supported for load balancers that have
13829 # their loadBalancingScheme set to EXTERNAL.
13830 #
13831 # Not supported when the URL map is bound to a target gRPC proxy that
13832 # has validateForProxyless field set to true.
13833 # the request is passed along to the selected backendService.
13834 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
13835 { # Specification determining how headers are added to requests or responses.
13836 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
13837 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
13838 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
13839 # that already
13840 # exist for the header. If true, headerValue is set for the
13841 # header, discarding any values that were set for that header.
13842 #
13843 # The default value is true,
13844 # unless a variable is present in headerValue,
13845 # in which case the default value is false.
13846 # .
13847 },
13848 ],
13849 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
13850 # request before forwarding the request to the backendService.
13851 &quot;A String&quot;,
13852 ],
13853 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
13854 # client.
13855 { # Specification determining how headers are added to requests or responses.
13856 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
13857 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
13858 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
13859 # that already
13860 # exist for the header. If true, headerValue is set for the
13861 # header, discarding any values that were set for that header.
13862 #
13863 # The default value is true,
13864 # unless a variable is present in headerValue,
13865 # in which case the default value is false.
13866 # .
13867 },
13868 ],
13869 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
13870 # response before sending the response back to the client.
13871 &quot;A String&quot;,
13872 ],
13873 },
13874 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
13875 # computed asweight / (sum of all weightedBackendService weights in routeAction).
13876 #
13877 # The selection of a backend service is determined only for new traffic.
13878 # Once a user&#x27;s request has been directed to a backend service,
13879 # subsequent requests are sent to the same backend service as
13880 # determined by the backend service&#x27;s session affinity policy.
13881 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
13882 # splitting. If you do, the weighted traffic splitting configuration takes
13883 # precedence.
13884 #
13885 # The value must be from 0 to 1000.
13886 },
13887 ],
13888 },
13889 &quot;service&quot;: &quot;A String&quot;, # The full or partial URL of the backend service resource to which traffic
13890 # is directed if this rule is matched. If routeAction is
13891 # also specified, advanced routing actions, such as URL rewrites,
13892 # take effect before sending the request to the backend.
13893 #
13894 #
13895 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
13896 &quot;urlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When a path pattern is matched, the request is redirected to a URL
13897 # specified by urlRedirect.
13898 #
13899 #
13900 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
13901 #
13902 #
13903 # Not supported when the URL map is bound to a target gRPC proxy.
13904 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
13905 # was supplied in the request.
13906 #
13907 # The value must be from 1 to 255
13908 # characters.
13909 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
13910 # set to HTTPS.
13911 # If set to false, the URL scheme of the redirected request
13912 # remains the same as that of the request.
13913 #
13914 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
13915 #
13916 # The default is set to false.
13917 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
13918 # that was supplied in the request.
13919 #
13920 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
13921 # supplied, the path of the original request is used for the redirect.
13922 #
13923 # The value must be from 1 to 1024 characters.
13924 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
13925 # the HttpRouteRuleMatch, retaining the remaining portion
13926 # of the URL before redirecting the request.
13927 #
13928 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
13929 # supplied, the path of the original request is used for the redirect.
13930 #
13931 # The value must be from 1 to 1024 characters.
13932 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
13933 #
13934 # Supported values are:
13935 #
13936 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
13937 # to 301.
13938 # - FOUND, which corresponds to 302.
13939 # - SEE_OTHER which corresponds to 303.
13940 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
13941 # method is retained.
13942 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
13943 # method is retained.
13944 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
13945 # URL is
13946 # removed before redirecting the request. If set to false, the
13947 # query portion of the original URL is retained.
13948 #
13949 # The default is set to false.
13950 },
13951 },
13952 ],
13953 &quot;routeRules&quot;: [ # The list of HTTP route rules. Use this list instead ofpathRules when advanced route matching and routing actions are
13954 # desired. routeRules are evaluated in order of priority, from
13955 # the lowest to highest number.
13956 #
13957 # Within a given pathMatcher, you can set only one ofpathRules or routeRules.
13958 { # The HttpRouteRule setting specifies how to match an HTTP request
13959 # and the corresponding routing action that load balancing proxies perform.
13960 &quot;customErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # customErrorResponsePolicy specifies how the Load
13961 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
13962 #
13963 # If a policy for an
13964 # error code is not configured for the RouteRule, a policy for
13965 # the error code configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If
13966 # one is not specified inpathMatcher.defaultCustomErrorResponsePolicy, the policy
13967 # configured in UrlMap.defaultCustomErrorResponsePolicy takes
13968 # effect.
13969 #
13970 # For example, consider a UrlMap with the following configuration:
13971 #
13972 #
13973 # - UrlMap.defaultCustomErrorResponsePolicy are configured
13974 # with policies for 5xx and 4xx errors
13975 # - A RouteRule for /coming_soon/ is configured for the
13976 # error code 404.
13977 #
13978 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
13979 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
13980 # the policy in RouteRule.customErrorResponsePolicy takes
13981 # effect. If any of the requests in this example encounter a 500
13982 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
13983 #
13984 # When
13985 # used in conjunction withrouteRules.routeAction.retryPolicy, retries take
13986 # precedence. Only once all retries are exhausted, thecustomErrorResponsePolicy is applied. While attempting
13987 # a retry, if load balancer is successful in reaching the
13988 # service, the customErrorResponsePolicy is ignored and
13989 # the response from the service is returned to the client.
13990 #
13991 # customErrorResponsePolicy is supported only for
13992 # global external Application Load Balancers.
13993 # backend service or backend bucket responds with an error.
13994 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
13995 #
13996 # In a given policy, if you specify rules for both a range of error codes
13997 # as well as rules for specific error codes then rules with specific error
13998 # codes have a higher priority. For example, assume that you configure a rule
13999 # for 401 (Un-authorized) code, and another for all 4 series
14000 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
14001 # However if the backend service returns a 403, the rule for4xx takes effect.
14002 { # Specifies the mapping between the response code that will be returned along
14003 # with the custom error content and the response code returned by the backend
14004 # service.
14005 &quot;matchResponseCodes&quot;: [ # Valid values include:
14006 #
14007 #
14008 # - A number between 400 and 599: For example
14009 # 401 or 503, in which case the load balancer
14010 # applies the policy if the error code exactly matches this value.
14011 # - 5xx: Load Balancer will apply the policy if the
14012 # backend service responds with any response code in the range of
14013 # 500 to 599.
14014 # - 4xx: Load
14015 # Balancer will apply the policy if the backend service responds with any
14016 # response code in the range of 400 to
14017 # 499.
14018 #
14019 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
14020 &quot;A String&quot;,
14021 ],
14022 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
14023 # error content. If overrideResponseCode is not supplied, the
14024 # same response code returned by the original backend bucket or backend
14025 # service is returned to the client.
14026 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
14027 #
14028 # path must start
14029 # with a leading slash. path cannot have trailing slashes.
14030 #
14031 # If the file is not available in backendBucket or the
14032 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
14033 #
14034 # The value must
14035 # be from 1 to 1024 characters
14036 },
14037 ],
14038 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
14039 # contains the custom error content. Examples are:
14040 #
14041 #
14042 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
14043 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
14044 # - global/backendBuckets/myBackendBucket
14045 #
14046 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
14047 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
14048 #
14049 # If load balancer cannot reach
14050 # the backendBucket, a simple Not Found Error will
14051 # be returned, with the original response code (oroverrideResponseCode if configured).
14052 #
14053 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
14054 },
14055 &quot;description&quot;: &quot;A String&quot;, # The short description conveying the intent of this routeRule.
14056 #
14057 #
14058 # The description can have a maximum length of 1024 characters.
14059 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
14060 # for the selected backendService.
14061 #
14062 # The headerAction value specified here is applied before the
14063 # matching pathMatchers[].headerAction and afterpathMatchers[].routeRules[].routeAction.weightedBackendService.backendServiceWeightAction[].headerAction
14064 #
14065 # HeaderAction is not supported for load balancers
14066 # that have
14067 # their loadBalancingScheme set to EXTERNAL.
14068 #
14069 # Not supported when the URL map is bound to a target gRPC proxy that
14070 # has validateForProxyless field set to true.
14071 # the request is passed along to the selected backendService.
14072 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
14073 { # Specification determining how headers are added to requests or responses.
14074 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
14075 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
14076 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
14077 # that already
14078 # exist for the header. If true, headerValue is set for the
14079 # header, discarding any values that were set for that header.
14080 #
14081 # The default value is true,
14082 # unless a variable is present in headerValue,
14083 # in which case the default value is false.
14084 # .
14085 },
14086 ],
14087 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
14088 # request before forwarding the request to the backendService.
14089 &quot;A String&quot;,
14090 ],
14091 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
14092 # client.
14093 { # Specification determining how headers are added to requests or responses.
14094 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
14095 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
14096 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
14097 # that already
14098 # exist for the header. If true, headerValue is set for the
14099 # header, discarding any values that were set for that header.
14100 #
14101 # The default value is true,
14102 # unless a variable is present in headerValue,
14103 # in which case the default value is false.
14104 # .
14105 },
14106 ],
14107 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
14108 # response before sending the response back to the client.
14109 &quot;A String&quot;,
14110 ],
14111 },
14112 &quot;matchRules&quot;: [ # The list of criteria for matching attributes of a request to thisrouteRule. This list has OR semantics: the request matches
14113 # this routeRule when any of thematchRules are satisfied. However predicates within
14114 # a given matchRule have AND semantics. All predicates
14115 # within a matchRule must match for the request to
14116 # match the rule.
14117 { # HttpRouteRuleMatch specifies a set of criteria for matching
14118 # requests to an HttpRouteRule. All specified criteria must
14119 # be satisfied for a match to occur.
14120 &quot;fullPathMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the path of the
14121 # request must exactly match the value specified infullPathMatch after removing any query parameters and anchor
14122 # that may be part of the original URL.
14123 #
14124 # fullPathMatch must be from 1 to 1024 characters.
14125 #
14126 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be
14127 # specified.
14128 &quot;headerMatches&quot;: [ # Specifies a list of header match criteria, all of which must match
14129 # corresponding headers in the request.
14130 { # matchRule criteria for request header matches.
14131 &quot;exactMatch&quot;: &quot;A String&quot;, # The value should exactly match contents of exactMatch.
14132 #
14133 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
14134 &quot;headerName&quot;: &quot;A String&quot;, # The name of the HTTP header to match.
14135 #
14136 # For matching against the HTTP request&#x27;s authority, use a headerMatch
14137 # with the header name &quot;:authority&quot;.
14138 #
14139 # For matching a request&#x27;s method, use the headerName &quot;:method&quot;.
14140 #
14141 # When the URL map is bound to a target gRPC proxy that has
14142 # the validateForProxyless field set to true, only
14143 # non-binary
14144 # user-specified custom metadata and the `content-type` header are supported.
14145 # The following transport-level headers cannot be used in header matching
14146 # rules:
14147 # `:authority`, `:method`, `:path`, `:scheme`, `user-agent`,
14148 # `accept-encoding`, `content-encoding`, `grpc-accept-encoding`,
14149 # `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags-bin`,
14150 # `grpc-timeout` and `grpc-trace-bin`.
14151 &quot;invertMatch&quot;: True or False, # If set to false, the headerMatch is considered a
14152 # match if the preceding match criteria are met. If set to true,
14153 # the headerMatch is considered a match if the preceding
14154 # match criteria are NOT met.
14155 #
14156 # The default setting is false.
14157 &quot;prefixMatch&quot;: &quot;A String&quot;, # The value of the header must start with the contents ofprefixMatch.
14158 #
14159 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
14160 &quot;presentMatch&quot;: True or False, # A header with the contents of headerName must exist. The
14161 # match takes place whether or not the request&#x27;s header has a value.
14162 #
14163 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
14164 &quot;rangeMatch&quot;: { # HttpRouteRuleMatch criteria for field values that must stay # The header value must be an integer and its value must be in the range
14165 # specified in rangeMatch. If the header does not contain an
14166 # integer, number or is empty, the match fails.
14167 #
14168 # For example for a range [-5, 0]
14169 #
14170 #
14171 # - -3 will match.
14172 # - 0 will not match.
14173 # - 0.25 will not match.
14174 # - -3someString will not match.
14175 #
14176 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
14177 #
14178 # rangeMatch is not supported for load balancers
14179 # that have loadBalancingScheme set to EXTERNAL.
14180 # within the specified integer range.
14181 &quot;rangeEnd&quot;: &quot;A String&quot;, # The end of the range (exclusive) in signed long integer format.
14182 &quot;rangeStart&quot;: &quot;A String&quot;, # The start of the range (inclusive) in signed long integer format.
14183 },
14184 &quot;regexMatch&quot;: &quot;A String&quot;, # The value of the header must match the regular expression specified inregexMatch.
14185 # For more information about regular expression syntax, see Syntax.
14186 #
14187 # For matching against a port specified in the HTTP request, use a
14188 # headerMatch with headerName set to PORT and a regular expression that
14189 # satisfies the RFC2616 Host header&#x27;s port specifier.
14190 #
14191 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
14192 #
14193 # Regular expressions can only be used when the loadBalancingScheme is
14194 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
14195 # (regional scope) or INTERNAL_MANAGED.
14196 &quot;suffixMatch&quot;: &quot;A String&quot;, # The value of the header must end with the contents ofsuffixMatch.
14197 #
14198 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
14199 },
14200 ],
14201 &quot;ignoreCase&quot;: True or False, # Specifies that prefixMatch and fullPathMatch
14202 # matches are case sensitive.
14203 #
14204 # The default value is false.
14205 #
14206 # ignoreCase must not be used with regexMatch.
14207 #
14208 # Not supported when the URL map is bound to a target gRPC proxy.
14209 &quot;metadataFilters&quot;: [ # Opaque filter criteria used by the load balancer to restrict routing
14210 # configuration to a limited set of xDS
14211 # compliant clients. In their xDS requests to the load balancer, xDS clients
14212 # present node
14213 # metadata. When there is a match, the relevant routing configuration
14214 # is made available to those proxies.
14215 #
14216 # For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least one of thefilterLabels must match the corresponding label provided in
14217 # the metadata. If its filterMatchCriteria is set to
14218 # MATCH_ALL, then all of its filterLabels must match with
14219 # corresponding labels provided in the metadata. If multiple
14220 # metadata filters are specified, all of them need to be
14221 # satisfied in order to be considered a match.
14222 #
14223 # metadataFilters specified here is applied after those
14224 # specified in ForwardingRule that refers to theUrlMap this HttpRouteRuleMatch belongs to.
14225 #
14226 # metadataFilters only applies to load balancers that haveloadBalancingScheme set toINTERNAL_SELF_MANAGED.
14227 #
14228 # Not supported when the URL map is bound to a target gRPC proxy that
14229 # has validateForProxyless field set to true.
14230 { # Opaque filter criteria used by load balancers to restrict routing
14231 # configuration to a limited set of load balancing proxies. Proxies and
14232 # sidecars involved in load balancing would typically present metadata to the
14233 # load balancers that need to match criteria specified here. If a match takes
14234 # place, the relevant configuration is made available to those
14235 # proxies.
14236 #
14237 # For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least
14238 # one of thefilterLabels must match the corresponding label provided in
14239 # the metadata. If its filterMatchCriteria is set to
14240 # MATCH_ALL, then all of its filterLabels must match with
14241 # corresponding labels provided in the metadata.
14242 #
14243 # An example for using metadataFilters would be: if
14244 # load balancing involves
14245 # Envoys, they receive routing configuration when values inmetadataFilters match values supplied in of their XDS requests to loadbalancers.
14246 &quot;filterLabels&quot;: [ # The list of label value pairs that must match labels in the provided
14247 # metadata based on filterMatchCriteria
14248 #
14249 # This list must not be empty and can have at the most 64 entries.
14250 { # MetadataFilter label name value pairs that are expected
14251 # to match corresponding labels presented as metadata to the load balancer.
14252 &quot;name&quot;: &quot;A String&quot;, # Name of metadata label.
14253 #
14254 # The name can have a maximum length of 1024 characters and must be at
14255 # least 1 character long.
14256 &quot;value&quot;: &quot;A String&quot;, # The value of the label must match the specified value.
14257 #
14258 # value can have a maximum length of 1024 characters.
14259 },
14260 ],
14261 &quot;filterMatchCriteria&quot;: &quot;A String&quot;, # Specifies how individual filter label matches
14262 # within the list of filterLabels and contributes toward the
14263 # overall metadataFilter match.
14264 #
14265 # Supported values are:
14266 #
14267 # - MATCH_ANY: at least one of the filterLabels
14268 # must have a matching label in the provided metadata.
14269 # - MATCH_ALL: all filterLabels must have
14270 # matching labels in the provided metadata.
14271 },
14272 ],
14273 &quot;pathTemplateMatch&quot;: &quot;A String&quot;, # If specified, this field defines a path template pattern that must match
14274 # the :path header after the query string is removed.
14275 #
14276 # A path template pattern can include variables and wildcards.
14277 # Variables are enclosed in curly braces, for example{variable_name}. Wildcards include * that
14278 # matches a single path segment, and ** that matches zero or
14279 # more path segments. The pattern must follow these rules:
14280 #
14281 #
14282 # - The value must be between 1 and 1024 characters.
14283 # - The pattern must start with a leading slash (&quot;/&quot;).
14284 # - No more than 5 operators (variables or wildcards) may appear in
14285 # the pattern.
14286 #
14287 # Precisely one ofprefixMatch, fullPathMatch,regexMatch, or pathTemplateMatch must be
14288 # set.
14289 &quot;prefixMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the request&#x27;s
14290 # path must begin with the specified prefixMatch.prefixMatch must begin with a /.
14291 #
14292 # The value must be from 1 to 1024 characters.
14293 #
14294 # The * character inside a prefix match is
14295 # treated as a literal character, not as a wildcard.
14296 #
14297 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match can be
14298 # used within a matchRule.
14299 &quot;queryParameterMatches&quot;: [ # Specifies a list of query parameter match criteria, all of which must
14300 # match corresponding query parameters in the request.
14301 #
14302 # Not supported when the URL map is bound to a target gRPC proxy.
14303 { # HttpRouteRuleMatch criteria for a request&#x27;s query parameter.
14304 &quot;exactMatch&quot;: &quot;A String&quot;, # The queryParameterMatch matches if the value of the
14305 # parameter exactly matches the contents of exactMatch.
14306 #
14307 # Only one of presentMatch, exactMatch, orregexMatch must be set.
14308 &quot;name&quot;: &quot;A String&quot;, # The name of the query parameter to match. The query parameter must exist in
14309 # the request, in the absence of which the request match fails.
14310 &quot;presentMatch&quot;: True or False, # Specifies that the queryParameterMatch matches if the
14311 # request contains the query parameter, irrespective of whether the
14312 # parameter has a value or not.
14313 #
14314 # Only one of presentMatch, exactMatch, orregexMatch must be set.
14315 &quot;regexMatch&quot;: &quot;A String&quot;, # The queryParameterMatch matches if the value of the
14316 # parameter matches the regular expression specified byregexMatch. For
14317 # more information about regular expression syntax, see Syntax.
14318 #
14319 # Only one of presentMatch, exactMatch, orregexMatch must be set.
14320 #
14321 # Regular expressions can only be used when the loadBalancingScheme is
14322 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
14323 # (regional scope) or INTERNAL_MANAGED.
14324 },
14325 ],
14326 &quot;regexMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the path of the
14327 # request must satisfy the regular expression specified inregexMatch after removing any query parameters and anchor
14328 # supplied with the original URL. For
14329 # more information about regular expression syntax, see Syntax.
14330 #
14331 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be
14332 # specified.
14333 #
14334 # Regular expressions can only be used when the loadBalancingScheme is
14335 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
14336 # (regional scope) or INTERNAL_MANAGED.
14337 },
14338 ],
14339 &quot;priority&quot;: 42, # For routeRules within a given pathMatcher,
14340 # priority determines the order in which a load balancer interpretsrouteRules. RouteRules are evaluated in order
14341 # of priority, from the lowest to highest number. The priority of a
14342 # rule decreases as its number increases (1, 2, 3, N+1). The first rule
14343 # that matches the request is applied.
14344 #
14345 #
14346 # You cannot configure two or more routeRules with the same priority.
14347 # Priority for each rule must be set to a number from 0 to 2147483647
14348 # inclusive.
14349 #
14350 #
14351 # Priority numbers can have gaps, which enable you to add or remove rules
14352 # in the future without affecting the rest of the rules. For example, 1, 2,
14353 # 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you
14354 # could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future
14355 # without any impact on existing rules.
14356 &quot;routeAction&quot;: { # In response to a matching matchRule, the load balancer
14357 # performs advanced routing actions, such as URL rewrites and header
14358 # transformations, before forwarding the request to the selected backend.
14359 #
14360 #
14361 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
14362 #
14363 #
14364 # URL maps for classic Application Load Balancers only support
14365 # the urlRewrite action within a route rule&#x27;srouteAction.
14366 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
14367 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
14368 # property must be specified. This policy cannot be specified if any target
14369 # backend has Identity-Aware Proxy enabled.
14370 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
14371 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
14372 # header names can be specified. The cache is bypassed for all `cacheMode`
14373 # values.
14374 &quot;A String&quot;,
14375 ],
14376 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
14377 # on the backend type: for Backend Services, the complete request URI is
14378 # used; for Backend Buckets, the request URI is used without the protocol or
14379 # host, and only query parameters known to Cloud Storage are included.
14380 # Policy defined on Route Action.
14381 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
14382 # parameters will be included. Either specify `excludedQueryParameters`
14383 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
14384 # encoded and not treated as delimiters.
14385 #
14386 # Note: This field applies to routes that use backend services. Attempting
14387 # to set it on a route that points exclusively to Backend Buckets will
14388 # result in a configuration error. For routes that point to a Backend
14389 # Bucket, use `includedQueryParameters` to define which parameters should
14390 # be part of the cache key.
14391 &quot;A String&quot;,
14392 ],
14393 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
14394 #
14395 # Note: This setting is only applicable to routes that use a Backend
14396 # Service. It does not affect requests served by a Backend Bucket, as the
14397 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
14398 # it on a route that points exclusively to Backend Buckets will result in a
14399 # configuration error.
14400 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
14401 #
14402 # Note: This setting is only applicable to routes that use a Backend
14403 # Service. It does not affect requests served by a Backend Bucket, as the
14404 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
14405 # set on a route that points exclusively to Backend Buckets will result in
14406 # a configuration error.
14407 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
14408 # `includedQueryParameters` and `excludedQueryParameters`. If neither
14409 # is set, the entire query string will be included. If false, the query
14410 # string will be excluded from the cache key entirely.
14411 #
14412 # Note: This field applies to routes that use backend services. Attempting
14413 # to set it on a route that points exclusively to Backend Buckets will
14414 # result in a configuration error. For routes that point to a Backend
14415 # Bucket, use `includedQueryParameters` to define which parameters should
14416 # be part of the cache key.
14417 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
14418 # The name=value pair will be used in the cache key Cloud CDN generates.
14419 #
14420 # Note: This setting is only applicable to routes that use a Backend
14421 # Service. It does not affect requests served by a Backend Bucket.
14422 # Attempting to set it on a route that points exclusively to Backend
14423 # Buckets will result in a configuration error. Up to 5 cookie names can be
14424 # specified.
14425 &quot;A String&quot;,
14426 ],
14427 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
14428 &quot;A String&quot;,
14429 ],
14430 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
14431 # parameters will be excluded. Either specify `includedQueryParameters`
14432 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
14433 # encoded and not treated as delimiters.
14434 &quot;A String&quot;,
14435 ],
14436 },
14437 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
14438 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
14439 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
14440 # content. This is used to clamp the max-age (or Expires) value sent to the
14441 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
14442 # is used for the response max-age directive, along with a &quot;public&quot;
14443 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
14444 # clamps the max-age from the origin (if specified), or else sets the
14445 # response max-age directive to the lesser of the `clientTtl` and
14446 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
14447 # present. The maximum allowed value is 31,622,400s (1 year). If not
14448 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
14449 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
14450 # `USE_ORIGIN_HEADERS`.
14451 # as a count of seconds and fractions of seconds at nanosecond
14452 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
14453 # or &quot;month&quot;. Range is approximately 10,000 years.
14454 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
14455 # Durations less than one second are represented with a 0
14456 # `seconds` field and a positive `nanos` field. Must be from 0
14457 # to 999,999,999 inclusive.
14458 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
14459 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
14460 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
14461 },
14462 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
14463 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
14464 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
14465 # greater than that of `maxTtl`. When the `cacheMode` is set to
14466 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
14467 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
14468 # accessed objects may be evicted from the cache before the defined TTL. If
14469 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
14470 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
14471 # `USE_ORIGIN_HEADERS`.
14472 # as a count of seconds and fractions of seconds at nanosecond
14473 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
14474 # or &quot;month&quot;. Range is approximately 10,000 years.
14475 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
14476 # Durations less than one second are represented with a 0
14477 # `seconds` field and a positive `nanos` field. Must be from 0
14478 # to 999,999,999 inclusive.
14479 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
14480 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
14481 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
14482 },
14483 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
14484 # attempt to set a max-age or s-maxage higher than this, or an Expires header
14485 # more than `maxTtl` seconds in the future will be capped at the value of
14486 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
14487 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
14488 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
14489 # Infrequently accessed objects may be evicted from the cache before the
14490 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
14491 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
14492 # mode.
14493 # as a count of seconds and fractions of seconds at nanosecond
14494 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
14495 # or &quot;month&quot;. Range is approximately 10,000 years.
14496 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
14497 # Durations less than one second are represented with a 0
14498 # `seconds` field and a positive `nanos` field. Must be from 0
14499 # to 999,999,999 inclusive.
14500 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
14501 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
14502 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
14503 },
14504 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
14505 # to apply fine-grained caching for common errors or redirects.
14506 # This can reduce the load on your origin and improve end-user
14507 # experience by reducing response latency.
14508 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
14509 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
14510 # the specified response code that lack any Cache-Control, Expires, or
14511 # Pragma: no-cache directives. When the `cacheMode` is set to
14512 # `FORCE_CACHE_ALL`, negative caching applies to all responses
14513 # with the specified response code, and overrides any caching headers. By
14514 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
14515 #
14516 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
14517 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
14518 # * 405 (Method Not Found), 501 (Not Implemented): 60s
14519 #
14520 # These defaults can be overridden in `negativeCachingPolicy`.
14521 # If not specified, Cloud CDN applies negative caching by default.
14522 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
14523 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
14524 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
14525 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
14526 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
14527 # all response codes that you wish to cache. Cloud CDN will not apply any
14528 # default negative caching when a policy exists.
14529 { # Specify CDN TTLs for response error codes.
14530 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
14531 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
14532 # specified as values, and you cannot specify a status code more than
14533 # once.
14534 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
14535 # corresponding status code.
14536 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
14537 # objects may be evicted from the cache before the defined TTL.
14538 # as a count of seconds and fractions of seconds at nanosecond
14539 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
14540 # or &quot;month&quot;. Range is approximately 10,000 years.
14541 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
14542 # Durations less than one second are represented with a 0
14543 # `seconds` field and a positive `nanos` field. Must be from 0
14544 # to 999,999,999 inclusive.
14545 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
14546 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
14547 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
14548 },
14549 },
14550 ],
14551 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
14552 # requests into a small number of requests to the origin. If not specified,
14553 # Cloud CDN applies request coalescing by default.
14554 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
14555 # content with the origin, or when an error is encountered when refreshing
14556 # the cache.
14557 # This setting defines the default &quot;max-stale&quot; duration for any cached
14558 # responses that do not specify a max-stale directive. Stale responses that
14559 # exceed the TTL configured here will not be served. The default limit
14560 # (max-stale) is 86400s (1 day), which will allow stale content to be
14561 # served up to this limit beyond the max-age (or s-maxage) of a cached
14562 # response.
14563 # The maximum allowed value is 604800 (1 week).
14564 # Set this to zero (0) to disable serve-while-stale.
14565 # as a count of seconds and fractions of seconds at nanosecond
14566 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
14567 # or &quot;month&quot;. Range is approximately 10,000 years.
14568 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
14569 # Durations less than one second are represented with a 0
14570 # `seconds` field and a positive `nanos` field. Must be from 0
14571 # to 999,999,999 inclusive.
14572 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
14573 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
14574 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
14575 },
14576 },
14577 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
14578 # information about the W3C recommendation for cross-origin resource sharing
14579 # (CORS), see Fetch API Living
14580 # Standard.
14581 #
14582 # Not supported when the URL map is bound to a target gRPC proxy.
14583 # information about the W3C recommendation for cross-origin resource sharing
14584 # (CORS), see Fetch API Living
14585 # Standard.
14586 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
14587 # indicates that
14588 # the actual request can include user credentials. This field translates to
14589 # the Access-Control-Allow-Credentials header.
14590 #
14591 # Default is false.
14592 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
14593 # header.
14594 &quot;A String&quot;,
14595 ],
14596 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
14597 # header.
14598 &quot;A String&quot;,
14599 ],
14600 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
14601 # more information, see regular expression syntax.
14602 #
14603 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
14604 #
14605 # Regular expressions can only be used when the loadBalancingScheme is
14606 # set to INTERNAL_SELF_MANAGED.
14607 &quot;A String&quot;,
14608 ],
14609 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
14610 #
14611 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
14612 &quot;A String&quot;,
14613 ],
14614 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
14615 # The default value is false, which indicates that the CORS
14616 # policy is in effect.
14617 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
14618 # header.
14619 &quot;A String&quot;,
14620 ],
14621 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
14622 # seconds. This field translates to the Access-Control-Max-Age
14623 # header.
14624 },
14625 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
14626 # the resiliency of clients to backend service failure. As part of fault
14627 # injection, when clients send requests to a backend service, delays can be
14628 # introduced by a load balancer on a percentage of requests before sending
14629 # those requests to the backend service. Similarly requests from clients can
14630 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
14631 # that are configured with a fault_injection_policy if:
14632 # 1. The traffic is generated by fault injection AND
14633 # 2. The fault injection is not a delay fault injection.
14634 # Fault injection is not supported with the classic Application Load Balancer
14635 # . To see which load balancers support fault injection,
14636 # see Load
14637 # balancing: Routing and traffic management features.
14638 # the resiliency of clients to backend service failure. As part of fault
14639 # injection, when clients send requests to a backend service, delays can be
14640 # introduced by the load balancer on a percentage of requests before sending
14641 # those request to the backend service. Similarly requests from clients can be
14642 # aborted by the load balancer for a percentage of requests.
14643 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
14644 # injection.
14645 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
14646 #
14647 # The value must be from 200 to 599 inclusive.
14648 #
14649 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
14650 # according to this
14651 # mapping table. HTTP status 200 is mapped to gRPC status
14652 # UNKNOWN. Injecting an OK status is currently not supported by
14653 # Traffic Director.
14654 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
14655 # that is aborted as part of fault injection.
14656 #
14657 # The value must be from 0.0 to 100.0 inclusive.
14658 },
14659 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
14660 # injection, before being sent to a backend service.
14661 # request to the backend service as part of fault injection.
14662 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
14663 # as a count of seconds and fractions of seconds at nanosecond
14664 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
14665 # or &quot;month&quot;. Range is approximately 10,000 years.
14666 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
14667 # Durations less than one second are represented with a 0
14668 # `seconds` field and a positive `nanos` field. Must be from 0
14669 # to 999,999,999 inclusive.
14670 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
14671 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
14672 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
14673 },
14674 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
14675 # which a delay is introduced as part of fault injection.
14676 #
14677 # The value must be from 0.0 to 100.0 inclusive.
14678 },
14679 },
14680 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
14681 # Unlike the timeout field where the timeout duration starts
14682 # from the time the request has been fully processed (known as*end-of-stream*),
14683 # the duration in this field is computed from the beginning of the stream
14684 # until the response has been processed, including all retries. A
14685 # stream that does not complete in this duration is closed.
14686 #
14687 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
14688 # with the route.
14689 #
14690 # This field is only allowed if the Url map is used with backend services
14691 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
14692 # as a count of seconds and fractions of seconds at nanosecond
14693 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
14694 # or &quot;month&quot;. Range is approximately 10,000 years.
14695 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
14696 # Durations less than one second are represented with a 0
14697 # `seconds` field and a positive `nanos` field. Must be from 0
14698 # to 999,999,999 inclusive.
14699 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
14700 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
14701 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
14702 },
14703 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
14704 # are shadowed to a separate mirrored backend service. The load balancer does
14705 # not wait for responses from the shadow service. Before sending traffic
14706 # to the shadow service, the host / authority header is suffixed with-shadow.
14707 #
14708 # Not supported when the URL map is bound to a target gRPC proxy that
14709 # has the validateForProxyless field set to true.
14710 # are shadowed to a separate mirrored backend service. The load balancer
14711 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
14712 # to the shadow service, the host or authority header is suffixed with-shadow.
14713 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
14714 # mirrored to.
14715 #
14716 # The backend service configured for a mirroring
14717 # policy must reference backends that are of the same type as the original
14718 # backend service matched in the URL map.
14719 #
14720 # Serverless NEG backends are not currently supported as a mirrored
14721 # backend service.
14722 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
14723 },
14724 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
14725 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
14726 # If not specified, defaults to 1.
14727 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
14728 #
14729 # If not specified, will use the timeout set in theHttpRouteAction field.
14730 # If timeout in the HttpRouteAction field is not set, this field
14731 # uses the largest timeout
14732 # among all backend services associated with the route.
14733 #
14734 # Not supported when the URL map is bound to a target gRPC proxy that
14735 # has the validateForProxyless field set to true.
14736 # as a count of seconds and fractions of seconds at nanosecond
14737 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
14738 # or &quot;month&quot;. Range is approximately 10,000 years.
14739 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
14740 # Durations less than one second are represented with a 0
14741 # `seconds` field and a positive `nanos` field. Must be from 0
14742 # to 999,999,999 inclusive.
14743 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
14744 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
14745 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
14746 },
14747 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
14748 # values are:
14749 #
14750 # - 5xx: retry is attempted if the instance or endpoint
14751 # responds with any 5xx response code, or if the instance or
14752 # endpoint does not respond at all. For example, disconnects, reset, read
14753 # timeout, connection failure, and refused streams.
14754 # - gateway-error: Similar to 5xx, but only
14755 # applies to response codes 502, 503 or504.
14756 # - connect-failure: a retry is attempted on failures
14757 # connecting to the instance or endpoint. For example, connection
14758 # timeouts.
14759 # - retriable-4xx: a retry is attempted if the instance
14760 # or endpoint responds with a 4xx response code.
14761 # The only error that you can retry is error code 409.
14762 # - refused-stream: a retry is attempted if the instance
14763 # or endpoint resets the stream with a REFUSED_STREAM error
14764 # code. This reset type indicates that it is safe to retry.
14765 # - cancelled: a retry is attempted if the gRPC status
14766 # code in the response header is set to cancelled.
14767 # - deadline-exceeded: a retry is attempted if the gRPC
14768 # status code in the response header is set todeadline-exceeded.
14769 # - internal: a retry is attempted if the gRPC
14770 # status code in the response header is set tointernal.
14771 # - resource-exhausted: a retry is attempted if the gRPC
14772 # status code in the response header is set toresource-exhausted.
14773 # - unavailable: a retry is attempted if the gRPC
14774 # status code in the response header is set tounavailable.
14775 #
14776 # Only the following codes are supported when the URL map is bound to
14777 # target gRPC proxy that has validateForProxyless field set to true.
14778 #
14779 # - cancelled
14780 # - deadline-exceeded
14781 # - internal
14782 # - resource-exhausted
14783 # - unavailable
14784 &quot;A String&quot;,
14785 ],
14786 },
14787 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
14788 # time the request has been fully processed (known as *end-of-stream*)
14789 # up until the response has been processed. Timeout includes
14790 # all retries.
14791 #
14792 # If not specified, this field uses the largest timeout among all backend
14793 # services associated with the route.
14794 #
14795 # Not supported when the URL map is bound to a target gRPC proxy that
14796 # has validateForProxyless field set to true.
14797 # as a count of seconds and fractions of seconds at nanosecond
14798 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
14799 # or &quot;month&quot;. Range is approximately 10,000 years.
14800 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
14801 # Durations less than one second are represented with a 0
14802 # `seconds` field and a positive `nanos` field. Must be from 0
14803 # to 999,999,999 inclusive.
14804 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
14805 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
14806 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
14807 },
14808 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
14809 # to the matched service.
14810 #
14811 # urlRewrite is the only action supported in UrlMaps
14812 # for classic Application Load Balancers.
14813 #
14814 # Not supported when the URL map is bound to a target gRPC proxy that
14815 # has the validateForProxyless field set to true.
14816 # backend service.
14817 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
14818 # host header is replaced with contents of hostRewrite.
14819 #
14820 # The value must be from 1 to 255 characters.
14821 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
14822 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
14823 #
14824 # The value must be from 1 to 1024 characters.
14825 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
14826 # header) using the HTTP template syntax.
14827 #
14828 # A corresponding
14829 # path_template_match must be specified. Any template variables must exist in
14830 # the path_template_match field.
14831 #
14832 #
14833 # - -At least one variable must be specified in the path_template_match
14834 # field
14835 # - You can omit variables from the rewritten URL
14836 # - The * and ** operators cannot be matched
14837 # unless they have a corresponding variable name - e.g.
14838 # {format=*} or {var=**}.
14839 #
14840 # For example, a path_template_match of /static/{format=**}
14841 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
14842 # rewrite, so that /{country}/{format}/{suffix=**} can be
14843 # rewritten as /content/{format}/{country}/{suffix}.
14844 #
14845 # At least
14846 # one non-empty routeRules[].matchRules[].path_template_match is
14847 # required.
14848 #
14849 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
14850 },
14851 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
14852 # occurs. The weights determine the fraction of traffic that flows to
14853 # their corresponding backend service. If all traffic needs to
14854 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
14855 #
14856 # After a backend service is identified and before forwarding
14857 # the request to
14858 # the backend service, advanced routing actions such as URL rewrites and
14859 # header transformations are applied depending on additional settings
14860 # specified in this HttpRouteAction.
14861 { # In contrast to a single BackendService in
14862 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
14863 # multiple backend services. The volume of traffic for each
14864 # backend service is proportional to the weight specified
14865 # in each WeightedBackendService
14866 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
14867 # resource. Before
14868 # forwarding the request to backendService, the load balancer
14869 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
14870 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
14871 # effect for the selected backendService.
14872 #
14873 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
14874 #
14875 # headerAction is not supported for load balancers that have
14876 # their loadBalancingScheme set to EXTERNAL.
14877 #
14878 # Not supported when the URL map is bound to a target gRPC proxy that
14879 # has validateForProxyless field set to true.
14880 # the request is passed along to the selected backendService.
14881 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
14882 { # Specification determining how headers are added to requests or responses.
14883 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
14884 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
14885 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
14886 # that already
14887 # exist for the header. If true, headerValue is set for the
14888 # header, discarding any values that were set for that header.
14889 #
14890 # The default value is true,
14891 # unless a variable is present in headerValue,
14892 # in which case the default value is false.
14893 # .
14894 },
14895 ],
14896 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
14897 # request before forwarding the request to the backendService.
14898 &quot;A String&quot;,
14899 ],
14900 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
14901 # client.
14902 { # Specification determining how headers are added to requests or responses.
14903 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
14904 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
14905 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
14906 # that already
14907 # exist for the header. If true, headerValue is set for the
14908 # header, discarding any values that were set for that header.
14909 #
14910 # The default value is true,
14911 # unless a variable is present in headerValue,
14912 # in which case the default value is false.
14913 # .
14914 },
14915 ],
14916 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
14917 # response before sending the response back to the client.
14918 &quot;A String&quot;,
14919 ],
14920 },
14921 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
14922 # computed asweight / (sum of all weightedBackendService weights in routeAction).
14923 #
14924 # The selection of a backend service is determined only for new traffic.
14925 # Once a user&#x27;s request has been directed to a backend service,
14926 # subsequent requests are sent to the same backend service as
14927 # determined by the backend service&#x27;s session affinity policy.
14928 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
14929 # splitting. If you do, the weighted traffic splitting configuration takes
14930 # precedence.
14931 #
14932 # The value must be from 0 to 1000.
14933 },
14934 ],
14935 },
14936 &quot;service&quot;: &quot;A String&quot;, # The full or partial URL of the backend service resource to which traffic
14937 # is directed if this rule is matched. If routeAction is
14938 # also specified, advanced routing actions, such as URL rewrites,
14939 # take effect before sending the request to the backend.
14940 #
14941 #
14942 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
14943 &quot;urlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When this rule is matched, the request is redirected to a URL
14944 # specified by urlRedirect.
14945 #
14946 #
14947 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
14948 #
14949 #
14950 # Not supported when the URL map is bound to a target gRPC proxy.
14951 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
14952 # was supplied in the request.
14953 #
14954 # The value must be from 1 to 255
14955 # characters.
14956 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
14957 # set to HTTPS.
14958 # If set to false, the URL scheme of the redirected request
14959 # remains the same as that of the request.
14960 #
14961 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
14962 #
14963 # The default is set to false.
14964 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
14965 # that was supplied in the request.
14966 #
14967 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
14968 # supplied, the path of the original request is used for the redirect.
14969 #
14970 # The value must be from 1 to 1024 characters.
14971 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
14972 # the HttpRouteRuleMatch, retaining the remaining portion
14973 # of the URL before redirecting the request.
14974 #
14975 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
14976 # supplied, the path of the original request is used for the redirect.
14977 #
14978 # The value must be from 1 to 1024 characters.
14979 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
14980 #
14981 # Supported values are:
14982 #
14983 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
14984 # to 301.
14985 # - FOUND, which corresponds to 302.
14986 # - SEE_OTHER which corresponds to 303.
14987 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
14988 # method is retained.
14989 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
14990 # method is retained.
14991 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
14992 # URL is
14993 # removed before redirecting the request. If set to false, the
14994 # query portion of the original URL is retained.
14995 #
14996 # The default is set to false.
14997 },
14998 },
14999 ],
15000 },
15001 ],
15002 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional URL map resides.
15003 # This field is not applicable to global URL maps.
15004 # You must specify this field as part of the HTTP request URL. It is
15005 # not settable as a field in the request body.
15006 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
15007 &quot;tests&quot;: [ # The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test cases pass. You can specify a
15008 # maximum of 100 tests per UrlMap.
15009 #
15010 # Not supported when the URL map is bound to a target gRPC proxy that
15011 # has validateForProxyless field set to true.
15012 { # Message for the expected URL mappings.
15013 &quot;description&quot;: &quot;A String&quot;, # Description of this test case.
15014 &quot;expectedOutputUrl&quot;: &quot;A String&quot;, # The expected output URL evaluated by the load balancer
15015 # containing the scheme, host, path and query parameters.
15016 #
15017 # For rules that forward requests to backends, the test passes only whenexpectedOutputUrl matches the request forwarded by
15018 # the load balancer to backends. For rules with urlRewrite,
15019 # the test verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite action. When service is specified,expectedOutputUrl`s scheme is ignored.
15020 #
15021 # For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the load balancer&#x27;s
15022 # redirect response. If urlRedirect specifieshttps_redirect, the test passes only if the scheme inexpectedOutputUrl is also set to HTTPS.
15023 # If urlRedirect specifies strip_query, the test
15024 # passes only if expectedOutputUrl does not contain any query
15025 # parameters.
15026 #
15027 # expectedOutputUrl is optional whenservice is specified.
15028 &quot;expectedRedirectResponseCode&quot;: 42, # For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in
15029 # load balancer&#x27;s redirect response.
15030 #
15031 # expectedRedirectResponseCode cannot be set whenservice is set.
15032 &quot;headers&quot;: [ # HTTP headers for this request. If headers contains
15033 # a host header, then host must also match the header value.
15034 { # HTTP headers used in UrlMapTests.
15035 &quot;name&quot;: &quot;A String&quot;, # Header name.
15036 &quot;value&quot;: &quot;A String&quot;, # Header value.
15037 },
15038 ],
15039 &quot;host&quot;: &quot;A String&quot;, # Host portion of the URL. If headers contains a host header,
15040 # then host must also match the header value.
15041 &quot;path&quot;: &quot;A String&quot;, # Path portion of the URL.
15042 &quot;service&quot;: &quot;A String&quot;, # Expected BackendService or BackendBucket resource
15043 # the given URL should be mapped to.
15044 #
15045 # The service field cannot
15046 # be set if expectedRedirectResponseCode is set.
15047 },
15048 ],
15049 }
15050
15051 requestId: string, begin_interface: MixerMutationRequestBuilder
15052 Request ID to support idempotency.
15053 x__xgafv: string, V1 error format.
15054 Allowed values
15055 1 - v1 error format
15056 2 - v2 error format
15057
15058 Returns:
15059 An object of the form:
15060
15061 { # Represents an Operation resource.
15062 #
15063 # Google Compute Engine has three Operation resources:
15064 #
15065 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
15066 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
15067 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
15068 #
15069 # You can use an operation resource to manage asynchronous API requests.
15070 # For more information, readHandling
15071 # API responses.
15072 #
15073 # Operations can be global, regional or zonal.
15074 #
15075 # - For global operations, use the `globalOperations`
15076 # resource.
15077 # - For regional operations, use the
15078 # `regionOperations` resource.
15079 # - For zonal operations, use
15080 # the `zoneOperations` resource.
15081 #
15082 #
15083 #
15084 # For more information, read
15085 # Global, Regional, and Zonal Resources.
15086 #
15087 # Note that completed Operation resources have a limited
15088 # retention period.
15089 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
15090 # Not present otherwise.
15091 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
15092 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
15093 # set when the operation is created.
15094 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
15095 # text format.
15096 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
15097 # this field will be populated.
15098 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
15099 # operation.
15100 {
15101 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
15102 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
15103 # details. There is a set of defined message types to use for providing
15104 # details.The syntax depends on the error code. For example,
15105 # QuotaExceededInfo will have details when the error code is
15106 # QUOTA_EXCEEDED.
15107 {
15108 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
15109 #
15110 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
15111 # is not enabled:
15112 #
15113 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
15114 # &quot;domain&quot;: &quot;googleapis.com&quot;
15115 # &quot;metadata&quot;: {
15116 # &quot;resource&quot;: &quot;projects/123&quot;,
15117 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
15118 # }
15119 # }
15120 #
15121 # This response indicates that the pubsub.googleapis.com API is not enabled.
15122 #
15123 # Example of an error that is returned when attempting to create a Spanner
15124 # instance in a region that is out of stock:
15125 #
15126 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
15127 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
15128 # &quot;metadata&quot;: {
15129 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
15130 # }
15131 # }
15132 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
15133 # is typically the registered service name of the tool or product that
15134 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
15135 # generated by some common infrastructure, the error domain must be a
15136 # globally unique value that identifies the infrastructure. For Google API
15137 # infrastructure, the error domain is &quot;googleapis.com&quot;.
15138 &quot;metadatas&quot;: { # Additional structured details about this error.
15139 #
15140 # Keys must match a regular expression of `a-z+` but should
15141 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
15142 # length. When identifying the current value of an exceeded limit, the units
15143 # should be contained in the key, not the value. For example, rather than
15144 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
15145 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
15146 # instances that can be created in a single (batch) request.
15147 &quot;a_key&quot;: &quot;A String&quot;,
15148 },
15149 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
15150 # proximate cause of the error. Error reasons are unique within a particular
15151 # domain of errors. This should be at most 63 characters and match a
15152 # regular expression of `A-Z+[A-Z0-9]`, which represents
15153 # UPPER_SNAKE_CASE.
15154 },
15155 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
15156 #
15157 # For example, if a quota check failed with an error indicating the calling
15158 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
15159 # directly to the right place in the developer console to flip the bit.
15160 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
15161 { # Describes a URL link.
15162 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
15163 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
15164 },
15165 ],
15166 },
15167 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
15168 # which can be attached to an RPC error.
15169 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
15170 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
15171 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
15172 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
15173 },
15174 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
15175 &quot;dimensions&quot;: { # The map holding related quota dimensions.
15176 &quot;a_key&quot;: &quot;A String&quot;,
15177 },
15178 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
15179 # type or metric.
15180 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
15181 # or metric.
15182 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
15183 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
15184 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
15185 },
15186 },
15187 ],
15188 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
15189 # This property is optional.
15190 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
15191 },
15192 ],
15193 },
15194 &quot;getVersionOperationMetadata&quot;: {
15195 &quot;inlineSbomInfo&quot;: {
15196 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
15197 # appropriate identifiers.
15198 &quot;a_key&quot;: &quot;A String&quot;,
15199 },
15200 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
15201 # identifiers.
15202 &quot;a_key&quot;: &quot;A String&quot;,
15203 },
15204 },
15205 },
15206 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
15207 # message that was returned, such as `NOT FOUND`.
15208 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
15209 # status code that was returned. For example, a `404` means the
15210 # resource was not found.
15211 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
15212 # defined by the server.
15213 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
15214 # This value is inRFC3339
15215 # text format.
15216 &quot;instancesBulkInsertOperationMetadata&quot;: {
15217 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
15218 # Example key: zones/us-central1-a
15219 &quot;a_key&quot;: {
15220 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
15221 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
15222 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
15223 # error.
15224 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
15225 # if the flow is rolling forward or rolling back.
15226 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
15227 },
15228 },
15229 },
15230 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
15231 # Operation resources.
15232 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
15233 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
15234 # group of operations results from a `bulkInsert` API request.
15235 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
15236 # `update`, or `delete`, and so on.
15237 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
15238 # There is no requirement that this be linear or support any granularity of
15239 # operations. This should not be used to guess when the operation will be
15240 # complete. This number should monotonically increase as the operation
15241 # progresses.
15242 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
15243 # applicable when performing regional operations.
15244 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
15245 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
15246 # this field will contain information on all underlying zonal actions and
15247 # their state.
15248 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
15249 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
15250 # Example key: zones/us-central1-a
15251 &quot;a_key&quot;: {
15252 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # [Output Only] If state is `ABANDONED` or `FAILED`, this field is
15253 # populated.
15254 # different programming environments, including REST APIs and RPC APIs. It is
15255 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
15256 # three pieces of data: error code, error message, and error details.
15257 #
15258 # You can find out more about this error model and how to work with it in the
15259 # [API Design Guide](https://cloud.google.com/apis/design/errors).
15260 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
15261 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
15262 # message types for APIs to use.
15263 {
15264 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
15265 },
15266 ],
15267 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
15268 # user-facing error message should be localized and sent in the
15269 # google.rpc.Status.details field, or localized by the client.
15270 },
15271 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
15272 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
15273 },
15274 },
15275 },
15276 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
15277 # This value is inRFC3339
15278 # text format.
15279 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
15280 # following:
15281 # `PENDING`, `RUNNING`, or `DONE`.
15282 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
15283 # operation.
15284 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
15285 # of the target resource.
15286 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
15287 # operations related to creating a snapshot, this points to the disk
15288 # that the snapshot was created from.
15289 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
15290 # `[email protected]` or
15291 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
15292 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
15293 # operation, this field will be populated.
15294 {
15295 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
15296 # Engine returns NO_RESULTS_ON_PAGE if there
15297 # are no results in the response.
15298 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
15299 # value format. For example:
15300 #
15301 # &quot;data&quot;: [
15302 # {
15303 # &quot;key&quot;: &quot;scope&quot;,
15304 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
15305 # }
15306 {
15307 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
15308 # returned. For example, for warnings where there are no results in a list
15309 # request for a particular zone, this key might be scope and
15310 # the key value might be the zone name. Other examples might be a key
15311 # indicating a deprecated resource and a suggested replacement, or a
15312 # warning about invalid network settings (for example, if an instance
15313 # attempts to perform IP forwarding but is not enabled for IP forwarding).
15314 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
15315 },
15316 ],
15317 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
15318 },
15319 ],
15320 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
15321 # applicable when performing per-zone operations.
15322 }</pre>
15323 </div>
15324
15325 <div class="method">
15326 <code class="details" id="update">update(project, region, urlMap, body=None, requestId=None, x__xgafv=None)</code>
15327 <pre>Updates the specified UrlMap resource with the data included in the
15328 request.
15329
15330 Args:
15331 project: string, Project ID for this request. (required)
15332 region: string, Name of the region scoping this request. (required)
15333 urlMap: string, Name of the UrlMap resource to update. (required)
15334 body: object, The request body.
15335 The object takes the form of:
15336
15337 { # Represents a URL Map resource.
15338 #
15339 # Compute Engine has two URL Map resources:
15340 #
15341 # * [Global](/compute/docs/reference/rest/v1/urlMaps)
15342 # * [Regional](/compute/docs/reference/rest/v1/regionUrlMaps)
15343 #
15344 # A URL map resource is a component of certain types of cloud load balancers
15345 # and Traffic Director:
15346 #
15347 # * urlMaps are used by global external Application Load
15348 # Balancers, classic Application Load Balancers, and cross-region internal
15349 # Application Load Balancers.
15350 # * regionUrlMaps are used by internal Application Load Balancers,
15351 # regional external Application Load Balancers and regional internal
15352 # Application Load Balancers.
15353 #
15354 # For a list of supported URL map features by the load balancer type, see the
15355 # Load balancing features: Routing and traffic management table.
15356 #
15357 # For a list of supported URL map features for Traffic Director, see the
15358 # Traffic Director features: Routing and traffic management table.
15359 #
15360 # This resource defines mappings from hostnames and URL paths to either a
15361 # backend service or a backend bucket.
15362 #
15363 # To use the global urlMaps resource, the backend service must
15364 # have a loadBalancingScheme of either EXTERNAL,EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To use
15365 # the regionUrlMaps resource, the backend service must have aloadBalancingScheme of INTERNAL_MANAGED. For more
15366 # information, read URL
15367 # Map Concepts.
15368 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
15369 # text format.
15370 &quot;defaultCustomErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # defaultCustomErrorResponsePolicy specifies how the Load
15371 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
15372 #
15373 # This policy takes
15374 # effect at the load balancer level and applies only when no policy has been
15375 # defined for the error code at lower levels like PathMatcher, RouteRule and
15376 # PathRule within this UrlMap.
15377 #
15378 # For example, consider a UrlMap with the
15379 # following configuration:
15380 #
15381 #
15382 # - defaultCustomErrorResponsePolicy containing policies for
15383 # responding to 5xx and 4xx errors
15384 # - A PathMatcher configured for *.example.com has
15385 # defaultCustomErrorResponsePolicy for 4xx.
15386 #
15387 # If a request for http://www.example.com/ encounters a404, the policy inpathMatcher.defaultCustomErrorResponsePolicy will be enforced.
15388 # When the request for http://www.example.com/ encounters a502, the policy inUrlMap.defaultCustomErrorResponsePolicy will be enforced. When
15389 # a request that does not match any host in *.example.com such
15390 # as http://www.myotherexample.com/, encounters a404, UrlMap.defaultCustomErrorResponsePolicy
15391 # takes effect.
15392 #
15393 # When used in conjunction withdefaultRouteAction.retryPolicy, retries take precedence. Only
15394 # once all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting
15395 # a retry, if load balancer is successful in reaching the
15396 # service, the defaultCustomErrorResponsePolicy is ignored and
15397 # the response from the service is returned to the client.
15398 #
15399 # defaultCustomErrorResponsePolicy is supported only for
15400 # global external Application Load Balancers.
15401 # backend service or backend bucket responds with an error.
15402 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
15403 #
15404 # In a given policy, if you specify rules for both a range of error codes
15405 # as well as rules for specific error codes then rules with specific error
15406 # codes have a higher priority. For example, assume that you configure a rule
15407 # for 401 (Un-authorized) code, and another for all 4 series
15408 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
15409 # However if the backend service returns a 403, the rule for4xx takes effect.
15410 { # Specifies the mapping between the response code that will be returned along
15411 # with the custom error content and the response code returned by the backend
15412 # service.
15413 &quot;matchResponseCodes&quot;: [ # Valid values include:
15414 #
15415 #
15416 # - A number between 400 and 599: For example
15417 # 401 or 503, in which case the load balancer
15418 # applies the policy if the error code exactly matches this value.
15419 # - 5xx: Load Balancer will apply the policy if the
15420 # backend service responds with any response code in the range of
15421 # 500 to 599.
15422 # - 4xx: Load
15423 # Balancer will apply the policy if the backend service responds with any
15424 # response code in the range of 400 to
15425 # 499.
15426 #
15427 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
15428 &quot;A String&quot;,
15429 ],
15430 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
15431 # error content. If overrideResponseCode is not supplied, the
15432 # same response code returned by the original backend bucket or backend
15433 # service is returned to the client.
15434 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
15435 #
15436 # path must start
15437 # with a leading slash. path cannot have trailing slashes.
15438 #
15439 # If the file is not available in backendBucket or the
15440 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
15441 #
15442 # The value must
15443 # be from 1 to 1024 characters
15444 },
15445 ],
15446 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
15447 # contains the custom error content. Examples are:
15448 #
15449 #
15450 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
15451 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
15452 # - global/backendBuckets/myBackendBucket
15453 #
15454 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
15455 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
15456 #
15457 # If load balancer cannot reach
15458 # the backendBucket, a simple Not Found Error will
15459 # be returned, with the original response code (oroverrideResponseCode if configured).
15460 #
15461 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
15462 },
15463 &quot;defaultRouteAction&quot;: { # defaultRouteAction takes effect when none of the
15464 # hostRules match. The load balancer performs advanced routing
15465 # actions, such as URL rewrites and header transformations, before forwarding
15466 # the request to the selected backend.
15467 #
15468 #
15469 # Only one of defaultUrlRedirect, defaultService
15470 # or defaultRouteAction.weightedBackendService can be set.
15471 #
15472 #
15473 # URL maps for classic Application Load Balancers only support
15474 # the urlRewrite action within defaultRouteAction.
15475 #
15476 #
15477 # defaultRouteAction has no effect when the URL map is bound
15478 # to a target gRPC proxy that has the validateForProxyless field
15479 # set to true.
15480 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
15481 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
15482 # property must be specified. This policy cannot be specified if any target
15483 # backend has Identity-Aware Proxy enabled.
15484 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
15485 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
15486 # header names can be specified. The cache is bypassed for all `cacheMode`
15487 # values.
15488 &quot;A String&quot;,
15489 ],
15490 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
15491 # on the backend type: for Backend Services, the complete request URI is
15492 # used; for Backend Buckets, the request URI is used without the protocol or
15493 # host, and only query parameters known to Cloud Storage are included.
15494 # Policy defined on Route Action.
15495 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
15496 # parameters will be included. Either specify `excludedQueryParameters`
15497 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
15498 # encoded and not treated as delimiters.
15499 #
15500 # Note: This field applies to routes that use backend services. Attempting
15501 # to set it on a route that points exclusively to Backend Buckets will
15502 # result in a configuration error. For routes that point to a Backend
15503 # Bucket, use `includedQueryParameters` to define which parameters should
15504 # be part of the cache key.
15505 &quot;A String&quot;,
15506 ],
15507 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
15508 #
15509 # Note: This setting is only applicable to routes that use a Backend
15510 # Service. It does not affect requests served by a Backend Bucket, as the
15511 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
15512 # it on a route that points exclusively to Backend Buckets will result in a
15513 # configuration error.
15514 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
15515 #
15516 # Note: This setting is only applicable to routes that use a Backend
15517 # Service. It does not affect requests served by a Backend Bucket, as the
15518 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
15519 # set on a route that points exclusively to Backend Buckets will result in
15520 # a configuration error.
15521 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
15522 # `includedQueryParameters` and `excludedQueryParameters`. If neither
15523 # is set, the entire query string will be included. If false, the query
15524 # string will be excluded from the cache key entirely.
15525 #
15526 # Note: This field applies to routes that use backend services. Attempting
15527 # to set it on a route that points exclusively to Backend Buckets will
15528 # result in a configuration error. For routes that point to a Backend
15529 # Bucket, use `includedQueryParameters` to define which parameters should
15530 # be part of the cache key.
15531 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
15532 # The name=value pair will be used in the cache key Cloud CDN generates.
15533 #
15534 # Note: This setting is only applicable to routes that use a Backend
15535 # Service. It does not affect requests served by a Backend Bucket.
15536 # Attempting to set it on a route that points exclusively to Backend
15537 # Buckets will result in a configuration error. Up to 5 cookie names can be
15538 # specified.
15539 &quot;A String&quot;,
15540 ],
15541 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
15542 &quot;A String&quot;,
15543 ],
15544 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
15545 # parameters will be excluded. Either specify `includedQueryParameters`
15546 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
15547 # encoded and not treated as delimiters.
15548 &quot;A String&quot;,
15549 ],
15550 },
15551 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
15552 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
15553 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
15554 # content. This is used to clamp the max-age (or Expires) value sent to the
15555 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
15556 # is used for the response max-age directive, along with a &quot;public&quot;
15557 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
15558 # clamps the max-age from the origin (if specified), or else sets the
15559 # response max-age directive to the lesser of the `clientTtl` and
15560 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
15561 # present. The maximum allowed value is 31,622,400s (1 year). If not
15562 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
15563 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
15564 # `USE_ORIGIN_HEADERS`.
15565 # as a count of seconds and fractions of seconds at nanosecond
15566 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
15567 # or &quot;month&quot;. Range is approximately 10,000 years.
15568 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
15569 # Durations less than one second are represented with a 0
15570 # `seconds` field and a positive `nanos` field. Must be from 0
15571 # to 999,999,999 inclusive.
15572 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
15573 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
15574 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
15575 },
15576 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
15577 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
15578 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
15579 # greater than that of `maxTtl`. When the `cacheMode` is set to
15580 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
15581 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
15582 # accessed objects may be evicted from the cache before the defined TTL. If
15583 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
15584 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
15585 # `USE_ORIGIN_HEADERS`.
15586 # as a count of seconds and fractions of seconds at nanosecond
15587 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
15588 # or &quot;month&quot;. Range is approximately 10,000 years.
15589 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
15590 # Durations less than one second are represented with a 0
15591 # `seconds` field and a positive `nanos` field. Must be from 0
15592 # to 999,999,999 inclusive.
15593 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
15594 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
15595 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
15596 },
15597 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
15598 # attempt to set a max-age or s-maxage higher than this, or an Expires header
15599 # more than `maxTtl` seconds in the future will be capped at the value of
15600 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
15601 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
15602 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
15603 # Infrequently accessed objects may be evicted from the cache before the
15604 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
15605 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
15606 # mode.
15607 # as a count of seconds and fractions of seconds at nanosecond
15608 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
15609 # or &quot;month&quot;. Range is approximately 10,000 years.
15610 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
15611 # Durations less than one second are represented with a 0
15612 # `seconds` field and a positive `nanos` field. Must be from 0
15613 # to 999,999,999 inclusive.
15614 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
15615 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
15616 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
15617 },
15618 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
15619 # to apply fine-grained caching for common errors or redirects.
15620 # This can reduce the load on your origin and improve end-user
15621 # experience by reducing response latency.
15622 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
15623 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
15624 # the specified response code that lack any Cache-Control, Expires, or
15625 # Pragma: no-cache directives. When the `cacheMode` is set to
15626 # `FORCE_CACHE_ALL`, negative caching applies to all responses
15627 # with the specified response code, and overrides any caching headers. By
15628 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
15629 #
15630 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
15631 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
15632 # * 405 (Method Not Found), 501 (Not Implemented): 60s
15633 #
15634 # These defaults can be overridden in `negativeCachingPolicy`.
15635 # If not specified, Cloud CDN applies negative caching by default.
15636 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
15637 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
15638 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
15639 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
15640 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
15641 # all response codes that you wish to cache. Cloud CDN will not apply any
15642 # default negative caching when a policy exists.
15643 { # Specify CDN TTLs for response error codes.
15644 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
15645 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
15646 # specified as values, and you cannot specify a status code more than
15647 # once.
15648 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
15649 # corresponding status code.
15650 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
15651 # objects may be evicted from the cache before the defined TTL.
15652 # as a count of seconds and fractions of seconds at nanosecond
15653 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
15654 # or &quot;month&quot;. Range is approximately 10,000 years.
15655 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
15656 # Durations less than one second are represented with a 0
15657 # `seconds` field and a positive `nanos` field. Must be from 0
15658 # to 999,999,999 inclusive.
15659 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
15660 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
15661 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
15662 },
15663 },
15664 ],
15665 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
15666 # requests into a small number of requests to the origin. If not specified,
15667 # Cloud CDN applies request coalescing by default.
15668 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
15669 # content with the origin, or when an error is encountered when refreshing
15670 # the cache.
15671 # This setting defines the default &quot;max-stale&quot; duration for any cached
15672 # responses that do not specify a max-stale directive. Stale responses that
15673 # exceed the TTL configured here will not be served. The default limit
15674 # (max-stale) is 86400s (1 day), which will allow stale content to be
15675 # served up to this limit beyond the max-age (or s-maxage) of a cached
15676 # response.
15677 # The maximum allowed value is 604800 (1 week).
15678 # Set this to zero (0) to disable serve-while-stale.
15679 # as a count of seconds and fractions of seconds at nanosecond
15680 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
15681 # or &quot;month&quot;. Range is approximately 10,000 years.
15682 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
15683 # Durations less than one second are represented with a 0
15684 # `seconds` field and a positive `nanos` field. Must be from 0
15685 # to 999,999,999 inclusive.
15686 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
15687 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
15688 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
15689 },
15690 },
15691 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
15692 # information about the W3C recommendation for cross-origin resource sharing
15693 # (CORS), see Fetch API Living
15694 # Standard.
15695 #
15696 # Not supported when the URL map is bound to a target gRPC proxy.
15697 # information about the W3C recommendation for cross-origin resource sharing
15698 # (CORS), see Fetch API Living
15699 # Standard.
15700 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
15701 # indicates that
15702 # the actual request can include user credentials. This field translates to
15703 # the Access-Control-Allow-Credentials header.
15704 #
15705 # Default is false.
15706 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
15707 # header.
15708 &quot;A String&quot;,
15709 ],
15710 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
15711 # header.
15712 &quot;A String&quot;,
15713 ],
15714 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
15715 # more information, see regular expression syntax.
15716 #
15717 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
15718 #
15719 # Regular expressions can only be used when the loadBalancingScheme is
15720 # set to INTERNAL_SELF_MANAGED.
15721 &quot;A String&quot;,
15722 ],
15723 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
15724 #
15725 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
15726 &quot;A String&quot;,
15727 ],
15728 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
15729 # The default value is false, which indicates that the CORS
15730 # policy is in effect.
15731 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
15732 # header.
15733 &quot;A String&quot;,
15734 ],
15735 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
15736 # seconds. This field translates to the Access-Control-Max-Age
15737 # header.
15738 },
15739 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
15740 # the resiliency of clients to backend service failure. As part of fault
15741 # injection, when clients send requests to a backend service, delays can be
15742 # introduced by a load balancer on a percentage of requests before sending
15743 # those requests to the backend service. Similarly requests from clients can
15744 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
15745 # that are configured with a fault_injection_policy if:
15746 # 1. The traffic is generated by fault injection AND
15747 # 2. The fault injection is not a delay fault injection.
15748 # Fault injection is not supported with the classic Application Load Balancer
15749 # . To see which load balancers support fault injection,
15750 # see Load
15751 # balancing: Routing and traffic management features.
15752 # the resiliency of clients to backend service failure. As part of fault
15753 # injection, when clients send requests to a backend service, delays can be
15754 # introduced by the load balancer on a percentage of requests before sending
15755 # those request to the backend service. Similarly requests from clients can be
15756 # aborted by the load balancer for a percentage of requests.
15757 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
15758 # injection.
15759 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
15760 #
15761 # The value must be from 200 to 599 inclusive.
15762 #
15763 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
15764 # according to this
15765 # mapping table. HTTP status 200 is mapped to gRPC status
15766 # UNKNOWN. Injecting an OK status is currently not supported by
15767 # Traffic Director.
15768 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
15769 # that is aborted as part of fault injection.
15770 #
15771 # The value must be from 0.0 to 100.0 inclusive.
15772 },
15773 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
15774 # injection, before being sent to a backend service.
15775 # request to the backend service as part of fault injection.
15776 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
15777 # as a count of seconds and fractions of seconds at nanosecond
15778 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
15779 # or &quot;month&quot;. Range is approximately 10,000 years.
15780 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
15781 # Durations less than one second are represented with a 0
15782 # `seconds` field and a positive `nanos` field. Must be from 0
15783 # to 999,999,999 inclusive.
15784 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
15785 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
15786 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
15787 },
15788 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
15789 # which a delay is introduced as part of fault injection.
15790 #
15791 # The value must be from 0.0 to 100.0 inclusive.
15792 },
15793 },
15794 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
15795 # Unlike the timeout field where the timeout duration starts
15796 # from the time the request has been fully processed (known as*end-of-stream*),
15797 # the duration in this field is computed from the beginning of the stream
15798 # until the response has been processed, including all retries. A
15799 # stream that does not complete in this duration is closed.
15800 #
15801 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
15802 # with the route.
15803 #
15804 # This field is only allowed if the Url map is used with backend services
15805 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
15806 # as a count of seconds and fractions of seconds at nanosecond
15807 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
15808 # or &quot;month&quot;. Range is approximately 10,000 years.
15809 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
15810 # Durations less than one second are represented with a 0
15811 # `seconds` field and a positive `nanos` field. Must be from 0
15812 # to 999,999,999 inclusive.
15813 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
15814 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
15815 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
15816 },
15817 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
15818 # are shadowed to a separate mirrored backend service. The load balancer does
15819 # not wait for responses from the shadow service. Before sending traffic
15820 # to the shadow service, the host / authority header is suffixed with-shadow.
15821 #
15822 # Not supported when the URL map is bound to a target gRPC proxy that
15823 # has the validateForProxyless field set to true.
15824 # are shadowed to a separate mirrored backend service. The load balancer
15825 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
15826 # to the shadow service, the host or authority header is suffixed with-shadow.
15827 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
15828 # mirrored to.
15829 #
15830 # The backend service configured for a mirroring
15831 # policy must reference backends that are of the same type as the original
15832 # backend service matched in the URL map.
15833 #
15834 # Serverless NEG backends are not currently supported as a mirrored
15835 # backend service.
15836 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
15837 },
15838 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
15839 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
15840 # If not specified, defaults to 1.
15841 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
15842 #
15843 # If not specified, will use the timeout set in theHttpRouteAction field.
15844 # If timeout in the HttpRouteAction field is not set, this field
15845 # uses the largest timeout
15846 # among all backend services associated with the route.
15847 #
15848 # Not supported when the URL map is bound to a target gRPC proxy that
15849 # has the validateForProxyless field set to true.
15850 # as a count of seconds and fractions of seconds at nanosecond
15851 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
15852 # or &quot;month&quot;. Range is approximately 10,000 years.
15853 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
15854 # Durations less than one second are represented with a 0
15855 # `seconds` field and a positive `nanos` field. Must be from 0
15856 # to 999,999,999 inclusive.
15857 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
15858 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
15859 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
15860 },
15861 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
15862 # values are:
15863 #
15864 # - 5xx: retry is attempted if the instance or endpoint
15865 # responds with any 5xx response code, or if the instance or
15866 # endpoint does not respond at all. For example, disconnects, reset, read
15867 # timeout, connection failure, and refused streams.
15868 # - gateway-error: Similar to 5xx, but only
15869 # applies to response codes 502, 503 or504.
15870 # - connect-failure: a retry is attempted on failures
15871 # connecting to the instance or endpoint. For example, connection
15872 # timeouts.
15873 # - retriable-4xx: a retry is attempted if the instance
15874 # or endpoint responds with a 4xx response code.
15875 # The only error that you can retry is error code 409.
15876 # - refused-stream: a retry is attempted if the instance
15877 # or endpoint resets the stream with a REFUSED_STREAM error
15878 # code. This reset type indicates that it is safe to retry.
15879 # - cancelled: a retry is attempted if the gRPC status
15880 # code in the response header is set to cancelled.
15881 # - deadline-exceeded: a retry is attempted if the gRPC
15882 # status code in the response header is set todeadline-exceeded.
15883 # - internal: a retry is attempted if the gRPC
15884 # status code in the response header is set tointernal.
15885 # - resource-exhausted: a retry is attempted if the gRPC
15886 # status code in the response header is set toresource-exhausted.
15887 # - unavailable: a retry is attempted if the gRPC
15888 # status code in the response header is set tounavailable.
15889 #
15890 # Only the following codes are supported when the URL map is bound to
15891 # target gRPC proxy that has validateForProxyless field set to true.
15892 #
15893 # - cancelled
15894 # - deadline-exceeded
15895 # - internal
15896 # - resource-exhausted
15897 # - unavailable
15898 &quot;A String&quot;,
15899 ],
15900 },
15901 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
15902 # time the request has been fully processed (known as *end-of-stream*)
15903 # up until the response has been processed. Timeout includes
15904 # all retries.
15905 #
15906 # If not specified, this field uses the largest timeout among all backend
15907 # services associated with the route.
15908 #
15909 # Not supported when the URL map is bound to a target gRPC proxy that
15910 # has validateForProxyless field set to true.
15911 # as a count of seconds and fractions of seconds at nanosecond
15912 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
15913 # or &quot;month&quot;. Range is approximately 10,000 years.
15914 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
15915 # Durations less than one second are represented with a 0
15916 # `seconds` field and a positive `nanos` field. Must be from 0
15917 # to 999,999,999 inclusive.
15918 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
15919 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
15920 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
15921 },
15922 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
15923 # to the matched service.
15924 #
15925 # urlRewrite is the only action supported in UrlMaps
15926 # for classic Application Load Balancers.
15927 #
15928 # Not supported when the URL map is bound to a target gRPC proxy that
15929 # has the validateForProxyless field set to true.
15930 # backend service.
15931 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
15932 # host header is replaced with contents of hostRewrite.
15933 #
15934 # The value must be from 1 to 255 characters.
15935 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
15936 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
15937 #
15938 # The value must be from 1 to 1024 characters.
15939 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
15940 # header) using the HTTP template syntax.
15941 #
15942 # A corresponding
15943 # path_template_match must be specified. Any template variables must exist in
15944 # the path_template_match field.
15945 #
15946 #
15947 # - -At least one variable must be specified in the path_template_match
15948 # field
15949 # - You can omit variables from the rewritten URL
15950 # - The * and ** operators cannot be matched
15951 # unless they have a corresponding variable name - e.g.
15952 # {format=*} or {var=**}.
15953 #
15954 # For example, a path_template_match of /static/{format=**}
15955 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
15956 # rewrite, so that /{country}/{format}/{suffix=**} can be
15957 # rewritten as /content/{format}/{country}/{suffix}.
15958 #
15959 # At least
15960 # one non-empty routeRules[].matchRules[].path_template_match is
15961 # required.
15962 #
15963 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
15964 },
15965 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
15966 # occurs. The weights determine the fraction of traffic that flows to
15967 # their corresponding backend service. If all traffic needs to
15968 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
15969 #
15970 # After a backend service is identified and before forwarding
15971 # the request to
15972 # the backend service, advanced routing actions such as URL rewrites and
15973 # header transformations are applied depending on additional settings
15974 # specified in this HttpRouteAction.
15975 { # In contrast to a single BackendService in
15976 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
15977 # multiple backend services. The volume of traffic for each
15978 # backend service is proportional to the weight specified
15979 # in each WeightedBackendService
15980 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
15981 # resource. Before
15982 # forwarding the request to backendService, the load balancer
15983 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
15984 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
15985 # effect for the selected backendService.
15986 #
15987 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
15988 #
15989 # headerAction is not supported for load balancers that have
15990 # their loadBalancingScheme set to EXTERNAL.
15991 #
15992 # Not supported when the URL map is bound to a target gRPC proxy that
15993 # has validateForProxyless field set to true.
15994 # the request is passed along to the selected backendService.
15995 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
15996 { # Specification determining how headers are added to requests or responses.
15997 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
15998 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
15999 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
16000 # that already
16001 # exist for the header. If true, headerValue is set for the
16002 # header, discarding any values that were set for that header.
16003 #
16004 # The default value is true,
16005 # unless a variable is present in headerValue,
16006 # in which case the default value is false.
16007 # .
16008 },
16009 ],
16010 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
16011 # request before forwarding the request to the backendService.
16012 &quot;A String&quot;,
16013 ],
16014 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
16015 # client.
16016 { # Specification determining how headers are added to requests or responses.
16017 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
16018 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
16019 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
16020 # that already
16021 # exist for the header. If true, headerValue is set for the
16022 # header, discarding any values that were set for that header.
16023 #
16024 # The default value is true,
16025 # unless a variable is present in headerValue,
16026 # in which case the default value is false.
16027 # .
16028 },
16029 ],
16030 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
16031 # response before sending the response back to the client.
16032 &quot;A String&quot;,
16033 ],
16034 },
16035 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
16036 # computed asweight / (sum of all weightedBackendService weights in routeAction).
16037 #
16038 # The selection of a backend service is determined only for new traffic.
16039 # Once a user&#x27;s request has been directed to a backend service,
16040 # subsequent requests are sent to the same backend service as
16041 # determined by the backend service&#x27;s session affinity policy.
16042 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
16043 # splitting. If you do, the weighted traffic splitting configuration takes
16044 # precedence.
16045 #
16046 # The value must be from 0 to 1000.
16047 },
16048 ],
16049 },
16050 &quot;defaultService&quot;: &quot;A String&quot;, # The full or partial URL of the defaultService resource to
16051 # which traffic is directed if none of the hostRules match.
16052 # If defaultRouteAction is also specified, advanced
16053 # routing actions, such as URL rewrites, take effect before sending the
16054 # request to the backend.
16055 #
16056 #
16057 # Only one of defaultUrlRedirect, defaultService
16058 # or defaultRouteAction.weightedBackendService can be set.
16059 #
16060 #
16061 # defaultService has no effect when the URL map is bound
16062 # to a target gRPC proxy that has the validateForProxyless field
16063 # set to true.
16064 &quot;defaultUrlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When none of the specified hostRules match, the request
16065 # is redirected to a URL specified by defaultUrlRedirect.
16066 #
16067 #
16068 # Only one of defaultUrlRedirect, defaultService
16069 # or defaultRouteAction.weightedBackendService can be set.
16070 #
16071 #
16072 # Not supported when the URL map is bound to a target gRPC proxy.
16073 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
16074 # was supplied in the request.
16075 #
16076 # The value must be from 1 to 255
16077 # characters.
16078 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
16079 # set to HTTPS.
16080 # If set to false, the URL scheme of the redirected request
16081 # remains the same as that of the request.
16082 #
16083 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
16084 #
16085 # The default is set to false.
16086 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
16087 # that was supplied in the request.
16088 #
16089 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
16090 # supplied, the path of the original request is used for the redirect.
16091 #
16092 # The value must be from 1 to 1024 characters.
16093 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
16094 # the HttpRouteRuleMatch, retaining the remaining portion
16095 # of the URL before redirecting the request.
16096 #
16097 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
16098 # supplied, the path of the original request is used for the redirect.
16099 #
16100 # The value must be from 1 to 1024 characters.
16101 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
16102 #
16103 # Supported values are:
16104 #
16105 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
16106 # to 301.
16107 # - FOUND, which corresponds to 302.
16108 # - SEE_OTHER which corresponds to 303.
16109 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
16110 # method is retained.
16111 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
16112 # method is retained.
16113 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
16114 # URL is
16115 # removed before redirecting the request. If set to false, the
16116 # query portion of the original URL is retained.
16117 #
16118 # The default is set to false.
16119 },
16120 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
16121 # create the resource.
16122 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint of this resource. A hash of the contents stored in this object.
16123 # This field is used in optimistic locking. This field is ignored when
16124 # inserting a UrlMap. An up-to-date fingerprint must be provided
16125 # in order to update the UrlMap, otherwise the request will
16126 # fail with error 412 conditionNotMet.
16127 #
16128 # To see the latest fingerprint, make a get() request to
16129 # retrieve a UrlMap.
16130 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
16131 # for the selected backendService.
16132 #
16133 # The headerAction specified here take effect afterheaderAction specified under pathMatcher.
16134 #
16135 # headerAction is not supported for load balancers
16136 # that have
16137 # their loadBalancingScheme set to EXTERNAL.
16138 #
16139 # Not supported when the URL map is bound to a target gRPC proxy that
16140 # has validateForProxyless field set to true.
16141 # the request is passed along to the selected backendService.
16142 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
16143 { # Specification determining how headers are added to requests or responses.
16144 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
16145 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
16146 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
16147 # that already
16148 # exist for the header. If true, headerValue is set for the
16149 # header, discarding any values that were set for that header.
16150 #
16151 # The default value is true,
16152 # unless a variable is present in headerValue,
16153 # in which case the default value is false.
16154 # .
16155 },
16156 ],
16157 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
16158 # request before forwarding the request to the backendService.
16159 &quot;A String&quot;,
16160 ],
16161 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
16162 # client.
16163 { # Specification determining how headers are added to requests or responses.
16164 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
16165 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
16166 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
16167 # that already
16168 # exist for the header. If true, headerValue is set for the
16169 # header, discarding any values that were set for that header.
16170 #
16171 # The default value is true,
16172 # unless a variable is present in headerValue,
16173 # in which case the default value is false.
16174 # .
16175 },
16176 ],
16177 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
16178 # response before sending the response back to the client.
16179 &quot;A String&quot;,
16180 ],
16181 },
16182 &quot;hostRules&quot;: [ # The list of host rules to use against the URL.
16183 { # UrlMaps
16184 # A host-matching rule for a URL. If matched, will use the namedPathMatcher to select the BackendService.
16185 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
16186 # create the resource.
16187 &quot;hosts&quot;: [ # The list of host patterns to match. They must be valid hostnames with
16188 # optional port numbers in the format host:port.* matches any string of ([a-z0-9-.]*). In
16189 # that case, * must be the first character, and if followed by
16190 # anything, the immediate following character must be either -
16191 # or ..
16192 #
16193 # * based matching is not supported when the URL map is bound
16194 # to a target gRPC proxy that has the validateForProxyless field
16195 # set to true.
16196 &quot;A String&quot;,
16197 ],
16198 &quot;pathMatcher&quot;: &quot;A String&quot;, # The name of the PathMatcher to use to match the path portion
16199 # of the URL if the hostRule matches the URL&#x27;s host portion.
16200 },
16201 ],
16202 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
16203 # defined by the server.
16204 &quot;kind&quot;: &quot;compute#urlMap&quot;, # Output only. [Output Only] Type of the resource. Always compute#urlMaps for
16205 # url maps.
16206 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
16207 # The name must be 1-63 characters long, and comply withRFC1035.
16208 # Specifically, the name must be 1-63 characters long and match the regular
16209 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
16210 # character must be a lowercase letter, and all following characters must
16211 # be a dash, lowercase letter, or digit, except the last character, which
16212 # cannot be a dash.
16213 &quot;pathMatchers&quot;: [ # The list of named PathMatchers to use against the URL.
16214 { # A matcher for the path portion of the URL. The BackendService
16215 # from the longest-matched rule will serve the URL. If no rule was matched, the
16216 # default service is used.
16217 &quot;defaultCustomErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # defaultCustomErrorResponsePolicy specifies how the Load
16218 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
16219 #
16220 # This policy takes
16221 # effect at the PathMatcher level and applies only when no
16222 # policy has been defined for the error code at lower levels likeRouteRule and PathRule within thisPathMatcher. If an error code does not have a policy defined
16223 # in defaultCustomErrorResponsePolicy, then a policy defined for
16224 # the error code in UrlMap.defaultCustomErrorResponsePolicy
16225 # takes effect.
16226 #
16227 # For example, consider a UrlMap with the following
16228 # configuration:
16229 #
16230 #
16231 # - UrlMap.defaultCustomErrorResponsePolicy is configured
16232 # with policies for 5xx and 4xx errors
16233 # - A RouteRule for /coming_soon/ is configured for the
16234 # error code 404.
16235 #
16236 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
16237 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
16238 # the policy in RouteRule.customErrorResponsePolicy takes
16239 # effect. If any of the requests in this example encounter a 500
16240 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
16241 #
16242 # When
16243 # used in conjunction withpathMatcher.defaultRouteAction.retryPolicy, retries take
16244 # precedence. Only once all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting
16245 # a retry, if load balancer is successful in reaching the
16246 # service, the defaultCustomErrorResponsePolicy is ignored and
16247 # the response from the service is returned to the client.
16248 #
16249 # defaultCustomErrorResponsePolicy is supported only for
16250 # global external Application Load Balancers.
16251 # backend service or backend bucket responds with an error.
16252 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
16253 #
16254 # In a given policy, if you specify rules for both a range of error codes
16255 # as well as rules for specific error codes then rules with specific error
16256 # codes have a higher priority. For example, assume that you configure a rule
16257 # for 401 (Un-authorized) code, and another for all 4 series
16258 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
16259 # However if the backend service returns a 403, the rule for4xx takes effect.
16260 { # Specifies the mapping between the response code that will be returned along
16261 # with the custom error content and the response code returned by the backend
16262 # service.
16263 &quot;matchResponseCodes&quot;: [ # Valid values include:
16264 #
16265 #
16266 # - A number between 400 and 599: For example
16267 # 401 or 503, in which case the load balancer
16268 # applies the policy if the error code exactly matches this value.
16269 # - 5xx: Load Balancer will apply the policy if the
16270 # backend service responds with any response code in the range of
16271 # 500 to 599.
16272 # - 4xx: Load
16273 # Balancer will apply the policy if the backend service responds with any
16274 # response code in the range of 400 to
16275 # 499.
16276 #
16277 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
16278 &quot;A String&quot;,
16279 ],
16280 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
16281 # error content. If overrideResponseCode is not supplied, the
16282 # same response code returned by the original backend bucket or backend
16283 # service is returned to the client.
16284 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
16285 #
16286 # path must start
16287 # with a leading slash. path cannot have trailing slashes.
16288 #
16289 # If the file is not available in backendBucket or the
16290 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
16291 #
16292 # The value must
16293 # be from 1 to 1024 characters
16294 },
16295 ],
16296 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
16297 # contains the custom error content. Examples are:
16298 #
16299 #
16300 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
16301 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
16302 # - global/backendBuckets/myBackendBucket
16303 #
16304 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
16305 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
16306 #
16307 # If load balancer cannot reach
16308 # the backendBucket, a simple Not Found Error will
16309 # be returned, with the original response code (oroverrideResponseCode if configured).
16310 #
16311 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
16312 },
16313 &quot;defaultRouteAction&quot;: { # defaultRouteAction takes effect when none of the
16314 # pathRules or routeRules match. The load balancer
16315 # performs advanced routing actions, such as URL rewrites and
16316 # header transformations, before forwarding the request to the
16317 # selected backend.
16318 #
16319 #
16320 # Only one of defaultUrlRedirect, defaultService
16321 # or defaultRouteAction.weightedBackendService can be set.
16322 #
16323 #
16324 # URL maps for classic Application Load Balancers only support
16325 # the urlRewrite action within a path matcher&#x27;sdefaultRouteAction.
16326 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
16327 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
16328 # property must be specified. This policy cannot be specified if any target
16329 # backend has Identity-Aware Proxy enabled.
16330 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
16331 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
16332 # header names can be specified. The cache is bypassed for all `cacheMode`
16333 # values.
16334 &quot;A String&quot;,
16335 ],
16336 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
16337 # on the backend type: for Backend Services, the complete request URI is
16338 # used; for Backend Buckets, the request URI is used without the protocol or
16339 # host, and only query parameters known to Cloud Storage are included.
16340 # Policy defined on Route Action.
16341 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
16342 # parameters will be included. Either specify `excludedQueryParameters`
16343 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
16344 # encoded and not treated as delimiters.
16345 #
16346 # Note: This field applies to routes that use backend services. Attempting
16347 # to set it on a route that points exclusively to Backend Buckets will
16348 # result in a configuration error. For routes that point to a Backend
16349 # Bucket, use `includedQueryParameters` to define which parameters should
16350 # be part of the cache key.
16351 &quot;A String&quot;,
16352 ],
16353 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
16354 #
16355 # Note: This setting is only applicable to routes that use a Backend
16356 # Service. It does not affect requests served by a Backend Bucket, as the
16357 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
16358 # it on a route that points exclusively to Backend Buckets will result in a
16359 # configuration error.
16360 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
16361 #
16362 # Note: This setting is only applicable to routes that use a Backend
16363 # Service. It does not affect requests served by a Backend Bucket, as the
16364 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
16365 # set on a route that points exclusively to Backend Buckets will result in
16366 # a configuration error.
16367 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
16368 # `includedQueryParameters` and `excludedQueryParameters`. If neither
16369 # is set, the entire query string will be included. If false, the query
16370 # string will be excluded from the cache key entirely.
16371 #
16372 # Note: This field applies to routes that use backend services. Attempting
16373 # to set it on a route that points exclusively to Backend Buckets will
16374 # result in a configuration error. For routes that point to a Backend
16375 # Bucket, use `includedQueryParameters` to define which parameters should
16376 # be part of the cache key.
16377 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
16378 # The name=value pair will be used in the cache key Cloud CDN generates.
16379 #
16380 # Note: This setting is only applicable to routes that use a Backend
16381 # Service. It does not affect requests served by a Backend Bucket.
16382 # Attempting to set it on a route that points exclusively to Backend
16383 # Buckets will result in a configuration error. Up to 5 cookie names can be
16384 # specified.
16385 &quot;A String&quot;,
16386 ],
16387 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
16388 &quot;A String&quot;,
16389 ],
16390 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
16391 # parameters will be excluded. Either specify `includedQueryParameters`
16392 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
16393 # encoded and not treated as delimiters.
16394 &quot;A String&quot;,
16395 ],
16396 },
16397 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
16398 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
16399 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
16400 # content. This is used to clamp the max-age (or Expires) value sent to the
16401 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
16402 # is used for the response max-age directive, along with a &quot;public&quot;
16403 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
16404 # clamps the max-age from the origin (if specified), or else sets the
16405 # response max-age directive to the lesser of the `clientTtl` and
16406 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
16407 # present. The maximum allowed value is 31,622,400s (1 year). If not
16408 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
16409 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
16410 # `USE_ORIGIN_HEADERS`.
16411 # as a count of seconds and fractions of seconds at nanosecond
16412 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
16413 # or &quot;month&quot;. Range is approximately 10,000 years.
16414 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
16415 # Durations less than one second are represented with a 0
16416 # `seconds` field and a positive `nanos` field. Must be from 0
16417 # to 999,999,999 inclusive.
16418 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
16419 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
16420 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
16421 },
16422 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
16423 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
16424 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
16425 # greater than that of `maxTtl`. When the `cacheMode` is set to
16426 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
16427 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
16428 # accessed objects may be evicted from the cache before the defined TTL. If
16429 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
16430 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
16431 # `USE_ORIGIN_HEADERS`.
16432 # as a count of seconds and fractions of seconds at nanosecond
16433 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
16434 # or &quot;month&quot;. Range is approximately 10,000 years.
16435 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
16436 # Durations less than one second are represented with a 0
16437 # `seconds` field and a positive `nanos` field. Must be from 0
16438 # to 999,999,999 inclusive.
16439 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
16440 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
16441 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
16442 },
16443 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
16444 # attempt to set a max-age or s-maxage higher than this, or an Expires header
16445 # more than `maxTtl` seconds in the future will be capped at the value of
16446 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
16447 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
16448 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
16449 # Infrequently accessed objects may be evicted from the cache before the
16450 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
16451 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
16452 # mode.
16453 # as a count of seconds and fractions of seconds at nanosecond
16454 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
16455 # or &quot;month&quot;. Range is approximately 10,000 years.
16456 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
16457 # Durations less than one second are represented with a 0
16458 # `seconds` field and a positive `nanos` field. Must be from 0
16459 # to 999,999,999 inclusive.
16460 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
16461 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
16462 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
16463 },
16464 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
16465 # to apply fine-grained caching for common errors or redirects.
16466 # This can reduce the load on your origin and improve end-user
16467 # experience by reducing response latency.
16468 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
16469 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
16470 # the specified response code that lack any Cache-Control, Expires, or
16471 # Pragma: no-cache directives. When the `cacheMode` is set to
16472 # `FORCE_CACHE_ALL`, negative caching applies to all responses
16473 # with the specified response code, and overrides any caching headers. By
16474 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
16475 #
16476 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
16477 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
16478 # * 405 (Method Not Found), 501 (Not Implemented): 60s
16479 #
16480 # These defaults can be overridden in `negativeCachingPolicy`.
16481 # If not specified, Cloud CDN applies negative caching by default.
16482 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
16483 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
16484 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
16485 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
16486 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
16487 # all response codes that you wish to cache. Cloud CDN will not apply any
16488 # default negative caching when a policy exists.
16489 { # Specify CDN TTLs for response error codes.
16490 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
16491 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
16492 # specified as values, and you cannot specify a status code more than
16493 # once.
16494 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
16495 # corresponding status code.
16496 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
16497 # objects may be evicted from the cache before the defined TTL.
16498 # as a count of seconds and fractions of seconds at nanosecond
16499 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
16500 # or &quot;month&quot;. Range is approximately 10,000 years.
16501 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
16502 # Durations less than one second are represented with a 0
16503 # `seconds` field and a positive `nanos` field. Must be from 0
16504 # to 999,999,999 inclusive.
16505 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
16506 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
16507 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
16508 },
16509 },
16510 ],
16511 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
16512 # requests into a small number of requests to the origin. If not specified,
16513 # Cloud CDN applies request coalescing by default.
16514 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
16515 # content with the origin, or when an error is encountered when refreshing
16516 # the cache.
16517 # This setting defines the default &quot;max-stale&quot; duration for any cached
16518 # responses that do not specify a max-stale directive. Stale responses that
16519 # exceed the TTL configured here will not be served. The default limit
16520 # (max-stale) is 86400s (1 day), which will allow stale content to be
16521 # served up to this limit beyond the max-age (or s-maxage) of a cached
16522 # response.
16523 # The maximum allowed value is 604800 (1 week).
16524 # Set this to zero (0) to disable serve-while-stale.
16525 # as a count of seconds and fractions of seconds at nanosecond
16526 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
16527 # or &quot;month&quot;. Range is approximately 10,000 years.
16528 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
16529 # Durations less than one second are represented with a 0
16530 # `seconds` field and a positive `nanos` field. Must be from 0
16531 # to 999,999,999 inclusive.
16532 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
16533 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
16534 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
16535 },
16536 },
16537 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
16538 # information about the W3C recommendation for cross-origin resource sharing
16539 # (CORS), see Fetch API Living
16540 # Standard.
16541 #
16542 # Not supported when the URL map is bound to a target gRPC proxy.
16543 # information about the W3C recommendation for cross-origin resource sharing
16544 # (CORS), see Fetch API Living
16545 # Standard.
16546 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
16547 # indicates that
16548 # the actual request can include user credentials. This field translates to
16549 # the Access-Control-Allow-Credentials header.
16550 #
16551 # Default is false.
16552 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
16553 # header.
16554 &quot;A String&quot;,
16555 ],
16556 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
16557 # header.
16558 &quot;A String&quot;,
16559 ],
16560 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
16561 # more information, see regular expression syntax.
16562 #
16563 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
16564 #
16565 # Regular expressions can only be used when the loadBalancingScheme is
16566 # set to INTERNAL_SELF_MANAGED.
16567 &quot;A String&quot;,
16568 ],
16569 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
16570 #
16571 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
16572 &quot;A String&quot;,
16573 ],
16574 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
16575 # The default value is false, which indicates that the CORS
16576 # policy is in effect.
16577 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
16578 # header.
16579 &quot;A String&quot;,
16580 ],
16581 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
16582 # seconds. This field translates to the Access-Control-Max-Age
16583 # header.
16584 },
16585 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
16586 # the resiliency of clients to backend service failure. As part of fault
16587 # injection, when clients send requests to a backend service, delays can be
16588 # introduced by a load balancer on a percentage of requests before sending
16589 # those requests to the backend service. Similarly requests from clients can
16590 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
16591 # that are configured with a fault_injection_policy if:
16592 # 1. The traffic is generated by fault injection AND
16593 # 2. The fault injection is not a delay fault injection.
16594 # Fault injection is not supported with the classic Application Load Balancer
16595 # . To see which load balancers support fault injection,
16596 # see Load
16597 # balancing: Routing and traffic management features.
16598 # the resiliency of clients to backend service failure. As part of fault
16599 # injection, when clients send requests to a backend service, delays can be
16600 # introduced by the load balancer on a percentage of requests before sending
16601 # those request to the backend service. Similarly requests from clients can be
16602 # aborted by the load balancer for a percentage of requests.
16603 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
16604 # injection.
16605 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
16606 #
16607 # The value must be from 200 to 599 inclusive.
16608 #
16609 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
16610 # according to this
16611 # mapping table. HTTP status 200 is mapped to gRPC status
16612 # UNKNOWN. Injecting an OK status is currently not supported by
16613 # Traffic Director.
16614 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
16615 # that is aborted as part of fault injection.
16616 #
16617 # The value must be from 0.0 to 100.0 inclusive.
16618 },
16619 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
16620 # injection, before being sent to a backend service.
16621 # request to the backend service as part of fault injection.
16622 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
16623 # as a count of seconds and fractions of seconds at nanosecond
16624 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
16625 # or &quot;month&quot;. Range is approximately 10,000 years.
16626 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
16627 # Durations less than one second are represented with a 0
16628 # `seconds` field and a positive `nanos` field. Must be from 0
16629 # to 999,999,999 inclusive.
16630 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
16631 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
16632 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
16633 },
16634 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
16635 # which a delay is introduced as part of fault injection.
16636 #
16637 # The value must be from 0.0 to 100.0 inclusive.
16638 },
16639 },
16640 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
16641 # Unlike the timeout field where the timeout duration starts
16642 # from the time the request has been fully processed (known as*end-of-stream*),
16643 # the duration in this field is computed from the beginning of the stream
16644 # until the response has been processed, including all retries. A
16645 # stream that does not complete in this duration is closed.
16646 #
16647 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
16648 # with the route.
16649 #
16650 # This field is only allowed if the Url map is used with backend services
16651 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
16652 # as a count of seconds and fractions of seconds at nanosecond
16653 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
16654 # or &quot;month&quot;. Range is approximately 10,000 years.
16655 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
16656 # Durations less than one second are represented with a 0
16657 # `seconds` field and a positive `nanos` field. Must be from 0
16658 # to 999,999,999 inclusive.
16659 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
16660 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
16661 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
16662 },
16663 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
16664 # are shadowed to a separate mirrored backend service. The load balancer does
16665 # not wait for responses from the shadow service. Before sending traffic
16666 # to the shadow service, the host / authority header is suffixed with-shadow.
16667 #
16668 # Not supported when the URL map is bound to a target gRPC proxy that
16669 # has the validateForProxyless field set to true.
16670 # are shadowed to a separate mirrored backend service. The load balancer
16671 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
16672 # to the shadow service, the host or authority header is suffixed with-shadow.
16673 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
16674 # mirrored to.
16675 #
16676 # The backend service configured for a mirroring
16677 # policy must reference backends that are of the same type as the original
16678 # backend service matched in the URL map.
16679 #
16680 # Serverless NEG backends are not currently supported as a mirrored
16681 # backend service.
16682 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
16683 },
16684 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
16685 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
16686 # If not specified, defaults to 1.
16687 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
16688 #
16689 # If not specified, will use the timeout set in theHttpRouteAction field.
16690 # If timeout in the HttpRouteAction field is not set, this field
16691 # uses the largest timeout
16692 # among all backend services associated with the route.
16693 #
16694 # Not supported when the URL map is bound to a target gRPC proxy that
16695 # has the validateForProxyless field set to true.
16696 # as a count of seconds and fractions of seconds at nanosecond
16697 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
16698 # or &quot;month&quot;. Range is approximately 10,000 years.
16699 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
16700 # Durations less than one second are represented with a 0
16701 # `seconds` field and a positive `nanos` field. Must be from 0
16702 # to 999,999,999 inclusive.
16703 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
16704 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
16705 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
16706 },
16707 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
16708 # values are:
16709 #
16710 # - 5xx: retry is attempted if the instance or endpoint
16711 # responds with any 5xx response code, or if the instance or
16712 # endpoint does not respond at all. For example, disconnects, reset, read
16713 # timeout, connection failure, and refused streams.
16714 # - gateway-error: Similar to 5xx, but only
16715 # applies to response codes 502, 503 or504.
16716 # - connect-failure: a retry is attempted on failures
16717 # connecting to the instance or endpoint. For example, connection
16718 # timeouts.
16719 # - retriable-4xx: a retry is attempted if the instance
16720 # or endpoint responds with a 4xx response code.
16721 # The only error that you can retry is error code 409.
16722 # - refused-stream: a retry is attempted if the instance
16723 # or endpoint resets the stream with a REFUSED_STREAM error
16724 # code. This reset type indicates that it is safe to retry.
16725 # - cancelled: a retry is attempted if the gRPC status
16726 # code in the response header is set to cancelled.
16727 # - deadline-exceeded: a retry is attempted if the gRPC
16728 # status code in the response header is set todeadline-exceeded.
16729 # - internal: a retry is attempted if the gRPC
16730 # status code in the response header is set tointernal.
16731 # - resource-exhausted: a retry is attempted if the gRPC
16732 # status code in the response header is set toresource-exhausted.
16733 # - unavailable: a retry is attempted if the gRPC
16734 # status code in the response header is set tounavailable.
16735 #
16736 # Only the following codes are supported when the URL map is bound to
16737 # target gRPC proxy that has validateForProxyless field set to true.
16738 #
16739 # - cancelled
16740 # - deadline-exceeded
16741 # - internal
16742 # - resource-exhausted
16743 # - unavailable
16744 &quot;A String&quot;,
16745 ],
16746 },
16747 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
16748 # time the request has been fully processed (known as *end-of-stream*)
16749 # up until the response has been processed. Timeout includes
16750 # all retries.
16751 #
16752 # If not specified, this field uses the largest timeout among all backend
16753 # services associated with the route.
16754 #
16755 # Not supported when the URL map is bound to a target gRPC proxy that
16756 # has validateForProxyless field set to true.
16757 # as a count of seconds and fractions of seconds at nanosecond
16758 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
16759 # or &quot;month&quot;. Range is approximately 10,000 years.
16760 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
16761 # Durations less than one second are represented with a 0
16762 # `seconds` field and a positive `nanos` field. Must be from 0
16763 # to 999,999,999 inclusive.
16764 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
16765 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
16766 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
16767 },
16768 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
16769 # to the matched service.
16770 #
16771 # urlRewrite is the only action supported in UrlMaps
16772 # for classic Application Load Balancers.
16773 #
16774 # Not supported when the URL map is bound to a target gRPC proxy that
16775 # has the validateForProxyless field set to true.
16776 # backend service.
16777 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
16778 # host header is replaced with contents of hostRewrite.
16779 #
16780 # The value must be from 1 to 255 characters.
16781 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
16782 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
16783 #
16784 # The value must be from 1 to 1024 characters.
16785 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
16786 # header) using the HTTP template syntax.
16787 #
16788 # A corresponding
16789 # path_template_match must be specified. Any template variables must exist in
16790 # the path_template_match field.
16791 #
16792 #
16793 # - -At least one variable must be specified in the path_template_match
16794 # field
16795 # - You can omit variables from the rewritten URL
16796 # - The * and ** operators cannot be matched
16797 # unless they have a corresponding variable name - e.g.
16798 # {format=*} or {var=**}.
16799 #
16800 # For example, a path_template_match of /static/{format=**}
16801 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
16802 # rewrite, so that /{country}/{format}/{suffix=**} can be
16803 # rewritten as /content/{format}/{country}/{suffix}.
16804 #
16805 # At least
16806 # one non-empty routeRules[].matchRules[].path_template_match is
16807 # required.
16808 #
16809 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
16810 },
16811 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
16812 # occurs. The weights determine the fraction of traffic that flows to
16813 # their corresponding backend service. If all traffic needs to
16814 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
16815 #
16816 # After a backend service is identified and before forwarding
16817 # the request to
16818 # the backend service, advanced routing actions such as URL rewrites and
16819 # header transformations are applied depending on additional settings
16820 # specified in this HttpRouteAction.
16821 { # In contrast to a single BackendService in
16822 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
16823 # multiple backend services. The volume of traffic for each
16824 # backend service is proportional to the weight specified
16825 # in each WeightedBackendService
16826 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
16827 # resource. Before
16828 # forwarding the request to backendService, the load balancer
16829 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
16830 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
16831 # effect for the selected backendService.
16832 #
16833 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
16834 #
16835 # headerAction is not supported for load balancers that have
16836 # their loadBalancingScheme set to EXTERNAL.
16837 #
16838 # Not supported when the URL map is bound to a target gRPC proxy that
16839 # has validateForProxyless field set to true.
16840 # the request is passed along to the selected backendService.
16841 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
16842 { # Specification determining how headers are added to requests or responses.
16843 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
16844 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
16845 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
16846 # that already
16847 # exist for the header. If true, headerValue is set for the
16848 # header, discarding any values that were set for that header.
16849 #
16850 # The default value is true,
16851 # unless a variable is present in headerValue,
16852 # in which case the default value is false.
16853 # .
16854 },
16855 ],
16856 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
16857 # request before forwarding the request to the backendService.
16858 &quot;A String&quot;,
16859 ],
16860 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
16861 # client.
16862 { # Specification determining how headers are added to requests or responses.
16863 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
16864 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
16865 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
16866 # that already
16867 # exist for the header. If true, headerValue is set for the
16868 # header, discarding any values that were set for that header.
16869 #
16870 # The default value is true,
16871 # unless a variable is present in headerValue,
16872 # in which case the default value is false.
16873 # .
16874 },
16875 ],
16876 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
16877 # response before sending the response back to the client.
16878 &quot;A String&quot;,
16879 ],
16880 },
16881 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
16882 # computed asweight / (sum of all weightedBackendService weights in routeAction).
16883 #
16884 # The selection of a backend service is determined only for new traffic.
16885 # Once a user&#x27;s request has been directed to a backend service,
16886 # subsequent requests are sent to the same backend service as
16887 # determined by the backend service&#x27;s session affinity policy.
16888 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
16889 # splitting. If you do, the weighted traffic splitting configuration takes
16890 # precedence.
16891 #
16892 # The value must be from 0 to 1000.
16893 },
16894 ],
16895 },
16896 &quot;defaultService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource. This
16897 # URL is used if none of the pathRules orrouteRules defined by this PathMatcher are
16898 # matched. For example, the
16899 # following are all valid URLs to a BackendService resource:
16900 #
16901 #
16902 # - https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService
16903 # - compute/v1/projects/project/global/backendServices/backendService
16904 # - global/backendServices/backendService
16905 #
16906 #
16907 # If defaultRouteAction is also specified, advanced
16908 # routing actions, such as URL rewrites, take effect before sending the
16909 # request to the backend.
16910 #
16911 #
16912 # Only one of defaultUrlRedirect, defaultService
16913 # or defaultRouteAction.weightedBackendService can be set.
16914 #
16915 #
16916 # Authorization requires one or more of the following Google IAM permissions on the
16917 # specified resource default_service:
16918 #
16919 #
16920 # - compute.backendBuckets.use
16921 # - compute.backendServices.use
16922 &quot;defaultUrlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When none of the specified pathRules orrouteRules match, the request is redirected to a URL specified
16923 # by defaultUrlRedirect.
16924 #
16925 #
16926 # Only one of defaultUrlRedirect, defaultService
16927 # or defaultRouteAction.weightedBackendService can be set.
16928 #
16929 #
16930 # Not supported when the URL map is bound to a target gRPC proxy.
16931 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
16932 # was supplied in the request.
16933 #
16934 # The value must be from 1 to 255
16935 # characters.
16936 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
16937 # set to HTTPS.
16938 # If set to false, the URL scheme of the redirected request
16939 # remains the same as that of the request.
16940 #
16941 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
16942 #
16943 # The default is set to false.
16944 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
16945 # that was supplied in the request.
16946 #
16947 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
16948 # supplied, the path of the original request is used for the redirect.
16949 #
16950 # The value must be from 1 to 1024 characters.
16951 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
16952 # the HttpRouteRuleMatch, retaining the remaining portion
16953 # of the URL before redirecting the request.
16954 #
16955 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
16956 # supplied, the path of the original request is used for the redirect.
16957 #
16958 # The value must be from 1 to 1024 characters.
16959 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
16960 #
16961 # Supported values are:
16962 #
16963 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
16964 # to 301.
16965 # - FOUND, which corresponds to 302.
16966 # - SEE_OTHER which corresponds to 303.
16967 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
16968 # method is retained.
16969 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
16970 # method is retained.
16971 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
16972 # URL is
16973 # removed before redirecting the request. If set to false, the
16974 # query portion of the original URL is retained.
16975 #
16976 # The default is set to false.
16977 },
16978 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
16979 # create the resource.
16980 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
16981 # for the selected backend service.
16982 #
16983 # HeaderAction specified here are applied after the matchingHttpRouteRule HeaderAction and before theHeaderAction in the UrlMap
16984 #
16985 # HeaderAction is not supported for load balancers
16986 # that have
16987 # their loadBalancingScheme set to EXTERNAL.
16988 #
16989 # Not supported when the URL map is bound to a target gRPC proxy that
16990 # has validateForProxyless field set to true.
16991 # the request is passed along to the selected backendService.
16992 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
16993 { # Specification determining how headers are added to requests or responses.
16994 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
16995 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
16996 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
16997 # that already
16998 # exist for the header. If true, headerValue is set for the
16999 # header, discarding any values that were set for that header.
17000 #
17001 # The default value is true,
17002 # unless a variable is present in headerValue,
17003 # in which case the default value is false.
17004 # .
17005 },
17006 ],
17007 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
17008 # request before forwarding the request to the backendService.
17009 &quot;A String&quot;,
17010 ],
17011 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
17012 # client.
17013 { # Specification determining how headers are added to requests or responses.
17014 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
17015 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
17016 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
17017 # that already
17018 # exist for the header. If true, headerValue is set for the
17019 # header, discarding any values that were set for that header.
17020 #
17021 # The default value is true,
17022 # unless a variable is present in headerValue,
17023 # in which case the default value is false.
17024 # .
17025 },
17026 ],
17027 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
17028 # response before sending the response back to the client.
17029 &quot;A String&quot;,
17030 ],
17031 },
17032 &quot;name&quot;: &quot;A String&quot;, # The name to which this PathMatcher is referred by theHostRule.
17033 &quot;pathRules&quot;: [ # The list of path rules. Use this list instead of routeRules
17034 # when routing based on simple path matching is all that&#x27;s required. A path
17035 # rule can only include a wildcard character (*) after a
17036 # forward slash character (&quot;/&quot;).
17037 #
17038 # The order by which path rules are specified does not matter.
17039 # Matches are always done on the longest-path-first basis.
17040 #
17041 # For example: a pathRule with a path /a/b/c/* will match
17042 # before /a/b/* irrespective of the order in which those paths appear in this
17043 # list.
17044 #
17045 # Within a given pathMatcher, only one ofpathRules or routeRules must be set.
17046 { # A path-matching rule for a URL. If matched, will use the specifiedBackendService to handle the traffic arriving at this URL.
17047 &quot;customErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # customErrorResponsePolicy specifies how the Load
17048 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
17049 #
17050 # If a policy for an
17051 # error code is not configured for the PathRule, a policy for
17052 # the error code configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If
17053 # one is not specified inpathMatcher.defaultCustomErrorResponsePolicy, the policy
17054 # configured in UrlMap.defaultCustomErrorResponsePolicy takes
17055 # effect.
17056 #
17057 # For example, consider a UrlMap with the following configuration:
17058 #
17059 #
17060 # - UrlMap.defaultCustomErrorResponsePolicy are configured
17061 # with policies for 5xx and 4xx errors
17062 # - A PathRule for /coming_soon/ is configured for the error
17063 # code 404.
17064 #
17065 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
17066 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
17067 # the policy in PathRule.customErrorResponsePolicy takes
17068 # effect. If any of the requests in this example encounter a 500
17069 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
17070 #
17071 # customErrorResponsePolicy is supported only for
17072 # global external Application Load Balancers.
17073 # backend service or backend bucket responds with an error.
17074 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
17075 #
17076 # In a given policy, if you specify rules for both a range of error codes
17077 # as well as rules for specific error codes then rules with specific error
17078 # codes have a higher priority. For example, assume that you configure a rule
17079 # for 401 (Un-authorized) code, and another for all 4 series
17080 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
17081 # However if the backend service returns a 403, the rule for4xx takes effect.
17082 { # Specifies the mapping between the response code that will be returned along
17083 # with the custom error content and the response code returned by the backend
17084 # service.
17085 &quot;matchResponseCodes&quot;: [ # Valid values include:
17086 #
17087 #
17088 # - A number between 400 and 599: For example
17089 # 401 or 503, in which case the load balancer
17090 # applies the policy if the error code exactly matches this value.
17091 # - 5xx: Load Balancer will apply the policy if the
17092 # backend service responds with any response code in the range of
17093 # 500 to 599.
17094 # - 4xx: Load
17095 # Balancer will apply the policy if the backend service responds with any
17096 # response code in the range of 400 to
17097 # 499.
17098 #
17099 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
17100 &quot;A String&quot;,
17101 ],
17102 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
17103 # error content. If overrideResponseCode is not supplied, the
17104 # same response code returned by the original backend bucket or backend
17105 # service is returned to the client.
17106 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
17107 #
17108 # path must start
17109 # with a leading slash. path cannot have trailing slashes.
17110 #
17111 # If the file is not available in backendBucket or the
17112 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
17113 #
17114 # The value must
17115 # be from 1 to 1024 characters
17116 },
17117 ],
17118 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
17119 # contains the custom error content. Examples are:
17120 #
17121 #
17122 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
17123 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
17124 # - global/backendBuckets/myBackendBucket
17125 #
17126 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
17127 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
17128 #
17129 # If load balancer cannot reach
17130 # the backendBucket, a simple Not Found Error will
17131 # be returned, with the original response code (oroverrideResponseCode if configured).
17132 #
17133 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
17134 },
17135 &quot;paths&quot;: [ # The list of path patterns to match. Each must start with /
17136 # and the only place a * is allowed is at the end following
17137 # a /. The string fed to the path matcher does not include
17138 # any text after the first ? or #, and
17139 # those chars are not allowed here.
17140 &quot;A String&quot;,
17141 ],
17142 &quot;routeAction&quot;: { # In response to a matching path, the load balancer
17143 # performs advanced routing actions, such as URL rewrites and header
17144 # transformations, before forwarding the request to the selected
17145 # backend.
17146 #
17147 #
17148 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
17149 #
17150 #
17151 # URL maps for classic Application Load Balancers only support
17152 # the urlRewrite action within a path rule&#x27;srouteAction.
17153 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
17154 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
17155 # property must be specified. This policy cannot be specified if any target
17156 # backend has Identity-Aware Proxy enabled.
17157 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
17158 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
17159 # header names can be specified. The cache is bypassed for all `cacheMode`
17160 # values.
17161 &quot;A String&quot;,
17162 ],
17163 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
17164 # on the backend type: for Backend Services, the complete request URI is
17165 # used; for Backend Buckets, the request URI is used without the protocol or
17166 # host, and only query parameters known to Cloud Storage are included.
17167 # Policy defined on Route Action.
17168 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
17169 # parameters will be included. Either specify `excludedQueryParameters`
17170 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
17171 # encoded and not treated as delimiters.
17172 #
17173 # Note: This field applies to routes that use backend services. Attempting
17174 # to set it on a route that points exclusively to Backend Buckets will
17175 # result in a configuration error. For routes that point to a Backend
17176 # Bucket, use `includedQueryParameters` to define which parameters should
17177 # be part of the cache key.
17178 &quot;A String&quot;,
17179 ],
17180 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
17181 #
17182 # Note: This setting is only applicable to routes that use a Backend
17183 # Service. It does not affect requests served by a Backend Bucket, as the
17184 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
17185 # it on a route that points exclusively to Backend Buckets will result in a
17186 # configuration error.
17187 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
17188 #
17189 # Note: This setting is only applicable to routes that use a Backend
17190 # Service. It does not affect requests served by a Backend Bucket, as the
17191 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
17192 # set on a route that points exclusively to Backend Buckets will result in
17193 # a configuration error.
17194 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
17195 # `includedQueryParameters` and `excludedQueryParameters`. If neither
17196 # is set, the entire query string will be included. If false, the query
17197 # string will be excluded from the cache key entirely.
17198 #
17199 # Note: This field applies to routes that use backend services. Attempting
17200 # to set it on a route that points exclusively to Backend Buckets will
17201 # result in a configuration error. For routes that point to a Backend
17202 # Bucket, use `includedQueryParameters` to define which parameters should
17203 # be part of the cache key.
17204 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
17205 # The name=value pair will be used in the cache key Cloud CDN generates.
17206 #
17207 # Note: This setting is only applicable to routes that use a Backend
17208 # Service. It does not affect requests served by a Backend Bucket.
17209 # Attempting to set it on a route that points exclusively to Backend
17210 # Buckets will result in a configuration error. Up to 5 cookie names can be
17211 # specified.
17212 &quot;A String&quot;,
17213 ],
17214 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
17215 &quot;A String&quot;,
17216 ],
17217 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
17218 # parameters will be excluded. Either specify `includedQueryParameters`
17219 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
17220 # encoded and not treated as delimiters.
17221 &quot;A String&quot;,
17222 ],
17223 },
17224 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
17225 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
17226 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
17227 # content. This is used to clamp the max-age (or Expires) value sent to the
17228 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
17229 # is used for the response max-age directive, along with a &quot;public&quot;
17230 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
17231 # clamps the max-age from the origin (if specified), or else sets the
17232 # response max-age directive to the lesser of the `clientTtl` and
17233 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
17234 # present. The maximum allowed value is 31,622,400s (1 year). If not
17235 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
17236 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
17237 # `USE_ORIGIN_HEADERS`.
17238 # as a count of seconds and fractions of seconds at nanosecond
17239 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
17240 # or &quot;month&quot;. Range is approximately 10,000 years.
17241 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
17242 # Durations less than one second are represented with a 0
17243 # `seconds` field and a positive `nanos` field. Must be from 0
17244 # to 999,999,999 inclusive.
17245 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
17246 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
17247 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
17248 },
17249 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
17250 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
17251 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
17252 # greater than that of `maxTtl`. When the `cacheMode` is set to
17253 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
17254 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
17255 # accessed objects may be evicted from the cache before the defined TTL. If
17256 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
17257 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
17258 # `USE_ORIGIN_HEADERS`.
17259 # as a count of seconds and fractions of seconds at nanosecond
17260 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
17261 # or &quot;month&quot;. Range is approximately 10,000 years.
17262 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
17263 # Durations less than one second are represented with a 0
17264 # `seconds` field and a positive `nanos` field. Must be from 0
17265 # to 999,999,999 inclusive.
17266 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
17267 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
17268 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
17269 },
17270 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
17271 # attempt to set a max-age or s-maxage higher than this, or an Expires header
17272 # more than `maxTtl` seconds in the future will be capped at the value of
17273 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
17274 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
17275 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
17276 # Infrequently accessed objects may be evicted from the cache before the
17277 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
17278 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
17279 # mode.
17280 # as a count of seconds and fractions of seconds at nanosecond
17281 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
17282 # or &quot;month&quot;. Range is approximately 10,000 years.
17283 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
17284 # Durations less than one second are represented with a 0
17285 # `seconds` field and a positive `nanos` field. Must be from 0
17286 # to 999,999,999 inclusive.
17287 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
17288 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
17289 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
17290 },
17291 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
17292 # to apply fine-grained caching for common errors or redirects.
17293 # This can reduce the load on your origin and improve end-user
17294 # experience by reducing response latency.
17295 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
17296 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
17297 # the specified response code that lack any Cache-Control, Expires, or
17298 # Pragma: no-cache directives. When the `cacheMode` is set to
17299 # `FORCE_CACHE_ALL`, negative caching applies to all responses
17300 # with the specified response code, and overrides any caching headers. By
17301 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
17302 #
17303 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
17304 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
17305 # * 405 (Method Not Found), 501 (Not Implemented): 60s
17306 #
17307 # These defaults can be overridden in `negativeCachingPolicy`.
17308 # If not specified, Cloud CDN applies negative caching by default.
17309 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
17310 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
17311 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
17312 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
17313 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
17314 # all response codes that you wish to cache. Cloud CDN will not apply any
17315 # default negative caching when a policy exists.
17316 { # Specify CDN TTLs for response error codes.
17317 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
17318 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
17319 # specified as values, and you cannot specify a status code more than
17320 # once.
17321 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
17322 # corresponding status code.
17323 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
17324 # objects may be evicted from the cache before the defined TTL.
17325 # as a count of seconds and fractions of seconds at nanosecond
17326 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
17327 # or &quot;month&quot;. Range is approximately 10,000 years.
17328 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
17329 # Durations less than one second are represented with a 0
17330 # `seconds` field and a positive `nanos` field. Must be from 0
17331 # to 999,999,999 inclusive.
17332 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
17333 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
17334 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
17335 },
17336 },
17337 ],
17338 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
17339 # requests into a small number of requests to the origin. If not specified,
17340 # Cloud CDN applies request coalescing by default.
17341 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
17342 # content with the origin, or when an error is encountered when refreshing
17343 # the cache.
17344 # This setting defines the default &quot;max-stale&quot; duration for any cached
17345 # responses that do not specify a max-stale directive. Stale responses that
17346 # exceed the TTL configured here will not be served. The default limit
17347 # (max-stale) is 86400s (1 day), which will allow stale content to be
17348 # served up to this limit beyond the max-age (or s-maxage) of a cached
17349 # response.
17350 # The maximum allowed value is 604800 (1 week).
17351 # Set this to zero (0) to disable serve-while-stale.
17352 # as a count of seconds and fractions of seconds at nanosecond
17353 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
17354 # or &quot;month&quot;. Range is approximately 10,000 years.
17355 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
17356 # Durations less than one second are represented with a 0
17357 # `seconds` field and a positive `nanos` field. Must be from 0
17358 # to 999,999,999 inclusive.
17359 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
17360 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
17361 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
17362 },
17363 },
17364 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
17365 # information about the W3C recommendation for cross-origin resource sharing
17366 # (CORS), see Fetch API Living
17367 # Standard.
17368 #
17369 # Not supported when the URL map is bound to a target gRPC proxy.
17370 # information about the W3C recommendation for cross-origin resource sharing
17371 # (CORS), see Fetch API Living
17372 # Standard.
17373 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
17374 # indicates that
17375 # the actual request can include user credentials. This field translates to
17376 # the Access-Control-Allow-Credentials header.
17377 #
17378 # Default is false.
17379 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
17380 # header.
17381 &quot;A String&quot;,
17382 ],
17383 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
17384 # header.
17385 &quot;A String&quot;,
17386 ],
17387 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
17388 # more information, see regular expression syntax.
17389 #
17390 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
17391 #
17392 # Regular expressions can only be used when the loadBalancingScheme is
17393 # set to INTERNAL_SELF_MANAGED.
17394 &quot;A String&quot;,
17395 ],
17396 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
17397 #
17398 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
17399 &quot;A String&quot;,
17400 ],
17401 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
17402 # The default value is false, which indicates that the CORS
17403 # policy is in effect.
17404 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
17405 # header.
17406 &quot;A String&quot;,
17407 ],
17408 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
17409 # seconds. This field translates to the Access-Control-Max-Age
17410 # header.
17411 },
17412 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
17413 # the resiliency of clients to backend service failure. As part of fault
17414 # injection, when clients send requests to a backend service, delays can be
17415 # introduced by a load balancer on a percentage of requests before sending
17416 # those requests to the backend service. Similarly requests from clients can
17417 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
17418 # that are configured with a fault_injection_policy if:
17419 # 1. The traffic is generated by fault injection AND
17420 # 2. The fault injection is not a delay fault injection.
17421 # Fault injection is not supported with the classic Application Load Balancer
17422 # . To see which load balancers support fault injection,
17423 # see Load
17424 # balancing: Routing and traffic management features.
17425 # the resiliency of clients to backend service failure. As part of fault
17426 # injection, when clients send requests to a backend service, delays can be
17427 # introduced by the load balancer on a percentage of requests before sending
17428 # those request to the backend service. Similarly requests from clients can be
17429 # aborted by the load balancer for a percentage of requests.
17430 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
17431 # injection.
17432 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
17433 #
17434 # The value must be from 200 to 599 inclusive.
17435 #
17436 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
17437 # according to this
17438 # mapping table. HTTP status 200 is mapped to gRPC status
17439 # UNKNOWN. Injecting an OK status is currently not supported by
17440 # Traffic Director.
17441 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
17442 # that is aborted as part of fault injection.
17443 #
17444 # The value must be from 0.0 to 100.0 inclusive.
17445 },
17446 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
17447 # injection, before being sent to a backend service.
17448 # request to the backend service as part of fault injection.
17449 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
17450 # as a count of seconds and fractions of seconds at nanosecond
17451 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
17452 # or &quot;month&quot;. Range is approximately 10,000 years.
17453 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
17454 # Durations less than one second are represented with a 0
17455 # `seconds` field and a positive `nanos` field. Must be from 0
17456 # to 999,999,999 inclusive.
17457 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
17458 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
17459 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
17460 },
17461 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
17462 # which a delay is introduced as part of fault injection.
17463 #
17464 # The value must be from 0.0 to 100.0 inclusive.
17465 },
17466 },
17467 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
17468 # Unlike the timeout field where the timeout duration starts
17469 # from the time the request has been fully processed (known as*end-of-stream*),
17470 # the duration in this field is computed from the beginning of the stream
17471 # until the response has been processed, including all retries. A
17472 # stream that does not complete in this duration is closed.
17473 #
17474 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
17475 # with the route.
17476 #
17477 # This field is only allowed if the Url map is used with backend services
17478 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
17479 # as a count of seconds and fractions of seconds at nanosecond
17480 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
17481 # or &quot;month&quot;. Range is approximately 10,000 years.
17482 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
17483 # Durations less than one second are represented with a 0
17484 # `seconds` field and a positive `nanos` field. Must be from 0
17485 # to 999,999,999 inclusive.
17486 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
17487 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
17488 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
17489 },
17490 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
17491 # are shadowed to a separate mirrored backend service. The load balancer does
17492 # not wait for responses from the shadow service. Before sending traffic
17493 # to the shadow service, the host / authority header is suffixed with-shadow.
17494 #
17495 # Not supported when the URL map is bound to a target gRPC proxy that
17496 # has the validateForProxyless field set to true.
17497 # are shadowed to a separate mirrored backend service. The load balancer
17498 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
17499 # to the shadow service, the host or authority header is suffixed with-shadow.
17500 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
17501 # mirrored to.
17502 #
17503 # The backend service configured for a mirroring
17504 # policy must reference backends that are of the same type as the original
17505 # backend service matched in the URL map.
17506 #
17507 # Serverless NEG backends are not currently supported as a mirrored
17508 # backend service.
17509 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
17510 },
17511 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
17512 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
17513 # If not specified, defaults to 1.
17514 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
17515 #
17516 # If not specified, will use the timeout set in theHttpRouteAction field.
17517 # If timeout in the HttpRouteAction field is not set, this field
17518 # uses the largest timeout
17519 # among all backend services associated with the route.
17520 #
17521 # Not supported when the URL map is bound to a target gRPC proxy that
17522 # has the validateForProxyless field set to true.
17523 # as a count of seconds and fractions of seconds at nanosecond
17524 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
17525 # or &quot;month&quot;. Range is approximately 10,000 years.
17526 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
17527 # Durations less than one second are represented with a 0
17528 # `seconds` field and a positive `nanos` field. Must be from 0
17529 # to 999,999,999 inclusive.
17530 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
17531 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
17532 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
17533 },
17534 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
17535 # values are:
17536 #
17537 # - 5xx: retry is attempted if the instance or endpoint
17538 # responds with any 5xx response code, or if the instance or
17539 # endpoint does not respond at all. For example, disconnects, reset, read
17540 # timeout, connection failure, and refused streams.
17541 # - gateway-error: Similar to 5xx, but only
17542 # applies to response codes 502, 503 or504.
17543 # - connect-failure: a retry is attempted on failures
17544 # connecting to the instance or endpoint. For example, connection
17545 # timeouts.
17546 # - retriable-4xx: a retry is attempted if the instance
17547 # or endpoint responds with a 4xx response code.
17548 # The only error that you can retry is error code 409.
17549 # - refused-stream: a retry is attempted if the instance
17550 # or endpoint resets the stream with a REFUSED_STREAM error
17551 # code. This reset type indicates that it is safe to retry.
17552 # - cancelled: a retry is attempted if the gRPC status
17553 # code in the response header is set to cancelled.
17554 # - deadline-exceeded: a retry is attempted if the gRPC
17555 # status code in the response header is set todeadline-exceeded.
17556 # - internal: a retry is attempted if the gRPC
17557 # status code in the response header is set tointernal.
17558 # - resource-exhausted: a retry is attempted if the gRPC
17559 # status code in the response header is set toresource-exhausted.
17560 # - unavailable: a retry is attempted if the gRPC
17561 # status code in the response header is set tounavailable.
17562 #
17563 # Only the following codes are supported when the URL map is bound to
17564 # target gRPC proxy that has validateForProxyless field set to true.
17565 #
17566 # - cancelled
17567 # - deadline-exceeded
17568 # - internal
17569 # - resource-exhausted
17570 # - unavailable
17571 &quot;A String&quot;,
17572 ],
17573 },
17574 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
17575 # time the request has been fully processed (known as *end-of-stream*)
17576 # up until the response has been processed. Timeout includes
17577 # all retries.
17578 #
17579 # If not specified, this field uses the largest timeout among all backend
17580 # services associated with the route.
17581 #
17582 # Not supported when the URL map is bound to a target gRPC proxy that
17583 # has validateForProxyless field set to true.
17584 # as a count of seconds and fractions of seconds at nanosecond
17585 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
17586 # or &quot;month&quot;. Range is approximately 10,000 years.
17587 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
17588 # Durations less than one second are represented with a 0
17589 # `seconds` field and a positive `nanos` field. Must be from 0
17590 # to 999,999,999 inclusive.
17591 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
17592 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
17593 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
17594 },
17595 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
17596 # to the matched service.
17597 #
17598 # urlRewrite is the only action supported in UrlMaps
17599 # for classic Application Load Balancers.
17600 #
17601 # Not supported when the URL map is bound to a target gRPC proxy that
17602 # has the validateForProxyless field set to true.
17603 # backend service.
17604 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
17605 # host header is replaced with contents of hostRewrite.
17606 #
17607 # The value must be from 1 to 255 characters.
17608 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
17609 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
17610 #
17611 # The value must be from 1 to 1024 characters.
17612 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
17613 # header) using the HTTP template syntax.
17614 #
17615 # A corresponding
17616 # path_template_match must be specified. Any template variables must exist in
17617 # the path_template_match field.
17618 #
17619 #
17620 # - -At least one variable must be specified in the path_template_match
17621 # field
17622 # - You can omit variables from the rewritten URL
17623 # - The * and ** operators cannot be matched
17624 # unless they have a corresponding variable name - e.g.
17625 # {format=*} or {var=**}.
17626 #
17627 # For example, a path_template_match of /static/{format=**}
17628 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
17629 # rewrite, so that /{country}/{format}/{suffix=**} can be
17630 # rewritten as /content/{format}/{country}/{suffix}.
17631 #
17632 # At least
17633 # one non-empty routeRules[].matchRules[].path_template_match is
17634 # required.
17635 #
17636 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
17637 },
17638 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
17639 # occurs. The weights determine the fraction of traffic that flows to
17640 # their corresponding backend service. If all traffic needs to
17641 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
17642 #
17643 # After a backend service is identified and before forwarding
17644 # the request to
17645 # the backend service, advanced routing actions such as URL rewrites and
17646 # header transformations are applied depending on additional settings
17647 # specified in this HttpRouteAction.
17648 { # In contrast to a single BackendService in
17649 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
17650 # multiple backend services. The volume of traffic for each
17651 # backend service is proportional to the weight specified
17652 # in each WeightedBackendService
17653 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
17654 # resource. Before
17655 # forwarding the request to backendService, the load balancer
17656 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
17657 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
17658 # effect for the selected backendService.
17659 #
17660 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
17661 #
17662 # headerAction is not supported for load balancers that have
17663 # their loadBalancingScheme set to EXTERNAL.
17664 #
17665 # Not supported when the URL map is bound to a target gRPC proxy that
17666 # has validateForProxyless field set to true.
17667 # the request is passed along to the selected backendService.
17668 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
17669 { # Specification determining how headers are added to requests or responses.
17670 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
17671 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
17672 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
17673 # that already
17674 # exist for the header. If true, headerValue is set for the
17675 # header, discarding any values that were set for that header.
17676 #
17677 # The default value is true,
17678 # unless a variable is present in headerValue,
17679 # in which case the default value is false.
17680 # .
17681 },
17682 ],
17683 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
17684 # request before forwarding the request to the backendService.
17685 &quot;A String&quot;,
17686 ],
17687 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
17688 # client.
17689 { # Specification determining how headers are added to requests or responses.
17690 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
17691 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
17692 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
17693 # that already
17694 # exist for the header. If true, headerValue is set for the
17695 # header, discarding any values that were set for that header.
17696 #
17697 # The default value is true,
17698 # unless a variable is present in headerValue,
17699 # in which case the default value is false.
17700 # .
17701 },
17702 ],
17703 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
17704 # response before sending the response back to the client.
17705 &quot;A String&quot;,
17706 ],
17707 },
17708 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
17709 # computed asweight / (sum of all weightedBackendService weights in routeAction).
17710 #
17711 # The selection of a backend service is determined only for new traffic.
17712 # Once a user&#x27;s request has been directed to a backend service,
17713 # subsequent requests are sent to the same backend service as
17714 # determined by the backend service&#x27;s session affinity policy.
17715 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
17716 # splitting. If you do, the weighted traffic splitting configuration takes
17717 # precedence.
17718 #
17719 # The value must be from 0 to 1000.
17720 },
17721 ],
17722 },
17723 &quot;service&quot;: &quot;A String&quot;, # The full or partial URL of the backend service resource to which traffic
17724 # is directed if this rule is matched. If routeAction is
17725 # also specified, advanced routing actions, such as URL rewrites,
17726 # take effect before sending the request to the backend.
17727 #
17728 #
17729 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
17730 &quot;urlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When a path pattern is matched, the request is redirected to a URL
17731 # specified by urlRedirect.
17732 #
17733 #
17734 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
17735 #
17736 #
17737 # Not supported when the URL map is bound to a target gRPC proxy.
17738 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
17739 # was supplied in the request.
17740 #
17741 # The value must be from 1 to 255
17742 # characters.
17743 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
17744 # set to HTTPS.
17745 # If set to false, the URL scheme of the redirected request
17746 # remains the same as that of the request.
17747 #
17748 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
17749 #
17750 # The default is set to false.
17751 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
17752 # that was supplied in the request.
17753 #
17754 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
17755 # supplied, the path of the original request is used for the redirect.
17756 #
17757 # The value must be from 1 to 1024 characters.
17758 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
17759 # the HttpRouteRuleMatch, retaining the remaining portion
17760 # of the URL before redirecting the request.
17761 #
17762 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
17763 # supplied, the path of the original request is used for the redirect.
17764 #
17765 # The value must be from 1 to 1024 characters.
17766 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
17767 #
17768 # Supported values are:
17769 #
17770 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
17771 # to 301.
17772 # - FOUND, which corresponds to 302.
17773 # - SEE_OTHER which corresponds to 303.
17774 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
17775 # method is retained.
17776 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
17777 # method is retained.
17778 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
17779 # URL is
17780 # removed before redirecting the request. If set to false, the
17781 # query portion of the original URL is retained.
17782 #
17783 # The default is set to false.
17784 },
17785 },
17786 ],
17787 &quot;routeRules&quot;: [ # The list of HTTP route rules. Use this list instead ofpathRules when advanced route matching and routing actions are
17788 # desired. routeRules are evaluated in order of priority, from
17789 # the lowest to highest number.
17790 #
17791 # Within a given pathMatcher, you can set only one ofpathRules or routeRules.
17792 { # The HttpRouteRule setting specifies how to match an HTTP request
17793 # and the corresponding routing action that load balancing proxies perform.
17794 &quot;customErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # customErrorResponsePolicy specifies how the Load
17795 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
17796 #
17797 # If a policy for an
17798 # error code is not configured for the RouteRule, a policy for
17799 # the error code configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If
17800 # one is not specified inpathMatcher.defaultCustomErrorResponsePolicy, the policy
17801 # configured in UrlMap.defaultCustomErrorResponsePolicy takes
17802 # effect.
17803 #
17804 # For example, consider a UrlMap with the following configuration:
17805 #
17806 #
17807 # - UrlMap.defaultCustomErrorResponsePolicy are configured
17808 # with policies for 5xx and 4xx errors
17809 # - A RouteRule for /coming_soon/ is configured for the
17810 # error code 404.
17811 #
17812 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
17813 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
17814 # the policy in RouteRule.customErrorResponsePolicy takes
17815 # effect. If any of the requests in this example encounter a 500
17816 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
17817 #
17818 # When
17819 # used in conjunction withrouteRules.routeAction.retryPolicy, retries take
17820 # precedence. Only once all retries are exhausted, thecustomErrorResponsePolicy is applied. While attempting
17821 # a retry, if load balancer is successful in reaching the
17822 # service, the customErrorResponsePolicy is ignored and
17823 # the response from the service is returned to the client.
17824 #
17825 # customErrorResponsePolicy is supported only for
17826 # global external Application Load Balancers.
17827 # backend service or backend bucket responds with an error.
17828 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
17829 #
17830 # In a given policy, if you specify rules for both a range of error codes
17831 # as well as rules for specific error codes then rules with specific error
17832 # codes have a higher priority. For example, assume that you configure a rule
17833 # for 401 (Un-authorized) code, and another for all 4 series
17834 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
17835 # However if the backend service returns a 403, the rule for4xx takes effect.
17836 { # Specifies the mapping between the response code that will be returned along
17837 # with the custom error content and the response code returned by the backend
17838 # service.
17839 &quot;matchResponseCodes&quot;: [ # Valid values include:
17840 #
17841 #
17842 # - A number between 400 and 599: For example
17843 # 401 or 503, in which case the load balancer
17844 # applies the policy if the error code exactly matches this value.
17845 # - 5xx: Load Balancer will apply the policy if the
17846 # backend service responds with any response code in the range of
17847 # 500 to 599.
17848 # - 4xx: Load
17849 # Balancer will apply the policy if the backend service responds with any
17850 # response code in the range of 400 to
17851 # 499.
17852 #
17853 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
17854 &quot;A String&quot;,
17855 ],
17856 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
17857 # error content. If overrideResponseCode is not supplied, the
17858 # same response code returned by the original backend bucket or backend
17859 # service is returned to the client.
17860 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
17861 #
17862 # path must start
17863 # with a leading slash. path cannot have trailing slashes.
17864 #
17865 # If the file is not available in backendBucket or the
17866 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
17867 #
17868 # The value must
17869 # be from 1 to 1024 characters
17870 },
17871 ],
17872 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
17873 # contains the custom error content. Examples are:
17874 #
17875 #
17876 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
17877 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
17878 # - global/backendBuckets/myBackendBucket
17879 #
17880 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
17881 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
17882 #
17883 # If load balancer cannot reach
17884 # the backendBucket, a simple Not Found Error will
17885 # be returned, with the original response code (oroverrideResponseCode if configured).
17886 #
17887 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
17888 },
17889 &quot;description&quot;: &quot;A String&quot;, # The short description conveying the intent of this routeRule.
17890 #
17891 #
17892 # The description can have a maximum length of 1024 characters.
17893 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
17894 # for the selected backendService.
17895 #
17896 # The headerAction value specified here is applied before the
17897 # matching pathMatchers[].headerAction and afterpathMatchers[].routeRules[].routeAction.weightedBackendService.backendServiceWeightAction[].headerAction
17898 #
17899 # HeaderAction is not supported for load balancers
17900 # that have
17901 # their loadBalancingScheme set to EXTERNAL.
17902 #
17903 # Not supported when the URL map is bound to a target gRPC proxy that
17904 # has validateForProxyless field set to true.
17905 # the request is passed along to the selected backendService.
17906 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
17907 { # Specification determining how headers are added to requests or responses.
17908 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
17909 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
17910 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
17911 # that already
17912 # exist for the header. If true, headerValue is set for the
17913 # header, discarding any values that were set for that header.
17914 #
17915 # The default value is true,
17916 # unless a variable is present in headerValue,
17917 # in which case the default value is false.
17918 # .
17919 },
17920 ],
17921 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
17922 # request before forwarding the request to the backendService.
17923 &quot;A String&quot;,
17924 ],
17925 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
17926 # client.
17927 { # Specification determining how headers are added to requests or responses.
17928 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
17929 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
17930 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
17931 # that already
17932 # exist for the header. If true, headerValue is set for the
17933 # header, discarding any values that were set for that header.
17934 #
17935 # The default value is true,
17936 # unless a variable is present in headerValue,
17937 # in which case the default value is false.
17938 # .
17939 },
17940 ],
17941 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
17942 # response before sending the response back to the client.
17943 &quot;A String&quot;,
17944 ],
17945 },
17946 &quot;matchRules&quot;: [ # The list of criteria for matching attributes of a request to thisrouteRule. This list has OR semantics: the request matches
17947 # this routeRule when any of thematchRules are satisfied. However predicates within
17948 # a given matchRule have AND semantics. All predicates
17949 # within a matchRule must match for the request to
17950 # match the rule.
17951 { # HttpRouteRuleMatch specifies a set of criteria for matching
17952 # requests to an HttpRouteRule. All specified criteria must
17953 # be satisfied for a match to occur.
17954 &quot;fullPathMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the path of the
17955 # request must exactly match the value specified infullPathMatch after removing any query parameters and anchor
17956 # that may be part of the original URL.
17957 #
17958 # fullPathMatch must be from 1 to 1024 characters.
17959 #
17960 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be
17961 # specified.
17962 &quot;headerMatches&quot;: [ # Specifies a list of header match criteria, all of which must match
17963 # corresponding headers in the request.
17964 { # matchRule criteria for request header matches.
17965 &quot;exactMatch&quot;: &quot;A String&quot;, # The value should exactly match contents of exactMatch.
17966 #
17967 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
17968 &quot;headerName&quot;: &quot;A String&quot;, # The name of the HTTP header to match.
17969 #
17970 # For matching against the HTTP request&#x27;s authority, use a headerMatch
17971 # with the header name &quot;:authority&quot;.
17972 #
17973 # For matching a request&#x27;s method, use the headerName &quot;:method&quot;.
17974 #
17975 # When the URL map is bound to a target gRPC proxy that has
17976 # the validateForProxyless field set to true, only
17977 # non-binary
17978 # user-specified custom metadata and the `content-type` header are supported.
17979 # The following transport-level headers cannot be used in header matching
17980 # rules:
17981 # `:authority`, `:method`, `:path`, `:scheme`, `user-agent`,
17982 # `accept-encoding`, `content-encoding`, `grpc-accept-encoding`,
17983 # `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags-bin`,
17984 # `grpc-timeout` and `grpc-trace-bin`.
17985 &quot;invertMatch&quot;: True or False, # If set to false, the headerMatch is considered a
17986 # match if the preceding match criteria are met. If set to true,
17987 # the headerMatch is considered a match if the preceding
17988 # match criteria are NOT met.
17989 #
17990 # The default setting is false.
17991 &quot;prefixMatch&quot;: &quot;A String&quot;, # The value of the header must start with the contents ofprefixMatch.
17992 #
17993 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
17994 &quot;presentMatch&quot;: True or False, # A header with the contents of headerName must exist. The
17995 # match takes place whether or not the request&#x27;s header has a value.
17996 #
17997 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
17998 &quot;rangeMatch&quot;: { # HttpRouteRuleMatch criteria for field values that must stay # The header value must be an integer and its value must be in the range
17999 # specified in rangeMatch. If the header does not contain an
18000 # integer, number or is empty, the match fails.
18001 #
18002 # For example for a range [-5, 0]
18003 #
18004 #
18005 # - -3 will match.
18006 # - 0 will not match.
18007 # - 0.25 will not match.
18008 # - -3someString will not match.
18009 #
18010 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
18011 #
18012 # rangeMatch is not supported for load balancers
18013 # that have loadBalancingScheme set to EXTERNAL.
18014 # within the specified integer range.
18015 &quot;rangeEnd&quot;: &quot;A String&quot;, # The end of the range (exclusive) in signed long integer format.
18016 &quot;rangeStart&quot;: &quot;A String&quot;, # The start of the range (inclusive) in signed long integer format.
18017 },
18018 &quot;regexMatch&quot;: &quot;A String&quot;, # The value of the header must match the regular expression specified inregexMatch.
18019 # For more information about regular expression syntax, see Syntax.
18020 #
18021 # For matching against a port specified in the HTTP request, use a
18022 # headerMatch with headerName set to PORT and a regular expression that
18023 # satisfies the RFC2616 Host header&#x27;s port specifier.
18024 #
18025 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
18026 #
18027 # Regular expressions can only be used when the loadBalancingScheme is
18028 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
18029 # (regional scope) or INTERNAL_MANAGED.
18030 &quot;suffixMatch&quot;: &quot;A String&quot;, # The value of the header must end with the contents ofsuffixMatch.
18031 #
18032 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
18033 },
18034 ],
18035 &quot;ignoreCase&quot;: True or False, # Specifies that prefixMatch and fullPathMatch
18036 # matches are case sensitive.
18037 #
18038 # The default value is false.
18039 #
18040 # ignoreCase must not be used with regexMatch.
18041 #
18042 # Not supported when the URL map is bound to a target gRPC proxy.
18043 &quot;metadataFilters&quot;: [ # Opaque filter criteria used by the load balancer to restrict routing
18044 # configuration to a limited set of xDS
18045 # compliant clients. In their xDS requests to the load balancer, xDS clients
18046 # present node
18047 # metadata. When there is a match, the relevant routing configuration
18048 # is made available to those proxies.
18049 #
18050 # For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least one of thefilterLabels must match the corresponding label provided in
18051 # the metadata. If its filterMatchCriteria is set to
18052 # MATCH_ALL, then all of its filterLabels must match with
18053 # corresponding labels provided in the metadata. If multiple
18054 # metadata filters are specified, all of them need to be
18055 # satisfied in order to be considered a match.
18056 #
18057 # metadataFilters specified here is applied after those
18058 # specified in ForwardingRule that refers to theUrlMap this HttpRouteRuleMatch belongs to.
18059 #
18060 # metadataFilters only applies to load balancers that haveloadBalancingScheme set toINTERNAL_SELF_MANAGED.
18061 #
18062 # Not supported when the URL map is bound to a target gRPC proxy that
18063 # has validateForProxyless field set to true.
18064 { # Opaque filter criteria used by load balancers to restrict routing
18065 # configuration to a limited set of load balancing proxies. Proxies and
18066 # sidecars involved in load balancing would typically present metadata to the
18067 # load balancers that need to match criteria specified here. If a match takes
18068 # place, the relevant configuration is made available to those
18069 # proxies.
18070 #
18071 # For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least
18072 # one of thefilterLabels must match the corresponding label provided in
18073 # the metadata. If its filterMatchCriteria is set to
18074 # MATCH_ALL, then all of its filterLabels must match with
18075 # corresponding labels provided in the metadata.
18076 #
18077 # An example for using metadataFilters would be: if
18078 # load balancing involves
18079 # Envoys, they receive routing configuration when values inmetadataFilters match values supplied in of their XDS requests to loadbalancers.
18080 &quot;filterLabels&quot;: [ # The list of label value pairs that must match labels in the provided
18081 # metadata based on filterMatchCriteria
18082 #
18083 # This list must not be empty and can have at the most 64 entries.
18084 { # MetadataFilter label name value pairs that are expected
18085 # to match corresponding labels presented as metadata to the load balancer.
18086 &quot;name&quot;: &quot;A String&quot;, # Name of metadata label.
18087 #
18088 # The name can have a maximum length of 1024 characters and must be at
18089 # least 1 character long.
18090 &quot;value&quot;: &quot;A String&quot;, # The value of the label must match the specified value.
18091 #
18092 # value can have a maximum length of 1024 characters.
18093 },
18094 ],
18095 &quot;filterMatchCriteria&quot;: &quot;A String&quot;, # Specifies how individual filter label matches
18096 # within the list of filterLabels and contributes toward the
18097 # overall metadataFilter match.
18098 #
18099 # Supported values are:
18100 #
18101 # - MATCH_ANY: at least one of the filterLabels
18102 # must have a matching label in the provided metadata.
18103 # - MATCH_ALL: all filterLabels must have
18104 # matching labels in the provided metadata.
18105 },
18106 ],
18107 &quot;pathTemplateMatch&quot;: &quot;A String&quot;, # If specified, this field defines a path template pattern that must match
18108 # the :path header after the query string is removed.
18109 #
18110 # A path template pattern can include variables and wildcards.
18111 # Variables are enclosed in curly braces, for example{variable_name}. Wildcards include * that
18112 # matches a single path segment, and ** that matches zero or
18113 # more path segments. The pattern must follow these rules:
18114 #
18115 #
18116 # - The value must be between 1 and 1024 characters.
18117 # - The pattern must start with a leading slash (&quot;/&quot;).
18118 # - No more than 5 operators (variables or wildcards) may appear in
18119 # the pattern.
18120 #
18121 # Precisely one ofprefixMatch, fullPathMatch,regexMatch, or pathTemplateMatch must be
18122 # set.
18123 &quot;prefixMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the request&#x27;s
18124 # path must begin with the specified prefixMatch.prefixMatch must begin with a /.
18125 #
18126 # The value must be from 1 to 1024 characters.
18127 #
18128 # The * character inside a prefix match is
18129 # treated as a literal character, not as a wildcard.
18130 #
18131 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match can be
18132 # used within a matchRule.
18133 &quot;queryParameterMatches&quot;: [ # Specifies a list of query parameter match criteria, all of which must
18134 # match corresponding query parameters in the request.
18135 #
18136 # Not supported when the URL map is bound to a target gRPC proxy.
18137 { # HttpRouteRuleMatch criteria for a request&#x27;s query parameter.
18138 &quot;exactMatch&quot;: &quot;A String&quot;, # The queryParameterMatch matches if the value of the
18139 # parameter exactly matches the contents of exactMatch.
18140 #
18141 # Only one of presentMatch, exactMatch, orregexMatch must be set.
18142 &quot;name&quot;: &quot;A String&quot;, # The name of the query parameter to match. The query parameter must exist in
18143 # the request, in the absence of which the request match fails.
18144 &quot;presentMatch&quot;: True or False, # Specifies that the queryParameterMatch matches if the
18145 # request contains the query parameter, irrespective of whether the
18146 # parameter has a value or not.
18147 #
18148 # Only one of presentMatch, exactMatch, orregexMatch must be set.
18149 &quot;regexMatch&quot;: &quot;A String&quot;, # The queryParameterMatch matches if the value of the
18150 # parameter matches the regular expression specified byregexMatch. For
18151 # more information about regular expression syntax, see Syntax.
18152 #
18153 # Only one of presentMatch, exactMatch, orregexMatch must be set.
18154 #
18155 # Regular expressions can only be used when the loadBalancingScheme is
18156 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
18157 # (regional scope) or INTERNAL_MANAGED.
18158 },
18159 ],
18160 &quot;regexMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the path of the
18161 # request must satisfy the regular expression specified inregexMatch after removing any query parameters and anchor
18162 # supplied with the original URL. For
18163 # more information about regular expression syntax, see Syntax.
18164 #
18165 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be
18166 # specified.
18167 #
18168 # Regular expressions can only be used when the loadBalancingScheme is
18169 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
18170 # (regional scope) or INTERNAL_MANAGED.
18171 },
18172 ],
18173 &quot;priority&quot;: 42, # For routeRules within a given pathMatcher,
18174 # priority determines the order in which a load balancer interpretsrouteRules. RouteRules are evaluated in order
18175 # of priority, from the lowest to highest number. The priority of a
18176 # rule decreases as its number increases (1, 2, 3, N+1). The first rule
18177 # that matches the request is applied.
18178 #
18179 #
18180 # You cannot configure two or more routeRules with the same priority.
18181 # Priority for each rule must be set to a number from 0 to 2147483647
18182 # inclusive.
18183 #
18184 #
18185 # Priority numbers can have gaps, which enable you to add or remove rules
18186 # in the future without affecting the rest of the rules. For example, 1, 2,
18187 # 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you
18188 # could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future
18189 # without any impact on existing rules.
18190 &quot;routeAction&quot;: { # In response to a matching matchRule, the load balancer
18191 # performs advanced routing actions, such as URL rewrites and header
18192 # transformations, before forwarding the request to the selected backend.
18193 #
18194 #
18195 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
18196 #
18197 #
18198 # URL maps for classic Application Load Balancers only support
18199 # the urlRewrite action within a route rule&#x27;srouteAction.
18200 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
18201 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
18202 # property must be specified. This policy cannot be specified if any target
18203 # backend has Identity-Aware Proxy enabled.
18204 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
18205 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
18206 # header names can be specified. The cache is bypassed for all `cacheMode`
18207 # values.
18208 &quot;A String&quot;,
18209 ],
18210 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
18211 # on the backend type: for Backend Services, the complete request URI is
18212 # used; for Backend Buckets, the request URI is used without the protocol or
18213 # host, and only query parameters known to Cloud Storage are included.
18214 # Policy defined on Route Action.
18215 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
18216 # parameters will be included. Either specify `excludedQueryParameters`
18217 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
18218 # encoded and not treated as delimiters.
18219 #
18220 # Note: This field applies to routes that use backend services. Attempting
18221 # to set it on a route that points exclusively to Backend Buckets will
18222 # result in a configuration error. For routes that point to a Backend
18223 # Bucket, use `includedQueryParameters` to define which parameters should
18224 # be part of the cache key.
18225 &quot;A String&quot;,
18226 ],
18227 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
18228 #
18229 # Note: This setting is only applicable to routes that use a Backend
18230 # Service. It does not affect requests served by a Backend Bucket, as the
18231 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
18232 # it on a route that points exclusively to Backend Buckets will result in a
18233 # configuration error.
18234 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
18235 #
18236 # Note: This setting is only applicable to routes that use a Backend
18237 # Service. It does not affect requests served by a Backend Bucket, as the
18238 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
18239 # set on a route that points exclusively to Backend Buckets will result in
18240 # a configuration error.
18241 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
18242 # `includedQueryParameters` and `excludedQueryParameters`. If neither
18243 # is set, the entire query string will be included. If false, the query
18244 # string will be excluded from the cache key entirely.
18245 #
18246 # Note: This field applies to routes that use backend services. Attempting
18247 # to set it on a route that points exclusively to Backend Buckets will
18248 # result in a configuration error. For routes that point to a Backend
18249 # Bucket, use `includedQueryParameters` to define which parameters should
18250 # be part of the cache key.
18251 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
18252 # The name=value pair will be used in the cache key Cloud CDN generates.
18253 #
18254 # Note: This setting is only applicable to routes that use a Backend
18255 # Service. It does not affect requests served by a Backend Bucket.
18256 # Attempting to set it on a route that points exclusively to Backend
18257 # Buckets will result in a configuration error. Up to 5 cookie names can be
18258 # specified.
18259 &quot;A String&quot;,
18260 ],
18261 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
18262 &quot;A String&quot;,
18263 ],
18264 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
18265 # parameters will be excluded. Either specify `includedQueryParameters`
18266 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
18267 # encoded and not treated as delimiters.
18268 &quot;A String&quot;,
18269 ],
18270 },
18271 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
18272 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
18273 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
18274 # content. This is used to clamp the max-age (or Expires) value sent to the
18275 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
18276 # is used for the response max-age directive, along with a &quot;public&quot;
18277 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
18278 # clamps the max-age from the origin (if specified), or else sets the
18279 # response max-age directive to the lesser of the `clientTtl` and
18280 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
18281 # present. The maximum allowed value is 31,622,400s (1 year). If not
18282 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
18283 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
18284 # `USE_ORIGIN_HEADERS`.
18285 # as a count of seconds and fractions of seconds at nanosecond
18286 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
18287 # or &quot;month&quot;. Range is approximately 10,000 years.
18288 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
18289 # Durations less than one second are represented with a 0
18290 # `seconds` field and a positive `nanos` field. Must be from 0
18291 # to 999,999,999 inclusive.
18292 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
18293 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
18294 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
18295 },
18296 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
18297 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
18298 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
18299 # greater than that of `maxTtl`. When the `cacheMode` is set to
18300 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
18301 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
18302 # accessed objects may be evicted from the cache before the defined TTL. If
18303 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
18304 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
18305 # `USE_ORIGIN_HEADERS`.
18306 # as a count of seconds and fractions of seconds at nanosecond
18307 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
18308 # or &quot;month&quot;. Range is approximately 10,000 years.
18309 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
18310 # Durations less than one second are represented with a 0
18311 # `seconds` field and a positive `nanos` field. Must be from 0
18312 # to 999,999,999 inclusive.
18313 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
18314 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
18315 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
18316 },
18317 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
18318 # attempt to set a max-age or s-maxage higher than this, or an Expires header
18319 # more than `maxTtl` seconds in the future will be capped at the value of
18320 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
18321 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
18322 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
18323 # Infrequently accessed objects may be evicted from the cache before the
18324 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
18325 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
18326 # mode.
18327 # as a count of seconds and fractions of seconds at nanosecond
18328 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
18329 # or &quot;month&quot;. Range is approximately 10,000 years.
18330 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
18331 # Durations less than one second are represented with a 0
18332 # `seconds` field and a positive `nanos` field. Must be from 0
18333 # to 999,999,999 inclusive.
18334 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
18335 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
18336 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
18337 },
18338 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
18339 # to apply fine-grained caching for common errors or redirects.
18340 # This can reduce the load on your origin and improve end-user
18341 # experience by reducing response latency.
18342 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
18343 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
18344 # the specified response code that lack any Cache-Control, Expires, or
18345 # Pragma: no-cache directives. When the `cacheMode` is set to
18346 # `FORCE_CACHE_ALL`, negative caching applies to all responses
18347 # with the specified response code, and overrides any caching headers. By
18348 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
18349 #
18350 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
18351 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
18352 # * 405 (Method Not Found), 501 (Not Implemented): 60s
18353 #
18354 # These defaults can be overridden in `negativeCachingPolicy`.
18355 # If not specified, Cloud CDN applies negative caching by default.
18356 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
18357 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
18358 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
18359 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
18360 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
18361 # all response codes that you wish to cache. Cloud CDN will not apply any
18362 # default negative caching when a policy exists.
18363 { # Specify CDN TTLs for response error codes.
18364 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
18365 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
18366 # specified as values, and you cannot specify a status code more than
18367 # once.
18368 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
18369 # corresponding status code.
18370 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
18371 # objects may be evicted from the cache before the defined TTL.
18372 # as a count of seconds and fractions of seconds at nanosecond
18373 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
18374 # or &quot;month&quot;. Range is approximately 10,000 years.
18375 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
18376 # Durations less than one second are represented with a 0
18377 # `seconds` field and a positive `nanos` field. Must be from 0
18378 # to 999,999,999 inclusive.
18379 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
18380 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
18381 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
18382 },
18383 },
18384 ],
18385 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
18386 # requests into a small number of requests to the origin. If not specified,
18387 # Cloud CDN applies request coalescing by default.
18388 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
18389 # content with the origin, or when an error is encountered when refreshing
18390 # the cache.
18391 # This setting defines the default &quot;max-stale&quot; duration for any cached
18392 # responses that do not specify a max-stale directive. Stale responses that
18393 # exceed the TTL configured here will not be served. The default limit
18394 # (max-stale) is 86400s (1 day), which will allow stale content to be
18395 # served up to this limit beyond the max-age (or s-maxage) of a cached
18396 # response.
18397 # The maximum allowed value is 604800 (1 week).
18398 # Set this to zero (0) to disable serve-while-stale.
18399 # as a count of seconds and fractions of seconds at nanosecond
18400 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
18401 # or &quot;month&quot;. Range is approximately 10,000 years.
18402 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
18403 # Durations less than one second are represented with a 0
18404 # `seconds` field and a positive `nanos` field. Must be from 0
18405 # to 999,999,999 inclusive.
18406 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
18407 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
18408 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
18409 },
18410 },
18411 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
18412 # information about the W3C recommendation for cross-origin resource sharing
18413 # (CORS), see Fetch API Living
18414 # Standard.
18415 #
18416 # Not supported when the URL map is bound to a target gRPC proxy.
18417 # information about the W3C recommendation for cross-origin resource sharing
18418 # (CORS), see Fetch API Living
18419 # Standard.
18420 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
18421 # indicates that
18422 # the actual request can include user credentials. This field translates to
18423 # the Access-Control-Allow-Credentials header.
18424 #
18425 # Default is false.
18426 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
18427 # header.
18428 &quot;A String&quot;,
18429 ],
18430 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
18431 # header.
18432 &quot;A String&quot;,
18433 ],
18434 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
18435 # more information, see regular expression syntax.
18436 #
18437 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
18438 #
18439 # Regular expressions can only be used when the loadBalancingScheme is
18440 # set to INTERNAL_SELF_MANAGED.
18441 &quot;A String&quot;,
18442 ],
18443 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
18444 #
18445 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
18446 &quot;A String&quot;,
18447 ],
18448 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
18449 # The default value is false, which indicates that the CORS
18450 # policy is in effect.
18451 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
18452 # header.
18453 &quot;A String&quot;,
18454 ],
18455 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
18456 # seconds. This field translates to the Access-Control-Max-Age
18457 # header.
18458 },
18459 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
18460 # the resiliency of clients to backend service failure. As part of fault
18461 # injection, when clients send requests to a backend service, delays can be
18462 # introduced by a load balancer on a percentage of requests before sending
18463 # those requests to the backend service. Similarly requests from clients can
18464 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
18465 # that are configured with a fault_injection_policy if:
18466 # 1. The traffic is generated by fault injection AND
18467 # 2. The fault injection is not a delay fault injection.
18468 # Fault injection is not supported with the classic Application Load Balancer
18469 # . To see which load balancers support fault injection,
18470 # see Load
18471 # balancing: Routing and traffic management features.
18472 # the resiliency of clients to backend service failure. As part of fault
18473 # injection, when clients send requests to a backend service, delays can be
18474 # introduced by the load balancer on a percentage of requests before sending
18475 # those request to the backend service. Similarly requests from clients can be
18476 # aborted by the load balancer for a percentage of requests.
18477 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
18478 # injection.
18479 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
18480 #
18481 # The value must be from 200 to 599 inclusive.
18482 #
18483 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
18484 # according to this
18485 # mapping table. HTTP status 200 is mapped to gRPC status
18486 # UNKNOWN. Injecting an OK status is currently not supported by
18487 # Traffic Director.
18488 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
18489 # that is aborted as part of fault injection.
18490 #
18491 # The value must be from 0.0 to 100.0 inclusive.
18492 },
18493 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
18494 # injection, before being sent to a backend service.
18495 # request to the backend service as part of fault injection.
18496 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
18497 # as a count of seconds and fractions of seconds at nanosecond
18498 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
18499 # or &quot;month&quot;. Range is approximately 10,000 years.
18500 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
18501 # Durations less than one second are represented with a 0
18502 # `seconds` field and a positive `nanos` field. Must be from 0
18503 # to 999,999,999 inclusive.
18504 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
18505 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
18506 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
18507 },
18508 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
18509 # which a delay is introduced as part of fault injection.
18510 #
18511 # The value must be from 0.0 to 100.0 inclusive.
18512 },
18513 },
18514 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
18515 # Unlike the timeout field where the timeout duration starts
18516 # from the time the request has been fully processed (known as*end-of-stream*),
18517 # the duration in this field is computed from the beginning of the stream
18518 # until the response has been processed, including all retries. A
18519 # stream that does not complete in this duration is closed.
18520 #
18521 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
18522 # with the route.
18523 #
18524 # This field is only allowed if the Url map is used with backend services
18525 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
18526 # as a count of seconds and fractions of seconds at nanosecond
18527 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
18528 # or &quot;month&quot;. Range is approximately 10,000 years.
18529 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
18530 # Durations less than one second are represented with a 0
18531 # `seconds` field and a positive `nanos` field. Must be from 0
18532 # to 999,999,999 inclusive.
18533 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
18534 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
18535 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
18536 },
18537 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
18538 # are shadowed to a separate mirrored backend service. The load balancer does
18539 # not wait for responses from the shadow service. Before sending traffic
18540 # to the shadow service, the host / authority header is suffixed with-shadow.
18541 #
18542 # Not supported when the URL map is bound to a target gRPC proxy that
18543 # has the validateForProxyless field set to true.
18544 # are shadowed to a separate mirrored backend service. The load balancer
18545 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
18546 # to the shadow service, the host or authority header is suffixed with-shadow.
18547 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
18548 # mirrored to.
18549 #
18550 # The backend service configured for a mirroring
18551 # policy must reference backends that are of the same type as the original
18552 # backend service matched in the URL map.
18553 #
18554 # Serverless NEG backends are not currently supported as a mirrored
18555 # backend service.
18556 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
18557 },
18558 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
18559 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
18560 # If not specified, defaults to 1.
18561 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
18562 #
18563 # If not specified, will use the timeout set in theHttpRouteAction field.
18564 # If timeout in the HttpRouteAction field is not set, this field
18565 # uses the largest timeout
18566 # among all backend services associated with the route.
18567 #
18568 # Not supported when the URL map is bound to a target gRPC proxy that
18569 # has the validateForProxyless field set to true.
18570 # as a count of seconds and fractions of seconds at nanosecond
18571 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
18572 # or &quot;month&quot;. Range is approximately 10,000 years.
18573 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
18574 # Durations less than one second are represented with a 0
18575 # `seconds` field and a positive `nanos` field. Must be from 0
18576 # to 999,999,999 inclusive.
18577 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
18578 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
18579 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
18580 },
18581 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
18582 # values are:
18583 #
18584 # - 5xx: retry is attempted if the instance or endpoint
18585 # responds with any 5xx response code, or if the instance or
18586 # endpoint does not respond at all. For example, disconnects, reset, read
18587 # timeout, connection failure, and refused streams.
18588 # - gateway-error: Similar to 5xx, but only
18589 # applies to response codes 502, 503 or504.
18590 # - connect-failure: a retry is attempted on failures
18591 # connecting to the instance or endpoint. For example, connection
18592 # timeouts.
18593 # - retriable-4xx: a retry is attempted if the instance
18594 # or endpoint responds with a 4xx response code.
18595 # The only error that you can retry is error code 409.
18596 # - refused-stream: a retry is attempted if the instance
18597 # or endpoint resets the stream with a REFUSED_STREAM error
18598 # code. This reset type indicates that it is safe to retry.
18599 # - cancelled: a retry is attempted if the gRPC status
18600 # code in the response header is set to cancelled.
18601 # - deadline-exceeded: a retry is attempted if the gRPC
18602 # status code in the response header is set todeadline-exceeded.
18603 # - internal: a retry is attempted if the gRPC
18604 # status code in the response header is set tointernal.
18605 # - resource-exhausted: a retry is attempted if the gRPC
18606 # status code in the response header is set toresource-exhausted.
18607 # - unavailable: a retry is attempted if the gRPC
18608 # status code in the response header is set tounavailable.
18609 #
18610 # Only the following codes are supported when the URL map is bound to
18611 # target gRPC proxy that has validateForProxyless field set to true.
18612 #
18613 # - cancelled
18614 # - deadline-exceeded
18615 # - internal
18616 # - resource-exhausted
18617 # - unavailable
18618 &quot;A String&quot;,
18619 ],
18620 },
18621 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
18622 # time the request has been fully processed (known as *end-of-stream*)
18623 # up until the response has been processed. Timeout includes
18624 # all retries.
18625 #
18626 # If not specified, this field uses the largest timeout among all backend
18627 # services associated with the route.
18628 #
18629 # Not supported when the URL map is bound to a target gRPC proxy that
18630 # has validateForProxyless field set to true.
18631 # as a count of seconds and fractions of seconds at nanosecond
18632 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
18633 # or &quot;month&quot;. Range is approximately 10,000 years.
18634 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
18635 # Durations less than one second are represented with a 0
18636 # `seconds` field and a positive `nanos` field. Must be from 0
18637 # to 999,999,999 inclusive.
18638 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
18639 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
18640 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
18641 },
18642 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
18643 # to the matched service.
18644 #
18645 # urlRewrite is the only action supported in UrlMaps
18646 # for classic Application Load Balancers.
18647 #
18648 # Not supported when the URL map is bound to a target gRPC proxy that
18649 # has the validateForProxyless field set to true.
18650 # backend service.
18651 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
18652 # host header is replaced with contents of hostRewrite.
18653 #
18654 # The value must be from 1 to 255 characters.
18655 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
18656 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
18657 #
18658 # The value must be from 1 to 1024 characters.
18659 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
18660 # header) using the HTTP template syntax.
18661 #
18662 # A corresponding
18663 # path_template_match must be specified. Any template variables must exist in
18664 # the path_template_match field.
18665 #
18666 #
18667 # - -At least one variable must be specified in the path_template_match
18668 # field
18669 # - You can omit variables from the rewritten URL
18670 # - The * and ** operators cannot be matched
18671 # unless they have a corresponding variable name - e.g.
18672 # {format=*} or {var=**}.
18673 #
18674 # For example, a path_template_match of /static/{format=**}
18675 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
18676 # rewrite, so that /{country}/{format}/{suffix=**} can be
18677 # rewritten as /content/{format}/{country}/{suffix}.
18678 #
18679 # At least
18680 # one non-empty routeRules[].matchRules[].path_template_match is
18681 # required.
18682 #
18683 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
18684 },
18685 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
18686 # occurs. The weights determine the fraction of traffic that flows to
18687 # their corresponding backend service. If all traffic needs to
18688 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
18689 #
18690 # After a backend service is identified and before forwarding
18691 # the request to
18692 # the backend service, advanced routing actions such as URL rewrites and
18693 # header transformations are applied depending on additional settings
18694 # specified in this HttpRouteAction.
18695 { # In contrast to a single BackendService in
18696 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
18697 # multiple backend services. The volume of traffic for each
18698 # backend service is proportional to the weight specified
18699 # in each WeightedBackendService
18700 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
18701 # resource. Before
18702 # forwarding the request to backendService, the load balancer
18703 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
18704 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
18705 # effect for the selected backendService.
18706 #
18707 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
18708 #
18709 # headerAction is not supported for load balancers that have
18710 # their loadBalancingScheme set to EXTERNAL.
18711 #
18712 # Not supported when the URL map is bound to a target gRPC proxy that
18713 # has validateForProxyless field set to true.
18714 # the request is passed along to the selected backendService.
18715 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
18716 { # Specification determining how headers are added to requests or responses.
18717 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
18718 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
18719 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
18720 # that already
18721 # exist for the header. If true, headerValue is set for the
18722 # header, discarding any values that were set for that header.
18723 #
18724 # The default value is true,
18725 # unless a variable is present in headerValue,
18726 # in which case the default value is false.
18727 # .
18728 },
18729 ],
18730 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
18731 # request before forwarding the request to the backendService.
18732 &quot;A String&quot;,
18733 ],
18734 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
18735 # client.
18736 { # Specification determining how headers are added to requests or responses.
18737 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
18738 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
18739 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
18740 # that already
18741 # exist for the header. If true, headerValue is set for the
18742 # header, discarding any values that were set for that header.
18743 #
18744 # The default value is true,
18745 # unless a variable is present in headerValue,
18746 # in which case the default value is false.
18747 # .
18748 },
18749 ],
18750 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
18751 # response before sending the response back to the client.
18752 &quot;A String&quot;,
18753 ],
18754 },
18755 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
18756 # computed asweight / (sum of all weightedBackendService weights in routeAction).
18757 #
18758 # The selection of a backend service is determined only for new traffic.
18759 # Once a user&#x27;s request has been directed to a backend service,
18760 # subsequent requests are sent to the same backend service as
18761 # determined by the backend service&#x27;s session affinity policy.
18762 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
18763 # splitting. If you do, the weighted traffic splitting configuration takes
18764 # precedence.
18765 #
18766 # The value must be from 0 to 1000.
18767 },
18768 ],
18769 },
18770 &quot;service&quot;: &quot;A String&quot;, # The full or partial URL of the backend service resource to which traffic
18771 # is directed if this rule is matched. If routeAction is
18772 # also specified, advanced routing actions, such as URL rewrites,
18773 # take effect before sending the request to the backend.
18774 #
18775 #
18776 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
18777 &quot;urlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When this rule is matched, the request is redirected to a URL
18778 # specified by urlRedirect.
18779 #
18780 #
18781 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
18782 #
18783 #
18784 # Not supported when the URL map is bound to a target gRPC proxy.
18785 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
18786 # was supplied in the request.
18787 #
18788 # The value must be from 1 to 255
18789 # characters.
18790 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
18791 # set to HTTPS.
18792 # If set to false, the URL scheme of the redirected request
18793 # remains the same as that of the request.
18794 #
18795 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
18796 #
18797 # The default is set to false.
18798 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
18799 # that was supplied in the request.
18800 #
18801 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
18802 # supplied, the path of the original request is used for the redirect.
18803 #
18804 # The value must be from 1 to 1024 characters.
18805 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
18806 # the HttpRouteRuleMatch, retaining the remaining portion
18807 # of the URL before redirecting the request.
18808 #
18809 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
18810 # supplied, the path of the original request is used for the redirect.
18811 #
18812 # The value must be from 1 to 1024 characters.
18813 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
18814 #
18815 # Supported values are:
18816 #
18817 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
18818 # to 301.
18819 # - FOUND, which corresponds to 302.
18820 # - SEE_OTHER which corresponds to 303.
18821 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
18822 # method is retained.
18823 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
18824 # method is retained.
18825 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
18826 # URL is
18827 # removed before redirecting the request. If set to false, the
18828 # query portion of the original URL is retained.
18829 #
18830 # The default is set to false.
18831 },
18832 },
18833 ],
18834 },
18835 ],
18836 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional URL map resides.
18837 # This field is not applicable to global URL maps.
18838 # You must specify this field as part of the HTTP request URL. It is
18839 # not settable as a field in the request body.
18840 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
18841 &quot;tests&quot;: [ # The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test cases pass. You can specify a
18842 # maximum of 100 tests per UrlMap.
18843 #
18844 # Not supported when the URL map is bound to a target gRPC proxy that
18845 # has validateForProxyless field set to true.
18846 { # Message for the expected URL mappings.
18847 &quot;description&quot;: &quot;A String&quot;, # Description of this test case.
18848 &quot;expectedOutputUrl&quot;: &quot;A String&quot;, # The expected output URL evaluated by the load balancer
18849 # containing the scheme, host, path and query parameters.
18850 #
18851 # For rules that forward requests to backends, the test passes only whenexpectedOutputUrl matches the request forwarded by
18852 # the load balancer to backends. For rules with urlRewrite,
18853 # the test verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite action. When service is specified,expectedOutputUrl`s scheme is ignored.
18854 #
18855 # For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the load balancer&#x27;s
18856 # redirect response. If urlRedirect specifieshttps_redirect, the test passes only if the scheme inexpectedOutputUrl is also set to HTTPS.
18857 # If urlRedirect specifies strip_query, the test
18858 # passes only if expectedOutputUrl does not contain any query
18859 # parameters.
18860 #
18861 # expectedOutputUrl is optional whenservice is specified.
18862 &quot;expectedRedirectResponseCode&quot;: 42, # For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in
18863 # load balancer&#x27;s redirect response.
18864 #
18865 # expectedRedirectResponseCode cannot be set whenservice is set.
18866 &quot;headers&quot;: [ # HTTP headers for this request. If headers contains
18867 # a host header, then host must also match the header value.
18868 { # HTTP headers used in UrlMapTests.
18869 &quot;name&quot;: &quot;A String&quot;, # Header name.
18870 &quot;value&quot;: &quot;A String&quot;, # Header value.
18871 },
18872 ],
18873 &quot;host&quot;: &quot;A String&quot;, # Host portion of the URL. If headers contains a host header,
18874 # then host must also match the header value.
18875 &quot;path&quot;: &quot;A String&quot;, # Path portion of the URL.
18876 &quot;service&quot;: &quot;A String&quot;, # Expected BackendService or BackendBucket resource
18877 # the given URL should be mapped to.
18878 #
18879 # The service field cannot
18880 # be set if expectedRedirectResponseCode is set.
18881 },
18882 ],
18883 }
18884
18885 requestId: string, begin_interface: MixerMutationRequestBuilder
18886 Request ID to support idempotency.
18887 x__xgafv: string, V1 error format.
18888 Allowed values
18889 1 - v1 error format
18890 2 - v2 error format
18891
18892 Returns:
18893 An object of the form:
18894
18895 { # Represents an Operation resource.
18896 #
18897 # Google Compute Engine has three Operation resources:
18898 #
18899 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
18900 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
18901 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
18902 #
18903 # You can use an operation resource to manage asynchronous API requests.
18904 # For more information, readHandling
18905 # API responses.
18906 #
18907 # Operations can be global, regional or zonal.
18908 #
18909 # - For global operations, use the `globalOperations`
18910 # resource.
18911 # - For regional operations, use the
18912 # `regionOperations` resource.
18913 # - For zonal operations, use
18914 # the `zoneOperations` resource.
18915 #
18916 #
18917 #
18918 # For more information, read
18919 # Global, Regional, and Zonal Resources.
18920 #
18921 # Note that completed Operation resources have a limited
18922 # retention period.
18923 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
18924 # Not present otherwise.
18925 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
18926 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
18927 # set when the operation is created.
18928 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
18929 # text format.
18930 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
18931 # this field will be populated.
18932 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
18933 # operation.
18934 {
18935 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
18936 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
18937 # details. There is a set of defined message types to use for providing
18938 # details.The syntax depends on the error code. For example,
18939 # QuotaExceededInfo will have details when the error code is
18940 # QUOTA_EXCEEDED.
18941 {
18942 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
18943 #
18944 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
18945 # is not enabled:
18946 #
18947 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
18948 # &quot;domain&quot;: &quot;googleapis.com&quot;
18949 # &quot;metadata&quot;: {
18950 # &quot;resource&quot;: &quot;projects/123&quot;,
18951 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
18952 # }
18953 # }
18954 #
18955 # This response indicates that the pubsub.googleapis.com API is not enabled.
18956 #
18957 # Example of an error that is returned when attempting to create a Spanner
18958 # instance in a region that is out of stock:
18959 #
18960 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
18961 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
18962 # &quot;metadata&quot;: {
18963 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
18964 # }
18965 # }
18966 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
18967 # is typically the registered service name of the tool or product that
18968 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
18969 # generated by some common infrastructure, the error domain must be a
18970 # globally unique value that identifies the infrastructure. For Google API
18971 # infrastructure, the error domain is &quot;googleapis.com&quot;.
18972 &quot;metadatas&quot;: { # Additional structured details about this error.
18973 #
18974 # Keys must match a regular expression of `a-z+` but should
18975 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
18976 # length. When identifying the current value of an exceeded limit, the units
18977 # should be contained in the key, not the value. For example, rather than
18978 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
18979 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
18980 # instances that can be created in a single (batch) request.
18981 &quot;a_key&quot;: &quot;A String&quot;,
18982 },
18983 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
18984 # proximate cause of the error. Error reasons are unique within a particular
18985 # domain of errors. This should be at most 63 characters and match a
18986 # regular expression of `A-Z+[A-Z0-9]`, which represents
18987 # UPPER_SNAKE_CASE.
18988 },
18989 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
18990 #
18991 # For example, if a quota check failed with an error indicating the calling
18992 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
18993 # directly to the right place in the developer console to flip the bit.
18994 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
18995 { # Describes a URL link.
18996 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
18997 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
18998 },
18999 ],
19000 },
19001 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
19002 # which can be attached to an RPC error.
19003 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
19004 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
19005 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
19006 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
19007 },
19008 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
19009 &quot;dimensions&quot;: { # The map holding related quota dimensions.
19010 &quot;a_key&quot;: &quot;A String&quot;,
19011 },
19012 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
19013 # type or metric.
19014 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
19015 # or metric.
19016 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
19017 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
19018 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
19019 },
19020 },
19021 ],
19022 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
19023 # This property is optional.
19024 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
19025 },
19026 ],
19027 },
19028 &quot;getVersionOperationMetadata&quot;: {
19029 &quot;inlineSbomInfo&quot;: {
19030 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
19031 # appropriate identifiers.
19032 &quot;a_key&quot;: &quot;A String&quot;,
19033 },
19034 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
19035 # identifiers.
19036 &quot;a_key&quot;: &quot;A String&quot;,
19037 },
19038 },
19039 },
19040 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
19041 # message that was returned, such as `NOT FOUND`.
19042 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
19043 # status code that was returned. For example, a `404` means the
19044 # resource was not found.
19045 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
19046 # defined by the server.
19047 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
19048 # This value is inRFC3339
19049 # text format.
19050 &quot;instancesBulkInsertOperationMetadata&quot;: {
19051 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
19052 # Example key: zones/us-central1-a
19053 &quot;a_key&quot;: {
19054 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
19055 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
19056 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
19057 # error.
19058 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
19059 # if the flow is rolling forward or rolling back.
19060 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
19061 },
19062 },
19063 },
19064 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
19065 # Operation resources.
19066 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
19067 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
19068 # group of operations results from a `bulkInsert` API request.
19069 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
19070 # `update`, or `delete`, and so on.
19071 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
19072 # There is no requirement that this be linear or support any granularity of
19073 # operations. This should not be used to guess when the operation will be
19074 # complete. This number should monotonically increase as the operation
19075 # progresses.
19076 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
19077 # applicable when performing regional operations.
19078 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
19079 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
19080 # this field will contain information on all underlying zonal actions and
19081 # their state.
19082 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
19083 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
19084 # Example key: zones/us-central1-a
19085 &quot;a_key&quot;: {
19086 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # [Output Only] If state is `ABANDONED` or `FAILED`, this field is
19087 # populated.
19088 # different programming environments, including REST APIs and RPC APIs. It is
19089 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
19090 # three pieces of data: error code, error message, and error details.
19091 #
19092 # You can find out more about this error model and how to work with it in the
19093 # [API Design Guide](https://cloud.google.com/apis/design/errors).
19094 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
19095 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
19096 # message types for APIs to use.
19097 {
19098 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
19099 },
19100 ],
19101 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
19102 # user-facing error message should be localized and sent in the
19103 # google.rpc.Status.details field, or localized by the client.
19104 },
19105 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
19106 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
19107 },
19108 },
19109 },
19110 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
19111 # This value is inRFC3339
19112 # text format.
19113 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
19114 # following:
19115 # `PENDING`, `RUNNING`, or `DONE`.
19116 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
19117 # operation.
19118 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
19119 # of the target resource.
19120 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
19121 # operations related to creating a snapshot, this points to the disk
19122 # that the snapshot was created from.
19123 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
19124 # `[email protected]` or
19125 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
19126 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
19127 # operation, this field will be populated.
19128 {
19129 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
19130 # Engine returns NO_RESULTS_ON_PAGE if there
19131 # are no results in the response.
19132 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
19133 # value format. For example:
19134 #
19135 # &quot;data&quot;: [
19136 # {
19137 # &quot;key&quot;: &quot;scope&quot;,
19138 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
19139 # }
19140 {
19141 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
19142 # returned. For example, for warnings where there are no results in a list
19143 # request for a particular zone, this key might be scope and
19144 # the key value might be the zone name. Other examples might be a key
19145 # indicating a deprecated resource and a suggested replacement, or a
19146 # warning about invalid network settings (for example, if an instance
19147 # attempts to perform IP forwarding but is not enabled for IP forwarding).
19148 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
19149 },
19150 ],
19151 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
19152 },
19153 ],
19154 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
19155 # applicable when performing per-zone operations.
19156 }</pre>
19157 </div>
19158
19159 <div class="method">
19160 <code class="details" id="validate">validate(project, region, urlMap, body=None, x__xgafv=None)</code>
19161 <pre>Runs static validation for the UrlMap. In particular, the tests of the
19162 provided UrlMap will be run. Calling this method does NOT create the
19163 UrlMap.
19164
19165 Args:
19166 project: string, Project ID for this request. (required)
19167 region: string, Name of the region scoping this request. (required)
19168 urlMap: string, Name of the UrlMap resource to be validated as. (required)
19169 body: object, The request body.
19170 The object takes the form of:
19171
19172 {
19173 &quot;resource&quot;: { # Represents a URL Map resource. # Content of the UrlMap to be validated.
19174 #
19175 # Compute Engine has two URL Map resources:
19176 #
19177 # * [Global](/compute/docs/reference/rest/v1/urlMaps)
19178 # * [Regional](/compute/docs/reference/rest/v1/regionUrlMaps)
19179 #
19180 # A URL map resource is a component of certain types of cloud load balancers
19181 # and Traffic Director:
19182 #
19183 # * urlMaps are used by global external Application Load
19184 # Balancers, classic Application Load Balancers, and cross-region internal
19185 # Application Load Balancers.
19186 # * regionUrlMaps are used by internal Application Load Balancers,
19187 # regional external Application Load Balancers and regional internal
19188 # Application Load Balancers.
19189 #
19190 # For a list of supported URL map features by the load balancer type, see the
19191 # Load balancing features: Routing and traffic management table.
19192 #
19193 # For a list of supported URL map features for Traffic Director, see the
19194 # Traffic Director features: Routing and traffic management table.
19195 #
19196 # This resource defines mappings from hostnames and URL paths to either a
19197 # backend service or a backend bucket.
19198 #
19199 # To use the global urlMaps resource, the backend service must
19200 # have a loadBalancingScheme of either EXTERNAL,EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To use
19201 # the regionUrlMaps resource, the backend service must have aloadBalancingScheme of INTERNAL_MANAGED. For more
19202 # information, read URL
19203 # Map Concepts.
19204 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
19205 # text format.
19206 &quot;defaultCustomErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # defaultCustomErrorResponsePolicy specifies how the Load
19207 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
19208 #
19209 # This policy takes
19210 # effect at the load balancer level and applies only when no policy has been
19211 # defined for the error code at lower levels like PathMatcher, RouteRule and
19212 # PathRule within this UrlMap.
19213 #
19214 # For example, consider a UrlMap with the
19215 # following configuration:
19216 #
19217 #
19218 # - defaultCustomErrorResponsePolicy containing policies for
19219 # responding to 5xx and 4xx errors
19220 # - A PathMatcher configured for *.example.com has
19221 # defaultCustomErrorResponsePolicy for 4xx.
19222 #
19223 # If a request for http://www.example.com/ encounters a404, the policy inpathMatcher.defaultCustomErrorResponsePolicy will be enforced.
19224 # When the request for http://www.example.com/ encounters a502, the policy inUrlMap.defaultCustomErrorResponsePolicy will be enforced. When
19225 # a request that does not match any host in *.example.com such
19226 # as http://www.myotherexample.com/, encounters a404, UrlMap.defaultCustomErrorResponsePolicy
19227 # takes effect.
19228 #
19229 # When used in conjunction withdefaultRouteAction.retryPolicy, retries take precedence. Only
19230 # once all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting
19231 # a retry, if load balancer is successful in reaching the
19232 # service, the defaultCustomErrorResponsePolicy is ignored and
19233 # the response from the service is returned to the client.
19234 #
19235 # defaultCustomErrorResponsePolicy is supported only for
19236 # global external Application Load Balancers.
19237 # backend service or backend bucket responds with an error.
19238 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
19239 #
19240 # In a given policy, if you specify rules for both a range of error codes
19241 # as well as rules for specific error codes then rules with specific error
19242 # codes have a higher priority. For example, assume that you configure a rule
19243 # for 401 (Un-authorized) code, and another for all 4 series
19244 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
19245 # However if the backend service returns a 403, the rule for4xx takes effect.
19246 { # Specifies the mapping between the response code that will be returned along
19247 # with the custom error content and the response code returned by the backend
19248 # service.
19249 &quot;matchResponseCodes&quot;: [ # Valid values include:
19250 #
19251 #
19252 # - A number between 400 and 599: For example
19253 # 401 or 503, in which case the load balancer
19254 # applies the policy if the error code exactly matches this value.
19255 # - 5xx: Load Balancer will apply the policy if the
19256 # backend service responds with any response code in the range of
19257 # 500 to 599.
19258 # - 4xx: Load
19259 # Balancer will apply the policy if the backend service responds with any
19260 # response code in the range of 400 to
19261 # 499.
19262 #
19263 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
19264 &quot;A String&quot;,
19265 ],
19266 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
19267 # error content. If overrideResponseCode is not supplied, the
19268 # same response code returned by the original backend bucket or backend
19269 # service is returned to the client.
19270 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
19271 #
19272 # path must start
19273 # with a leading slash. path cannot have trailing slashes.
19274 #
19275 # If the file is not available in backendBucket or the
19276 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
19277 #
19278 # The value must
19279 # be from 1 to 1024 characters
19280 },
19281 ],
19282 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
19283 # contains the custom error content. Examples are:
19284 #
19285 #
19286 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
19287 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
19288 # - global/backendBuckets/myBackendBucket
19289 #
19290 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
19291 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
19292 #
19293 # If load balancer cannot reach
19294 # the backendBucket, a simple Not Found Error will
19295 # be returned, with the original response code (oroverrideResponseCode if configured).
19296 #
19297 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
19298 },
19299 &quot;defaultRouteAction&quot;: { # defaultRouteAction takes effect when none of the
19300 # hostRules match. The load balancer performs advanced routing
19301 # actions, such as URL rewrites and header transformations, before forwarding
19302 # the request to the selected backend.
19303 #
19304 #
19305 # Only one of defaultUrlRedirect, defaultService
19306 # or defaultRouteAction.weightedBackendService can be set.
19307 #
19308 #
19309 # URL maps for classic Application Load Balancers only support
19310 # the urlRewrite action within defaultRouteAction.
19311 #
19312 #
19313 # defaultRouteAction has no effect when the URL map is bound
19314 # to a target gRPC proxy that has the validateForProxyless field
19315 # set to true.
19316 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
19317 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
19318 # property must be specified. This policy cannot be specified if any target
19319 # backend has Identity-Aware Proxy enabled.
19320 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
19321 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
19322 # header names can be specified. The cache is bypassed for all `cacheMode`
19323 # values.
19324 &quot;A String&quot;,
19325 ],
19326 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
19327 # on the backend type: for Backend Services, the complete request URI is
19328 # used; for Backend Buckets, the request URI is used without the protocol or
19329 # host, and only query parameters known to Cloud Storage are included.
19330 # Policy defined on Route Action.
19331 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
19332 # parameters will be included. Either specify `excludedQueryParameters`
19333 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
19334 # encoded and not treated as delimiters.
19335 #
19336 # Note: This field applies to routes that use backend services. Attempting
19337 # to set it on a route that points exclusively to Backend Buckets will
19338 # result in a configuration error. For routes that point to a Backend
19339 # Bucket, use `includedQueryParameters` to define which parameters should
19340 # be part of the cache key.
19341 &quot;A String&quot;,
19342 ],
19343 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
19344 #
19345 # Note: This setting is only applicable to routes that use a Backend
19346 # Service. It does not affect requests served by a Backend Bucket, as the
19347 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
19348 # it on a route that points exclusively to Backend Buckets will result in a
19349 # configuration error.
19350 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
19351 #
19352 # Note: This setting is only applicable to routes that use a Backend
19353 # Service. It does not affect requests served by a Backend Bucket, as the
19354 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
19355 # set on a route that points exclusively to Backend Buckets will result in
19356 # a configuration error.
19357 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
19358 # `includedQueryParameters` and `excludedQueryParameters`. If neither
19359 # is set, the entire query string will be included. If false, the query
19360 # string will be excluded from the cache key entirely.
19361 #
19362 # Note: This field applies to routes that use backend services. Attempting
19363 # to set it on a route that points exclusively to Backend Buckets will
19364 # result in a configuration error. For routes that point to a Backend
19365 # Bucket, use `includedQueryParameters` to define which parameters should
19366 # be part of the cache key.
19367 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
19368 # The name=value pair will be used in the cache key Cloud CDN generates.
19369 #
19370 # Note: This setting is only applicable to routes that use a Backend
19371 # Service. It does not affect requests served by a Backend Bucket.
19372 # Attempting to set it on a route that points exclusively to Backend
19373 # Buckets will result in a configuration error. Up to 5 cookie names can be
19374 # specified.
19375 &quot;A String&quot;,
19376 ],
19377 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
19378 &quot;A String&quot;,
19379 ],
19380 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
19381 # parameters will be excluded. Either specify `includedQueryParameters`
19382 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
19383 # encoded and not treated as delimiters.
19384 &quot;A String&quot;,
19385 ],
19386 },
19387 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
19388 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
19389 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
19390 # content. This is used to clamp the max-age (or Expires) value sent to the
19391 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
19392 # is used for the response max-age directive, along with a &quot;public&quot;
19393 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
19394 # clamps the max-age from the origin (if specified), or else sets the
19395 # response max-age directive to the lesser of the `clientTtl` and
19396 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
19397 # present. The maximum allowed value is 31,622,400s (1 year). If not
19398 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
19399 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
19400 # `USE_ORIGIN_HEADERS`.
19401 # as a count of seconds and fractions of seconds at nanosecond
19402 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
19403 # or &quot;month&quot;. Range is approximately 10,000 years.
19404 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
19405 # Durations less than one second are represented with a 0
19406 # `seconds` field and a positive `nanos` field. Must be from 0
19407 # to 999,999,999 inclusive.
19408 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
19409 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
19410 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
19411 },
19412 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
19413 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
19414 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
19415 # greater than that of `maxTtl`. When the `cacheMode` is set to
19416 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
19417 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
19418 # accessed objects may be evicted from the cache before the defined TTL. If
19419 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
19420 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
19421 # `USE_ORIGIN_HEADERS`.
19422 # as a count of seconds and fractions of seconds at nanosecond
19423 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
19424 # or &quot;month&quot;. Range is approximately 10,000 years.
19425 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
19426 # Durations less than one second are represented with a 0
19427 # `seconds` field and a positive `nanos` field. Must be from 0
19428 # to 999,999,999 inclusive.
19429 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
19430 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
19431 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
19432 },
19433 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
19434 # attempt to set a max-age or s-maxage higher than this, or an Expires header
19435 # more than `maxTtl` seconds in the future will be capped at the value of
19436 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
19437 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
19438 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
19439 # Infrequently accessed objects may be evicted from the cache before the
19440 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
19441 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
19442 # mode.
19443 # as a count of seconds and fractions of seconds at nanosecond
19444 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
19445 # or &quot;month&quot;. Range is approximately 10,000 years.
19446 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
19447 # Durations less than one second are represented with a 0
19448 # `seconds` field and a positive `nanos` field. Must be from 0
19449 # to 999,999,999 inclusive.
19450 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
19451 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
19452 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
19453 },
19454 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
19455 # to apply fine-grained caching for common errors or redirects.
19456 # This can reduce the load on your origin and improve end-user
19457 # experience by reducing response latency.
19458 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
19459 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
19460 # the specified response code that lack any Cache-Control, Expires, or
19461 # Pragma: no-cache directives. When the `cacheMode` is set to
19462 # `FORCE_CACHE_ALL`, negative caching applies to all responses
19463 # with the specified response code, and overrides any caching headers. By
19464 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
19465 #
19466 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
19467 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
19468 # * 405 (Method Not Found), 501 (Not Implemented): 60s
19469 #
19470 # These defaults can be overridden in `negativeCachingPolicy`.
19471 # If not specified, Cloud CDN applies negative caching by default.
19472 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
19473 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
19474 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
19475 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
19476 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
19477 # all response codes that you wish to cache. Cloud CDN will not apply any
19478 # default negative caching when a policy exists.
19479 { # Specify CDN TTLs for response error codes.
19480 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
19481 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
19482 # specified as values, and you cannot specify a status code more than
19483 # once.
19484 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
19485 # corresponding status code.
19486 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
19487 # objects may be evicted from the cache before the defined TTL.
19488 # as a count of seconds and fractions of seconds at nanosecond
19489 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
19490 # or &quot;month&quot;. Range is approximately 10,000 years.
19491 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
19492 # Durations less than one second are represented with a 0
19493 # `seconds` field and a positive `nanos` field. Must be from 0
19494 # to 999,999,999 inclusive.
19495 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
19496 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
19497 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
19498 },
19499 },
19500 ],
19501 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
19502 # requests into a small number of requests to the origin. If not specified,
19503 # Cloud CDN applies request coalescing by default.
19504 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
19505 # content with the origin, or when an error is encountered when refreshing
19506 # the cache.
19507 # This setting defines the default &quot;max-stale&quot; duration for any cached
19508 # responses that do not specify a max-stale directive. Stale responses that
19509 # exceed the TTL configured here will not be served. The default limit
19510 # (max-stale) is 86400s (1 day), which will allow stale content to be
19511 # served up to this limit beyond the max-age (or s-maxage) of a cached
19512 # response.
19513 # The maximum allowed value is 604800 (1 week).
19514 # Set this to zero (0) to disable serve-while-stale.
19515 # as a count of seconds and fractions of seconds at nanosecond
19516 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
19517 # or &quot;month&quot;. Range is approximately 10,000 years.
19518 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
19519 # Durations less than one second are represented with a 0
19520 # `seconds` field and a positive `nanos` field. Must be from 0
19521 # to 999,999,999 inclusive.
19522 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
19523 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
19524 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
19525 },
19526 },
19527 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
19528 # information about the W3C recommendation for cross-origin resource sharing
19529 # (CORS), see Fetch API Living
19530 # Standard.
19531 #
19532 # Not supported when the URL map is bound to a target gRPC proxy.
19533 # information about the W3C recommendation for cross-origin resource sharing
19534 # (CORS), see Fetch API Living
19535 # Standard.
19536 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
19537 # indicates that
19538 # the actual request can include user credentials. This field translates to
19539 # the Access-Control-Allow-Credentials header.
19540 #
19541 # Default is false.
19542 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
19543 # header.
19544 &quot;A String&quot;,
19545 ],
19546 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
19547 # header.
19548 &quot;A String&quot;,
19549 ],
19550 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
19551 # more information, see regular expression syntax.
19552 #
19553 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
19554 #
19555 # Regular expressions can only be used when the loadBalancingScheme is
19556 # set to INTERNAL_SELF_MANAGED.
19557 &quot;A String&quot;,
19558 ],
19559 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
19560 #
19561 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
19562 &quot;A String&quot;,
19563 ],
19564 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
19565 # The default value is false, which indicates that the CORS
19566 # policy is in effect.
19567 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
19568 # header.
19569 &quot;A String&quot;,
19570 ],
19571 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
19572 # seconds. This field translates to the Access-Control-Max-Age
19573 # header.
19574 },
19575 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
19576 # the resiliency of clients to backend service failure. As part of fault
19577 # injection, when clients send requests to a backend service, delays can be
19578 # introduced by a load balancer on a percentage of requests before sending
19579 # those requests to the backend service. Similarly requests from clients can
19580 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
19581 # that are configured with a fault_injection_policy if:
19582 # 1. The traffic is generated by fault injection AND
19583 # 2. The fault injection is not a delay fault injection.
19584 # Fault injection is not supported with the classic Application Load Balancer
19585 # . To see which load balancers support fault injection,
19586 # see Load
19587 # balancing: Routing and traffic management features.
19588 # the resiliency of clients to backend service failure. As part of fault
19589 # injection, when clients send requests to a backend service, delays can be
19590 # introduced by the load balancer on a percentage of requests before sending
19591 # those request to the backend service. Similarly requests from clients can be
19592 # aborted by the load balancer for a percentage of requests.
19593 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
19594 # injection.
19595 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
19596 #
19597 # The value must be from 200 to 599 inclusive.
19598 #
19599 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
19600 # according to this
19601 # mapping table. HTTP status 200 is mapped to gRPC status
19602 # UNKNOWN. Injecting an OK status is currently not supported by
19603 # Traffic Director.
19604 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
19605 # that is aborted as part of fault injection.
19606 #
19607 # The value must be from 0.0 to 100.0 inclusive.
19608 },
19609 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
19610 # injection, before being sent to a backend service.
19611 # request to the backend service as part of fault injection.
19612 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
19613 # as a count of seconds and fractions of seconds at nanosecond
19614 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
19615 # or &quot;month&quot;. Range is approximately 10,000 years.
19616 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
19617 # Durations less than one second are represented with a 0
19618 # `seconds` field and a positive `nanos` field. Must be from 0
19619 # to 999,999,999 inclusive.
19620 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
19621 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
19622 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
19623 },
19624 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
19625 # which a delay is introduced as part of fault injection.
19626 #
19627 # The value must be from 0.0 to 100.0 inclusive.
19628 },
19629 },
19630 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
19631 # Unlike the timeout field where the timeout duration starts
19632 # from the time the request has been fully processed (known as*end-of-stream*),
19633 # the duration in this field is computed from the beginning of the stream
19634 # until the response has been processed, including all retries. A
19635 # stream that does not complete in this duration is closed.
19636 #
19637 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
19638 # with the route.
19639 #
19640 # This field is only allowed if the Url map is used with backend services
19641 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
19642 # as a count of seconds and fractions of seconds at nanosecond
19643 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
19644 # or &quot;month&quot;. Range is approximately 10,000 years.
19645 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
19646 # Durations less than one second are represented with a 0
19647 # `seconds` field and a positive `nanos` field. Must be from 0
19648 # to 999,999,999 inclusive.
19649 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
19650 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
19651 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
19652 },
19653 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
19654 # are shadowed to a separate mirrored backend service. The load balancer does
19655 # not wait for responses from the shadow service. Before sending traffic
19656 # to the shadow service, the host / authority header is suffixed with-shadow.
19657 #
19658 # Not supported when the URL map is bound to a target gRPC proxy that
19659 # has the validateForProxyless field set to true.
19660 # are shadowed to a separate mirrored backend service. The load balancer
19661 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
19662 # to the shadow service, the host or authority header is suffixed with-shadow.
19663 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
19664 # mirrored to.
19665 #
19666 # The backend service configured for a mirroring
19667 # policy must reference backends that are of the same type as the original
19668 # backend service matched in the URL map.
19669 #
19670 # Serverless NEG backends are not currently supported as a mirrored
19671 # backend service.
19672 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
19673 },
19674 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
19675 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
19676 # If not specified, defaults to 1.
19677 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
19678 #
19679 # If not specified, will use the timeout set in theHttpRouteAction field.
19680 # If timeout in the HttpRouteAction field is not set, this field
19681 # uses the largest timeout
19682 # among all backend services associated with the route.
19683 #
19684 # Not supported when the URL map is bound to a target gRPC proxy that
19685 # has the validateForProxyless field set to true.
19686 # as a count of seconds and fractions of seconds at nanosecond
19687 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
19688 # or &quot;month&quot;. Range is approximately 10,000 years.
19689 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
19690 # Durations less than one second are represented with a 0
19691 # `seconds` field and a positive `nanos` field. Must be from 0
19692 # to 999,999,999 inclusive.
19693 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
19694 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
19695 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
19696 },
19697 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
19698 # values are:
19699 #
19700 # - 5xx: retry is attempted if the instance or endpoint
19701 # responds with any 5xx response code, or if the instance or
19702 # endpoint does not respond at all. For example, disconnects, reset, read
19703 # timeout, connection failure, and refused streams.
19704 # - gateway-error: Similar to 5xx, but only
19705 # applies to response codes 502, 503 or504.
19706 # - connect-failure: a retry is attempted on failures
19707 # connecting to the instance or endpoint. For example, connection
19708 # timeouts.
19709 # - retriable-4xx: a retry is attempted if the instance
19710 # or endpoint responds with a 4xx response code.
19711 # The only error that you can retry is error code 409.
19712 # - refused-stream: a retry is attempted if the instance
19713 # or endpoint resets the stream with a REFUSED_STREAM error
19714 # code. This reset type indicates that it is safe to retry.
19715 # - cancelled: a retry is attempted if the gRPC status
19716 # code in the response header is set to cancelled.
19717 # - deadline-exceeded: a retry is attempted if the gRPC
19718 # status code in the response header is set todeadline-exceeded.
19719 # - internal: a retry is attempted if the gRPC
19720 # status code in the response header is set tointernal.
19721 # - resource-exhausted: a retry is attempted if the gRPC
19722 # status code in the response header is set toresource-exhausted.
19723 # - unavailable: a retry is attempted if the gRPC
19724 # status code in the response header is set tounavailable.
19725 #
19726 # Only the following codes are supported when the URL map is bound to
19727 # target gRPC proxy that has validateForProxyless field set to true.
19728 #
19729 # - cancelled
19730 # - deadline-exceeded
19731 # - internal
19732 # - resource-exhausted
19733 # - unavailable
19734 &quot;A String&quot;,
19735 ],
19736 },
19737 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
19738 # time the request has been fully processed (known as *end-of-stream*)
19739 # up until the response has been processed. Timeout includes
19740 # all retries.
19741 #
19742 # If not specified, this field uses the largest timeout among all backend
19743 # services associated with the route.
19744 #
19745 # Not supported when the URL map is bound to a target gRPC proxy that
19746 # has validateForProxyless field set to true.
19747 # as a count of seconds and fractions of seconds at nanosecond
19748 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
19749 # or &quot;month&quot;. Range is approximately 10,000 years.
19750 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
19751 # Durations less than one second are represented with a 0
19752 # `seconds` field and a positive `nanos` field. Must be from 0
19753 # to 999,999,999 inclusive.
19754 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
19755 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
19756 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
19757 },
19758 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
19759 # to the matched service.
19760 #
19761 # urlRewrite is the only action supported in UrlMaps
19762 # for classic Application Load Balancers.
19763 #
19764 # Not supported when the URL map is bound to a target gRPC proxy that
19765 # has the validateForProxyless field set to true.
19766 # backend service.
19767 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
19768 # host header is replaced with contents of hostRewrite.
19769 #
19770 # The value must be from 1 to 255 characters.
19771 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
19772 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
19773 #
19774 # The value must be from 1 to 1024 characters.
19775 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
19776 # header) using the HTTP template syntax.
19777 #
19778 # A corresponding
19779 # path_template_match must be specified. Any template variables must exist in
19780 # the path_template_match field.
19781 #
19782 #
19783 # - -At least one variable must be specified in the path_template_match
19784 # field
19785 # - You can omit variables from the rewritten URL
19786 # - The * and ** operators cannot be matched
19787 # unless they have a corresponding variable name - e.g.
19788 # {format=*} or {var=**}.
19789 #
19790 # For example, a path_template_match of /static/{format=**}
19791 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
19792 # rewrite, so that /{country}/{format}/{suffix=**} can be
19793 # rewritten as /content/{format}/{country}/{suffix}.
19794 #
19795 # At least
19796 # one non-empty routeRules[].matchRules[].path_template_match is
19797 # required.
19798 #
19799 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
19800 },
19801 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
19802 # occurs. The weights determine the fraction of traffic that flows to
19803 # their corresponding backend service. If all traffic needs to
19804 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
19805 #
19806 # After a backend service is identified and before forwarding
19807 # the request to
19808 # the backend service, advanced routing actions such as URL rewrites and
19809 # header transformations are applied depending on additional settings
19810 # specified in this HttpRouteAction.
19811 { # In contrast to a single BackendService in
19812 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
19813 # multiple backend services. The volume of traffic for each
19814 # backend service is proportional to the weight specified
19815 # in each WeightedBackendService
19816 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
19817 # resource. Before
19818 # forwarding the request to backendService, the load balancer
19819 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
19820 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
19821 # effect for the selected backendService.
19822 #
19823 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
19824 #
19825 # headerAction is not supported for load balancers that have
19826 # their loadBalancingScheme set to EXTERNAL.
19827 #
19828 # Not supported when the URL map is bound to a target gRPC proxy that
19829 # has validateForProxyless field set to true.
19830 # the request is passed along to the selected backendService.
19831 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
19832 { # Specification determining how headers are added to requests or responses.
19833 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
19834 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
19835 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
19836 # that already
19837 # exist for the header. If true, headerValue is set for the
19838 # header, discarding any values that were set for that header.
19839 #
19840 # The default value is true,
19841 # unless a variable is present in headerValue,
19842 # in which case the default value is false.
19843 # .
19844 },
19845 ],
19846 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
19847 # request before forwarding the request to the backendService.
19848 &quot;A String&quot;,
19849 ],
19850 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
19851 # client.
19852 { # Specification determining how headers are added to requests or responses.
19853 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
19854 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
19855 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
19856 # that already
19857 # exist for the header. If true, headerValue is set for the
19858 # header, discarding any values that were set for that header.
19859 #
19860 # The default value is true,
19861 # unless a variable is present in headerValue,
19862 # in which case the default value is false.
19863 # .
19864 },
19865 ],
19866 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
19867 # response before sending the response back to the client.
19868 &quot;A String&quot;,
19869 ],
19870 },
19871 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
19872 # computed asweight / (sum of all weightedBackendService weights in routeAction).
19873 #
19874 # The selection of a backend service is determined only for new traffic.
19875 # Once a user&#x27;s request has been directed to a backend service,
19876 # subsequent requests are sent to the same backend service as
19877 # determined by the backend service&#x27;s session affinity policy.
19878 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
19879 # splitting. If you do, the weighted traffic splitting configuration takes
19880 # precedence.
19881 #
19882 # The value must be from 0 to 1000.
19883 },
19884 ],
19885 },
19886 &quot;defaultService&quot;: &quot;A String&quot;, # The full or partial URL of the defaultService resource to
19887 # which traffic is directed if none of the hostRules match.
19888 # If defaultRouteAction is also specified, advanced
19889 # routing actions, such as URL rewrites, take effect before sending the
19890 # request to the backend.
19891 #
19892 #
19893 # Only one of defaultUrlRedirect, defaultService
19894 # or defaultRouteAction.weightedBackendService can be set.
19895 #
19896 #
19897 # defaultService has no effect when the URL map is bound
19898 # to a target gRPC proxy that has the validateForProxyless field
19899 # set to true.
19900 &quot;defaultUrlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When none of the specified hostRules match, the request
19901 # is redirected to a URL specified by defaultUrlRedirect.
19902 #
19903 #
19904 # Only one of defaultUrlRedirect, defaultService
19905 # or defaultRouteAction.weightedBackendService can be set.
19906 #
19907 #
19908 # Not supported when the URL map is bound to a target gRPC proxy.
19909 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
19910 # was supplied in the request.
19911 #
19912 # The value must be from 1 to 255
19913 # characters.
19914 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
19915 # set to HTTPS.
19916 # If set to false, the URL scheme of the redirected request
19917 # remains the same as that of the request.
19918 #
19919 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
19920 #
19921 # The default is set to false.
19922 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
19923 # that was supplied in the request.
19924 #
19925 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
19926 # supplied, the path of the original request is used for the redirect.
19927 #
19928 # The value must be from 1 to 1024 characters.
19929 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
19930 # the HttpRouteRuleMatch, retaining the remaining portion
19931 # of the URL before redirecting the request.
19932 #
19933 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
19934 # supplied, the path of the original request is used for the redirect.
19935 #
19936 # The value must be from 1 to 1024 characters.
19937 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
19938 #
19939 # Supported values are:
19940 #
19941 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
19942 # to 301.
19943 # - FOUND, which corresponds to 302.
19944 # - SEE_OTHER which corresponds to 303.
19945 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
19946 # method is retained.
19947 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
19948 # method is retained.
19949 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
19950 # URL is
19951 # removed before redirecting the request. If set to false, the
19952 # query portion of the original URL is retained.
19953 #
19954 # The default is set to false.
19955 },
19956 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
19957 # create the resource.
19958 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint of this resource. A hash of the contents stored in this object.
19959 # This field is used in optimistic locking. This field is ignored when
19960 # inserting a UrlMap. An up-to-date fingerprint must be provided
19961 # in order to update the UrlMap, otherwise the request will
19962 # fail with error 412 conditionNotMet.
19963 #
19964 # To see the latest fingerprint, make a get() request to
19965 # retrieve a UrlMap.
19966 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
19967 # for the selected backendService.
19968 #
19969 # The headerAction specified here take effect afterheaderAction specified under pathMatcher.
19970 #
19971 # headerAction is not supported for load balancers
19972 # that have
19973 # their loadBalancingScheme set to EXTERNAL.
19974 #
19975 # Not supported when the URL map is bound to a target gRPC proxy that
19976 # has validateForProxyless field set to true.
19977 # the request is passed along to the selected backendService.
19978 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
19979 { # Specification determining how headers are added to requests or responses.
19980 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
19981 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
19982 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
19983 # that already
19984 # exist for the header. If true, headerValue is set for the
19985 # header, discarding any values that were set for that header.
19986 #
19987 # The default value is true,
19988 # unless a variable is present in headerValue,
19989 # in which case the default value is false.
19990 # .
19991 },
19992 ],
19993 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
19994 # request before forwarding the request to the backendService.
19995 &quot;A String&quot;,
19996 ],
19997 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
19998 # client.
19999 { # Specification determining how headers are added to requests or responses.
20000 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
20001 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
20002 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
20003 # that already
20004 # exist for the header. If true, headerValue is set for the
20005 # header, discarding any values that were set for that header.
20006 #
20007 # The default value is true,
20008 # unless a variable is present in headerValue,
20009 # in which case the default value is false.
20010 # .
20011 },
20012 ],
20013 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
20014 # response before sending the response back to the client.
20015 &quot;A String&quot;,
20016 ],
20017 },
20018 &quot;hostRules&quot;: [ # The list of host rules to use against the URL.
20019 { # UrlMaps
20020 # A host-matching rule for a URL. If matched, will use the namedPathMatcher to select the BackendService.
20021 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
20022 # create the resource.
20023 &quot;hosts&quot;: [ # The list of host patterns to match. They must be valid hostnames with
20024 # optional port numbers in the format host:port.* matches any string of ([a-z0-9-.]*). In
20025 # that case, * must be the first character, and if followed by
20026 # anything, the immediate following character must be either -
20027 # or ..
20028 #
20029 # * based matching is not supported when the URL map is bound
20030 # to a target gRPC proxy that has the validateForProxyless field
20031 # set to true.
20032 &quot;A String&quot;,
20033 ],
20034 &quot;pathMatcher&quot;: &quot;A String&quot;, # The name of the PathMatcher to use to match the path portion
20035 # of the URL if the hostRule matches the URL&#x27;s host portion.
20036 },
20037 ],
20038 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
20039 # defined by the server.
20040 &quot;kind&quot;: &quot;compute#urlMap&quot;, # Output only. [Output Only] Type of the resource. Always compute#urlMaps for
20041 # url maps.
20042 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
20043 # The name must be 1-63 characters long, and comply withRFC1035.
20044 # Specifically, the name must be 1-63 characters long and match the regular
20045 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
20046 # character must be a lowercase letter, and all following characters must
20047 # be a dash, lowercase letter, or digit, except the last character, which
20048 # cannot be a dash.
20049 &quot;pathMatchers&quot;: [ # The list of named PathMatchers to use against the URL.
20050 { # A matcher for the path portion of the URL. The BackendService
20051 # from the longest-matched rule will serve the URL. If no rule was matched, the
20052 # default service is used.
20053 &quot;defaultCustomErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # defaultCustomErrorResponsePolicy specifies how the Load
20054 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
20055 #
20056 # This policy takes
20057 # effect at the PathMatcher level and applies only when no
20058 # policy has been defined for the error code at lower levels likeRouteRule and PathRule within thisPathMatcher. If an error code does not have a policy defined
20059 # in defaultCustomErrorResponsePolicy, then a policy defined for
20060 # the error code in UrlMap.defaultCustomErrorResponsePolicy
20061 # takes effect.
20062 #
20063 # For example, consider a UrlMap with the following
20064 # configuration:
20065 #
20066 #
20067 # - UrlMap.defaultCustomErrorResponsePolicy is configured
20068 # with policies for 5xx and 4xx errors
20069 # - A RouteRule for /coming_soon/ is configured for the
20070 # error code 404.
20071 #
20072 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
20073 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
20074 # the policy in RouteRule.customErrorResponsePolicy takes
20075 # effect. If any of the requests in this example encounter a 500
20076 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
20077 #
20078 # When
20079 # used in conjunction withpathMatcher.defaultRouteAction.retryPolicy, retries take
20080 # precedence. Only once all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting
20081 # a retry, if load balancer is successful in reaching the
20082 # service, the defaultCustomErrorResponsePolicy is ignored and
20083 # the response from the service is returned to the client.
20084 #
20085 # defaultCustomErrorResponsePolicy is supported only for
20086 # global external Application Load Balancers.
20087 # backend service or backend bucket responds with an error.
20088 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
20089 #
20090 # In a given policy, if you specify rules for both a range of error codes
20091 # as well as rules for specific error codes then rules with specific error
20092 # codes have a higher priority. For example, assume that you configure a rule
20093 # for 401 (Un-authorized) code, and another for all 4 series
20094 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
20095 # However if the backend service returns a 403, the rule for4xx takes effect.
20096 { # Specifies the mapping between the response code that will be returned along
20097 # with the custom error content and the response code returned by the backend
20098 # service.
20099 &quot;matchResponseCodes&quot;: [ # Valid values include:
20100 #
20101 #
20102 # - A number between 400 and 599: For example
20103 # 401 or 503, in which case the load balancer
20104 # applies the policy if the error code exactly matches this value.
20105 # - 5xx: Load Balancer will apply the policy if the
20106 # backend service responds with any response code in the range of
20107 # 500 to 599.
20108 # - 4xx: Load
20109 # Balancer will apply the policy if the backend service responds with any
20110 # response code in the range of 400 to
20111 # 499.
20112 #
20113 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
20114 &quot;A String&quot;,
20115 ],
20116 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
20117 # error content. If overrideResponseCode is not supplied, the
20118 # same response code returned by the original backend bucket or backend
20119 # service is returned to the client.
20120 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
20121 #
20122 # path must start
20123 # with a leading slash. path cannot have trailing slashes.
20124 #
20125 # If the file is not available in backendBucket or the
20126 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
20127 #
20128 # The value must
20129 # be from 1 to 1024 characters
20130 },
20131 ],
20132 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
20133 # contains the custom error content. Examples are:
20134 #
20135 #
20136 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
20137 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
20138 # - global/backendBuckets/myBackendBucket
20139 #
20140 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
20141 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
20142 #
20143 # If load balancer cannot reach
20144 # the backendBucket, a simple Not Found Error will
20145 # be returned, with the original response code (oroverrideResponseCode if configured).
20146 #
20147 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
20148 },
20149 &quot;defaultRouteAction&quot;: { # defaultRouteAction takes effect when none of the
20150 # pathRules or routeRules match. The load balancer
20151 # performs advanced routing actions, such as URL rewrites and
20152 # header transformations, before forwarding the request to the
20153 # selected backend.
20154 #
20155 #
20156 # Only one of defaultUrlRedirect, defaultService
20157 # or defaultRouteAction.weightedBackendService can be set.
20158 #
20159 #
20160 # URL maps for classic Application Load Balancers only support
20161 # the urlRewrite action within a path matcher&#x27;sdefaultRouteAction.
20162 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
20163 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
20164 # property must be specified. This policy cannot be specified if any target
20165 # backend has Identity-Aware Proxy enabled.
20166 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
20167 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
20168 # header names can be specified. The cache is bypassed for all `cacheMode`
20169 # values.
20170 &quot;A String&quot;,
20171 ],
20172 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
20173 # on the backend type: for Backend Services, the complete request URI is
20174 # used; for Backend Buckets, the request URI is used without the protocol or
20175 # host, and only query parameters known to Cloud Storage are included.
20176 # Policy defined on Route Action.
20177 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
20178 # parameters will be included. Either specify `excludedQueryParameters`
20179 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
20180 # encoded and not treated as delimiters.
20181 #
20182 # Note: This field applies to routes that use backend services. Attempting
20183 # to set it on a route that points exclusively to Backend Buckets will
20184 # result in a configuration error. For routes that point to a Backend
20185 # Bucket, use `includedQueryParameters` to define which parameters should
20186 # be part of the cache key.
20187 &quot;A String&quot;,
20188 ],
20189 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
20190 #
20191 # Note: This setting is only applicable to routes that use a Backend
20192 # Service. It does not affect requests served by a Backend Bucket, as the
20193 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
20194 # it on a route that points exclusively to Backend Buckets will result in a
20195 # configuration error.
20196 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
20197 #
20198 # Note: This setting is only applicable to routes that use a Backend
20199 # Service. It does not affect requests served by a Backend Bucket, as the
20200 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
20201 # set on a route that points exclusively to Backend Buckets will result in
20202 # a configuration error.
20203 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
20204 # `includedQueryParameters` and `excludedQueryParameters`. If neither
20205 # is set, the entire query string will be included. If false, the query
20206 # string will be excluded from the cache key entirely.
20207 #
20208 # Note: This field applies to routes that use backend services. Attempting
20209 # to set it on a route that points exclusively to Backend Buckets will
20210 # result in a configuration error. For routes that point to a Backend
20211 # Bucket, use `includedQueryParameters` to define which parameters should
20212 # be part of the cache key.
20213 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
20214 # The name=value pair will be used in the cache key Cloud CDN generates.
20215 #
20216 # Note: This setting is only applicable to routes that use a Backend
20217 # Service. It does not affect requests served by a Backend Bucket.
20218 # Attempting to set it on a route that points exclusively to Backend
20219 # Buckets will result in a configuration error. Up to 5 cookie names can be
20220 # specified.
20221 &quot;A String&quot;,
20222 ],
20223 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
20224 &quot;A String&quot;,
20225 ],
20226 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
20227 # parameters will be excluded. Either specify `includedQueryParameters`
20228 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
20229 # encoded and not treated as delimiters.
20230 &quot;A String&quot;,
20231 ],
20232 },
20233 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
20234 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
20235 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
20236 # content. This is used to clamp the max-age (or Expires) value sent to the
20237 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
20238 # is used for the response max-age directive, along with a &quot;public&quot;
20239 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
20240 # clamps the max-age from the origin (if specified), or else sets the
20241 # response max-age directive to the lesser of the `clientTtl` and
20242 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
20243 # present. The maximum allowed value is 31,622,400s (1 year). If not
20244 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
20245 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
20246 # `USE_ORIGIN_HEADERS`.
20247 # as a count of seconds and fractions of seconds at nanosecond
20248 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
20249 # or &quot;month&quot;. Range is approximately 10,000 years.
20250 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
20251 # Durations less than one second are represented with a 0
20252 # `seconds` field and a positive `nanos` field. Must be from 0
20253 # to 999,999,999 inclusive.
20254 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
20255 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
20256 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
20257 },
20258 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
20259 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
20260 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
20261 # greater than that of `maxTtl`. When the `cacheMode` is set to
20262 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
20263 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
20264 # accessed objects may be evicted from the cache before the defined TTL. If
20265 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
20266 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
20267 # `USE_ORIGIN_HEADERS`.
20268 # as a count of seconds and fractions of seconds at nanosecond
20269 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
20270 # or &quot;month&quot;. Range is approximately 10,000 years.
20271 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
20272 # Durations less than one second are represented with a 0
20273 # `seconds` field and a positive `nanos` field. Must be from 0
20274 # to 999,999,999 inclusive.
20275 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
20276 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
20277 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
20278 },
20279 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
20280 # attempt to set a max-age or s-maxage higher than this, or an Expires header
20281 # more than `maxTtl` seconds in the future will be capped at the value of
20282 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
20283 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
20284 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
20285 # Infrequently accessed objects may be evicted from the cache before the
20286 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
20287 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
20288 # mode.
20289 # as a count of seconds and fractions of seconds at nanosecond
20290 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
20291 # or &quot;month&quot;. Range is approximately 10,000 years.
20292 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
20293 # Durations less than one second are represented with a 0
20294 # `seconds` field and a positive `nanos` field. Must be from 0
20295 # to 999,999,999 inclusive.
20296 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
20297 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
20298 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
20299 },
20300 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
20301 # to apply fine-grained caching for common errors or redirects.
20302 # This can reduce the load on your origin and improve end-user
20303 # experience by reducing response latency.
20304 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
20305 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
20306 # the specified response code that lack any Cache-Control, Expires, or
20307 # Pragma: no-cache directives. When the `cacheMode` is set to
20308 # `FORCE_CACHE_ALL`, negative caching applies to all responses
20309 # with the specified response code, and overrides any caching headers. By
20310 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
20311 #
20312 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
20313 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
20314 # * 405 (Method Not Found), 501 (Not Implemented): 60s
20315 #
20316 # These defaults can be overridden in `negativeCachingPolicy`.
20317 # If not specified, Cloud CDN applies negative caching by default.
20318 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
20319 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
20320 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
20321 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
20322 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
20323 # all response codes that you wish to cache. Cloud CDN will not apply any
20324 # default negative caching when a policy exists.
20325 { # Specify CDN TTLs for response error codes.
20326 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
20327 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
20328 # specified as values, and you cannot specify a status code more than
20329 # once.
20330 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
20331 # corresponding status code.
20332 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
20333 # objects may be evicted from the cache before the defined TTL.
20334 # as a count of seconds and fractions of seconds at nanosecond
20335 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
20336 # or &quot;month&quot;. Range is approximately 10,000 years.
20337 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
20338 # Durations less than one second are represented with a 0
20339 # `seconds` field and a positive `nanos` field. Must be from 0
20340 # to 999,999,999 inclusive.
20341 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
20342 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
20343 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
20344 },
20345 },
20346 ],
20347 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
20348 # requests into a small number of requests to the origin. If not specified,
20349 # Cloud CDN applies request coalescing by default.
20350 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
20351 # content with the origin, or when an error is encountered when refreshing
20352 # the cache.
20353 # This setting defines the default &quot;max-stale&quot; duration for any cached
20354 # responses that do not specify a max-stale directive. Stale responses that
20355 # exceed the TTL configured here will not be served. The default limit
20356 # (max-stale) is 86400s (1 day), which will allow stale content to be
20357 # served up to this limit beyond the max-age (or s-maxage) of a cached
20358 # response.
20359 # The maximum allowed value is 604800 (1 week).
20360 # Set this to zero (0) to disable serve-while-stale.
20361 # as a count of seconds and fractions of seconds at nanosecond
20362 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
20363 # or &quot;month&quot;. Range is approximately 10,000 years.
20364 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
20365 # Durations less than one second are represented with a 0
20366 # `seconds` field and a positive `nanos` field. Must be from 0
20367 # to 999,999,999 inclusive.
20368 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
20369 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
20370 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
20371 },
20372 },
20373 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
20374 # information about the W3C recommendation for cross-origin resource sharing
20375 # (CORS), see Fetch API Living
20376 # Standard.
20377 #
20378 # Not supported when the URL map is bound to a target gRPC proxy.
20379 # information about the W3C recommendation for cross-origin resource sharing
20380 # (CORS), see Fetch API Living
20381 # Standard.
20382 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
20383 # indicates that
20384 # the actual request can include user credentials. This field translates to
20385 # the Access-Control-Allow-Credentials header.
20386 #
20387 # Default is false.
20388 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
20389 # header.
20390 &quot;A String&quot;,
20391 ],
20392 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
20393 # header.
20394 &quot;A String&quot;,
20395 ],
20396 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
20397 # more information, see regular expression syntax.
20398 #
20399 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
20400 #
20401 # Regular expressions can only be used when the loadBalancingScheme is
20402 # set to INTERNAL_SELF_MANAGED.
20403 &quot;A String&quot;,
20404 ],
20405 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
20406 #
20407 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
20408 &quot;A String&quot;,
20409 ],
20410 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
20411 # The default value is false, which indicates that the CORS
20412 # policy is in effect.
20413 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
20414 # header.
20415 &quot;A String&quot;,
20416 ],
20417 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
20418 # seconds. This field translates to the Access-Control-Max-Age
20419 # header.
20420 },
20421 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
20422 # the resiliency of clients to backend service failure. As part of fault
20423 # injection, when clients send requests to a backend service, delays can be
20424 # introduced by a load balancer on a percentage of requests before sending
20425 # those requests to the backend service. Similarly requests from clients can
20426 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
20427 # that are configured with a fault_injection_policy if:
20428 # 1. The traffic is generated by fault injection AND
20429 # 2. The fault injection is not a delay fault injection.
20430 # Fault injection is not supported with the classic Application Load Balancer
20431 # . To see which load balancers support fault injection,
20432 # see Load
20433 # balancing: Routing and traffic management features.
20434 # the resiliency of clients to backend service failure. As part of fault
20435 # injection, when clients send requests to a backend service, delays can be
20436 # introduced by the load balancer on a percentage of requests before sending
20437 # those request to the backend service. Similarly requests from clients can be
20438 # aborted by the load balancer for a percentage of requests.
20439 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
20440 # injection.
20441 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
20442 #
20443 # The value must be from 200 to 599 inclusive.
20444 #
20445 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
20446 # according to this
20447 # mapping table. HTTP status 200 is mapped to gRPC status
20448 # UNKNOWN. Injecting an OK status is currently not supported by
20449 # Traffic Director.
20450 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
20451 # that is aborted as part of fault injection.
20452 #
20453 # The value must be from 0.0 to 100.0 inclusive.
20454 },
20455 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
20456 # injection, before being sent to a backend service.
20457 # request to the backend service as part of fault injection.
20458 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
20459 # as a count of seconds and fractions of seconds at nanosecond
20460 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
20461 # or &quot;month&quot;. Range is approximately 10,000 years.
20462 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
20463 # Durations less than one second are represented with a 0
20464 # `seconds` field and a positive `nanos` field. Must be from 0
20465 # to 999,999,999 inclusive.
20466 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
20467 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
20468 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
20469 },
20470 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
20471 # which a delay is introduced as part of fault injection.
20472 #
20473 # The value must be from 0.0 to 100.0 inclusive.
20474 },
20475 },
20476 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
20477 # Unlike the timeout field where the timeout duration starts
20478 # from the time the request has been fully processed (known as*end-of-stream*),
20479 # the duration in this field is computed from the beginning of the stream
20480 # until the response has been processed, including all retries. A
20481 # stream that does not complete in this duration is closed.
20482 #
20483 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
20484 # with the route.
20485 #
20486 # This field is only allowed if the Url map is used with backend services
20487 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
20488 # as a count of seconds and fractions of seconds at nanosecond
20489 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
20490 # or &quot;month&quot;. Range is approximately 10,000 years.
20491 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
20492 # Durations less than one second are represented with a 0
20493 # `seconds` field and a positive `nanos` field. Must be from 0
20494 # to 999,999,999 inclusive.
20495 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
20496 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
20497 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
20498 },
20499 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
20500 # are shadowed to a separate mirrored backend service. The load balancer does
20501 # not wait for responses from the shadow service. Before sending traffic
20502 # to the shadow service, the host / authority header is suffixed with-shadow.
20503 #
20504 # Not supported when the URL map is bound to a target gRPC proxy that
20505 # has the validateForProxyless field set to true.
20506 # are shadowed to a separate mirrored backend service. The load balancer
20507 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
20508 # to the shadow service, the host or authority header is suffixed with-shadow.
20509 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
20510 # mirrored to.
20511 #
20512 # The backend service configured for a mirroring
20513 # policy must reference backends that are of the same type as the original
20514 # backend service matched in the URL map.
20515 #
20516 # Serverless NEG backends are not currently supported as a mirrored
20517 # backend service.
20518 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
20519 },
20520 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
20521 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
20522 # If not specified, defaults to 1.
20523 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
20524 #
20525 # If not specified, will use the timeout set in theHttpRouteAction field.
20526 # If timeout in the HttpRouteAction field is not set, this field
20527 # uses the largest timeout
20528 # among all backend services associated with the route.
20529 #
20530 # Not supported when the URL map is bound to a target gRPC proxy that
20531 # has the validateForProxyless field set to true.
20532 # as a count of seconds and fractions of seconds at nanosecond
20533 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
20534 # or &quot;month&quot;. Range is approximately 10,000 years.
20535 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
20536 # Durations less than one second are represented with a 0
20537 # `seconds` field and a positive `nanos` field. Must be from 0
20538 # to 999,999,999 inclusive.
20539 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
20540 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
20541 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
20542 },
20543 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
20544 # values are:
20545 #
20546 # - 5xx: retry is attempted if the instance or endpoint
20547 # responds with any 5xx response code, or if the instance or
20548 # endpoint does not respond at all. For example, disconnects, reset, read
20549 # timeout, connection failure, and refused streams.
20550 # - gateway-error: Similar to 5xx, but only
20551 # applies to response codes 502, 503 or504.
20552 # - connect-failure: a retry is attempted on failures
20553 # connecting to the instance or endpoint. For example, connection
20554 # timeouts.
20555 # - retriable-4xx: a retry is attempted if the instance
20556 # or endpoint responds with a 4xx response code.
20557 # The only error that you can retry is error code 409.
20558 # - refused-stream: a retry is attempted if the instance
20559 # or endpoint resets the stream with a REFUSED_STREAM error
20560 # code. This reset type indicates that it is safe to retry.
20561 # - cancelled: a retry is attempted if the gRPC status
20562 # code in the response header is set to cancelled.
20563 # - deadline-exceeded: a retry is attempted if the gRPC
20564 # status code in the response header is set todeadline-exceeded.
20565 # - internal: a retry is attempted if the gRPC
20566 # status code in the response header is set tointernal.
20567 # - resource-exhausted: a retry is attempted if the gRPC
20568 # status code in the response header is set toresource-exhausted.
20569 # - unavailable: a retry is attempted if the gRPC
20570 # status code in the response header is set tounavailable.
20571 #
20572 # Only the following codes are supported when the URL map is bound to
20573 # target gRPC proxy that has validateForProxyless field set to true.
20574 #
20575 # - cancelled
20576 # - deadline-exceeded
20577 # - internal
20578 # - resource-exhausted
20579 # - unavailable
20580 &quot;A String&quot;,
20581 ],
20582 },
20583 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
20584 # time the request has been fully processed (known as *end-of-stream*)
20585 # up until the response has been processed. Timeout includes
20586 # all retries.
20587 #
20588 # If not specified, this field uses the largest timeout among all backend
20589 # services associated with the route.
20590 #
20591 # Not supported when the URL map is bound to a target gRPC proxy that
20592 # has validateForProxyless field set to true.
20593 # as a count of seconds and fractions of seconds at nanosecond
20594 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
20595 # or &quot;month&quot;. Range is approximately 10,000 years.
20596 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
20597 # Durations less than one second are represented with a 0
20598 # `seconds` field and a positive `nanos` field. Must be from 0
20599 # to 999,999,999 inclusive.
20600 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
20601 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
20602 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
20603 },
20604 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
20605 # to the matched service.
20606 #
20607 # urlRewrite is the only action supported in UrlMaps
20608 # for classic Application Load Balancers.
20609 #
20610 # Not supported when the URL map is bound to a target gRPC proxy that
20611 # has the validateForProxyless field set to true.
20612 # backend service.
20613 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
20614 # host header is replaced with contents of hostRewrite.
20615 #
20616 # The value must be from 1 to 255 characters.
20617 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
20618 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
20619 #
20620 # The value must be from 1 to 1024 characters.
20621 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
20622 # header) using the HTTP template syntax.
20623 #
20624 # A corresponding
20625 # path_template_match must be specified. Any template variables must exist in
20626 # the path_template_match field.
20627 #
20628 #
20629 # - -At least one variable must be specified in the path_template_match
20630 # field
20631 # - You can omit variables from the rewritten URL
20632 # - The * and ** operators cannot be matched
20633 # unless they have a corresponding variable name - e.g.
20634 # {format=*} or {var=**}.
20635 #
20636 # For example, a path_template_match of /static/{format=**}
20637 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
20638 # rewrite, so that /{country}/{format}/{suffix=**} can be
20639 # rewritten as /content/{format}/{country}/{suffix}.
20640 #
20641 # At least
20642 # one non-empty routeRules[].matchRules[].path_template_match is
20643 # required.
20644 #
20645 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
20646 },
20647 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
20648 # occurs. The weights determine the fraction of traffic that flows to
20649 # their corresponding backend service. If all traffic needs to
20650 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
20651 #
20652 # After a backend service is identified and before forwarding
20653 # the request to
20654 # the backend service, advanced routing actions such as URL rewrites and
20655 # header transformations are applied depending on additional settings
20656 # specified in this HttpRouteAction.
20657 { # In contrast to a single BackendService in
20658 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
20659 # multiple backend services. The volume of traffic for each
20660 # backend service is proportional to the weight specified
20661 # in each WeightedBackendService
20662 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
20663 # resource. Before
20664 # forwarding the request to backendService, the load balancer
20665 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
20666 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
20667 # effect for the selected backendService.
20668 #
20669 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
20670 #
20671 # headerAction is not supported for load balancers that have
20672 # their loadBalancingScheme set to EXTERNAL.
20673 #
20674 # Not supported when the URL map is bound to a target gRPC proxy that
20675 # has validateForProxyless field set to true.
20676 # the request is passed along to the selected backendService.
20677 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
20678 { # Specification determining how headers are added to requests or responses.
20679 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
20680 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
20681 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
20682 # that already
20683 # exist for the header. If true, headerValue is set for the
20684 # header, discarding any values that were set for that header.
20685 #
20686 # The default value is true,
20687 # unless a variable is present in headerValue,
20688 # in which case the default value is false.
20689 # .
20690 },
20691 ],
20692 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
20693 # request before forwarding the request to the backendService.
20694 &quot;A String&quot;,
20695 ],
20696 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
20697 # client.
20698 { # Specification determining how headers are added to requests or responses.
20699 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
20700 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
20701 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
20702 # that already
20703 # exist for the header. If true, headerValue is set for the
20704 # header, discarding any values that were set for that header.
20705 #
20706 # The default value is true,
20707 # unless a variable is present in headerValue,
20708 # in which case the default value is false.
20709 # .
20710 },
20711 ],
20712 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
20713 # response before sending the response back to the client.
20714 &quot;A String&quot;,
20715 ],
20716 },
20717 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
20718 # computed asweight / (sum of all weightedBackendService weights in routeAction).
20719 #
20720 # The selection of a backend service is determined only for new traffic.
20721 # Once a user&#x27;s request has been directed to a backend service,
20722 # subsequent requests are sent to the same backend service as
20723 # determined by the backend service&#x27;s session affinity policy.
20724 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
20725 # splitting. If you do, the weighted traffic splitting configuration takes
20726 # precedence.
20727 #
20728 # The value must be from 0 to 1000.
20729 },
20730 ],
20731 },
20732 &quot;defaultService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource. This
20733 # URL is used if none of the pathRules orrouteRules defined by this PathMatcher are
20734 # matched. For example, the
20735 # following are all valid URLs to a BackendService resource:
20736 #
20737 #
20738 # - https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService
20739 # - compute/v1/projects/project/global/backendServices/backendService
20740 # - global/backendServices/backendService
20741 #
20742 #
20743 # If defaultRouteAction is also specified, advanced
20744 # routing actions, such as URL rewrites, take effect before sending the
20745 # request to the backend.
20746 #
20747 #
20748 # Only one of defaultUrlRedirect, defaultService
20749 # or defaultRouteAction.weightedBackendService can be set.
20750 #
20751 #
20752 # Authorization requires one or more of the following Google IAM permissions on the
20753 # specified resource default_service:
20754 #
20755 #
20756 # - compute.backendBuckets.use
20757 # - compute.backendServices.use
20758 &quot;defaultUrlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When none of the specified pathRules orrouteRules match, the request is redirected to a URL specified
20759 # by defaultUrlRedirect.
20760 #
20761 #
20762 # Only one of defaultUrlRedirect, defaultService
20763 # or defaultRouteAction.weightedBackendService can be set.
20764 #
20765 #
20766 # Not supported when the URL map is bound to a target gRPC proxy.
20767 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
20768 # was supplied in the request.
20769 #
20770 # The value must be from 1 to 255
20771 # characters.
20772 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
20773 # set to HTTPS.
20774 # If set to false, the URL scheme of the redirected request
20775 # remains the same as that of the request.
20776 #
20777 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
20778 #
20779 # The default is set to false.
20780 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
20781 # that was supplied in the request.
20782 #
20783 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
20784 # supplied, the path of the original request is used for the redirect.
20785 #
20786 # The value must be from 1 to 1024 characters.
20787 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
20788 # the HttpRouteRuleMatch, retaining the remaining portion
20789 # of the URL before redirecting the request.
20790 #
20791 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
20792 # supplied, the path of the original request is used for the redirect.
20793 #
20794 # The value must be from 1 to 1024 characters.
20795 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
20796 #
20797 # Supported values are:
20798 #
20799 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
20800 # to 301.
20801 # - FOUND, which corresponds to 302.
20802 # - SEE_OTHER which corresponds to 303.
20803 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
20804 # method is retained.
20805 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
20806 # method is retained.
20807 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
20808 # URL is
20809 # removed before redirecting the request. If set to false, the
20810 # query portion of the original URL is retained.
20811 #
20812 # The default is set to false.
20813 },
20814 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
20815 # create the resource.
20816 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
20817 # for the selected backend service.
20818 #
20819 # HeaderAction specified here are applied after the matchingHttpRouteRule HeaderAction and before theHeaderAction in the UrlMap
20820 #
20821 # HeaderAction is not supported for load balancers
20822 # that have
20823 # their loadBalancingScheme set to EXTERNAL.
20824 #
20825 # Not supported when the URL map is bound to a target gRPC proxy that
20826 # has validateForProxyless field set to true.
20827 # the request is passed along to the selected backendService.
20828 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
20829 { # Specification determining how headers are added to requests or responses.
20830 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
20831 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
20832 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
20833 # that already
20834 # exist for the header. If true, headerValue is set for the
20835 # header, discarding any values that were set for that header.
20836 #
20837 # The default value is true,
20838 # unless a variable is present in headerValue,
20839 # in which case the default value is false.
20840 # .
20841 },
20842 ],
20843 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
20844 # request before forwarding the request to the backendService.
20845 &quot;A String&quot;,
20846 ],
20847 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
20848 # client.
20849 { # Specification determining how headers are added to requests or responses.
20850 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
20851 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
20852 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
20853 # that already
20854 # exist for the header. If true, headerValue is set for the
20855 # header, discarding any values that were set for that header.
20856 #
20857 # The default value is true,
20858 # unless a variable is present in headerValue,
20859 # in which case the default value is false.
20860 # .
20861 },
20862 ],
20863 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
20864 # response before sending the response back to the client.
20865 &quot;A String&quot;,
20866 ],
20867 },
20868 &quot;name&quot;: &quot;A String&quot;, # The name to which this PathMatcher is referred by theHostRule.
20869 &quot;pathRules&quot;: [ # The list of path rules. Use this list instead of routeRules
20870 # when routing based on simple path matching is all that&#x27;s required. A path
20871 # rule can only include a wildcard character (*) after a
20872 # forward slash character (&quot;/&quot;).
20873 #
20874 # The order by which path rules are specified does not matter.
20875 # Matches are always done on the longest-path-first basis.
20876 #
20877 # For example: a pathRule with a path /a/b/c/* will match
20878 # before /a/b/* irrespective of the order in which those paths appear in this
20879 # list.
20880 #
20881 # Within a given pathMatcher, only one ofpathRules or routeRules must be set.
20882 { # A path-matching rule for a URL. If matched, will use the specifiedBackendService to handle the traffic arriving at this URL.
20883 &quot;customErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # customErrorResponsePolicy specifies how the Load
20884 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
20885 #
20886 # If a policy for an
20887 # error code is not configured for the PathRule, a policy for
20888 # the error code configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If
20889 # one is not specified inpathMatcher.defaultCustomErrorResponsePolicy, the policy
20890 # configured in UrlMap.defaultCustomErrorResponsePolicy takes
20891 # effect.
20892 #
20893 # For example, consider a UrlMap with the following configuration:
20894 #
20895 #
20896 # - UrlMap.defaultCustomErrorResponsePolicy are configured
20897 # with policies for 5xx and 4xx errors
20898 # - A PathRule for /coming_soon/ is configured for the error
20899 # code 404.
20900 #
20901 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
20902 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
20903 # the policy in PathRule.customErrorResponsePolicy takes
20904 # effect. If any of the requests in this example encounter a 500
20905 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
20906 #
20907 # customErrorResponsePolicy is supported only for
20908 # global external Application Load Balancers.
20909 # backend service or backend bucket responds with an error.
20910 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
20911 #
20912 # In a given policy, if you specify rules for both a range of error codes
20913 # as well as rules for specific error codes then rules with specific error
20914 # codes have a higher priority. For example, assume that you configure a rule
20915 # for 401 (Un-authorized) code, and another for all 4 series
20916 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
20917 # However if the backend service returns a 403, the rule for4xx takes effect.
20918 { # Specifies the mapping between the response code that will be returned along
20919 # with the custom error content and the response code returned by the backend
20920 # service.
20921 &quot;matchResponseCodes&quot;: [ # Valid values include:
20922 #
20923 #
20924 # - A number between 400 and 599: For example
20925 # 401 or 503, in which case the load balancer
20926 # applies the policy if the error code exactly matches this value.
20927 # - 5xx: Load Balancer will apply the policy if the
20928 # backend service responds with any response code in the range of
20929 # 500 to 599.
20930 # - 4xx: Load
20931 # Balancer will apply the policy if the backend service responds with any
20932 # response code in the range of 400 to
20933 # 499.
20934 #
20935 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
20936 &quot;A String&quot;,
20937 ],
20938 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
20939 # error content. If overrideResponseCode is not supplied, the
20940 # same response code returned by the original backend bucket or backend
20941 # service is returned to the client.
20942 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
20943 #
20944 # path must start
20945 # with a leading slash. path cannot have trailing slashes.
20946 #
20947 # If the file is not available in backendBucket or the
20948 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
20949 #
20950 # The value must
20951 # be from 1 to 1024 characters
20952 },
20953 ],
20954 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
20955 # contains the custom error content. Examples are:
20956 #
20957 #
20958 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
20959 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
20960 # - global/backendBuckets/myBackendBucket
20961 #
20962 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
20963 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
20964 #
20965 # If load balancer cannot reach
20966 # the backendBucket, a simple Not Found Error will
20967 # be returned, with the original response code (oroverrideResponseCode if configured).
20968 #
20969 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
20970 },
20971 &quot;paths&quot;: [ # The list of path patterns to match. Each must start with /
20972 # and the only place a * is allowed is at the end following
20973 # a /. The string fed to the path matcher does not include
20974 # any text after the first ? or #, and
20975 # those chars are not allowed here.
20976 &quot;A String&quot;,
20977 ],
20978 &quot;routeAction&quot;: { # In response to a matching path, the load balancer
20979 # performs advanced routing actions, such as URL rewrites and header
20980 # transformations, before forwarding the request to the selected
20981 # backend.
20982 #
20983 #
20984 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
20985 #
20986 #
20987 # URL maps for classic Application Load Balancers only support
20988 # the urlRewrite action within a path rule&#x27;srouteAction.
20989 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
20990 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
20991 # property must be specified. This policy cannot be specified if any target
20992 # backend has Identity-Aware Proxy enabled.
20993 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
20994 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
20995 # header names can be specified. The cache is bypassed for all `cacheMode`
20996 # values.
20997 &quot;A String&quot;,
20998 ],
20999 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
21000 # on the backend type: for Backend Services, the complete request URI is
21001 # used; for Backend Buckets, the request URI is used without the protocol or
21002 # host, and only query parameters known to Cloud Storage are included.
21003 # Policy defined on Route Action.
21004 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
21005 # parameters will be included. Either specify `excludedQueryParameters`
21006 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
21007 # encoded and not treated as delimiters.
21008 #
21009 # Note: This field applies to routes that use backend services. Attempting
21010 # to set it on a route that points exclusively to Backend Buckets will
21011 # result in a configuration error. For routes that point to a Backend
21012 # Bucket, use `includedQueryParameters` to define which parameters should
21013 # be part of the cache key.
21014 &quot;A String&quot;,
21015 ],
21016 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
21017 #
21018 # Note: This setting is only applicable to routes that use a Backend
21019 # Service. It does not affect requests served by a Backend Bucket, as the
21020 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
21021 # it on a route that points exclusively to Backend Buckets will result in a
21022 # configuration error.
21023 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
21024 #
21025 # Note: This setting is only applicable to routes that use a Backend
21026 # Service. It does not affect requests served by a Backend Bucket, as the
21027 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
21028 # set on a route that points exclusively to Backend Buckets will result in
21029 # a configuration error.
21030 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
21031 # `includedQueryParameters` and `excludedQueryParameters`. If neither
21032 # is set, the entire query string will be included. If false, the query
21033 # string will be excluded from the cache key entirely.
21034 #
21035 # Note: This field applies to routes that use backend services. Attempting
21036 # to set it on a route that points exclusively to Backend Buckets will
21037 # result in a configuration error. For routes that point to a Backend
21038 # Bucket, use `includedQueryParameters` to define which parameters should
21039 # be part of the cache key.
21040 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
21041 # The name=value pair will be used in the cache key Cloud CDN generates.
21042 #
21043 # Note: This setting is only applicable to routes that use a Backend
21044 # Service. It does not affect requests served by a Backend Bucket.
21045 # Attempting to set it on a route that points exclusively to Backend
21046 # Buckets will result in a configuration error. Up to 5 cookie names can be
21047 # specified.
21048 &quot;A String&quot;,
21049 ],
21050 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
21051 &quot;A String&quot;,
21052 ],
21053 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
21054 # parameters will be excluded. Either specify `includedQueryParameters`
21055 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
21056 # encoded and not treated as delimiters.
21057 &quot;A String&quot;,
21058 ],
21059 },
21060 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
21061 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
21062 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
21063 # content. This is used to clamp the max-age (or Expires) value sent to the
21064 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
21065 # is used for the response max-age directive, along with a &quot;public&quot;
21066 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
21067 # clamps the max-age from the origin (if specified), or else sets the
21068 # response max-age directive to the lesser of the `clientTtl` and
21069 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
21070 # present. The maximum allowed value is 31,622,400s (1 year). If not
21071 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
21072 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
21073 # `USE_ORIGIN_HEADERS`.
21074 # as a count of seconds and fractions of seconds at nanosecond
21075 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
21076 # or &quot;month&quot;. Range is approximately 10,000 years.
21077 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
21078 # Durations less than one second are represented with a 0
21079 # `seconds` field and a positive `nanos` field. Must be from 0
21080 # to 999,999,999 inclusive.
21081 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
21082 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
21083 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
21084 },
21085 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
21086 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
21087 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
21088 # greater than that of `maxTtl`. When the `cacheMode` is set to
21089 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
21090 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
21091 # accessed objects may be evicted from the cache before the defined TTL. If
21092 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
21093 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
21094 # `USE_ORIGIN_HEADERS`.
21095 # as a count of seconds and fractions of seconds at nanosecond
21096 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
21097 # or &quot;month&quot;. Range is approximately 10,000 years.
21098 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
21099 # Durations less than one second are represented with a 0
21100 # `seconds` field and a positive `nanos` field. Must be from 0
21101 # to 999,999,999 inclusive.
21102 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
21103 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
21104 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
21105 },
21106 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
21107 # attempt to set a max-age or s-maxage higher than this, or an Expires header
21108 # more than `maxTtl` seconds in the future will be capped at the value of
21109 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
21110 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
21111 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
21112 # Infrequently accessed objects may be evicted from the cache before the
21113 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
21114 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
21115 # mode.
21116 # as a count of seconds and fractions of seconds at nanosecond
21117 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
21118 # or &quot;month&quot;. Range is approximately 10,000 years.
21119 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
21120 # Durations less than one second are represented with a 0
21121 # `seconds` field and a positive `nanos` field. Must be from 0
21122 # to 999,999,999 inclusive.
21123 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
21124 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
21125 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
21126 },
21127 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
21128 # to apply fine-grained caching for common errors or redirects.
21129 # This can reduce the load on your origin and improve end-user
21130 # experience by reducing response latency.
21131 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
21132 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
21133 # the specified response code that lack any Cache-Control, Expires, or
21134 # Pragma: no-cache directives. When the `cacheMode` is set to
21135 # `FORCE_CACHE_ALL`, negative caching applies to all responses
21136 # with the specified response code, and overrides any caching headers. By
21137 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
21138 #
21139 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
21140 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
21141 # * 405 (Method Not Found), 501 (Not Implemented): 60s
21142 #
21143 # These defaults can be overridden in `negativeCachingPolicy`.
21144 # If not specified, Cloud CDN applies negative caching by default.
21145 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
21146 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
21147 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
21148 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
21149 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
21150 # all response codes that you wish to cache. Cloud CDN will not apply any
21151 # default negative caching when a policy exists.
21152 { # Specify CDN TTLs for response error codes.
21153 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
21154 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
21155 # specified as values, and you cannot specify a status code more than
21156 # once.
21157 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
21158 # corresponding status code.
21159 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
21160 # objects may be evicted from the cache before the defined TTL.
21161 # as a count of seconds and fractions of seconds at nanosecond
21162 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
21163 # or &quot;month&quot;. Range is approximately 10,000 years.
21164 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
21165 # Durations less than one second are represented with a 0
21166 # `seconds` field and a positive `nanos` field. Must be from 0
21167 # to 999,999,999 inclusive.
21168 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
21169 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
21170 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
21171 },
21172 },
21173 ],
21174 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
21175 # requests into a small number of requests to the origin. If not specified,
21176 # Cloud CDN applies request coalescing by default.
21177 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
21178 # content with the origin, or when an error is encountered when refreshing
21179 # the cache.
21180 # This setting defines the default &quot;max-stale&quot; duration for any cached
21181 # responses that do not specify a max-stale directive. Stale responses that
21182 # exceed the TTL configured here will not be served. The default limit
21183 # (max-stale) is 86400s (1 day), which will allow stale content to be
21184 # served up to this limit beyond the max-age (or s-maxage) of a cached
21185 # response.
21186 # The maximum allowed value is 604800 (1 week).
21187 # Set this to zero (0) to disable serve-while-stale.
21188 # as a count of seconds and fractions of seconds at nanosecond
21189 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
21190 # or &quot;month&quot;. Range is approximately 10,000 years.
21191 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
21192 # Durations less than one second are represented with a 0
21193 # `seconds` field and a positive `nanos` field. Must be from 0
21194 # to 999,999,999 inclusive.
21195 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
21196 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
21197 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
21198 },
21199 },
21200 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
21201 # information about the W3C recommendation for cross-origin resource sharing
21202 # (CORS), see Fetch API Living
21203 # Standard.
21204 #
21205 # Not supported when the URL map is bound to a target gRPC proxy.
21206 # information about the W3C recommendation for cross-origin resource sharing
21207 # (CORS), see Fetch API Living
21208 # Standard.
21209 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
21210 # indicates that
21211 # the actual request can include user credentials. This field translates to
21212 # the Access-Control-Allow-Credentials header.
21213 #
21214 # Default is false.
21215 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
21216 # header.
21217 &quot;A String&quot;,
21218 ],
21219 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
21220 # header.
21221 &quot;A String&quot;,
21222 ],
21223 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
21224 # more information, see regular expression syntax.
21225 #
21226 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
21227 #
21228 # Regular expressions can only be used when the loadBalancingScheme is
21229 # set to INTERNAL_SELF_MANAGED.
21230 &quot;A String&quot;,
21231 ],
21232 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
21233 #
21234 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
21235 &quot;A String&quot;,
21236 ],
21237 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
21238 # The default value is false, which indicates that the CORS
21239 # policy is in effect.
21240 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
21241 # header.
21242 &quot;A String&quot;,
21243 ],
21244 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
21245 # seconds. This field translates to the Access-Control-Max-Age
21246 # header.
21247 },
21248 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
21249 # the resiliency of clients to backend service failure. As part of fault
21250 # injection, when clients send requests to a backend service, delays can be
21251 # introduced by a load balancer on a percentage of requests before sending
21252 # those requests to the backend service. Similarly requests from clients can
21253 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
21254 # that are configured with a fault_injection_policy if:
21255 # 1. The traffic is generated by fault injection AND
21256 # 2. The fault injection is not a delay fault injection.
21257 # Fault injection is not supported with the classic Application Load Balancer
21258 # . To see which load balancers support fault injection,
21259 # see Load
21260 # balancing: Routing and traffic management features.
21261 # the resiliency of clients to backend service failure. As part of fault
21262 # injection, when clients send requests to a backend service, delays can be
21263 # introduced by the load balancer on a percentage of requests before sending
21264 # those request to the backend service. Similarly requests from clients can be
21265 # aborted by the load balancer for a percentage of requests.
21266 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
21267 # injection.
21268 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
21269 #
21270 # The value must be from 200 to 599 inclusive.
21271 #
21272 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
21273 # according to this
21274 # mapping table. HTTP status 200 is mapped to gRPC status
21275 # UNKNOWN. Injecting an OK status is currently not supported by
21276 # Traffic Director.
21277 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
21278 # that is aborted as part of fault injection.
21279 #
21280 # The value must be from 0.0 to 100.0 inclusive.
21281 },
21282 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
21283 # injection, before being sent to a backend service.
21284 # request to the backend service as part of fault injection.
21285 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
21286 # as a count of seconds and fractions of seconds at nanosecond
21287 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
21288 # or &quot;month&quot;. Range is approximately 10,000 years.
21289 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
21290 # Durations less than one second are represented with a 0
21291 # `seconds` field and a positive `nanos` field. Must be from 0
21292 # to 999,999,999 inclusive.
21293 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
21294 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
21295 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
21296 },
21297 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
21298 # which a delay is introduced as part of fault injection.
21299 #
21300 # The value must be from 0.0 to 100.0 inclusive.
21301 },
21302 },
21303 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
21304 # Unlike the timeout field where the timeout duration starts
21305 # from the time the request has been fully processed (known as*end-of-stream*),
21306 # the duration in this field is computed from the beginning of the stream
21307 # until the response has been processed, including all retries. A
21308 # stream that does not complete in this duration is closed.
21309 #
21310 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
21311 # with the route.
21312 #
21313 # This field is only allowed if the Url map is used with backend services
21314 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
21315 # as a count of seconds and fractions of seconds at nanosecond
21316 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
21317 # or &quot;month&quot;. Range is approximately 10,000 years.
21318 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
21319 # Durations less than one second are represented with a 0
21320 # `seconds` field and a positive `nanos` field. Must be from 0
21321 # to 999,999,999 inclusive.
21322 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
21323 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
21324 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
21325 },
21326 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
21327 # are shadowed to a separate mirrored backend service. The load balancer does
21328 # not wait for responses from the shadow service. Before sending traffic
21329 # to the shadow service, the host / authority header is suffixed with-shadow.
21330 #
21331 # Not supported when the URL map is bound to a target gRPC proxy that
21332 # has the validateForProxyless field set to true.
21333 # are shadowed to a separate mirrored backend service. The load balancer
21334 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
21335 # to the shadow service, the host or authority header is suffixed with-shadow.
21336 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
21337 # mirrored to.
21338 #
21339 # The backend service configured for a mirroring
21340 # policy must reference backends that are of the same type as the original
21341 # backend service matched in the URL map.
21342 #
21343 # Serverless NEG backends are not currently supported as a mirrored
21344 # backend service.
21345 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
21346 },
21347 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
21348 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
21349 # If not specified, defaults to 1.
21350 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
21351 #
21352 # If not specified, will use the timeout set in theHttpRouteAction field.
21353 # If timeout in the HttpRouteAction field is not set, this field
21354 # uses the largest timeout
21355 # among all backend services associated with the route.
21356 #
21357 # Not supported when the URL map is bound to a target gRPC proxy that
21358 # has the validateForProxyless field set to true.
21359 # as a count of seconds and fractions of seconds at nanosecond
21360 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
21361 # or &quot;month&quot;. Range is approximately 10,000 years.
21362 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
21363 # Durations less than one second are represented with a 0
21364 # `seconds` field and a positive `nanos` field. Must be from 0
21365 # to 999,999,999 inclusive.
21366 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
21367 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
21368 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
21369 },
21370 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
21371 # values are:
21372 #
21373 # - 5xx: retry is attempted if the instance or endpoint
21374 # responds with any 5xx response code, or if the instance or
21375 # endpoint does not respond at all. For example, disconnects, reset, read
21376 # timeout, connection failure, and refused streams.
21377 # - gateway-error: Similar to 5xx, but only
21378 # applies to response codes 502, 503 or504.
21379 # - connect-failure: a retry is attempted on failures
21380 # connecting to the instance or endpoint. For example, connection
21381 # timeouts.
21382 # - retriable-4xx: a retry is attempted if the instance
21383 # or endpoint responds with a 4xx response code.
21384 # The only error that you can retry is error code 409.
21385 # - refused-stream: a retry is attempted if the instance
21386 # or endpoint resets the stream with a REFUSED_STREAM error
21387 # code. This reset type indicates that it is safe to retry.
21388 # - cancelled: a retry is attempted if the gRPC status
21389 # code in the response header is set to cancelled.
21390 # - deadline-exceeded: a retry is attempted if the gRPC
21391 # status code in the response header is set todeadline-exceeded.
21392 # - internal: a retry is attempted if the gRPC
21393 # status code in the response header is set tointernal.
21394 # - resource-exhausted: a retry is attempted if the gRPC
21395 # status code in the response header is set toresource-exhausted.
21396 # - unavailable: a retry is attempted if the gRPC
21397 # status code in the response header is set tounavailable.
21398 #
21399 # Only the following codes are supported when the URL map is bound to
21400 # target gRPC proxy that has validateForProxyless field set to true.
21401 #
21402 # - cancelled
21403 # - deadline-exceeded
21404 # - internal
21405 # - resource-exhausted
21406 # - unavailable
21407 &quot;A String&quot;,
21408 ],
21409 },
21410 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
21411 # time the request has been fully processed (known as *end-of-stream*)
21412 # up until the response has been processed. Timeout includes
21413 # all retries.
21414 #
21415 # If not specified, this field uses the largest timeout among all backend
21416 # services associated with the route.
21417 #
21418 # Not supported when the URL map is bound to a target gRPC proxy that
21419 # has validateForProxyless field set to true.
21420 # as a count of seconds and fractions of seconds at nanosecond
21421 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
21422 # or &quot;month&quot;. Range is approximately 10,000 years.
21423 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
21424 # Durations less than one second are represented with a 0
21425 # `seconds` field and a positive `nanos` field. Must be from 0
21426 # to 999,999,999 inclusive.
21427 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
21428 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
21429 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
21430 },
21431 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
21432 # to the matched service.
21433 #
21434 # urlRewrite is the only action supported in UrlMaps
21435 # for classic Application Load Balancers.
21436 #
21437 # Not supported when the URL map is bound to a target gRPC proxy that
21438 # has the validateForProxyless field set to true.
21439 # backend service.
21440 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
21441 # host header is replaced with contents of hostRewrite.
21442 #
21443 # The value must be from 1 to 255 characters.
21444 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
21445 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
21446 #
21447 # The value must be from 1 to 1024 characters.
21448 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
21449 # header) using the HTTP template syntax.
21450 #
21451 # A corresponding
21452 # path_template_match must be specified. Any template variables must exist in
21453 # the path_template_match field.
21454 #
21455 #
21456 # - -At least one variable must be specified in the path_template_match
21457 # field
21458 # - You can omit variables from the rewritten URL
21459 # - The * and ** operators cannot be matched
21460 # unless they have a corresponding variable name - e.g.
21461 # {format=*} or {var=**}.
21462 #
21463 # For example, a path_template_match of /static/{format=**}
21464 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
21465 # rewrite, so that /{country}/{format}/{suffix=**} can be
21466 # rewritten as /content/{format}/{country}/{suffix}.
21467 #
21468 # At least
21469 # one non-empty routeRules[].matchRules[].path_template_match is
21470 # required.
21471 #
21472 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
21473 },
21474 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
21475 # occurs. The weights determine the fraction of traffic that flows to
21476 # their corresponding backend service. If all traffic needs to
21477 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
21478 #
21479 # After a backend service is identified and before forwarding
21480 # the request to
21481 # the backend service, advanced routing actions such as URL rewrites and
21482 # header transformations are applied depending on additional settings
21483 # specified in this HttpRouteAction.
21484 { # In contrast to a single BackendService in
21485 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
21486 # multiple backend services. The volume of traffic for each
21487 # backend service is proportional to the weight specified
21488 # in each WeightedBackendService
21489 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
21490 # resource. Before
21491 # forwarding the request to backendService, the load balancer
21492 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
21493 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
21494 # effect for the selected backendService.
21495 #
21496 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
21497 #
21498 # headerAction is not supported for load balancers that have
21499 # their loadBalancingScheme set to EXTERNAL.
21500 #
21501 # Not supported when the URL map is bound to a target gRPC proxy that
21502 # has validateForProxyless field set to true.
21503 # the request is passed along to the selected backendService.
21504 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
21505 { # Specification determining how headers are added to requests or responses.
21506 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
21507 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
21508 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
21509 # that already
21510 # exist for the header. If true, headerValue is set for the
21511 # header, discarding any values that were set for that header.
21512 #
21513 # The default value is true,
21514 # unless a variable is present in headerValue,
21515 # in which case the default value is false.
21516 # .
21517 },
21518 ],
21519 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
21520 # request before forwarding the request to the backendService.
21521 &quot;A String&quot;,
21522 ],
21523 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
21524 # client.
21525 { # Specification determining how headers are added to requests or responses.
21526 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
21527 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
21528 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
21529 # that already
21530 # exist for the header. If true, headerValue is set for the
21531 # header, discarding any values that were set for that header.
21532 #
21533 # The default value is true,
21534 # unless a variable is present in headerValue,
21535 # in which case the default value is false.
21536 # .
21537 },
21538 ],
21539 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
21540 # response before sending the response back to the client.
21541 &quot;A String&quot;,
21542 ],
21543 },
21544 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
21545 # computed asweight / (sum of all weightedBackendService weights in routeAction).
21546 #
21547 # The selection of a backend service is determined only for new traffic.
21548 # Once a user&#x27;s request has been directed to a backend service,
21549 # subsequent requests are sent to the same backend service as
21550 # determined by the backend service&#x27;s session affinity policy.
21551 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
21552 # splitting. If you do, the weighted traffic splitting configuration takes
21553 # precedence.
21554 #
21555 # The value must be from 0 to 1000.
21556 },
21557 ],
21558 },
21559 &quot;service&quot;: &quot;A String&quot;, # The full or partial URL of the backend service resource to which traffic
21560 # is directed if this rule is matched. If routeAction is
21561 # also specified, advanced routing actions, such as URL rewrites,
21562 # take effect before sending the request to the backend.
21563 #
21564 #
21565 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
21566 &quot;urlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When a path pattern is matched, the request is redirected to a URL
21567 # specified by urlRedirect.
21568 #
21569 #
21570 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
21571 #
21572 #
21573 # Not supported when the URL map is bound to a target gRPC proxy.
21574 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
21575 # was supplied in the request.
21576 #
21577 # The value must be from 1 to 255
21578 # characters.
21579 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
21580 # set to HTTPS.
21581 # If set to false, the URL scheme of the redirected request
21582 # remains the same as that of the request.
21583 #
21584 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
21585 #
21586 # The default is set to false.
21587 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
21588 # that was supplied in the request.
21589 #
21590 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
21591 # supplied, the path of the original request is used for the redirect.
21592 #
21593 # The value must be from 1 to 1024 characters.
21594 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
21595 # the HttpRouteRuleMatch, retaining the remaining portion
21596 # of the URL before redirecting the request.
21597 #
21598 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
21599 # supplied, the path of the original request is used for the redirect.
21600 #
21601 # The value must be from 1 to 1024 characters.
21602 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
21603 #
21604 # Supported values are:
21605 #
21606 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
21607 # to 301.
21608 # - FOUND, which corresponds to 302.
21609 # - SEE_OTHER which corresponds to 303.
21610 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
21611 # method is retained.
21612 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
21613 # method is retained.
21614 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
21615 # URL is
21616 # removed before redirecting the request. If set to false, the
21617 # query portion of the original URL is retained.
21618 #
21619 # The default is set to false.
21620 },
21621 },
21622 ],
21623 &quot;routeRules&quot;: [ # The list of HTTP route rules. Use this list instead ofpathRules when advanced route matching and routing actions are
21624 # desired. routeRules are evaluated in order of priority, from
21625 # the lowest to highest number.
21626 #
21627 # Within a given pathMatcher, you can set only one ofpathRules or routeRules.
21628 { # The HttpRouteRule setting specifies how to match an HTTP request
21629 # and the corresponding routing action that load balancing proxies perform.
21630 &quot;customErrorResponsePolicy&quot;: { # Specifies the custom error response policy that must be applied when the # customErrorResponsePolicy specifies how the Load
21631 # Balancer returns error responses when BackendServiceorBackendBucket responds with an error.
21632 #
21633 # If a policy for an
21634 # error code is not configured for the RouteRule, a policy for
21635 # the error code configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If
21636 # one is not specified inpathMatcher.defaultCustomErrorResponsePolicy, the policy
21637 # configured in UrlMap.defaultCustomErrorResponsePolicy takes
21638 # effect.
21639 #
21640 # For example, consider a UrlMap with the following configuration:
21641 #
21642 #
21643 # - UrlMap.defaultCustomErrorResponsePolicy are configured
21644 # with policies for 5xx and 4xx errors
21645 # - A RouteRule for /coming_soon/ is configured for the
21646 # error code 404.
21647 #
21648 # If the request is for www.myotherdomain.com and a404 is encountered, the policy underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for the requestwww.example.com/current_events/, the pathMatcher&#x27;s policy
21649 # takes effect. If however, the request forwww.example.com/coming_soon/ encounters a 404,
21650 # the policy in RouteRule.customErrorResponsePolicy takes
21651 # effect. If any of the requests in this example encounter a 500
21652 # error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect.
21653 #
21654 # When
21655 # used in conjunction withrouteRules.routeAction.retryPolicy, retries take
21656 # precedence. Only once all retries are exhausted, thecustomErrorResponsePolicy is applied. While attempting
21657 # a retry, if load balancer is successful in reaching the
21658 # service, the customErrorResponsePolicy is ignored and
21659 # the response from the service is returned to the client.
21660 #
21661 # customErrorResponsePolicy is supported only for
21662 # global external Application Load Balancers.
21663 # backend service or backend bucket responds with an error.
21664 &quot;errorResponseRules&quot;: [ # Specifies rules for returning error responses.
21665 #
21666 # In a given policy, if you specify rules for both a range of error codes
21667 # as well as rules for specific error codes then rules with specific error
21668 # codes have a higher priority. For example, assume that you configure a rule
21669 # for 401 (Un-authorized) code, and another for all 4 series
21670 # error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.
21671 # However if the backend service returns a 403, the rule for4xx takes effect.
21672 { # Specifies the mapping between the response code that will be returned along
21673 # with the custom error content and the response code returned by the backend
21674 # service.
21675 &quot;matchResponseCodes&quot;: [ # Valid values include:
21676 #
21677 #
21678 # - A number between 400 and 599: For example
21679 # 401 or 503, in which case the load balancer
21680 # applies the policy if the error code exactly matches this value.
21681 # - 5xx: Load Balancer will apply the policy if the
21682 # backend service responds with any response code in the range of
21683 # 500 to 599.
21684 # - 4xx: Load
21685 # Balancer will apply the policy if the backend service responds with any
21686 # response code in the range of 400 to
21687 # 499.
21688 #
21689 # Values must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.
21690 &quot;A String&quot;,
21691 ],
21692 &quot;overrideResponseCode&quot;: 42, # The HTTP status code returned with the response containing the custom
21693 # error content. If overrideResponseCode is not supplied, the
21694 # same response code returned by the original backend bucket or backend
21695 # service is returned to the client.
21696 &quot;path&quot;: &quot;A String&quot;, # The full path to a file within backendBucket . For example:/errors/defaultError.html
21697 #
21698 # path must start
21699 # with a leading slash. path cannot have trailing slashes.
21700 #
21701 # If the file is not available in backendBucket or the
21702 # load balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client.
21703 #
21704 # The value must
21705 # be from 1 to 1024 characters
21706 },
21707 ],
21708 &quot;errorService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendBucket resource that
21709 # contains the custom error content. Examples are:
21710 #
21711 #
21712 # - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
21713 # - compute/v1/projects/project/global/backendBuckets/myBackendBucket
21714 # - global/backendBuckets/myBackendBucket
21715 #
21716 # If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,
21717 # an errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService.
21718 #
21719 # If load balancer cannot reach
21720 # the backendBucket, a simple Not Found Error will
21721 # be returned, with the original response code (oroverrideResponseCode if configured).
21722 #
21723 # errorService is not supported for internal or regionalHTTP/HTTPS load balancers.
21724 },
21725 &quot;description&quot;: &quot;A String&quot;, # The short description conveying the intent of this routeRule.
21726 #
21727 #
21728 # The description can have a maximum length of 1024 characters.
21729 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take effect
21730 # for the selected backendService.
21731 #
21732 # The headerAction value specified here is applied before the
21733 # matching pathMatchers[].headerAction and afterpathMatchers[].routeRules[].routeAction.weightedBackendService.backendServiceWeightAction[].headerAction
21734 #
21735 # HeaderAction is not supported for load balancers
21736 # that have
21737 # their loadBalancingScheme set to EXTERNAL.
21738 #
21739 # Not supported when the URL map is bound to a target gRPC proxy that
21740 # has validateForProxyless field set to true.
21741 # the request is passed along to the selected backendService.
21742 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
21743 { # Specification determining how headers are added to requests or responses.
21744 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
21745 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
21746 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
21747 # that already
21748 # exist for the header. If true, headerValue is set for the
21749 # header, discarding any values that were set for that header.
21750 #
21751 # The default value is true,
21752 # unless a variable is present in headerValue,
21753 # in which case the default value is false.
21754 # .
21755 },
21756 ],
21757 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
21758 # request before forwarding the request to the backendService.
21759 &quot;A String&quot;,
21760 ],
21761 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
21762 # client.
21763 { # Specification determining how headers are added to requests or responses.
21764 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
21765 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
21766 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
21767 # that already
21768 # exist for the header. If true, headerValue is set for the
21769 # header, discarding any values that were set for that header.
21770 #
21771 # The default value is true,
21772 # unless a variable is present in headerValue,
21773 # in which case the default value is false.
21774 # .
21775 },
21776 ],
21777 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
21778 # response before sending the response back to the client.
21779 &quot;A String&quot;,
21780 ],
21781 },
21782 &quot;matchRules&quot;: [ # The list of criteria for matching attributes of a request to thisrouteRule. This list has OR semantics: the request matches
21783 # this routeRule when any of thematchRules are satisfied. However predicates within
21784 # a given matchRule have AND semantics. All predicates
21785 # within a matchRule must match for the request to
21786 # match the rule.
21787 { # HttpRouteRuleMatch specifies a set of criteria for matching
21788 # requests to an HttpRouteRule. All specified criteria must
21789 # be satisfied for a match to occur.
21790 &quot;fullPathMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the path of the
21791 # request must exactly match the value specified infullPathMatch after removing any query parameters and anchor
21792 # that may be part of the original URL.
21793 #
21794 # fullPathMatch must be from 1 to 1024 characters.
21795 #
21796 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be
21797 # specified.
21798 &quot;headerMatches&quot;: [ # Specifies a list of header match criteria, all of which must match
21799 # corresponding headers in the request.
21800 { # matchRule criteria for request header matches.
21801 &quot;exactMatch&quot;: &quot;A String&quot;, # The value should exactly match contents of exactMatch.
21802 #
21803 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
21804 &quot;headerName&quot;: &quot;A String&quot;, # The name of the HTTP header to match.
21805 #
21806 # For matching against the HTTP request&#x27;s authority, use a headerMatch
21807 # with the header name &quot;:authority&quot;.
21808 #
21809 # For matching a request&#x27;s method, use the headerName &quot;:method&quot;.
21810 #
21811 # When the URL map is bound to a target gRPC proxy that has
21812 # the validateForProxyless field set to true, only
21813 # non-binary
21814 # user-specified custom metadata and the `content-type` header are supported.
21815 # The following transport-level headers cannot be used in header matching
21816 # rules:
21817 # `:authority`, `:method`, `:path`, `:scheme`, `user-agent`,
21818 # `accept-encoding`, `content-encoding`, `grpc-accept-encoding`,
21819 # `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags-bin`,
21820 # `grpc-timeout` and `grpc-trace-bin`.
21821 &quot;invertMatch&quot;: True or False, # If set to false, the headerMatch is considered a
21822 # match if the preceding match criteria are met. If set to true,
21823 # the headerMatch is considered a match if the preceding
21824 # match criteria are NOT met.
21825 #
21826 # The default setting is false.
21827 &quot;prefixMatch&quot;: &quot;A String&quot;, # The value of the header must start with the contents ofprefixMatch.
21828 #
21829 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
21830 &quot;presentMatch&quot;: True or False, # A header with the contents of headerName must exist. The
21831 # match takes place whether or not the request&#x27;s header has a value.
21832 #
21833 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
21834 &quot;rangeMatch&quot;: { # HttpRouteRuleMatch criteria for field values that must stay # The header value must be an integer and its value must be in the range
21835 # specified in rangeMatch. If the header does not contain an
21836 # integer, number or is empty, the match fails.
21837 #
21838 # For example for a range [-5, 0]
21839 #
21840 #
21841 # - -3 will match.
21842 # - 0 will not match.
21843 # - 0.25 will not match.
21844 # - -3someString will not match.
21845 #
21846 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
21847 #
21848 # rangeMatch is not supported for load balancers
21849 # that have loadBalancingScheme set to EXTERNAL.
21850 # within the specified integer range.
21851 &quot;rangeEnd&quot;: &quot;A String&quot;, # The end of the range (exclusive) in signed long integer format.
21852 &quot;rangeStart&quot;: &quot;A String&quot;, # The start of the range (inclusive) in signed long integer format.
21853 },
21854 &quot;regexMatch&quot;: &quot;A String&quot;, # The value of the header must match the regular expression specified inregexMatch.
21855 # For more information about regular expression syntax, see Syntax.
21856 #
21857 # For matching against a port specified in the HTTP request, use a
21858 # headerMatch with headerName set to PORT and a regular expression that
21859 # satisfies the RFC2616 Host header&#x27;s port specifier.
21860 #
21861 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
21862 #
21863 # Regular expressions can only be used when the loadBalancingScheme is
21864 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
21865 # (regional scope) or INTERNAL_MANAGED.
21866 &quot;suffixMatch&quot;: &quot;A String&quot;, # The value of the header must end with the contents ofsuffixMatch.
21867 #
21868 # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
21869 },
21870 ],
21871 &quot;ignoreCase&quot;: True or False, # Specifies that prefixMatch and fullPathMatch
21872 # matches are case sensitive.
21873 #
21874 # The default value is false.
21875 #
21876 # ignoreCase must not be used with regexMatch.
21877 #
21878 # Not supported when the URL map is bound to a target gRPC proxy.
21879 &quot;metadataFilters&quot;: [ # Opaque filter criteria used by the load balancer to restrict routing
21880 # configuration to a limited set of xDS
21881 # compliant clients. In their xDS requests to the load balancer, xDS clients
21882 # present node
21883 # metadata. When there is a match, the relevant routing configuration
21884 # is made available to those proxies.
21885 #
21886 # For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least one of thefilterLabels must match the corresponding label provided in
21887 # the metadata. If its filterMatchCriteria is set to
21888 # MATCH_ALL, then all of its filterLabels must match with
21889 # corresponding labels provided in the metadata. If multiple
21890 # metadata filters are specified, all of them need to be
21891 # satisfied in order to be considered a match.
21892 #
21893 # metadataFilters specified here is applied after those
21894 # specified in ForwardingRule that refers to theUrlMap this HttpRouteRuleMatch belongs to.
21895 #
21896 # metadataFilters only applies to load balancers that haveloadBalancingScheme set toINTERNAL_SELF_MANAGED.
21897 #
21898 # Not supported when the URL map is bound to a target gRPC proxy that
21899 # has validateForProxyless field set to true.
21900 { # Opaque filter criteria used by load balancers to restrict routing
21901 # configuration to a limited set of load balancing proxies. Proxies and
21902 # sidecars involved in load balancing would typically present metadata to the
21903 # load balancers that need to match criteria specified here. If a match takes
21904 # place, the relevant configuration is made available to those
21905 # proxies.
21906 #
21907 # For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least
21908 # one of thefilterLabels must match the corresponding label provided in
21909 # the metadata. If its filterMatchCriteria is set to
21910 # MATCH_ALL, then all of its filterLabels must match with
21911 # corresponding labels provided in the metadata.
21912 #
21913 # An example for using metadataFilters would be: if
21914 # load balancing involves
21915 # Envoys, they receive routing configuration when values inmetadataFilters match values supplied in of their XDS requests to loadbalancers.
21916 &quot;filterLabels&quot;: [ # The list of label value pairs that must match labels in the provided
21917 # metadata based on filterMatchCriteria
21918 #
21919 # This list must not be empty and can have at the most 64 entries.
21920 { # MetadataFilter label name value pairs that are expected
21921 # to match corresponding labels presented as metadata to the load balancer.
21922 &quot;name&quot;: &quot;A String&quot;, # Name of metadata label.
21923 #
21924 # The name can have a maximum length of 1024 characters and must be at
21925 # least 1 character long.
21926 &quot;value&quot;: &quot;A String&quot;, # The value of the label must match the specified value.
21927 #
21928 # value can have a maximum length of 1024 characters.
21929 },
21930 ],
21931 &quot;filterMatchCriteria&quot;: &quot;A String&quot;, # Specifies how individual filter label matches
21932 # within the list of filterLabels and contributes toward the
21933 # overall metadataFilter match.
21934 #
21935 # Supported values are:
21936 #
21937 # - MATCH_ANY: at least one of the filterLabels
21938 # must have a matching label in the provided metadata.
21939 # - MATCH_ALL: all filterLabels must have
21940 # matching labels in the provided metadata.
21941 },
21942 ],
21943 &quot;pathTemplateMatch&quot;: &quot;A String&quot;, # If specified, this field defines a path template pattern that must match
21944 # the :path header after the query string is removed.
21945 #
21946 # A path template pattern can include variables and wildcards.
21947 # Variables are enclosed in curly braces, for example{variable_name}. Wildcards include * that
21948 # matches a single path segment, and ** that matches zero or
21949 # more path segments. The pattern must follow these rules:
21950 #
21951 #
21952 # - The value must be between 1 and 1024 characters.
21953 # - The pattern must start with a leading slash (&quot;/&quot;).
21954 # - No more than 5 operators (variables or wildcards) may appear in
21955 # the pattern.
21956 #
21957 # Precisely one ofprefixMatch, fullPathMatch,regexMatch, or pathTemplateMatch must be
21958 # set.
21959 &quot;prefixMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the request&#x27;s
21960 # path must begin with the specified prefixMatch.prefixMatch must begin with a /.
21961 #
21962 # The value must be from 1 to 1024 characters.
21963 #
21964 # The * character inside a prefix match is
21965 # treated as a literal character, not as a wildcard.
21966 #
21967 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match can be
21968 # used within a matchRule.
21969 &quot;queryParameterMatches&quot;: [ # Specifies a list of query parameter match criteria, all of which must
21970 # match corresponding query parameters in the request.
21971 #
21972 # Not supported when the URL map is bound to a target gRPC proxy.
21973 { # HttpRouteRuleMatch criteria for a request&#x27;s query parameter.
21974 &quot;exactMatch&quot;: &quot;A String&quot;, # The queryParameterMatch matches if the value of the
21975 # parameter exactly matches the contents of exactMatch.
21976 #
21977 # Only one of presentMatch, exactMatch, orregexMatch must be set.
21978 &quot;name&quot;: &quot;A String&quot;, # The name of the query parameter to match. The query parameter must exist in
21979 # the request, in the absence of which the request match fails.
21980 &quot;presentMatch&quot;: True or False, # Specifies that the queryParameterMatch matches if the
21981 # request contains the query parameter, irrespective of whether the
21982 # parameter has a value or not.
21983 #
21984 # Only one of presentMatch, exactMatch, orregexMatch must be set.
21985 &quot;regexMatch&quot;: &quot;A String&quot;, # The queryParameterMatch matches if the value of the
21986 # parameter matches the regular expression specified byregexMatch. For
21987 # more information about regular expression syntax, see Syntax.
21988 #
21989 # Only one of presentMatch, exactMatch, orregexMatch must be set.
21990 #
21991 # Regular expressions can only be used when the loadBalancingScheme is
21992 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
21993 # (regional scope) or INTERNAL_MANAGED.
21994 },
21995 ],
21996 &quot;regexMatch&quot;: &quot;A String&quot;, # For satisfying the matchRule condition, the path of the
21997 # request must satisfy the regular expression specified inregexMatch after removing any query parameters and anchor
21998 # supplied with the original URL. For
21999 # more information about regular expression syntax, see Syntax.
22000 #
22001 # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be
22002 # specified.
22003 #
22004 # Regular expressions can only be used when the loadBalancingScheme is
22005 # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
22006 # (regional scope) or INTERNAL_MANAGED.
22007 },
22008 ],
22009 &quot;priority&quot;: 42, # For routeRules within a given pathMatcher,
22010 # priority determines the order in which a load balancer interpretsrouteRules. RouteRules are evaluated in order
22011 # of priority, from the lowest to highest number. The priority of a
22012 # rule decreases as its number increases (1, 2, 3, N+1). The first rule
22013 # that matches the request is applied.
22014 #
22015 #
22016 # You cannot configure two or more routeRules with the same priority.
22017 # Priority for each rule must be set to a number from 0 to 2147483647
22018 # inclusive.
22019 #
22020 #
22021 # Priority numbers can have gaps, which enable you to add or remove rules
22022 # in the future without affecting the rest of the rules. For example, 1, 2,
22023 # 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you
22024 # could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future
22025 # without any impact on existing rules.
22026 &quot;routeAction&quot;: { # In response to a matching matchRule, the load balancer
22027 # performs advanced routing actions, such as URL rewrites and header
22028 # transformations, before forwarding the request to the selected backend.
22029 #
22030 #
22031 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
22032 #
22033 #
22034 # URL maps for classic Application Load Balancers only support
22035 # the urlRewrite action within a route rule&#x27;srouteAction.
22036 &quot;cachePolicy&quot;: { # Message containing CachePolicy configuration for URL Map&#x27;s Route Action. # Specifies the cache policy configuration for matched traffic. Available
22037 # only for Global `EXTERNAL_MANAGED` load balancer schemes. At least one
22038 # property must be specified. This policy cannot be specified if any target
22039 # backend has Identity-Aware Proxy enabled.
22040 &quot;cacheBypassRequestHeaderNames&quot;: [ # Bypass the cache when the specified request headers are matched by name,
22041 # e.g. Pragma or Authorization headers. Values are case-insensitive. Up to 5
22042 # header names can be specified. The cache is bypassed for all `cacheMode`
22043 # values.
22044 &quot;A String&quot;,
22045 ],
22046 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for Cache # The cache key configuration. If not specified, the default behavior depends
22047 # on the backend type: for Backend Services, the complete request URI is
22048 # used; for Backend Buckets, the request URI is used without the protocol or
22049 # host, and only query parameters known to Cloud Storage are included.
22050 # Policy defined on Route Action.
22051 &quot;excludedQueryParameters&quot;: [ # Names of query string parameters to exclude in cache keys. All other
22052 # parameters will be included. Either specify `excludedQueryParameters`
22053 # or `includedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
22054 # encoded and not treated as delimiters.
22055 #
22056 # Note: This field applies to routes that use backend services. Attempting
22057 # to set it on a route that points exclusively to Backend Buckets will
22058 # result in a configuration error. For routes that point to a Backend
22059 # Bucket, use `includedQueryParameters` to define which parameters should
22060 # be part of the cache key.
22061 &quot;A String&quot;,
22062 ],
22063 &quot;includeHost&quot;: True or False, # If true, requests to different hosts will be cached separately.
22064 #
22065 # Note: This setting is only applicable to routes that use a Backend
22066 # Service. It does not affect requests served by a Backend Bucket, as the
22067 # host is never included in a Backend Bucket&#x27;s cache key. Attempting to set
22068 # it on a route that points exclusively to Backend Buckets will result in a
22069 # configuration error.
22070 &quot;includeProtocol&quot;: True or False, # If true, http and https requests will be cached separately.
22071 #
22072 # Note: This setting is only applicable to routes that use a Backend
22073 # Service. It does not affect requests served by a Backend Bucket, as the
22074 # protocol is never included in a Backend Bucket&#x27;s cache key. Attempting to
22075 # set on a route that points exclusively to Backend Buckets will result in
22076 # a configuration error.
22077 &quot;includeQueryString&quot;: True or False, # If true, include query string parameters in the cache key according to
22078 # `includedQueryParameters` and `excludedQueryParameters`. If neither
22079 # is set, the entire query string will be included. If false, the query
22080 # string will be excluded from the cache key entirely.
22081 #
22082 # Note: This field applies to routes that use backend services. Attempting
22083 # to set it on a route that points exclusively to Backend Buckets will
22084 # result in a configuration error. For routes that point to a Backend
22085 # Bucket, use `includedQueryParameters` to define which parameters should
22086 # be part of the cache key.
22087 &quot;includedCookieNames&quot;: [ # Allows HTTP cookies (by name) to be used in the cache key.
22088 # The name=value pair will be used in the cache key Cloud CDN generates.
22089 #
22090 # Note: This setting is only applicable to routes that use a Backend
22091 # Service. It does not affect requests served by a Backend Bucket.
22092 # Attempting to set it on a route that points exclusively to Backend
22093 # Buckets will result in a configuration error. Up to 5 cookie names can be
22094 # specified.
22095 &quot;A String&quot;,
22096 ],
22097 &quot;includedHeaderNames&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
22098 &quot;A String&quot;,
22099 ],
22100 &quot;includedQueryParameters&quot;: [ # Names of query string parameters to include in cache keys. All other
22101 # parameters will be excluded. Either specify `includedQueryParameters`
22102 # or `excludedQueryParameters`, not both. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent
22103 # encoded and not treated as delimiters.
22104 &quot;A String&quot;,
22105 ],
22106 },
22107 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this route. If not
22108 # specified, Cloud CDN uses `CACHE_ALL_STATIC` mode.
22109 &quot;clientTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a separate client (e.g. browser client) maximum TTL for cached
22110 # content. This is used to clamp the max-age (or Expires) value sent to the
22111 # client. With `FORCE_CACHE_ALL`, the lesser of `clientTtl` and `defaultTtl`
22112 # is used for the response max-age directive, along with a &quot;public&quot;
22113 # directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl`
22114 # clamps the max-age from the origin (if specified), or else sets the
22115 # response max-age directive to the lesser of the `clientTtl` and
22116 # `defaultTtl`, and also ensures a &quot;public&quot; cache-control directive is
22117 # present. The maximum allowed value is 31,622,400s (1 year). If not
22118 # specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` mode.
22119 # Cannot exceed `maxTtl`. Cannot be specified when `cacheMode` is
22120 # `USE_ORIGIN_HEADERS`.
22121 # as a count of seconds and fractions of seconds at nanosecond
22122 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
22123 # or &quot;month&quot;. Range is approximately 10,000 years.
22124 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
22125 # Durations less than one second are represented with a 0
22126 # `seconds` field and a positive `nanos` field. Must be from 0
22127 # to 999,999,999 inclusive.
22128 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
22129 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
22130 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
22131 },
22132 &quot;defaultTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the default TTL for cached content for responses that do not have
22133 # an existing valid TTL (max-age or s-maxage). Setting a TTL of &quot;0&quot; means
22134 # &quot;always revalidate&quot;. The value of `defaultTtl` cannot be set to a value
22135 # greater than that of `maxTtl`. When the `cacheMode` is set to
22136 # `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all
22137 # responses. The maximum allowed value is 31,622,400s (1 year). Infrequently
22138 # accessed objects may be evicted from the cache before the defined TTL. If
22139 # not specified, Cloud CDN uses 3600s (1 hour) for `CACHE_ALL_STATIC` and
22140 # `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is
22141 # `USE_ORIGIN_HEADERS`.
22142 # as a count of seconds and fractions of seconds at nanosecond
22143 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
22144 # or &quot;month&quot;. Range is approximately 10,000 years.
22145 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
22146 # Durations less than one second are represented with a 0
22147 # `seconds` field and a positive `nanos` field. Must be from 0
22148 # to 999,999,999 inclusive.
22149 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
22150 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
22151 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
22152 },
22153 &quot;maxTtl&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum allowed TTL for cached content. Cache directives that
22154 # attempt to set a max-age or s-maxage higher than this, or an Expires header
22155 # more than `maxTtl` seconds in the future will be capped at the value of
22156 # `maxTtl`, as if it were the value of an s-maxage Cache-Control directive.
22157 # Headers sent to the client will not be modified. Setting a TTL of &quot;0&quot; means
22158 # &quot;always revalidate&quot;. The maximum allowed value is 31,622,400s (1 year).
22159 # Infrequently accessed objects may be evicted from the cache before the
22160 # defined TTL. If not specified, Cloud CDN uses 86400s (1 day) for
22161 # `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache
22162 # mode.
22163 # as a count of seconds and fractions of seconds at nanosecond
22164 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
22165 # or &quot;month&quot;. Range is approximately 10,000 years.
22166 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
22167 # Durations less than one second are represented with a 0
22168 # `seconds` field and a positive `nanos` field. Must be from 0
22169 # to 999,999,999 inclusive.
22170 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
22171 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
22172 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
22173 },
22174 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
22175 # to apply fine-grained caching for common errors or redirects.
22176 # This can reduce the load on your origin and improve end-user
22177 # experience by reducing response latency.
22178 # When the `cacheMode` is set to `CACHE_ALL_STATIC` or
22179 # `USE_ORIGIN_HEADERS`, negative caching applies to responses with
22180 # the specified response code that lack any Cache-Control, Expires, or
22181 # Pragma: no-cache directives. When the `cacheMode` is set to
22182 # `FORCE_CACHE_ALL`, negative caching applies to all responses
22183 # with the specified response code, and overrides any caching headers. By
22184 # default, Cloud CDN applies the following TTLs to these HTTP status codes:
22185 #
22186 # * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
22187 # * 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s
22188 # * 405 (Method Not Found), 501 (Not Implemented): 60s
22189 #
22190 # These defaults can be overridden in `negativeCachingPolicy`.
22191 # If not specified, Cloud CDN applies negative caching by default.
22192 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
22193 # `negativeCaching` must be enabled to configure `negativeCachingPolicy`.
22194 # Omitting the policy and leaving `negativeCaching` enabled will use Cloud
22195 # CDN&#x27;s default cache TTLs. Note that when specifying an explicit
22196 # `negativeCachingPolicy`, you should take care to specify a cache TTL for
22197 # all response codes that you wish to cache. Cloud CDN will not apply any
22198 # default negative caching when a policy exists.
22199 { # Specify CDN TTLs for response error codes.
22200 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
22201 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
22202 # specified as values, and you cannot specify a status code more than
22203 # once.
22204 &quot;ttl&quot;: { # A Duration represents a fixed-length span of time represented # The TTL (in seconds) for which to cache responses with the
22205 # corresponding status code.
22206 # The maximum allowed value is 1800s (30 minutes). Infrequently accessed
22207 # objects may be evicted from the cache before the defined TTL.
22208 # as a count of seconds and fractions of seconds at nanosecond
22209 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
22210 # or &quot;month&quot;. Range is approximately 10,000 years.
22211 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
22212 # Durations less than one second are represented with a 0
22213 # `seconds` field and a positive `nanos` field. Must be from 0
22214 # to 999,999,999 inclusive.
22215 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
22216 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
22217 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
22218 },
22219 },
22220 ],
22221 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
22222 # requests into a small number of requests to the origin. If not specified,
22223 # Cloud CDN applies request coalescing by default.
22224 &quot;serveWhileStale&quot;: { # A Duration represents a fixed-length span of time represented # Serve existing content from the cache (if available) when revalidating
22225 # content with the origin, or when an error is encountered when refreshing
22226 # the cache.
22227 # This setting defines the default &quot;max-stale&quot; duration for any cached
22228 # responses that do not specify a max-stale directive. Stale responses that
22229 # exceed the TTL configured here will not be served. The default limit
22230 # (max-stale) is 86400s (1 day), which will allow stale content to be
22231 # served up to this limit beyond the max-age (or s-maxage) of a cached
22232 # response.
22233 # The maximum allowed value is 604800 (1 week).
22234 # Set this to zero (0) to disable serve-while-stale.
22235 # as a count of seconds and fractions of seconds at nanosecond
22236 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
22237 # or &quot;month&quot;. Range is approximately 10,000 years.
22238 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
22239 # Durations less than one second are represented with a 0
22240 # `seconds` field and a positive `nanos` field. Must be from 0
22241 # to 999,999,999 inclusive.
22242 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
22243 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
22244 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
22245 },
22246 },
22247 &quot;corsPolicy&quot;: { # The specification for allowing client-side cross-origin requests. For more # The specification for allowing client-side cross-origin requests. For more
22248 # information about the W3C recommendation for cross-origin resource sharing
22249 # (CORS), see Fetch API Living
22250 # Standard.
22251 #
22252 # Not supported when the URL map is bound to a target gRPC proxy.
22253 # information about the W3C recommendation for cross-origin resource sharing
22254 # (CORS), see Fetch API Living
22255 # Standard.
22256 &quot;allowCredentials&quot;: True or False, # In response to a preflight request, setting this to true
22257 # indicates that
22258 # the actual request can include user credentials. This field translates to
22259 # the Access-Control-Allow-Credentials header.
22260 #
22261 # Default is false.
22262 &quot;allowHeaders&quot;: [ # Specifies the content for the Access-Control-Allow-Headers
22263 # header.
22264 &quot;A String&quot;,
22265 ],
22266 &quot;allowMethods&quot;: [ # Specifies the content for the Access-Control-Allow-Methods
22267 # header.
22268 &quot;A String&quot;,
22269 ],
22270 &quot;allowOriginRegexes&quot;: [ # Specifies a regular expression that matches allowed origins. For
22271 # more information, see regular expression syntax.
22272 #
22273 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
22274 #
22275 # Regular expressions can only be used when the loadBalancingScheme is
22276 # set to INTERNAL_SELF_MANAGED.
22277 &quot;A String&quot;,
22278 ],
22279 &quot;allowOrigins&quot;: [ # Specifies the list of origins that is allowed to do CORS requests.
22280 #
22281 # An origin is allowed if it matches either an item inallowOrigins or an item inallowOriginRegexes.
22282 &quot;A String&quot;,
22283 ],
22284 &quot;disabled&quot;: True or False, # If true, disables the CORS policy.
22285 # The default value is false, which indicates that the CORS
22286 # policy is in effect.
22287 &quot;exposeHeaders&quot;: [ # Specifies the content for the Access-Control-Expose-Headers
22288 # header.
22289 &quot;A String&quot;,
22290 ],
22291 &quot;maxAge&quot;: 42, # Specifies how long results of a preflight request can be cached in
22292 # seconds. This field translates to the Access-Control-Max-Age
22293 # header.
22294 },
22295 &quot;faultInjectionPolicy&quot;: { # The specification for fault injection introduced into traffic to test # The specification for fault injection introduced into traffic to test
22296 # the resiliency of clients to backend service failure. As part of fault
22297 # injection, when clients send requests to a backend service, delays can be
22298 # introduced by a load balancer on a percentage of requests before sending
22299 # those requests to the backend service. Similarly requests from clients can
22300 # be aborted by the load balancer for a percentage of requests.timeout and retry_policy is ignored by clients
22301 # that are configured with a fault_injection_policy if:
22302 # 1. The traffic is generated by fault injection AND
22303 # 2. The fault injection is not a delay fault injection.
22304 # Fault injection is not supported with the classic Application Load Balancer
22305 # . To see which load balancers support fault injection,
22306 # see Load
22307 # balancing: Routing and traffic management features.
22308 # the resiliency of clients to backend service failure. As part of fault
22309 # injection, when clients send requests to a backend service, delays can be
22310 # introduced by the load balancer on a percentage of requests before sending
22311 # those request to the backend service. Similarly requests from clients can be
22312 # aborted by the load balancer for a percentage of requests.
22313 &quot;abort&quot;: { # Specification for how requests are aborted as part of fault injection. # The specification for how client requests are aborted as part of fault
22314 # injection.
22315 &quot;httpStatus&quot;: 42, # The HTTP status code used to abort the request.
22316 #
22317 # The value must be from 200 to 599 inclusive.
22318 #
22319 # For gRPC protocol, the gRPC status code is mapped to HTTP status code
22320 # according to this
22321 # mapping table. HTTP status 200 is mapped to gRPC status
22322 # UNKNOWN. Injecting an OK status is currently not supported by
22323 # Traffic Director.
22324 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests
22325 # that is aborted as part of fault injection.
22326 #
22327 # The value must be from 0.0 to 100.0 inclusive.
22328 },
22329 &quot;delay&quot;: { # Specifies the delay introduced by the load balancer before forwarding the # The specification for how client requests are delayed as part of fault
22330 # injection, before being sent to a backend service.
22331 # request to the backend service as part of fault injection.
22332 &quot;fixedDelay&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the value of the fixed delay interval.
22333 # as a count of seconds and fractions of seconds at nanosecond
22334 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
22335 # or &quot;month&quot;. Range is approximately 10,000 years.
22336 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
22337 # Durations less than one second are represented with a 0
22338 # `seconds` field and a positive `nanos` field. Must be from 0
22339 # to 999,999,999 inclusive.
22340 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
22341 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
22342 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
22343 },
22344 &quot;percentage&quot;: 3.14, # The percentage of traffic for connections, operations, or requests for
22345 # which a delay is introduced as part of fault injection.
22346 #
22347 # The value must be from 0.0 to 100.0 inclusive.
22348 },
22349 },
22350 &quot;maxStreamDuration&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the maximum duration (timeout) for streams on the selected route.
22351 # Unlike the timeout field where the timeout duration starts
22352 # from the time the request has been fully processed (known as*end-of-stream*),
22353 # the duration in this field is computed from the beginning of the stream
22354 # until the response has been processed, including all retries. A
22355 # stream that does not complete in this duration is closed.
22356 #
22357 # If not specified, this field uses the maximummaxStreamDuration value among all backend services associated
22358 # with the route.
22359 #
22360 # This field is only allowed if the Url map is used with backend services
22361 # with loadBalancingScheme set toINTERNAL_SELF_MANAGED.
22362 # as a count of seconds and fractions of seconds at nanosecond
22363 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
22364 # or &quot;month&quot;. Range is approximately 10,000 years.
22365 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
22366 # Durations less than one second are represented with a 0
22367 # `seconds` field and a positive `nanos` field. Must be from 0
22368 # to 999,999,999 inclusive.
22369 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
22370 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
22371 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
22372 },
22373 &quot;requestMirrorPolicy&quot;: { # A policy that specifies how requests intended for the route&#x27;s backends # Specifies the policy on how requests intended for the route&#x27;s backends
22374 # are shadowed to a separate mirrored backend service. The load balancer does
22375 # not wait for responses from the shadow service. Before sending traffic
22376 # to the shadow service, the host / authority header is suffixed with-shadow.
22377 #
22378 # Not supported when the URL map is bound to a target gRPC proxy that
22379 # has the validateForProxyless field set to true.
22380 # are shadowed to a separate mirrored backend service. The load balancer
22381 # doesn&#x27;t wait for responses from the shadow service. Before sending traffic
22382 # to the shadow service, the host or authority header is suffixed with-shadow.
22383 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the BackendService resource being
22384 # mirrored to.
22385 #
22386 # The backend service configured for a mirroring
22387 # policy must reference backends that are of the same type as the original
22388 # backend service matched in the URL map.
22389 #
22390 # Serverless NEG backends are not currently supported as a mirrored
22391 # backend service.
22392 &quot;mirrorPercent&quot;: 3.14, # The percentage of requests to be mirrored to `backend_service`.
22393 },
22394 &quot;retryPolicy&quot;: { # The retry policy associates with HttpRouteRule # Specifies the retry policy associated with this route.
22395 &quot;numRetries&quot;: 42, # Specifies the allowed number retries. This number must be &gt; 0.
22396 # If not specified, defaults to 1.
22397 &quot;perTryTimeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies a non-zero timeout per retry attempt.
22398 #
22399 # If not specified, will use the timeout set in theHttpRouteAction field.
22400 # If timeout in the HttpRouteAction field is not set, this field
22401 # uses the largest timeout
22402 # among all backend services associated with the route.
22403 #
22404 # Not supported when the URL map is bound to a target gRPC proxy that
22405 # has the validateForProxyless field set to true.
22406 # as a count of seconds and fractions of seconds at nanosecond
22407 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
22408 # or &quot;month&quot;. Range is approximately 10,000 years.
22409 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
22410 # Durations less than one second are represented with a 0
22411 # `seconds` field and a positive `nanos` field. Must be from 0
22412 # to 999,999,999 inclusive.
22413 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
22414 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
22415 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
22416 },
22417 &quot;retryConditions&quot;: [ # Specifies one or more conditions when this retry policy applies. Valid
22418 # values are:
22419 #
22420 # - 5xx: retry is attempted if the instance or endpoint
22421 # responds with any 5xx response code, or if the instance or
22422 # endpoint does not respond at all. For example, disconnects, reset, read
22423 # timeout, connection failure, and refused streams.
22424 # - gateway-error: Similar to 5xx, but only
22425 # applies to response codes 502, 503 or504.
22426 # - connect-failure: a retry is attempted on failures
22427 # connecting to the instance or endpoint. For example, connection
22428 # timeouts.
22429 # - retriable-4xx: a retry is attempted if the instance
22430 # or endpoint responds with a 4xx response code.
22431 # The only error that you can retry is error code 409.
22432 # - refused-stream: a retry is attempted if the instance
22433 # or endpoint resets the stream with a REFUSED_STREAM error
22434 # code. This reset type indicates that it is safe to retry.
22435 # - cancelled: a retry is attempted if the gRPC status
22436 # code in the response header is set to cancelled.
22437 # - deadline-exceeded: a retry is attempted if the gRPC
22438 # status code in the response header is set todeadline-exceeded.
22439 # - internal: a retry is attempted if the gRPC
22440 # status code in the response header is set tointernal.
22441 # - resource-exhausted: a retry is attempted if the gRPC
22442 # status code in the response header is set toresource-exhausted.
22443 # - unavailable: a retry is attempted if the gRPC
22444 # status code in the response header is set tounavailable.
22445 #
22446 # Only the following codes are supported when the URL map is bound to
22447 # target gRPC proxy that has validateForProxyless field set to true.
22448 #
22449 # - cancelled
22450 # - deadline-exceeded
22451 # - internal
22452 # - resource-exhausted
22453 # - unavailable
22454 &quot;A String&quot;,
22455 ],
22456 },
22457 &quot;timeout&quot;: { # A Duration represents a fixed-length span of time represented # Specifies the timeout for the selected route. Timeout is computed from the
22458 # time the request has been fully processed (known as *end-of-stream*)
22459 # up until the response has been processed. Timeout includes
22460 # all retries.
22461 #
22462 # If not specified, this field uses the largest timeout among all backend
22463 # services associated with the route.
22464 #
22465 # Not supported when the URL map is bound to a target gRPC proxy that
22466 # has validateForProxyless field set to true.
22467 # as a count of seconds and fractions of seconds at nanosecond
22468 # resolution. It is independent of any calendar and concepts like &quot;day&quot;
22469 # or &quot;month&quot;. Range is approximately 10,000 years.
22470 &quot;nanos&quot;: 42, # Span of time that&#x27;s a fraction of a second at nanosecond resolution.
22471 # Durations less than one second are represented with a 0
22472 # `seconds` field and a positive `nanos` field. Must be from 0
22473 # to 999,999,999 inclusive.
22474 &quot;seconds&quot;: &quot;A String&quot;, # Span of time at a resolution of a second. Must be from 0
22475 # to 315,576,000,000 inclusive. Note: these bounds are computed from:
22476 # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
22477 },
22478 &quot;urlRewrite&quot;: { # The spec for modifying the path before sending the request to the matched # The spec to modify the URL of the request, before forwarding the request
22479 # to the matched service.
22480 #
22481 # urlRewrite is the only action supported in UrlMaps
22482 # for classic Application Load Balancers.
22483 #
22484 # Not supported when the URL map is bound to a target gRPC proxy that
22485 # has the validateForProxyless field set to true.
22486 # backend service.
22487 &quot;hostRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected service, the request&#x27;s
22488 # host header is replaced with contents of hostRewrite.
22489 #
22490 # The value must be from 1 to 255 characters.
22491 &quot;pathPrefixRewrite&quot;: &quot;A String&quot;, # Before forwarding the request to the selected backend service, the
22492 # matching portion of the request&#x27;s path is replaced bypathPrefixRewrite.
22493 #
22494 # The value must be from 1 to 1024 characters.
22495 &quot;pathTemplateRewrite&quot;: &quot;A String&quot;, # If specified, the pattern rewrites the URL path (based on the :path
22496 # header) using the HTTP template syntax.
22497 #
22498 # A corresponding
22499 # path_template_match must be specified. Any template variables must exist in
22500 # the path_template_match field.
22501 #
22502 #
22503 # - -At least one variable must be specified in the path_template_match
22504 # field
22505 # - You can omit variables from the rewritten URL
22506 # - The * and ** operators cannot be matched
22507 # unless they have a corresponding variable name - e.g.
22508 # {format=*} or {var=**}.
22509 #
22510 # For example, a path_template_match of /static/{format=**}
22511 # could be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a
22512 # rewrite, so that /{country}/{format}/{suffix=**} can be
22513 # rewritten as /content/{format}/{country}/{suffix}.
22514 #
22515 # At least
22516 # one non-empty routeRules[].matchRules[].path_template_match is
22517 # required.
22518 #
22519 # Only one of path_prefix_rewrite orpath_template_rewrite may be specified.
22520 },
22521 &quot;weightedBackendServices&quot;: [ # A list of weighted backend services to send traffic to when a route match
22522 # occurs. The weights determine the fraction of traffic that flows to
22523 # their corresponding backend service. If all traffic needs to
22524 # go to a single backend service, there must be oneweightedBackendService with weight set to a non-zero number.
22525 #
22526 # After a backend service is identified and before forwarding
22527 # the request to
22528 # the backend service, advanced routing actions such as URL rewrites and
22529 # header transformations are applied depending on additional settings
22530 # specified in this HttpRouteAction.
22531 { # In contrast to a single BackendService in
22532 # HttpRouteAction to which all matching traffic is directed to,WeightedBackendService allows traffic to be split across
22533 # multiple backend services. The volume of traffic for each
22534 # backend service is proportional to the weight specified
22535 # in each WeightedBackendService
22536 &quot;backendService&quot;: &quot;A String&quot;, # The full or partial URL to the default BackendService
22537 # resource. Before
22538 # forwarding the request to backendService, the load balancer
22539 # applies any relevant headerActions specified as part of thisbackendServiceWeight.
22540 &quot;headerAction&quot;: { # The request and response header transformations that take effect before # Specifies changes to request and response headers that need to take
22541 # effect for the selected backendService.
22542 #
22543 # headerAction specified here take effect beforeheaderAction in the enclosing HttpRouteRule,PathMatcher and UrlMap.
22544 #
22545 # headerAction is not supported for load balancers that have
22546 # their loadBalancingScheme set to EXTERNAL.
22547 #
22548 # Not supported when the URL map is bound to a target gRPC proxy that
22549 # has validateForProxyless field set to true.
22550 # the request is passed along to the selected backendService.
22551 &quot;requestHeadersToAdd&quot;: [ # Headers to add to a matching request before forwarding the request to thebackendService.
22552 { # Specification determining how headers are added to requests or responses.
22553 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
22554 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
22555 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
22556 # that already
22557 # exist for the header. If true, headerValue is set for the
22558 # header, discarding any values that were set for that header.
22559 #
22560 # The default value is true,
22561 # unless a variable is present in headerValue,
22562 # in which case the default value is false.
22563 # .
22564 },
22565 ],
22566 &quot;requestHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
22567 # request before forwarding the request to the backendService.
22568 &quot;A String&quot;,
22569 ],
22570 &quot;responseHeadersToAdd&quot;: [ # Headers to add the response before sending the response back to the
22571 # client.
22572 { # Specification determining how headers are added to requests or responses.
22573 &quot;headerName&quot;: &quot;A String&quot;, # The name of the header.
22574 &quot;headerValue&quot;: &quot;A String&quot;, # The value of the header to add.
22575 &quot;replace&quot;: True or False, # If false, headerValue is appended to any values
22576 # that already
22577 # exist for the header. If true, headerValue is set for the
22578 # header, discarding any values that were set for that header.
22579 #
22580 # The default value is true,
22581 # unless a variable is present in headerValue,
22582 # in which case the default value is false.
22583 # .
22584 },
22585 ],
22586 &quot;responseHeadersToRemove&quot;: [ # A list of header names for headers that need to be removed from the
22587 # response before sending the response back to the client.
22588 &quot;A String&quot;,
22589 ],
22590 },
22591 &quot;weight&quot;: 42, # Specifies the fraction of traffic sent to a backend service,
22592 # computed asweight / (sum of all weightedBackendService weights in routeAction).
22593 #
22594 # The selection of a backend service is determined only for new traffic.
22595 # Once a user&#x27;s request has been directed to a backend service,
22596 # subsequent requests are sent to the same backend service as
22597 # determined by the backend service&#x27;s session affinity policy.
22598 # Don&#x27;t configure session affinity if you&#x27;re using weighted traffic
22599 # splitting. If you do, the weighted traffic splitting configuration takes
22600 # precedence.
22601 #
22602 # The value must be from 0 to 1000.
22603 },
22604 ],
22605 },
22606 &quot;service&quot;: &quot;A String&quot;, # The full or partial URL of the backend service resource to which traffic
22607 # is directed if this rule is matched. If routeAction is
22608 # also specified, advanced routing actions, such as URL rewrites,
22609 # take effect before sending the request to the backend.
22610 #
22611 #
22612 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
22613 &quot;urlRedirect&quot;: { # Specifies settings for an HTTP redirect. # When this rule is matched, the request is redirected to a URL
22614 # specified by urlRedirect.
22615 #
22616 #
22617 # Only one of urlRedirect, service orrouteAction.weightedBackendService can be set.
22618 #
22619 #
22620 # Not supported when the URL map is bound to a target gRPC proxy.
22621 &quot;hostRedirect&quot;: &quot;A String&quot;, # The host that is used in the redirect response instead of the one that
22622 # was supplied in the request.
22623 #
22624 # The value must be from 1 to 255
22625 # characters.
22626 &quot;httpsRedirect&quot;: True or False, # If set to true, the URL scheme in the redirected request is
22627 # set to HTTPS.
22628 # If set to false, the URL scheme of the redirected request
22629 # remains the same as that of the request.
22630 #
22631 # This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted.
22632 #
22633 # The default is set to false.
22634 &quot;pathRedirect&quot;: &quot;A String&quot;, # The path that is used in the redirect response instead of the one
22635 # that was supplied in the request.
22636 #
22637 # pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If neither is
22638 # supplied, the path of the original request is used for the redirect.
22639 #
22640 # The value must be from 1 to 1024 characters.
22641 &quot;prefixRedirect&quot;: &quot;A String&quot;, # The prefix that replaces the prefixMatch specified in
22642 # the HttpRouteRuleMatch, retaining the remaining portion
22643 # of the URL before redirecting the request.
22644 #
22645 # prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If neither is
22646 # supplied, the path of the original request is used for the redirect.
22647 #
22648 # The value must be from 1 to 1024 characters.
22649 &quot;redirectResponseCode&quot;: &quot;A String&quot;, # The HTTP Status code to use for this RedirectAction.
22650 #
22651 # Supported values are:
22652 #
22653 # - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
22654 # to 301.
22655 # - FOUND, which corresponds to 302.
22656 # - SEE_OTHER which corresponds to 303.
22657 # - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
22658 # method is retained.
22659 # - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
22660 # method is retained.
22661 &quot;stripQuery&quot;: True or False, # If set to true, any accompanying query portion of the original
22662 # URL is
22663 # removed before redirecting the request. If set to false, the
22664 # query portion of the original URL is retained.
22665 #
22666 # The default is set to false.
22667 },
22668 },
22669 ],
22670 },
22671 ],
22672 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional URL map resides.
22673 # This field is not applicable to global URL maps.
22674 # You must specify this field as part of the HTTP request URL. It is
22675 # not settable as a field in the request body.
22676 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
22677 &quot;tests&quot;: [ # The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test cases pass. You can specify a
22678 # maximum of 100 tests per UrlMap.
22679 #
22680 # Not supported when the URL map is bound to a target gRPC proxy that
22681 # has validateForProxyless field set to true.
22682 { # Message for the expected URL mappings.
22683 &quot;description&quot;: &quot;A String&quot;, # Description of this test case.
22684 &quot;expectedOutputUrl&quot;: &quot;A String&quot;, # The expected output URL evaluated by the load balancer
22685 # containing the scheme, host, path and query parameters.
22686 #
22687 # For rules that forward requests to backends, the test passes only whenexpectedOutputUrl matches the request forwarded by
22688 # the load balancer to backends. For rules with urlRewrite,
22689 # the test verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite action. When service is specified,expectedOutputUrl`s scheme is ignored.
22690 #
22691 # For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the load balancer&#x27;s
22692 # redirect response. If urlRedirect specifieshttps_redirect, the test passes only if the scheme inexpectedOutputUrl is also set to HTTPS.
22693 # If urlRedirect specifies strip_query, the test
22694 # passes only if expectedOutputUrl does not contain any query
22695 # parameters.
22696 #
22697 # expectedOutputUrl is optional whenservice is specified.
22698 &quot;expectedRedirectResponseCode&quot;: 42, # For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the HTTP status code in
22699 # load balancer&#x27;s redirect response.
22700 #
22701 # expectedRedirectResponseCode cannot be set whenservice is set.
22702 &quot;headers&quot;: [ # HTTP headers for this request. If headers contains
22703 # a host header, then host must also match the header value.
22704 { # HTTP headers used in UrlMapTests.
22705 &quot;name&quot;: &quot;A String&quot;, # Header name.
22706 &quot;value&quot;: &quot;A String&quot;, # Header value.
22707 },
22708 ],
22709 &quot;host&quot;: &quot;A String&quot;, # Host portion of the URL. If headers contains a host header,
22710 # then host must also match the header value.
22711 &quot;path&quot;: &quot;A String&quot;, # Path portion of the URL.
22712 &quot;service&quot;: &quot;A String&quot;, # Expected BackendService or BackendBucket resource
22713 # the given URL should be mapped to.
22714 #
22715 # The service field cannot
22716 # be set if expectedRedirectResponseCode is set.
22717 },
22718 ],
22719 },
22720 }
22721
22722 x__xgafv: string, V1 error format.
22723 Allowed values
22724 1 - v1 error format
22725 2 - v2 error format
22726
22727 Returns:
22728 An object of the form:
22729
22730 {
22731 &quot;result&quot;: { # Message representing the validation result for a UrlMap.
22732 &quot;loadErrors&quot;: [
22733 &quot;A String&quot;,
22734 ],
22735 &quot;loadSucceeded&quot;: True or False, # Whether the given UrlMap can be successfully loaded.
22736 # If false, &#x27;loadErrors&#x27; indicates the reasons.
22737 &quot;testFailures&quot;: [
22738 {
22739 &quot;actualOutputUrl&quot;: &quot;A String&quot;, # The actual output URL evaluated by a load balancer containing the scheme,
22740 # host, path and query parameters.
22741 &quot;actualRedirectResponseCode&quot;: 42, # Actual HTTP status code for rule with `urlRedirect`
22742 # calculated by load balancer
22743 &quot;actualService&quot;: &quot;A String&quot;, # BackendService or BackendBucket returned by load
22744 # balancer.
22745 &quot;expectedOutputUrl&quot;: &quot;A String&quot;, # The expected output URL evaluated by a load balancer containing the scheme,
22746 # host, path and query parameters.
22747 &quot;expectedRedirectResponseCode&quot;: 42, # Expected HTTP status code for rule with `urlRedirect`
22748 # calculated by load balancer
22749 &quot;expectedService&quot;: &quot;A String&quot;, # Expected BackendService or BackendBucket resource
22750 # the given URL should be mapped to.
22751 &quot;headers&quot;: [ # HTTP headers of the request.
22752 { # HTTP headers used in UrlMapTests.
22753 &quot;name&quot;: &quot;A String&quot;, # Header name.
22754 &quot;value&quot;: &quot;A String&quot;, # Header value.
22755 },
22756 ],
22757 &quot;host&quot;: &quot;A String&quot;, # Host portion of the URL.
22758 &quot;path&quot;: &quot;A String&quot;, # Path portion including query parameters in the URL.
22759 },
22760 ],
22761 &quot;testPassed&quot;: True or False, # If successfully loaded, this field indicates whether the test passed.
22762 # If false, &#x27;testFailures&#x27;s indicate the reason of failure.
22763 },
22764 }</pre>
22765 </div>
22766
22767 </body></html>