Debian Codegraph @

docs/dyn/compute_v1.regionNetworkFirewallPolicies.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.regionNetworkFirewallPolicies.html">regionNetworkFirewallPolicies</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#addAssociation">addAssociation(project, region, firewallPolicy, body=None, replaceExistingAssociation=None, requestId=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Inserts an association for the specified network firewall policy.</p>
80 <p class="toc_element">
81 <code><a href="#addRule">addRule(project, region, firewallPolicy, body=None, maxPriority=None, minPriority=None, requestId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Inserts a rule into a network firewall policy.</p>
83 <p class="toc_element">
84 <code><a href="#cloneRules">cloneRules(project, region, firewallPolicy, requestId=None, sourceFirewallPolicy=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Copies rules to the specified network firewall policy.</p>
86 <p class="toc_element">
87 <code><a href="#close">close()</a></code></p>
88 <p class="firstline">Close httplib2 connections.</p>
89 <p class="toc_element">
90 <code><a href="#delete">delete(project, region, firewallPolicy, requestId=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Deletes the specified network firewall policy.</p>
92 <p class="toc_element">
93 <code><a href="#get">get(project, region, firewallPolicy, x__xgafv=None)</a></code></p>
94 <p class="firstline">Returns the specified network firewall policy.</p>
95 <p class="toc_element">
96 <code><a href="#getAssociation">getAssociation(project, region, firewallPolicy, name=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Gets an association with the specified name.</p>
98 <p class="toc_element">
99 <code><a href="#getEffectiveFirewalls">getEffectiveFirewalls(project, region, network, x__xgafv=None)</a></code></p>
100 <p class="firstline">Returns the effective firewalls on a given network.</p>
101 <p class="toc_element">
102 <code><a href="#getIamPolicy">getIamPolicy(project, region, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Gets the access control policy for a resource. May be empty if no such</p>
104 <p class="toc_element">
105 <code><a href="#getRule">getRule(project, region, firewallPolicy, priority=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Gets a rule of the specified priority.</p>
107 <p class="toc_element">
108 <code><a href="#insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</a></code></p>
109 <p class="firstline">Creates a new network firewall policy in the specified project and region.</p>
110 <p class="toc_element">
111 <code><a href="#list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p>
112 <p class="firstline">Lists all the network firewall policies that have been configured</p>
113 <p class="toc_element">
114 <code><a href="#list_next">list_next()</a></code></p>
115 <p class="firstline">Retrieves the next page of results.</p>
116 <p class="toc_element">
117 <code><a href="#patch">patch(project, region, firewallPolicy, body=None, requestId=None, x__xgafv=None)</a></code></p>
118 <p class="firstline">Patches the specified network firewall policy.</p>
119 <p class="toc_element">
120 <code><a href="#patchRule">patchRule(project, region, firewallPolicy, body=None, priority=None, requestId=None, x__xgafv=None)</a></code></p>
121 <p class="firstline">Patches a rule of the specified priority.</p>
122 <p class="toc_element">
123 <code><a href="#removeAssociation">removeAssociation(project, region, firewallPolicy, name=None, requestId=None, x__xgafv=None)</a></code></p>
124 <p class="firstline">Removes an association for the specified network firewall policy.</p>
125 <p class="toc_element">
126 <code><a href="#removeRule">removeRule(project, region, firewallPolicy, priority=None, requestId=None, x__xgafv=None)</a></code></p>
127 <p class="firstline">Deletes a rule of the specified priority.</p>
128 <p class="toc_element">
129 <code><a href="#setIamPolicy">setIamPolicy(project, region, resource, body=None, x__xgafv=None)</a></code></p>
130 <p class="firstline">Sets the access control policy on the specified resource.</p>
131 <p class="toc_element">
132 <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</a></code></p>
133 <p class="firstline">Returns permissions that a caller has on the specified resource.</p>
134 <h3>Method Details</h3>
135 <div class="method">
136 <code class="details" id="addAssociation">addAssociation(project, region, firewallPolicy, body=None, replaceExistingAssociation=None, requestId=None, x__xgafv=None)</code>
137 <pre>Inserts an association for the specified network firewall policy.
138
139 Args:
140 project: string, Project ID for this request. (required)
141 region: string, Name of the region scoping this request. (required)
142 firewallPolicy: string, Name of the firewall policy to update. (required)
143 body: object, The request body.
144 The object takes the form of:
145
146 {
147 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
148 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
149 # of the firewall policy of the association.
150 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
151 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
152 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
153 }
154
155 replaceExistingAssociation: boolean, Indicates whether or not to replace it if an association already exists.
156 This is false by default, in which case an error will be returned if an
157 association already exists.
158 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
159 that if you must retry your request, the server will know to ignore the
160 request if it has already been completed.
161
162 For example, consider a situation where you make an initial request and
163 the request times out. If you make the request again with the same
164 request ID, the server can check if original operation with the same
165 request ID was received, and if so, will ignore the second request. This
166 prevents clients from accidentally creating duplicate commitments.
167
168 The request ID must be
169 a valid UUID with the exception that zero UUID is not supported
170 (00000000-0000-0000-0000-000000000000).
171 x__xgafv: string, V1 error format.
172 Allowed values
173 1 - v1 error format
174 2 - v2 error format
175
176 Returns:
177 An object of the form:
178
179 { # Represents an Operation resource.
180 #
181 # Google Compute Engine has three Operation resources:
182 #
183 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
184 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
185 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
186 #
187 # You can use an operation resource to manage asynchronous API requests.
188 # For more information, readHandling
189 # API responses.
190 #
191 # Operations can be global, regional or zonal.
192 #
193 # - For global operations, use the `globalOperations`
194 # resource.
195 # - For regional operations, use the
196 # `regionOperations` resource.
197 # - For zonal operations, use
198 # the `zoneOperations` resource.
199 #
200 #
201 #
202 # For more information, read
203 # Global, Regional, and Zonal Resources.
204 #
205 # Note that completed Operation resources have a limited
206 # retention period.
207 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
208 # Not present otherwise.
209 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
210 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
211 # set when the operation is created.
212 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
213 # text format.
214 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
215 # this field will be populated.
216 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
217 # operation.
218 {
219 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
220 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
221 # details. There is a set of defined message types to use for providing
222 # details.The syntax depends on the error code. For example,
223 # QuotaExceededInfo will have details when the error code is
224 # QUOTA_EXCEEDED.
225 {
226 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
227 #
228 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
229 # is not enabled:
230 #
231 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
232 # &quot;domain&quot;: &quot;googleapis.com&quot;
233 # &quot;metadata&quot;: {
234 # &quot;resource&quot;: &quot;projects/123&quot;,
235 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
236 # }
237 # }
238 #
239 # This response indicates that the pubsub.googleapis.com API is not enabled.
240 #
241 # Example of an error that is returned when attempting to create a Spanner
242 # instance in a region that is out of stock:
243 #
244 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
245 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
246 # &quot;metadata&quot;: {
247 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
248 # }
249 # }
250 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
251 # is typically the registered service name of the tool or product that
252 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
253 # generated by some common infrastructure, the error domain must be a
254 # globally unique value that identifies the infrastructure. For Google API
255 # infrastructure, the error domain is &quot;googleapis.com&quot;.
256 &quot;metadatas&quot;: { # Additional structured details about this error.
257 #
258 # Keys must match a regular expression of `a-z+` but should
259 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
260 # length. When identifying the current value of an exceeded limit, the units
261 # should be contained in the key, not the value. For example, rather than
262 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
263 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
264 # instances that can be created in a single (batch) request.
265 &quot;a_key&quot;: &quot;A String&quot;,
266 },
267 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
268 # proximate cause of the error. Error reasons are unique within a particular
269 # domain of errors. This should be at most 63 characters and match a
270 # regular expression of `A-Z+[A-Z0-9]`, which represents
271 # UPPER_SNAKE_CASE.
272 },
273 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
274 #
275 # For example, if a quota check failed with an error indicating the calling
276 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
277 # directly to the right place in the developer console to flip the bit.
278 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
279 { # Describes a URL link.
280 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
281 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
282 },
283 ],
284 },
285 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
286 # which can be attached to an RPC error.
287 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
288 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
289 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
290 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
291 },
292 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
293 &quot;dimensions&quot;: { # The map holding related quota dimensions.
294 &quot;a_key&quot;: &quot;A String&quot;,
295 },
296 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
297 # type or metric.
298 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
299 # or metric.
300 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
301 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
302 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
303 },
304 },
305 ],
306 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
307 # This property is optional.
308 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
309 },
310 ],
311 },
312 &quot;getVersionOperationMetadata&quot;: {
313 &quot;inlineSbomInfo&quot;: {
314 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
315 # appropriate identifiers.
316 &quot;a_key&quot;: &quot;A String&quot;,
317 },
318 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
319 # identifiers.
320 &quot;a_key&quot;: &quot;A String&quot;,
321 },
322 },
323 },
324 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
325 # message that was returned, such as `NOT FOUND`.
326 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
327 # status code that was returned. For example, a `404` means the
328 # resource was not found.
329 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
330 # defined by the server.
331 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
332 # This value is inRFC3339
333 # text format.
334 &quot;instancesBulkInsertOperationMetadata&quot;: {
335 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
336 # Example key: zones/us-central1-a
337 &quot;a_key&quot;: {
338 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
339 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
340 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
341 # error.
342 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
343 # if the flow is rolling forward or rolling back.
344 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
345 },
346 },
347 },
348 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
349 # Operation resources.
350 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
351 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
352 # group of operations results from a `bulkInsert` API request.
353 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
354 # `update`, or `delete`, and so on.
355 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
356 # There is no requirement that this be linear or support any granularity of
357 # operations. This should not be used to guess when the operation will be
358 # complete. This number should monotonically increase as the operation
359 # progresses.
360 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
361 # applicable when performing regional operations.
362 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
363 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
364 # this field will contain information on all underlying zonal actions and
365 # their state.
366 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
367 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
368 # Example key: zones/us-central1-a
369 &quot;a_key&quot;: {
370 &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
371 # populated.
372 # different programming environments, including REST APIs and RPC APIs. It is
373 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
374 # three pieces of data: error code, error message, and error details.
375 #
376 # You can find out more about this error model and how to work with it in the
377 # [API Design Guide](https://cloud.google.com/apis/design/errors).
378 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
379 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
380 # message types for APIs to use.
381 {
382 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
383 },
384 ],
385 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
386 # user-facing error message should be localized and sent in the
387 # google.rpc.Status.details field, or localized by the client.
388 },
389 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
390 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
391 },
392 },
393 },
394 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
395 # This value is inRFC3339
396 # text format.
397 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
398 # following:
399 # `PENDING`, `RUNNING`, or `DONE`.
400 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
401 # operation.
402 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
403 # of the target resource.
404 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
405 # operations related to creating a snapshot, this points to the disk
406 # that the snapshot was created from.
407 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
408 # `[email protected]` or
409 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
410 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
411 # operation, this field will be populated.
412 {
413 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
414 # Engine returns NO_RESULTS_ON_PAGE if there
415 # are no results in the response.
416 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
417 # value format. For example:
418 #
419 # &quot;data&quot;: [
420 # {
421 # &quot;key&quot;: &quot;scope&quot;,
422 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
423 # }
424 {
425 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
426 # returned. For example, for warnings where there are no results in a list
427 # request for a particular zone, this key might be scope and
428 # the key value might be the zone name. Other examples might be a key
429 # indicating a deprecated resource and a suggested replacement, or a
430 # warning about invalid network settings (for example, if an instance
431 # attempts to perform IP forwarding but is not enabled for IP forwarding).
432 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
433 },
434 ],
435 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
436 },
437 ],
438 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
439 # applicable when performing per-zone operations.
440 }</pre>
441 </div>
442
443 <div class="method">
444 <code class="details" id="addRule">addRule(project, region, firewallPolicy, body=None, maxPriority=None, minPriority=None, requestId=None, x__xgafv=None)</code>
445 <pre>Inserts a rule into a network firewall policy.
446
447 Args:
448 project: string, Project ID for this request. (required)
449 region: string, Name of the region scoping this request. (required)
450 firewallPolicy: string, Name of the firewall policy to update. (required)
451 body: object, The request body.
452 The object takes the form of:
453
454 { # Represents a rule that describes one or more match conditions along with
455 # the action to be taken when traffic matches this condition (allow or deny).
456 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
457 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
458 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
459 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
460 # and &quot;goto_next&quot;.
461 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
462 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
463 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
464 # the firewall policy rule is not enforced and traffic behaves as if it did
465 # not exist. If this is unspecified, the firewall policy rule will be
466 # enabled.
467 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
468 # enabled, logs will be exported to the configured export destination in
469 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
470 # cannot enable logging on &quot;goto_next&quot; rules.
471 &quot;kind&quot;: &quot;compute#firewallPolicyRule&quot;, # Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules.
472 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
473 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
474 # Exactly one field must be specified.
475 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
476 # Maximum number of destination address groups is 10.
477 &quot;A String&quot;,
478 ],
479 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
480 # traffic destination.
481 # Maximum number of destination fqdn allowed is 100.
482 &quot;A String&quot;,
483 ],
484 &quot;destIpRanges&quot;: [ # CIDR IP address range.
485 # Maximum number of destination CIDR IP ranges allowed is 5000.
486 &quot;A String&quot;,
487 ],
488 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
489 #
490 #
491 # - UNSPECIFIED
492 # - INTERNET
493 # - NON_INTERNET
494 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
495 #
496 #
497 # - UNSPECIFIED
498 # - INTERNET
499 # - NON_INTERNET
500 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
501 # of traffic. Should be specified as 2 letter country code defined as per
502 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
503 # Maximum number of dest region codes allowed is 5000.
504 &quot;A String&quot;,
505 ],
506 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
507 # The IPs in these lists will be matched against traffic destination.
508 &quot;A String&quot;,
509 ],
510 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
511 {
512 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
513 # required when creating a firewall rule. This value can either be
514 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
515 # protocol number.
516 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
517 # only applicable for UDP or TCP protocol. Each entry must be either
518 # an integer or a range. If not specified, this rule applies to
519 # connections through any port.
520 #
521 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
522 &quot;A String&quot;,
523 ],
524 },
525 ],
526 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
527 # Maximum number of source address groups is 10.
528 &quot;A String&quot;,
529 ],
530 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
531 # traffic source.
532 # Maximum number of source fqdn allowed is 100.
533 &quot;A String&quot;,
534 ],
535 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
536 # Maximum number of source CIDR IP ranges allowed is 5000.
537 &quot;A String&quot;,
538 ],
539 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
540 #
541 #
542 # - UNSPECIFIED
543 # - INTERNET
544 # - INTRA_VPC
545 # - NON_INTERNET
546 # - VPC_NETWORKS
547 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
548 #
549 #
550 # - UNSPECIFIED
551 # - INTERNET
552 # - INTRA_VPC
553 # - NON_INTERNET
554 # - VPC_NETWORKS
555 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
556 &quot;A String&quot;,
557 ],
558 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
559 # of traffic. Should be specified as 2 letter country code defined as per
560 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
561 # Maximum number of source region codes allowed is 5000.
562 &quot;A String&quot;,
563 ],
564 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
565 # of the traffic.
566 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
567 # and there is no srcIpRange, this rule will be ignored.
568 # Maximum number of source tag values allowed is 256.
569 {
570 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
571 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
572 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
573 # or its network is deleted.
574 },
575 ],
576 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
577 # The IPs in these lists will be matched against traffic source.
578 &quot;A String&quot;,
579 ],
580 },
581 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
582 # must be a positive value between 0 and 2147483647.
583 # Rules are evaluated from highest to lowest priority where 0 is the
584 # highest priority and 2147483647 is the lowest priority.
585 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
586 # and can be updated.
587 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
588 # rule.
589 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
590 # Example:
591 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
592 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
593 # &#x27;mirror&#x27;. Cannot be specified for other actions.
594 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
595 # This field allows you to control which load balancers get this rule.
596 # For example, the following are valid values:
597 #
598 #
599 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
600 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
601 # - projects/project/global/
602 # forwardingRules/forwardingRule
603 # - projects/project/regions/region/forwardingRules/
604 # forwardingRule
605 &quot;A String&quot;,
606 ],
607 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
608 # allows you to control which network&#x27;s VMs get this rule. If this field
609 # is left blank, all VMs within the organization will receive the rule.
610 &quot;A String&quot;,
611 ],
612 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
613 # applies to. If targetSecureTag are specified, then the
614 # firewall rule applies only to instances in the VPC network that have one
615 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
616 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
617 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
618 # to all instances on the specified network.
619 # Maximum number of target label tags allowed is 256.
620 {
621 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
622 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
623 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
624 # or its network is deleted.
625 },
626 ],
627 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
628 # applied with this rule.
629 &quot;A String&quot;,
630 ],
631 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
632 # Default value is INSTANCES.
633 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
634 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
635 # be set for other actions.
636 }
637
638 maxPriority: integer, When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority&gt;.
639 This field is exclusive with rule.priority.
640 minPriority: integer, When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority&gt;.
641 This field is exclusive with rule.priority.
642 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
643 that if you must retry your request, the server will know to ignore the
644 request if it has already been completed.
645
646 For example, consider a situation where you make an initial request and
647 the request times out. If you make the request again with the same
648 request ID, the server can check if original operation with the same
649 request ID was received, and if so, will ignore the second request. This
650 prevents clients from accidentally creating duplicate commitments.
651
652 The request ID must be
653 a valid UUID with the exception that zero UUID is not supported
654 (00000000-0000-0000-0000-000000000000).
655 x__xgafv: string, V1 error format.
656 Allowed values
657 1 - v1 error format
658 2 - v2 error format
659
660 Returns:
661 An object of the form:
662
663 { # Represents an Operation resource.
664 #
665 # Google Compute Engine has three Operation resources:
666 #
667 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
668 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
669 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
670 #
671 # You can use an operation resource to manage asynchronous API requests.
672 # For more information, readHandling
673 # API responses.
674 #
675 # Operations can be global, regional or zonal.
676 #
677 # - For global operations, use the `globalOperations`
678 # resource.
679 # - For regional operations, use the
680 # `regionOperations` resource.
681 # - For zonal operations, use
682 # the `zoneOperations` resource.
683 #
684 #
685 #
686 # For more information, read
687 # Global, Regional, and Zonal Resources.
688 #
689 # Note that completed Operation resources have a limited
690 # retention period.
691 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
692 # Not present otherwise.
693 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
694 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
695 # set when the operation is created.
696 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
697 # text format.
698 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
699 # this field will be populated.
700 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
701 # operation.
702 {
703 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
704 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
705 # details. There is a set of defined message types to use for providing
706 # details.The syntax depends on the error code. For example,
707 # QuotaExceededInfo will have details when the error code is
708 # QUOTA_EXCEEDED.
709 {
710 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
711 #
712 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
713 # is not enabled:
714 #
715 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
716 # &quot;domain&quot;: &quot;googleapis.com&quot;
717 # &quot;metadata&quot;: {
718 # &quot;resource&quot;: &quot;projects/123&quot;,
719 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
720 # }
721 # }
722 #
723 # This response indicates that the pubsub.googleapis.com API is not enabled.
724 #
725 # Example of an error that is returned when attempting to create a Spanner
726 # instance in a region that is out of stock:
727 #
728 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
729 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
730 # &quot;metadata&quot;: {
731 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
732 # }
733 # }
734 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
735 # is typically the registered service name of the tool or product that
736 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
737 # generated by some common infrastructure, the error domain must be a
738 # globally unique value that identifies the infrastructure. For Google API
739 # infrastructure, the error domain is &quot;googleapis.com&quot;.
740 &quot;metadatas&quot;: { # Additional structured details about this error.
741 #
742 # Keys must match a regular expression of `a-z+` but should
743 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
744 # length. When identifying the current value of an exceeded limit, the units
745 # should be contained in the key, not the value. For example, rather than
746 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
747 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
748 # instances that can be created in a single (batch) request.
749 &quot;a_key&quot;: &quot;A String&quot;,
750 },
751 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
752 # proximate cause of the error. Error reasons are unique within a particular
753 # domain of errors. This should be at most 63 characters and match a
754 # regular expression of `A-Z+[A-Z0-9]`, which represents
755 # UPPER_SNAKE_CASE.
756 },
757 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
758 #
759 # For example, if a quota check failed with an error indicating the calling
760 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
761 # directly to the right place in the developer console to flip the bit.
762 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
763 { # Describes a URL link.
764 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
765 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
766 },
767 ],
768 },
769 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
770 # which can be attached to an RPC error.
771 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
772 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
773 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
774 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
775 },
776 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
777 &quot;dimensions&quot;: { # The map holding related quota dimensions.
778 &quot;a_key&quot;: &quot;A String&quot;,
779 },
780 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
781 # type or metric.
782 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
783 # or metric.
784 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
785 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
786 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
787 },
788 },
789 ],
790 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
791 # This property is optional.
792 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
793 },
794 ],
795 },
796 &quot;getVersionOperationMetadata&quot;: {
797 &quot;inlineSbomInfo&quot;: {
798 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
799 # appropriate identifiers.
800 &quot;a_key&quot;: &quot;A String&quot;,
801 },
802 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
803 # identifiers.
804 &quot;a_key&quot;: &quot;A String&quot;,
805 },
806 },
807 },
808 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
809 # message that was returned, such as `NOT FOUND`.
810 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
811 # status code that was returned. For example, a `404` means the
812 # resource was not found.
813 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
814 # defined by the server.
815 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
816 # This value is inRFC3339
817 # text format.
818 &quot;instancesBulkInsertOperationMetadata&quot;: {
819 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
820 # Example key: zones/us-central1-a
821 &quot;a_key&quot;: {
822 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
823 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
824 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
825 # error.
826 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
827 # if the flow is rolling forward or rolling back.
828 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
829 },
830 },
831 },
832 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
833 # Operation resources.
834 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
835 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
836 # group of operations results from a `bulkInsert` API request.
837 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
838 # `update`, or `delete`, and so on.
839 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
840 # There is no requirement that this be linear or support any granularity of
841 # operations. This should not be used to guess when the operation will be
842 # complete. This number should monotonically increase as the operation
843 # progresses.
844 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
845 # applicable when performing regional operations.
846 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
847 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
848 # this field will contain information on all underlying zonal actions and
849 # their state.
850 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
851 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
852 # Example key: zones/us-central1-a
853 &quot;a_key&quot;: {
854 &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
855 # populated.
856 # different programming environments, including REST APIs and RPC APIs. It is
857 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
858 # three pieces of data: error code, error message, and error details.
859 #
860 # You can find out more about this error model and how to work with it in the
861 # [API Design Guide](https://cloud.google.com/apis/design/errors).
862 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
863 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
864 # message types for APIs to use.
865 {
866 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
867 },
868 ],
869 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
870 # user-facing error message should be localized and sent in the
871 # google.rpc.Status.details field, or localized by the client.
872 },
873 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
874 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
875 },
876 },
877 },
878 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
879 # This value is inRFC3339
880 # text format.
881 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
882 # following:
883 # `PENDING`, `RUNNING`, or `DONE`.
884 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
885 # operation.
886 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
887 # of the target resource.
888 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
889 # operations related to creating a snapshot, this points to the disk
890 # that the snapshot was created from.
891 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
892 # `[email protected]` or
893 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
894 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
895 # operation, this field will be populated.
896 {
897 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
898 # Engine returns NO_RESULTS_ON_PAGE if there
899 # are no results in the response.
900 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
901 # value format. For example:
902 #
903 # &quot;data&quot;: [
904 # {
905 # &quot;key&quot;: &quot;scope&quot;,
906 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
907 # }
908 {
909 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
910 # returned. For example, for warnings where there are no results in a list
911 # request for a particular zone, this key might be scope and
912 # the key value might be the zone name. Other examples might be a key
913 # indicating a deprecated resource and a suggested replacement, or a
914 # warning about invalid network settings (for example, if an instance
915 # attempts to perform IP forwarding but is not enabled for IP forwarding).
916 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
917 },
918 ],
919 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
920 },
921 ],
922 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
923 # applicable when performing per-zone operations.
924 }</pre>
925 </div>
926
927 <div class="method">
928 <code class="details" id="cloneRules">cloneRules(project, region, firewallPolicy, requestId=None, sourceFirewallPolicy=None, x__xgafv=None)</code>
929 <pre>Copies rules to the specified network firewall policy.
930
931 Args:
932 project: string, Project ID for this request. (required)
933 region: string, Name of the region scoping this request. (required)
934 firewallPolicy: string, Name of the firewall policy to update. (required)
935 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
936 that if you must retry your request, the server will know to ignore the
937 request if it has already been completed.
938
939 For example, consider a situation where you make an initial request and
940 the request times out. If you make the request again with the same
941 request ID, the server can check if original operation with the same
942 request ID was received, and if so, will ignore the second request. This
943 prevents clients from accidentally creating duplicate commitments.
944
945 The request ID must be
946 a valid UUID with the exception that zero UUID is not supported
947 (00000000-0000-0000-0000-000000000000).
948 sourceFirewallPolicy: string, The firewall policy from which to copy rules.
949 x__xgafv: string, V1 error format.
950 Allowed values
951 1 - v1 error format
952 2 - v2 error format
953
954 Returns:
955 An object of the form:
956
957 { # Represents an Operation resource.
958 #
959 # Google Compute Engine has three Operation resources:
960 #
961 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
962 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
963 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
964 #
965 # You can use an operation resource to manage asynchronous API requests.
966 # For more information, readHandling
967 # API responses.
968 #
969 # Operations can be global, regional or zonal.
970 #
971 # - For global operations, use the `globalOperations`
972 # resource.
973 # - For regional operations, use the
974 # `regionOperations` resource.
975 # - For zonal operations, use
976 # the `zoneOperations` resource.
977 #
978 #
979 #
980 # For more information, read
981 # Global, Regional, and Zonal Resources.
982 #
983 # Note that completed Operation resources have a limited
984 # retention period.
985 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
986 # Not present otherwise.
987 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
988 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
989 # set when the operation is created.
990 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
991 # text format.
992 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
993 # this field will be populated.
994 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
995 # operation.
996 {
997 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
998 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
999 # details. There is a set of defined message types to use for providing
1000 # details.The syntax depends on the error code. For example,
1001 # QuotaExceededInfo will have details when the error code is
1002 # QUOTA_EXCEEDED.
1003 {
1004 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1005 #
1006 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1007 # is not enabled:
1008 #
1009 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1010 # &quot;domain&quot;: &quot;googleapis.com&quot;
1011 # &quot;metadata&quot;: {
1012 # &quot;resource&quot;: &quot;projects/123&quot;,
1013 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1014 # }
1015 # }
1016 #
1017 # This response indicates that the pubsub.googleapis.com API is not enabled.
1018 #
1019 # Example of an error that is returned when attempting to create a Spanner
1020 # instance in a region that is out of stock:
1021 #
1022 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1023 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1024 # &quot;metadata&quot;: {
1025 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1026 # }
1027 # }
1028 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1029 # is typically the registered service name of the tool or product that
1030 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1031 # generated by some common infrastructure, the error domain must be a
1032 # globally unique value that identifies the infrastructure. For Google API
1033 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1034 &quot;metadatas&quot;: { # Additional structured details about this error.
1035 #
1036 # Keys must match a regular expression of `a-z+` but should
1037 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1038 # length. When identifying the current value of an exceeded limit, the units
1039 # should be contained in the key, not the value. For example, rather than
1040 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1041 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1042 # instances that can be created in a single (batch) request.
1043 &quot;a_key&quot;: &quot;A String&quot;,
1044 },
1045 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1046 # proximate cause of the error. Error reasons are unique within a particular
1047 # domain of errors. This should be at most 63 characters and match a
1048 # regular expression of `A-Z+[A-Z0-9]`, which represents
1049 # UPPER_SNAKE_CASE.
1050 },
1051 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1052 #
1053 # For example, if a quota check failed with an error indicating the calling
1054 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1055 # directly to the right place in the developer console to flip the bit.
1056 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1057 { # Describes a URL link.
1058 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1059 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1060 },
1061 ],
1062 },
1063 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1064 # which can be attached to an RPC error.
1065 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1066 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1067 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1068 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1069 },
1070 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1071 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1072 &quot;a_key&quot;: &quot;A String&quot;,
1073 },
1074 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1075 # type or metric.
1076 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1077 # or metric.
1078 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1079 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1080 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1081 },
1082 },
1083 ],
1084 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1085 # This property is optional.
1086 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1087 },
1088 ],
1089 },
1090 &quot;getVersionOperationMetadata&quot;: {
1091 &quot;inlineSbomInfo&quot;: {
1092 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1093 # appropriate identifiers.
1094 &quot;a_key&quot;: &quot;A String&quot;,
1095 },
1096 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1097 # identifiers.
1098 &quot;a_key&quot;: &quot;A String&quot;,
1099 },
1100 },
1101 },
1102 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1103 # message that was returned, such as `NOT FOUND`.
1104 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1105 # status code that was returned. For example, a `404` means the
1106 # resource was not found.
1107 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1108 # defined by the server.
1109 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1110 # This value is inRFC3339
1111 # text format.
1112 &quot;instancesBulkInsertOperationMetadata&quot;: {
1113 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1114 # Example key: zones/us-central1-a
1115 &quot;a_key&quot;: {
1116 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1117 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1118 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1119 # error.
1120 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1121 # if the flow is rolling forward or rolling back.
1122 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1123 },
1124 },
1125 },
1126 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1127 # Operation resources.
1128 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1129 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1130 # group of operations results from a `bulkInsert` API request.
1131 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1132 # `update`, or `delete`, and so on.
1133 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1134 # There is no requirement that this be linear or support any granularity of
1135 # operations. This should not be used to guess when the operation will be
1136 # complete. This number should monotonically increase as the operation
1137 # progresses.
1138 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1139 # applicable when performing regional operations.
1140 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1141 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1142 # this field will contain information on all underlying zonal actions and
1143 # their state.
1144 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1145 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1146 # Example key: zones/us-central1-a
1147 &quot;a_key&quot;: {
1148 &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
1149 # populated.
1150 # different programming environments, including REST APIs and RPC APIs. It is
1151 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1152 # three pieces of data: error code, error message, and error details.
1153 #
1154 # You can find out more about this error model and how to work with it in the
1155 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1156 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1157 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1158 # message types for APIs to use.
1159 {
1160 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1161 },
1162 ],
1163 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1164 # user-facing error message should be localized and sent in the
1165 # google.rpc.Status.details field, or localized by the client.
1166 },
1167 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1168 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1169 },
1170 },
1171 },
1172 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1173 # This value is inRFC3339
1174 # text format.
1175 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1176 # following:
1177 # `PENDING`, `RUNNING`, or `DONE`.
1178 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1179 # operation.
1180 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1181 # of the target resource.
1182 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1183 # operations related to creating a snapshot, this points to the disk
1184 # that the snapshot was created from.
1185 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1186 # `[email protected]` or
1187 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1188 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1189 # operation, this field will be populated.
1190 {
1191 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1192 # Engine returns NO_RESULTS_ON_PAGE if there
1193 # are no results in the response.
1194 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1195 # value format. For example:
1196 #
1197 # &quot;data&quot;: [
1198 # {
1199 # &quot;key&quot;: &quot;scope&quot;,
1200 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1201 # }
1202 {
1203 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1204 # returned. For example, for warnings where there are no results in a list
1205 # request for a particular zone, this key might be scope and
1206 # the key value might be the zone name. Other examples might be a key
1207 # indicating a deprecated resource and a suggested replacement, or a
1208 # warning about invalid network settings (for example, if an instance
1209 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1210 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1211 },
1212 ],
1213 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1214 },
1215 ],
1216 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1217 # applicable when performing per-zone operations.
1218 }</pre>
1219 </div>
1220
1221 <div class="method">
1222 <code class="details" id="close">close()</code>
1223 <pre>Close httplib2 connections.</pre>
1224 </div>
1225
1226 <div class="method">
1227 <code class="details" id="delete">delete(project, region, firewallPolicy, requestId=None, x__xgafv=None)</code>
1228 <pre>Deletes the specified network firewall policy.
1229
1230 Args:
1231 project: string, Project ID for this request. (required)
1232 region: string, Name of the region scoping this request. (required)
1233 firewallPolicy: string, Name of the firewall policy to delete. (required)
1234 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
1235 that if you must retry your request, the server will know to ignore the
1236 request if it has already been completed.
1237
1238 For example, consider a situation where you make an initial request and
1239 the request times out. If you make the request again with the same
1240 request ID, the server can check if original operation with the same
1241 request ID was received, and if so, will ignore the second request. This
1242 prevents clients from accidentally creating duplicate commitments.
1243
1244 The request ID must be
1245 a valid UUID with the exception that zero UUID is not supported
1246 (00000000-0000-0000-0000-000000000000).
1247 x__xgafv: string, V1 error format.
1248 Allowed values
1249 1 - v1 error format
1250 2 - v2 error format
1251
1252 Returns:
1253 An object of the form:
1254
1255 { # Represents an Operation resource.
1256 #
1257 # Google Compute Engine has three Operation resources:
1258 #
1259 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
1260 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
1261 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
1262 #
1263 # You can use an operation resource to manage asynchronous API requests.
1264 # For more information, readHandling
1265 # API responses.
1266 #
1267 # Operations can be global, regional or zonal.
1268 #
1269 # - For global operations, use the `globalOperations`
1270 # resource.
1271 # - For regional operations, use the
1272 # `regionOperations` resource.
1273 # - For zonal operations, use
1274 # the `zoneOperations` resource.
1275 #
1276 #
1277 #
1278 # For more information, read
1279 # Global, Regional, and Zonal Resources.
1280 #
1281 # Note that completed Operation resources have a limited
1282 # retention period.
1283 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1284 # Not present otherwise.
1285 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1286 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1287 # set when the operation is created.
1288 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1289 # text format.
1290 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1291 # this field will be populated.
1292 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1293 # operation.
1294 {
1295 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1296 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1297 # details. There is a set of defined message types to use for providing
1298 # details.The syntax depends on the error code. For example,
1299 # QuotaExceededInfo will have details when the error code is
1300 # QUOTA_EXCEEDED.
1301 {
1302 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1303 #
1304 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1305 # is not enabled:
1306 #
1307 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1308 # &quot;domain&quot;: &quot;googleapis.com&quot;
1309 # &quot;metadata&quot;: {
1310 # &quot;resource&quot;: &quot;projects/123&quot;,
1311 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1312 # }
1313 # }
1314 #
1315 # This response indicates that the pubsub.googleapis.com API is not enabled.
1316 #
1317 # Example of an error that is returned when attempting to create a Spanner
1318 # instance in a region that is out of stock:
1319 #
1320 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1321 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1322 # &quot;metadata&quot;: {
1323 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1324 # }
1325 # }
1326 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1327 # is typically the registered service name of the tool or product that
1328 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1329 # generated by some common infrastructure, the error domain must be a
1330 # globally unique value that identifies the infrastructure. For Google API
1331 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1332 &quot;metadatas&quot;: { # Additional structured details about this error.
1333 #
1334 # Keys must match a regular expression of `a-z+` but should
1335 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1336 # length. When identifying the current value of an exceeded limit, the units
1337 # should be contained in the key, not the value. For example, rather than
1338 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1339 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1340 # instances that can be created in a single (batch) request.
1341 &quot;a_key&quot;: &quot;A String&quot;,
1342 },
1343 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1344 # proximate cause of the error. Error reasons are unique within a particular
1345 # domain of errors. This should be at most 63 characters and match a
1346 # regular expression of `A-Z+[A-Z0-9]`, which represents
1347 # UPPER_SNAKE_CASE.
1348 },
1349 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1350 #
1351 # For example, if a quota check failed with an error indicating the calling
1352 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1353 # directly to the right place in the developer console to flip the bit.
1354 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1355 { # Describes a URL link.
1356 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1357 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1358 },
1359 ],
1360 },
1361 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1362 # which can be attached to an RPC error.
1363 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1364 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1365 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1366 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1367 },
1368 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1369 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1370 &quot;a_key&quot;: &quot;A String&quot;,
1371 },
1372 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1373 # type or metric.
1374 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1375 # or metric.
1376 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1377 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1378 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1379 },
1380 },
1381 ],
1382 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1383 # This property is optional.
1384 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1385 },
1386 ],
1387 },
1388 &quot;getVersionOperationMetadata&quot;: {
1389 &quot;inlineSbomInfo&quot;: {
1390 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1391 # appropriate identifiers.
1392 &quot;a_key&quot;: &quot;A String&quot;,
1393 },
1394 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1395 # identifiers.
1396 &quot;a_key&quot;: &quot;A String&quot;,
1397 },
1398 },
1399 },
1400 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1401 # message that was returned, such as `NOT FOUND`.
1402 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1403 # status code that was returned. For example, a `404` means the
1404 # resource was not found.
1405 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1406 # defined by the server.
1407 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1408 # This value is inRFC3339
1409 # text format.
1410 &quot;instancesBulkInsertOperationMetadata&quot;: {
1411 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1412 # Example key: zones/us-central1-a
1413 &quot;a_key&quot;: {
1414 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1415 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1416 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1417 # error.
1418 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1419 # if the flow is rolling forward or rolling back.
1420 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1421 },
1422 },
1423 },
1424 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1425 # Operation resources.
1426 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1427 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1428 # group of operations results from a `bulkInsert` API request.
1429 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1430 # `update`, or `delete`, and so on.
1431 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1432 # There is no requirement that this be linear or support any granularity of
1433 # operations. This should not be used to guess when the operation will be
1434 # complete. This number should monotonically increase as the operation
1435 # progresses.
1436 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1437 # applicable when performing regional operations.
1438 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1439 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1440 # this field will contain information on all underlying zonal actions and
1441 # their state.
1442 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1443 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1444 # Example key: zones/us-central1-a
1445 &quot;a_key&quot;: {
1446 &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
1447 # populated.
1448 # different programming environments, including REST APIs and RPC APIs. It is
1449 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1450 # three pieces of data: error code, error message, and error details.
1451 #
1452 # You can find out more about this error model and how to work with it in the
1453 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1454 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1455 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1456 # message types for APIs to use.
1457 {
1458 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1459 },
1460 ],
1461 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1462 # user-facing error message should be localized and sent in the
1463 # google.rpc.Status.details field, or localized by the client.
1464 },
1465 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1466 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1467 },
1468 },
1469 },
1470 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1471 # This value is inRFC3339
1472 # text format.
1473 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1474 # following:
1475 # `PENDING`, `RUNNING`, or `DONE`.
1476 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1477 # operation.
1478 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1479 # of the target resource.
1480 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1481 # operations related to creating a snapshot, this points to the disk
1482 # that the snapshot was created from.
1483 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1484 # `[email protected]` or
1485 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1486 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1487 # operation, this field will be populated.
1488 {
1489 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1490 # Engine returns NO_RESULTS_ON_PAGE if there
1491 # are no results in the response.
1492 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1493 # value format. For example:
1494 #
1495 # &quot;data&quot;: [
1496 # {
1497 # &quot;key&quot;: &quot;scope&quot;,
1498 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1499 # }
1500 {
1501 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1502 # returned. For example, for warnings where there are no results in a list
1503 # request for a particular zone, this key might be scope and
1504 # the key value might be the zone name. Other examples might be a key
1505 # indicating a deprecated resource and a suggested replacement, or a
1506 # warning about invalid network settings (for example, if an instance
1507 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1508 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1509 },
1510 ],
1511 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1512 },
1513 ],
1514 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1515 # applicable when performing per-zone operations.
1516 }</pre>
1517 </div>
1518
1519 <div class="method">
1520 <code class="details" id="get">get(project, region, firewallPolicy, x__xgafv=None)</code>
1521 <pre>Returns the specified network firewall policy.
1522
1523 Args:
1524 project: string, Project ID for this request. (required)
1525 region: string, Name of the region scoping this request. (required)
1526 firewallPolicy: string, Name of the firewall policy to get. (required)
1527 x__xgafv: string, V1 error format.
1528 Allowed values
1529 1 - v1 error format
1530 2 - v2 error format
1531
1532 Returns:
1533 An object of the form:
1534
1535 { # Represents a Firewall Policy resource.
1536 &quot;associations&quot;: [ # A list of associations that belong to this firewall policy.
1537 {
1538 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
1539 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
1540 # of the firewall policy of the association.
1541 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
1542 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
1543 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
1544 },
1545 ],
1546 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
1547 # text format.
1548 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
1549 # create the resource.
1550 &quot;displayName&quot;: &quot;A String&quot;, # Deprecated, please use short name instead. User-provided name of the
1551 # Organization firewall policy. The name should be unique in the organization
1552 # in which the firewall policy is created.
1553 # This field is not applicable to network firewall policies.
1554 # This name must be set on creation and cannot be changed.
1555 # The name must be 1-63 characters long, and comply
1556 # with RFC1035. Specifically, the name must be 1-63 characters
1557 # long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which
1558 # means the first character must be a lowercase letter, and all following
1559 # characters must be a dash, lowercase letter, or digit, except the last
1560 # character, which cannot be a dash.
1561 &quot;fingerprint&quot;: &quot;A String&quot;, # Specifies a fingerprint for this resource, which is essentially a hash of
1562 # the metadata&#x27;s contents and used for optimistic locking. The
1563 # fingerprint is initially generated by Compute Engine and changes after
1564 # every request to modify or update metadata. You must always provide an
1565 # up-to-date fingerprint hash in order to update or change metadata,
1566 # otherwise the request will fail with error412 conditionNotMet.
1567 #
1568 # To see the latest fingerprint, make get() request to the
1569 # firewall policy.
1570 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
1571 # defined by the server.
1572 &quot;kind&quot;: &quot;compute#firewallPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
1573 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. For Organization Firewall Policies it&#x27;s a
1574 # [Output Only] numeric ID allocated by Google Cloud which uniquely
1575 # identifies the Organization Firewall Policy.
1576 &quot;packetMirroringRules&quot;: [ # A list of packet mirroring rules that belong to this policy.
1577 { # Represents a rule that describes one or more match conditions along with
1578 # the action to be taken when traffic matches this condition (allow or deny).
1579 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
1580 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
1581 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
1582 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
1583 # and &quot;goto_next&quot;.
1584 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
1585 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
1586 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
1587 # the firewall policy rule is not enforced and traffic behaves as if it did
1588 # not exist. If this is unspecified, the firewall policy rule will be
1589 # enabled.
1590 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
1591 # enabled, logs will be exported to the configured export destination in
1592 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
1593 # cannot enable logging on &quot;goto_next&quot; rules.
1594 &quot;kind&quot;: &quot;compute#firewallPolicyRule&quot;, # Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules.
1595 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
1596 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
1597 # Exactly one field must be specified.
1598 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
1599 # Maximum number of destination address groups is 10.
1600 &quot;A String&quot;,
1601 ],
1602 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
1603 # traffic destination.
1604 # Maximum number of destination fqdn allowed is 100.
1605 &quot;A String&quot;,
1606 ],
1607 &quot;destIpRanges&quot;: [ # CIDR IP address range.
1608 # Maximum number of destination CIDR IP ranges allowed is 5000.
1609 &quot;A String&quot;,
1610 ],
1611 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
1612 #
1613 #
1614 # - UNSPECIFIED
1615 # - INTERNET
1616 # - NON_INTERNET
1617 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
1618 #
1619 #
1620 # - UNSPECIFIED
1621 # - INTERNET
1622 # - NON_INTERNET
1623 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
1624 # of traffic. Should be specified as 2 letter country code defined as per
1625 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
1626 # Maximum number of dest region codes allowed is 5000.
1627 &quot;A String&quot;,
1628 ],
1629 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1630 # The IPs in these lists will be matched against traffic destination.
1631 &quot;A String&quot;,
1632 ],
1633 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
1634 {
1635 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
1636 # required when creating a firewall rule. This value can either be
1637 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
1638 # protocol number.
1639 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
1640 # only applicable for UDP or TCP protocol. Each entry must be either
1641 # an integer or a range. If not specified, this rule applies to
1642 # connections through any port.
1643 #
1644 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
1645 &quot;A String&quot;,
1646 ],
1647 },
1648 ],
1649 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
1650 # Maximum number of source address groups is 10.
1651 &quot;A String&quot;,
1652 ],
1653 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
1654 # traffic source.
1655 # Maximum number of source fqdn allowed is 100.
1656 &quot;A String&quot;,
1657 ],
1658 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
1659 # Maximum number of source CIDR IP ranges allowed is 5000.
1660 &quot;A String&quot;,
1661 ],
1662 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
1663 #
1664 #
1665 # - UNSPECIFIED
1666 # - INTERNET
1667 # - INTRA_VPC
1668 # - NON_INTERNET
1669 # - VPC_NETWORKS
1670 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
1671 #
1672 #
1673 # - UNSPECIFIED
1674 # - INTERNET
1675 # - INTRA_VPC
1676 # - NON_INTERNET
1677 # - VPC_NETWORKS
1678 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
1679 &quot;A String&quot;,
1680 ],
1681 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
1682 # of traffic. Should be specified as 2 letter country code defined as per
1683 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
1684 # Maximum number of source region codes allowed is 5000.
1685 &quot;A String&quot;,
1686 ],
1687 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
1688 # of the traffic.
1689 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
1690 # and there is no srcIpRange, this rule will be ignored.
1691 # Maximum number of source tag values allowed is 256.
1692 {
1693 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1694 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1695 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1696 # or its network is deleted.
1697 },
1698 ],
1699 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1700 # The IPs in these lists will be matched against traffic source.
1701 &quot;A String&quot;,
1702 ],
1703 },
1704 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
1705 # must be a positive value between 0 and 2147483647.
1706 # Rules are evaluated from highest to lowest priority where 0 is the
1707 # highest priority and 2147483647 is the lowest priority.
1708 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
1709 # and can be updated.
1710 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
1711 # rule.
1712 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
1713 # Example:
1714 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
1715 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
1716 # &#x27;mirror&#x27;. Cannot be specified for other actions.
1717 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
1718 # This field allows you to control which load balancers get this rule.
1719 # For example, the following are valid values:
1720 #
1721 #
1722 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
1723 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
1724 # - projects/project/global/
1725 # forwardingRules/forwardingRule
1726 # - projects/project/regions/region/forwardingRules/
1727 # forwardingRule
1728 &quot;A String&quot;,
1729 ],
1730 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
1731 # allows you to control which network&#x27;s VMs get this rule. If this field
1732 # is left blank, all VMs within the organization will receive the rule.
1733 &quot;A String&quot;,
1734 ],
1735 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
1736 # applies to. If targetSecureTag are specified, then the
1737 # firewall rule applies only to instances in the VPC network that have one
1738 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
1739 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
1740 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
1741 # to all instances on the specified network.
1742 # Maximum number of target label tags allowed is 256.
1743 {
1744 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1745 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1746 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1747 # or its network is deleted.
1748 },
1749 ],
1750 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
1751 # applied with this rule.
1752 &quot;A String&quot;,
1753 ],
1754 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
1755 # Default value is INSTANCES.
1756 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
1757 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
1758 # be set for other actions.
1759 },
1760 ],
1761 &quot;parent&quot;: &quot;A String&quot;, # Output only. [Output Only] The parent of the firewall policy.
1762 # This field is not applicable to network firewall policies.
1763 &quot;policyType&quot;: &quot;A String&quot;, # The type of the firewall policy. This field can be one of
1764 # VPC_POLICY, RDMA_ROCE_POLICY or ULL_POLICY.
1765 #
1766 # Note: if not specified then VPC_POLICY will be used.
1767 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional firewall policy resides.
1768 # This field is not applicable to global firewall policies.
1769 # You must specify this field as part of the HTTP request URL. It is
1770 # not settable as a field in the request body.
1771 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall
1772 # policy can not exceed a set number of tuples.
1773 &quot;rules&quot;: [ # A list of rules that belong to this policy.
1774 # There must always be a default rule (rule with priority 2147483647 and
1775 # match &quot;*&quot;). If no rules are provided when creating a firewall policy, a
1776 # default rule with action &quot;allow&quot; will be added.
1777 { # Represents a rule that describes one or more match conditions along with
1778 # the action to be taken when traffic matches this condition (allow or deny).
1779 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
1780 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
1781 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
1782 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
1783 # and &quot;goto_next&quot;.
1784 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
1785 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
1786 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
1787 # the firewall policy rule is not enforced and traffic behaves as if it did
1788 # not exist. If this is unspecified, the firewall policy rule will be
1789 # enabled.
1790 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
1791 # enabled, logs will be exported to the configured export destination in
1792 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
1793 # cannot enable logging on &quot;goto_next&quot; rules.
1794 &quot;kind&quot;: &quot;compute#firewallPolicyRule&quot;, # Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules.
1795 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
1796 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
1797 # Exactly one field must be specified.
1798 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
1799 # Maximum number of destination address groups is 10.
1800 &quot;A String&quot;,
1801 ],
1802 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
1803 # traffic destination.
1804 # Maximum number of destination fqdn allowed is 100.
1805 &quot;A String&quot;,
1806 ],
1807 &quot;destIpRanges&quot;: [ # CIDR IP address range.
1808 # Maximum number of destination CIDR IP ranges allowed is 5000.
1809 &quot;A String&quot;,
1810 ],
1811 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
1812 #
1813 #
1814 # - UNSPECIFIED
1815 # - INTERNET
1816 # - NON_INTERNET
1817 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
1818 #
1819 #
1820 # - UNSPECIFIED
1821 # - INTERNET
1822 # - NON_INTERNET
1823 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
1824 # of traffic. Should be specified as 2 letter country code defined as per
1825 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
1826 # Maximum number of dest region codes allowed is 5000.
1827 &quot;A String&quot;,
1828 ],
1829 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1830 # The IPs in these lists will be matched against traffic destination.
1831 &quot;A String&quot;,
1832 ],
1833 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
1834 {
1835 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
1836 # required when creating a firewall rule. This value can either be
1837 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
1838 # protocol number.
1839 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
1840 # only applicable for UDP or TCP protocol. Each entry must be either
1841 # an integer or a range. If not specified, this rule applies to
1842 # connections through any port.
1843 #
1844 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
1845 &quot;A String&quot;,
1846 ],
1847 },
1848 ],
1849 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
1850 # Maximum number of source address groups is 10.
1851 &quot;A String&quot;,
1852 ],
1853 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
1854 # traffic source.
1855 # Maximum number of source fqdn allowed is 100.
1856 &quot;A String&quot;,
1857 ],
1858 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
1859 # Maximum number of source CIDR IP ranges allowed is 5000.
1860 &quot;A String&quot;,
1861 ],
1862 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
1863 #
1864 #
1865 # - UNSPECIFIED
1866 # - INTERNET
1867 # - INTRA_VPC
1868 # - NON_INTERNET
1869 # - VPC_NETWORKS
1870 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
1871 #
1872 #
1873 # - UNSPECIFIED
1874 # - INTERNET
1875 # - INTRA_VPC
1876 # - NON_INTERNET
1877 # - VPC_NETWORKS
1878 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
1879 &quot;A String&quot;,
1880 ],
1881 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
1882 # of traffic. Should be specified as 2 letter country code defined as per
1883 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
1884 # Maximum number of source region codes allowed is 5000.
1885 &quot;A String&quot;,
1886 ],
1887 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
1888 # of the traffic.
1889 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
1890 # and there is no srcIpRange, this rule will be ignored.
1891 # Maximum number of source tag values allowed is 256.
1892 {
1893 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1894 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1895 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1896 # or its network is deleted.
1897 },
1898 ],
1899 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1900 # The IPs in these lists will be matched against traffic source.
1901 &quot;A String&quot;,
1902 ],
1903 },
1904 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
1905 # must be a positive value between 0 and 2147483647.
1906 # Rules are evaluated from highest to lowest priority where 0 is the
1907 # highest priority and 2147483647 is the lowest priority.
1908 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
1909 # and can be updated.
1910 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
1911 # rule.
1912 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
1913 # Example:
1914 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
1915 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
1916 # &#x27;mirror&#x27;. Cannot be specified for other actions.
1917 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
1918 # This field allows you to control which load balancers get this rule.
1919 # For example, the following are valid values:
1920 #
1921 #
1922 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
1923 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
1924 # - projects/project/global/
1925 # forwardingRules/forwardingRule
1926 # - projects/project/regions/region/forwardingRules/
1927 # forwardingRule
1928 &quot;A String&quot;,
1929 ],
1930 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
1931 # allows you to control which network&#x27;s VMs get this rule. If this field
1932 # is left blank, all VMs within the organization will receive the rule.
1933 &quot;A String&quot;,
1934 ],
1935 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
1936 # applies to. If targetSecureTag are specified, then the
1937 # firewall rule applies only to instances in the VPC network that have one
1938 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
1939 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
1940 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
1941 # to all instances on the specified network.
1942 # Maximum number of target label tags allowed is 256.
1943 {
1944 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1945 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1946 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1947 # or its network is deleted.
1948 },
1949 ],
1950 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
1951 # applied with this rule.
1952 &quot;A String&quot;,
1953 ],
1954 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
1955 # Default value is INSTANCES.
1956 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
1957 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
1958 # be set for other actions.
1959 },
1960 ],
1961 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1962 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
1963 &quot;shortName&quot;: &quot;A String&quot;, # User-provided name of the Organization firewall policy. The name should be
1964 # unique in the organization in which the firewall policy is created.
1965 # This field is not applicable to network firewall policies.
1966 # This name must be set on creation and cannot be changed. The name must be
1967 # 1-63 characters long, and comply with RFC1035.
1968 # Specifically, the name must be 1-63 characters long and match the regular
1969 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1970 # character must be a lowercase letter, and all following characters must
1971 # be a dash, lowercase letter, or digit, except the last character, which
1972 # cannot be a dash.
1973 }</pre>
1974 </div>
1975
1976 <div class="method">
1977 <code class="details" id="getAssociation">getAssociation(project, region, firewallPolicy, name=None, x__xgafv=None)</code>
1978 <pre>Gets an association with the specified name.
1979
1980 Args:
1981 project: string, Project ID for this request. (required)
1982 region: string, Name of the region scoping this request. (required)
1983 firewallPolicy: string, Name of the firewall policy to which the queried association belongs. (required)
1984 name: string, The name of the association to get from the firewall policy.
1985 x__xgafv: string, V1 error format.
1986 Allowed values
1987 1 - v1 error format
1988 2 - v2 error format
1989
1990 Returns:
1991 An object of the form:
1992
1993 {
1994 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
1995 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
1996 # of the firewall policy of the association.
1997 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
1998 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
1999 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
2000 }</pre>
2001 </div>
2002
2003 <div class="method">
2004 <code class="details" id="getEffectiveFirewalls">getEffectiveFirewalls(project, region, network, x__xgafv=None)</code>
2005 <pre>Returns the effective firewalls on a given network.
2006
2007 Args:
2008 project: string, Project ID for this request. (required)
2009 region: string, Name of the region scoping this request. (required)
2010 network: string, Network reference (required)
2011 x__xgafv: string, V1 error format.
2012 Allowed values
2013 1 - v1 error format
2014 2 - v2 error format
2015
2016 Returns:
2017 An object of the form:
2018
2019 {
2020 &quot;firewallPolicys&quot;: [ # Output only. [Output only] Effective firewalls from firewall policy. It applies to
2021 # Regional Network Firewall Policies in the specified region, Global Network
2022 # Firewall Policies and Hierachial Firewall Policies which are associated
2023 # with the network.
2024 {
2025 &quot;displayName&quot;: &quot;A String&quot;, # Output only. [Output Only] The display name of the firewall policy.
2026 &quot;name&quot;: &quot;A String&quot;, # Output only. [Output Only] The name of the firewall policy.
2027 &quot;packetMirroringRules&quot;: [ # Output only. [Output only] The packet mirroring rules that apply to the network.
2028 { # Represents a rule that describes one or more match conditions along with
2029 # the action to be taken when traffic matches this condition (allow or deny).
2030 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
2031 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
2032 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
2033 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
2034 # and &quot;goto_next&quot;.
2035 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
2036 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
2037 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
2038 # the firewall policy rule is not enforced and traffic behaves as if it did
2039 # not exist. If this is unspecified, the firewall policy rule will be
2040 # enabled.
2041 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
2042 # enabled, logs will be exported to the configured export destination in
2043 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
2044 # cannot enable logging on &quot;goto_next&quot; rules.
2045 &quot;kind&quot;: &quot;compute#firewallPolicyRule&quot;, # Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules.
2046 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
2047 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
2048 # Exactly one field must be specified.
2049 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
2050 # Maximum number of destination address groups is 10.
2051 &quot;A String&quot;,
2052 ],
2053 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
2054 # traffic destination.
2055 # Maximum number of destination fqdn allowed is 100.
2056 &quot;A String&quot;,
2057 ],
2058 &quot;destIpRanges&quot;: [ # CIDR IP address range.
2059 # Maximum number of destination CIDR IP ranges allowed is 5000.
2060 &quot;A String&quot;,
2061 ],
2062 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
2063 #
2064 #
2065 # - UNSPECIFIED
2066 # - INTERNET
2067 # - NON_INTERNET
2068 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
2069 #
2070 #
2071 # - UNSPECIFIED
2072 # - INTERNET
2073 # - NON_INTERNET
2074 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
2075 # of traffic. Should be specified as 2 letter country code defined as per
2076 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
2077 # Maximum number of dest region codes allowed is 5000.
2078 &quot;A String&quot;,
2079 ],
2080 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
2081 # The IPs in these lists will be matched against traffic destination.
2082 &quot;A String&quot;,
2083 ],
2084 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
2085 {
2086 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
2087 # required when creating a firewall rule. This value can either be
2088 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
2089 # protocol number.
2090 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
2091 # only applicable for UDP or TCP protocol. Each entry must be either
2092 # an integer or a range. If not specified, this rule applies to
2093 # connections through any port.
2094 #
2095 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
2096 &quot;A String&quot;,
2097 ],
2098 },
2099 ],
2100 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
2101 # Maximum number of source address groups is 10.
2102 &quot;A String&quot;,
2103 ],
2104 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
2105 # traffic source.
2106 # Maximum number of source fqdn allowed is 100.
2107 &quot;A String&quot;,
2108 ],
2109 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
2110 # Maximum number of source CIDR IP ranges allowed is 5000.
2111 &quot;A String&quot;,
2112 ],
2113 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
2114 #
2115 #
2116 # - UNSPECIFIED
2117 # - INTERNET
2118 # - INTRA_VPC
2119 # - NON_INTERNET
2120 # - VPC_NETWORKS
2121 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
2122 #
2123 #
2124 # - UNSPECIFIED
2125 # - INTERNET
2126 # - INTRA_VPC
2127 # - NON_INTERNET
2128 # - VPC_NETWORKS
2129 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
2130 &quot;A String&quot;,
2131 ],
2132 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
2133 # of traffic. Should be specified as 2 letter country code defined as per
2134 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
2135 # Maximum number of source region codes allowed is 5000.
2136 &quot;A String&quot;,
2137 ],
2138 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
2139 # of the traffic.
2140 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
2141 # and there is no srcIpRange, this rule will be ignored.
2142 # Maximum number of source tag values allowed is 256.
2143 {
2144 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2145 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2146 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2147 # or its network is deleted.
2148 },
2149 ],
2150 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
2151 # The IPs in these lists will be matched against traffic source.
2152 &quot;A String&quot;,
2153 ],
2154 },
2155 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
2156 # must be a positive value between 0 and 2147483647.
2157 # Rules are evaluated from highest to lowest priority where 0 is the
2158 # highest priority and 2147483647 is the lowest priority.
2159 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
2160 # and can be updated.
2161 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
2162 # rule.
2163 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
2164 # Example:
2165 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
2166 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
2167 # &#x27;mirror&#x27;. Cannot be specified for other actions.
2168 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
2169 # This field allows you to control which load balancers get this rule.
2170 # For example, the following are valid values:
2171 #
2172 #
2173 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
2174 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
2175 # - projects/project/global/
2176 # forwardingRules/forwardingRule
2177 # - projects/project/regions/region/forwardingRules/
2178 # forwardingRule
2179 &quot;A String&quot;,
2180 ],
2181 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
2182 # allows you to control which network&#x27;s VMs get this rule. If this field
2183 # is left blank, all VMs within the organization will receive the rule.
2184 &quot;A String&quot;,
2185 ],
2186 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
2187 # applies to. If targetSecureTag are specified, then the
2188 # firewall rule applies only to instances in the VPC network that have one
2189 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
2190 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
2191 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
2192 # to all instances on the specified network.
2193 # Maximum number of target label tags allowed is 256.
2194 {
2195 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2196 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2197 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2198 # or its network is deleted.
2199 },
2200 ],
2201 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
2202 # applied with this rule.
2203 &quot;A String&quot;,
2204 ],
2205 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
2206 # Default value is INSTANCES.
2207 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
2208 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
2209 # be set for other actions.
2210 },
2211 ],
2212 &quot;priority&quot;: 42, # Output only. [Output only] Priority of firewall policy association. Not applicable for
2213 # type=HIERARCHY.
2214 &quot;rules&quot;: [ # Output only. [Output only] The rules that apply to the network.
2215 { # Represents a rule that describes one or more match conditions along with
2216 # the action to be taken when traffic matches this condition (allow or deny).
2217 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
2218 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
2219 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
2220 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
2221 # and &quot;goto_next&quot;.
2222 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
2223 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
2224 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
2225 # the firewall policy rule is not enforced and traffic behaves as if it did
2226 # not exist. If this is unspecified, the firewall policy rule will be
2227 # enabled.
2228 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
2229 # enabled, logs will be exported to the configured export destination in
2230 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
2231 # cannot enable logging on &quot;goto_next&quot; rules.
2232 &quot;kind&quot;: &quot;compute#firewallPolicyRule&quot;, # Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules.
2233 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
2234 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
2235 # Exactly one field must be specified.
2236 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
2237 # Maximum number of destination address groups is 10.
2238 &quot;A String&quot;,
2239 ],
2240 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
2241 # traffic destination.
2242 # Maximum number of destination fqdn allowed is 100.
2243 &quot;A String&quot;,
2244 ],
2245 &quot;destIpRanges&quot;: [ # CIDR IP address range.
2246 # Maximum number of destination CIDR IP ranges allowed is 5000.
2247 &quot;A String&quot;,
2248 ],
2249 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
2250 #
2251 #
2252 # - UNSPECIFIED
2253 # - INTERNET
2254 # - NON_INTERNET
2255 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
2256 #
2257 #
2258 # - UNSPECIFIED
2259 # - INTERNET
2260 # - NON_INTERNET
2261 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
2262 # of traffic. Should be specified as 2 letter country code defined as per
2263 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
2264 # Maximum number of dest region codes allowed is 5000.
2265 &quot;A String&quot;,
2266 ],
2267 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
2268 # The IPs in these lists will be matched against traffic destination.
2269 &quot;A String&quot;,
2270 ],
2271 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
2272 {
2273 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
2274 # required when creating a firewall rule. This value can either be
2275 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
2276 # protocol number.
2277 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
2278 # only applicable for UDP or TCP protocol. Each entry must be either
2279 # an integer or a range. If not specified, this rule applies to
2280 # connections through any port.
2281 #
2282 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
2283 &quot;A String&quot;,
2284 ],
2285 },
2286 ],
2287 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
2288 # Maximum number of source address groups is 10.
2289 &quot;A String&quot;,
2290 ],
2291 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
2292 # traffic source.
2293 # Maximum number of source fqdn allowed is 100.
2294 &quot;A String&quot;,
2295 ],
2296 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
2297 # Maximum number of source CIDR IP ranges allowed is 5000.
2298 &quot;A String&quot;,
2299 ],
2300 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
2301 #
2302 #
2303 # - UNSPECIFIED
2304 # - INTERNET
2305 # - INTRA_VPC
2306 # - NON_INTERNET
2307 # - VPC_NETWORKS
2308 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
2309 #
2310 #
2311 # - UNSPECIFIED
2312 # - INTERNET
2313 # - INTRA_VPC
2314 # - NON_INTERNET
2315 # - VPC_NETWORKS
2316 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
2317 &quot;A String&quot;,
2318 ],
2319 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
2320 # of traffic. Should be specified as 2 letter country code defined as per
2321 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
2322 # Maximum number of source region codes allowed is 5000.
2323 &quot;A String&quot;,
2324 ],
2325 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
2326 # of the traffic.
2327 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
2328 # and there is no srcIpRange, this rule will be ignored.
2329 # Maximum number of source tag values allowed is 256.
2330 {
2331 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2332 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2333 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2334 # or its network is deleted.
2335 },
2336 ],
2337 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
2338 # The IPs in these lists will be matched against traffic source.
2339 &quot;A String&quot;,
2340 ],
2341 },
2342 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
2343 # must be a positive value between 0 and 2147483647.
2344 # Rules are evaluated from highest to lowest priority where 0 is the
2345 # highest priority and 2147483647 is the lowest priority.
2346 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
2347 # and can be updated.
2348 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
2349 # rule.
2350 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
2351 # Example:
2352 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
2353 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
2354 # &#x27;mirror&#x27;. Cannot be specified for other actions.
2355 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
2356 # This field allows you to control which load balancers get this rule.
2357 # For example, the following are valid values:
2358 #
2359 #
2360 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
2361 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
2362 # - projects/project/global/
2363 # forwardingRules/forwardingRule
2364 # - projects/project/regions/region/forwardingRules/
2365 # forwardingRule
2366 &quot;A String&quot;,
2367 ],
2368 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
2369 # allows you to control which network&#x27;s VMs get this rule. If this field
2370 # is left blank, all VMs within the organization will receive the rule.
2371 &quot;A String&quot;,
2372 ],
2373 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
2374 # applies to. If targetSecureTag are specified, then the
2375 # firewall rule applies only to instances in the VPC network that have one
2376 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
2377 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
2378 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
2379 # to all instances on the specified network.
2380 # Maximum number of target label tags allowed is 256.
2381 {
2382 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2383 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2384 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2385 # or its network is deleted.
2386 },
2387 ],
2388 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
2389 # applied with this rule.
2390 &quot;A String&quot;,
2391 ],
2392 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
2393 # Default value is INSTANCES.
2394 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
2395 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
2396 # be set for other actions.
2397 },
2398 ],
2399 &quot;type&quot;: &quot;A String&quot;, # Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY,
2400 # NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL.
2401 },
2402 ],
2403 &quot;firewalls&quot;: [ # Effective firewalls on the network.
2404 { # Represents a Firewall Rule resource.
2405 #
2406 # Firewall rules allow or deny ingress traffic to, and egress traffic from your
2407 # instances. For more information, readFirewall rules.
2408 &quot;allowed&quot;: [ # The list of ALLOW rules specified by this firewall. Each rule specifies a
2409 # protocol and port-range tuple that describes a permitted connection.
2410 {
2411 &quot;IPProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
2412 # required when creating a firewall rule. This value can either be one of the
2413 # following well known protocol strings (tcp, udp,icmp, esp, ah, ipip,sctp) or the IP protocol number.
2414 &quot;ports&quot;: [ # An optional list of ports to which this rule applies.
2415 # This field is only applicable for the UDP or TCP protocol.
2416 # Each entry must be either an integer or a range.
2417 # If not specified, this rule applies to connections through any port.
2418 #
2419 # Example inputs include: [&quot;22&quot;], [&quot;80&quot;,&quot;443&quot;],
2420 # and [&quot;12345-12349&quot;].
2421 &quot;A String&quot;,
2422 ],
2423 },
2424 ],
2425 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
2426 # text format.
2427 &quot;denied&quot;: [ # The list of DENY rules specified by this firewall. Each rule specifies a
2428 # protocol and port-range tuple that describes a denied connection.
2429 {
2430 &quot;IPProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
2431 # required when creating a firewall rule. This value can either be one of the
2432 # following well known protocol strings (tcp, udp,icmp, esp, ah, ipip,sctp) or the IP protocol number.
2433 &quot;ports&quot;: [ # An optional list of ports to which this rule applies.
2434 # This field is only applicable for the UDP or TCP protocol.
2435 # Each entry must be either an integer or a range.
2436 # If not specified, this rule applies to connections through any port.
2437 #
2438 # Example inputs include: [&quot;22&quot;], [&quot;80&quot;,&quot;443&quot;],
2439 # and [&quot;12345-12349&quot;].
2440 &quot;A String&quot;,
2441 ],
2442 },
2443 ],
2444 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this field when you
2445 # create the resource.
2446 &quot;destinationRanges&quot;: [ # If destination ranges are specified, the firewall rule applies only to
2447 # traffic that has destination IP address in these ranges. These ranges must
2448 # be expressed inCIDR format. Both IPv4 and IPv6 are supported.
2449 &quot;A String&quot;,
2450 ],
2451 &quot;direction&quot;: &quot;A String&quot;, # Direction of traffic to which this firewall applies, either `INGRESS` or
2452 # `EGRESS`. The default is `INGRESS`. For `EGRESS` traffic, you cannot
2453 # specify the sourceTags fields.
2454 &quot;disabled&quot;: True or False, # Denotes whether the firewall rule is disabled. When set to true, the
2455 # firewall rule is not enforced and the network behaves as if it did not
2456 # exist. If this is unspecified, the firewall rule will be enabled.
2457 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
2458 # defined by the server.
2459 &quot;kind&quot;: &quot;compute#firewall&quot;, # Output only. [Output Only] Type of the resource. Always compute#firewall
2460 # for firewall rules.
2461 &quot;logConfig&quot;: { # The available logging options for a firewall rule. # This field denotes the logging options for a particular firewall rule. If
2462 # logging is enabled, logs will be exported to Cloud Logging.
2463 &quot;enable&quot;: True or False, # This field denotes whether to enable logging for a particular firewall
2464 # rule.
2465 &quot;metadata&quot;: &quot;A String&quot;, # This field can only be specified for a particular firewall rule if
2466 # logging is enabled for that rule. This field denotes whether to include
2467 # or exclude metadata for firewall logs.
2468 },
2469 &quot;name&quot;: &quot;A String&quot;, # Name of the resource; provided by the client when the resource is created.
2470 # The name must be 1-63 characters long, and comply withRFC1035.
2471 # Specifically, the name must be 1-63 characters long and match the regular
2472 # expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character
2473 # must be a lowercase letter, and all following characters (except for the
2474 # last character) must be a dash, lowercase letter, or digit. The last
2475 # character must be a lowercase letter or digit.
2476 &quot;network&quot;: &quot;A String&quot;, # URL of the network resource for this firewall rule. If not
2477 # specified when creating a firewall rule, the default network
2478 # is used:
2479 #
2480 # global/networks/default
2481 #
2482 # If you choose to specify this field, you can specify the network as a full
2483 # or partial URL. For example, the following are all valid URLs:
2484 #
2485 # -
2486 # https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network
2487 # - projects/myproject/global/networks/my-network
2488 # - global/networks/default
2489 &quot;params&quot;: { # Additional firewall parameters. # Input only. [Input Only] Additional params passed with the request, but not persisted
2490 # as part of resource payload.
2491 &quot;resourceManagerTags&quot;: { # Tag keys/values directly bound to this resource.
2492 # Tag keys and values have the same definition as resource
2493 # manager tags. The field is allowed for INSERT
2494 # only. The keys/values to set on the resource should be specified in
2495 # either ID { : } or Namespaced format
2496 # { : }.
2497 # For example the following are valid inputs:
2498 # * {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;tagKeys/123&quot; : &quot;tagValues/456&quot;}
2499 # * {&quot;123/environment&quot; : &quot;production&quot;, &quot;345/abc&quot; : &quot;xyz&quot;}
2500 # Note:
2501 # * Invalid combinations of ID &amp; namespaced format is not supported. For
2502 # instance: {&quot;123/environment&quot; : &quot;tagValues/444&quot;} is invalid.
2503 &quot;a_key&quot;: &quot;A String&quot;,
2504 },
2505 },
2506 &quot;priority&quot;: 42, # Priority for this rule.
2507 # This is an integer between `0` and `65535`, both inclusive.
2508 # The default value is `1000`.
2509 # Relative priorities determine which rule takes effect if multiple rules
2510 # apply. Lower values indicate higher priority. For example, a rule with
2511 # priority `0` has higher precedence than a rule with priority `1`.
2512 # DENY rules take precedence over ALLOW rules if they have equal priority.
2513 # Note that VPC networks have implied
2514 # rules with a priority of `65535`. To avoid conflicts with the implied
2515 # rules, use a priority number less than `65535`.
2516 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
2517 &quot;sourceRanges&quot;: [ # If source ranges are specified, the firewall rule applies only to traffic
2518 # that has a source IP address in these ranges. These ranges must be
2519 # expressed inCIDR format. One or both of sourceRanges
2520 # and sourceTags may be set.
2521 # If both fields are set, the rule applies to traffic that has a
2522 # source IP address within sourceRanges OR a source IP
2523 # from a resource with a matching tag listed in thesourceTags field. The connection does not need to match
2524 # both fields for the rule to
2525 # apply. Both IPv4 and IPv6 are supported.
2526 &quot;A String&quot;,
2527 ],
2528 &quot;sourceServiceAccounts&quot;: [ # If source service accounts are specified, the firewall rules apply only to
2529 # traffic originating from an instance with a service account in this list.
2530 # Source service accounts cannot be used to control traffic to an instance&#x27;s
2531 # external IP address because service accounts are associated with an
2532 # instance, not an IP address.sourceRanges can be set at the same time assourceServiceAccounts.
2533 # If both are set, the firewall applies to traffic that
2534 # has a source IP address within the sourceRanges OR a source
2535 # IP that belongs to an instance with service account listed insourceServiceAccount. The connection does not need to match
2536 # both fields for the firewall to apply.sourceServiceAccounts cannot be used at the same time assourceTags or targetTags.
2537 &quot;A String&quot;,
2538 ],
2539 &quot;sourceTags&quot;: [ # If source tags are specified, the firewall rule applies only to traffic
2540 # with source IPs that match the primary network interfaces of VM instances
2541 # that have the tag and are in the same VPC network.
2542 # Source tags cannot be used to control traffic to an instance&#x27;s external IP
2543 # address, it only applies to traffic between instances in the same virtual
2544 # network. Because tags are associated with instances, not IP addresses.
2545 # One or both of sourceRanges and sourceTags may be
2546 # set. If both fields are set, the firewall applies to traffic that has a
2547 # source IP address within sourceRanges OR a source IP from a
2548 # resource with a matching tag listed in the sourceTags
2549 # field. The connection does not need to match both fields for the
2550 # firewall to apply.
2551 &quot;A String&quot;,
2552 ],
2553 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating sets of instances located in the
2554 # network that may make network connections as specified inallowed[].targetServiceAccounts cannot be used at the same time astargetTags or sourceTags.
2555 # If neither targetServiceAccounts nor targetTags
2556 # are specified, the firewall rule applies to all instances on the specified
2557 # network.
2558 &quot;A String&quot;,
2559 ],
2560 &quot;targetTags&quot;: [ # A list of tags that controls which instances the firewall rule
2561 # applies to. If targetTags are specified, then the firewall
2562 # rule applies only to instances in the VPC network that have one of those
2563 # tags. If no targetTags are specified, the firewall rule
2564 # applies to all instances on the specified network.
2565 &quot;A String&quot;,
2566 ],
2567 },
2568 ],
2569 }</pre>
2570 </div>
2571
2572 <div class="method">
2573 <code class="details" id="getIamPolicy">getIamPolicy(project, region, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</code>
2574 <pre>Gets the access control policy for a resource. May be empty if no such
2575 policy or resource exists.
2576
2577 Args:
2578 project: string, Project ID for this request. (required)
2579 region: string, The name of the region for this request. (required)
2580 resource: string, Name or id of the resource for this request. (required)
2581 optionsRequestedPolicyVersion: integer, Requested IAM Policy version.
2582 x__xgafv: string, V1 error format.
2583 Allowed values
2584 1 - v1 error format
2585 2 - v2 error format
2586
2587 Returns:
2588 An object of the form:
2589
2590 { # An Identity and Access Management (IAM) policy, which specifies access
2591 # controls for Google Cloud resources.
2592 #
2593 #
2594 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
2595 # `members`, or principals, to a single `role`. Principals can be user
2596 # accounts, service accounts, Google groups, and domains (such as G Suite). A
2597 # `role` is a named list of permissions; each `role` can be an IAM predefined
2598 # role or a user-created custom role.
2599 #
2600 # For some types of Google Cloud resources, a `binding` can also specify a
2601 # `condition`, which is a logical expression that allows access to a resource
2602 # only if the expression evaluates to `true`. A condition can add constraints
2603 # based on attributes of the request, the resource, or both. To learn which
2604 # resources support conditions in their IAM policies, see the
2605 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2606 #
2607 # **JSON example:**
2608 #
2609 # ```
2610 # {
2611 # &quot;bindings&quot;: [
2612 # {
2613 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
2614 # &quot;members&quot;: [
2615 # &quot;user:[email protected]&quot;,
2616 # &quot;group:[email protected]&quot;,
2617 # &quot;domain:google.com&quot;,
2618 # &quot;serviceAccount:[email protected]&quot;
2619 # ]
2620 # },
2621 # {
2622 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
2623 # &quot;members&quot;: [
2624 # &quot;user:[email protected]&quot;
2625 # ],
2626 # &quot;condition&quot;: {
2627 # &quot;title&quot;: &quot;expirable access&quot;,
2628 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
2629 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
2630 # }
2631 # }
2632 # ],
2633 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
2634 # &quot;version&quot;: 3
2635 # }
2636 # ```
2637 #
2638 # **YAML example:**
2639 #
2640 # ```
2641 # bindings:
2642 # - members:
2643 # - user:[email protected]
2644 # - group:[email protected]
2645 # - domain:google.com
2646 # - serviceAccount:[email protected]
2647 # role: roles/resourcemanager.organizationAdmin
2648 # - members:
2649 # - user:[email protected]
2650 # role: roles/resourcemanager.organizationViewer
2651 # condition:
2652 # title: expirable access
2653 # description: Does not grant access after Sep 2020
2654 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
2655 # etag: BwWWja0YfJA=
2656 # version: 3
2657 # ```
2658 #
2659 # For a description of IAM and its features, see the
2660 # [IAM documentation](https://cloud.google.com/iam/docs/).
2661 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
2662 { # Specifies the audit configuration for a service.
2663 # The configuration determines which permission types are logged, and what
2664 # identities, if any, are exempted from logging.
2665 # An AuditConfig must have one or more AuditLogConfigs.
2666 #
2667 # If there are AuditConfigs for both `allServices` and a specific service,
2668 # the union of the two AuditConfigs is used for that service: the log_types
2669 # specified in each AuditConfig are enabled, and the exempted_members in each
2670 # AuditLogConfig are exempted.
2671 #
2672 # Example Policy with multiple AuditConfigs:
2673 #
2674 # {
2675 # &quot;audit_configs&quot;: [
2676 # {
2677 # &quot;service&quot;: &quot;allServices&quot;,
2678 # &quot;audit_log_configs&quot;: [
2679 # {
2680 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2681 # &quot;exempted_members&quot;: [
2682 # &quot;user:[email protected]&quot;
2683 # ]
2684 # },
2685 # {
2686 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
2687 # },
2688 # {
2689 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
2690 # }
2691 # ]
2692 # },
2693 # {
2694 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
2695 # &quot;audit_log_configs&quot;: [
2696 # {
2697 # &quot;log_type&quot;: &quot;DATA_READ&quot;
2698 # },
2699 # {
2700 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
2701 # &quot;exempted_members&quot;: [
2702 # &quot;user:[email protected]&quot;
2703 # ]
2704 # }
2705 # ]
2706 # }
2707 # ]
2708 # }
2709 #
2710 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
2711 # logging. It also exempts `[email protected]` from DATA_READ logging, and
2712 # `[email protected]` from DATA_WRITE logging.
2713 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
2714 { # Provides the configuration for logging a type of permissions.
2715 # Example:
2716 #
2717 # {
2718 # &quot;audit_log_configs&quot;: [
2719 # {
2720 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2721 # &quot;exempted_members&quot;: [
2722 # &quot;user:[email protected]&quot;
2723 # ]
2724 # },
2725 # {
2726 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
2727 # }
2728 # ]
2729 # }
2730 #
2731 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
2732 # [email protected] from DATA_READ logging.
2733 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
2734 # permission.
2735 # Follows the same format of Binding.members.
2736 &quot;A String&quot;,
2737 ],
2738 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
2739 },
2740 ],
2741 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
2742 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
2743 # `allServices` is a special value that covers all services.
2744 },
2745 ],
2746 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
2747 # may specify a `condition` that determines how and when the `bindings` are
2748 # applied. Each of the `bindings` must contain at least one principal.
2749 #
2750 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
2751 # of these principals can be Google groups. Each occurrence of a principal
2752 # counts towards these limits. For example, if the `bindings` grant 50
2753 # different roles to `user:[email protected]`, and not to any other
2754 # principal, then you can add another 1,450 principals to the `bindings` in
2755 # the `Policy`.
2756 { # Associates `members`, or principals, with a `role`.
2757 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
2758 #
2759 # If the condition evaluates to `true`, then this binding applies to the
2760 # current request.
2761 #
2762 # If the condition evaluates to `false`, then this binding does not apply to
2763 # the current request. However, a different role binding might grant the same
2764 # role to one or more of the principals in this binding.
2765 #
2766 # To learn which resources support conditions in their IAM policies, see the
2767 # [IAM
2768 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2769 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
2770 # are documented at https://github.com/google/cel-spec.
2771 #
2772 # Example (Comparison):
2773 #
2774 # title: &quot;Summary size limit&quot;
2775 # description: &quot;Determines if a summary is less than 100 chars&quot;
2776 # expression: &quot;document.summary.size() &lt; 100&quot;
2777 #
2778 # Example (Equality):
2779 #
2780 # title: &quot;Requestor is owner&quot;
2781 # description: &quot;Determines if requestor is the document owner&quot;
2782 # expression: &quot;document.owner == request.auth.claims.email&quot;
2783 #
2784 # Example (Logic):
2785 #
2786 # title: &quot;Public documents&quot;
2787 # description: &quot;Determine whether the document should be publicly visible&quot;
2788 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
2789 #
2790 # Example (Data Manipulation):
2791 #
2792 # title: &quot;Notification string&quot;
2793 # description: &quot;Create a notification string with a timestamp.&quot;
2794 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
2795 #
2796 # The exact variables and functions that may be referenced within an expression
2797 # are determined by the service that evaluates it. See the service
2798 # documentation for additional information.
2799 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
2800 # describes the expression, e.g. when hovered over it in a UI.
2801 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
2802 # syntax.
2803 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
2804 # reporting, e.g. a file name and a position in the file.
2805 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
2806 # its purpose. This can be used e.g. in UIs which allow to enter the
2807 # expression.
2808 },
2809 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
2810 # `members` can have the following values:
2811 #
2812 # * `allUsers`: A special identifier that represents anyone who is
2813 # on the internet; with or without a Google account.
2814 #
2815 # * `allAuthenticatedUsers`: A special identifier that represents anyone
2816 # who is authenticated with a Google account or a service account.
2817 # Does not include identities that come from external identity providers
2818 # (IdPs) through identity federation.
2819 #
2820 # * `user:{emailid}`: An email address that represents a specific Google
2821 # account. For example, `[email protected]` .
2822 #
2823 #
2824 # * `serviceAccount:{emailid}`: An email address that represents a Google
2825 # service account. For example,
2826 # `[email protected]`.
2827 #
2828 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
2829 # identifier for a
2830 # [Kubernetes service
2831 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
2832 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
2833 #
2834 # * `group:{emailid}`: An email address that represents a Google group.
2835 # For example, `[email protected]`.
2836 #
2837 #
2838 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
2839 # users of that domain. For example, `google.com` or `example.com`.
2840 #
2841 #
2842 #
2843 #
2844 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
2845 # A single identity in a workforce identity pool.
2846 #
2847 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
2848 # All workforce identities in a group.
2849 #
2850 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
2851 # All workforce identities with a specific attribute value.
2852 #
2853 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
2854 # All identities in a workforce identity pool.
2855 #
2856 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
2857 # A single identity in a workload identity pool.
2858 #
2859 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
2860 # A workload identity pool group.
2861 #
2862 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
2863 # All identities in a workload identity pool with a certain attribute.
2864 #
2865 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
2866 # All identities in a workload identity pool.
2867 #
2868 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
2869 # identifier) representing a user that has been recently deleted. For
2870 # example, `[email protected]?uid=123456789012345678901`. If the user is
2871 # recovered, this value reverts to `user:{emailid}` and the recovered user
2872 # retains the role in the binding.
2873 #
2874 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
2875 # unique identifier) representing a service account that has been recently
2876 # deleted. For example,
2877 # `[email protected]?uid=123456789012345678901`.
2878 # If the service account is undeleted, this value reverts to
2879 # `serviceAccount:{emailid}` and the undeleted service account retains the
2880 # role in the binding.
2881 #
2882 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
2883 # identifier) representing a Google group that has been recently
2884 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
2885 # the group is recovered, this value reverts to `group:{emailid}` and the
2886 # recovered group retains the role in the binding.
2887 #
2888 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
2889 # Deleted single identity in a workforce identity pool. For example,
2890 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
2891 &quot;A String&quot;,
2892 ],
2893 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
2894 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2895 #
2896 # For an overview of the IAM roles and permissions, see the
2897 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
2898 # a list of the available pre-defined roles, see
2899 # [here](https://cloud.google.com/iam/docs/understanding-roles).
2900 },
2901 ],
2902 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
2903 # prevent simultaneous updates of a policy from overwriting each other.
2904 # It is strongly suggested that systems make use of the `etag` in the
2905 # read-modify-write cycle to perform policy updates in order to avoid race
2906 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
2907 # systems are expected to put that etag in the request to `setIamPolicy` to
2908 # ensure that their change will be applied to the same version of the policy.
2909 #
2910 # **Important:** If you use IAM Conditions, you must include the `etag` field
2911 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2912 # you to overwrite a version `3` policy with a version `1` policy, and all of
2913 # the conditions in the version `3` policy are lost.
2914 &quot;version&quot;: 42, # Specifies the format of the policy.
2915 #
2916 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
2917 # are rejected.
2918 #
2919 # Any operation that affects conditional role bindings must specify version
2920 # `3`. This requirement applies to the following operations:
2921 #
2922 # * Getting a policy that includes a conditional role binding
2923 # * Adding a conditional role binding to a policy
2924 # * Changing a conditional role binding in a policy
2925 # * Removing any role binding, with or without a condition, from a policy
2926 # that includes conditions
2927 #
2928 # **Important:** If you use IAM Conditions, you must include the `etag` field
2929 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2930 # you to overwrite a version `3` policy with a version `1` policy, and all of
2931 # the conditions in the version `3` policy are lost.
2932 #
2933 # If a policy does not include any conditions, operations on that policy may
2934 # specify any valid version or leave the field unset.
2935 #
2936 # To learn which resources support conditions in their IAM policies, see the
2937 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2938 }</pre>
2939 </div>
2940
2941 <div class="method">
2942 <code class="details" id="getRule">getRule(project, region, firewallPolicy, priority=None, x__xgafv=None)</code>
2943 <pre>Gets a rule of the specified priority.
2944
2945 Args:
2946 project: string, Project ID for this request. (required)
2947 region: string, Name of the region scoping this request. (required)
2948 firewallPolicy: string, Name of the firewall policy to which the queried rule belongs. (required)
2949 priority: integer, The priority of the rule to get from the firewall policy.
2950 x__xgafv: string, V1 error format.
2951 Allowed values
2952 1 - v1 error format
2953 2 - v2 error format
2954
2955 Returns:
2956 An object of the form:
2957
2958 { # Represents a rule that describes one or more match conditions along with
2959 # the action to be taken when traffic matches this condition (allow or deny).
2960 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
2961 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
2962 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
2963 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
2964 # and &quot;goto_next&quot;.
2965 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
2966 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
2967 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
2968 # the firewall policy rule is not enforced and traffic behaves as if it did
2969 # not exist. If this is unspecified, the firewall policy rule will be
2970 # enabled.
2971 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
2972 # enabled, logs will be exported to the configured export destination in
2973 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
2974 # cannot enable logging on &quot;goto_next&quot; rules.
2975 &quot;kind&quot;: &quot;compute#firewallPolicyRule&quot;, # Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules.
2976 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
2977 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
2978 # Exactly one field must be specified.
2979 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
2980 # Maximum number of destination address groups is 10.
2981 &quot;A String&quot;,
2982 ],
2983 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
2984 # traffic destination.
2985 # Maximum number of destination fqdn allowed is 100.
2986 &quot;A String&quot;,
2987 ],
2988 &quot;destIpRanges&quot;: [ # CIDR IP address range.
2989 # Maximum number of destination CIDR IP ranges allowed is 5000.
2990 &quot;A String&quot;,
2991 ],
2992 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
2993 #
2994 #
2995 # - UNSPECIFIED
2996 # - INTERNET
2997 # - NON_INTERNET
2998 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
2999 #
3000 #
3001 # - UNSPECIFIED
3002 # - INTERNET
3003 # - NON_INTERNET
3004 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
3005 # of traffic. Should be specified as 2 letter country code defined as per
3006 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3007 # Maximum number of dest region codes allowed is 5000.
3008 &quot;A String&quot;,
3009 ],
3010 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3011 # The IPs in these lists will be matched against traffic destination.
3012 &quot;A String&quot;,
3013 ],
3014 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
3015 {
3016 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
3017 # required when creating a firewall rule. This value can either be
3018 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
3019 # protocol number.
3020 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
3021 # only applicable for UDP or TCP protocol. Each entry must be either
3022 # an integer or a range. If not specified, this rule applies to
3023 # connections through any port.
3024 #
3025 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
3026 &quot;A String&quot;,
3027 ],
3028 },
3029 ],
3030 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
3031 # Maximum number of source address groups is 10.
3032 &quot;A String&quot;,
3033 ],
3034 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3035 # traffic source.
3036 # Maximum number of source fqdn allowed is 100.
3037 &quot;A String&quot;,
3038 ],
3039 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
3040 # Maximum number of source CIDR IP ranges allowed is 5000.
3041 &quot;A String&quot;,
3042 ],
3043 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
3044 #
3045 #
3046 # - UNSPECIFIED
3047 # - INTERNET
3048 # - INTRA_VPC
3049 # - NON_INTERNET
3050 # - VPC_NETWORKS
3051 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
3052 #
3053 #
3054 # - UNSPECIFIED
3055 # - INTERNET
3056 # - INTRA_VPC
3057 # - NON_INTERNET
3058 # - VPC_NETWORKS
3059 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
3060 &quot;A String&quot;,
3061 ],
3062 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
3063 # of traffic. Should be specified as 2 letter country code defined as per
3064 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3065 # Maximum number of source region codes allowed is 5000.
3066 &quot;A String&quot;,
3067 ],
3068 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
3069 # of the traffic.
3070 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
3071 # and there is no srcIpRange, this rule will be ignored.
3072 # Maximum number of source tag values allowed is 256.
3073 {
3074 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3075 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3076 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3077 # or its network is deleted.
3078 },
3079 ],
3080 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3081 # The IPs in these lists will be matched against traffic source.
3082 &quot;A String&quot;,
3083 ],
3084 },
3085 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
3086 # must be a positive value between 0 and 2147483647.
3087 # Rules are evaluated from highest to lowest priority where 0 is the
3088 # highest priority and 2147483647 is the lowest priority.
3089 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
3090 # and can be updated.
3091 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
3092 # rule.
3093 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
3094 # Example:
3095 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
3096 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
3097 # &#x27;mirror&#x27;. Cannot be specified for other actions.
3098 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
3099 # This field allows you to control which load balancers get this rule.
3100 # For example, the following are valid values:
3101 #
3102 #
3103 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
3104 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
3105 # - projects/project/global/
3106 # forwardingRules/forwardingRule
3107 # - projects/project/regions/region/forwardingRules/
3108 # forwardingRule
3109 &quot;A String&quot;,
3110 ],
3111 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
3112 # allows you to control which network&#x27;s VMs get this rule. If this field
3113 # is left blank, all VMs within the organization will receive the rule.
3114 &quot;A String&quot;,
3115 ],
3116 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
3117 # applies to. If targetSecureTag are specified, then the
3118 # firewall rule applies only to instances in the VPC network that have one
3119 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
3120 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
3121 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
3122 # to all instances on the specified network.
3123 # Maximum number of target label tags allowed is 256.
3124 {
3125 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3126 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3127 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3128 # or its network is deleted.
3129 },
3130 ],
3131 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
3132 # applied with this rule.
3133 &quot;A String&quot;,
3134 ],
3135 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
3136 # Default value is INSTANCES.
3137 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
3138 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
3139 # be set for other actions.
3140 }</pre>
3141 </div>
3142
3143 <div class="method">
3144 <code class="details" id="insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</code>
3145 <pre>Creates a new network firewall policy in the specified project and region.
3146
3147 Args:
3148 project: string, Project ID for this request. (required)
3149 region: string, Name of the region scoping this request. (required)
3150 body: object, The request body.
3151 The object takes the form of:
3152
3153 { # Represents a Firewall Policy resource.
3154 &quot;associations&quot;: [ # A list of associations that belong to this firewall policy.
3155 {
3156 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
3157 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
3158 # of the firewall policy of the association.
3159 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
3160 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
3161 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
3162 },
3163 ],
3164 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
3165 # text format.
3166 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
3167 # create the resource.
3168 &quot;displayName&quot;: &quot;A String&quot;, # Deprecated, please use short name instead. User-provided name of the
3169 # Organization firewall policy. The name should be unique in the organization
3170 # in which the firewall policy is created.
3171 # This field is not applicable to network firewall policies.
3172 # This name must be set on creation and cannot be changed.
3173 # The name must be 1-63 characters long, and comply
3174 # with RFC1035. Specifically, the name must be 1-63 characters
3175 # long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which
3176 # means the first character must be a lowercase letter, and all following
3177 # characters must be a dash, lowercase letter, or digit, except the last
3178 # character, which cannot be a dash.
3179 &quot;fingerprint&quot;: &quot;A String&quot;, # Specifies a fingerprint for this resource, which is essentially a hash of
3180 # the metadata&#x27;s contents and used for optimistic locking. The
3181 # fingerprint is initially generated by Compute Engine and changes after
3182 # every request to modify or update metadata. You must always provide an
3183 # up-to-date fingerprint hash in order to update or change metadata,
3184 # otherwise the request will fail with error412 conditionNotMet.
3185 #
3186 # To see the latest fingerprint, make get() request to the
3187 # firewall policy.
3188 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
3189 # defined by the server.
3190 &quot;kind&quot;: &quot;compute#firewallPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
3191 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. For Organization Firewall Policies it&#x27;s a
3192 # [Output Only] numeric ID allocated by Google Cloud which uniquely
3193 # identifies the Organization Firewall Policy.
3194 &quot;packetMirroringRules&quot;: [ # A list of packet mirroring rules that belong to this policy.
3195 { # Represents a rule that describes one or more match conditions along with
3196 # the action to be taken when traffic matches this condition (allow or deny).
3197 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
3198 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
3199 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
3200 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
3201 # and &quot;goto_next&quot;.
3202 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
3203 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
3204 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
3205 # the firewall policy rule is not enforced and traffic behaves as if it did
3206 # not exist. If this is unspecified, the firewall policy rule will be
3207 # enabled.
3208 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
3209 # enabled, logs will be exported to the configured export destination in
3210 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
3211 # cannot enable logging on &quot;goto_next&quot; rules.
3212 &quot;kind&quot;: &quot;compute#firewallPolicyRule&quot;, # Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules.
3213 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
3214 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
3215 # Exactly one field must be specified.
3216 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
3217 # Maximum number of destination address groups is 10.
3218 &quot;A String&quot;,
3219 ],
3220 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3221 # traffic destination.
3222 # Maximum number of destination fqdn allowed is 100.
3223 &quot;A String&quot;,
3224 ],
3225 &quot;destIpRanges&quot;: [ # CIDR IP address range.
3226 # Maximum number of destination CIDR IP ranges allowed is 5000.
3227 &quot;A String&quot;,
3228 ],
3229 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
3230 #
3231 #
3232 # - UNSPECIFIED
3233 # - INTERNET
3234 # - NON_INTERNET
3235 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
3236 #
3237 #
3238 # - UNSPECIFIED
3239 # - INTERNET
3240 # - NON_INTERNET
3241 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
3242 # of traffic. Should be specified as 2 letter country code defined as per
3243 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3244 # Maximum number of dest region codes allowed is 5000.
3245 &quot;A String&quot;,
3246 ],
3247 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3248 # The IPs in these lists will be matched against traffic destination.
3249 &quot;A String&quot;,
3250 ],
3251 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
3252 {
3253 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
3254 # required when creating a firewall rule. This value can either be
3255 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
3256 # protocol number.
3257 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
3258 # only applicable for UDP or TCP protocol. Each entry must be either
3259 # an integer or a range. If not specified, this rule applies to
3260 # connections through any port.
3261 #
3262 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
3263 &quot;A String&quot;,
3264 ],
3265 },
3266 ],
3267 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
3268 # Maximum number of source address groups is 10.
3269 &quot;A String&quot;,
3270 ],
3271 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3272 # traffic source.
3273 # Maximum number of source fqdn allowed is 100.
3274 &quot;A String&quot;,
3275 ],
3276 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
3277 # Maximum number of source CIDR IP ranges allowed is 5000.
3278 &quot;A String&quot;,
3279 ],
3280 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
3281 #
3282 #
3283 # - UNSPECIFIED
3284 # - INTERNET
3285 # - INTRA_VPC
3286 # - NON_INTERNET
3287 # - VPC_NETWORKS
3288 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
3289 #
3290 #
3291 # - UNSPECIFIED
3292 # - INTERNET
3293 # - INTRA_VPC
3294 # - NON_INTERNET
3295 # - VPC_NETWORKS
3296 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
3297 &quot;A String&quot;,
3298 ],
3299 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
3300 # of traffic. Should be specified as 2 letter country code defined as per
3301 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3302 # Maximum number of source region codes allowed is 5000.
3303 &quot;A String&quot;,
3304 ],
3305 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
3306 # of the traffic.
3307 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
3308 # and there is no srcIpRange, this rule will be ignored.
3309 # Maximum number of source tag values allowed is 256.
3310 {
3311 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3312 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3313 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3314 # or its network is deleted.
3315 },
3316 ],
3317 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3318 # The IPs in these lists will be matched against traffic source.
3319 &quot;A String&quot;,
3320 ],
3321 },
3322 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
3323 # must be a positive value between 0 and 2147483647.
3324 # Rules are evaluated from highest to lowest priority where 0 is the
3325 # highest priority and 2147483647 is the lowest priority.
3326 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
3327 # and can be updated.
3328 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
3329 # rule.
3330 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
3331 # Example:
3332 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
3333 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
3334 # &#x27;mirror&#x27;. Cannot be specified for other actions.
3335 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
3336 # This field allows you to control which load balancers get this rule.
3337 # For example, the following are valid values:
3338 #
3339 #
3340 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
3341 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
3342 # - projects/project/global/
3343 # forwardingRules/forwardingRule
3344 # - projects/project/regions/region/forwardingRules/
3345 # forwardingRule
3346 &quot;A String&quot;,
3347 ],
3348 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
3349 # allows you to control which network&#x27;s VMs get this rule. If this field
3350 # is left blank, all VMs within the organization will receive the rule.
3351 &quot;A String&quot;,
3352 ],
3353 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
3354 # applies to. If targetSecureTag are specified, then the
3355 # firewall rule applies only to instances in the VPC network that have one
3356 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
3357 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
3358 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
3359 # to all instances on the specified network.
3360 # Maximum number of target label tags allowed is 256.
3361 {
3362 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3363 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3364 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3365 # or its network is deleted.
3366 },
3367 ],
3368 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
3369 # applied with this rule.
3370 &quot;A String&quot;,
3371 ],
3372 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
3373 # Default value is INSTANCES.
3374 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
3375 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
3376 # be set for other actions.
3377 },
3378 ],
3379 &quot;parent&quot;: &quot;A String&quot;, # Output only. [Output Only] The parent of the firewall policy.
3380 # This field is not applicable to network firewall policies.
3381 &quot;policyType&quot;: &quot;A String&quot;, # The type of the firewall policy. This field can be one of
3382 # VPC_POLICY, RDMA_ROCE_POLICY or ULL_POLICY.
3383 #
3384 # Note: if not specified then VPC_POLICY will be used.
3385 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional firewall policy resides.
3386 # This field is not applicable to global firewall policies.
3387 # You must specify this field as part of the HTTP request URL. It is
3388 # not settable as a field in the request body.
3389 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall
3390 # policy can not exceed a set number of tuples.
3391 &quot;rules&quot;: [ # A list of rules that belong to this policy.
3392 # There must always be a default rule (rule with priority 2147483647 and
3393 # match &quot;*&quot;). If no rules are provided when creating a firewall policy, a
3394 # default rule with action &quot;allow&quot; will be added.
3395 { # Represents a rule that describes one or more match conditions along with
3396 # the action to be taken when traffic matches this condition (allow or deny).
3397 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
3398 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
3399 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
3400 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
3401 # and &quot;goto_next&quot;.
3402 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
3403 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
3404 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
3405 # the firewall policy rule is not enforced and traffic behaves as if it did
3406 # not exist. If this is unspecified, the firewall policy rule will be
3407 # enabled.
3408 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
3409 # enabled, logs will be exported to the configured export destination in
3410 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
3411 # cannot enable logging on &quot;goto_next&quot; rules.
3412 &quot;kind&quot;: &quot;compute#firewallPolicyRule&quot;, # Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules.
3413 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
3414 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
3415 # Exactly one field must be specified.
3416 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
3417 # Maximum number of destination address groups is 10.
3418 &quot;A String&quot;,
3419 ],
3420 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3421 # traffic destination.
3422 # Maximum number of destination fqdn allowed is 100.
3423 &quot;A String&quot;,
3424 ],
3425 &quot;destIpRanges&quot;: [ # CIDR IP address range.
3426 # Maximum number of destination CIDR IP ranges allowed is 5000.
3427 &quot;A String&quot;,
3428 ],
3429 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
3430 #
3431 #
3432 # - UNSPECIFIED
3433 # - INTERNET
3434 # - NON_INTERNET
3435 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
3436 #
3437 #
3438 # - UNSPECIFIED
3439 # - INTERNET
3440 # - NON_INTERNET
3441 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
3442 # of traffic. Should be specified as 2 letter country code defined as per
3443 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3444 # Maximum number of dest region codes allowed is 5000.
3445 &quot;A String&quot;,
3446 ],
3447 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3448 # The IPs in these lists will be matched against traffic destination.
3449 &quot;A String&quot;,
3450 ],
3451 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
3452 {
3453 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
3454 # required when creating a firewall rule. This value can either be
3455 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
3456 # protocol number.
3457 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
3458 # only applicable for UDP or TCP protocol. Each entry must be either
3459 # an integer or a range. If not specified, this rule applies to
3460 # connections through any port.
3461 #
3462 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
3463 &quot;A String&quot;,
3464 ],
3465 },
3466 ],
3467 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
3468 # Maximum number of source address groups is 10.
3469 &quot;A String&quot;,
3470 ],
3471 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3472 # traffic source.
3473 # Maximum number of source fqdn allowed is 100.
3474 &quot;A String&quot;,
3475 ],
3476 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
3477 # Maximum number of source CIDR IP ranges allowed is 5000.
3478 &quot;A String&quot;,
3479 ],
3480 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
3481 #
3482 #
3483 # - UNSPECIFIED
3484 # - INTERNET
3485 # - INTRA_VPC
3486 # - NON_INTERNET
3487 # - VPC_NETWORKS
3488 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
3489 #
3490 #
3491 # - UNSPECIFIED
3492 # - INTERNET
3493 # - INTRA_VPC
3494 # - NON_INTERNET
3495 # - VPC_NETWORKS
3496 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
3497 &quot;A String&quot;,
3498 ],
3499 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
3500 # of traffic. Should be specified as 2 letter country code defined as per
3501 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3502 # Maximum number of source region codes allowed is 5000.
3503 &quot;A String&quot;,
3504 ],
3505 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
3506 # of the traffic.
3507 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
3508 # and there is no srcIpRange, this rule will be ignored.
3509 # Maximum number of source tag values allowed is 256.
3510 {
3511 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3512 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3513 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3514 # or its network is deleted.
3515 },
3516 ],
3517 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3518 # The IPs in these lists will be matched against traffic source.
3519 &quot;A String&quot;,
3520 ],
3521 },
3522 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
3523 # must be a positive value between 0 and 2147483647.
3524 # Rules are evaluated from highest to lowest priority where 0 is the
3525 # highest priority and 2147483647 is the lowest priority.
3526 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
3527 # and can be updated.
3528 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
3529 # rule.
3530 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
3531 # Example:
3532 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
3533 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
3534 # &#x27;mirror&#x27;. Cannot be specified for other actions.
3535 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
3536 # This field allows you to control which load balancers get this rule.
3537 # For example, the following are valid values:
3538 #
3539 #
3540 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
3541 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
3542 # - projects/project/global/
3543 # forwardingRules/forwardingRule
3544 # - projects/project/regions/region/forwardingRules/
3545 # forwardingRule
3546 &quot;A String&quot;,
3547 ],
3548 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
3549 # allows you to control which network&#x27;s VMs get this rule. If this field
3550 # is left blank, all VMs within the organization will receive the rule.
3551 &quot;A String&quot;,
3552 ],
3553 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
3554 # applies to. If targetSecureTag are specified, then the
3555 # firewall rule applies only to instances in the VPC network that have one
3556 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
3557 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
3558 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
3559 # to all instances on the specified network.
3560 # Maximum number of target label tags allowed is 256.
3561 {
3562 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3563 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3564 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3565 # or its network is deleted.
3566 },
3567 ],
3568 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
3569 # applied with this rule.
3570 &quot;A String&quot;,
3571 ],
3572 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
3573 # Default value is INSTANCES.
3574 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
3575 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
3576 # be set for other actions.
3577 },
3578 ],
3579 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
3580 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
3581 &quot;shortName&quot;: &quot;A String&quot;, # User-provided name of the Organization firewall policy. The name should be
3582 # unique in the organization in which the firewall policy is created.
3583 # This field is not applicable to network firewall policies.
3584 # This name must be set on creation and cannot be changed. The name must be
3585 # 1-63 characters long, and comply with RFC1035.
3586 # Specifically, the name must be 1-63 characters long and match the regular
3587 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
3588 # character must be a lowercase letter, and all following characters must
3589 # be a dash, lowercase letter, or digit, except the last character, which
3590 # cannot be a dash.
3591 }
3592
3593 requestId: string, An optional request ID to identify requests. Specify a unique request ID
3594 so that if you must retry your request, the server will know to ignore the
3595 request if it has already been completed.
3596
3597 For example, consider a situation where you make an initial request and
3598 the request times out. If you make the request again with the same
3599 request ID, the server can check if original operation with the same
3600 request ID was received, and if so, will ignore the second request. This
3601 prevents clients from accidentally creating duplicate commitments.
3602
3603 The request ID must be
3604 a valid UUID with the exception that zero UUID is not supported
3605 (00000000-0000-0000-0000-000000000000).
3606 x__xgafv: string, V1 error format.
3607 Allowed values
3608 1 - v1 error format
3609 2 - v2 error format
3610
3611 Returns:
3612 An object of the form:
3613
3614 { # Represents an Operation resource.
3615 #
3616 # Google Compute Engine has three Operation resources:
3617 #
3618 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
3619 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
3620 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
3621 #
3622 # You can use an operation resource to manage asynchronous API requests.
3623 # For more information, readHandling
3624 # API responses.
3625 #
3626 # Operations can be global, regional or zonal.
3627 #
3628 # - For global operations, use the `globalOperations`
3629 # resource.
3630 # - For regional operations, use the
3631 # `regionOperations` resource.
3632 # - For zonal operations, use
3633 # the `zoneOperations` resource.
3634 #
3635 #
3636 #
3637 # For more information, read
3638 # Global, Regional, and Zonal Resources.
3639 #
3640 # Note that completed Operation resources have a limited
3641 # retention period.
3642 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
3643 # Not present otherwise.
3644 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
3645 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
3646 # set when the operation is created.
3647 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
3648 # text format.
3649 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
3650 # this field will be populated.
3651 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
3652 # operation.
3653 {
3654 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
3655 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
3656 # details. There is a set of defined message types to use for providing
3657 # details.The syntax depends on the error code. For example,
3658 # QuotaExceededInfo will have details when the error code is
3659 # QUOTA_EXCEEDED.
3660 {
3661 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
3662 #
3663 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
3664 # is not enabled:
3665 #
3666 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
3667 # &quot;domain&quot;: &quot;googleapis.com&quot;
3668 # &quot;metadata&quot;: {
3669 # &quot;resource&quot;: &quot;projects/123&quot;,
3670 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
3671 # }
3672 # }
3673 #
3674 # This response indicates that the pubsub.googleapis.com API is not enabled.
3675 #
3676 # Example of an error that is returned when attempting to create a Spanner
3677 # instance in a region that is out of stock:
3678 #
3679 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
3680 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
3681 # &quot;metadata&quot;: {
3682 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
3683 # }
3684 # }
3685 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
3686 # is typically the registered service name of the tool or product that
3687 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
3688 # generated by some common infrastructure, the error domain must be a
3689 # globally unique value that identifies the infrastructure. For Google API
3690 # infrastructure, the error domain is &quot;googleapis.com&quot;.
3691 &quot;metadatas&quot;: { # Additional structured details about this error.
3692 #
3693 # Keys must match a regular expression of `a-z+` but should
3694 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
3695 # length. When identifying the current value of an exceeded limit, the units
3696 # should be contained in the key, not the value. For example, rather than
3697 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
3698 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
3699 # instances that can be created in a single (batch) request.
3700 &quot;a_key&quot;: &quot;A String&quot;,
3701 },
3702 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
3703 # proximate cause of the error. Error reasons are unique within a particular
3704 # domain of errors. This should be at most 63 characters and match a
3705 # regular expression of `A-Z+[A-Z0-9]`, which represents
3706 # UPPER_SNAKE_CASE.
3707 },
3708 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
3709 #
3710 # For example, if a quota check failed with an error indicating the calling
3711 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
3712 # directly to the right place in the developer console to flip the bit.
3713 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
3714 { # Describes a URL link.
3715 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
3716 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
3717 },
3718 ],
3719 },
3720 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
3721 # which can be attached to an RPC error.
3722 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
3723 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
3724 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
3725 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
3726 },
3727 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
3728 &quot;dimensions&quot;: { # The map holding related quota dimensions.
3729 &quot;a_key&quot;: &quot;A String&quot;,
3730 },
3731 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
3732 # type or metric.
3733 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
3734 # or metric.
3735 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
3736 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
3737 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
3738 },
3739 },
3740 ],
3741 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
3742 # This property is optional.
3743 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
3744 },
3745 ],
3746 },
3747 &quot;getVersionOperationMetadata&quot;: {
3748 &quot;inlineSbomInfo&quot;: {
3749 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
3750 # appropriate identifiers.
3751 &quot;a_key&quot;: &quot;A String&quot;,
3752 },
3753 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
3754 # identifiers.
3755 &quot;a_key&quot;: &quot;A String&quot;,
3756 },
3757 },
3758 },
3759 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
3760 # message that was returned, such as `NOT FOUND`.
3761 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
3762 # status code that was returned. For example, a `404` means the
3763 # resource was not found.
3764 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
3765 # defined by the server.
3766 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
3767 # This value is inRFC3339
3768 # text format.
3769 &quot;instancesBulkInsertOperationMetadata&quot;: {
3770 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
3771 # Example key: zones/us-central1-a
3772 &quot;a_key&quot;: {
3773 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
3774 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
3775 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
3776 # error.
3777 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
3778 # if the flow is rolling forward or rolling back.
3779 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
3780 },
3781 },
3782 },
3783 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
3784 # Operation resources.
3785 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
3786 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
3787 # group of operations results from a `bulkInsert` API request.
3788 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
3789 # `update`, or `delete`, and so on.
3790 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
3791 # There is no requirement that this be linear or support any granularity of
3792 # operations. This should not be used to guess when the operation will be
3793 # complete. This number should monotonically increase as the operation
3794 # progresses.
3795 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
3796 # applicable when performing regional operations.
3797 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
3798 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
3799 # this field will contain information on all underlying zonal actions and
3800 # their state.
3801 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
3802 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
3803 # Example key: zones/us-central1-a
3804 &quot;a_key&quot;: {
3805 &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
3806 # populated.
3807 # different programming environments, including REST APIs and RPC APIs. It is
3808 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3809 # three pieces of data: error code, error message, and error details.
3810 #
3811 # You can find out more about this error model and how to work with it in the
3812 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3813 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3814 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3815 # message types for APIs to use.
3816 {
3817 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3818 },
3819 ],
3820 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3821 # user-facing error message should be localized and sent in the
3822 # google.rpc.Status.details field, or localized by the client.
3823 },
3824 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
3825 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
3826 },
3827 },
3828 },
3829 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
3830 # This value is inRFC3339
3831 # text format.
3832 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
3833 # following:
3834 # `PENDING`, `RUNNING`, or `DONE`.
3835 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
3836 # operation.
3837 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
3838 # of the target resource.
3839 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
3840 # operations related to creating a snapshot, this points to the disk
3841 # that the snapshot was created from.
3842 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
3843 # `[email protected]` or
3844 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
3845 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
3846 # operation, this field will be populated.
3847 {
3848 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
3849 # Engine returns NO_RESULTS_ON_PAGE if there
3850 # are no results in the response.
3851 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
3852 # value format. For example:
3853 #
3854 # &quot;data&quot;: [
3855 # {
3856 # &quot;key&quot;: &quot;scope&quot;,
3857 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
3858 # }
3859 {
3860 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
3861 # returned. For example, for warnings where there are no results in a list
3862 # request for a particular zone, this key might be scope and
3863 # the key value might be the zone name. Other examples might be a key
3864 # indicating a deprecated resource and a suggested replacement, or a
3865 # warning about invalid network settings (for example, if an instance
3866 # attempts to perform IP forwarding but is not enabled for IP forwarding).
3867 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
3868 },
3869 ],
3870 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
3871 },
3872 ],
3873 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
3874 # applicable when performing per-zone operations.
3875 }</pre>
3876 </div>
3877
3878 <div class="method">
3879 <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
3880 <pre>Lists all the network firewall policies that have been configured
3881 for the specified project in the given region.
3882
3883 Args:
3884 project: string, Project ID for this request. (required)
3885 region: string, Name of the region scoping this request. (required)
3886 filter: string, A filter expression that filters resources listed in the response. Most
3887 Compute resources support two types of filter expressions:
3888 expressions that support regular expressions and expressions that follow
3889 API improvement proposal AIP-160.
3890 These two types of filter expressions cannot be mixed in one request.
3891
3892 If you want to use AIP-160, your expression must specify the field name, an
3893 operator, and the value that you want to use for filtering. The value
3894 must be a string, a number, or a boolean. The operator
3895 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
3896
3897 For example, if you are filtering Compute Engine instances, you can
3898 exclude instances named `example-instance` by specifying
3899 `name != example-instance`.
3900
3901 The `:*` comparison can be used to test whether a key has been defined.
3902 For example, to find all objects with `owner` label use:
3903 ```
3904 labels.owner:*
3905 ```
3906
3907 You can also filter nested fields. For example, you could specify
3908 `scheduling.automaticRestart = false` to include instances only
3909 if they are not scheduled for automatic restarts. You can use filtering
3910 on nested fields to filter based onresource labels.
3911
3912 To filter on multiple expressions, provide each separate expression within
3913 parentheses. For example:
3914 ```
3915 (scheduling.automaticRestart = true)
3916 (cpuPlatform = &quot;Intel Skylake&quot;)
3917 ```
3918 By default, each expression is an `AND` expression. However, you
3919 can include `AND` and `OR` expressions explicitly.
3920 For example:
3921 ```
3922 (cpuPlatform = &quot;Intel Skylake&quot;) OR
3923 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
3924 (scheduling.automaticRestart = true)
3925 ```
3926
3927 If you want to use a regular expression, use the `eq` (equal) or `ne`
3928 (not equal) operator against a single un-parenthesized expression with or
3929 without quotes or against multiple parenthesized expressions. Examples:
3930
3931 `fieldname eq unquoted literal`
3932 `fieldname eq &#x27;single quoted literal&#x27;`
3933 `fieldname eq &quot;double quoted literal&quot;`
3934 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
3935
3936 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
3937 The literal value must match the entire field.
3938
3939 For example, to filter for instances that do not end with name &quot;instance&quot;,
3940 you would use `name ne .*instance`.
3941
3942 You cannot combine constraints on multiple fields using regular
3943 expressions.
3944 maxResults: integer, The maximum number of results per page that should be returned.
3945 If the number of available results is larger than `maxResults`,
3946 Compute Engine returns a `nextPageToken` that can be used to get
3947 the next page of results in subsequent list requests. Acceptable values are
3948 `0` to `500`, inclusive. (Default: `500`)
3949 orderBy: string, Sorts list results by a certain order. By default, results
3950 are returned in alphanumerical order based on the resource name.
3951
3952 You can also sort results in descending order based on the creation
3953 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
3954 results based on the `creationTimestamp` field in
3955 reverse chronological order (newest result first). Use this to sort
3956 resources like operations so that the newest operation is returned first.
3957
3958 Currently, only sorting by `name` or
3959 `creationTimestamp desc` is supported.
3960 pageToken: string, Specifies a page token to use. Set `pageToken` to the
3961 `nextPageToken` returned by a previous list request to get
3962 the next page of results.
3963 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
3964 of failure. The default value is false.
3965
3966 For example, when partial success behavior is enabled, aggregatedList for a
3967 single zone scope either returns all resources in the zone or no resources,
3968 with an error code.
3969 x__xgafv: string, V1 error format.
3970 Allowed values
3971 1 - v1 error format
3972 2 - v2 error format
3973
3974 Returns:
3975 An object of the form:
3976
3977 {
3978 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
3979 &quot;items&quot;: [ # A list of FirewallPolicy resources.
3980 { # Represents a Firewall Policy resource.
3981 &quot;associations&quot;: [ # A list of associations that belong to this firewall policy.
3982 {
3983 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
3984 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
3985 # of the firewall policy of the association.
3986 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
3987 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
3988 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
3989 },
3990 ],
3991 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
3992 # text format.
3993 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
3994 # create the resource.
3995 &quot;displayName&quot;: &quot;A String&quot;, # Deprecated, please use short name instead. User-provided name of the
3996 # Organization firewall policy. The name should be unique in the organization
3997 # in which the firewall policy is created.
3998 # This field is not applicable to network firewall policies.
3999 # This name must be set on creation and cannot be changed.
4000 # The name must be 1-63 characters long, and comply
4001 # with RFC1035. Specifically, the name must be 1-63 characters
4002 # long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which
4003 # means the first character must be a lowercase letter, and all following
4004 # characters must be a dash, lowercase letter, or digit, except the last
4005 # character, which cannot be a dash.
4006 &quot;fingerprint&quot;: &quot;A String&quot;, # Specifies a fingerprint for this resource, which is essentially a hash of
4007 # the metadata&#x27;s contents and used for optimistic locking. The
4008 # fingerprint is initially generated by Compute Engine and changes after
4009 # every request to modify or update metadata. You must always provide an
4010 # up-to-date fingerprint hash in order to update or change metadata,
4011 # otherwise the request will fail with error412 conditionNotMet.
4012 #
4013 # To see the latest fingerprint, make get() request to the
4014 # firewall policy.
4015 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
4016 # defined by the server.
4017 &quot;kind&quot;: &quot;compute#firewallPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
4018 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. For Organization Firewall Policies it&#x27;s a
4019 # [Output Only] numeric ID allocated by Google Cloud which uniquely
4020 # identifies the Organization Firewall Policy.
4021 &quot;packetMirroringRules&quot;: [ # A list of packet mirroring rules that belong to this policy.
4022 { # Represents a rule that describes one or more match conditions along with
4023 # the action to be taken when traffic matches this condition (allow or deny).
4024 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
4025 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
4026 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
4027 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
4028 # and &quot;goto_next&quot;.
4029 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
4030 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
4031 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
4032 # the firewall policy rule is not enforced and traffic behaves as if it did
4033 # not exist. If this is unspecified, the firewall policy rule will be
4034 # enabled.
4035 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
4036 # enabled, logs will be exported to the configured export destination in
4037 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
4038 # cannot enable logging on &quot;goto_next&quot; rules.
4039 &quot;kind&quot;: &quot;compute#firewallPolicyRule&quot;, # Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules.
4040 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
4041 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
4042 # Exactly one field must be specified.
4043 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
4044 # Maximum number of destination address groups is 10.
4045 &quot;A String&quot;,
4046 ],
4047 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4048 # traffic destination.
4049 # Maximum number of destination fqdn allowed is 100.
4050 &quot;A String&quot;,
4051 ],
4052 &quot;destIpRanges&quot;: [ # CIDR IP address range.
4053 # Maximum number of destination CIDR IP ranges allowed is 5000.
4054 &quot;A String&quot;,
4055 ],
4056 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
4057 #
4058 #
4059 # - UNSPECIFIED
4060 # - INTERNET
4061 # - NON_INTERNET
4062 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
4063 #
4064 #
4065 # - UNSPECIFIED
4066 # - INTERNET
4067 # - NON_INTERNET
4068 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
4069 # of traffic. Should be specified as 2 letter country code defined as per
4070 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4071 # Maximum number of dest region codes allowed is 5000.
4072 &quot;A String&quot;,
4073 ],
4074 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4075 # The IPs in these lists will be matched against traffic destination.
4076 &quot;A String&quot;,
4077 ],
4078 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
4079 {
4080 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
4081 # required when creating a firewall rule. This value can either be
4082 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
4083 # protocol number.
4084 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
4085 # only applicable for UDP or TCP protocol. Each entry must be either
4086 # an integer or a range. If not specified, this rule applies to
4087 # connections through any port.
4088 #
4089 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
4090 &quot;A String&quot;,
4091 ],
4092 },
4093 ],
4094 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
4095 # Maximum number of source address groups is 10.
4096 &quot;A String&quot;,
4097 ],
4098 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4099 # traffic source.
4100 # Maximum number of source fqdn allowed is 100.
4101 &quot;A String&quot;,
4102 ],
4103 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
4104 # Maximum number of source CIDR IP ranges allowed is 5000.
4105 &quot;A String&quot;,
4106 ],
4107 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
4108 #
4109 #
4110 # - UNSPECIFIED
4111 # - INTERNET
4112 # - INTRA_VPC
4113 # - NON_INTERNET
4114 # - VPC_NETWORKS
4115 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
4116 #
4117 #
4118 # - UNSPECIFIED
4119 # - INTERNET
4120 # - INTRA_VPC
4121 # - NON_INTERNET
4122 # - VPC_NETWORKS
4123 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
4124 &quot;A String&quot;,
4125 ],
4126 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
4127 # of traffic. Should be specified as 2 letter country code defined as per
4128 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4129 # Maximum number of source region codes allowed is 5000.
4130 &quot;A String&quot;,
4131 ],
4132 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
4133 # of the traffic.
4134 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
4135 # and there is no srcIpRange, this rule will be ignored.
4136 # Maximum number of source tag values allowed is 256.
4137 {
4138 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4139 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4140 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4141 # or its network is deleted.
4142 },
4143 ],
4144 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4145 # The IPs in these lists will be matched against traffic source.
4146 &quot;A String&quot;,
4147 ],
4148 },
4149 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
4150 # must be a positive value between 0 and 2147483647.
4151 # Rules are evaluated from highest to lowest priority where 0 is the
4152 # highest priority and 2147483647 is the lowest priority.
4153 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
4154 # and can be updated.
4155 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
4156 # rule.
4157 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
4158 # Example:
4159 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
4160 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
4161 # &#x27;mirror&#x27;. Cannot be specified for other actions.
4162 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
4163 # This field allows you to control which load balancers get this rule.
4164 # For example, the following are valid values:
4165 #
4166 #
4167 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
4168 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
4169 # - projects/project/global/
4170 # forwardingRules/forwardingRule
4171 # - projects/project/regions/region/forwardingRules/
4172 # forwardingRule
4173 &quot;A String&quot;,
4174 ],
4175 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
4176 # allows you to control which network&#x27;s VMs get this rule. If this field
4177 # is left blank, all VMs within the organization will receive the rule.
4178 &quot;A String&quot;,
4179 ],
4180 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
4181 # applies to. If targetSecureTag are specified, then the
4182 # firewall rule applies only to instances in the VPC network that have one
4183 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
4184 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
4185 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
4186 # to all instances on the specified network.
4187 # Maximum number of target label tags allowed is 256.
4188 {
4189 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4190 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4191 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4192 # or its network is deleted.
4193 },
4194 ],
4195 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
4196 # applied with this rule.
4197 &quot;A String&quot;,
4198 ],
4199 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
4200 # Default value is INSTANCES.
4201 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
4202 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
4203 # be set for other actions.
4204 },
4205 ],
4206 &quot;parent&quot;: &quot;A String&quot;, # Output only. [Output Only] The parent of the firewall policy.
4207 # This field is not applicable to network firewall policies.
4208 &quot;policyType&quot;: &quot;A String&quot;, # The type of the firewall policy. This field can be one of
4209 # VPC_POLICY, RDMA_ROCE_POLICY or ULL_POLICY.
4210 #
4211 # Note: if not specified then VPC_POLICY will be used.
4212 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional firewall policy resides.
4213 # This field is not applicable to global firewall policies.
4214 # You must specify this field as part of the HTTP request URL. It is
4215 # not settable as a field in the request body.
4216 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall
4217 # policy can not exceed a set number of tuples.
4218 &quot;rules&quot;: [ # A list of rules that belong to this policy.
4219 # There must always be a default rule (rule with priority 2147483647 and
4220 # match &quot;*&quot;). If no rules are provided when creating a firewall policy, a
4221 # default rule with action &quot;allow&quot; will be added.
4222 { # Represents a rule that describes one or more match conditions along with
4223 # the action to be taken when traffic matches this condition (allow or deny).
4224 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
4225 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
4226 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
4227 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
4228 # and &quot;goto_next&quot;.
4229 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
4230 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
4231 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
4232 # the firewall policy rule is not enforced and traffic behaves as if it did
4233 # not exist. If this is unspecified, the firewall policy rule will be
4234 # enabled.
4235 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
4236 # enabled, logs will be exported to the configured export destination in
4237 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
4238 # cannot enable logging on &quot;goto_next&quot; rules.
4239 &quot;kind&quot;: &quot;compute#firewallPolicyRule&quot;, # Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules.
4240 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
4241 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
4242 # Exactly one field must be specified.
4243 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
4244 # Maximum number of destination address groups is 10.
4245 &quot;A String&quot;,
4246 ],
4247 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4248 # traffic destination.
4249 # Maximum number of destination fqdn allowed is 100.
4250 &quot;A String&quot;,
4251 ],
4252 &quot;destIpRanges&quot;: [ # CIDR IP address range.
4253 # Maximum number of destination CIDR IP ranges allowed is 5000.
4254 &quot;A String&quot;,
4255 ],
4256 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
4257 #
4258 #
4259 # - UNSPECIFIED
4260 # - INTERNET
4261 # - NON_INTERNET
4262 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
4263 #
4264 #
4265 # - UNSPECIFIED
4266 # - INTERNET
4267 # - NON_INTERNET
4268 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
4269 # of traffic. Should be specified as 2 letter country code defined as per
4270 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4271 # Maximum number of dest region codes allowed is 5000.
4272 &quot;A String&quot;,
4273 ],
4274 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4275 # The IPs in these lists will be matched against traffic destination.
4276 &quot;A String&quot;,
4277 ],
4278 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
4279 {
4280 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
4281 # required when creating a firewall rule. This value can either be
4282 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
4283 # protocol number.
4284 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
4285 # only applicable for UDP or TCP protocol. Each entry must be either
4286 # an integer or a range. If not specified, this rule applies to
4287 # connections through any port.
4288 #
4289 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
4290 &quot;A String&quot;,
4291 ],
4292 },
4293 ],
4294 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
4295 # Maximum number of source address groups is 10.
4296 &quot;A String&quot;,
4297 ],
4298 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4299 # traffic source.
4300 # Maximum number of source fqdn allowed is 100.
4301 &quot;A String&quot;,
4302 ],
4303 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
4304 # Maximum number of source CIDR IP ranges allowed is 5000.
4305 &quot;A String&quot;,
4306 ],
4307 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
4308 #
4309 #
4310 # - UNSPECIFIED
4311 # - INTERNET
4312 # - INTRA_VPC
4313 # - NON_INTERNET
4314 # - VPC_NETWORKS
4315 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
4316 #
4317 #
4318 # - UNSPECIFIED
4319 # - INTERNET
4320 # - INTRA_VPC
4321 # - NON_INTERNET
4322 # - VPC_NETWORKS
4323 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
4324 &quot;A String&quot;,
4325 ],
4326 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
4327 # of traffic. Should be specified as 2 letter country code defined as per
4328 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4329 # Maximum number of source region codes allowed is 5000.
4330 &quot;A String&quot;,
4331 ],
4332 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
4333 # of the traffic.
4334 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
4335 # and there is no srcIpRange, this rule will be ignored.
4336 # Maximum number of source tag values allowed is 256.
4337 {
4338 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4339 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4340 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4341 # or its network is deleted.
4342 },
4343 ],
4344 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4345 # The IPs in these lists will be matched against traffic source.
4346 &quot;A String&quot;,
4347 ],
4348 },
4349 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
4350 # must be a positive value between 0 and 2147483647.
4351 # Rules are evaluated from highest to lowest priority where 0 is the
4352 # highest priority and 2147483647 is the lowest priority.
4353 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
4354 # and can be updated.
4355 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
4356 # rule.
4357 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
4358 # Example:
4359 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
4360 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
4361 # &#x27;mirror&#x27;. Cannot be specified for other actions.
4362 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
4363 # This field allows you to control which load balancers get this rule.
4364 # For example, the following are valid values:
4365 #
4366 #
4367 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
4368 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
4369 # - projects/project/global/
4370 # forwardingRules/forwardingRule
4371 # - projects/project/regions/region/forwardingRules/
4372 # forwardingRule
4373 &quot;A String&quot;,
4374 ],
4375 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
4376 # allows you to control which network&#x27;s VMs get this rule. If this field
4377 # is left blank, all VMs within the organization will receive the rule.
4378 &quot;A String&quot;,
4379 ],
4380 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
4381 # applies to. If targetSecureTag are specified, then the
4382 # firewall rule applies only to instances in the VPC network that have one
4383 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
4384 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
4385 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
4386 # to all instances on the specified network.
4387 # Maximum number of target label tags allowed is 256.
4388 {
4389 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4390 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4391 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4392 # or its network is deleted.
4393 },
4394 ],
4395 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
4396 # applied with this rule.
4397 &quot;A String&quot;,
4398 ],
4399 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
4400 # Default value is INSTANCES.
4401 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
4402 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
4403 # be set for other actions.
4404 },
4405 ],
4406 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
4407 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
4408 &quot;shortName&quot;: &quot;A String&quot;, # User-provided name of the Organization firewall policy. The name should be
4409 # unique in the organization in which the firewall policy is created.
4410 # This field is not applicable to network firewall policies.
4411 # This name must be set on creation and cannot be changed. The name must be
4412 # 1-63 characters long, and comply with RFC1035.
4413 # Specifically, the name must be 1-63 characters long and match the regular
4414 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
4415 # character must be a lowercase letter, and all following characters must
4416 # be a dash, lowercase letter, or digit, except the last character, which
4417 # cannot be a dash.
4418 },
4419 ],
4420 &quot;kind&quot;: &quot;compute#firewallPolicyList&quot;, # Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies
4421 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
4422 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
4423 # the query parameter pageToken in the next list request.
4424 # Subsequent list requests will have their own nextPageToken to
4425 # continue paging through the results.
4426 &quot;warning&quot;: { # [Output Only] Informational warning message.
4427 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
4428 # Engine returns NO_RESULTS_ON_PAGE if there
4429 # are no results in the response.
4430 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
4431 # value format. For example:
4432 #
4433 # &quot;data&quot;: [
4434 # {
4435 # &quot;key&quot;: &quot;scope&quot;,
4436 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
4437 # }
4438 {
4439 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
4440 # returned. For example, for warnings where there are no results in a list
4441 # request for a particular zone, this key might be scope and
4442 # the key value might be the zone name. Other examples might be a key
4443 # indicating a deprecated resource and a suggested replacement, or a
4444 # warning about invalid network settings (for example, if an instance
4445 # attempts to perform IP forwarding but is not enabled for IP forwarding).
4446 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
4447 },
4448 ],
4449 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
4450 },
4451 }</pre>
4452 </div>
4453
4454 <div class="method">
4455 <code class="details" id="list_next">list_next()</code>
4456 <pre>Retrieves the next page of results.
4457
4458 Args:
4459 previous_request: The request for the previous page. (required)
4460 previous_response: The response from the request for the previous page. (required)
4461
4462 Returns:
4463 A request object that you can call &#x27;execute()&#x27; on to request the next
4464 page. Returns None if there are no more items in the collection.
4465 </pre>
4466 </div>
4467
4468 <div class="method">
4469 <code class="details" id="patch">patch(project, region, firewallPolicy, body=None, requestId=None, x__xgafv=None)</code>
4470 <pre>Patches the specified network firewall policy.
4471
4472 Args:
4473 project: string, Project ID for this request. (required)
4474 region: string, Name of the region scoping this request. (required)
4475 firewallPolicy: string, Name of the firewall policy to update. (required)
4476 body: object, The request body.
4477 The object takes the form of:
4478
4479 { # Represents a Firewall Policy resource.
4480 &quot;associations&quot;: [ # A list of associations that belong to this firewall policy.
4481 {
4482 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
4483 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
4484 # of the firewall policy of the association.
4485 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
4486 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
4487 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
4488 },
4489 ],
4490 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
4491 # text format.
4492 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
4493 # create the resource.
4494 &quot;displayName&quot;: &quot;A String&quot;, # Deprecated, please use short name instead. User-provided name of the
4495 # Organization firewall policy. The name should be unique in the organization
4496 # in which the firewall policy is created.
4497 # This field is not applicable to network firewall policies.
4498 # This name must be set on creation and cannot be changed.
4499 # The name must be 1-63 characters long, and comply
4500 # with RFC1035. Specifically, the name must be 1-63 characters
4501 # long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which
4502 # means the first character must be a lowercase letter, and all following
4503 # characters must be a dash, lowercase letter, or digit, except the last
4504 # character, which cannot be a dash.
4505 &quot;fingerprint&quot;: &quot;A String&quot;, # Specifies a fingerprint for this resource, which is essentially a hash of
4506 # the metadata&#x27;s contents and used for optimistic locking. The
4507 # fingerprint is initially generated by Compute Engine and changes after
4508 # every request to modify or update metadata. You must always provide an
4509 # up-to-date fingerprint hash in order to update or change metadata,
4510 # otherwise the request will fail with error412 conditionNotMet.
4511 #
4512 # To see the latest fingerprint, make get() request to the
4513 # firewall policy.
4514 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
4515 # defined by the server.
4516 &quot;kind&quot;: &quot;compute#firewallPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
4517 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. For Organization Firewall Policies it&#x27;s a
4518 # [Output Only] numeric ID allocated by Google Cloud which uniquely
4519 # identifies the Organization Firewall Policy.
4520 &quot;packetMirroringRules&quot;: [ # A list of packet mirroring rules that belong to this policy.
4521 { # Represents a rule that describes one or more match conditions along with
4522 # the action to be taken when traffic matches this condition (allow or deny).
4523 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
4524 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
4525 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
4526 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
4527 # and &quot;goto_next&quot;.
4528 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
4529 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
4530 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
4531 # the firewall policy rule is not enforced and traffic behaves as if it did
4532 # not exist. If this is unspecified, the firewall policy rule will be
4533 # enabled.
4534 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
4535 # enabled, logs will be exported to the configured export destination in
4536 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
4537 # cannot enable logging on &quot;goto_next&quot; rules.
4538 &quot;kind&quot;: &quot;compute#firewallPolicyRule&quot;, # Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules.
4539 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
4540 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
4541 # Exactly one field must be specified.
4542 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
4543 # Maximum number of destination address groups is 10.
4544 &quot;A String&quot;,
4545 ],
4546 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4547 # traffic destination.
4548 # Maximum number of destination fqdn allowed is 100.
4549 &quot;A String&quot;,
4550 ],
4551 &quot;destIpRanges&quot;: [ # CIDR IP address range.
4552 # Maximum number of destination CIDR IP ranges allowed is 5000.
4553 &quot;A String&quot;,
4554 ],
4555 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
4556 #
4557 #
4558 # - UNSPECIFIED
4559 # - INTERNET
4560 # - NON_INTERNET
4561 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
4562 #
4563 #
4564 # - UNSPECIFIED
4565 # - INTERNET
4566 # - NON_INTERNET
4567 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
4568 # of traffic. Should be specified as 2 letter country code defined as per
4569 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4570 # Maximum number of dest region codes allowed is 5000.
4571 &quot;A String&quot;,
4572 ],
4573 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4574 # The IPs in these lists will be matched against traffic destination.
4575 &quot;A String&quot;,
4576 ],
4577 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
4578 {
4579 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
4580 # required when creating a firewall rule. This value can either be
4581 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
4582 # protocol number.
4583 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
4584 # only applicable for UDP or TCP protocol. Each entry must be either
4585 # an integer or a range. If not specified, this rule applies to
4586 # connections through any port.
4587 #
4588 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
4589 &quot;A String&quot;,
4590 ],
4591 },
4592 ],
4593 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
4594 # Maximum number of source address groups is 10.
4595 &quot;A String&quot;,
4596 ],
4597 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4598 # traffic source.
4599 # Maximum number of source fqdn allowed is 100.
4600 &quot;A String&quot;,
4601 ],
4602 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
4603 # Maximum number of source CIDR IP ranges allowed is 5000.
4604 &quot;A String&quot;,
4605 ],
4606 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
4607 #
4608 #
4609 # - UNSPECIFIED
4610 # - INTERNET
4611 # - INTRA_VPC
4612 # - NON_INTERNET
4613 # - VPC_NETWORKS
4614 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
4615 #
4616 #
4617 # - UNSPECIFIED
4618 # - INTERNET
4619 # - INTRA_VPC
4620 # - NON_INTERNET
4621 # - VPC_NETWORKS
4622 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
4623 &quot;A String&quot;,
4624 ],
4625 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
4626 # of traffic. Should be specified as 2 letter country code defined as per
4627 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4628 # Maximum number of source region codes allowed is 5000.
4629 &quot;A String&quot;,
4630 ],
4631 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
4632 # of the traffic.
4633 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
4634 # and there is no srcIpRange, this rule will be ignored.
4635 # Maximum number of source tag values allowed is 256.
4636 {
4637 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4638 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4639 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4640 # or its network is deleted.
4641 },
4642 ],
4643 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4644 # The IPs in these lists will be matched against traffic source.
4645 &quot;A String&quot;,
4646 ],
4647 },
4648 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
4649 # must be a positive value between 0 and 2147483647.
4650 # Rules are evaluated from highest to lowest priority where 0 is the
4651 # highest priority and 2147483647 is the lowest priority.
4652 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
4653 # and can be updated.
4654 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
4655 # rule.
4656 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
4657 # Example:
4658 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
4659 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
4660 # &#x27;mirror&#x27;. Cannot be specified for other actions.
4661 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
4662 # This field allows you to control which load balancers get this rule.
4663 # For example, the following are valid values:
4664 #
4665 #
4666 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
4667 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
4668 # - projects/project/global/
4669 # forwardingRules/forwardingRule
4670 # - projects/project/regions/region/forwardingRules/
4671 # forwardingRule
4672 &quot;A String&quot;,
4673 ],
4674 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
4675 # allows you to control which network&#x27;s VMs get this rule. If this field
4676 # is left blank, all VMs within the organization will receive the rule.
4677 &quot;A String&quot;,
4678 ],
4679 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
4680 # applies to. If targetSecureTag are specified, then the
4681 # firewall rule applies only to instances in the VPC network that have one
4682 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
4683 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
4684 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
4685 # to all instances on the specified network.
4686 # Maximum number of target label tags allowed is 256.
4687 {
4688 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4689 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4690 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4691 # or its network is deleted.
4692 },
4693 ],
4694 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
4695 # applied with this rule.
4696 &quot;A String&quot;,
4697 ],
4698 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
4699 # Default value is INSTANCES.
4700 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
4701 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
4702 # be set for other actions.
4703 },
4704 ],
4705 &quot;parent&quot;: &quot;A String&quot;, # Output only. [Output Only] The parent of the firewall policy.
4706 # This field is not applicable to network firewall policies.
4707 &quot;policyType&quot;: &quot;A String&quot;, # The type of the firewall policy. This field can be one of
4708 # VPC_POLICY, RDMA_ROCE_POLICY or ULL_POLICY.
4709 #
4710 # Note: if not specified then VPC_POLICY will be used.
4711 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional firewall policy resides.
4712 # This field is not applicable to global firewall policies.
4713 # You must specify this field as part of the HTTP request URL. It is
4714 # not settable as a field in the request body.
4715 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall
4716 # policy can not exceed a set number of tuples.
4717 &quot;rules&quot;: [ # A list of rules that belong to this policy.
4718 # There must always be a default rule (rule with priority 2147483647 and
4719 # match &quot;*&quot;). If no rules are provided when creating a firewall policy, a
4720 # default rule with action &quot;allow&quot; will be added.
4721 { # Represents a rule that describes one or more match conditions along with
4722 # the action to be taken when traffic matches this condition (allow or deny).
4723 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
4724 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
4725 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
4726 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
4727 # and &quot;goto_next&quot;.
4728 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
4729 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
4730 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
4731 # the firewall policy rule is not enforced and traffic behaves as if it did
4732 # not exist. If this is unspecified, the firewall policy rule will be
4733 # enabled.
4734 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
4735 # enabled, logs will be exported to the configured export destination in
4736 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
4737 # cannot enable logging on &quot;goto_next&quot; rules.
4738 &quot;kind&quot;: &quot;compute#firewallPolicyRule&quot;, # Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules.
4739 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
4740 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
4741 # Exactly one field must be specified.
4742 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
4743 # Maximum number of destination address groups is 10.
4744 &quot;A String&quot;,
4745 ],
4746 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4747 # traffic destination.
4748 # Maximum number of destination fqdn allowed is 100.
4749 &quot;A String&quot;,
4750 ],
4751 &quot;destIpRanges&quot;: [ # CIDR IP address range.
4752 # Maximum number of destination CIDR IP ranges allowed is 5000.
4753 &quot;A String&quot;,
4754 ],
4755 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
4756 #
4757 #
4758 # - UNSPECIFIED
4759 # - INTERNET
4760 # - NON_INTERNET
4761 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
4762 #
4763 #
4764 # - UNSPECIFIED
4765 # - INTERNET
4766 # - NON_INTERNET
4767 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
4768 # of traffic. Should be specified as 2 letter country code defined as per
4769 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4770 # Maximum number of dest region codes allowed is 5000.
4771 &quot;A String&quot;,
4772 ],
4773 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4774 # The IPs in these lists will be matched against traffic destination.
4775 &quot;A String&quot;,
4776 ],
4777 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
4778 {
4779 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
4780 # required when creating a firewall rule. This value can either be
4781 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
4782 # protocol number.
4783 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
4784 # only applicable for UDP or TCP protocol. Each entry must be either
4785 # an integer or a range. If not specified, this rule applies to
4786 # connections through any port.
4787 #
4788 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
4789 &quot;A String&quot;,
4790 ],
4791 },
4792 ],
4793 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
4794 # Maximum number of source address groups is 10.
4795 &quot;A String&quot;,
4796 ],
4797 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4798 # traffic source.
4799 # Maximum number of source fqdn allowed is 100.
4800 &quot;A String&quot;,
4801 ],
4802 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
4803 # Maximum number of source CIDR IP ranges allowed is 5000.
4804 &quot;A String&quot;,
4805 ],
4806 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
4807 #
4808 #
4809 # - UNSPECIFIED
4810 # - INTERNET
4811 # - INTRA_VPC
4812 # - NON_INTERNET
4813 # - VPC_NETWORKS
4814 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
4815 #
4816 #
4817 # - UNSPECIFIED
4818 # - INTERNET
4819 # - INTRA_VPC
4820 # - NON_INTERNET
4821 # - VPC_NETWORKS
4822 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
4823 &quot;A String&quot;,
4824 ],
4825 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
4826 # of traffic. Should be specified as 2 letter country code defined as per
4827 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4828 # Maximum number of source region codes allowed is 5000.
4829 &quot;A String&quot;,
4830 ],
4831 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
4832 # of the traffic.
4833 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
4834 # and there is no srcIpRange, this rule will be ignored.
4835 # Maximum number of source tag values allowed is 256.
4836 {
4837 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4838 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4839 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4840 # or its network is deleted.
4841 },
4842 ],
4843 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4844 # The IPs in these lists will be matched against traffic source.
4845 &quot;A String&quot;,
4846 ],
4847 },
4848 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
4849 # must be a positive value between 0 and 2147483647.
4850 # Rules are evaluated from highest to lowest priority where 0 is the
4851 # highest priority and 2147483647 is the lowest priority.
4852 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
4853 # and can be updated.
4854 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
4855 # rule.
4856 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
4857 # Example:
4858 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
4859 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
4860 # &#x27;mirror&#x27;. Cannot be specified for other actions.
4861 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
4862 # This field allows you to control which load balancers get this rule.
4863 # For example, the following are valid values:
4864 #
4865 #
4866 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
4867 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
4868 # - projects/project/global/
4869 # forwardingRules/forwardingRule
4870 # - projects/project/regions/region/forwardingRules/
4871 # forwardingRule
4872 &quot;A String&quot;,
4873 ],
4874 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
4875 # allows you to control which network&#x27;s VMs get this rule. If this field
4876 # is left blank, all VMs within the organization will receive the rule.
4877 &quot;A String&quot;,
4878 ],
4879 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
4880 # applies to. If targetSecureTag are specified, then the
4881 # firewall rule applies only to instances in the VPC network that have one
4882 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
4883 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
4884 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
4885 # to all instances on the specified network.
4886 # Maximum number of target label tags allowed is 256.
4887 {
4888 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4889 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4890 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4891 # or its network is deleted.
4892 },
4893 ],
4894 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
4895 # applied with this rule.
4896 &quot;A String&quot;,
4897 ],
4898 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
4899 # Default value is INSTANCES.
4900 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
4901 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
4902 # be set for other actions.
4903 },
4904 ],
4905 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
4906 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
4907 &quot;shortName&quot;: &quot;A String&quot;, # User-provided name of the Organization firewall policy. The name should be
4908 # unique in the organization in which the firewall policy is created.
4909 # This field is not applicable to network firewall policies.
4910 # This name must be set on creation and cannot be changed. The name must be
4911 # 1-63 characters long, and comply with RFC1035.
4912 # Specifically, the name must be 1-63 characters long and match the regular
4913 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
4914 # character must be a lowercase letter, and all following characters must
4915 # be a dash, lowercase letter, or digit, except the last character, which
4916 # cannot be a dash.
4917 }
4918
4919 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
4920 that if you must retry your request, the server will know to ignore the
4921 request if it has already been completed.
4922
4923 For example, consider a situation where you make an initial request and
4924 the request times out. If you make the request again with the same
4925 request ID, the server can check if original operation with the same
4926 request ID was received, and if so, will ignore the second request. This
4927 prevents clients from accidentally creating duplicate commitments.
4928
4929 The request ID must be
4930 a valid UUID with the exception that zero UUID is not supported
4931 (00000000-0000-0000-0000-000000000000).
4932 x__xgafv: string, V1 error format.
4933 Allowed values
4934 1 - v1 error format
4935 2 - v2 error format
4936
4937 Returns:
4938 An object of the form:
4939
4940 { # Represents an Operation resource.
4941 #
4942 # Google Compute Engine has three Operation resources:
4943 #
4944 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
4945 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
4946 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
4947 #
4948 # You can use an operation resource to manage asynchronous API requests.
4949 # For more information, readHandling
4950 # API responses.
4951 #
4952 # Operations can be global, regional or zonal.
4953 #
4954 # - For global operations, use the `globalOperations`
4955 # resource.
4956 # - For regional operations, use the
4957 # `regionOperations` resource.
4958 # - For zonal operations, use
4959 # the `zoneOperations` resource.
4960 #
4961 #
4962 #
4963 # For more information, read
4964 # Global, Regional, and Zonal Resources.
4965 #
4966 # Note that completed Operation resources have a limited
4967 # retention period.
4968 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
4969 # Not present otherwise.
4970 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
4971 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
4972 # set when the operation is created.
4973 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
4974 # text format.
4975 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
4976 # this field will be populated.
4977 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
4978 # operation.
4979 {
4980 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
4981 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
4982 # details. There is a set of defined message types to use for providing
4983 # details.The syntax depends on the error code. For example,
4984 # QuotaExceededInfo will have details when the error code is
4985 # QUOTA_EXCEEDED.
4986 {
4987 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
4988 #
4989 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
4990 # is not enabled:
4991 #
4992 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
4993 # &quot;domain&quot;: &quot;googleapis.com&quot;
4994 # &quot;metadata&quot;: {
4995 # &quot;resource&quot;: &quot;projects/123&quot;,
4996 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
4997 # }
4998 # }
4999 #
5000 # This response indicates that the pubsub.googleapis.com API is not enabled.
5001 #
5002 # Example of an error that is returned when attempting to create a Spanner
5003 # instance in a region that is out of stock:
5004 #
5005 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
5006 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
5007 # &quot;metadata&quot;: {
5008 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
5009 # }
5010 # }
5011 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
5012 # is typically the registered service name of the tool or product that
5013 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
5014 # generated by some common infrastructure, the error domain must be a
5015 # globally unique value that identifies the infrastructure. For Google API
5016 # infrastructure, the error domain is &quot;googleapis.com&quot;.
5017 &quot;metadatas&quot;: { # Additional structured details about this error.
5018 #
5019 # Keys must match a regular expression of `a-z+` but should
5020 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
5021 # length. When identifying the current value of an exceeded limit, the units
5022 # should be contained in the key, not the value. For example, rather than
5023 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
5024 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
5025 # instances that can be created in a single (batch) request.
5026 &quot;a_key&quot;: &quot;A String&quot;,
5027 },
5028 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
5029 # proximate cause of the error. Error reasons are unique within a particular
5030 # domain of errors. This should be at most 63 characters and match a
5031 # regular expression of `A-Z+[A-Z0-9]`, which represents
5032 # UPPER_SNAKE_CASE.
5033 },
5034 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
5035 #
5036 # For example, if a quota check failed with an error indicating the calling
5037 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
5038 # directly to the right place in the developer console to flip the bit.
5039 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
5040 { # Describes a URL link.
5041 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
5042 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
5043 },
5044 ],
5045 },
5046 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
5047 # which can be attached to an RPC error.
5048 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
5049 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
5050 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
5051 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
5052 },
5053 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
5054 &quot;dimensions&quot;: { # The map holding related quota dimensions.
5055 &quot;a_key&quot;: &quot;A String&quot;,
5056 },
5057 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
5058 # type or metric.
5059 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
5060 # or metric.
5061 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
5062 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
5063 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
5064 },
5065 },
5066 ],
5067 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
5068 # This property is optional.
5069 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
5070 },
5071 ],
5072 },
5073 &quot;getVersionOperationMetadata&quot;: {
5074 &quot;inlineSbomInfo&quot;: {
5075 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
5076 # appropriate identifiers.
5077 &quot;a_key&quot;: &quot;A String&quot;,
5078 },
5079 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
5080 # identifiers.
5081 &quot;a_key&quot;: &quot;A String&quot;,
5082 },
5083 },
5084 },
5085 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
5086 # message that was returned, such as `NOT FOUND`.
5087 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
5088 # status code that was returned. For example, a `404` means the
5089 # resource was not found.
5090 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
5091 # defined by the server.
5092 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
5093 # This value is inRFC3339
5094 # text format.
5095 &quot;instancesBulkInsertOperationMetadata&quot;: {
5096 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
5097 # Example key: zones/us-central1-a
5098 &quot;a_key&quot;: {
5099 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
5100 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
5101 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
5102 # error.
5103 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
5104 # if the flow is rolling forward or rolling back.
5105 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
5106 },
5107 },
5108 },
5109 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
5110 # Operation resources.
5111 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
5112 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
5113 # group of operations results from a `bulkInsert` API request.
5114 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
5115 # `update`, or `delete`, and so on.
5116 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
5117 # There is no requirement that this be linear or support any granularity of
5118 # operations. This should not be used to guess when the operation will be
5119 # complete. This number should monotonically increase as the operation
5120 # progresses.
5121 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
5122 # applicable when performing regional operations.
5123 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
5124 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
5125 # this field will contain information on all underlying zonal actions and
5126 # their state.
5127 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
5128 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
5129 # Example key: zones/us-central1-a
5130 &quot;a_key&quot;: {
5131 &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
5132 # populated.
5133 # different programming environments, including REST APIs and RPC APIs. It is
5134 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
5135 # three pieces of data: error code, error message, and error details.
5136 #
5137 # You can find out more about this error model and how to work with it in the
5138 # [API Design Guide](https://cloud.google.com/apis/design/errors).
5139 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
5140 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
5141 # message types for APIs to use.
5142 {
5143 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
5144 },
5145 ],
5146 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
5147 # user-facing error message should be localized and sent in the
5148 # google.rpc.Status.details field, or localized by the client.
5149 },
5150 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
5151 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
5152 },
5153 },
5154 },
5155 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
5156 # This value is inRFC3339
5157 # text format.
5158 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
5159 # following:
5160 # `PENDING`, `RUNNING`, or `DONE`.
5161 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
5162 # operation.
5163 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
5164 # of the target resource.
5165 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
5166 # operations related to creating a snapshot, this points to the disk
5167 # that the snapshot was created from.
5168 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
5169 # `[email protected]` or
5170 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
5171 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
5172 # operation, this field will be populated.
5173 {
5174 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
5175 # Engine returns NO_RESULTS_ON_PAGE if there
5176 # are no results in the response.
5177 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
5178 # value format. For example:
5179 #
5180 # &quot;data&quot;: [
5181 # {
5182 # &quot;key&quot;: &quot;scope&quot;,
5183 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
5184 # }
5185 {
5186 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
5187 # returned. For example, for warnings where there are no results in a list
5188 # request for a particular zone, this key might be scope and
5189 # the key value might be the zone name. Other examples might be a key
5190 # indicating a deprecated resource and a suggested replacement, or a
5191 # warning about invalid network settings (for example, if an instance
5192 # attempts to perform IP forwarding but is not enabled for IP forwarding).
5193 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
5194 },
5195 ],
5196 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
5197 },
5198 ],
5199 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
5200 # applicable when performing per-zone operations.
5201 }</pre>
5202 </div>
5203
5204 <div class="method">
5205 <code class="details" id="patchRule">patchRule(project, region, firewallPolicy, body=None, priority=None, requestId=None, x__xgafv=None)</code>
5206 <pre>Patches a rule of the specified priority.
5207
5208 Args:
5209 project: string, Project ID for this request. (required)
5210 region: string, Name of the region scoping this request. (required)
5211 firewallPolicy: string, Name of the firewall policy to update. (required)
5212 body: object, The request body.
5213 The object takes the form of:
5214
5215 { # Represents a rule that describes one or more match conditions along with
5216 # the action to be taken when traffic matches this condition (allow or deny).
5217 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
5218 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
5219 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
5220 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
5221 # and &quot;goto_next&quot;.
5222 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
5223 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
5224 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
5225 # the firewall policy rule is not enforced and traffic behaves as if it did
5226 # not exist. If this is unspecified, the firewall policy rule will be
5227 # enabled.
5228 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
5229 # enabled, logs will be exported to the configured export destination in
5230 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
5231 # cannot enable logging on &quot;goto_next&quot; rules.
5232 &quot;kind&quot;: &quot;compute#firewallPolicyRule&quot;, # Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules.
5233 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
5234 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
5235 # Exactly one field must be specified.
5236 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
5237 # Maximum number of destination address groups is 10.
5238 &quot;A String&quot;,
5239 ],
5240 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
5241 # traffic destination.
5242 # Maximum number of destination fqdn allowed is 100.
5243 &quot;A String&quot;,
5244 ],
5245 &quot;destIpRanges&quot;: [ # CIDR IP address range.
5246 # Maximum number of destination CIDR IP ranges allowed is 5000.
5247 &quot;A String&quot;,
5248 ],
5249 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
5250 #
5251 #
5252 # - UNSPECIFIED
5253 # - INTERNET
5254 # - NON_INTERNET
5255 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
5256 #
5257 #
5258 # - UNSPECIFIED
5259 # - INTERNET
5260 # - NON_INTERNET
5261 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
5262 # of traffic. Should be specified as 2 letter country code defined as per
5263 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
5264 # Maximum number of dest region codes allowed is 5000.
5265 &quot;A String&quot;,
5266 ],
5267 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
5268 # The IPs in these lists will be matched against traffic destination.
5269 &quot;A String&quot;,
5270 ],
5271 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
5272 {
5273 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
5274 # required when creating a firewall rule. This value can either be
5275 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
5276 # protocol number.
5277 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
5278 # only applicable for UDP or TCP protocol. Each entry must be either
5279 # an integer or a range. If not specified, this rule applies to
5280 # connections through any port.
5281 #
5282 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
5283 &quot;A String&quot;,
5284 ],
5285 },
5286 ],
5287 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
5288 # Maximum number of source address groups is 10.
5289 &quot;A String&quot;,
5290 ],
5291 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
5292 # traffic source.
5293 # Maximum number of source fqdn allowed is 100.
5294 &quot;A String&quot;,
5295 ],
5296 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
5297 # Maximum number of source CIDR IP ranges allowed is 5000.
5298 &quot;A String&quot;,
5299 ],
5300 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
5301 #
5302 #
5303 # - UNSPECIFIED
5304 # - INTERNET
5305 # - INTRA_VPC
5306 # - NON_INTERNET
5307 # - VPC_NETWORKS
5308 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
5309 #
5310 #
5311 # - UNSPECIFIED
5312 # - INTERNET
5313 # - INTRA_VPC
5314 # - NON_INTERNET
5315 # - VPC_NETWORKS
5316 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
5317 &quot;A String&quot;,
5318 ],
5319 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
5320 # of traffic. Should be specified as 2 letter country code defined as per
5321 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
5322 # Maximum number of source region codes allowed is 5000.
5323 &quot;A String&quot;,
5324 ],
5325 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
5326 # of the traffic.
5327 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
5328 # and there is no srcIpRange, this rule will be ignored.
5329 # Maximum number of source tag values allowed is 256.
5330 {
5331 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
5332 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
5333 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
5334 # or its network is deleted.
5335 },
5336 ],
5337 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
5338 # The IPs in these lists will be matched against traffic source.
5339 &quot;A String&quot;,
5340 ],
5341 },
5342 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
5343 # must be a positive value between 0 and 2147483647.
5344 # Rules are evaluated from highest to lowest priority where 0 is the
5345 # highest priority and 2147483647 is the lowest priority.
5346 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
5347 # and can be updated.
5348 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
5349 # rule.
5350 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
5351 # Example:
5352 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
5353 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
5354 # &#x27;mirror&#x27;. Cannot be specified for other actions.
5355 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
5356 # This field allows you to control which load balancers get this rule.
5357 # For example, the following are valid values:
5358 #
5359 #
5360 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
5361 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
5362 # - projects/project/global/
5363 # forwardingRules/forwardingRule
5364 # - projects/project/regions/region/forwardingRules/
5365 # forwardingRule
5366 &quot;A String&quot;,
5367 ],
5368 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
5369 # allows you to control which network&#x27;s VMs get this rule. If this field
5370 # is left blank, all VMs within the organization will receive the rule.
5371 &quot;A String&quot;,
5372 ],
5373 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
5374 # applies to. If targetSecureTag are specified, then the
5375 # firewall rule applies only to instances in the VPC network that have one
5376 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
5377 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
5378 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
5379 # to all instances on the specified network.
5380 # Maximum number of target label tags allowed is 256.
5381 {
5382 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
5383 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
5384 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
5385 # or its network is deleted.
5386 },
5387 ],
5388 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
5389 # applied with this rule.
5390 &quot;A String&quot;,
5391 ],
5392 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
5393 # Default value is INSTANCES.
5394 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
5395 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
5396 # be set for other actions.
5397 }
5398
5399 priority: integer, The priority of the rule to patch.
5400 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
5401 that if you must retry your request, the server will know to ignore the
5402 request if it has already been completed.
5403
5404 For example, consider a situation where you make an initial request and
5405 the request times out. If you make the request again with the same
5406 request ID, the server can check if original operation with the same
5407 request ID was received, and if so, will ignore the second request. This
5408 prevents clients from accidentally creating duplicate commitments.
5409
5410 The request ID must be
5411 a valid UUID with the exception that zero UUID is not supported
5412 (00000000-0000-0000-0000-000000000000).
5413 x__xgafv: string, V1 error format.
5414 Allowed values
5415 1 - v1 error format
5416 2 - v2 error format
5417
5418 Returns:
5419 An object of the form:
5420
5421 { # Represents an Operation resource.
5422 #
5423 # Google Compute Engine has three Operation resources:
5424 #
5425 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
5426 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
5427 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
5428 #
5429 # You can use an operation resource to manage asynchronous API requests.
5430 # For more information, readHandling
5431 # API responses.
5432 #
5433 # Operations can be global, regional or zonal.
5434 #
5435 # - For global operations, use the `globalOperations`
5436 # resource.
5437 # - For regional operations, use the
5438 # `regionOperations` resource.
5439 # - For zonal operations, use
5440 # the `zoneOperations` resource.
5441 #
5442 #
5443 #
5444 # For more information, read
5445 # Global, Regional, and Zonal Resources.
5446 #
5447 # Note that completed Operation resources have a limited
5448 # retention period.
5449 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
5450 # Not present otherwise.
5451 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
5452 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
5453 # set when the operation is created.
5454 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
5455 # text format.
5456 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
5457 # this field will be populated.
5458 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
5459 # operation.
5460 {
5461 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
5462 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
5463 # details. There is a set of defined message types to use for providing
5464 # details.The syntax depends on the error code. For example,
5465 # QuotaExceededInfo will have details when the error code is
5466 # QUOTA_EXCEEDED.
5467 {
5468 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
5469 #
5470 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
5471 # is not enabled:
5472 #
5473 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
5474 # &quot;domain&quot;: &quot;googleapis.com&quot;
5475 # &quot;metadata&quot;: {
5476 # &quot;resource&quot;: &quot;projects/123&quot;,
5477 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
5478 # }
5479 # }
5480 #
5481 # This response indicates that the pubsub.googleapis.com API is not enabled.
5482 #
5483 # Example of an error that is returned when attempting to create a Spanner
5484 # instance in a region that is out of stock:
5485 #
5486 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
5487 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
5488 # &quot;metadata&quot;: {
5489 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
5490 # }
5491 # }
5492 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
5493 # is typically the registered service name of the tool or product that
5494 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
5495 # generated by some common infrastructure, the error domain must be a
5496 # globally unique value that identifies the infrastructure. For Google API
5497 # infrastructure, the error domain is &quot;googleapis.com&quot;.
5498 &quot;metadatas&quot;: { # Additional structured details about this error.
5499 #
5500 # Keys must match a regular expression of `a-z+` but should
5501 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
5502 # length. When identifying the current value of an exceeded limit, the units
5503 # should be contained in the key, not the value. For example, rather than
5504 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
5505 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
5506 # instances that can be created in a single (batch) request.
5507 &quot;a_key&quot;: &quot;A String&quot;,
5508 },
5509 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
5510 # proximate cause of the error. Error reasons are unique within a particular
5511 # domain of errors. This should be at most 63 characters and match a
5512 # regular expression of `A-Z+[A-Z0-9]`, which represents
5513 # UPPER_SNAKE_CASE.
5514 },
5515 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
5516 #
5517 # For example, if a quota check failed with an error indicating the calling
5518 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
5519 # directly to the right place in the developer console to flip the bit.
5520 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
5521 { # Describes a URL link.
5522 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
5523 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
5524 },
5525 ],
5526 },
5527 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
5528 # which can be attached to an RPC error.
5529 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
5530 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
5531 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
5532 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
5533 },
5534 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
5535 &quot;dimensions&quot;: { # The map holding related quota dimensions.
5536 &quot;a_key&quot;: &quot;A String&quot;,
5537 },
5538 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
5539 # type or metric.
5540 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
5541 # or metric.
5542 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
5543 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
5544 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
5545 },
5546 },
5547 ],
5548 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
5549 # This property is optional.
5550 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
5551 },
5552 ],
5553 },
5554 &quot;getVersionOperationMetadata&quot;: {
5555 &quot;inlineSbomInfo&quot;: {
5556 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
5557 # appropriate identifiers.
5558 &quot;a_key&quot;: &quot;A String&quot;,
5559 },
5560 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
5561 # identifiers.
5562 &quot;a_key&quot;: &quot;A String&quot;,
5563 },
5564 },
5565 },
5566 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
5567 # message that was returned, such as `NOT FOUND`.
5568 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
5569 # status code that was returned. For example, a `404` means the
5570 # resource was not found.
5571 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
5572 # defined by the server.
5573 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
5574 # This value is inRFC3339
5575 # text format.
5576 &quot;instancesBulkInsertOperationMetadata&quot;: {
5577 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
5578 # Example key: zones/us-central1-a
5579 &quot;a_key&quot;: {
5580 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
5581 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
5582 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
5583 # error.
5584 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
5585 # if the flow is rolling forward or rolling back.
5586 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
5587 },
5588 },
5589 },
5590 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
5591 # Operation resources.
5592 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
5593 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
5594 # group of operations results from a `bulkInsert` API request.
5595 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
5596 # `update`, or `delete`, and so on.
5597 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
5598 # There is no requirement that this be linear or support any granularity of
5599 # operations. This should not be used to guess when the operation will be
5600 # complete. This number should monotonically increase as the operation
5601 # progresses.
5602 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
5603 # applicable when performing regional operations.
5604 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
5605 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
5606 # this field will contain information on all underlying zonal actions and
5607 # their state.
5608 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
5609 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
5610 # Example key: zones/us-central1-a
5611 &quot;a_key&quot;: {
5612 &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
5613 # populated.
5614 # different programming environments, including REST APIs and RPC APIs. It is
5615 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
5616 # three pieces of data: error code, error message, and error details.
5617 #
5618 # You can find out more about this error model and how to work with it in the
5619 # [API Design Guide](https://cloud.google.com/apis/design/errors).
5620 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
5621 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
5622 # message types for APIs to use.
5623 {
5624 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
5625 },
5626 ],
5627 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
5628 # user-facing error message should be localized and sent in the
5629 # google.rpc.Status.details field, or localized by the client.
5630 },
5631 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
5632 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
5633 },
5634 },
5635 },
5636 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
5637 # This value is inRFC3339
5638 # text format.
5639 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
5640 # following:
5641 # `PENDING`, `RUNNING`, or `DONE`.
5642 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
5643 # operation.
5644 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
5645 # of the target resource.
5646 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
5647 # operations related to creating a snapshot, this points to the disk
5648 # that the snapshot was created from.
5649 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
5650 # `[email protected]` or
5651 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
5652 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
5653 # operation, this field will be populated.
5654 {
5655 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
5656 # Engine returns NO_RESULTS_ON_PAGE if there
5657 # are no results in the response.
5658 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
5659 # value format. For example:
5660 #
5661 # &quot;data&quot;: [
5662 # {
5663 # &quot;key&quot;: &quot;scope&quot;,
5664 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
5665 # }
5666 {
5667 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
5668 # returned. For example, for warnings where there are no results in a list
5669 # request for a particular zone, this key might be scope and
5670 # the key value might be the zone name. Other examples might be a key
5671 # indicating a deprecated resource and a suggested replacement, or a
5672 # warning about invalid network settings (for example, if an instance
5673 # attempts to perform IP forwarding but is not enabled for IP forwarding).
5674 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
5675 },
5676 ],
5677 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
5678 },
5679 ],
5680 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
5681 # applicable when performing per-zone operations.
5682 }</pre>
5683 </div>
5684
5685 <div class="method">
5686 <code class="details" id="removeAssociation">removeAssociation(project, region, firewallPolicy, name=None, requestId=None, x__xgafv=None)</code>
5687 <pre>Removes an association for the specified network firewall policy.
5688
5689 Args:
5690 project: string, Project ID for this request. (required)
5691 region: string, Name of the region scoping this request. (required)
5692 firewallPolicy: string, Name of the firewall policy to update. (required)
5693 name: string, Name for the association that will be removed.
5694 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
5695 that if you must retry your request, the server will know to ignore the
5696 request if it has already been completed.
5697
5698 For example, consider a situation where you make an initial request and
5699 the request times out. If you make the request again with the same
5700 request ID, the server can check if original operation with the same
5701 request ID was received, and if so, will ignore the second request. This
5702 prevents clients from accidentally creating duplicate commitments.
5703
5704 The request ID must be
5705 a valid UUID with the exception that zero UUID is not supported
5706 (00000000-0000-0000-0000-000000000000).
5707 x__xgafv: string, V1 error format.
5708 Allowed values
5709 1 - v1 error format
5710 2 - v2 error format
5711
5712 Returns:
5713 An object of the form:
5714
5715 { # Represents an Operation resource.
5716 #
5717 # Google Compute Engine has three Operation resources:
5718 #
5719 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
5720 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
5721 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
5722 #
5723 # You can use an operation resource to manage asynchronous API requests.
5724 # For more information, readHandling
5725 # API responses.
5726 #
5727 # Operations can be global, regional or zonal.
5728 #
5729 # - For global operations, use the `globalOperations`
5730 # resource.
5731 # - For regional operations, use the
5732 # `regionOperations` resource.
5733 # - For zonal operations, use
5734 # the `zoneOperations` resource.
5735 #
5736 #
5737 #
5738 # For more information, read
5739 # Global, Regional, and Zonal Resources.
5740 #
5741 # Note that completed Operation resources have a limited
5742 # retention period.
5743 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
5744 # Not present otherwise.
5745 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
5746 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
5747 # set when the operation is created.
5748 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
5749 # text format.
5750 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
5751 # this field will be populated.
5752 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
5753 # operation.
5754 {
5755 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
5756 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
5757 # details. There is a set of defined message types to use for providing
5758 # details.The syntax depends on the error code. For example,
5759 # QuotaExceededInfo will have details when the error code is
5760 # QUOTA_EXCEEDED.
5761 {
5762 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
5763 #
5764 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
5765 # is not enabled:
5766 #
5767 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
5768 # &quot;domain&quot;: &quot;googleapis.com&quot;
5769 # &quot;metadata&quot;: {
5770 # &quot;resource&quot;: &quot;projects/123&quot;,
5771 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
5772 # }
5773 # }
5774 #
5775 # This response indicates that the pubsub.googleapis.com API is not enabled.
5776 #
5777 # Example of an error that is returned when attempting to create a Spanner
5778 # instance in a region that is out of stock:
5779 #
5780 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
5781 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
5782 # &quot;metadata&quot;: {
5783 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
5784 # }
5785 # }
5786 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
5787 # is typically the registered service name of the tool or product that
5788 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
5789 # generated by some common infrastructure, the error domain must be a
5790 # globally unique value that identifies the infrastructure. For Google API
5791 # infrastructure, the error domain is &quot;googleapis.com&quot;.
5792 &quot;metadatas&quot;: { # Additional structured details about this error.
5793 #
5794 # Keys must match a regular expression of `a-z+` but should
5795 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
5796 # length. When identifying the current value of an exceeded limit, the units
5797 # should be contained in the key, not the value. For example, rather than
5798 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
5799 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
5800 # instances that can be created in a single (batch) request.
5801 &quot;a_key&quot;: &quot;A String&quot;,
5802 },
5803 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
5804 # proximate cause of the error. Error reasons are unique within a particular
5805 # domain of errors. This should be at most 63 characters and match a
5806 # regular expression of `A-Z+[A-Z0-9]`, which represents
5807 # UPPER_SNAKE_CASE.
5808 },
5809 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
5810 #
5811 # For example, if a quota check failed with an error indicating the calling
5812 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
5813 # directly to the right place in the developer console to flip the bit.
5814 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
5815 { # Describes a URL link.
5816 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
5817 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
5818 },
5819 ],
5820 },
5821 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
5822 # which can be attached to an RPC error.
5823 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
5824 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
5825 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
5826 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
5827 },
5828 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
5829 &quot;dimensions&quot;: { # The map holding related quota dimensions.
5830 &quot;a_key&quot;: &quot;A String&quot;,
5831 },
5832 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
5833 # type or metric.
5834 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
5835 # or metric.
5836 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
5837 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
5838 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
5839 },
5840 },
5841 ],
5842 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
5843 # This property is optional.
5844 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
5845 },
5846 ],
5847 },
5848 &quot;getVersionOperationMetadata&quot;: {
5849 &quot;inlineSbomInfo&quot;: {
5850 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
5851 # appropriate identifiers.
5852 &quot;a_key&quot;: &quot;A String&quot;,
5853 },
5854 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
5855 # identifiers.
5856 &quot;a_key&quot;: &quot;A String&quot;,
5857 },
5858 },
5859 },
5860 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
5861 # message that was returned, such as `NOT FOUND`.
5862 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
5863 # status code that was returned. For example, a `404` means the
5864 # resource was not found.
5865 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
5866 # defined by the server.
5867 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
5868 # This value is inRFC3339
5869 # text format.
5870 &quot;instancesBulkInsertOperationMetadata&quot;: {
5871 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
5872 # Example key: zones/us-central1-a
5873 &quot;a_key&quot;: {
5874 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
5875 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
5876 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
5877 # error.
5878 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
5879 # if the flow is rolling forward or rolling back.
5880 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
5881 },
5882 },
5883 },
5884 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
5885 # Operation resources.
5886 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
5887 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
5888 # group of operations results from a `bulkInsert` API request.
5889 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
5890 # `update`, or `delete`, and so on.
5891 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
5892 # There is no requirement that this be linear or support any granularity of
5893 # operations. This should not be used to guess when the operation will be
5894 # complete. This number should monotonically increase as the operation
5895 # progresses.
5896 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
5897 # applicable when performing regional operations.
5898 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
5899 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
5900 # this field will contain information on all underlying zonal actions and
5901 # their state.
5902 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
5903 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
5904 # Example key: zones/us-central1-a
5905 &quot;a_key&quot;: {
5906 &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
5907 # populated.
5908 # different programming environments, including REST APIs and RPC APIs. It is
5909 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
5910 # three pieces of data: error code, error message, and error details.
5911 #
5912 # You can find out more about this error model and how to work with it in the
5913 # [API Design Guide](https://cloud.google.com/apis/design/errors).
5914 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
5915 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
5916 # message types for APIs to use.
5917 {
5918 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
5919 },
5920 ],
5921 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
5922 # user-facing error message should be localized and sent in the
5923 # google.rpc.Status.details field, or localized by the client.
5924 },
5925 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
5926 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
5927 },
5928 },
5929 },
5930 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
5931 # This value is inRFC3339
5932 # text format.
5933 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
5934 # following:
5935 # `PENDING`, `RUNNING`, or `DONE`.
5936 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
5937 # operation.
5938 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
5939 # of the target resource.
5940 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
5941 # operations related to creating a snapshot, this points to the disk
5942 # that the snapshot was created from.
5943 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
5944 # `[email protected]` or
5945 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
5946 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
5947 # operation, this field will be populated.
5948 {
5949 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
5950 # Engine returns NO_RESULTS_ON_PAGE if there
5951 # are no results in the response.
5952 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
5953 # value format. For example:
5954 #
5955 # &quot;data&quot;: [
5956 # {
5957 # &quot;key&quot;: &quot;scope&quot;,
5958 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
5959 # }
5960 {
5961 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
5962 # returned. For example, for warnings where there are no results in a list
5963 # request for a particular zone, this key might be scope and
5964 # the key value might be the zone name. Other examples might be a key
5965 # indicating a deprecated resource and a suggested replacement, or a
5966 # warning about invalid network settings (for example, if an instance
5967 # attempts to perform IP forwarding but is not enabled for IP forwarding).
5968 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
5969 },
5970 ],
5971 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
5972 },
5973 ],
5974 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
5975 # applicable when performing per-zone operations.
5976 }</pre>
5977 </div>
5978
5979 <div class="method">
5980 <code class="details" id="removeRule">removeRule(project, region, firewallPolicy, priority=None, requestId=None, x__xgafv=None)</code>
5981 <pre>Deletes a rule of the specified priority.
5982
5983 Args:
5984 project: string, Project ID for this request. (required)
5985 region: string, Name of the region scoping this request. (required)
5986 firewallPolicy: string, Name of the firewall policy to update. (required)
5987 priority: integer, The priority of the rule to remove from the firewall policy.
5988 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
5989 that if you must retry your request, the server will know to ignore the
5990 request if it has already been completed.
5991
5992 For example, consider a situation where you make an initial request and
5993 the request times out. If you make the request again with the same
5994 request ID, the server can check if original operation with the same
5995 request ID was received, and if so, will ignore the second request. This
5996 prevents clients from accidentally creating duplicate commitments.
5997
5998 The request ID must be
5999 a valid UUID with the exception that zero UUID is not supported
6000 (00000000-0000-0000-0000-000000000000).
6001 x__xgafv: string, V1 error format.
6002 Allowed values
6003 1 - v1 error format
6004 2 - v2 error format
6005
6006 Returns:
6007 An object of the form:
6008
6009 { # Represents an Operation resource.
6010 #
6011 # Google Compute Engine has three Operation resources:
6012 #
6013 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
6014 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
6015 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
6016 #
6017 # You can use an operation resource to manage asynchronous API requests.
6018 # For more information, readHandling
6019 # API responses.
6020 #
6021 # Operations can be global, regional or zonal.
6022 #
6023 # - For global operations, use the `globalOperations`
6024 # resource.
6025 # - For regional operations, use the
6026 # `regionOperations` resource.
6027 # - For zonal operations, use
6028 # the `zoneOperations` resource.
6029 #
6030 #
6031 #
6032 # For more information, read
6033 # Global, Regional, and Zonal Resources.
6034 #
6035 # Note that completed Operation resources have a limited
6036 # retention period.
6037 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
6038 # Not present otherwise.
6039 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
6040 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
6041 # set when the operation is created.
6042 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
6043 # text format.
6044 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
6045 # this field will be populated.
6046 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
6047 # operation.
6048 {
6049 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
6050 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
6051 # details. There is a set of defined message types to use for providing
6052 # details.The syntax depends on the error code. For example,
6053 # QuotaExceededInfo will have details when the error code is
6054 # QUOTA_EXCEEDED.
6055 {
6056 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
6057 #
6058 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
6059 # is not enabled:
6060 #
6061 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
6062 # &quot;domain&quot;: &quot;googleapis.com&quot;
6063 # &quot;metadata&quot;: {
6064 # &quot;resource&quot;: &quot;projects/123&quot;,
6065 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
6066 # }
6067 # }
6068 #
6069 # This response indicates that the pubsub.googleapis.com API is not enabled.
6070 #
6071 # Example of an error that is returned when attempting to create a Spanner
6072 # instance in a region that is out of stock:
6073 #
6074 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
6075 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
6076 # &quot;metadata&quot;: {
6077 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
6078 # }
6079 # }
6080 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
6081 # is typically the registered service name of the tool or product that
6082 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
6083 # generated by some common infrastructure, the error domain must be a
6084 # globally unique value that identifies the infrastructure. For Google API
6085 # infrastructure, the error domain is &quot;googleapis.com&quot;.
6086 &quot;metadatas&quot;: { # Additional structured details about this error.
6087 #
6088 # Keys must match a regular expression of `a-z+` but should
6089 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
6090 # length. When identifying the current value of an exceeded limit, the units
6091 # should be contained in the key, not the value. For example, rather than
6092 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
6093 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
6094 # instances that can be created in a single (batch) request.
6095 &quot;a_key&quot;: &quot;A String&quot;,
6096 },
6097 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
6098 # proximate cause of the error. Error reasons are unique within a particular
6099 # domain of errors. This should be at most 63 characters and match a
6100 # regular expression of `A-Z+[A-Z0-9]`, which represents
6101 # UPPER_SNAKE_CASE.
6102 },
6103 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
6104 #
6105 # For example, if a quota check failed with an error indicating the calling
6106 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
6107 # directly to the right place in the developer console to flip the bit.
6108 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
6109 { # Describes a URL link.
6110 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
6111 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
6112 },
6113 ],
6114 },
6115 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
6116 # which can be attached to an RPC error.
6117 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
6118 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
6119 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
6120 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
6121 },
6122 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
6123 &quot;dimensions&quot;: { # The map holding related quota dimensions.
6124 &quot;a_key&quot;: &quot;A String&quot;,
6125 },
6126 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
6127 # type or metric.
6128 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
6129 # or metric.
6130 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
6131 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
6132 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
6133 },
6134 },
6135 ],
6136 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
6137 # This property is optional.
6138 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
6139 },
6140 ],
6141 },
6142 &quot;getVersionOperationMetadata&quot;: {
6143 &quot;inlineSbomInfo&quot;: {
6144 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
6145 # appropriate identifiers.
6146 &quot;a_key&quot;: &quot;A String&quot;,
6147 },
6148 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
6149 # identifiers.
6150 &quot;a_key&quot;: &quot;A String&quot;,
6151 },
6152 },
6153 },
6154 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
6155 # message that was returned, such as `NOT FOUND`.
6156 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
6157 # status code that was returned. For example, a `404` means the
6158 # resource was not found.
6159 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
6160 # defined by the server.
6161 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
6162 # This value is inRFC3339
6163 # text format.
6164 &quot;instancesBulkInsertOperationMetadata&quot;: {
6165 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
6166 # Example key: zones/us-central1-a
6167 &quot;a_key&quot;: {
6168 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
6169 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
6170 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
6171 # error.
6172 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
6173 # if the flow is rolling forward or rolling back.
6174 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
6175 },
6176 },
6177 },
6178 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
6179 # Operation resources.
6180 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
6181 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
6182 # group of operations results from a `bulkInsert` API request.
6183 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
6184 # `update`, or `delete`, and so on.
6185 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
6186 # There is no requirement that this be linear or support any granularity of
6187 # operations. This should not be used to guess when the operation will be
6188 # complete. This number should monotonically increase as the operation
6189 # progresses.
6190 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
6191 # applicable when performing regional operations.
6192 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
6193 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
6194 # this field will contain information on all underlying zonal actions and
6195 # their state.
6196 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
6197 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
6198 # Example key: zones/us-central1-a
6199 &quot;a_key&quot;: {
6200 &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
6201 # populated.
6202 # different programming environments, including REST APIs and RPC APIs. It is
6203 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
6204 # three pieces of data: error code, error message, and error details.
6205 #
6206 # You can find out more about this error model and how to work with it in the
6207 # [API Design Guide](https://cloud.google.com/apis/design/errors).
6208 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
6209 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
6210 # message types for APIs to use.
6211 {
6212 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
6213 },
6214 ],
6215 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
6216 # user-facing error message should be localized and sent in the
6217 # google.rpc.Status.details field, or localized by the client.
6218 },
6219 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
6220 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
6221 },
6222 },
6223 },
6224 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
6225 # This value is inRFC3339
6226 # text format.
6227 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
6228 # following:
6229 # `PENDING`, `RUNNING`, or `DONE`.
6230 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
6231 # operation.
6232 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
6233 # of the target resource.
6234 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
6235 # operations related to creating a snapshot, this points to the disk
6236 # that the snapshot was created from.
6237 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
6238 # `[email protected]` or
6239 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
6240 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
6241 # operation, this field will be populated.
6242 {
6243 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
6244 # Engine returns NO_RESULTS_ON_PAGE if there
6245 # are no results in the response.
6246 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
6247 # value format. For example:
6248 #
6249 # &quot;data&quot;: [
6250 # {
6251 # &quot;key&quot;: &quot;scope&quot;,
6252 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
6253 # }
6254 {
6255 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
6256 # returned. For example, for warnings where there are no results in a list
6257 # request for a particular zone, this key might be scope and
6258 # the key value might be the zone name. Other examples might be a key
6259 # indicating a deprecated resource and a suggested replacement, or a
6260 # warning about invalid network settings (for example, if an instance
6261 # attempts to perform IP forwarding but is not enabled for IP forwarding).
6262 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
6263 },
6264 ],
6265 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
6266 },
6267 ],
6268 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
6269 # applicable when performing per-zone operations.
6270 }</pre>
6271 </div>
6272
6273 <div class="method">
6274 <code class="details" id="setIamPolicy">setIamPolicy(project, region, resource, body=None, x__xgafv=None)</code>
6275 <pre>Sets the access control policy on the specified resource.
6276 Replaces any existing policy.
6277
6278 Args:
6279 project: string, Project ID for this request. (required)
6280 region: string, The name of the region for this request. (required)
6281 resource: string, Name or id of the resource for this request. (required)
6282 body: object, The request body.
6283 The object takes the form of:
6284
6285 {
6286 &quot;bindings&quot;: [ # Flatten Policy to create a backwacd compatible wire-format.
6287 # Deprecated. Use &#x27;policy&#x27; to specify bindings.
6288 { # Associates `members`, or principals, with a `role`.
6289 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
6290 #
6291 # If the condition evaluates to `true`, then this binding applies to the
6292 # current request.
6293 #
6294 # If the condition evaluates to `false`, then this binding does not apply to
6295 # the current request. However, a different role binding might grant the same
6296 # role to one or more of the principals in this binding.
6297 #
6298 # To learn which resources support conditions in their IAM policies, see the
6299 # [IAM
6300 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
6301 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
6302 # are documented at https://github.com/google/cel-spec.
6303 #
6304 # Example (Comparison):
6305 #
6306 # title: &quot;Summary size limit&quot;
6307 # description: &quot;Determines if a summary is less than 100 chars&quot;
6308 # expression: &quot;document.summary.size() &lt; 100&quot;
6309 #
6310 # Example (Equality):
6311 #
6312 # title: &quot;Requestor is owner&quot;
6313 # description: &quot;Determines if requestor is the document owner&quot;
6314 # expression: &quot;document.owner == request.auth.claims.email&quot;
6315 #
6316 # Example (Logic):
6317 #
6318 # title: &quot;Public documents&quot;
6319 # description: &quot;Determine whether the document should be publicly visible&quot;
6320 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
6321 #
6322 # Example (Data Manipulation):
6323 #
6324 # title: &quot;Notification string&quot;
6325 # description: &quot;Create a notification string with a timestamp.&quot;
6326 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
6327 #
6328 # The exact variables and functions that may be referenced within an expression
6329 # are determined by the service that evaluates it. See the service
6330 # documentation for additional information.
6331 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
6332 # describes the expression, e.g. when hovered over it in a UI.
6333 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
6334 # syntax.
6335 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
6336 # reporting, e.g. a file name and a position in the file.
6337 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
6338 # its purpose. This can be used e.g. in UIs which allow to enter the
6339 # expression.
6340 },
6341 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
6342 # `members` can have the following values:
6343 #
6344 # * `allUsers`: A special identifier that represents anyone who is
6345 # on the internet; with or without a Google account.
6346 #
6347 # * `allAuthenticatedUsers`: A special identifier that represents anyone
6348 # who is authenticated with a Google account or a service account.
6349 # Does not include identities that come from external identity providers
6350 # (IdPs) through identity federation.
6351 #
6352 # * `user:{emailid}`: An email address that represents a specific Google
6353 # account. For example, `[email protected]` .
6354 #
6355 #
6356 # * `serviceAccount:{emailid}`: An email address that represents a Google
6357 # service account. For example,
6358 # `[email protected]`.
6359 #
6360 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
6361 # identifier for a
6362 # [Kubernetes service
6363 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
6364 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
6365 #
6366 # * `group:{emailid}`: An email address that represents a Google group.
6367 # For example, `[email protected]`.
6368 #
6369 #
6370 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
6371 # users of that domain. For example, `google.com` or `example.com`.
6372 #
6373 #
6374 #
6375 #
6376 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
6377 # A single identity in a workforce identity pool.
6378 #
6379 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
6380 # All workforce identities in a group.
6381 #
6382 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
6383 # All workforce identities with a specific attribute value.
6384 #
6385 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
6386 # All identities in a workforce identity pool.
6387 #
6388 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
6389 # A single identity in a workload identity pool.
6390 #
6391 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
6392 # A workload identity pool group.
6393 #
6394 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
6395 # All identities in a workload identity pool with a certain attribute.
6396 #
6397 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
6398 # All identities in a workload identity pool.
6399 #
6400 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
6401 # identifier) representing a user that has been recently deleted. For
6402 # example, `[email protected]?uid=123456789012345678901`. If the user is
6403 # recovered, this value reverts to `user:{emailid}` and the recovered user
6404 # retains the role in the binding.
6405 #
6406 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
6407 # unique identifier) representing a service account that has been recently
6408 # deleted. For example,
6409 # `[email protected]?uid=123456789012345678901`.
6410 # If the service account is undeleted, this value reverts to
6411 # `serviceAccount:{emailid}` and the undeleted service account retains the
6412 # role in the binding.
6413 #
6414 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
6415 # identifier) representing a Google group that has been recently
6416 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
6417 # the group is recovered, this value reverts to `group:{emailid}` and the
6418 # recovered group retains the role in the binding.
6419 #
6420 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
6421 # Deleted single identity in a workforce identity pool. For example,
6422 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
6423 &quot;A String&quot;,
6424 ],
6425 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
6426 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
6427 #
6428 # For an overview of the IAM roles and permissions, see the
6429 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
6430 # a list of the available pre-defined roles, see
6431 # [here](https://cloud.google.com/iam/docs/understanding-roles).
6432 },
6433 ],
6434 &quot;etag&quot;: &quot;A String&quot;, # Flatten Policy to create a backward compatible wire-format.
6435 # Deprecated. Use &#x27;policy&#x27; to specify the etag.
6436 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the &#x27;resource&#x27;. The size of
6437 # the policy is limited to a few 10s of KB. An empty policy is in general a
6438 # valid policy but certain services (like Projects) might reject them.
6439 # controls for Google Cloud resources.
6440 #
6441 #
6442 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
6443 # `members`, or principals, to a single `role`. Principals can be user
6444 # accounts, service accounts, Google groups, and domains (such as G Suite). A
6445 # `role` is a named list of permissions; each `role` can be an IAM predefined
6446 # role or a user-created custom role.
6447 #
6448 # For some types of Google Cloud resources, a `binding` can also specify a
6449 # `condition`, which is a logical expression that allows access to a resource
6450 # only if the expression evaluates to `true`. A condition can add constraints
6451 # based on attributes of the request, the resource, or both. To learn which
6452 # resources support conditions in their IAM policies, see the
6453 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
6454 #
6455 # **JSON example:**
6456 #
6457 # ```
6458 # {
6459 # &quot;bindings&quot;: [
6460 # {
6461 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
6462 # &quot;members&quot;: [
6463 # &quot;user:[email protected]&quot;,
6464 # &quot;group:[email protected]&quot;,
6465 # &quot;domain:google.com&quot;,
6466 # &quot;serviceAccount:[email protected]&quot;
6467 # ]
6468 # },
6469 # {
6470 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
6471 # &quot;members&quot;: [
6472 # &quot;user:[email protected]&quot;
6473 # ],
6474 # &quot;condition&quot;: {
6475 # &quot;title&quot;: &quot;expirable access&quot;,
6476 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
6477 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
6478 # }
6479 # }
6480 # ],
6481 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
6482 # &quot;version&quot;: 3
6483 # }
6484 # ```
6485 #
6486 # **YAML example:**
6487 #
6488 # ```
6489 # bindings:
6490 # - members:
6491 # - user:[email protected]
6492 # - group:[email protected]
6493 # - domain:google.com
6494 # - serviceAccount:[email protected]
6495 # role: roles/resourcemanager.organizationAdmin
6496 # - members:
6497 # - user:[email protected]
6498 # role: roles/resourcemanager.organizationViewer
6499 # condition:
6500 # title: expirable access
6501 # description: Does not grant access after Sep 2020
6502 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
6503 # etag: BwWWja0YfJA=
6504 # version: 3
6505 # ```
6506 #
6507 # For a description of IAM and its features, see the
6508 # [IAM documentation](https://cloud.google.com/iam/docs/).
6509 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
6510 { # Specifies the audit configuration for a service.
6511 # The configuration determines which permission types are logged, and what
6512 # identities, if any, are exempted from logging.
6513 # An AuditConfig must have one or more AuditLogConfigs.
6514 #
6515 # If there are AuditConfigs for both `allServices` and a specific service,
6516 # the union of the two AuditConfigs is used for that service: the log_types
6517 # specified in each AuditConfig are enabled, and the exempted_members in each
6518 # AuditLogConfig are exempted.
6519 #
6520 # Example Policy with multiple AuditConfigs:
6521 #
6522 # {
6523 # &quot;audit_configs&quot;: [
6524 # {
6525 # &quot;service&quot;: &quot;allServices&quot;,
6526 # &quot;audit_log_configs&quot;: [
6527 # {
6528 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
6529 # &quot;exempted_members&quot;: [
6530 # &quot;user:[email protected]&quot;
6531 # ]
6532 # },
6533 # {
6534 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
6535 # },
6536 # {
6537 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
6538 # }
6539 # ]
6540 # },
6541 # {
6542 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
6543 # &quot;audit_log_configs&quot;: [
6544 # {
6545 # &quot;log_type&quot;: &quot;DATA_READ&quot;
6546 # },
6547 # {
6548 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
6549 # &quot;exempted_members&quot;: [
6550 # &quot;user:[email protected]&quot;
6551 # ]
6552 # }
6553 # ]
6554 # }
6555 # ]
6556 # }
6557 #
6558 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
6559 # logging. It also exempts `[email protected]` from DATA_READ logging, and
6560 # `[email protected]` from DATA_WRITE logging.
6561 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
6562 { # Provides the configuration for logging a type of permissions.
6563 # Example:
6564 #
6565 # {
6566 # &quot;audit_log_configs&quot;: [
6567 # {
6568 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
6569 # &quot;exempted_members&quot;: [
6570 # &quot;user:[email protected]&quot;
6571 # ]
6572 # },
6573 # {
6574 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
6575 # }
6576 # ]
6577 # }
6578 #
6579 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
6580 # [email protected] from DATA_READ logging.
6581 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
6582 # permission.
6583 # Follows the same format of Binding.members.
6584 &quot;A String&quot;,
6585 ],
6586 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
6587 },
6588 ],
6589 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
6590 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
6591 # `allServices` is a special value that covers all services.
6592 },
6593 ],
6594 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
6595 # may specify a `condition` that determines how and when the `bindings` are
6596 # applied. Each of the `bindings` must contain at least one principal.
6597 #
6598 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
6599 # of these principals can be Google groups. Each occurrence of a principal
6600 # counts towards these limits. For example, if the `bindings` grant 50
6601 # different roles to `user:[email protected]`, and not to any other
6602 # principal, then you can add another 1,450 principals to the `bindings` in
6603 # the `Policy`.
6604 { # Associates `members`, or principals, with a `role`.
6605 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
6606 #
6607 # If the condition evaluates to `true`, then this binding applies to the
6608 # current request.
6609 #
6610 # If the condition evaluates to `false`, then this binding does not apply to
6611 # the current request. However, a different role binding might grant the same
6612 # role to one or more of the principals in this binding.
6613 #
6614 # To learn which resources support conditions in their IAM policies, see the
6615 # [IAM
6616 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
6617 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
6618 # are documented at https://github.com/google/cel-spec.
6619 #
6620 # Example (Comparison):
6621 #
6622 # title: &quot;Summary size limit&quot;
6623 # description: &quot;Determines if a summary is less than 100 chars&quot;
6624 # expression: &quot;document.summary.size() &lt; 100&quot;
6625 #
6626 # Example (Equality):
6627 #
6628 # title: &quot;Requestor is owner&quot;
6629 # description: &quot;Determines if requestor is the document owner&quot;
6630 # expression: &quot;document.owner == request.auth.claims.email&quot;
6631 #
6632 # Example (Logic):
6633 #
6634 # title: &quot;Public documents&quot;
6635 # description: &quot;Determine whether the document should be publicly visible&quot;
6636 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
6637 #
6638 # Example (Data Manipulation):
6639 #
6640 # title: &quot;Notification string&quot;
6641 # description: &quot;Create a notification string with a timestamp.&quot;
6642 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
6643 #
6644 # The exact variables and functions that may be referenced within an expression
6645 # are determined by the service that evaluates it. See the service
6646 # documentation for additional information.
6647 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
6648 # describes the expression, e.g. when hovered over it in a UI.
6649 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
6650 # syntax.
6651 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
6652 # reporting, e.g. a file name and a position in the file.
6653 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
6654 # its purpose. This can be used e.g. in UIs which allow to enter the
6655 # expression.
6656 },
6657 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
6658 # `members` can have the following values:
6659 #
6660 # * `allUsers`: A special identifier that represents anyone who is
6661 # on the internet; with or without a Google account.
6662 #
6663 # * `allAuthenticatedUsers`: A special identifier that represents anyone
6664 # who is authenticated with a Google account or a service account.
6665 # Does not include identities that come from external identity providers
6666 # (IdPs) through identity federation.
6667 #
6668 # * `user:{emailid}`: An email address that represents a specific Google
6669 # account. For example, `[email protected]` .
6670 #
6671 #
6672 # * `serviceAccount:{emailid}`: An email address that represents a Google
6673 # service account. For example,
6674 # `[email protected]`.
6675 #
6676 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
6677 # identifier for a
6678 # [Kubernetes service
6679 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
6680 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
6681 #
6682 # * `group:{emailid}`: An email address that represents a Google group.
6683 # For example, `[email protected]`.
6684 #
6685 #
6686 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
6687 # users of that domain. For example, `google.com` or `example.com`.
6688 #
6689 #
6690 #
6691 #
6692 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
6693 # A single identity in a workforce identity pool.
6694 #
6695 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
6696 # All workforce identities in a group.
6697 #
6698 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
6699 # All workforce identities with a specific attribute value.
6700 #
6701 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
6702 # All identities in a workforce identity pool.
6703 #
6704 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
6705 # A single identity in a workload identity pool.
6706 #
6707 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
6708 # A workload identity pool group.
6709 #
6710 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
6711 # All identities in a workload identity pool with a certain attribute.
6712 #
6713 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
6714 # All identities in a workload identity pool.
6715 #
6716 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
6717 # identifier) representing a user that has been recently deleted. For
6718 # example, `[email protected]?uid=123456789012345678901`. If the user is
6719 # recovered, this value reverts to `user:{emailid}` and the recovered user
6720 # retains the role in the binding.
6721 #
6722 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
6723 # unique identifier) representing a service account that has been recently
6724 # deleted. For example,
6725 # `[email protected]?uid=123456789012345678901`.
6726 # If the service account is undeleted, this value reverts to
6727 # `serviceAccount:{emailid}` and the undeleted service account retains the
6728 # role in the binding.
6729 #
6730 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
6731 # identifier) representing a Google group that has been recently
6732 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
6733 # the group is recovered, this value reverts to `group:{emailid}` and the
6734 # recovered group retains the role in the binding.
6735 #
6736 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
6737 # Deleted single identity in a workforce identity pool. For example,
6738 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
6739 &quot;A String&quot;,
6740 ],
6741 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
6742 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
6743 #
6744 # For an overview of the IAM roles and permissions, see the
6745 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
6746 # a list of the available pre-defined roles, see
6747 # [here](https://cloud.google.com/iam/docs/understanding-roles).
6748 },
6749 ],
6750 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
6751 # prevent simultaneous updates of a policy from overwriting each other.
6752 # It is strongly suggested that systems make use of the `etag` in the
6753 # read-modify-write cycle to perform policy updates in order to avoid race
6754 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
6755 # systems are expected to put that etag in the request to `setIamPolicy` to
6756 # ensure that their change will be applied to the same version of the policy.
6757 #
6758 # **Important:** If you use IAM Conditions, you must include the `etag` field
6759 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
6760 # you to overwrite a version `3` policy with a version `1` policy, and all of
6761 # the conditions in the version `3` policy are lost.
6762 &quot;version&quot;: 42, # Specifies the format of the policy.
6763 #
6764 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
6765 # are rejected.
6766 #
6767 # Any operation that affects conditional role bindings must specify version
6768 # `3`. This requirement applies to the following operations:
6769 #
6770 # * Getting a policy that includes a conditional role binding
6771 # * Adding a conditional role binding to a policy
6772 # * Changing a conditional role binding in a policy
6773 # * Removing any role binding, with or without a condition, from a policy
6774 # that includes conditions
6775 #
6776 # **Important:** If you use IAM Conditions, you must include the `etag` field
6777 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
6778 # you to overwrite a version `3` policy with a version `1` policy, and all of
6779 # the conditions in the version `3` policy are lost.
6780 #
6781 # If a policy does not include any conditions, operations on that policy may
6782 # specify any valid version or leave the field unset.
6783 #
6784 # To learn which resources support conditions in their IAM policies, see the
6785 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
6786 },
6787 }
6788
6789 x__xgafv: string, V1 error format.
6790 Allowed values
6791 1 - v1 error format
6792 2 - v2 error format
6793
6794 Returns:
6795 An object of the form:
6796
6797 { # An Identity and Access Management (IAM) policy, which specifies access
6798 # controls for Google Cloud resources.
6799 #
6800 #
6801 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
6802 # `members`, or principals, to a single `role`. Principals can be user
6803 # accounts, service accounts, Google groups, and domains (such as G Suite). A
6804 # `role` is a named list of permissions; each `role` can be an IAM predefined
6805 # role or a user-created custom role.
6806 #
6807 # For some types of Google Cloud resources, a `binding` can also specify a
6808 # `condition`, which is a logical expression that allows access to a resource
6809 # only if the expression evaluates to `true`. A condition can add constraints
6810 # based on attributes of the request, the resource, or both. To learn which
6811 # resources support conditions in their IAM policies, see the
6812 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
6813 #
6814 # **JSON example:**
6815 #
6816 # ```
6817 # {
6818 # &quot;bindings&quot;: [
6819 # {
6820 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
6821 # &quot;members&quot;: [
6822 # &quot;user:[email protected]&quot;,
6823 # &quot;group:[email protected]&quot;,
6824 # &quot;domain:google.com&quot;,
6825 # &quot;serviceAccount:[email protected]&quot;
6826 # ]
6827 # },
6828 # {
6829 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
6830 # &quot;members&quot;: [
6831 # &quot;user:[email protected]&quot;
6832 # ],
6833 # &quot;condition&quot;: {
6834 # &quot;title&quot;: &quot;expirable access&quot;,
6835 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
6836 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
6837 # }
6838 # }
6839 # ],
6840 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
6841 # &quot;version&quot;: 3
6842 # }
6843 # ```
6844 #
6845 # **YAML example:**
6846 #
6847 # ```
6848 # bindings:
6849 # - members:
6850 # - user:[email protected]
6851 # - group:[email protected]
6852 # - domain:google.com
6853 # - serviceAccount:[email protected]
6854 # role: roles/resourcemanager.organizationAdmin
6855 # - members:
6856 # - user:[email protected]
6857 # role: roles/resourcemanager.organizationViewer
6858 # condition:
6859 # title: expirable access
6860 # description: Does not grant access after Sep 2020
6861 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
6862 # etag: BwWWja0YfJA=
6863 # version: 3
6864 # ```
6865 #
6866 # For a description of IAM and its features, see the
6867 # [IAM documentation](https://cloud.google.com/iam/docs/).
6868 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
6869 { # Specifies the audit configuration for a service.
6870 # The configuration determines which permission types are logged, and what
6871 # identities, if any, are exempted from logging.
6872 # An AuditConfig must have one or more AuditLogConfigs.
6873 #
6874 # If there are AuditConfigs for both `allServices` and a specific service,
6875 # the union of the two AuditConfigs is used for that service: the log_types
6876 # specified in each AuditConfig are enabled, and the exempted_members in each
6877 # AuditLogConfig are exempted.
6878 #
6879 # Example Policy with multiple AuditConfigs:
6880 #
6881 # {
6882 # &quot;audit_configs&quot;: [
6883 # {
6884 # &quot;service&quot;: &quot;allServices&quot;,
6885 # &quot;audit_log_configs&quot;: [
6886 # {
6887 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
6888 # &quot;exempted_members&quot;: [
6889 # &quot;user:[email protected]&quot;
6890 # ]
6891 # },
6892 # {
6893 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
6894 # },
6895 # {
6896 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
6897 # }
6898 # ]
6899 # },
6900 # {
6901 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
6902 # &quot;audit_log_configs&quot;: [
6903 # {
6904 # &quot;log_type&quot;: &quot;DATA_READ&quot;
6905 # },
6906 # {
6907 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
6908 # &quot;exempted_members&quot;: [
6909 # &quot;user:[email protected]&quot;
6910 # ]
6911 # }
6912 # ]
6913 # }
6914 # ]
6915 # }
6916 #
6917 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
6918 # logging. It also exempts `[email protected]` from DATA_READ logging, and
6919 # `[email protected]` from DATA_WRITE logging.
6920 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
6921 { # Provides the configuration for logging a type of permissions.
6922 # Example:
6923 #
6924 # {
6925 # &quot;audit_log_configs&quot;: [
6926 # {
6927 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
6928 # &quot;exempted_members&quot;: [
6929 # &quot;user:[email protected]&quot;
6930 # ]
6931 # },
6932 # {
6933 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
6934 # }
6935 # ]
6936 # }
6937 #
6938 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
6939 # [email protected] from DATA_READ logging.
6940 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
6941 # permission.
6942 # Follows the same format of Binding.members.
6943 &quot;A String&quot;,
6944 ],
6945 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
6946 },
6947 ],
6948 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
6949 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
6950 # `allServices` is a special value that covers all services.
6951 },
6952 ],
6953 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
6954 # may specify a `condition` that determines how and when the `bindings` are
6955 # applied. Each of the `bindings` must contain at least one principal.
6956 #
6957 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
6958 # of these principals can be Google groups. Each occurrence of a principal
6959 # counts towards these limits. For example, if the `bindings` grant 50
6960 # different roles to `user:[email protected]`, and not to any other
6961 # principal, then you can add another 1,450 principals to the `bindings` in
6962 # the `Policy`.
6963 { # Associates `members`, or principals, with a `role`.
6964 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
6965 #
6966 # If the condition evaluates to `true`, then this binding applies to the
6967 # current request.
6968 #
6969 # If the condition evaluates to `false`, then this binding does not apply to
6970 # the current request. However, a different role binding might grant the same
6971 # role to one or more of the principals in this binding.
6972 #
6973 # To learn which resources support conditions in their IAM policies, see the
6974 # [IAM
6975 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
6976 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
6977 # are documented at https://github.com/google/cel-spec.
6978 #
6979 # Example (Comparison):
6980 #
6981 # title: &quot;Summary size limit&quot;
6982 # description: &quot;Determines if a summary is less than 100 chars&quot;
6983 # expression: &quot;document.summary.size() &lt; 100&quot;
6984 #
6985 # Example (Equality):
6986 #
6987 # title: &quot;Requestor is owner&quot;
6988 # description: &quot;Determines if requestor is the document owner&quot;
6989 # expression: &quot;document.owner == request.auth.claims.email&quot;
6990 #
6991 # Example (Logic):
6992 #
6993 # title: &quot;Public documents&quot;
6994 # description: &quot;Determine whether the document should be publicly visible&quot;
6995 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
6996 #
6997 # Example (Data Manipulation):
6998 #
6999 # title: &quot;Notification string&quot;
7000 # description: &quot;Create a notification string with a timestamp.&quot;
7001 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
7002 #
7003 # The exact variables and functions that may be referenced within an expression
7004 # are determined by the service that evaluates it. See the service
7005 # documentation for additional information.
7006 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
7007 # describes the expression, e.g. when hovered over it in a UI.
7008 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
7009 # syntax.
7010 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
7011 # reporting, e.g. a file name and a position in the file.
7012 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
7013 # its purpose. This can be used e.g. in UIs which allow to enter the
7014 # expression.
7015 },
7016 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
7017 # `members` can have the following values:
7018 #
7019 # * `allUsers`: A special identifier that represents anyone who is
7020 # on the internet; with or without a Google account.
7021 #
7022 # * `allAuthenticatedUsers`: A special identifier that represents anyone
7023 # who is authenticated with a Google account or a service account.
7024 # Does not include identities that come from external identity providers
7025 # (IdPs) through identity federation.
7026 #
7027 # * `user:{emailid}`: An email address that represents a specific Google
7028 # account. For example, `[email protected]` .
7029 #
7030 #
7031 # * `serviceAccount:{emailid}`: An email address that represents a Google
7032 # service account. For example,
7033 # `[email protected]`.
7034 #
7035 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
7036 # identifier for a
7037 # [Kubernetes service
7038 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
7039 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
7040 #
7041 # * `group:{emailid}`: An email address that represents a Google group.
7042 # For example, `[email protected]`.
7043 #
7044 #
7045 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
7046 # users of that domain. For example, `google.com` or `example.com`.
7047 #
7048 #
7049 #
7050 #
7051 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
7052 # A single identity in a workforce identity pool.
7053 #
7054 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
7055 # All workforce identities in a group.
7056 #
7057 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
7058 # All workforce identities with a specific attribute value.
7059 #
7060 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
7061 # All identities in a workforce identity pool.
7062 #
7063 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
7064 # A single identity in a workload identity pool.
7065 #
7066 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
7067 # A workload identity pool group.
7068 #
7069 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
7070 # All identities in a workload identity pool with a certain attribute.
7071 #
7072 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
7073 # All identities in a workload identity pool.
7074 #
7075 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
7076 # identifier) representing a user that has been recently deleted. For
7077 # example, `[email protected]?uid=123456789012345678901`. If the user is
7078 # recovered, this value reverts to `user:{emailid}` and the recovered user
7079 # retains the role in the binding.
7080 #
7081 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
7082 # unique identifier) representing a service account that has been recently
7083 # deleted. For example,
7084 # `[email protected]?uid=123456789012345678901`.
7085 # If the service account is undeleted, this value reverts to
7086 # `serviceAccount:{emailid}` and the undeleted service account retains the
7087 # role in the binding.
7088 #
7089 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
7090 # identifier) representing a Google group that has been recently
7091 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
7092 # the group is recovered, this value reverts to `group:{emailid}` and the
7093 # recovered group retains the role in the binding.
7094 #
7095 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
7096 # Deleted single identity in a workforce identity pool. For example,
7097 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
7098 &quot;A String&quot;,
7099 ],
7100 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
7101 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
7102 #
7103 # For an overview of the IAM roles and permissions, see the
7104 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
7105 # a list of the available pre-defined roles, see
7106 # [here](https://cloud.google.com/iam/docs/understanding-roles).
7107 },
7108 ],
7109 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
7110 # prevent simultaneous updates of a policy from overwriting each other.
7111 # It is strongly suggested that systems make use of the `etag` in the
7112 # read-modify-write cycle to perform policy updates in order to avoid race
7113 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
7114 # systems are expected to put that etag in the request to `setIamPolicy` to
7115 # ensure that their change will be applied to the same version of the policy.
7116 #
7117 # **Important:** If you use IAM Conditions, you must include the `etag` field
7118 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
7119 # you to overwrite a version `3` policy with a version `1` policy, and all of
7120 # the conditions in the version `3` policy are lost.
7121 &quot;version&quot;: 42, # Specifies the format of the policy.
7122 #
7123 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
7124 # are rejected.
7125 #
7126 # Any operation that affects conditional role bindings must specify version
7127 # `3`. This requirement applies to the following operations:
7128 #
7129 # * Getting a policy that includes a conditional role binding
7130 # * Adding a conditional role binding to a policy
7131 # * Changing a conditional role binding in a policy
7132 # * Removing any role binding, with or without a condition, from a policy
7133 # that includes conditions
7134 #
7135 # **Important:** If you use IAM Conditions, you must include the `etag` field
7136 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
7137 # you to overwrite a version `3` policy with a version `1` policy, and all of
7138 # the conditions in the version `3` policy are lost.
7139 #
7140 # If a policy does not include any conditions, operations on that policy may
7141 # specify any valid version or leave the field unset.
7142 #
7143 # To learn which resources support conditions in their IAM policies, see the
7144 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7145 }</pre>
7146 </div>
7147
7148 <div class="method">
7149 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</code>
7150 <pre>Returns permissions that a caller has on the specified resource.
7151
7152 Args:
7153 project: string, Project ID for this request. (required)
7154 region: string, The name of the region for this request. (required)
7155 resource: string, Name or id of the resource for this request. (required)
7156 body: object, The request body.
7157 The object takes the form of:
7158
7159 {
7160 &quot;permissions&quot;: [ # The set of permissions to check for the &#x27;resource&#x27;. Permissions with
7161 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed.
7162 &quot;A String&quot;,
7163 ],
7164 }
7165
7166 x__xgafv: string, V1 error format.
7167 Allowed values
7168 1 - v1 error format
7169 2 - v2 error format
7170
7171 Returns:
7172 An object of the form:
7173
7174 {
7175 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
7176 # allowed.
7177 &quot;A String&quot;,
7178 ],
7179 }</pre>
7180 </div>
7181
7182 </body></html>