Debian Codegraph @

docs/dyn/recaptchaenterprise_v1.projects.firewallpolicies.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="recaptchaenterprise_v1.html">reCAPTCHA Enterprise API</a> . <a href="recaptchaenterprise_v1.projects.html">projects</a> . <a href="recaptchaenterprise_v1.projects.firewallpolicies.html">firewallpolicies</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="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA Enterprise actions can be executed. A project may have a maximum of 1000 policies.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes the specified firewall policy.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Returns the specified firewall policy.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Returns the list of all firewall policies that belong to a project.</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(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates the specified firewall policy.</p>
98 <p class="toc_element">
99 <code><a href="#reorder">reorder(parent, body=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Reorders all firewall policies.</p>
101 <h3>Method Details</h3>
102 <div class="method">
103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105 </div>
106
107 <div class="method">
108 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
109 <pre>Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA Enterprise actions can be executed. A project may have a maximum of 1000 policies.
110
111 Args:
112 parent: string, Required. The name of the project this policy applies to, in the format `projects/{project}`. (required)
113 body: object, The request body.
114 The object takes the form of:
115
116 { # A FirewallPolicy represents a single matching pattern and resulting actions to take.
117 &quot;actions&quot;: [ # Optional. The actions that the caller should take regarding user access. There should be at most one terminal action. A terminal action is any action that forces a response, such as `AllowAction`, `BlockAction` or `SubstituteAction`. Zero or more non-terminal actions such as `SetHeader` might be specified. A single policy can contain up to 16 actions.
118 { # An individual action. Each action represents what to do if a policy matches.
119 &quot;allow&quot;: { # An allow action continues processing a request unimpeded. # The user request did not match any policy and should be allowed access to the requested resource.
120 },
121 &quot;block&quot;: { # A block action serves an HTTP error code a prevents the request from hitting the backend. # This action denies access to a given page. The user gets an HTTP error code.
122 },
123 &quot;includeRecaptchaScript&quot;: { # An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript code into the HTML returned by the site backend. This reCAPTCHA script is tasked with collecting user signals on the requested web page, issuing tokens as a cookie within the site domain, and enabling their utilization in subsequent page requests. # This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.
124 },
125 &quot;redirect&quot;: { # A redirect action returns a 307 (temporary redirect) response, pointing the user to a reCAPTCHA interstitial page to attach a token. # This action redirects the request to a reCAPTCHA interstitial to attach a token.
126 },
127 &quot;setHeader&quot;: { # A set header action sets a header and forwards the request to the backend. This can be used to trigger custom protection implemented on the backend. # This action sets a custom header but allow the request to continue to the customer backend.
128 &quot;key&quot;: &quot;A String&quot;, # Optional. The header key to set in the request to the backend server.
129 &quot;value&quot;: &quot;A String&quot;, # Optional. The header value to set in the request to the backend server.
130 },
131 &quot;substitute&quot;: { # A substitute action transparently serves a different page than the one requested. # This action transparently serves a different page to an offending user.
132 &quot;path&quot;: &quot;A String&quot;, # Optional. The address to redirect to. The target is a relative path in the current host. Example: &quot;/blog/404.html&quot;.
133 },
134 },
135 ],
136 &quot;condition&quot;: &quot;A String&quot;, # Optional. A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the [CEL spec](https://github.com/google/cel-spec) and its [language definition](https://github.com/google/cel-spec/blob/master/doc/langdef.md). A condition has a max length of 500 characters.
137 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.
138 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name for the FirewallPolicy in the format `projects/{project}/firewallpolicies/{firewallpolicy}`.
139 &quot;path&quot;: &quot;A String&quot;, # Optional. The path for which this policy applies, specified as a glob pattern. For more information on glob, see the [manual page](https://man7.org/linux/man-pages/man7/glob.7.html). A path has a max length of 200 characters.
140 }
141
142 x__xgafv: string, V1 error format.
143 Allowed values
144 1 - v1 error format
145 2 - v2 error format
146
147 Returns:
148 An object of the form:
149
150 { # A FirewallPolicy represents a single matching pattern and resulting actions to take.
151 &quot;actions&quot;: [ # Optional. The actions that the caller should take regarding user access. There should be at most one terminal action. A terminal action is any action that forces a response, such as `AllowAction`, `BlockAction` or `SubstituteAction`. Zero or more non-terminal actions such as `SetHeader` might be specified. A single policy can contain up to 16 actions.
152 { # An individual action. Each action represents what to do if a policy matches.
153 &quot;allow&quot;: { # An allow action continues processing a request unimpeded. # The user request did not match any policy and should be allowed access to the requested resource.
154 },
155 &quot;block&quot;: { # A block action serves an HTTP error code a prevents the request from hitting the backend. # This action denies access to a given page. The user gets an HTTP error code.
156 },
157 &quot;includeRecaptchaScript&quot;: { # An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript code into the HTML returned by the site backend. This reCAPTCHA script is tasked with collecting user signals on the requested web page, issuing tokens as a cookie within the site domain, and enabling their utilization in subsequent page requests. # This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.
158 },
159 &quot;redirect&quot;: { # A redirect action returns a 307 (temporary redirect) response, pointing the user to a reCAPTCHA interstitial page to attach a token. # This action redirects the request to a reCAPTCHA interstitial to attach a token.
160 },
161 &quot;setHeader&quot;: { # A set header action sets a header and forwards the request to the backend. This can be used to trigger custom protection implemented on the backend. # This action sets a custom header but allow the request to continue to the customer backend.
162 &quot;key&quot;: &quot;A String&quot;, # Optional. The header key to set in the request to the backend server.
163 &quot;value&quot;: &quot;A String&quot;, # Optional. The header value to set in the request to the backend server.
164 },
165 &quot;substitute&quot;: { # A substitute action transparently serves a different page than the one requested. # This action transparently serves a different page to an offending user.
166 &quot;path&quot;: &quot;A String&quot;, # Optional. The address to redirect to. The target is a relative path in the current host. Example: &quot;/blog/404.html&quot;.
167 },
168 },
169 ],
170 &quot;condition&quot;: &quot;A String&quot;, # Optional. A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the [CEL spec](https://github.com/google/cel-spec) and its [language definition](https://github.com/google/cel-spec/blob/master/doc/langdef.md). A condition has a max length of 500 characters.
171 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.
172 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name for the FirewallPolicy in the format `projects/{project}/firewallpolicies/{firewallpolicy}`.
173 &quot;path&quot;: &quot;A String&quot;, # Optional. The path for which this policy applies, specified as a glob pattern. For more information on glob, see the [manual page](https://man7.org/linux/man-pages/man7/glob.7.html). A path has a max length of 200 characters.
174 }</pre>
175 </div>
176
177 <div class="method">
178 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
179 <pre>Deletes the specified firewall policy.
180
181 Args:
182 name: string, Required. The name of the policy to be deleted, in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. (required)
183 x__xgafv: string, V1 error format.
184 Allowed values
185 1 - v1 error format
186 2 - v2 error format
187
188 Returns:
189 An object of the form:
190
191 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
192 }</pre>
193 </div>
194
195 <div class="method">
196 <code class="details" id="get">get(name, x__xgafv=None)</code>
197 <pre>Returns the specified firewall policy.
198
199 Args:
200 name: string, Required. The name of the requested policy, in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. (required)
201 x__xgafv: string, V1 error format.
202 Allowed values
203 1 - v1 error format
204 2 - v2 error format
205
206 Returns:
207 An object of the form:
208
209 { # A FirewallPolicy represents a single matching pattern and resulting actions to take.
210 &quot;actions&quot;: [ # Optional. The actions that the caller should take regarding user access. There should be at most one terminal action. A terminal action is any action that forces a response, such as `AllowAction`, `BlockAction` or `SubstituteAction`. Zero or more non-terminal actions such as `SetHeader` might be specified. A single policy can contain up to 16 actions.
211 { # An individual action. Each action represents what to do if a policy matches.
212 &quot;allow&quot;: { # An allow action continues processing a request unimpeded. # The user request did not match any policy and should be allowed access to the requested resource.
213 },
214 &quot;block&quot;: { # A block action serves an HTTP error code a prevents the request from hitting the backend. # This action denies access to a given page. The user gets an HTTP error code.
215 },
216 &quot;includeRecaptchaScript&quot;: { # An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript code into the HTML returned by the site backend. This reCAPTCHA script is tasked with collecting user signals on the requested web page, issuing tokens as a cookie within the site domain, and enabling their utilization in subsequent page requests. # This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.
217 },
218 &quot;redirect&quot;: { # A redirect action returns a 307 (temporary redirect) response, pointing the user to a reCAPTCHA interstitial page to attach a token. # This action redirects the request to a reCAPTCHA interstitial to attach a token.
219 },
220 &quot;setHeader&quot;: { # A set header action sets a header and forwards the request to the backend. This can be used to trigger custom protection implemented on the backend. # This action sets a custom header but allow the request to continue to the customer backend.
221 &quot;key&quot;: &quot;A String&quot;, # Optional. The header key to set in the request to the backend server.
222 &quot;value&quot;: &quot;A String&quot;, # Optional. The header value to set in the request to the backend server.
223 },
224 &quot;substitute&quot;: { # A substitute action transparently serves a different page than the one requested. # This action transparently serves a different page to an offending user.
225 &quot;path&quot;: &quot;A String&quot;, # Optional. The address to redirect to. The target is a relative path in the current host. Example: &quot;/blog/404.html&quot;.
226 },
227 },
228 ],
229 &quot;condition&quot;: &quot;A String&quot;, # Optional. A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the [CEL spec](https://github.com/google/cel-spec) and its [language definition](https://github.com/google/cel-spec/blob/master/doc/langdef.md). A condition has a max length of 500 characters.
230 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.
231 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name for the FirewallPolicy in the format `projects/{project}/firewallpolicies/{firewallpolicy}`.
232 &quot;path&quot;: &quot;A String&quot;, # Optional. The path for which this policy applies, specified as a glob pattern. For more information on glob, see the [manual page](https://man7.org/linux/man-pages/man7/glob.7.html). A path has a max length of 200 characters.
233 }</pre>
234 </div>
235
236 <div class="method">
237 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
238 <pre>Returns the list of all firewall policies that belong to a project.
239
240 Args:
241 parent: string, Required. The name of the project to list the policies for, in the format `projects/{project}`. (required)
242 pageSize: integer, Optional. The maximum number of policies to return. Default is 10. Max limit is 1000.
243 pageToken: string, Optional. The next_page_token value returned from a previous. ListFirewallPoliciesRequest, if any.
244 x__xgafv: string, V1 error format.
245 Allowed values
246 1 - v1 error format
247 2 - v2 error format
248
249 Returns:
250 An object of the form:
251
252 { # Response to request to list firewall policies belonging to a project.
253 &quot;firewallPolicies&quot;: [ # Policy details.
254 { # A FirewallPolicy represents a single matching pattern and resulting actions to take.
255 &quot;actions&quot;: [ # Optional. The actions that the caller should take regarding user access. There should be at most one terminal action. A terminal action is any action that forces a response, such as `AllowAction`, `BlockAction` or `SubstituteAction`. Zero or more non-terminal actions such as `SetHeader` might be specified. A single policy can contain up to 16 actions.
256 { # An individual action. Each action represents what to do if a policy matches.
257 &quot;allow&quot;: { # An allow action continues processing a request unimpeded. # The user request did not match any policy and should be allowed access to the requested resource.
258 },
259 &quot;block&quot;: { # A block action serves an HTTP error code a prevents the request from hitting the backend. # This action denies access to a given page. The user gets an HTTP error code.
260 },
261 &quot;includeRecaptchaScript&quot;: { # An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript code into the HTML returned by the site backend. This reCAPTCHA script is tasked with collecting user signals on the requested web page, issuing tokens as a cookie within the site domain, and enabling their utilization in subsequent page requests. # This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.
262 },
263 &quot;redirect&quot;: { # A redirect action returns a 307 (temporary redirect) response, pointing the user to a reCAPTCHA interstitial page to attach a token. # This action redirects the request to a reCAPTCHA interstitial to attach a token.
264 },
265 &quot;setHeader&quot;: { # A set header action sets a header and forwards the request to the backend. This can be used to trigger custom protection implemented on the backend. # This action sets a custom header but allow the request to continue to the customer backend.
266 &quot;key&quot;: &quot;A String&quot;, # Optional. The header key to set in the request to the backend server.
267 &quot;value&quot;: &quot;A String&quot;, # Optional. The header value to set in the request to the backend server.
268 },
269 &quot;substitute&quot;: { # A substitute action transparently serves a different page than the one requested. # This action transparently serves a different page to an offending user.
270 &quot;path&quot;: &quot;A String&quot;, # Optional. The address to redirect to. The target is a relative path in the current host. Example: &quot;/blog/404.html&quot;.
271 },
272 },
273 ],
274 &quot;condition&quot;: &quot;A String&quot;, # Optional. A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the [CEL spec](https://github.com/google/cel-spec) and its [language definition](https://github.com/google/cel-spec/blob/master/doc/langdef.md). A condition has a max length of 500 characters.
275 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.
276 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name for the FirewallPolicy in the format `projects/{project}/firewallpolicies/{firewallpolicy}`.
277 &quot;path&quot;: &quot;A String&quot;, # Optional. The path for which this policy applies, specified as a glob pattern. For more information on glob, see the [manual page](https://man7.org/linux/man-pages/man7/glob.7.html). A path has a max length of 200 characters.
278 },
279 ],
280 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results. It is set to empty if no policies remain in results.
281 }</pre>
282 </div>
283
284 <div class="method">
285 <code class="details" id="list_next">list_next()</code>
286 <pre>Retrieves the next page of results.
287
288 Args:
289 previous_request: The request for the previous page. (required)
290 previous_response: The response from the request for the previous page. (required)
291
292 Returns:
293 A request object that you can call &#x27;execute()&#x27; on to request the next
294 page. Returns None if there are no more items in the collection.
295 </pre>
296 </div>
297
298 <div class="method">
299 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
300 <pre>Updates the specified firewall policy.
301
302 Args:
303 name: string, Identifier. The resource name for the FirewallPolicy in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. (required)
304 body: object, The request body.
305 The object takes the form of:
306
307 { # A FirewallPolicy represents a single matching pattern and resulting actions to take.
308 &quot;actions&quot;: [ # Optional. The actions that the caller should take regarding user access. There should be at most one terminal action. A terminal action is any action that forces a response, such as `AllowAction`, `BlockAction` or `SubstituteAction`. Zero or more non-terminal actions such as `SetHeader` might be specified. A single policy can contain up to 16 actions.
309 { # An individual action. Each action represents what to do if a policy matches.
310 &quot;allow&quot;: { # An allow action continues processing a request unimpeded. # The user request did not match any policy and should be allowed access to the requested resource.
311 },
312 &quot;block&quot;: { # A block action serves an HTTP error code a prevents the request from hitting the backend. # This action denies access to a given page. The user gets an HTTP error code.
313 },
314 &quot;includeRecaptchaScript&quot;: { # An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript code into the HTML returned by the site backend. This reCAPTCHA script is tasked with collecting user signals on the requested web page, issuing tokens as a cookie within the site domain, and enabling their utilization in subsequent page requests. # This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.
315 },
316 &quot;redirect&quot;: { # A redirect action returns a 307 (temporary redirect) response, pointing the user to a reCAPTCHA interstitial page to attach a token. # This action redirects the request to a reCAPTCHA interstitial to attach a token.
317 },
318 &quot;setHeader&quot;: { # A set header action sets a header and forwards the request to the backend. This can be used to trigger custom protection implemented on the backend. # This action sets a custom header but allow the request to continue to the customer backend.
319 &quot;key&quot;: &quot;A String&quot;, # Optional. The header key to set in the request to the backend server.
320 &quot;value&quot;: &quot;A String&quot;, # Optional. The header value to set in the request to the backend server.
321 },
322 &quot;substitute&quot;: { # A substitute action transparently serves a different page than the one requested. # This action transparently serves a different page to an offending user.
323 &quot;path&quot;: &quot;A String&quot;, # Optional. The address to redirect to. The target is a relative path in the current host. Example: &quot;/blog/404.html&quot;.
324 },
325 },
326 ],
327 &quot;condition&quot;: &quot;A String&quot;, # Optional. A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the [CEL spec](https://github.com/google/cel-spec) and its [language definition](https://github.com/google/cel-spec/blob/master/doc/langdef.md). A condition has a max length of 500 characters.
328 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.
329 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name for the FirewallPolicy in the format `projects/{project}/firewallpolicies/{firewallpolicy}`.
330 &quot;path&quot;: &quot;A String&quot;, # Optional. The path for which this policy applies, specified as a glob pattern. For more information on glob, see the [manual page](https://man7.org/linux/man-pages/man7/glob.7.html). A path has a max length of 200 characters.
331 }
332
333 updateMask: string, Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated.
334 x__xgafv: string, V1 error format.
335 Allowed values
336 1 - v1 error format
337 2 - v2 error format
338
339 Returns:
340 An object of the form:
341
342 { # A FirewallPolicy represents a single matching pattern and resulting actions to take.
343 &quot;actions&quot;: [ # Optional. The actions that the caller should take regarding user access. There should be at most one terminal action. A terminal action is any action that forces a response, such as `AllowAction`, `BlockAction` or `SubstituteAction`. Zero or more non-terminal actions such as `SetHeader` might be specified. A single policy can contain up to 16 actions.
344 { # An individual action. Each action represents what to do if a policy matches.
345 &quot;allow&quot;: { # An allow action continues processing a request unimpeded. # The user request did not match any policy and should be allowed access to the requested resource.
346 },
347 &quot;block&quot;: { # A block action serves an HTTP error code a prevents the request from hitting the backend. # This action denies access to a given page. The user gets an HTTP error code.
348 },
349 &quot;includeRecaptchaScript&quot;: { # An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript code into the HTML returned by the site backend. This reCAPTCHA script is tasked with collecting user signals on the requested web page, issuing tokens as a cookie within the site domain, and enabling their utilization in subsequent page requests. # This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.
350 },
351 &quot;redirect&quot;: { # A redirect action returns a 307 (temporary redirect) response, pointing the user to a reCAPTCHA interstitial page to attach a token. # This action redirects the request to a reCAPTCHA interstitial to attach a token.
352 },
353 &quot;setHeader&quot;: { # A set header action sets a header and forwards the request to the backend. This can be used to trigger custom protection implemented on the backend. # This action sets a custom header but allow the request to continue to the customer backend.
354 &quot;key&quot;: &quot;A String&quot;, # Optional. The header key to set in the request to the backend server.
355 &quot;value&quot;: &quot;A String&quot;, # Optional. The header value to set in the request to the backend server.
356 },
357 &quot;substitute&quot;: { # A substitute action transparently serves a different page than the one requested. # This action transparently serves a different page to an offending user.
358 &quot;path&quot;: &quot;A String&quot;, # Optional. The address to redirect to. The target is a relative path in the current host. Example: &quot;/blog/404.html&quot;.
359 },
360 },
361 ],
362 &quot;condition&quot;: &quot;A String&quot;, # Optional. A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the [CEL spec](https://github.com/google/cel-spec) and its [language definition](https://github.com/google/cel-spec/blob/master/doc/langdef.md). A condition has a max length of 500 characters.
363 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.
364 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name for the FirewallPolicy in the format `projects/{project}/firewallpolicies/{firewallpolicy}`.
365 &quot;path&quot;: &quot;A String&quot;, # Optional. The path for which this policy applies, specified as a glob pattern. For more information on glob, see the [manual page](https://man7.org/linux/man-pages/man7/glob.7.html). A path has a max length of 200 characters.
366 }</pre>
367 </div>
368
369 <div class="method">
370 <code class="details" id="reorder">reorder(parent, body=None, x__xgafv=None)</code>
371 <pre>Reorders all firewall policies.
372
373 Args:
374 parent: string, Required. The name of the project to list the policies for, in the format `projects/{project}`. (required)
375 body: object, The request body.
376 The object takes the form of:
377
378 { # The reorder firewall policies request message.
379 &quot;names&quot;: [ # Required. A list containing all policy names, in the new order. Each name is in the format `projects/{project}/firewallpolicies/{firewallpolicy}`.
380 &quot;A String&quot;,
381 ],
382 }
383
384 x__xgafv: string, V1 error format.
385 Allowed values
386 1 - v1 error format
387 2 - v2 error format
388
389 Returns:
390 An object of the form:
391
392 { # The reorder firewall policies response message.
393 }</pre>
394 </div>
395
396 </body></html>