Debian Codegraph @

docs/dyn/compute_beta.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_beta.html">Compute Engine API</a> . <a href="compute_beta.regionNetworkFirewallPolicies.html">regionNetworkFirewallPolicies</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#addAssociation">addAssociation(project, region, firewallPolicy, associatedPolicyToBeReplaced=None, 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="#patchAssociation">patchAssociation(project, region, firewallPolicy, body=None, requestId=None, x__xgafv=None)</a></code></p>
121 <p class="firstline">Updates an association for the specified network firewall policy.</p>
122 <p class="toc_element">
123 <code><a href="#patchRule">patchRule(project, region, firewallPolicy, body=None, priority=None, requestId=None, x__xgafv=None)</a></code></p>
124 <p class="firstline">Patches a rule of the specified priority.</p>
125 <p class="toc_element">
126 <code><a href="#removeAssociation">removeAssociation(project, region, firewallPolicy, name=None, requestId=None, x__xgafv=None)</a></code></p>
127 <p class="firstline">Removes an association for the specified network firewall policy.</p>
128 <p class="toc_element">
129 <code><a href="#removeRule">removeRule(project, region, firewallPolicy, priority=None, requestId=None, x__xgafv=None)</a></code></p>
130 <p class="firstline">Deletes a rule of the specified priority.</p>
131 <p class="toc_element">
132 <code><a href="#setIamPolicy">setIamPolicy(project, region, resource, body=None, x__xgafv=None)</a></code></p>
133 <p class="firstline">Sets the access control policy on the specified resource.</p>
134 <p class="toc_element">
135 <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</a></code></p>
136 <p class="firstline">Returns permissions that a caller has on the specified resource.</p>
137 <h3>Method Details</h3>
138 <div class="method">
139 <code class="details" id="addAssociation">addAssociation(project, region, firewallPolicy, associatedPolicyToBeReplaced=None, body=None, replaceExistingAssociation=None, requestId=None, x__xgafv=None)</code>
140 <pre>Inserts an association for the specified network firewall policy.
141
142 Args:
143 project: string, Project ID for this request. (required)
144 region: string, Name of the region scoping this request. (required)
145 firewallPolicy: string, Name of the firewall policy to update. (required)
146 body: object, The request body.
147 The object takes the form of:
148
149 {
150 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
151 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
152 # of the firewall policy of the association.
153 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
154 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
155 &quot;priority&quot;: 42, # An integer indicating the priority of an association. The priority
156 # must be a positive value between 1 and 2147483647.
157 # Firewall Policies are evaluated from highest to lowest priority where 1
158 # is the highest priority and 2147483647 is the lowest priority.
159 # The default value is `1000`. If two associations have the same priority
160 # then lexicographical order on association names is applied.
161 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
162 }
163
164 associatedPolicyToBeReplaced: string, Name of the firewall policy associated with the target network to swap
165 association with. This field is mutually exclusive with
166 &#x27;replace_existing_association&#x27;.
167 replaceExistingAssociation: boolean, Indicates whether or not to replace it if an association already exists.
168 This is false by default, in which case an error will be returned if an
169 association already exists.
170 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
171 that if you must retry your request, the server will know to ignore the
172 request if it has already been completed.
173
174 For example, consider a situation where you make an initial request and
175 the request times out. If you make the request again with the same
176 request ID, the server can check if original operation with the same
177 request ID was received, and if so, will ignore the second request. This
178 prevents clients from accidentally creating duplicate commitments.
179
180 The request ID must be
181 a valid UUID with the exception that zero UUID is not supported
182 (00000000-0000-0000-0000-000000000000).
183 x__xgafv: string, V1 error format.
184 Allowed values
185 1 - v1 error format
186 2 - v2 error format
187
188 Returns:
189 An object of the form:
190
191 { # Represents an Operation resource.
192 #
193 # Google Compute Engine has three Operation resources:
194 #
195 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
196 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
197 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
198 #
199 # You can use an operation resource to manage asynchronous API requests.
200 # For more information, readHandling
201 # API responses.
202 #
203 # Operations can be global, regional or zonal.
204 #
205 # - For global operations, use the `globalOperations`
206 # resource.
207 # - For regional operations, use the
208 # `regionOperations` resource.
209 # - For zonal operations, use
210 # the `zoneOperations` resource.
211 #
212 #
213 #
214 # For more information, read
215 # Global, Regional, and Zonal Resources.
216 #
217 # Note that completed Operation resources have a limited
218 # retention period.
219 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
220 # Not present otherwise.
221 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
222 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
223 # set when the operation is created.
224 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
225 # text format.
226 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
227 # this field will be populated.
228 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
229 # operation.
230 {
231 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
232 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
233 # details. There is a set of defined message types to use for providing
234 # details.The syntax depends on the error code. For example,
235 # QuotaExceededInfo will have details when the error code is
236 # QUOTA_EXCEEDED.
237 {
238 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
239 #
240 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
241 # is not enabled:
242 #
243 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
244 # &quot;domain&quot;: &quot;googleapis.com&quot;
245 # &quot;metadata&quot;: {
246 # &quot;resource&quot;: &quot;projects/123&quot;,
247 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
248 # }
249 # }
250 #
251 # This response indicates that the pubsub.googleapis.com API is not enabled.
252 #
253 # Example of an error that is returned when attempting to create a Spanner
254 # instance in a region that is out of stock:
255 #
256 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
257 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
258 # &quot;metadata&quot;: {
259 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
260 # }
261 # }
262 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
263 # is typically the registered service name of the tool or product that
264 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
265 # generated by some common infrastructure, the error domain must be a
266 # globally unique value that identifies the infrastructure. For Google API
267 # infrastructure, the error domain is &quot;googleapis.com&quot;.
268 &quot;metadatas&quot;: { # Additional structured details about this error.
269 #
270 # Keys must match a regular expression of `a-z+` but should
271 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
272 # length. When identifying the current value of an exceeded limit, the units
273 # should be contained in the key, not the value. For example, rather than
274 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
275 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
276 # instances that can be created in a single (batch) request.
277 &quot;a_key&quot;: &quot;A String&quot;,
278 },
279 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
280 # proximate cause of the error. Error reasons are unique within a particular
281 # domain of errors. This should be at most 63 characters and match a
282 # regular expression of `A-Z+[A-Z0-9]`, which represents
283 # UPPER_SNAKE_CASE.
284 },
285 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
286 #
287 # For example, if a quota check failed with an error indicating the calling
288 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
289 # directly to the right place in the developer console to flip the bit.
290 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
291 { # Describes a URL link.
292 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
293 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
294 },
295 ],
296 },
297 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
298 # which can be attached to an RPC error.
299 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
300 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
301 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
302 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
303 },
304 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
305 &quot;dimensions&quot;: { # The map holding related quota dimensions.
306 &quot;a_key&quot;: &quot;A String&quot;,
307 },
308 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
309 # type or metric.
310 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
311 # or metric.
312 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
313 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
314 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
315 },
316 },
317 ],
318 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
319 # This property is optional.
320 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
321 },
322 ],
323 },
324 &quot;getVersionOperationMetadata&quot;: {
325 &quot;inlineSbomInfo&quot;: {
326 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
327 # appropriate identifiers.
328 &quot;a_key&quot;: &quot;A String&quot;,
329 },
330 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
331 # identifiers.
332 &quot;a_key&quot;: &quot;A String&quot;,
333 },
334 },
335 },
336 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
337 # message that was returned, such as `NOT FOUND`.
338 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
339 # status code that was returned. For example, a `404` means the
340 # resource was not found.
341 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
342 # defined by the server.
343 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
344 # This value is inRFC3339
345 # text format.
346 &quot;instancesBulkInsertOperationMetadata&quot;: {
347 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
348 # Example key: zones/us-central1-a
349 &quot;a_key&quot;: {
350 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
351 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
352 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
353 # error.
354 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
355 # if the flow is rolling forward or rolling back.
356 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
357 },
358 },
359 },
360 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
361 # Operation resources.
362 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
363 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
364 # group of operations results from a `bulkInsert` API request.
365 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
366 # `update`, or `delete`, and so on.
367 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
368 # There is no requirement that this be linear or support any granularity of
369 # operations. This should not be used to guess when the operation will be
370 # complete. This number should monotonically increase as the operation
371 # progresses.
372 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
373 # applicable when performing regional operations.
374 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
375 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
376 # this field will contain information on all underlying zonal actions and
377 # their state.
378 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
379 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
380 # Example key: zones/us-central1-a
381 &quot;a_key&quot;: {
382 &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
383 # populated.
384 # different programming environments, including REST APIs and RPC APIs. It is
385 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
386 # three pieces of data: error code, error message, and error details.
387 #
388 # You can find out more about this error model and how to work with it in the
389 # [API Design Guide](https://cloud.google.com/apis/design/errors).
390 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
391 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
392 # message types for APIs to use.
393 {
394 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
395 },
396 ],
397 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
398 # user-facing error message should be localized and sent in the
399 # google.rpc.Status.details field, or localized by the client.
400 },
401 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
402 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
403 },
404 },
405 },
406 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
407 # This value is inRFC3339
408 # text format.
409 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
410 # following:
411 # `PENDING`, `RUNNING`, or `DONE`.
412 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
413 # operation.
414 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
415 # of the target resource.
416 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
417 # operations related to creating a snapshot, this points to the disk
418 # that the snapshot was created from.
419 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
420 # `[email protected]` or
421 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
422 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
423 # operation, this field will be populated.
424 {
425 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
426 # Engine returns NO_RESULTS_ON_PAGE if there
427 # are no results in the response.
428 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
429 # value format. For example:
430 #
431 # &quot;data&quot;: [
432 # {
433 # &quot;key&quot;: &quot;scope&quot;,
434 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
435 # }
436 {
437 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
438 # returned. For example, for warnings where there are no results in a list
439 # request for a particular zone, this key might be scope and
440 # the key value might be the zone name. Other examples might be a key
441 # indicating a deprecated resource and a suggested replacement, or a
442 # warning about invalid network settings (for example, if an instance
443 # attempts to perform IP forwarding but is not enabled for IP forwarding).
444 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
445 },
446 ],
447 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
448 },
449 ],
450 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
451 # applicable when performing per-zone operations.
452 }</pre>
453 </div>
454
455 <div class="method">
456 <code class="details" id="addRule">addRule(project, region, firewallPolicy, body=None, maxPriority=None, minPriority=None, requestId=None, x__xgafv=None)</code>
457 <pre>Inserts a rule into a network firewall policy.
458
459 Args:
460 project: string, Project ID for this request. (required)
461 region: string, Name of the region scoping this request. (required)
462 firewallPolicy: string, Name of the firewall policy to update. (required)
463 body: object, The request body.
464 The object takes the form of:
465
466 { # Represents a rule that describes one or more match conditions along with
467 # the action to be taken when traffic matches this condition (allow or deny).
468 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
469 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
470 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
471 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
472 # and &quot;goto_next&quot;.
473 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
474 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
475 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
476 # the firewall policy rule is not enforced and traffic behaves as if it did
477 # not exist. If this is unspecified, the firewall policy rule will be
478 # enabled.
479 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
480 # enabled, logs will be exported to the configured export destination in
481 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
482 # cannot enable logging on &quot;goto_next&quot; rules.
483 &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.
484 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
485 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
486 # Exactly one field must be specified.
487 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
488 # Maximum number of destination address groups is 10.
489 &quot;A String&quot;,
490 ],
491 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
492 # traffic destination.
493 # Maximum number of destination fqdn allowed is 100.
494 &quot;A String&quot;,
495 ],
496 &quot;destIpRanges&quot;: [ # CIDR IP address range.
497 # Maximum number of destination CIDR IP ranges allowed is 5000.
498 &quot;A String&quot;,
499 ],
500 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
501 #
502 #
503 # - UNSPECIFIED
504 # - INTERNET
505 # - NON_INTERNET
506 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
507 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
508 #
509 #
510 # - UNSPECIFIED
511 # - INTERNET
512 # - NON_INTERNET
513 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
514 # of traffic. Should be specified as 2 letter country code defined as per
515 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
516 # Maximum number of dest region codes allowed is 5000.
517 &quot;A String&quot;,
518 ],
519 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
520 # The IPs in these lists will be matched against traffic destination.
521 &quot;A String&quot;,
522 ],
523 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
524 {
525 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
526 # required when creating a firewall rule. This value can either be
527 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
528 # protocol number.
529 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
530 # only applicable for UDP or TCP protocol. Each entry must be either
531 # an integer or a range. If not specified, this rule applies to
532 # connections through any port.
533 #
534 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
535 &quot;A String&quot;,
536 ],
537 },
538 ],
539 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
540 # Maximum number of source address groups is 10.
541 &quot;A String&quot;,
542 ],
543 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
544 # traffic source.
545 # Maximum number of source fqdn allowed is 100.
546 &quot;A String&quot;,
547 ],
548 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
549 # Maximum number of source CIDR IP ranges allowed is 5000.
550 &quot;A String&quot;,
551 ],
552 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
553 #
554 #
555 # - UNSPECIFIED
556 # - INTERNET
557 # - INTRA_VPC
558 # - NON_INTERNET
559 # - VPC_NETWORKS
560 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
561 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
562 #
563 #
564 # - UNSPECIFIED
565 # - INTERNET
566 # - INTRA_VPC
567 # - NON_INTERNET
568 # - VPC_NETWORKS
569 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
570 &quot;A String&quot;,
571 ],
572 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
573 # of traffic. Should be specified as 2 letter country code defined as per
574 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
575 # Maximum number of source region codes allowed is 5000.
576 &quot;A String&quot;,
577 ],
578 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
579 # of the traffic.
580 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
581 # and there is no srcIpRange, this rule will be ignored.
582 # Maximum number of source tag values allowed is 256.
583 {
584 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
585 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
586 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
587 # or its network is deleted.
588 },
589 ],
590 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
591 # The IPs in these lists will be matched against traffic source.
592 &quot;A String&quot;,
593 ],
594 },
595 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
596 # must be a positive value between 0 and 2147483647.
597 # Rules are evaluated from highest to lowest priority where 0 is the
598 # highest priority and 2147483647 is the lowest priority.
599 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
600 # and can be updated.
601 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
602 # rule.
603 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
604 # Example:
605 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
606 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
607 # &#x27;mirror&#x27;. Cannot be specified for other actions.
608 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
609 # This field allows you to control which load balancers get this rule.
610 # For example, the following are valid values:
611 #
612 #
613 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
614 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
615 # - projects/project/global/
616 # forwardingRules/forwardingRule
617 # - projects/project/regions/region/forwardingRules/
618 # forwardingRule
619 &quot;A String&quot;,
620 ],
621 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
622 # allows you to control which network&#x27;s VMs get this rule. If this field
623 # is left blank, all VMs within the organization will receive the rule.
624 &quot;A String&quot;,
625 ],
626 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
627 # applies to. If targetSecureTag are specified, then the
628 # firewall rule applies only to instances in the VPC network that have one
629 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
630 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
631 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
632 # to all instances on the specified network.
633 # Maximum number of target label tags allowed is 256.
634 {
635 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
636 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
637 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
638 # or its network is deleted.
639 },
640 ],
641 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
642 # applied with this rule.
643 &quot;A String&quot;,
644 ],
645 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
646 # Default value is INSTANCES.
647 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
648 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
649 # be set for other actions.
650 }
651
652 maxPriority: integer, When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority&gt;.
653 This field is exclusive with rule.priority.
654 minPriority: integer, When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority&gt;.
655 This field is exclusive with rule.priority.
656 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
657 that if you must retry your request, the server will know to ignore the
658 request if it has already been completed.
659
660 For example, consider a situation where you make an initial request and
661 the request times out. If you make the request again with the same
662 request ID, the server can check if original operation with the same
663 request ID was received, and if so, will ignore the second request. This
664 prevents clients from accidentally creating duplicate commitments.
665
666 The request ID must be
667 a valid UUID with the exception that zero UUID is not supported
668 (00000000-0000-0000-0000-000000000000).
669 x__xgafv: string, V1 error format.
670 Allowed values
671 1 - v1 error format
672 2 - v2 error format
673
674 Returns:
675 An object of the form:
676
677 { # Represents an Operation resource.
678 #
679 # Google Compute Engine has three Operation resources:
680 #
681 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
682 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
683 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
684 #
685 # You can use an operation resource to manage asynchronous API requests.
686 # For more information, readHandling
687 # API responses.
688 #
689 # Operations can be global, regional or zonal.
690 #
691 # - For global operations, use the `globalOperations`
692 # resource.
693 # - For regional operations, use the
694 # `regionOperations` resource.
695 # - For zonal operations, use
696 # the `zoneOperations` resource.
697 #
698 #
699 #
700 # For more information, read
701 # Global, Regional, and Zonal Resources.
702 #
703 # Note that completed Operation resources have a limited
704 # retention period.
705 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
706 # Not present otherwise.
707 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
708 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
709 # set when the operation is created.
710 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
711 # text format.
712 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
713 # this field will be populated.
714 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
715 # operation.
716 {
717 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
718 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
719 # details. There is a set of defined message types to use for providing
720 # details.The syntax depends on the error code. For example,
721 # QuotaExceededInfo will have details when the error code is
722 # QUOTA_EXCEEDED.
723 {
724 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
725 #
726 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
727 # is not enabled:
728 #
729 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
730 # &quot;domain&quot;: &quot;googleapis.com&quot;
731 # &quot;metadata&quot;: {
732 # &quot;resource&quot;: &quot;projects/123&quot;,
733 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
734 # }
735 # }
736 #
737 # This response indicates that the pubsub.googleapis.com API is not enabled.
738 #
739 # Example of an error that is returned when attempting to create a Spanner
740 # instance in a region that is out of stock:
741 #
742 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
743 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
744 # &quot;metadata&quot;: {
745 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
746 # }
747 # }
748 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
749 # is typically the registered service name of the tool or product that
750 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
751 # generated by some common infrastructure, the error domain must be a
752 # globally unique value that identifies the infrastructure. For Google API
753 # infrastructure, the error domain is &quot;googleapis.com&quot;.
754 &quot;metadatas&quot;: { # Additional structured details about this error.
755 #
756 # Keys must match a regular expression of `a-z+` but should
757 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
758 # length. When identifying the current value of an exceeded limit, the units
759 # should be contained in the key, not the value. For example, rather than
760 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
761 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
762 # instances that can be created in a single (batch) request.
763 &quot;a_key&quot;: &quot;A String&quot;,
764 },
765 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
766 # proximate cause of the error. Error reasons are unique within a particular
767 # domain of errors. This should be at most 63 characters and match a
768 # regular expression of `A-Z+[A-Z0-9]`, which represents
769 # UPPER_SNAKE_CASE.
770 },
771 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
772 #
773 # For example, if a quota check failed with an error indicating the calling
774 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
775 # directly to the right place in the developer console to flip the bit.
776 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
777 { # Describes a URL link.
778 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
779 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
780 },
781 ],
782 },
783 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
784 # which can be attached to an RPC error.
785 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
786 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
787 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
788 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
789 },
790 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
791 &quot;dimensions&quot;: { # The map holding related quota dimensions.
792 &quot;a_key&quot;: &quot;A String&quot;,
793 },
794 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
795 # type or metric.
796 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
797 # or metric.
798 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
799 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
800 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
801 },
802 },
803 ],
804 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
805 # This property is optional.
806 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
807 },
808 ],
809 },
810 &quot;getVersionOperationMetadata&quot;: {
811 &quot;inlineSbomInfo&quot;: {
812 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
813 # appropriate identifiers.
814 &quot;a_key&quot;: &quot;A String&quot;,
815 },
816 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
817 # identifiers.
818 &quot;a_key&quot;: &quot;A String&quot;,
819 },
820 },
821 },
822 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
823 # message that was returned, such as `NOT FOUND`.
824 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
825 # status code that was returned. For example, a `404` means the
826 # resource was not found.
827 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
828 # defined by the server.
829 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
830 # This value is inRFC3339
831 # text format.
832 &quot;instancesBulkInsertOperationMetadata&quot;: {
833 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
834 # Example key: zones/us-central1-a
835 &quot;a_key&quot;: {
836 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
837 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
838 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
839 # error.
840 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
841 # if the flow is rolling forward or rolling back.
842 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
843 },
844 },
845 },
846 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
847 # Operation resources.
848 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
849 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
850 # group of operations results from a `bulkInsert` API request.
851 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
852 # `update`, or `delete`, and so on.
853 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
854 # There is no requirement that this be linear or support any granularity of
855 # operations. This should not be used to guess when the operation will be
856 # complete. This number should monotonically increase as the operation
857 # progresses.
858 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
859 # applicable when performing regional operations.
860 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
861 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
862 # this field will contain information on all underlying zonal actions and
863 # their state.
864 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
865 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
866 # Example key: zones/us-central1-a
867 &quot;a_key&quot;: {
868 &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
869 # populated.
870 # different programming environments, including REST APIs and RPC APIs. It is
871 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
872 # three pieces of data: error code, error message, and error details.
873 #
874 # You can find out more about this error model and how to work with it in the
875 # [API Design Guide](https://cloud.google.com/apis/design/errors).
876 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
877 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
878 # message types for APIs to use.
879 {
880 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
881 },
882 ],
883 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
884 # user-facing error message should be localized and sent in the
885 # google.rpc.Status.details field, or localized by the client.
886 },
887 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
888 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
889 },
890 },
891 },
892 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
893 # This value is inRFC3339
894 # text format.
895 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
896 # following:
897 # `PENDING`, `RUNNING`, or `DONE`.
898 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
899 # operation.
900 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
901 # of the target resource.
902 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
903 # operations related to creating a snapshot, this points to the disk
904 # that the snapshot was created from.
905 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
906 # `[email protected]` or
907 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
908 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
909 # operation, this field will be populated.
910 {
911 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
912 # Engine returns NO_RESULTS_ON_PAGE if there
913 # are no results in the response.
914 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
915 # value format. For example:
916 #
917 # &quot;data&quot;: [
918 # {
919 # &quot;key&quot;: &quot;scope&quot;,
920 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
921 # }
922 {
923 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
924 # returned. For example, for warnings where there are no results in a list
925 # request for a particular zone, this key might be scope and
926 # the key value might be the zone name. Other examples might be a key
927 # indicating a deprecated resource and a suggested replacement, or a
928 # warning about invalid network settings (for example, if an instance
929 # attempts to perform IP forwarding but is not enabled for IP forwarding).
930 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
931 },
932 ],
933 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
934 },
935 ],
936 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
937 # applicable when performing per-zone operations.
938 }</pre>
939 </div>
940
941 <div class="method">
942 <code class="details" id="cloneRules">cloneRules(project, region, firewallPolicy, requestId=None, sourceFirewallPolicy=None, x__xgafv=None)</code>
943 <pre>Copies rules to the specified network firewall policy.
944
945 Args:
946 project: string, Project ID for this request. (required)
947 region: string, Name of the region scoping this request. (required)
948 firewallPolicy: string, Name of the firewall policy to update. (required)
949 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
950 that if you must retry your request, the server will know to ignore the
951 request if it has already been completed.
952
953 For example, consider a situation where you make an initial request and
954 the request times out. If you make the request again with the same
955 request ID, the server can check if original operation with the same
956 request ID was received, and if so, will ignore the second request. This
957 prevents clients from accidentally creating duplicate commitments.
958
959 The request ID must be
960 a valid UUID with the exception that zero UUID is not supported
961 (00000000-0000-0000-0000-000000000000).
962 sourceFirewallPolicy: string, The firewall policy from which to copy rules.
963 x__xgafv: string, V1 error format.
964 Allowed values
965 1 - v1 error format
966 2 - v2 error format
967
968 Returns:
969 An object of the form:
970
971 { # Represents an Operation resource.
972 #
973 # Google Compute Engine has three Operation resources:
974 #
975 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
976 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
977 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
978 #
979 # You can use an operation resource to manage asynchronous API requests.
980 # For more information, readHandling
981 # API responses.
982 #
983 # Operations can be global, regional or zonal.
984 #
985 # - For global operations, use the `globalOperations`
986 # resource.
987 # - For regional operations, use the
988 # `regionOperations` resource.
989 # - For zonal operations, use
990 # the `zoneOperations` resource.
991 #
992 #
993 #
994 # For more information, read
995 # Global, Regional, and Zonal Resources.
996 #
997 # Note that completed Operation resources have a limited
998 # retention period.
999 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1000 # Not present otherwise.
1001 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1002 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1003 # set when the operation is created.
1004 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1005 # text format.
1006 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1007 # this field will be populated.
1008 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1009 # operation.
1010 {
1011 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1012 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1013 # details. There is a set of defined message types to use for providing
1014 # details.The syntax depends on the error code. For example,
1015 # QuotaExceededInfo will have details when the error code is
1016 # QUOTA_EXCEEDED.
1017 {
1018 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1019 #
1020 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1021 # is not enabled:
1022 #
1023 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1024 # &quot;domain&quot;: &quot;googleapis.com&quot;
1025 # &quot;metadata&quot;: {
1026 # &quot;resource&quot;: &quot;projects/123&quot;,
1027 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1028 # }
1029 # }
1030 #
1031 # This response indicates that the pubsub.googleapis.com API is not enabled.
1032 #
1033 # Example of an error that is returned when attempting to create a Spanner
1034 # instance in a region that is out of stock:
1035 #
1036 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1037 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1038 # &quot;metadata&quot;: {
1039 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1040 # }
1041 # }
1042 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1043 # is typically the registered service name of the tool or product that
1044 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1045 # generated by some common infrastructure, the error domain must be a
1046 # globally unique value that identifies the infrastructure. For Google API
1047 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1048 &quot;metadatas&quot;: { # Additional structured details about this error.
1049 #
1050 # Keys must match a regular expression of `a-z+` but should
1051 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1052 # length. When identifying the current value of an exceeded limit, the units
1053 # should be contained in the key, not the value. For example, rather than
1054 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1055 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1056 # instances that can be created in a single (batch) request.
1057 &quot;a_key&quot;: &quot;A String&quot;,
1058 },
1059 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1060 # proximate cause of the error. Error reasons are unique within a particular
1061 # domain of errors. This should be at most 63 characters and match a
1062 # regular expression of `A-Z+[A-Z0-9]`, which represents
1063 # UPPER_SNAKE_CASE.
1064 },
1065 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1066 #
1067 # For example, if a quota check failed with an error indicating the calling
1068 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1069 # directly to the right place in the developer console to flip the bit.
1070 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1071 { # Describes a URL link.
1072 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1073 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1074 },
1075 ],
1076 },
1077 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1078 # which can be attached to an RPC error.
1079 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1080 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1081 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1082 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1083 },
1084 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1085 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1086 &quot;a_key&quot;: &quot;A String&quot;,
1087 },
1088 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1089 # type or metric.
1090 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1091 # or metric.
1092 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1093 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1094 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1095 },
1096 },
1097 ],
1098 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1099 # This property is optional.
1100 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1101 },
1102 ],
1103 },
1104 &quot;getVersionOperationMetadata&quot;: {
1105 &quot;inlineSbomInfo&quot;: {
1106 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1107 # appropriate identifiers.
1108 &quot;a_key&quot;: &quot;A String&quot;,
1109 },
1110 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1111 # identifiers.
1112 &quot;a_key&quot;: &quot;A String&quot;,
1113 },
1114 },
1115 },
1116 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1117 # message that was returned, such as `NOT FOUND`.
1118 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1119 # status code that was returned. For example, a `404` means the
1120 # resource was not found.
1121 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1122 # defined by the server.
1123 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1124 # This value is inRFC3339
1125 # text format.
1126 &quot;instancesBulkInsertOperationMetadata&quot;: {
1127 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1128 # Example key: zones/us-central1-a
1129 &quot;a_key&quot;: {
1130 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1131 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1132 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1133 # error.
1134 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1135 # if the flow is rolling forward or rolling back.
1136 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1137 },
1138 },
1139 },
1140 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1141 # Operation resources.
1142 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1143 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1144 # group of operations results from a `bulkInsert` API request.
1145 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1146 # `update`, or `delete`, and so on.
1147 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1148 # There is no requirement that this be linear or support any granularity of
1149 # operations. This should not be used to guess when the operation will be
1150 # complete. This number should monotonically increase as the operation
1151 # progresses.
1152 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1153 # applicable when performing regional operations.
1154 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1155 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1156 # this field will contain information on all underlying zonal actions and
1157 # their state.
1158 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1159 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1160 # Example key: zones/us-central1-a
1161 &quot;a_key&quot;: {
1162 &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
1163 # populated.
1164 # different programming environments, including REST APIs and RPC APIs. It is
1165 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1166 # three pieces of data: error code, error message, and error details.
1167 #
1168 # You can find out more about this error model and how to work with it in the
1169 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1170 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1171 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1172 # message types for APIs to use.
1173 {
1174 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1175 },
1176 ],
1177 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1178 # user-facing error message should be localized and sent in the
1179 # google.rpc.Status.details field, or localized by the client.
1180 },
1181 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1182 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1183 },
1184 },
1185 },
1186 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1187 # This value is inRFC3339
1188 # text format.
1189 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1190 # following:
1191 # `PENDING`, `RUNNING`, or `DONE`.
1192 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1193 # operation.
1194 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1195 # of the target resource.
1196 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1197 # operations related to creating a snapshot, this points to the disk
1198 # that the snapshot was created from.
1199 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1200 # `[email protected]` or
1201 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1202 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1203 # operation, this field will be populated.
1204 {
1205 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1206 # Engine returns NO_RESULTS_ON_PAGE if there
1207 # are no results in the response.
1208 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1209 # value format. For example:
1210 #
1211 # &quot;data&quot;: [
1212 # {
1213 # &quot;key&quot;: &quot;scope&quot;,
1214 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1215 # }
1216 {
1217 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1218 # returned. For example, for warnings where there are no results in a list
1219 # request for a particular zone, this key might be scope and
1220 # the key value might be the zone name. Other examples might be a key
1221 # indicating a deprecated resource and a suggested replacement, or a
1222 # warning about invalid network settings (for example, if an instance
1223 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1224 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1225 },
1226 ],
1227 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1228 },
1229 ],
1230 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1231 # applicable when performing per-zone operations.
1232 }</pre>
1233 </div>
1234
1235 <div class="method">
1236 <code class="details" id="close">close()</code>
1237 <pre>Close httplib2 connections.</pre>
1238 </div>
1239
1240 <div class="method">
1241 <code class="details" id="delete">delete(project, region, firewallPolicy, requestId=None, x__xgafv=None)</code>
1242 <pre>Deletes the specified network firewall policy.
1243
1244 Args:
1245 project: string, Project ID for this request. (required)
1246 region: string, Name of the region scoping this request. (required)
1247 firewallPolicy: string, Name of the firewall policy to delete. (required)
1248 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
1249 that if you must retry your request, the server will know to ignore the
1250 request if it has already been completed.
1251
1252 For example, consider a situation where you make an initial request and
1253 the request times out. If you make the request again with the same
1254 request ID, the server can check if original operation with the same
1255 request ID was received, and if so, will ignore the second request. This
1256 prevents clients from accidentally creating duplicate commitments.
1257
1258 The request ID must be
1259 a valid UUID with the exception that zero UUID is not supported
1260 (00000000-0000-0000-0000-000000000000).
1261 x__xgafv: string, V1 error format.
1262 Allowed values
1263 1 - v1 error format
1264 2 - v2 error format
1265
1266 Returns:
1267 An object of the form:
1268
1269 { # Represents an Operation resource.
1270 #
1271 # Google Compute Engine has three Operation resources:
1272 #
1273 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
1274 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
1275 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
1276 #
1277 # You can use an operation resource to manage asynchronous API requests.
1278 # For more information, readHandling
1279 # API responses.
1280 #
1281 # Operations can be global, regional or zonal.
1282 #
1283 # - For global operations, use the `globalOperations`
1284 # resource.
1285 # - For regional operations, use the
1286 # `regionOperations` resource.
1287 # - For zonal operations, use
1288 # the `zoneOperations` resource.
1289 #
1290 #
1291 #
1292 # For more information, read
1293 # Global, Regional, and Zonal Resources.
1294 #
1295 # Note that completed Operation resources have a limited
1296 # retention period.
1297 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1298 # Not present otherwise.
1299 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1300 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1301 # set when the operation is created.
1302 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1303 # text format.
1304 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1305 # this field will be populated.
1306 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1307 # operation.
1308 {
1309 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1310 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1311 # details. There is a set of defined message types to use for providing
1312 # details.The syntax depends on the error code. For example,
1313 # QuotaExceededInfo will have details when the error code is
1314 # QUOTA_EXCEEDED.
1315 {
1316 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1317 #
1318 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1319 # is not enabled:
1320 #
1321 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1322 # &quot;domain&quot;: &quot;googleapis.com&quot;
1323 # &quot;metadata&quot;: {
1324 # &quot;resource&quot;: &quot;projects/123&quot;,
1325 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1326 # }
1327 # }
1328 #
1329 # This response indicates that the pubsub.googleapis.com API is not enabled.
1330 #
1331 # Example of an error that is returned when attempting to create a Spanner
1332 # instance in a region that is out of stock:
1333 #
1334 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1335 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1336 # &quot;metadata&quot;: {
1337 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1338 # }
1339 # }
1340 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1341 # is typically the registered service name of the tool or product that
1342 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1343 # generated by some common infrastructure, the error domain must be a
1344 # globally unique value that identifies the infrastructure. For Google API
1345 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1346 &quot;metadatas&quot;: { # Additional structured details about this error.
1347 #
1348 # Keys must match a regular expression of `a-z+` but should
1349 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1350 # length. When identifying the current value of an exceeded limit, the units
1351 # should be contained in the key, not the value. For example, rather than
1352 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1353 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1354 # instances that can be created in a single (batch) request.
1355 &quot;a_key&quot;: &quot;A String&quot;,
1356 },
1357 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1358 # proximate cause of the error. Error reasons are unique within a particular
1359 # domain of errors. This should be at most 63 characters and match a
1360 # regular expression of `A-Z+[A-Z0-9]`, which represents
1361 # UPPER_SNAKE_CASE.
1362 },
1363 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1364 #
1365 # For example, if a quota check failed with an error indicating the calling
1366 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1367 # directly to the right place in the developer console to flip the bit.
1368 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1369 { # Describes a URL link.
1370 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1371 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1372 },
1373 ],
1374 },
1375 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1376 # which can be attached to an RPC error.
1377 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1378 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1379 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1380 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1381 },
1382 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1383 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1384 &quot;a_key&quot;: &quot;A String&quot;,
1385 },
1386 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1387 # type or metric.
1388 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1389 # or metric.
1390 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1391 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1392 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1393 },
1394 },
1395 ],
1396 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1397 # This property is optional.
1398 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1399 },
1400 ],
1401 },
1402 &quot;getVersionOperationMetadata&quot;: {
1403 &quot;inlineSbomInfo&quot;: {
1404 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1405 # appropriate identifiers.
1406 &quot;a_key&quot;: &quot;A String&quot;,
1407 },
1408 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1409 # identifiers.
1410 &quot;a_key&quot;: &quot;A String&quot;,
1411 },
1412 },
1413 },
1414 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1415 # message that was returned, such as `NOT FOUND`.
1416 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1417 # status code that was returned. For example, a `404` means the
1418 # resource was not found.
1419 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1420 # defined by the server.
1421 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1422 # This value is inRFC3339
1423 # text format.
1424 &quot;instancesBulkInsertOperationMetadata&quot;: {
1425 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1426 # Example key: zones/us-central1-a
1427 &quot;a_key&quot;: {
1428 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1429 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1430 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1431 # error.
1432 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1433 # if the flow is rolling forward or rolling back.
1434 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1435 },
1436 },
1437 },
1438 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1439 # Operation resources.
1440 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1441 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1442 # group of operations results from a `bulkInsert` API request.
1443 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1444 # `update`, or `delete`, and so on.
1445 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1446 # There is no requirement that this be linear or support any granularity of
1447 # operations. This should not be used to guess when the operation will be
1448 # complete. This number should monotonically increase as the operation
1449 # progresses.
1450 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1451 # applicable when performing regional operations.
1452 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1453 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1454 # this field will contain information on all underlying zonal actions and
1455 # their state.
1456 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1457 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1458 # Example key: zones/us-central1-a
1459 &quot;a_key&quot;: {
1460 &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
1461 # populated.
1462 # different programming environments, including REST APIs and RPC APIs. It is
1463 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1464 # three pieces of data: error code, error message, and error details.
1465 #
1466 # You can find out more about this error model and how to work with it in the
1467 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1468 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1469 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1470 # message types for APIs to use.
1471 {
1472 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1473 },
1474 ],
1475 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1476 # user-facing error message should be localized and sent in the
1477 # google.rpc.Status.details field, or localized by the client.
1478 },
1479 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1480 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1481 },
1482 },
1483 },
1484 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1485 # This value is inRFC3339
1486 # text format.
1487 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1488 # following:
1489 # `PENDING`, `RUNNING`, or `DONE`.
1490 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1491 # operation.
1492 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1493 # of the target resource.
1494 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1495 # operations related to creating a snapshot, this points to the disk
1496 # that the snapshot was created from.
1497 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1498 # `[email protected]` or
1499 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1500 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1501 # operation, this field will be populated.
1502 {
1503 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1504 # Engine returns NO_RESULTS_ON_PAGE if there
1505 # are no results in the response.
1506 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1507 # value format. For example:
1508 #
1509 # &quot;data&quot;: [
1510 # {
1511 # &quot;key&quot;: &quot;scope&quot;,
1512 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1513 # }
1514 {
1515 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1516 # returned. For example, for warnings where there are no results in a list
1517 # request for a particular zone, this key might be scope and
1518 # the key value might be the zone name. Other examples might be a key
1519 # indicating a deprecated resource and a suggested replacement, or a
1520 # warning about invalid network settings (for example, if an instance
1521 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1522 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1523 },
1524 ],
1525 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1526 },
1527 ],
1528 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1529 # applicable when performing per-zone operations.
1530 }</pre>
1531 </div>
1532
1533 <div class="method">
1534 <code class="details" id="get">get(project, region, firewallPolicy, x__xgafv=None)</code>
1535 <pre>Returns the specified network firewall policy.
1536
1537 Args:
1538 project: string, Project ID for this request. (required)
1539 region: string, Name of the region scoping this request. (required)
1540 firewallPolicy: string, Name of the firewall policy to get. (required)
1541 x__xgafv: string, V1 error format.
1542 Allowed values
1543 1 - v1 error format
1544 2 - v2 error format
1545
1546 Returns:
1547 An object of the form:
1548
1549 { # Represents a Firewall Policy resource.
1550 &quot;associations&quot;: [ # A list of associations that belong to this firewall policy.
1551 {
1552 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
1553 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
1554 # of the firewall policy of the association.
1555 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
1556 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
1557 &quot;priority&quot;: 42, # An integer indicating the priority of an association. The priority
1558 # must be a positive value between 1 and 2147483647.
1559 # Firewall Policies are evaluated from highest to lowest priority where 1
1560 # is the highest priority and 2147483647 is the lowest priority.
1561 # The default value is `1000`. If two associations have the same priority
1562 # then lexicographical order on association names is applied.
1563 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
1564 },
1565 ],
1566 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
1567 # text format.
1568 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
1569 # create the resource.
1570 &quot;displayName&quot;: &quot;A String&quot;, # Deprecated, please use short name instead. User-provided name of the
1571 # Organization firewall policy. The name should be unique in the organization
1572 # in which the firewall policy is created.
1573 # This field is not applicable to network firewall policies.
1574 # This name must be set on creation and cannot be changed.
1575 # The name must be 1-63 characters long, and comply
1576 # with RFC1035. Specifically, the name must be 1-63 characters
1577 # long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which
1578 # means the first character must be a lowercase letter, and all following
1579 # characters must be a dash, lowercase letter, or digit, except the last
1580 # character, which cannot be a dash.
1581 &quot;fingerprint&quot;: &quot;A String&quot;, # Specifies a fingerprint for this resource, which is essentially a hash of
1582 # the metadata&#x27;s contents and used for optimistic locking. The
1583 # fingerprint is initially generated by Compute Engine and changes after
1584 # every request to modify or update metadata. You must always provide an
1585 # up-to-date fingerprint hash in order to update or change metadata,
1586 # otherwise the request will fail with error412 conditionNotMet.
1587 #
1588 # To see the latest fingerprint, make get() request to the
1589 # firewall policy.
1590 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
1591 # defined by the server.
1592 &quot;kind&quot;: &quot;compute#firewallPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
1593 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. For Organization Firewall Policies it&#x27;s a
1594 # [Output Only] numeric ID allocated by Google Cloud which uniquely
1595 # identifies the Organization Firewall Policy.
1596 &quot;packetMirroringRules&quot;: [ # A list of packet mirroring rules that belong to this policy.
1597 { # Represents a rule that describes one or more match conditions along with
1598 # the action to be taken when traffic matches this condition (allow or deny).
1599 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
1600 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
1601 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
1602 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
1603 # and &quot;goto_next&quot;.
1604 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
1605 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
1606 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
1607 # the firewall policy rule is not enforced and traffic behaves as if it did
1608 # not exist. If this is unspecified, the firewall policy rule will be
1609 # enabled.
1610 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
1611 # enabled, logs will be exported to the configured export destination in
1612 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
1613 # cannot enable logging on &quot;goto_next&quot; rules.
1614 &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.
1615 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
1616 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
1617 # Exactly one field must be specified.
1618 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
1619 # Maximum number of destination address groups is 10.
1620 &quot;A String&quot;,
1621 ],
1622 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
1623 # traffic destination.
1624 # Maximum number of destination fqdn allowed is 100.
1625 &quot;A String&quot;,
1626 ],
1627 &quot;destIpRanges&quot;: [ # CIDR IP address range.
1628 # Maximum number of destination CIDR IP ranges allowed is 5000.
1629 &quot;A String&quot;,
1630 ],
1631 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
1632 #
1633 #
1634 # - UNSPECIFIED
1635 # - INTERNET
1636 # - NON_INTERNET
1637 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
1638 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
1639 #
1640 #
1641 # - UNSPECIFIED
1642 # - INTERNET
1643 # - NON_INTERNET
1644 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
1645 # of traffic. Should be specified as 2 letter country code defined as per
1646 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
1647 # Maximum number of dest region codes allowed is 5000.
1648 &quot;A String&quot;,
1649 ],
1650 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1651 # The IPs in these lists will be matched against traffic destination.
1652 &quot;A String&quot;,
1653 ],
1654 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
1655 {
1656 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
1657 # required when creating a firewall rule. This value can either be
1658 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
1659 # protocol number.
1660 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
1661 # only applicable for UDP or TCP protocol. Each entry must be either
1662 # an integer or a range. If not specified, this rule applies to
1663 # connections through any port.
1664 #
1665 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
1666 &quot;A String&quot;,
1667 ],
1668 },
1669 ],
1670 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
1671 # Maximum number of source address groups is 10.
1672 &quot;A String&quot;,
1673 ],
1674 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
1675 # traffic source.
1676 # Maximum number of source fqdn allowed is 100.
1677 &quot;A String&quot;,
1678 ],
1679 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
1680 # Maximum number of source CIDR IP ranges allowed is 5000.
1681 &quot;A String&quot;,
1682 ],
1683 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
1684 #
1685 #
1686 # - UNSPECIFIED
1687 # - INTERNET
1688 # - INTRA_VPC
1689 # - NON_INTERNET
1690 # - VPC_NETWORKS
1691 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
1692 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
1693 #
1694 #
1695 # - UNSPECIFIED
1696 # - INTERNET
1697 # - INTRA_VPC
1698 # - NON_INTERNET
1699 # - VPC_NETWORKS
1700 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
1701 &quot;A String&quot;,
1702 ],
1703 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
1704 # of traffic. Should be specified as 2 letter country code defined as per
1705 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
1706 # Maximum number of source region codes allowed is 5000.
1707 &quot;A String&quot;,
1708 ],
1709 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
1710 # of the traffic.
1711 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
1712 # and there is no srcIpRange, this rule will be ignored.
1713 # Maximum number of source tag values allowed is 256.
1714 {
1715 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1716 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1717 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1718 # or its network is deleted.
1719 },
1720 ],
1721 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1722 # The IPs in these lists will be matched against traffic source.
1723 &quot;A String&quot;,
1724 ],
1725 },
1726 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
1727 # must be a positive value between 0 and 2147483647.
1728 # Rules are evaluated from highest to lowest priority where 0 is the
1729 # highest priority and 2147483647 is the lowest priority.
1730 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
1731 # and can be updated.
1732 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
1733 # rule.
1734 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
1735 # Example:
1736 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
1737 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
1738 # &#x27;mirror&#x27;. Cannot be specified for other actions.
1739 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
1740 # This field allows you to control which load balancers get this rule.
1741 # For example, the following are valid values:
1742 #
1743 #
1744 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
1745 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
1746 # - projects/project/global/
1747 # forwardingRules/forwardingRule
1748 # - projects/project/regions/region/forwardingRules/
1749 # forwardingRule
1750 &quot;A String&quot;,
1751 ],
1752 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
1753 # allows you to control which network&#x27;s VMs get this rule. If this field
1754 # is left blank, all VMs within the organization will receive the rule.
1755 &quot;A String&quot;,
1756 ],
1757 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
1758 # applies to. If targetSecureTag are specified, then the
1759 # firewall rule applies only to instances in the VPC network that have one
1760 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
1761 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
1762 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
1763 # to all instances on the specified network.
1764 # Maximum number of target label tags allowed is 256.
1765 {
1766 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1767 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1768 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1769 # or its network is deleted.
1770 },
1771 ],
1772 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
1773 # applied with this rule.
1774 &quot;A String&quot;,
1775 ],
1776 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
1777 # Default value is INSTANCES.
1778 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
1779 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
1780 # be set for other actions.
1781 },
1782 ],
1783 &quot;parent&quot;: &quot;A String&quot;, # Output only. [Output Only] The parent of the firewall policy.
1784 # This field is not applicable to network firewall policies.
1785 &quot;policySource&quot;: &quot;A String&quot;, # Indicates the source of this Firewall Policy. This field is optional on
1786 # creation and defaults to USER_DEFINED.
1787 #
1788 # The USER_DEFINED value indicates a regular firewall policy.
1789 #
1790 # The SYSTEM value indicates a system-level policy managed by an
1791 # internal service like GKE. This SYSTEM value is reserved for
1792 # internal services and cannot be set by users during policy creation.
1793 # Policies with a SYSTEM source cannot be modified or deleted by
1794 # users.
1795 &quot;policyType&quot;: &quot;A String&quot;, # The type of the firewall policy. This field can be one of
1796 # VPC_POLICY, RDMA_ROCE_POLICY or ULL_POLICY.
1797 #
1798 # Note: if not specified then VPC_POLICY will be used.
1799 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional firewall policy resides.
1800 # This field is not applicable to global firewall policies.
1801 # You must specify this field as part of the HTTP request URL. It is
1802 # not settable as a field in the request body.
1803 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall
1804 # policy can not exceed a set number of tuples.
1805 &quot;rules&quot;: [ # A list of rules that belong to this policy.
1806 # There must always be a default rule (rule with priority 2147483647 and
1807 # match &quot;*&quot;). If no rules are provided when creating a firewall policy, a
1808 # default rule with action &quot;allow&quot; will be added.
1809 { # Represents a rule that describes one or more match conditions along with
1810 # the action to be taken when traffic matches this condition (allow or deny).
1811 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
1812 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
1813 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
1814 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
1815 # and &quot;goto_next&quot;.
1816 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
1817 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
1818 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
1819 # the firewall policy rule is not enforced and traffic behaves as if it did
1820 # not exist. If this is unspecified, the firewall policy rule will be
1821 # enabled.
1822 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
1823 # enabled, logs will be exported to the configured export destination in
1824 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
1825 # cannot enable logging on &quot;goto_next&quot; rules.
1826 &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.
1827 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
1828 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
1829 # Exactly one field must be specified.
1830 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
1831 # Maximum number of destination address groups is 10.
1832 &quot;A String&quot;,
1833 ],
1834 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
1835 # traffic destination.
1836 # Maximum number of destination fqdn allowed is 100.
1837 &quot;A String&quot;,
1838 ],
1839 &quot;destIpRanges&quot;: [ # CIDR IP address range.
1840 # Maximum number of destination CIDR IP ranges allowed is 5000.
1841 &quot;A String&quot;,
1842 ],
1843 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
1844 #
1845 #
1846 # - UNSPECIFIED
1847 # - INTERNET
1848 # - NON_INTERNET
1849 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
1850 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
1851 #
1852 #
1853 # - UNSPECIFIED
1854 # - INTERNET
1855 # - NON_INTERNET
1856 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
1857 # of traffic. Should be specified as 2 letter country code defined as per
1858 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
1859 # Maximum number of dest region codes allowed is 5000.
1860 &quot;A String&quot;,
1861 ],
1862 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1863 # The IPs in these lists will be matched against traffic destination.
1864 &quot;A String&quot;,
1865 ],
1866 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
1867 {
1868 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
1869 # required when creating a firewall rule. This value can either be
1870 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
1871 # protocol number.
1872 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
1873 # only applicable for UDP or TCP protocol. Each entry must be either
1874 # an integer or a range. If not specified, this rule applies to
1875 # connections through any port.
1876 #
1877 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
1878 &quot;A String&quot;,
1879 ],
1880 },
1881 ],
1882 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
1883 # Maximum number of source address groups is 10.
1884 &quot;A String&quot;,
1885 ],
1886 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
1887 # traffic source.
1888 # Maximum number of source fqdn allowed is 100.
1889 &quot;A String&quot;,
1890 ],
1891 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
1892 # Maximum number of source CIDR IP ranges allowed is 5000.
1893 &quot;A String&quot;,
1894 ],
1895 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
1896 #
1897 #
1898 # - UNSPECIFIED
1899 # - INTERNET
1900 # - INTRA_VPC
1901 # - NON_INTERNET
1902 # - VPC_NETWORKS
1903 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
1904 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
1905 #
1906 #
1907 # - UNSPECIFIED
1908 # - INTERNET
1909 # - INTRA_VPC
1910 # - NON_INTERNET
1911 # - VPC_NETWORKS
1912 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
1913 &quot;A String&quot;,
1914 ],
1915 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
1916 # of traffic. Should be specified as 2 letter country code defined as per
1917 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
1918 # Maximum number of source region codes allowed is 5000.
1919 &quot;A String&quot;,
1920 ],
1921 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
1922 # of the traffic.
1923 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
1924 # and there is no srcIpRange, this rule will be ignored.
1925 # Maximum number of source tag values allowed is 256.
1926 {
1927 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1928 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1929 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1930 # or its network is deleted.
1931 },
1932 ],
1933 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1934 # The IPs in these lists will be matched against traffic source.
1935 &quot;A String&quot;,
1936 ],
1937 },
1938 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
1939 # must be a positive value between 0 and 2147483647.
1940 # Rules are evaluated from highest to lowest priority where 0 is the
1941 # highest priority and 2147483647 is the lowest priority.
1942 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
1943 # and can be updated.
1944 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
1945 # rule.
1946 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
1947 # Example:
1948 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
1949 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
1950 # &#x27;mirror&#x27;. Cannot be specified for other actions.
1951 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
1952 # This field allows you to control which load balancers get this rule.
1953 # For example, the following are valid values:
1954 #
1955 #
1956 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
1957 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
1958 # - projects/project/global/
1959 # forwardingRules/forwardingRule
1960 # - projects/project/regions/region/forwardingRules/
1961 # forwardingRule
1962 &quot;A String&quot;,
1963 ],
1964 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
1965 # allows you to control which network&#x27;s VMs get this rule. If this field
1966 # is left blank, all VMs within the organization will receive the rule.
1967 &quot;A String&quot;,
1968 ],
1969 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
1970 # applies to. If targetSecureTag are specified, then the
1971 # firewall rule applies only to instances in the VPC network that have one
1972 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
1973 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
1974 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
1975 # to all instances on the specified network.
1976 # Maximum number of target label tags allowed is 256.
1977 {
1978 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1979 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1980 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1981 # or its network is deleted.
1982 },
1983 ],
1984 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
1985 # applied with this rule.
1986 &quot;A String&quot;,
1987 ],
1988 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
1989 # Default value is INSTANCES.
1990 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
1991 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
1992 # be set for other actions.
1993 },
1994 ],
1995 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1996 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
1997 &quot;shortName&quot;: &quot;A String&quot;, # User-provided name of the Organization firewall policy. The name should be
1998 # unique in the organization in which the firewall policy is created.
1999 # This field is not applicable to network firewall policies.
2000 # This name must be set on creation and cannot be changed. The name must be
2001 # 1-63 characters long, and comply with RFC1035.
2002 # Specifically, the name must be 1-63 characters long and match the regular
2003 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
2004 # character must be a lowercase letter, and all following characters must
2005 # be a dash, lowercase letter, or digit, except the last character, which
2006 # cannot be a dash.
2007 }</pre>
2008 </div>
2009
2010 <div class="method">
2011 <code class="details" id="getAssociation">getAssociation(project, region, firewallPolicy, name=None, x__xgafv=None)</code>
2012 <pre>Gets an association with the specified name.
2013
2014 Args:
2015 project: string, Project ID for this request. (required)
2016 region: string, Name of the region scoping this request. (required)
2017 firewallPolicy: string, Name of the firewall policy to which the queried association belongs. (required)
2018 name: string, The name of the association to get from the firewall policy.
2019 x__xgafv: string, V1 error format.
2020 Allowed values
2021 1 - v1 error format
2022 2 - v2 error format
2023
2024 Returns:
2025 An object of the form:
2026
2027 {
2028 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
2029 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
2030 # of the firewall policy of the association.
2031 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
2032 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
2033 &quot;priority&quot;: 42, # An integer indicating the priority of an association. The priority
2034 # must be a positive value between 1 and 2147483647.
2035 # Firewall Policies are evaluated from highest to lowest priority where 1
2036 # is the highest priority and 2147483647 is the lowest priority.
2037 # The default value is `1000`. If two associations have the same priority
2038 # then lexicographical order on association names is applied.
2039 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
2040 }</pre>
2041 </div>
2042
2043 <div class="method">
2044 <code class="details" id="getEffectiveFirewalls">getEffectiveFirewalls(project, region, network, x__xgafv=None)</code>
2045 <pre>Returns the effective firewalls on a given network.
2046
2047 Args:
2048 project: string, Project ID for this request. (required)
2049 region: string, Name of the region scoping this request. (required)
2050 network: string, Network reference (required)
2051 x__xgafv: string, V1 error format.
2052 Allowed values
2053 1 - v1 error format
2054 2 - v2 error format
2055
2056 Returns:
2057 An object of the form:
2058
2059 {
2060 &quot;firewallPolicys&quot;: [ # Output only. [Output only] Effective firewalls from firewall policy. It applies to
2061 # Regional Network Firewall Policies in the specified region, Global Network
2062 # Firewall Policies and Hierachial Firewall Policies which are associated
2063 # with the network.
2064 {
2065 &quot;displayName&quot;: &quot;A String&quot;, # Output only. [Output Only] The display name of the firewall policy.
2066 &quot;name&quot;: &quot;A String&quot;, # Output only. [Output Only] The name of the firewall policy.
2067 &quot;packetMirroringRules&quot;: [ # Output only. [Output only] The packet mirroring rules that apply to the network.
2068 { # Represents a rule that describes one or more match conditions along with
2069 # the action to be taken when traffic matches this condition (allow or deny).
2070 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
2071 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
2072 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
2073 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
2074 # and &quot;goto_next&quot;.
2075 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
2076 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
2077 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
2078 # the firewall policy rule is not enforced and traffic behaves as if it did
2079 # not exist. If this is unspecified, the firewall policy rule will be
2080 # enabled.
2081 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
2082 # enabled, logs will be exported to the configured export destination in
2083 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
2084 # cannot enable logging on &quot;goto_next&quot; rules.
2085 &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.
2086 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
2087 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
2088 # Exactly one field must be specified.
2089 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
2090 # Maximum number of destination address groups is 10.
2091 &quot;A String&quot;,
2092 ],
2093 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
2094 # traffic destination.
2095 # Maximum number of destination fqdn allowed is 100.
2096 &quot;A String&quot;,
2097 ],
2098 &quot;destIpRanges&quot;: [ # CIDR IP address range.
2099 # Maximum number of destination CIDR IP ranges allowed is 5000.
2100 &quot;A String&quot;,
2101 ],
2102 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
2103 #
2104 #
2105 # - UNSPECIFIED
2106 # - INTERNET
2107 # - NON_INTERNET
2108 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
2109 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
2110 #
2111 #
2112 # - UNSPECIFIED
2113 # - INTERNET
2114 # - NON_INTERNET
2115 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
2116 # of traffic. Should be specified as 2 letter country code defined as per
2117 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
2118 # Maximum number of dest region codes allowed is 5000.
2119 &quot;A String&quot;,
2120 ],
2121 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
2122 # The IPs in these lists will be matched against traffic destination.
2123 &quot;A String&quot;,
2124 ],
2125 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
2126 {
2127 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
2128 # required when creating a firewall rule. This value can either be
2129 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
2130 # protocol number.
2131 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
2132 # only applicable for UDP or TCP protocol. Each entry must be either
2133 # an integer or a range. If not specified, this rule applies to
2134 # connections through any port.
2135 #
2136 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
2137 &quot;A String&quot;,
2138 ],
2139 },
2140 ],
2141 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
2142 # Maximum number of source address groups is 10.
2143 &quot;A String&quot;,
2144 ],
2145 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
2146 # traffic source.
2147 # Maximum number of source fqdn allowed is 100.
2148 &quot;A String&quot;,
2149 ],
2150 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
2151 # Maximum number of source CIDR IP ranges allowed is 5000.
2152 &quot;A String&quot;,
2153 ],
2154 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
2155 #
2156 #
2157 # - UNSPECIFIED
2158 # - INTERNET
2159 # - INTRA_VPC
2160 # - NON_INTERNET
2161 # - VPC_NETWORKS
2162 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
2163 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
2164 #
2165 #
2166 # - UNSPECIFIED
2167 # - INTERNET
2168 # - INTRA_VPC
2169 # - NON_INTERNET
2170 # - VPC_NETWORKS
2171 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
2172 &quot;A String&quot;,
2173 ],
2174 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
2175 # of traffic. Should be specified as 2 letter country code defined as per
2176 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
2177 # Maximum number of source region codes allowed is 5000.
2178 &quot;A String&quot;,
2179 ],
2180 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
2181 # of the traffic.
2182 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
2183 # and there is no srcIpRange, this rule will be ignored.
2184 # Maximum number of source tag values allowed is 256.
2185 {
2186 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2187 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2188 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2189 # or its network is deleted.
2190 },
2191 ],
2192 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
2193 # The IPs in these lists will be matched against traffic source.
2194 &quot;A String&quot;,
2195 ],
2196 },
2197 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
2198 # must be a positive value between 0 and 2147483647.
2199 # Rules are evaluated from highest to lowest priority where 0 is the
2200 # highest priority and 2147483647 is the lowest priority.
2201 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
2202 # and can be updated.
2203 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
2204 # rule.
2205 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
2206 # Example:
2207 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
2208 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
2209 # &#x27;mirror&#x27;. Cannot be specified for other actions.
2210 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
2211 # This field allows you to control which load balancers get this rule.
2212 # For example, the following are valid values:
2213 #
2214 #
2215 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
2216 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
2217 # - projects/project/global/
2218 # forwardingRules/forwardingRule
2219 # - projects/project/regions/region/forwardingRules/
2220 # forwardingRule
2221 &quot;A String&quot;,
2222 ],
2223 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
2224 # allows you to control which network&#x27;s VMs get this rule. If this field
2225 # is left blank, all VMs within the organization will receive the rule.
2226 &quot;A String&quot;,
2227 ],
2228 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
2229 # applies to. If targetSecureTag are specified, then the
2230 # firewall rule applies only to instances in the VPC network that have one
2231 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
2232 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
2233 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
2234 # to all instances on the specified network.
2235 # Maximum number of target label tags allowed is 256.
2236 {
2237 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2238 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2239 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2240 # or its network is deleted.
2241 },
2242 ],
2243 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
2244 # applied with this rule.
2245 &quot;A String&quot;,
2246 ],
2247 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
2248 # Default value is INSTANCES.
2249 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
2250 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
2251 # be set for other actions.
2252 },
2253 ],
2254 &quot;priority&quot;: 42, # Output only. [Output only] Priority of firewall policy association. Not applicable for
2255 # type=HIERARCHY.
2256 &quot;rules&quot;: [ # Output only. [Output only] The rules that apply to the network.
2257 { # Represents a rule that describes one or more match conditions along with
2258 # the action to be taken when traffic matches this condition (allow or deny).
2259 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
2260 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
2261 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
2262 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
2263 # and &quot;goto_next&quot;.
2264 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
2265 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
2266 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
2267 # the firewall policy rule is not enforced and traffic behaves as if it did
2268 # not exist. If this is unspecified, the firewall policy rule will be
2269 # enabled.
2270 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
2271 # enabled, logs will be exported to the configured export destination in
2272 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
2273 # cannot enable logging on &quot;goto_next&quot; rules.
2274 &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.
2275 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
2276 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
2277 # Exactly one field must be specified.
2278 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
2279 # Maximum number of destination address groups is 10.
2280 &quot;A String&quot;,
2281 ],
2282 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
2283 # traffic destination.
2284 # Maximum number of destination fqdn allowed is 100.
2285 &quot;A String&quot;,
2286 ],
2287 &quot;destIpRanges&quot;: [ # CIDR IP address range.
2288 # Maximum number of destination CIDR IP ranges allowed is 5000.
2289 &quot;A String&quot;,
2290 ],
2291 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
2292 #
2293 #
2294 # - UNSPECIFIED
2295 # - INTERNET
2296 # - NON_INTERNET
2297 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
2298 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
2299 #
2300 #
2301 # - UNSPECIFIED
2302 # - INTERNET
2303 # - NON_INTERNET
2304 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
2305 # of traffic. Should be specified as 2 letter country code defined as per
2306 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
2307 # Maximum number of dest region codes allowed is 5000.
2308 &quot;A String&quot;,
2309 ],
2310 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
2311 # The IPs in these lists will be matched against traffic destination.
2312 &quot;A String&quot;,
2313 ],
2314 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
2315 {
2316 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
2317 # required when creating a firewall rule. This value can either be
2318 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
2319 # protocol number.
2320 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
2321 # only applicable for UDP or TCP protocol. Each entry must be either
2322 # an integer or a range. If not specified, this rule applies to
2323 # connections through any port.
2324 #
2325 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
2326 &quot;A String&quot;,
2327 ],
2328 },
2329 ],
2330 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
2331 # Maximum number of source address groups is 10.
2332 &quot;A String&quot;,
2333 ],
2334 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
2335 # traffic source.
2336 # Maximum number of source fqdn allowed is 100.
2337 &quot;A String&quot;,
2338 ],
2339 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
2340 # Maximum number of source CIDR IP ranges allowed is 5000.
2341 &quot;A String&quot;,
2342 ],
2343 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
2344 #
2345 #
2346 # - UNSPECIFIED
2347 # - INTERNET
2348 # - INTRA_VPC
2349 # - NON_INTERNET
2350 # - VPC_NETWORKS
2351 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
2352 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
2353 #
2354 #
2355 # - UNSPECIFIED
2356 # - INTERNET
2357 # - INTRA_VPC
2358 # - NON_INTERNET
2359 # - VPC_NETWORKS
2360 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
2361 &quot;A String&quot;,
2362 ],
2363 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
2364 # of traffic. Should be specified as 2 letter country code defined as per
2365 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
2366 # Maximum number of source region codes allowed is 5000.
2367 &quot;A String&quot;,
2368 ],
2369 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
2370 # of the traffic.
2371 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
2372 # and there is no srcIpRange, this rule will be ignored.
2373 # Maximum number of source tag values allowed is 256.
2374 {
2375 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2376 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2377 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2378 # or its network is deleted.
2379 },
2380 ],
2381 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
2382 # The IPs in these lists will be matched against traffic source.
2383 &quot;A String&quot;,
2384 ],
2385 },
2386 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
2387 # must be a positive value between 0 and 2147483647.
2388 # Rules are evaluated from highest to lowest priority where 0 is the
2389 # highest priority and 2147483647 is the lowest priority.
2390 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
2391 # and can be updated.
2392 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
2393 # rule.
2394 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
2395 # Example:
2396 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
2397 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
2398 # &#x27;mirror&#x27;. Cannot be specified for other actions.
2399 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
2400 # This field allows you to control which load balancers get this rule.
2401 # For example, the following are valid values:
2402 #
2403 #
2404 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
2405 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
2406 # - projects/project/global/
2407 # forwardingRules/forwardingRule
2408 # - projects/project/regions/region/forwardingRules/
2409 # forwardingRule
2410 &quot;A String&quot;,
2411 ],
2412 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
2413 # allows you to control which network&#x27;s VMs get this rule. If this field
2414 # is left blank, all VMs within the organization will receive the rule.
2415 &quot;A String&quot;,
2416 ],
2417 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
2418 # applies to. If targetSecureTag are specified, then the
2419 # firewall rule applies only to instances in the VPC network that have one
2420 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
2421 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
2422 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
2423 # to all instances on the specified network.
2424 # Maximum number of target label tags allowed is 256.
2425 {
2426 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2427 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2428 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2429 # or its network is deleted.
2430 },
2431 ],
2432 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
2433 # applied with this rule.
2434 &quot;A String&quot;,
2435 ],
2436 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
2437 # Default value is INSTANCES.
2438 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
2439 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
2440 # be set for other actions.
2441 },
2442 ],
2443 &quot;type&quot;: &quot;A String&quot;, # Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY,
2444 # NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL.
2445 },
2446 ],
2447 &quot;firewalls&quot;: [ # Effective firewalls on the network.
2448 { # Represents a Firewall Rule resource.
2449 #
2450 # Firewall rules allow or deny ingress traffic to, and egress traffic from your
2451 # instances. For more information, readFirewall rules.
2452 &quot;allowed&quot;: [ # The list of ALLOW rules specified by this firewall. Each rule specifies a
2453 # protocol and port-range tuple that describes a permitted connection.
2454 {
2455 &quot;IPProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
2456 # required when creating a firewall rule. This value can either be one of the
2457 # following well known protocol strings (tcp, udp,icmp, esp, ah, ipip,sctp) or the IP protocol number.
2458 &quot;ports&quot;: [ # An optional list of ports to which this rule applies.
2459 # This field is only applicable for the UDP or TCP protocol.
2460 # Each entry must be either an integer or a range.
2461 # If not specified, this rule applies to connections through any port.
2462 #
2463 # Example inputs include: [&quot;22&quot;], [&quot;80&quot;,&quot;443&quot;],
2464 # and [&quot;12345-12349&quot;].
2465 &quot;A String&quot;,
2466 ],
2467 },
2468 ],
2469 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
2470 # text format.
2471 &quot;denied&quot;: [ # The list of DENY rules specified by this firewall. Each rule specifies a
2472 # protocol and port-range tuple that describes a denied connection.
2473 {
2474 &quot;IPProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
2475 # required when creating a firewall rule. This value can either be one of the
2476 # following well known protocol strings (tcp, udp,icmp, esp, ah, ipip,sctp) or the IP protocol number.
2477 &quot;ports&quot;: [ # An optional list of ports to which this rule applies.
2478 # This field is only applicable for the UDP or TCP protocol.
2479 # Each entry must be either an integer or a range.
2480 # If not specified, this rule applies to connections through any port.
2481 #
2482 # Example inputs include: [&quot;22&quot;], [&quot;80&quot;,&quot;443&quot;],
2483 # and [&quot;12345-12349&quot;].
2484 &quot;A String&quot;,
2485 ],
2486 },
2487 ],
2488 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this field when you
2489 # create the resource.
2490 &quot;destinationRanges&quot;: [ # If destination ranges are specified, the firewall rule applies only to
2491 # traffic that has destination IP address in these ranges. These ranges must
2492 # be expressed inCIDR format. Both IPv4 and IPv6 are supported.
2493 &quot;A String&quot;,
2494 ],
2495 &quot;direction&quot;: &quot;A String&quot;, # Direction of traffic to which this firewall applies, either `INGRESS` or
2496 # `EGRESS`. The default is `INGRESS`. For `EGRESS` traffic, you cannot
2497 # specify the sourceTags fields.
2498 &quot;disabled&quot;: True or False, # Denotes whether the firewall rule is disabled. When set to true, the
2499 # firewall rule is not enforced and the network behaves as if it did not
2500 # exist. If this is unspecified, the firewall rule will be enabled.
2501 &quot;enableLogging&quot;: True or False, # Deprecated in favor of enable in LogConfig.
2502 # This field denotes whether to enable logging for a particular
2503 # firewall rule. If logging is enabled, logs will be exported t
2504 # Cloud Logging.
2505 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
2506 # defined by the server.
2507 &quot;kind&quot;: &quot;compute#firewall&quot;, # Output only. [Output Only] Type of the resource. Always compute#firewall
2508 # for firewall rules.
2509 &quot;logConfig&quot;: { # The available logging options for a firewall rule. # This field denotes the logging options for a particular firewall rule. If
2510 # logging is enabled, logs will be exported to Cloud Logging.
2511 &quot;enable&quot;: True or False, # This field denotes whether to enable logging for a particular firewall
2512 # rule.
2513 &quot;metadata&quot;: &quot;A String&quot;, # This field can only be specified for a particular firewall rule if
2514 # logging is enabled for that rule. This field denotes whether to include
2515 # or exclude metadata for firewall logs.
2516 },
2517 &quot;name&quot;: &quot;A String&quot;, # Name of the resource; provided by the client when the resource is created.
2518 # The name must be 1-63 characters long, and comply withRFC1035.
2519 # Specifically, the name must be 1-63 characters long and match the regular
2520 # expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character
2521 # must be a lowercase letter, and all following characters (except for the
2522 # last character) must be a dash, lowercase letter, or digit. The last
2523 # character must be a lowercase letter or digit.
2524 &quot;network&quot;: &quot;A String&quot;, # URL of the network resource for this firewall rule. If not
2525 # specified when creating a firewall rule, the default network
2526 # is used:
2527 #
2528 # global/networks/default
2529 #
2530 # If you choose to specify this field, you can specify the network as a full
2531 # or partial URL. For example, the following are all valid URLs:
2532 #
2533 # -
2534 # https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network
2535 # - projects/myproject/global/networks/my-network
2536 # - global/networks/default
2537 &quot;params&quot;: { # Additional firewall parameters. # Input only. [Input Only] Additional params passed with the request, but not persisted
2538 # as part of resource payload.
2539 &quot;resourceManagerTags&quot;: { # Tag keys/values directly bound to this resource.
2540 # Tag keys and values have the same definition as resource
2541 # manager tags. The field is allowed for INSERT
2542 # only. The keys/values to set on the resource should be specified in
2543 # either ID { : } or Namespaced format
2544 # { : }.
2545 # For example the following are valid inputs:
2546 # * {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;tagKeys/123&quot; : &quot;tagValues/456&quot;}
2547 # * {&quot;123/environment&quot; : &quot;production&quot;, &quot;345/abc&quot; : &quot;xyz&quot;}
2548 # Note:
2549 # * Invalid combinations of ID &amp; namespaced format is not supported. For
2550 # instance: {&quot;123/environment&quot; : &quot;tagValues/444&quot;} is invalid.
2551 &quot;a_key&quot;: &quot;A String&quot;,
2552 },
2553 },
2554 &quot;priority&quot;: 42, # Priority for this rule.
2555 # This is an integer between `0` and `65535`, both inclusive.
2556 # The default value is `1000`.
2557 # Relative priorities determine which rule takes effect if multiple rules
2558 # apply. Lower values indicate higher priority. For example, a rule with
2559 # priority `0` has higher precedence than a rule with priority `1`.
2560 # DENY rules take precedence over ALLOW rules if they have equal priority.
2561 # Note that VPC networks have implied
2562 # rules with a priority of `65535`. To avoid conflicts with the implied
2563 # rules, use a priority number less than `65535`.
2564 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
2565 &quot;sourceRanges&quot;: [ # If source ranges are specified, the firewall rule applies only to traffic
2566 # that has a source IP address in these ranges. These ranges must be
2567 # expressed inCIDR format. One or both of sourceRanges
2568 # and sourceTags may be set.
2569 # If both fields are set, the rule applies to traffic that has a
2570 # source IP address within sourceRanges OR a source IP
2571 # from a resource with a matching tag listed in thesourceTags field. The connection does not need to match
2572 # both fields for the rule to
2573 # apply. Both IPv4 and IPv6 are supported.
2574 &quot;A String&quot;,
2575 ],
2576 &quot;sourceServiceAccounts&quot;: [ # If source service accounts are specified, the firewall rules apply only to
2577 # traffic originating from an instance with a service account in this list.
2578 # Source service accounts cannot be used to control traffic to an instance&#x27;s
2579 # external IP address because service accounts are associated with an
2580 # instance, not an IP address.sourceRanges can be set at the same time assourceServiceAccounts.
2581 # If both are set, the firewall applies to traffic that
2582 # has a source IP address within the sourceRanges OR a source
2583 # IP that belongs to an instance with service account listed insourceServiceAccount. The connection does not need to match
2584 # both fields for the firewall to apply.sourceServiceAccounts cannot be used at the same time assourceTags or targetTags.
2585 &quot;A String&quot;,
2586 ],
2587 &quot;sourceTags&quot;: [ # If source tags are specified, the firewall rule applies only to traffic
2588 # with source IPs that match the primary network interfaces of VM instances
2589 # that have the tag and are in the same VPC network.
2590 # Source tags cannot be used to control traffic to an instance&#x27;s external IP
2591 # address, it only applies to traffic between instances in the same virtual
2592 # network. Because tags are associated with instances, not IP addresses.
2593 # One or both of sourceRanges and sourceTags may be
2594 # set. If both fields are set, the firewall applies to traffic that has a
2595 # source IP address within sourceRanges OR a source IP from a
2596 # resource with a matching tag listed in the sourceTags
2597 # field. The connection does not need to match both fields for the
2598 # firewall to apply.
2599 &quot;A String&quot;,
2600 ],
2601 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating sets of instances located in the
2602 # network that may make network connections as specified inallowed[].targetServiceAccounts cannot be used at the same time astargetTags or sourceTags.
2603 # If neither targetServiceAccounts nor targetTags
2604 # are specified, the firewall rule applies to all instances on the specified
2605 # network.
2606 &quot;A String&quot;,
2607 ],
2608 &quot;targetTags&quot;: [ # A list of tags that controls which instances the firewall rule
2609 # applies to. If targetTags are specified, then the firewall
2610 # rule applies only to instances in the VPC network that have one of those
2611 # tags. If no targetTags are specified, the firewall rule
2612 # applies to all instances on the specified network.
2613 &quot;A String&quot;,
2614 ],
2615 },
2616 ],
2617 }</pre>
2618 </div>
2619
2620 <div class="method">
2621 <code class="details" id="getIamPolicy">getIamPolicy(project, region, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</code>
2622 <pre>Gets the access control policy for a resource. May be empty if no such
2623 policy or resource exists.
2624
2625 Args:
2626 project: string, Project ID for this request. (required)
2627 region: string, The name of the region for this request. (required)
2628 resource: string, Name or id of the resource for this request. (required)
2629 optionsRequestedPolicyVersion: integer, Requested IAM Policy version.
2630 x__xgafv: string, V1 error format.
2631 Allowed values
2632 1 - v1 error format
2633 2 - v2 error format
2634
2635 Returns:
2636 An object of the form:
2637
2638 { # An Identity and Access Management (IAM) policy, which specifies access
2639 # controls for Google Cloud resources.
2640 #
2641 #
2642 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
2643 # `members`, or principals, to a single `role`. Principals can be user
2644 # accounts, service accounts, Google groups, and domains (such as G Suite). A
2645 # `role` is a named list of permissions; each `role` can be an IAM predefined
2646 # role or a user-created custom role.
2647 #
2648 # For some types of Google Cloud resources, a `binding` can also specify a
2649 # `condition`, which is a logical expression that allows access to a resource
2650 # only if the expression evaluates to `true`. A condition can add constraints
2651 # based on attributes of the request, the resource, or both. To learn which
2652 # resources support conditions in their IAM policies, see the
2653 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2654 #
2655 # **JSON example:**
2656 #
2657 # ```
2658 # {
2659 # &quot;bindings&quot;: [
2660 # {
2661 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
2662 # &quot;members&quot;: [
2663 # &quot;user:[email protected]&quot;,
2664 # &quot;group:[email protected]&quot;,
2665 # &quot;domain:google.com&quot;,
2666 # &quot;serviceAccount:[email protected]&quot;
2667 # ]
2668 # },
2669 # {
2670 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
2671 # &quot;members&quot;: [
2672 # &quot;user:[email protected]&quot;
2673 # ],
2674 # &quot;condition&quot;: {
2675 # &quot;title&quot;: &quot;expirable access&quot;,
2676 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
2677 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
2678 # }
2679 # }
2680 # ],
2681 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
2682 # &quot;version&quot;: 3
2683 # }
2684 # ```
2685 #
2686 # **YAML example:**
2687 #
2688 # ```
2689 # bindings:
2690 # - members:
2691 # - user:[email protected]
2692 # - group:[email protected]
2693 # - domain:google.com
2694 # - serviceAccount:[email protected]
2695 # role: roles/resourcemanager.organizationAdmin
2696 # - members:
2697 # - user:[email protected]
2698 # role: roles/resourcemanager.organizationViewer
2699 # condition:
2700 # title: expirable access
2701 # description: Does not grant access after Sep 2020
2702 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
2703 # etag: BwWWja0YfJA=
2704 # version: 3
2705 # ```
2706 #
2707 # For a description of IAM and its features, see the
2708 # [IAM documentation](https://cloud.google.com/iam/docs/).
2709 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
2710 { # Specifies the audit configuration for a service.
2711 # The configuration determines which permission types are logged, and what
2712 # identities, if any, are exempted from logging.
2713 # An AuditConfig must have one or more AuditLogConfigs.
2714 #
2715 # If there are AuditConfigs for both `allServices` and a specific service,
2716 # the union of the two AuditConfigs is used for that service: the log_types
2717 # specified in each AuditConfig are enabled, and the exempted_members in each
2718 # AuditLogConfig are exempted.
2719 #
2720 # Example Policy with multiple AuditConfigs:
2721 #
2722 # {
2723 # &quot;audit_configs&quot;: [
2724 # {
2725 # &quot;service&quot;: &quot;allServices&quot;,
2726 # &quot;audit_log_configs&quot;: [
2727 # {
2728 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2729 # &quot;exempted_members&quot;: [
2730 # &quot;user:[email protected]&quot;
2731 # ]
2732 # },
2733 # {
2734 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
2735 # },
2736 # {
2737 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
2738 # }
2739 # ]
2740 # },
2741 # {
2742 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
2743 # &quot;audit_log_configs&quot;: [
2744 # {
2745 # &quot;log_type&quot;: &quot;DATA_READ&quot;
2746 # },
2747 # {
2748 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
2749 # &quot;exempted_members&quot;: [
2750 # &quot;user:[email protected]&quot;
2751 # ]
2752 # }
2753 # ]
2754 # }
2755 # ]
2756 # }
2757 #
2758 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
2759 # logging. It also exempts `[email protected]` from DATA_READ logging, and
2760 # `[email protected]` from DATA_WRITE logging.
2761 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
2762 { # Provides the configuration for logging a type of permissions.
2763 # Example:
2764 #
2765 # {
2766 # &quot;audit_log_configs&quot;: [
2767 # {
2768 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2769 # &quot;exempted_members&quot;: [
2770 # &quot;user:[email protected]&quot;
2771 # ]
2772 # },
2773 # {
2774 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
2775 # }
2776 # ]
2777 # }
2778 #
2779 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
2780 # [email protected] from DATA_READ logging.
2781 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
2782 # permission.
2783 # Follows the same format of Binding.members.
2784 &quot;A String&quot;,
2785 ],
2786 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
2787 },
2788 ],
2789 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
2790 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
2791 # `allServices` is a special value that covers all services.
2792 },
2793 ],
2794 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
2795 # may specify a `condition` that determines how and when the `bindings` are
2796 # applied. Each of the `bindings` must contain at least one principal.
2797 #
2798 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
2799 # of these principals can be Google groups. Each occurrence of a principal
2800 # counts towards these limits. For example, if the `bindings` grant 50
2801 # different roles to `user:[email protected]`, and not to any other
2802 # principal, then you can add another 1,450 principals to the `bindings` in
2803 # the `Policy`.
2804 { # Associates `members`, or principals, with a `role`.
2805 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
2806 #
2807 # If the condition evaluates to `true`, then this binding applies to the
2808 # current request.
2809 #
2810 # If the condition evaluates to `false`, then this binding does not apply to
2811 # the current request. However, a different role binding might grant the same
2812 # role to one or more of the principals in this binding.
2813 #
2814 # To learn which resources support conditions in their IAM policies, see the
2815 # [IAM
2816 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2817 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
2818 # are documented at https://github.com/google/cel-spec.
2819 #
2820 # Example (Comparison):
2821 #
2822 # title: &quot;Summary size limit&quot;
2823 # description: &quot;Determines if a summary is less than 100 chars&quot;
2824 # expression: &quot;document.summary.size() &lt; 100&quot;
2825 #
2826 # Example (Equality):
2827 #
2828 # title: &quot;Requestor is owner&quot;
2829 # description: &quot;Determines if requestor is the document owner&quot;
2830 # expression: &quot;document.owner == request.auth.claims.email&quot;
2831 #
2832 # Example (Logic):
2833 #
2834 # title: &quot;Public documents&quot;
2835 # description: &quot;Determine whether the document should be publicly visible&quot;
2836 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
2837 #
2838 # Example (Data Manipulation):
2839 #
2840 # title: &quot;Notification string&quot;
2841 # description: &quot;Create a notification string with a timestamp.&quot;
2842 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
2843 #
2844 # The exact variables and functions that may be referenced within an expression
2845 # are determined by the service that evaluates it. See the service
2846 # documentation for additional information.
2847 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
2848 # describes the expression, e.g. when hovered over it in a UI.
2849 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
2850 # syntax.
2851 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
2852 # reporting, e.g. a file name and a position in the file.
2853 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
2854 # its purpose. This can be used e.g. in UIs which allow to enter the
2855 # expression.
2856 },
2857 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
2858 # `members` can have the following values:
2859 #
2860 # * `allUsers`: A special identifier that represents anyone who is
2861 # on the internet; with or without a Google account.
2862 #
2863 # * `allAuthenticatedUsers`: A special identifier that represents anyone
2864 # who is authenticated with a Google account or a service account.
2865 # Does not include identities that come from external identity providers
2866 # (IdPs) through identity federation.
2867 #
2868 # * `user:{emailid}`: An email address that represents a specific Google
2869 # account. For example, `[email protected]` .
2870 #
2871 #
2872 # * `serviceAccount:{emailid}`: An email address that represents a Google
2873 # service account. For example,
2874 # `[email protected]`.
2875 #
2876 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
2877 # identifier for a
2878 # [Kubernetes service
2879 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
2880 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
2881 #
2882 # * `group:{emailid}`: An email address that represents a Google group.
2883 # For example, `[email protected]`.
2884 #
2885 #
2886 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
2887 # users of that domain. For example, `google.com` or `example.com`.
2888 #
2889 #
2890 #
2891 #
2892 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
2893 # A single identity in a workforce identity pool.
2894 #
2895 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
2896 # All workforce identities in a group.
2897 #
2898 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
2899 # All workforce identities with a specific attribute value.
2900 #
2901 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
2902 # All identities in a workforce identity pool.
2903 #
2904 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
2905 # A single identity in a workload identity pool.
2906 #
2907 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
2908 # A workload identity pool group.
2909 #
2910 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
2911 # All identities in a workload identity pool with a certain attribute.
2912 #
2913 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
2914 # All identities in a workload identity pool.
2915 #
2916 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
2917 # identifier) representing a user that has been recently deleted. For
2918 # example, `[email protected]?uid=123456789012345678901`. If the user is
2919 # recovered, this value reverts to `user:{emailid}` and the recovered user
2920 # retains the role in the binding.
2921 #
2922 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
2923 # unique identifier) representing a service account that has been recently
2924 # deleted. For example,
2925 # `[email protected]?uid=123456789012345678901`.
2926 # If the service account is undeleted, this value reverts to
2927 # `serviceAccount:{emailid}` and the undeleted service account retains the
2928 # role in the binding.
2929 #
2930 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
2931 # identifier) representing a Google group that has been recently
2932 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
2933 # the group is recovered, this value reverts to `group:{emailid}` and the
2934 # recovered group retains the role in the binding.
2935 #
2936 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
2937 # Deleted single identity in a workforce identity pool. For example,
2938 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
2939 &quot;A String&quot;,
2940 ],
2941 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
2942 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2943 #
2944 # For an overview of the IAM roles and permissions, see the
2945 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
2946 # a list of the available pre-defined roles, see
2947 # [here](https://cloud.google.com/iam/docs/understanding-roles).
2948 },
2949 ],
2950 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
2951 # prevent simultaneous updates of a policy from overwriting each other.
2952 # It is strongly suggested that systems make use of the `etag` in the
2953 # read-modify-write cycle to perform policy updates in order to avoid race
2954 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
2955 # systems are expected to put that etag in the request to `setIamPolicy` to
2956 # ensure that their change will be applied to the same version of the policy.
2957 #
2958 # **Important:** If you use IAM Conditions, you must include the `etag` field
2959 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2960 # you to overwrite a version `3` policy with a version `1` policy, and all of
2961 # the conditions in the version `3` policy are lost.
2962 &quot;version&quot;: 42, # Specifies the format of the policy.
2963 #
2964 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
2965 # are rejected.
2966 #
2967 # Any operation that affects conditional role bindings must specify version
2968 # `3`. This requirement applies to the following operations:
2969 #
2970 # * Getting a policy that includes a conditional role binding
2971 # * Adding a conditional role binding to a policy
2972 # * Changing a conditional role binding in a policy
2973 # * Removing any role binding, with or without a condition, from a policy
2974 # that includes conditions
2975 #
2976 # **Important:** If you use IAM Conditions, you must include the `etag` field
2977 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2978 # you to overwrite a version `3` policy with a version `1` policy, and all of
2979 # the conditions in the version `3` policy are lost.
2980 #
2981 # If a policy does not include any conditions, operations on that policy may
2982 # specify any valid version or leave the field unset.
2983 #
2984 # To learn which resources support conditions in their IAM policies, see the
2985 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2986 }</pre>
2987 </div>
2988
2989 <div class="method">
2990 <code class="details" id="getRule">getRule(project, region, firewallPolicy, priority=None, x__xgafv=None)</code>
2991 <pre>Gets a rule of the specified priority.
2992
2993 Args:
2994 project: string, Project ID for this request. (required)
2995 region: string, Name of the region scoping this request. (required)
2996 firewallPolicy: string, Name of the firewall policy to which the queried rule belongs. (required)
2997 priority: integer, The priority of the rule to get from the firewall policy.
2998 x__xgafv: string, V1 error format.
2999 Allowed values
3000 1 - v1 error format
3001 2 - v2 error format
3002
3003 Returns:
3004 An object of the form:
3005
3006 { # Represents a rule that describes one or more match conditions along with
3007 # the action to be taken when traffic matches this condition (allow or deny).
3008 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
3009 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
3010 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
3011 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
3012 # and &quot;goto_next&quot;.
3013 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
3014 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
3015 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
3016 # the firewall policy rule is not enforced and traffic behaves as if it did
3017 # not exist. If this is unspecified, the firewall policy rule will be
3018 # enabled.
3019 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
3020 # enabled, logs will be exported to the configured export destination in
3021 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
3022 # cannot enable logging on &quot;goto_next&quot; rules.
3023 &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.
3024 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
3025 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
3026 # Exactly one field must be specified.
3027 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
3028 # Maximum number of destination address groups is 10.
3029 &quot;A String&quot;,
3030 ],
3031 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3032 # traffic destination.
3033 # Maximum number of destination fqdn allowed is 100.
3034 &quot;A String&quot;,
3035 ],
3036 &quot;destIpRanges&quot;: [ # CIDR IP address range.
3037 # Maximum number of destination CIDR IP ranges allowed is 5000.
3038 &quot;A String&quot;,
3039 ],
3040 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
3041 #
3042 #
3043 # - UNSPECIFIED
3044 # - INTERNET
3045 # - NON_INTERNET
3046 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
3047 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
3048 #
3049 #
3050 # - UNSPECIFIED
3051 # - INTERNET
3052 # - NON_INTERNET
3053 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
3054 # of traffic. Should be specified as 2 letter country code defined as per
3055 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3056 # Maximum number of dest region codes allowed is 5000.
3057 &quot;A String&quot;,
3058 ],
3059 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3060 # The IPs in these lists will be matched against traffic destination.
3061 &quot;A String&quot;,
3062 ],
3063 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
3064 {
3065 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
3066 # required when creating a firewall rule. This value can either be
3067 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
3068 # protocol number.
3069 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
3070 # only applicable for UDP or TCP protocol. Each entry must be either
3071 # an integer or a range. If not specified, this rule applies to
3072 # connections through any port.
3073 #
3074 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
3075 &quot;A String&quot;,
3076 ],
3077 },
3078 ],
3079 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
3080 # Maximum number of source address groups is 10.
3081 &quot;A String&quot;,
3082 ],
3083 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3084 # traffic source.
3085 # Maximum number of source fqdn allowed is 100.
3086 &quot;A String&quot;,
3087 ],
3088 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
3089 # Maximum number of source CIDR IP ranges allowed is 5000.
3090 &quot;A String&quot;,
3091 ],
3092 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
3093 #
3094 #
3095 # - UNSPECIFIED
3096 # - INTERNET
3097 # - INTRA_VPC
3098 # - NON_INTERNET
3099 # - VPC_NETWORKS
3100 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
3101 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
3102 #
3103 #
3104 # - UNSPECIFIED
3105 # - INTERNET
3106 # - INTRA_VPC
3107 # - NON_INTERNET
3108 # - VPC_NETWORKS
3109 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
3110 &quot;A String&quot;,
3111 ],
3112 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
3113 # of traffic. Should be specified as 2 letter country code defined as per
3114 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3115 # Maximum number of source region codes allowed is 5000.
3116 &quot;A String&quot;,
3117 ],
3118 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
3119 # of the traffic.
3120 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
3121 # and there is no srcIpRange, this rule will be ignored.
3122 # Maximum number of source tag values allowed is 256.
3123 {
3124 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3125 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3126 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3127 # or its network is deleted.
3128 },
3129 ],
3130 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3131 # The IPs in these lists will be matched against traffic source.
3132 &quot;A String&quot;,
3133 ],
3134 },
3135 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
3136 # must be a positive value between 0 and 2147483647.
3137 # Rules are evaluated from highest to lowest priority where 0 is the
3138 # highest priority and 2147483647 is the lowest priority.
3139 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
3140 # and can be updated.
3141 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
3142 # rule.
3143 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
3144 # Example:
3145 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
3146 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
3147 # &#x27;mirror&#x27;. Cannot be specified for other actions.
3148 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
3149 # This field allows you to control which load balancers get this rule.
3150 # For example, the following are valid values:
3151 #
3152 #
3153 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
3154 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
3155 # - projects/project/global/
3156 # forwardingRules/forwardingRule
3157 # - projects/project/regions/region/forwardingRules/
3158 # forwardingRule
3159 &quot;A String&quot;,
3160 ],
3161 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
3162 # allows you to control which network&#x27;s VMs get this rule. If this field
3163 # is left blank, all VMs within the organization will receive the rule.
3164 &quot;A String&quot;,
3165 ],
3166 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
3167 # applies to. If targetSecureTag are specified, then the
3168 # firewall rule applies only to instances in the VPC network that have one
3169 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
3170 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
3171 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
3172 # to all instances on the specified network.
3173 # Maximum number of target label tags allowed is 256.
3174 {
3175 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3176 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3177 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3178 # or its network is deleted.
3179 },
3180 ],
3181 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
3182 # applied with this rule.
3183 &quot;A String&quot;,
3184 ],
3185 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
3186 # Default value is INSTANCES.
3187 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
3188 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
3189 # be set for other actions.
3190 }</pre>
3191 </div>
3192
3193 <div class="method">
3194 <code class="details" id="insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</code>
3195 <pre>Creates a new network firewall policy in the specified project and region.
3196
3197 Args:
3198 project: string, Project ID for this request. (required)
3199 region: string, Name of the region scoping this request. (required)
3200 body: object, The request body.
3201 The object takes the form of:
3202
3203 { # Represents a Firewall Policy resource.
3204 &quot;associations&quot;: [ # A list of associations that belong to this firewall policy.
3205 {
3206 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
3207 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
3208 # of the firewall policy of the association.
3209 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
3210 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
3211 &quot;priority&quot;: 42, # An integer indicating the priority of an association. The priority
3212 # must be a positive value between 1 and 2147483647.
3213 # Firewall Policies are evaluated from highest to lowest priority where 1
3214 # is the highest priority and 2147483647 is the lowest priority.
3215 # The default value is `1000`. If two associations have the same priority
3216 # then lexicographical order on association names is applied.
3217 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
3218 },
3219 ],
3220 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
3221 # text format.
3222 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
3223 # create the resource.
3224 &quot;displayName&quot;: &quot;A String&quot;, # Deprecated, please use short name instead. User-provided name of the
3225 # Organization firewall policy. The name should be unique in the organization
3226 # in which the firewall policy is created.
3227 # This field is not applicable to network firewall policies.
3228 # This name must be set on creation and cannot be changed.
3229 # The name must be 1-63 characters long, and comply
3230 # with RFC1035. Specifically, the name must be 1-63 characters
3231 # long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which
3232 # means the first character must be a lowercase letter, and all following
3233 # characters must be a dash, lowercase letter, or digit, except the last
3234 # character, which cannot be a dash.
3235 &quot;fingerprint&quot;: &quot;A String&quot;, # Specifies a fingerprint for this resource, which is essentially a hash of
3236 # the metadata&#x27;s contents and used for optimistic locking. The
3237 # fingerprint is initially generated by Compute Engine and changes after
3238 # every request to modify or update metadata. You must always provide an
3239 # up-to-date fingerprint hash in order to update or change metadata,
3240 # otherwise the request will fail with error412 conditionNotMet.
3241 #
3242 # To see the latest fingerprint, make get() request to the
3243 # firewall policy.
3244 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
3245 # defined by the server.
3246 &quot;kind&quot;: &quot;compute#firewallPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
3247 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. For Organization Firewall Policies it&#x27;s a
3248 # [Output Only] numeric ID allocated by Google Cloud which uniquely
3249 # identifies the Organization Firewall Policy.
3250 &quot;packetMirroringRules&quot;: [ # A list of packet mirroring rules that belong to this policy.
3251 { # Represents a rule that describes one or more match conditions along with
3252 # the action to be taken when traffic matches this condition (allow or deny).
3253 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
3254 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
3255 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
3256 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
3257 # and &quot;goto_next&quot;.
3258 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
3259 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
3260 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
3261 # the firewall policy rule is not enforced and traffic behaves as if it did
3262 # not exist. If this is unspecified, the firewall policy rule will be
3263 # enabled.
3264 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
3265 # enabled, logs will be exported to the configured export destination in
3266 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
3267 # cannot enable logging on &quot;goto_next&quot; rules.
3268 &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.
3269 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
3270 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
3271 # Exactly one field must be specified.
3272 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
3273 # Maximum number of destination address groups is 10.
3274 &quot;A String&quot;,
3275 ],
3276 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3277 # traffic destination.
3278 # Maximum number of destination fqdn allowed is 100.
3279 &quot;A String&quot;,
3280 ],
3281 &quot;destIpRanges&quot;: [ # CIDR IP address range.
3282 # Maximum number of destination CIDR IP ranges allowed is 5000.
3283 &quot;A String&quot;,
3284 ],
3285 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
3286 #
3287 #
3288 # - UNSPECIFIED
3289 # - INTERNET
3290 # - NON_INTERNET
3291 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
3292 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
3293 #
3294 #
3295 # - UNSPECIFIED
3296 # - INTERNET
3297 # - NON_INTERNET
3298 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
3299 # of traffic. Should be specified as 2 letter country code defined as per
3300 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3301 # Maximum number of dest region codes allowed is 5000.
3302 &quot;A String&quot;,
3303 ],
3304 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3305 # The IPs in these lists will be matched against traffic destination.
3306 &quot;A String&quot;,
3307 ],
3308 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
3309 {
3310 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
3311 # required when creating a firewall rule. This value can either be
3312 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
3313 # protocol number.
3314 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
3315 # only applicable for UDP or TCP protocol. Each entry must be either
3316 # an integer or a range. If not specified, this rule applies to
3317 # connections through any port.
3318 #
3319 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
3320 &quot;A String&quot;,
3321 ],
3322 },
3323 ],
3324 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
3325 # Maximum number of source address groups is 10.
3326 &quot;A String&quot;,
3327 ],
3328 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3329 # traffic source.
3330 # Maximum number of source fqdn allowed is 100.
3331 &quot;A String&quot;,
3332 ],
3333 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
3334 # Maximum number of source CIDR IP ranges allowed is 5000.
3335 &quot;A String&quot;,
3336 ],
3337 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
3338 #
3339 #
3340 # - UNSPECIFIED
3341 # - INTERNET
3342 # - INTRA_VPC
3343 # - NON_INTERNET
3344 # - VPC_NETWORKS
3345 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
3346 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
3347 #
3348 #
3349 # - UNSPECIFIED
3350 # - INTERNET
3351 # - INTRA_VPC
3352 # - NON_INTERNET
3353 # - VPC_NETWORKS
3354 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
3355 &quot;A String&quot;,
3356 ],
3357 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
3358 # of traffic. Should be specified as 2 letter country code defined as per
3359 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3360 # Maximum number of source region codes allowed is 5000.
3361 &quot;A String&quot;,
3362 ],
3363 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
3364 # of the traffic.
3365 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
3366 # and there is no srcIpRange, this rule will be ignored.
3367 # Maximum number of source tag values allowed is 256.
3368 {
3369 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3370 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3371 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3372 # or its network is deleted.
3373 },
3374 ],
3375 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3376 # The IPs in these lists will be matched against traffic source.
3377 &quot;A String&quot;,
3378 ],
3379 },
3380 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
3381 # must be a positive value between 0 and 2147483647.
3382 # Rules are evaluated from highest to lowest priority where 0 is the
3383 # highest priority and 2147483647 is the lowest priority.
3384 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
3385 # and can be updated.
3386 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
3387 # rule.
3388 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
3389 # Example:
3390 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
3391 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
3392 # &#x27;mirror&#x27;. Cannot be specified for other actions.
3393 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
3394 # This field allows you to control which load balancers get this rule.
3395 # For example, the following are valid values:
3396 #
3397 #
3398 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
3399 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
3400 # - projects/project/global/
3401 # forwardingRules/forwardingRule
3402 # - projects/project/regions/region/forwardingRules/
3403 # forwardingRule
3404 &quot;A String&quot;,
3405 ],
3406 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
3407 # allows you to control which network&#x27;s VMs get this rule. If this field
3408 # is left blank, all VMs within the organization will receive the rule.
3409 &quot;A String&quot;,
3410 ],
3411 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
3412 # applies to. If targetSecureTag are specified, then the
3413 # firewall rule applies only to instances in the VPC network that have one
3414 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
3415 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
3416 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
3417 # to all instances on the specified network.
3418 # Maximum number of target label tags allowed is 256.
3419 {
3420 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3421 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3422 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3423 # or its network is deleted.
3424 },
3425 ],
3426 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
3427 # applied with this rule.
3428 &quot;A String&quot;,
3429 ],
3430 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
3431 # Default value is INSTANCES.
3432 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
3433 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
3434 # be set for other actions.
3435 },
3436 ],
3437 &quot;parent&quot;: &quot;A String&quot;, # Output only. [Output Only] The parent of the firewall policy.
3438 # This field is not applicable to network firewall policies.
3439 &quot;policySource&quot;: &quot;A String&quot;, # Indicates the source of this Firewall Policy. This field is optional on
3440 # creation and defaults to USER_DEFINED.
3441 #
3442 # The USER_DEFINED value indicates a regular firewall policy.
3443 #
3444 # The SYSTEM value indicates a system-level policy managed by an
3445 # internal service like GKE. This SYSTEM value is reserved for
3446 # internal services and cannot be set by users during policy creation.
3447 # Policies with a SYSTEM source cannot be modified or deleted by
3448 # users.
3449 &quot;policyType&quot;: &quot;A String&quot;, # The type of the firewall policy. This field can be one of
3450 # VPC_POLICY, RDMA_ROCE_POLICY or ULL_POLICY.
3451 #
3452 # Note: if not specified then VPC_POLICY will be used.
3453 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional firewall policy resides.
3454 # This field is not applicable to global firewall policies.
3455 # You must specify this field as part of the HTTP request URL. It is
3456 # not settable as a field in the request body.
3457 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall
3458 # policy can not exceed a set number of tuples.
3459 &quot;rules&quot;: [ # A list of rules that belong to this policy.
3460 # There must always be a default rule (rule with priority 2147483647 and
3461 # match &quot;*&quot;). If no rules are provided when creating a firewall policy, a
3462 # default rule with action &quot;allow&quot; will be added.
3463 { # Represents a rule that describes one or more match conditions along with
3464 # the action to be taken when traffic matches this condition (allow or deny).
3465 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
3466 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
3467 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
3468 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
3469 # and &quot;goto_next&quot;.
3470 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
3471 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
3472 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
3473 # the firewall policy rule is not enforced and traffic behaves as if it did
3474 # not exist. If this is unspecified, the firewall policy rule will be
3475 # enabled.
3476 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
3477 # enabled, logs will be exported to the configured export destination in
3478 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
3479 # cannot enable logging on &quot;goto_next&quot; rules.
3480 &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.
3481 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
3482 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
3483 # Exactly one field must be specified.
3484 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
3485 # Maximum number of destination address groups is 10.
3486 &quot;A String&quot;,
3487 ],
3488 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3489 # traffic destination.
3490 # Maximum number of destination fqdn allowed is 100.
3491 &quot;A String&quot;,
3492 ],
3493 &quot;destIpRanges&quot;: [ # CIDR IP address range.
3494 # Maximum number of destination CIDR IP ranges allowed is 5000.
3495 &quot;A String&quot;,
3496 ],
3497 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
3498 #
3499 #
3500 # - UNSPECIFIED
3501 # - INTERNET
3502 # - NON_INTERNET
3503 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
3504 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
3505 #
3506 #
3507 # - UNSPECIFIED
3508 # - INTERNET
3509 # - NON_INTERNET
3510 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
3511 # of traffic. Should be specified as 2 letter country code defined as per
3512 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3513 # Maximum number of dest region codes allowed is 5000.
3514 &quot;A String&quot;,
3515 ],
3516 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3517 # The IPs in these lists will be matched against traffic destination.
3518 &quot;A String&quot;,
3519 ],
3520 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
3521 {
3522 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
3523 # required when creating a firewall rule. This value can either be
3524 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
3525 # protocol number.
3526 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
3527 # only applicable for UDP or TCP protocol. Each entry must be either
3528 # an integer or a range. If not specified, this rule applies to
3529 # connections through any port.
3530 #
3531 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
3532 &quot;A String&quot;,
3533 ],
3534 },
3535 ],
3536 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
3537 # Maximum number of source address groups is 10.
3538 &quot;A String&quot;,
3539 ],
3540 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3541 # traffic source.
3542 # Maximum number of source fqdn allowed is 100.
3543 &quot;A String&quot;,
3544 ],
3545 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
3546 # Maximum number of source CIDR IP ranges allowed is 5000.
3547 &quot;A String&quot;,
3548 ],
3549 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
3550 #
3551 #
3552 # - UNSPECIFIED
3553 # - INTERNET
3554 # - INTRA_VPC
3555 # - NON_INTERNET
3556 # - VPC_NETWORKS
3557 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
3558 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
3559 #
3560 #
3561 # - UNSPECIFIED
3562 # - INTERNET
3563 # - INTRA_VPC
3564 # - NON_INTERNET
3565 # - VPC_NETWORKS
3566 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
3567 &quot;A String&quot;,
3568 ],
3569 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
3570 # of traffic. Should be specified as 2 letter country code defined as per
3571 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3572 # Maximum number of source region codes allowed is 5000.
3573 &quot;A String&quot;,
3574 ],
3575 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
3576 # of the traffic.
3577 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
3578 # and there is no srcIpRange, this rule will be ignored.
3579 # Maximum number of source tag values allowed is 256.
3580 {
3581 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3582 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3583 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3584 # or its network is deleted.
3585 },
3586 ],
3587 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3588 # The IPs in these lists will be matched against traffic source.
3589 &quot;A String&quot;,
3590 ],
3591 },
3592 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
3593 # must be a positive value between 0 and 2147483647.
3594 # Rules are evaluated from highest to lowest priority where 0 is the
3595 # highest priority and 2147483647 is the lowest priority.
3596 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
3597 # and can be updated.
3598 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
3599 # rule.
3600 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
3601 # Example:
3602 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
3603 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
3604 # &#x27;mirror&#x27;. Cannot be specified for other actions.
3605 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
3606 # This field allows you to control which load balancers get this rule.
3607 # For example, the following are valid values:
3608 #
3609 #
3610 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
3611 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
3612 # - projects/project/global/
3613 # forwardingRules/forwardingRule
3614 # - projects/project/regions/region/forwardingRules/
3615 # forwardingRule
3616 &quot;A String&quot;,
3617 ],
3618 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
3619 # allows you to control which network&#x27;s VMs get this rule. If this field
3620 # is left blank, all VMs within the organization will receive the rule.
3621 &quot;A String&quot;,
3622 ],
3623 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
3624 # applies to. If targetSecureTag are specified, then the
3625 # firewall rule applies only to instances in the VPC network that have one
3626 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
3627 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
3628 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
3629 # to all instances on the specified network.
3630 # Maximum number of target label tags allowed is 256.
3631 {
3632 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3633 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3634 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3635 # or its network is deleted.
3636 },
3637 ],
3638 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
3639 # applied with this rule.
3640 &quot;A String&quot;,
3641 ],
3642 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
3643 # Default value is INSTANCES.
3644 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
3645 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
3646 # be set for other actions.
3647 },
3648 ],
3649 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
3650 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
3651 &quot;shortName&quot;: &quot;A String&quot;, # User-provided name of the Organization firewall policy. The name should be
3652 # unique in the organization in which the firewall policy is created.
3653 # This field is not applicable to network firewall policies.
3654 # This name must be set on creation and cannot be changed. The name must be
3655 # 1-63 characters long, and comply with RFC1035.
3656 # Specifically, the name must be 1-63 characters long and match the regular
3657 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
3658 # character must be a lowercase letter, and all following characters must
3659 # be a dash, lowercase letter, or digit, except the last character, which
3660 # cannot be a dash.
3661 }
3662
3663 requestId: string, An optional request ID to identify requests. Specify a unique request ID
3664 so that if you must retry your request, the server will know to ignore the
3665 request if it has already been completed.
3666
3667 For example, consider a situation where you make an initial request and
3668 the request times out. If you make the request again with the same
3669 request ID, the server can check if original operation with the same
3670 request ID was received, and if so, will ignore the second request. This
3671 prevents clients from accidentally creating duplicate commitments.
3672
3673 The request ID must be
3674 a valid UUID with the exception that zero UUID is not supported
3675 (00000000-0000-0000-0000-000000000000).
3676 x__xgafv: string, V1 error format.
3677 Allowed values
3678 1 - v1 error format
3679 2 - v2 error format
3680
3681 Returns:
3682 An object of the form:
3683
3684 { # Represents an Operation resource.
3685 #
3686 # Google Compute Engine has three Operation resources:
3687 #
3688 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
3689 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
3690 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
3691 #
3692 # You can use an operation resource to manage asynchronous API requests.
3693 # For more information, readHandling
3694 # API responses.
3695 #
3696 # Operations can be global, regional or zonal.
3697 #
3698 # - For global operations, use the `globalOperations`
3699 # resource.
3700 # - For regional operations, use the
3701 # `regionOperations` resource.
3702 # - For zonal operations, use
3703 # the `zoneOperations` resource.
3704 #
3705 #
3706 #
3707 # For more information, read
3708 # Global, Regional, and Zonal Resources.
3709 #
3710 # Note that completed Operation resources have a limited
3711 # retention period.
3712 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
3713 # Not present otherwise.
3714 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
3715 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
3716 # set when the operation is created.
3717 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
3718 # text format.
3719 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
3720 # this field will be populated.
3721 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
3722 # operation.
3723 {
3724 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
3725 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
3726 # details. There is a set of defined message types to use for providing
3727 # details.The syntax depends on the error code. For example,
3728 # QuotaExceededInfo will have details when the error code is
3729 # QUOTA_EXCEEDED.
3730 {
3731 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
3732 #
3733 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
3734 # is not enabled:
3735 #
3736 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
3737 # &quot;domain&quot;: &quot;googleapis.com&quot;
3738 # &quot;metadata&quot;: {
3739 # &quot;resource&quot;: &quot;projects/123&quot;,
3740 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
3741 # }
3742 # }
3743 #
3744 # This response indicates that the pubsub.googleapis.com API is not enabled.
3745 #
3746 # Example of an error that is returned when attempting to create a Spanner
3747 # instance in a region that is out of stock:
3748 #
3749 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
3750 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
3751 # &quot;metadata&quot;: {
3752 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
3753 # }
3754 # }
3755 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
3756 # is typically the registered service name of the tool or product that
3757 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
3758 # generated by some common infrastructure, the error domain must be a
3759 # globally unique value that identifies the infrastructure. For Google API
3760 # infrastructure, the error domain is &quot;googleapis.com&quot;.
3761 &quot;metadatas&quot;: { # Additional structured details about this error.
3762 #
3763 # Keys must match a regular expression of `a-z+` but should
3764 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
3765 # length. When identifying the current value of an exceeded limit, the units
3766 # should be contained in the key, not the value. For example, rather than
3767 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
3768 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
3769 # instances that can be created in a single (batch) request.
3770 &quot;a_key&quot;: &quot;A String&quot;,
3771 },
3772 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
3773 # proximate cause of the error. Error reasons are unique within a particular
3774 # domain of errors. This should be at most 63 characters and match a
3775 # regular expression of `A-Z+[A-Z0-9]`, which represents
3776 # UPPER_SNAKE_CASE.
3777 },
3778 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
3779 #
3780 # For example, if a quota check failed with an error indicating the calling
3781 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
3782 # directly to the right place in the developer console to flip the bit.
3783 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
3784 { # Describes a URL link.
3785 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
3786 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
3787 },
3788 ],
3789 },
3790 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
3791 # which can be attached to an RPC error.
3792 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
3793 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
3794 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
3795 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
3796 },
3797 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
3798 &quot;dimensions&quot;: { # The map holding related quota dimensions.
3799 &quot;a_key&quot;: &quot;A String&quot;,
3800 },
3801 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
3802 # type or metric.
3803 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
3804 # or metric.
3805 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
3806 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
3807 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
3808 },
3809 },
3810 ],
3811 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
3812 # This property is optional.
3813 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
3814 },
3815 ],
3816 },
3817 &quot;getVersionOperationMetadata&quot;: {
3818 &quot;inlineSbomInfo&quot;: {
3819 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
3820 # appropriate identifiers.
3821 &quot;a_key&quot;: &quot;A String&quot;,
3822 },
3823 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
3824 # identifiers.
3825 &quot;a_key&quot;: &quot;A String&quot;,
3826 },
3827 },
3828 },
3829 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
3830 # message that was returned, such as `NOT FOUND`.
3831 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
3832 # status code that was returned. For example, a `404` means the
3833 # resource was not found.
3834 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
3835 # defined by the server.
3836 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
3837 # This value is inRFC3339
3838 # text format.
3839 &quot;instancesBulkInsertOperationMetadata&quot;: {
3840 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
3841 # Example key: zones/us-central1-a
3842 &quot;a_key&quot;: {
3843 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
3844 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
3845 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
3846 # error.
3847 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
3848 # if the flow is rolling forward or rolling back.
3849 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
3850 },
3851 },
3852 },
3853 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
3854 # Operation resources.
3855 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
3856 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
3857 # group of operations results from a `bulkInsert` API request.
3858 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
3859 # `update`, or `delete`, and so on.
3860 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
3861 # There is no requirement that this be linear or support any granularity of
3862 # operations. This should not be used to guess when the operation will be
3863 # complete. This number should monotonically increase as the operation
3864 # progresses.
3865 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
3866 # applicable when performing regional operations.
3867 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
3868 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
3869 # this field will contain information on all underlying zonal actions and
3870 # their state.
3871 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
3872 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
3873 # Example key: zones/us-central1-a
3874 &quot;a_key&quot;: {
3875 &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
3876 # populated.
3877 # different programming environments, including REST APIs and RPC APIs. It is
3878 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3879 # three pieces of data: error code, error message, and error details.
3880 #
3881 # You can find out more about this error model and how to work with it in the
3882 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3883 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3884 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3885 # message types for APIs to use.
3886 {
3887 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3888 },
3889 ],
3890 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3891 # user-facing error message should be localized and sent in the
3892 # google.rpc.Status.details field, or localized by the client.
3893 },
3894 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
3895 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
3896 },
3897 },
3898 },
3899 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
3900 # This value is inRFC3339
3901 # text format.
3902 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
3903 # following:
3904 # `PENDING`, `RUNNING`, or `DONE`.
3905 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
3906 # operation.
3907 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
3908 # of the target resource.
3909 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
3910 # operations related to creating a snapshot, this points to the disk
3911 # that the snapshot was created from.
3912 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
3913 # `[email protected]` or
3914 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
3915 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
3916 # operation, this field will be populated.
3917 {
3918 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
3919 # Engine returns NO_RESULTS_ON_PAGE if there
3920 # are no results in the response.
3921 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
3922 # value format. For example:
3923 #
3924 # &quot;data&quot;: [
3925 # {
3926 # &quot;key&quot;: &quot;scope&quot;,
3927 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
3928 # }
3929 {
3930 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
3931 # returned. For example, for warnings where there are no results in a list
3932 # request for a particular zone, this key might be scope and
3933 # the key value might be the zone name. Other examples might be a key
3934 # indicating a deprecated resource and a suggested replacement, or a
3935 # warning about invalid network settings (for example, if an instance
3936 # attempts to perform IP forwarding but is not enabled for IP forwarding).
3937 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
3938 },
3939 ],
3940 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
3941 },
3942 ],
3943 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
3944 # applicable when performing per-zone operations.
3945 }</pre>
3946 </div>
3947
3948 <div class="method">
3949 <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
3950 <pre>Lists all the network firewall policies that have been configured
3951 for the specified project in the given region.
3952
3953 Args:
3954 project: string, Project ID for this request. (required)
3955 region: string, Name of the region scoping this request. (required)
3956 filter: string, A filter expression that filters resources listed in the response. Most
3957 Compute resources support two types of filter expressions:
3958 expressions that support regular expressions and expressions that follow
3959 API improvement proposal AIP-160.
3960 These two types of filter expressions cannot be mixed in one request.
3961
3962 If you want to use AIP-160, your expression must specify the field name, an
3963 operator, and the value that you want to use for filtering. The value
3964 must be a string, a number, or a boolean. The operator
3965 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
3966
3967 For example, if you are filtering Compute Engine instances, you can
3968 exclude instances named `example-instance` by specifying
3969 `name != example-instance`.
3970
3971 The `:*` comparison can be used to test whether a key has been defined.
3972 For example, to find all objects with `owner` label use:
3973 ```
3974 labels.owner:*
3975 ```
3976
3977 You can also filter nested fields. For example, you could specify
3978 `scheduling.automaticRestart = false` to include instances only
3979 if they are not scheduled for automatic restarts. You can use filtering
3980 on nested fields to filter based onresource labels.
3981
3982 To filter on multiple expressions, provide each separate expression within
3983 parentheses. For example:
3984 ```
3985 (scheduling.automaticRestart = true)
3986 (cpuPlatform = &quot;Intel Skylake&quot;)
3987 ```
3988 By default, each expression is an `AND` expression. However, you
3989 can include `AND` and `OR` expressions explicitly.
3990 For example:
3991 ```
3992 (cpuPlatform = &quot;Intel Skylake&quot;) OR
3993 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
3994 (scheduling.automaticRestart = true)
3995 ```
3996
3997 If you want to use a regular expression, use the `eq` (equal) or `ne`
3998 (not equal) operator against a single un-parenthesized expression with or
3999 without quotes or against multiple parenthesized expressions. Examples:
4000
4001 `fieldname eq unquoted literal`
4002 `fieldname eq &#x27;single quoted literal&#x27;`
4003 `fieldname eq &quot;double quoted literal&quot;`
4004 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
4005
4006 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
4007 The literal value must match the entire field.
4008
4009 For example, to filter for instances that do not end with name &quot;instance&quot;,
4010 you would use `name ne .*instance`.
4011
4012 You cannot combine constraints on multiple fields using regular
4013 expressions.
4014 maxResults: integer, The maximum number of results per page that should be returned.
4015 If the number of available results is larger than `maxResults`,
4016 Compute Engine returns a `nextPageToken` that can be used to get
4017 the next page of results in subsequent list requests. Acceptable values are
4018 `0` to `500`, inclusive. (Default: `500`)
4019 orderBy: string, Sorts list results by a certain order. By default, results
4020 are returned in alphanumerical order based on the resource name.
4021
4022 You can also sort results in descending order based on the creation
4023 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
4024 results based on the `creationTimestamp` field in
4025 reverse chronological order (newest result first). Use this to sort
4026 resources like operations so that the newest operation is returned first.
4027
4028 Currently, only sorting by `name` or
4029 `creationTimestamp desc` is supported.
4030 pageToken: string, Specifies a page token to use. Set `pageToken` to the
4031 `nextPageToken` returned by a previous list request to get
4032 the next page of results.
4033 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
4034 of failure. The default value is false.
4035
4036 For example, when partial success behavior is enabled, aggregatedList for a
4037 single zone scope either returns all resources in the zone or no resources,
4038 with an error code.
4039 x__xgafv: string, V1 error format.
4040 Allowed values
4041 1 - v1 error format
4042 2 - v2 error format
4043
4044 Returns:
4045 An object of the form:
4046
4047 {
4048 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
4049 &quot;items&quot;: [ # A list of FirewallPolicy resources.
4050 { # Represents a Firewall Policy resource.
4051 &quot;associations&quot;: [ # A list of associations that belong to this firewall policy.
4052 {
4053 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
4054 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
4055 # of the firewall policy of the association.
4056 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
4057 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
4058 &quot;priority&quot;: 42, # An integer indicating the priority of an association. The priority
4059 # must be a positive value between 1 and 2147483647.
4060 # Firewall Policies are evaluated from highest to lowest priority where 1
4061 # is the highest priority and 2147483647 is the lowest priority.
4062 # The default value is `1000`. If two associations have the same priority
4063 # then lexicographical order on association names is applied.
4064 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
4065 },
4066 ],
4067 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
4068 # text format.
4069 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
4070 # create the resource.
4071 &quot;displayName&quot;: &quot;A String&quot;, # Deprecated, please use short name instead. User-provided name of the
4072 # Organization firewall policy. The name should be unique in the organization
4073 # in which the firewall policy is created.
4074 # This field is not applicable to network firewall policies.
4075 # This name must be set on creation and cannot be changed.
4076 # The name must be 1-63 characters long, and comply
4077 # with RFC1035. Specifically, the name must be 1-63 characters
4078 # long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which
4079 # means the first character must be a lowercase letter, and all following
4080 # characters must be a dash, lowercase letter, or digit, except the last
4081 # character, which cannot be a dash.
4082 &quot;fingerprint&quot;: &quot;A String&quot;, # Specifies a fingerprint for this resource, which is essentially a hash of
4083 # the metadata&#x27;s contents and used for optimistic locking. The
4084 # fingerprint is initially generated by Compute Engine and changes after
4085 # every request to modify or update metadata. You must always provide an
4086 # up-to-date fingerprint hash in order to update or change metadata,
4087 # otherwise the request will fail with error412 conditionNotMet.
4088 #
4089 # To see the latest fingerprint, make get() request to the
4090 # firewall policy.
4091 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
4092 # defined by the server.
4093 &quot;kind&quot;: &quot;compute#firewallPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
4094 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. For Organization Firewall Policies it&#x27;s a
4095 # [Output Only] numeric ID allocated by Google Cloud which uniquely
4096 # identifies the Organization Firewall Policy.
4097 &quot;packetMirroringRules&quot;: [ # A list of packet mirroring rules that belong to this policy.
4098 { # Represents a rule that describes one or more match conditions along with
4099 # the action to be taken when traffic matches this condition (allow or deny).
4100 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
4101 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
4102 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
4103 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
4104 # and &quot;goto_next&quot;.
4105 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
4106 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
4107 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
4108 # the firewall policy rule is not enforced and traffic behaves as if it did
4109 # not exist. If this is unspecified, the firewall policy rule will be
4110 # enabled.
4111 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
4112 # enabled, logs will be exported to the configured export destination in
4113 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
4114 # cannot enable logging on &quot;goto_next&quot; rules.
4115 &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.
4116 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
4117 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
4118 # Exactly one field must be specified.
4119 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
4120 # Maximum number of destination address groups is 10.
4121 &quot;A String&quot;,
4122 ],
4123 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4124 # traffic destination.
4125 # Maximum number of destination fqdn allowed is 100.
4126 &quot;A String&quot;,
4127 ],
4128 &quot;destIpRanges&quot;: [ # CIDR IP address range.
4129 # Maximum number of destination CIDR IP ranges allowed is 5000.
4130 &quot;A String&quot;,
4131 ],
4132 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
4133 #
4134 #
4135 # - UNSPECIFIED
4136 # - INTERNET
4137 # - NON_INTERNET
4138 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
4139 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
4140 #
4141 #
4142 # - UNSPECIFIED
4143 # - INTERNET
4144 # - NON_INTERNET
4145 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
4146 # of traffic. Should be specified as 2 letter country code defined as per
4147 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4148 # Maximum number of dest region codes allowed is 5000.
4149 &quot;A String&quot;,
4150 ],
4151 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4152 # The IPs in these lists will be matched against traffic destination.
4153 &quot;A String&quot;,
4154 ],
4155 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
4156 {
4157 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
4158 # required when creating a firewall rule. This value can either be
4159 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
4160 # protocol number.
4161 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
4162 # only applicable for UDP or TCP protocol. Each entry must be either
4163 # an integer or a range. If not specified, this rule applies to
4164 # connections through any port.
4165 #
4166 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
4167 &quot;A String&quot;,
4168 ],
4169 },
4170 ],
4171 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
4172 # Maximum number of source address groups is 10.
4173 &quot;A String&quot;,
4174 ],
4175 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4176 # traffic source.
4177 # Maximum number of source fqdn allowed is 100.
4178 &quot;A String&quot;,
4179 ],
4180 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
4181 # Maximum number of source CIDR IP ranges allowed is 5000.
4182 &quot;A String&quot;,
4183 ],
4184 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
4185 #
4186 #
4187 # - UNSPECIFIED
4188 # - INTERNET
4189 # - INTRA_VPC
4190 # - NON_INTERNET
4191 # - VPC_NETWORKS
4192 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
4193 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
4194 #
4195 #
4196 # - UNSPECIFIED
4197 # - INTERNET
4198 # - INTRA_VPC
4199 # - NON_INTERNET
4200 # - VPC_NETWORKS
4201 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
4202 &quot;A String&quot;,
4203 ],
4204 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
4205 # of traffic. Should be specified as 2 letter country code defined as per
4206 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4207 # Maximum number of source region codes allowed is 5000.
4208 &quot;A String&quot;,
4209 ],
4210 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
4211 # of the traffic.
4212 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
4213 # and there is no srcIpRange, this rule will be ignored.
4214 # Maximum number of source tag values allowed is 256.
4215 {
4216 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4217 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4218 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4219 # or its network is deleted.
4220 },
4221 ],
4222 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4223 # The IPs in these lists will be matched against traffic source.
4224 &quot;A String&quot;,
4225 ],
4226 },
4227 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
4228 # must be a positive value between 0 and 2147483647.
4229 # Rules are evaluated from highest to lowest priority where 0 is the
4230 # highest priority and 2147483647 is the lowest priority.
4231 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
4232 # and can be updated.
4233 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
4234 # rule.
4235 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
4236 # Example:
4237 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
4238 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
4239 # &#x27;mirror&#x27;. Cannot be specified for other actions.
4240 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
4241 # This field allows you to control which load balancers get this rule.
4242 # For example, the following are valid values:
4243 #
4244 #
4245 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
4246 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
4247 # - projects/project/global/
4248 # forwardingRules/forwardingRule
4249 # - projects/project/regions/region/forwardingRules/
4250 # forwardingRule
4251 &quot;A String&quot;,
4252 ],
4253 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
4254 # allows you to control which network&#x27;s VMs get this rule. If this field
4255 # is left blank, all VMs within the organization will receive the rule.
4256 &quot;A String&quot;,
4257 ],
4258 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
4259 # applies to. If targetSecureTag are specified, then the
4260 # firewall rule applies only to instances in the VPC network that have one
4261 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
4262 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
4263 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
4264 # to all instances on the specified network.
4265 # Maximum number of target label tags allowed is 256.
4266 {
4267 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4268 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4269 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4270 # or its network is deleted.
4271 },
4272 ],
4273 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
4274 # applied with this rule.
4275 &quot;A String&quot;,
4276 ],
4277 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
4278 # Default value is INSTANCES.
4279 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
4280 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
4281 # be set for other actions.
4282 },
4283 ],
4284 &quot;parent&quot;: &quot;A String&quot;, # Output only. [Output Only] The parent of the firewall policy.
4285 # This field is not applicable to network firewall policies.
4286 &quot;policySource&quot;: &quot;A String&quot;, # Indicates the source of this Firewall Policy. This field is optional on
4287 # creation and defaults to USER_DEFINED.
4288 #
4289 # The USER_DEFINED value indicates a regular firewall policy.
4290 #
4291 # The SYSTEM value indicates a system-level policy managed by an
4292 # internal service like GKE. This SYSTEM value is reserved for
4293 # internal services and cannot be set by users during policy creation.
4294 # Policies with a SYSTEM source cannot be modified or deleted by
4295 # users.
4296 &quot;policyType&quot;: &quot;A String&quot;, # The type of the firewall policy. This field can be one of
4297 # VPC_POLICY, RDMA_ROCE_POLICY or ULL_POLICY.
4298 #
4299 # Note: if not specified then VPC_POLICY will be used.
4300 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional firewall policy resides.
4301 # This field is not applicable to global firewall policies.
4302 # You must specify this field as part of the HTTP request URL. It is
4303 # not settable as a field in the request body.
4304 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall
4305 # policy can not exceed a set number of tuples.
4306 &quot;rules&quot;: [ # A list of rules that belong to this policy.
4307 # There must always be a default rule (rule with priority 2147483647 and
4308 # match &quot;*&quot;). If no rules are provided when creating a firewall policy, a
4309 # default rule with action &quot;allow&quot; will be added.
4310 { # Represents a rule that describes one or more match conditions along with
4311 # the action to be taken when traffic matches this condition (allow or deny).
4312 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
4313 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
4314 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
4315 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
4316 # and &quot;goto_next&quot;.
4317 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
4318 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
4319 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
4320 # the firewall policy rule is not enforced and traffic behaves as if it did
4321 # not exist. If this is unspecified, the firewall policy rule will be
4322 # enabled.
4323 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
4324 # enabled, logs will be exported to the configured export destination in
4325 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
4326 # cannot enable logging on &quot;goto_next&quot; rules.
4327 &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.
4328 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
4329 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
4330 # Exactly one field must be specified.
4331 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
4332 # Maximum number of destination address groups is 10.
4333 &quot;A String&quot;,
4334 ],
4335 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4336 # traffic destination.
4337 # Maximum number of destination fqdn allowed is 100.
4338 &quot;A String&quot;,
4339 ],
4340 &quot;destIpRanges&quot;: [ # CIDR IP address range.
4341 # Maximum number of destination CIDR IP ranges allowed is 5000.
4342 &quot;A String&quot;,
4343 ],
4344 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
4345 #
4346 #
4347 # - UNSPECIFIED
4348 # - INTERNET
4349 # - NON_INTERNET
4350 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
4351 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
4352 #
4353 #
4354 # - UNSPECIFIED
4355 # - INTERNET
4356 # - NON_INTERNET
4357 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
4358 # of traffic. Should be specified as 2 letter country code defined as per
4359 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4360 # Maximum number of dest region codes allowed is 5000.
4361 &quot;A String&quot;,
4362 ],
4363 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4364 # The IPs in these lists will be matched against traffic destination.
4365 &quot;A String&quot;,
4366 ],
4367 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
4368 {
4369 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
4370 # required when creating a firewall rule. This value can either be
4371 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
4372 # protocol number.
4373 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
4374 # only applicable for UDP or TCP protocol. Each entry must be either
4375 # an integer or a range. If not specified, this rule applies to
4376 # connections through any port.
4377 #
4378 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
4379 &quot;A String&quot;,
4380 ],
4381 },
4382 ],
4383 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
4384 # Maximum number of source address groups is 10.
4385 &quot;A String&quot;,
4386 ],
4387 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4388 # traffic source.
4389 # Maximum number of source fqdn allowed is 100.
4390 &quot;A String&quot;,
4391 ],
4392 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
4393 # Maximum number of source CIDR IP ranges allowed is 5000.
4394 &quot;A String&quot;,
4395 ],
4396 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
4397 #
4398 #
4399 # - UNSPECIFIED
4400 # - INTERNET
4401 # - INTRA_VPC
4402 # - NON_INTERNET
4403 # - VPC_NETWORKS
4404 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
4405 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
4406 #
4407 #
4408 # - UNSPECIFIED
4409 # - INTERNET
4410 # - INTRA_VPC
4411 # - NON_INTERNET
4412 # - VPC_NETWORKS
4413 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
4414 &quot;A String&quot;,
4415 ],
4416 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
4417 # of traffic. Should be specified as 2 letter country code defined as per
4418 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4419 # Maximum number of source region codes allowed is 5000.
4420 &quot;A String&quot;,
4421 ],
4422 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
4423 # of the traffic.
4424 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
4425 # and there is no srcIpRange, this rule will be ignored.
4426 # Maximum number of source tag values allowed is 256.
4427 {
4428 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4429 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4430 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4431 # or its network is deleted.
4432 },
4433 ],
4434 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4435 # The IPs in these lists will be matched against traffic source.
4436 &quot;A String&quot;,
4437 ],
4438 },
4439 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
4440 # must be a positive value between 0 and 2147483647.
4441 # Rules are evaluated from highest to lowest priority where 0 is the
4442 # highest priority and 2147483647 is the lowest priority.
4443 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
4444 # and can be updated.
4445 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
4446 # rule.
4447 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
4448 # Example:
4449 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
4450 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
4451 # &#x27;mirror&#x27;. Cannot be specified for other actions.
4452 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
4453 # This field allows you to control which load balancers get this rule.
4454 # For example, the following are valid values:
4455 #
4456 #
4457 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
4458 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
4459 # - projects/project/global/
4460 # forwardingRules/forwardingRule
4461 # - projects/project/regions/region/forwardingRules/
4462 # forwardingRule
4463 &quot;A String&quot;,
4464 ],
4465 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
4466 # allows you to control which network&#x27;s VMs get this rule. If this field
4467 # is left blank, all VMs within the organization will receive the rule.
4468 &quot;A String&quot;,
4469 ],
4470 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
4471 # applies to. If targetSecureTag are specified, then the
4472 # firewall rule applies only to instances in the VPC network that have one
4473 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
4474 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
4475 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
4476 # to all instances on the specified network.
4477 # Maximum number of target label tags allowed is 256.
4478 {
4479 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4480 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4481 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4482 # or its network is deleted.
4483 },
4484 ],
4485 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
4486 # applied with this rule.
4487 &quot;A String&quot;,
4488 ],
4489 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
4490 # Default value is INSTANCES.
4491 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
4492 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
4493 # be set for other actions.
4494 },
4495 ],
4496 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
4497 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
4498 &quot;shortName&quot;: &quot;A String&quot;, # User-provided name of the Organization firewall policy. The name should be
4499 # unique in the organization in which the firewall policy is created.
4500 # This field is not applicable to network firewall policies.
4501 # This name must be set on creation and cannot be changed. The name must be
4502 # 1-63 characters long, and comply with RFC1035.
4503 # Specifically, the name must be 1-63 characters long and match the regular
4504 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
4505 # character must be a lowercase letter, and all following characters must
4506 # be a dash, lowercase letter, or digit, except the last character, which
4507 # cannot be a dash.
4508 },
4509 ],
4510 &quot;kind&quot;: &quot;compute#firewallPolicyList&quot;, # Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies
4511 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
4512 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
4513 # the query parameter pageToken in the next list request.
4514 # Subsequent list requests will have their own nextPageToken to
4515 # continue paging through the results.
4516 &quot;warning&quot;: { # [Output Only] Informational warning message.
4517 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
4518 # Engine returns NO_RESULTS_ON_PAGE if there
4519 # are no results in the response.
4520 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
4521 # value format. For example:
4522 #
4523 # &quot;data&quot;: [
4524 # {
4525 # &quot;key&quot;: &quot;scope&quot;,
4526 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
4527 # }
4528 {
4529 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
4530 # returned. For example, for warnings where there are no results in a list
4531 # request for a particular zone, this key might be scope and
4532 # the key value might be the zone name. Other examples might be a key
4533 # indicating a deprecated resource and a suggested replacement, or a
4534 # warning about invalid network settings (for example, if an instance
4535 # attempts to perform IP forwarding but is not enabled for IP forwarding).
4536 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
4537 },
4538 ],
4539 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
4540 },
4541 }</pre>
4542 </div>
4543
4544 <div class="method">
4545 <code class="details" id="list_next">list_next()</code>
4546 <pre>Retrieves the next page of results.
4547
4548 Args:
4549 previous_request: The request for the previous page. (required)
4550 previous_response: The response from the request for the previous page. (required)
4551
4552 Returns:
4553 A request object that you can call &#x27;execute()&#x27; on to request the next
4554 page. Returns None if there are no more items in the collection.
4555 </pre>
4556 </div>
4557
4558 <div class="method">
4559 <code class="details" id="patch">patch(project, region, firewallPolicy, body=None, requestId=None, x__xgafv=None)</code>
4560 <pre>Patches the specified network firewall policy.
4561
4562 Args:
4563 project: string, Project ID for this request. (required)
4564 region: string, Name of the region scoping this request. (required)
4565 firewallPolicy: string, Name of the firewall policy to update. (required)
4566 body: object, The request body.
4567 The object takes the form of:
4568
4569 { # Represents a Firewall Policy resource.
4570 &quot;associations&quot;: [ # A list of associations that belong to this firewall policy.
4571 {
4572 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
4573 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
4574 # of the firewall policy of the association.
4575 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
4576 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
4577 &quot;priority&quot;: 42, # An integer indicating the priority of an association. The priority
4578 # must be a positive value between 1 and 2147483647.
4579 # Firewall Policies are evaluated from highest to lowest priority where 1
4580 # is the highest priority and 2147483647 is the lowest priority.
4581 # The default value is `1000`. If two associations have the same priority
4582 # then lexicographical order on association names is applied.
4583 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
4584 },
4585 ],
4586 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
4587 # text format.
4588 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
4589 # create the resource.
4590 &quot;displayName&quot;: &quot;A String&quot;, # Deprecated, please use short name instead. User-provided name of the
4591 # Organization firewall policy. The name should be unique in the organization
4592 # in which the firewall policy is created.
4593 # This field is not applicable to network firewall policies.
4594 # This name must be set on creation and cannot be changed.
4595 # The name must be 1-63 characters long, and comply
4596 # with RFC1035. Specifically, the name must be 1-63 characters
4597 # long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which
4598 # means the first character must be a lowercase letter, and all following
4599 # characters must be a dash, lowercase letter, or digit, except the last
4600 # character, which cannot be a dash.
4601 &quot;fingerprint&quot;: &quot;A String&quot;, # Specifies a fingerprint for this resource, which is essentially a hash of
4602 # the metadata&#x27;s contents and used for optimistic locking. The
4603 # fingerprint is initially generated by Compute Engine and changes after
4604 # every request to modify or update metadata. You must always provide an
4605 # up-to-date fingerprint hash in order to update or change metadata,
4606 # otherwise the request will fail with error412 conditionNotMet.
4607 #
4608 # To see the latest fingerprint, make get() request to the
4609 # firewall policy.
4610 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
4611 # defined by the server.
4612 &quot;kind&quot;: &quot;compute#firewallPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
4613 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. For Organization Firewall Policies it&#x27;s a
4614 # [Output Only] numeric ID allocated by Google Cloud which uniquely
4615 # identifies the Organization Firewall Policy.
4616 &quot;packetMirroringRules&quot;: [ # A list of packet mirroring rules that belong to this policy.
4617 { # Represents a rule that describes one or more match conditions along with
4618 # the action to be taken when traffic matches this condition (allow or deny).
4619 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
4620 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
4621 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
4622 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
4623 # and &quot;goto_next&quot;.
4624 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
4625 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
4626 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
4627 # the firewall policy rule is not enforced and traffic behaves as if it did
4628 # not exist. If this is unspecified, the firewall policy rule will be
4629 # enabled.
4630 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
4631 # enabled, logs will be exported to the configured export destination in
4632 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
4633 # cannot enable logging on &quot;goto_next&quot; rules.
4634 &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.
4635 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
4636 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
4637 # Exactly one field must be specified.
4638 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
4639 # Maximum number of destination address groups is 10.
4640 &quot;A String&quot;,
4641 ],
4642 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4643 # traffic destination.
4644 # Maximum number of destination fqdn allowed is 100.
4645 &quot;A String&quot;,
4646 ],
4647 &quot;destIpRanges&quot;: [ # CIDR IP address range.
4648 # Maximum number of destination CIDR IP ranges allowed is 5000.
4649 &quot;A String&quot;,
4650 ],
4651 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
4652 #
4653 #
4654 # - UNSPECIFIED
4655 # - INTERNET
4656 # - NON_INTERNET
4657 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
4658 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
4659 #
4660 #
4661 # - UNSPECIFIED
4662 # - INTERNET
4663 # - NON_INTERNET
4664 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
4665 # of traffic. Should be specified as 2 letter country code defined as per
4666 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4667 # Maximum number of dest region codes allowed is 5000.
4668 &quot;A String&quot;,
4669 ],
4670 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4671 # The IPs in these lists will be matched against traffic destination.
4672 &quot;A String&quot;,
4673 ],
4674 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
4675 {
4676 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
4677 # required when creating a firewall rule. This value can either be
4678 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
4679 # protocol number.
4680 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
4681 # only applicable for UDP or TCP protocol. Each entry must be either
4682 # an integer or a range. If not specified, this rule applies to
4683 # connections through any port.
4684 #
4685 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
4686 &quot;A String&quot;,
4687 ],
4688 },
4689 ],
4690 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
4691 # Maximum number of source address groups is 10.
4692 &quot;A String&quot;,
4693 ],
4694 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4695 # traffic source.
4696 # Maximum number of source fqdn allowed is 100.
4697 &quot;A String&quot;,
4698 ],
4699 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
4700 # Maximum number of source CIDR IP ranges allowed is 5000.
4701 &quot;A String&quot;,
4702 ],
4703 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
4704 #
4705 #
4706 # - UNSPECIFIED
4707 # - INTERNET
4708 # - INTRA_VPC
4709 # - NON_INTERNET
4710 # - VPC_NETWORKS
4711 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
4712 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
4713 #
4714 #
4715 # - UNSPECIFIED
4716 # - INTERNET
4717 # - INTRA_VPC
4718 # - NON_INTERNET
4719 # - VPC_NETWORKS
4720 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
4721 &quot;A String&quot;,
4722 ],
4723 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
4724 # of traffic. Should be specified as 2 letter country code defined as per
4725 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4726 # Maximum number of source region codes allowed is 5000.
4727 &quot;A String&quot;,
4728 ],
4729 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
4730 # of the traffic.
4731 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
4732 # and there is no srcIpRange, this rule will be ignored.
4733 # Maximum number of source tag values allowed is 256.
4734 {
4735 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4736 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4737 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4738 # or its network is deleted.
4739 },
4740 ],
4741 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4742 # The IPs in these lists will be matched against traffic source.
4743 &quot;A String&quot;,
4744 ],
4745 },
4746 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
4747 # must be a positive value between 0 and 2147483647.
4748 # Rules are evaluated from highest to lowest priority where 0 is the
4749 # highest priority and 2147483647 is the lowest priority.
4750 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
4751 # and can be updated.
4752 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
4753 # rule.
4754 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
4755 # Example:
4756 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
4757 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
4758 # &#x27;mirror&#x27;. Cannot be specified for other actions.
4759 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
4760 # This field allows you to control which load balancers get this rule.
4761 # For example, the following are valid values:
4762 #
4763 #
4764 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
4765 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
4766 # - projects/project/global/
4767 # forwardingRules/forwardingRule
4768 # - projects/project/regions/region/forwardingRules/
4769 # forwardingRule
4770 &quot;A String&quot;,
4771 ],
4772 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
4773 # allows you to control which network&#x27;s VMs get this rule. If this field
4774 # is left blank, all VMs within the organization will receive the rule.
4775 &quot;A String&quot;,
4776 ],
4777 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
4778 # applies to. If targetSecureTag are specified, then the
4779 # firewall rule applies only to instances in the VPC network that have one
4780 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
4781 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
4782 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
4783 # to all instances on the specified network.
4784 # Maximum number of target label tags allowed is 256.
4785 {
4786 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4787 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4788 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4789 # or its network is deleted.
4790 },
4791 ],
4792 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
4793 # applied with this rule.
4794 &quot;A String&quot;,
4795 ],
4796 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
4797 # Default value is INSTANCES.
4798 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
4799 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
4800 # be set for other actions.
4801 },
4802 ],
4803 &quot;parent&quot;: &quot;A String&quot;, # Output only. [Output Only] The parent of the firewall policy.
4804 # This field is not applicable to network firewall policies.
4805 &quot;policySource&quot;: &quot;A String&quot;, # Indicates the source of this Firewall Policy. This field is optional on
4806 # creation and defaults to USER_DEFINED.
4807 #
4808 # The USER_DEFINED value indicates a regular firewall policy.
4809 #
4810 # The SYSTEM value indicates a system-level policy managed by an
4811 # internal service like GKE. This SYSTEM value is reserved for
4812 # internal services and cannot be set by users during policy creation.
4813 # Policies with a SYSTEM source cannot be modified or deleted by
4814 # users.
4815 &quot;policyType&quot;: &quot;A String&quot;, # The type of the firewall policy. This field can be one of
4816 # VPC_POLICY, RDMA_ROCE_POLICY or ULL_POLICY.
4817 #
4818 # Note: if not specified then VPC_POLICY will be used.
4819 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional firewall policy resides.
4820 # This field is not applicable to global firewall policies.
4821 # You must specify this field as part of the HTTP request URL. It is
4822 # not settable as a field in the request body.
4823 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall
4824 # policy can not exceed a set number of tuples.
4825 &quot;rules&quot;: [ # A list of rules that belong to this policy.
4826 # There must always be a default rule (rule with priority 2147483647 and
4827 # match &quot;*&quot;). If no rules are provided when creating a firewall policy, a
4828 # default rule with action &quot;allow&quot; will be added.
4829 { # Represents a rule that describes one or more match conditions along with
4830 # the action to be taken when traffic matches this condition (allow or deny).
4831 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
4832 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
4833 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
4834 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
4835 # and &quot;goto_next&quot;.
4836 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
4837 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
4838 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
4839 # the firewall policy rule is not enforced and traffic behaves as if it did
4840 # not exist. If this is unspecified, the firewall policy rule will be
4841 # enabled.
4842 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
4843 # enabled, logs will be exported to the configured export destination in
4844 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
4845 # cannot enable logging on &quot;goto_next&quot; rules.
4846 &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.
4847 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
4848 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
4849 # Exactly one field must be specified.
4850 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
4851 # Maximum number of destination address groups is 10.
4852 &quot;A String&quot;,
4853 ],
4854 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4855 # traffic destination.
4856 # Maximum number of destination fqdn allowed is 100.
4857 &quot;A String&quot;,
4858 ],
4859 &quot;destIpRanges&quot;: [ # CIDR IP address range.
4860 # Maximum number of destination CIDR IP ranges allowed is 5000.
4861 &quot;A String&quot;,
4862 ],
4863 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
4864 #
4865 #
4866 # - UNSPECIFIED
4867 # - INTERNET
4868 # - NON_INTERNET
4869 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
4870 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
4871 #
4872 #
4873 # - UNSPECIFIED
4874 # - INTERNET
4875 # - NON_INTERNET
4876 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
4877 # of traffic. Should be specified as 2 letter country code defined as per
4878 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4879 # Maximum number of dest region codes allowed is 5000.
4880 &quot;A String&quot;,
4881 ],
4882 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4883 # The IPs in these lists will be matched against traffic destination.
4884 &quot;A String&quot;,
4885 ],
4886 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
4887 {
4888 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
4889 # required when creating a firewall rule. This value can either be
4890 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
4891 # protocol number.
4892 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
4893 # only applicable for UDP or TCP protocol. Each entry must be either
4894 # an integer or a range. If not specified, this rule applies to
4895 # connections through any port.
4896 #
4897 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
4898 &quot;A String&quot;,
4899 ],
4900 },
4901 ],
4902 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
4903 # Maximum number of source address groups is 10.
4904 &quot;A String&quot;,
4905 ],
4906 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4907 # traffic source.
4908 # Maximum number of source fqdn allowed is 100.
4909 &quot;A String&quot;,
4910 ],
4911 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
4912 # Maximum number of source CIDR IP ranges allowed is 5000.
4913 &quot;A String&quot;,
4914 ],
4915 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
4916 #
4917 #
4918 # - UNSPECIFIED
4919 # - INTERNET
4920 # - INTRA_VPC
4921 # - NON_INTERNET
4922 # - VPC_NETWORKS
4923 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
4924 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
4925 #
4926 #
4927 # - UNSPECIFIED
4928 # - INTERNET
4929 # - INTRA_VPC
4930 # - NON_INTERNET
4931 # - VPC_NETWORKS
4932 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
4933 &quot;A String&quot;,
4934 ],
4935 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
4936 # of traffic. Should be specified as 2 letter country code defined as per
4937 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4938 # Maximum number of source region codes allowed is 5000.
4939 &quot;A String&quot;,
4940 ],
4941 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
4942 # of the traffic.
4943 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
4944 # and there is no srcIpRange, this rule will be ignored.
4945 # Maximum number of source tag values allowed is 256.
4946 {
4947 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4948 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4949 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4950 # or its network is deleted.
4951 },
4952 ],
4953 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4954 # The IPs in these lists will be matched against traffic source.
4955 &quot;A String&quot;,
4956 ],
4957 },
4958 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
4959 # must be a positive value between 0 and 2147483647.
4960 # Rules are evaluated from highest to lowest priority where 0 is the
4961 # highest priority and 2147483647 is the lowest priority.
4962 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
4963 # and can be updated.
4964 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
4965 # rule.
4966 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
4967 # Example:
4968 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
4969 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
4970 # &#x27;mirror&#x27;. Cannot be specified for other actions.
4971 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
4972 # This field allows you to control which load balancers get this rule.
4973 # For example, the following are valid values:
4974 #
4975 #
4976 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
4977 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
4978 # - projects/project/global/
4979 # forwardingRules/forwardingRule
4980 # - projects/project/regions/region/forwardingRules/
4981 # forwardingRule
4982 &quot;A String&quot;,
4983 ],
4984 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
4985 # allows you to control which network&#x27;s VMs get this rule. If this field
4986 # is left blank, all VMs within the organization will receive the rule.
4987 &quot;A String&quot;,
4988 ],
4989 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
4990 # applies to. If targetSecureTag are specified, then the
4991 # firewall rule applies only to instances in the VPC network that have one
4992 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
4993 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
4994 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
4995 # to all instances on the specified network.
4996 # Maximum number of target label tags allowed is 256.
4997 {
4998 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4999 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
5000 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
5001 # or its network is deleted.
5002 },
5003 ],
5004 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
5005 # applied with this rule.
5006 &quot;A String&quot;,
5007 ],
5008 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
5009 # Default value is INSTANCES.
5010 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
5011 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
5012 # be set for other actions.
5013 },
5014 ],
5015 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
5016 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
5017 &quot;shortName&quot;: &quot;A String&quot;, # User-provided name of the Organization firewall policy. The name should be
5018 # unique in the organization in which the firewall policy is created.
5019 # This field is not applicable to network firewall policies.
5020 # This name must be set on creation and cannot be changed. The name must be
5021 # 1-63 characters long, and comply with RFC1035.
5022 # Specifically, the name must be 1-63 characters long and match the regular
5023 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
5024 # character must be a lowercase letter, and all following characters must
5025 # be a dash, lowercase letter, or digit, except the last character, which
5026 # cannot be a dash.
5027 }
5028
5029 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
5030 that if you must retry your request, the server will know to ignore the
5031 request if it has already been completed.
5032
5033 For example, consider a situation where you make an initial request and
5034 the request times out. If you make the request again with the same
5035 request ID, the server can check if original operation with the same
5036 request ID was received, and if so, will ignore the second request. This
5037 prevents clients from accidentally creating duplicate commitments.
5038
5039 The request ID must be
5040 a valid UUID with the exception that zero UUID is not supported
5041 (00000000-0000-0000-0000-000000000000).
5042 x__xgafv: string, V1 error format.
5043 Allowed values
5044 1 - v1 error format
5045 2 - v2 error format
5046
5047 Returns:
5048 An object of the form:
5049
5050 { # Represents an Operation resource.
5051 #
5052 # Google Compute Engine has three Operation resources:
5053 #
5054 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
5055 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
5056 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
5057 #
5058 # You can use an operation resource to manage asynchronous API requests.
5059 # For more information, readHandling
5060 # API responses.
5061 #
5062 # Operations can be global, regional or zonal.
5063 #
5064 # - For global operations, use the `globalOperations`
5065 # resource.
5066 # - For regional operations, use the
5067 # `regionOperations` resource.
5068 # - For zonal operations, use
5069 # the `zoneOperations` resource.
5070 #
5071 #
5072 #
5073 # For more information, read
5074 # Global, Regional, and Zonal Resources.
5075 #
5076 # Note that completed Operation resources have a limited
5077 # retention period.
5078 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
5079 # Not present otherwise.
5080 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
5081 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
5082 # set when the operation is created.
5083 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
5084 # text format.
5085 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
5086 # this field will be populated.
5087 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
5088 # operation.
5089 {
5090 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
5091 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
5092 # details. There is a set of defined message types to use for providing
5093 # details.The syntax depends on the error code. For example,
5094 # QuotaExceededInfo will have details when the error code is
5095 # QUOTA_EXCEEDED.
5096 {
5097 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
5098 #
5099 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
5100 # is not enabled:
5101 #
5102 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
5103 # &quot;domain&quot;: &quot;googleapis.com&quot;
5104 # &quot;metadata&quot;: {
5105 # &quot;resource&quot;: &quot;projects/123&quot;,
5106 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
5107 # }
5108 # }
5109 #
5110 # This response indicates that the pubsub.googleapis.com API is not enabled.
5111 #
5112 # Example of an error that is returned when attempting to create a Spanner
5113 # instance in a region that is out of stock:
5114 #
5115 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
5116 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
5117 # &quot;metadata&quot;: {
5118 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
5119 # }
5120 # }
5121 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
5122 # is typically the registered service name of the tool or product that
5123 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
5124 # generated by some common infrastructure, the error domain must be a
5125 # globally unique value that identifies the infrastructure. For Google API
5126 # infrastructure, the error domain is &quot;googleapis.com&quot;.
5127 &quot;metadatas&quot;: { # Additional structured details about this error.
5128 #
5129 # Keys must match a regular expression of `a-z+` but should
5130 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
5131 # length. When identifying the current value of an exceeded limit, the units
5132 # should be contained in the key, not the value. For example, rather than
5133 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
5134 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
5135 # instances that can be created in a single (batch) request.
5136 &quot;a_key&quot;: &quot;A String&quot;,
5137 },
5138 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
5139 # proximate cause of the error. Error reasons are unique within a particular
5140 # domain of errors. This should be at most 63 characters and match a
5141 # regular expression of `A-Z+[A-Z0-9]`, which represents
5142 # UPPER_SNAKE_CASE.
5143 },
5144 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
5145 #
5146 # For example, if a quota check failed with an error indicating the calling
5147 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
5148 # directly to the right place in the developer console to flip the bit.
5149 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
5150 { # Describes a URL link.
5151 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
5152 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
5153 },
5154 ],
5155 },
5156 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
5157 # which can be attached to an RPC error.
5158 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
5159 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
5160 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
5161 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
5162 },
5163 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
5164 &quot;dimensions&quot;: { # The map holding related quota dimensions.
5165 &quot;a_key&quot;: &quot;A String&quot;,
5166 },
5167 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
5168 # type or metric.
5169 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
5170 # or metric.
5171 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
5172 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
5173 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
5174 },
5175 },
5176 ],
5177 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
5178 # This property is optional.
5179 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
5180 },
5181 ],
5182 },
5183 &quot;getVersionOperationMetadata&quot;: {
5184 &quot;inlineSbomInfo&quot;: {
5185 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
5186 # appropriate identifiers.
5187 &quot;a_key&quot;: &quot;A String&quot;,
5188 },
5189 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
5190 # identifiers.
5191 &quot;a_key&quot;: &quot;A String&quot;,
5192 },
5193 },
5194 },
5195 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
5196 # message that was returned, such as `NOT FOUND`.
5197 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
5198 # status code that was returned. For example, a `404` means the
5199 # resource was not found.
5200 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
5201 # defined by the server.
5202 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
5203 # This value is inRFC3339
5204 # text format.
5205 &quot;instancesBulkInsertOperationMetadata&quot;: {
5206 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
5207 # Example key: zones/us-central1-a
5208 &quot;a_key&quot;: {
5209 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
5210 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
5211 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
5212 # error.
5213 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
5214 # if the flow is rolling forward or rolling back.
5215 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
5216 },
5217 },
5218 },
5219 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
5220 # Operation resources.
5221 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
5222 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
5223 # group of operations results from a `bulkInsert` API request.
5224 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
5225 # `update`, or `delete`, and so on.
5226 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
5227 # There is no requirement that this be linear or support any granularity of
5228 # operations. This should not be used to guess when the operation will be
5229 # complete. This number should monotonically increase as the operation
5230 # progresses.
5231 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
5232 # applicable when performing regional operations.
5233 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
5234 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
5235 # this field will contain information on all underlying zonal actions and
5236 # their state.
5237 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
5238 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
5239 # Example key: zones/us-central1-a
5240 &quot;a_key&quot;: {
5241 &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
5242 # populated.
5243 # different programming environments, including REST APIs and RPC APIs. It is
5244 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
5245 # three pieces of data: error code, error message, and error details.
5246 #
5247 # You can find out more about this error model and how to work with it in the
5248 # [API Design Guide](https://cloud.google.com/apis/design/errors).
5249 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
5250 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
5251 # message types for APIs to use.
5252 {
5253 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
5254 },
5255 ],
5256 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
5257 # user-facing error message should be localized and sent in the
5258 # google.rpc.Status.details field, or localized by the client.
5259 },
5260 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
5261 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
5262 },
5263 },
5264 },
5265 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
5266 # This value is inRFC3339
5267 # text format.
5268 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
5269 # following:
5270 # `PENDING`, `RUNNING`, or `DONE`.
5271 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
5272 # operation.
5273 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
5274 # of the target resource.
5275 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
5276 # operations related to creating a snapshot, this points to the disk
5277 # that the snapshot was created from.
5278 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
5279 # `[email protected]` or
5280 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
5281 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
5282 # operation, this field will be populated.
5283 {
5284 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
5285 # Engine returns NO_RESULTS_ON_PAGE if there
5286 # are no results in the response.
5287 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
5288 # value format. For example:
5289 #
5290 # &quot;data&quot;: [
5291 # {
5292 # &quot;key&quot;: &quot;scope&quot;,
5293 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
5294 # }
5295 {
5296 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
5297 # returned. For example, for warnings where there are no results in a list
5298 # request for a particular zone, this key might be scope and
5299 # the key value might be the zone name. Other examples might be a key
5300 # indicating a deprecated resource and a suggested replacement, or a
5301 # warning about invalid network settings (for example, if an instance
5302 # attempts to perform IP forwarding but is not enabled for IP forwarding).
5303 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
5304 },
5305 ],
5306 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
5307 },
5308 ],
5309 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
5310 # applicable when performing per-zone operations.
5311 }</pre>
5312 </div>
5313
5314 <div class="method">
5315 <code class="details" id="patchAssociation">patchAssociation(project, region, firewallPolicy, body=None, requestId=None, x__xgafv=None)</code>
5316 <pre>Updates an association for the specified network firewall policy.
5317
5318 Args:
5319 project: string, Project ID for this request. (required)
5320 region: string, Name of the region scoping this request. (required)
5321 firewallPolicy: string, Name of the firewall policy to update. (required)
5322 body: object, The request body.
5323 The object takes the form of:
5324
5325 {
5326 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
5327 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
5328 # of the firewall policy of the association.
5329 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
5330 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
5331 &quot;priority&quot;: 42, # An integer indicating the priority of an association. The priority
5332 # must be a positive value between 1 and 2147483647.
5333 # Firewall Policies are evaluated from highest to lowest priority where 1
5334 # is the highest priority and 2147483647 is the lowest priority.
5335 # The default value is `1000`. If two associations have the same priority
5336 # then lexicographical order on association names is applied.
5337 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
5338 }
5339
5340 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
5341 that if you must retry your request, the server will know to ignore the
5342 request if it has already been completed.
5343
5344 For example, consider a situation where you make an initial request and
5345 the request times out. If you make the request again with the same
5346 request ID, the server can check if original operation with the same
5347 request ID was received, and if so, will ignore the second request. This
5348 prevents clients from accidentally creating duplicate commitments.
5349
5350 The request ID must be
5351 a valid UUID with the exception that zero UUID is not supported
5352 (00000000-0000-0000-0000-000000000000).
5353 x__xgafv: string, V1 error format.
5354 Allowed values
5355 1 - v1 error format
5356 2 - v2 error format
5357
5358 Returns:
5359 An object of the form:
5360
5361 { # Represents an Operation resource.
5362 #
5363 # Google Compute Engine has three Operation resources:
5364 #
5365 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
5366 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
5367 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
5368 #
5369 # You can use an operation resource to manage asynchronous API requests.
5370 # For more information, readHandling
5371 # API responses.
5372 #
5373 # Operations can be global, regional or zonal.
5374 #
5375 # - For global operations, use the `globalOperations`
5376 # resource.
5377 # - For regional operations, use the
5378 # `regionOperations` resource.
5379 # - For zonal operations, use
5380 # the `zoneOperations` resource.
5381 #
5382 #
5383 #
5384 # For more information, read
5385 # Global, Regional, and Zonal Resources.
5386 #
5387 # Note that completed Operation resources have a limited
5388 # retention period.
5389 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
5390 # Not present otherwise.
5391 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
5392 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
5393 # set when the operation is created.
5394 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
5395 # text format.
5396 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
5397 # this field will be populated.
5398 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
5399 # operation.
5400 {
5401 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
5402 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
5403 # details. There is a set of defined message types to use for providing
5404 # details.The syntax depends on the error code. For example,
5405 # QuotaExceededInfo will have details when the error code is
5406 # QUOTA_EXCEEDED.
5407 {
5408 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
5409 #
5410 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
5411 # is not enabled:
5412 #
5413 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
5414 # &quot;domain&quot;: &quot;googleapis.com&quot;
5415 # &quot;metadata&quot;: {
5416 # &quot;resource&quot;: &quot;projects/123&quot;,
5417 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
5418 # }
5419 # }
5420 #
5421 # This response indicates that the pubsub.googleapis.com API is not enabled.
5422 #
5423 # Example of an error that is returned when attempting to create a Spanner
5424 # instance in a region that is out of stock:
5425 #
5426 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
5427 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
5428 # &quot;metadata&quot;: {
5429 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
5430 # }
5431 # }
5432 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
5433 # is typically the registered service name of the tool or product that
5434 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
5435 # generated by some common infrastructure, the error domain must be a
5436 # globally unique value that identifies the infrastructure. For Google API
5437 # infrastructure, the error domain is &quot;googleapis.com&quot;.
5438 &quot;metadatas&quot;: { # Additional structured details about this error.
5439 #
5440 # Keys must match a regular expression of `a-z+` but should
5441 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
5442 # length. When identifying the current value of an exceeded limit, the units
5443 # should be contained in the key, not the value. For example, rather than
5444 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
5445 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
5446 # instances that can be created in a single (batch) request.
5447 &quot;a_key&quot;: &quot;A String&quot;,
5448 },
5449 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
5450 # proximate cause of the error. Error reasons are unique within a particular
5451 # domain of errors. This should be at most 63 characters and match a
5452 # regular expression of `A-Z+[A-Z0-9]`, which represents
5453 # UPPER_SNAKE_CASE.
5454 },
5455 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
5456 #
5457 # For example, if a quota check failed with an error indicating the calling
5458 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
5459 # directly to the right place in the developer console to flip the bit.
5460 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
5461 { # Describes a URL link.
5462 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
5463 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
5464 },
5465 ],
5466 },
5467 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
5468 # which can be attached to an RPC error.
5469 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
5470 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
5471 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
5472 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
5473 },
5474 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
5475 &quot;dimensions&quot;: { # The map holding related quota dimensions.
5476 &quot;a_key&quot;: &quot;A String&quot;,
5477 },
5478 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
5479 # type or metric.
5480 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
5481 # or metric.
5482 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
5483 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
5484 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
5485 },
5486 },
5487 ],
5488 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
5489 # This property is optional.
5490 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
5491 },
5492 ],
5493 },
5494 &quot;getVersionOperationMetadata&quot;: {
5495 &quot;inlineSbomInfo&quot;: {
5496 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
5497 # appropriate identifiers.
5498 &quot;a_key&quot;: &quot;A String&quot;,
5499 },
5500 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
5501 # identifiers.
5502 &quot;a_key&quot;: &quot;A String&quot;,
5503 },
5504 },
5505 },
5506 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
5507 # message that was returned, such as `NOT FOUND`.
5508 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
5509 # status code that was returned. For example, a `404` means the
5510 # resource was not found.
5511 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
5512 # defined by the server.
5513 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
5514 # This value is inRFC3339
5515 # text format.
5516 &quot;instancesBulkInsertOperationMetadata&quot;: {
5517 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
5518 # Example key: zones/us-central1-a
5519 &quot;a_key&quot;: {
5520 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
5521 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
5522 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
5523 # error.
5524 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
5525 # if the flow is rolling forward or rolling back.
5526 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
5527 },
5528 },
5529 },
5530 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
5531 # Operation resources.
5532 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
5533 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
5534 # group of operations results from a `bulkInsert` API request.
5535 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
5536 # `update`, or `delete`, and so on.
5537 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
5538 # There is no requirement that this be linear or support any granularity of
5539 # operations. This should not be used to guess when the operation will be
5540 # complete. This number should monotonically increase as the operation
5541 # progresses.
5542 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
5543 # applicable when performing regional operations.
5544 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
5545 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
5546 # this field will contain information on all underlying zonal actions and
5547 # their state.
5548 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
5549 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
5550 # Example key: zones/us-central1-a
5551 &quot;a_key&quot;: {
5552 &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
5553 # populated.
5554 # different programming environments, including REST APIs and RPC APIs. It is
5555 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
5556 # three pieces of data: error code, error message, and error details.
5557 #
5558 # You can find out more about this error model and how to work with it in the
5559 # [API Design Guide](https://cloud.google.com/apis/design/errors).
5560 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
5561 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
5562 # message types for APIs to use.
5563 {
5564 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
5565 },
5566 ],
5567 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
5568 # user-facing error message should be localized and sent in the
5569 # google.rpc.Status.details field, or localized by the client.
5570 },
5571 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
5572 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
5573 },
5574 },
5575 },
5576 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
5577 # This value is inRFC3339
5578 # text format.
5579 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
5580 # following:
5581 # `PENDING`, `RUNNING`, or `DONE`.
5582 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
5583 # operation.
5584 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
5585 # of the target resource.
5586 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
5587 # operations related to creating a snapshot, this points to the disk
5588 # that the snapshot was created from.
5589 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
5590 # `[email protected]` or
5591 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
5592 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
5593 # operation, this field will be populated.
5594 {
5595 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
5596 # Engine returns NO_RESULTS_ON_PAGE if there
5597 # are no results in the response.
5598 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
5599 # value format. For example:
5600 #
5601 # &quot;data&quot;: [
5602 # {
5603 # &quot;key&quot;: &quot;scope&quot;,
5604 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
5605 # }
5606 {
5607 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
5608 # returned. For example, for warnings where there are no results in a list
5609 # request for a particular zone, this key might be scope and
5610 # the key value might be the zone name. Other examples might be a key
5611 # indicating a deprecated resource and a suggested replacement, or a
5612 # warning about invalid network settings (for example, if an instance
5613 # attempts to perform IP forwarding but is not enabled for IP forwarding).
5614 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
5615 },
5616 ],
5617 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
5618 },
5619 ],
5620 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
5621 # applicable when performing per-zone operations.
5622 }</pre>
5623 </div>
5624
5625 <div class="method">
5626 <code class="details" id="patchRule">patchRule(project, region, firewallPolicy, body=None, priority=None, requestId=None, x__xgafv=None)</code>
5627 <pre>Patches a rule of the specified priority.
5628
5629 Args:
5630 project: string, Project ID for this request. (required)
5631 region: string, Name of the region scoping this request. (required)
5632 firewallPolicy: string, Name of the firewall policy to update. (required)
5633 body: object, The request body.
5634 The object takes the form of:
5635
5636 { # Represents a rule that describes one or more match conditions along with
5637 # the action to be taken when traffic matches this condition (allow or deny).
5638 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
5639 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
5640 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
5641 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
5642 # and &quot;goto_next&quot;.
5643 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
5644 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
5645 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
5646 # the firewall policy rule is not enforced and traffic behaves as if it did
5647 # not exist. If this is unspecified, the firewall policy rule will be
5648 # enabled.
5649 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
5650 # enabled, logs will be exported to the configured export destination in
5651 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
5652 # cannot enable logging on &quot;goto_next&quot; rules.
5653 &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.
5654 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
5655 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
5656 # Exactly one field must be specified.
5657 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
5658 # Maximum number of destination address groups is 10.
5659 &quot;A String&quot;,
5660 ],
5661 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
5662 # traffic destination.
5663 # Maximum number of destination fqdn allowed is 100.
5664 &quot;A String&quot;,
5665 ],
5666 &quot;destIpRanges&quot;: [ # CIDR IP address range.
5667 # Maximum number of destination CIDR IP ranges allowed is 5000.
5668 &quot;A String&quot;,
5669 ],
5670 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
5671 #
5672 #
5673 # - UNSPECIFIED
5674 # - INTERNET
5675 # - NON_INTERNET
5676 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
5677 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
5678 #
5679 #
5680 # - UNSPECIFIED
5681 # - INTERNET
5682 # - NON_INTERNET
5683 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
5684 # of traffic. Should be specified as 2 letter country code defined as per
5685 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
5686 # Maximum number of dest region codes allowed is 5000.
5687 &quot;A String&quot;,
5688 ],
5689 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
5690 # The IPs in these lists will be matched against traffic destination.
5691 &quot;A String&quot;,
5692 ],
5693 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
5694 {
5695 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
5696 # required when creating a firewall rule. This value can either be
5697 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
5698 # protocol number.
5699 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
5700 # only applicable for UDP or TCP protocol. Each entry must be either
5701 # an integer or a range. If not specified, this rule applies to
5702 # connections through any port.
5703 #
5704 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
5705 &quot;A String&quot;,
5706 ],
5707 },
5708 ],
5709 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
5710 # Maximum number of source address groups is 10.
5711 &quot;A String&quot;,
5712 ],
5713 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
5714 # traffic source.
5715 # Maximum number of source fqdn allowed is 100.
5716 &quot;A String&quot;,
5717 ],
5718 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
5719 # Maximum number of source CIDR IP ranges allowed is 5000.
5720 &quot;A String&quot;,
5721 ],
5722 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
5723 #
5724 #
5725 # - UNSPECIFIED
5726 # - INTERNET
5727 # - INTRA_VPC
5728 # - NON_INTERNET
5729 # - VPC_NETWORKS
5730 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
5731 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
5732 #
5733 #
5734 # - UNSPECIFIED
5735 # - INTERNET
5736 # - INTRA_VPC
5737 # - NON_INTERNET
5738 # - VPC_NETWORKS
5739 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
5740 &quot;A String&quot;,
5741 ],
5742 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
5743 # of traffic. Should be specified as 2 letter country code defined as per
5744 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
5745 # Maximum number of source region codes allowed is 5000.
5746 &quot;A String&quot;,
5747 ],
5748 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
5749 # of the traffic.
5750 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
5751 # and there is no srcIpRange, this rule will be ignored.
5752 # Maximum number of source tag values allowed is 256.
5753 {
5754 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
5755 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
5756 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
5757 # or its network is deleted.
5758 },
5759 ],
5760 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
5761 # The IPs in these lists will be matched against traffic source.
5762 &quot;A String&quot;,
5763 ],
5764 },
5765 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
5766 # must be a positive value between 0 and 2147483647.
5767 # Rules are evaluated from highest to lowest priority where 0 is the
5768 # highest priority and 2147483647 is the lowest priority.
5769 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
5770 # and can be updated.
5771 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
5772 # rule.
5773 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
5774 # Example:
5775 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
5776 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
5777 # &#x27;mirror&#x27;. Cannot be specified for other actions.
5778 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
5779 # This field allows you to control which load balancers get this rule.
5780 # For example, the following are valid values:
5781 #
5782 #
5783 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
5784 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
5785 # - projects/project/global/
5786 # forwardingRules/forwardingRule
5787 # - projects/project/regions/region/forwardingRules/
5788 # forwardingRule
5789 &quot;A String&quot;,
5790 ],
5791 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
5792 # allows you to control which network&#x27;s VMs get this rule. If this field
5793 # is left blank, all VMs within the organization will receive the rule.
5794 &quot;A String&quot;,
5795 ],
5796 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
5797 # applies to. If targetSecureTag are specified, then the
5798 # firewall rule applies only to instances in the VPC network that have one
5799 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
5800 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
5801 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
5802 # to all instances on the specified network.
5803 # Maximum number of target label tags allowed is 256.
5804 {
5805 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
5806 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
5807 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
5808 # or its network is deleted.
5809 },
5810 ],
5811 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
5812 # applied with this rule.
5813 &quot;A String&quot;,
5814 ],
5815 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
5816 # Default value is INSTANCES.
5817 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
5818 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
5819 # be set for other actions.
5820 }
5821
5822 priority: integer, The priority of the rule to patch.
5823 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
5824 that if you must retry your request, the server will know to ignore the
5825 request if it has already been completed.
5826
5827 For example, consider a situation where you make an initial request and
5828 the request times out. If you make the request again with the same
5829 request ID, the server can check if original operation with the same
5830 request ID was received, and if so, will ignore the second request. This
5831 prevents clients from accidentally creating duplicate commitments.
5832
5833 The request ID must be
5834 a valid UUID with the exception that zero UUID is not supported
5835 (00000000-0000-0000-0000-000000000000).
5836 x__xgafv: string, V1 error format.
5837 Allowed values
5838 1 - v1 error format
5839 2 - v2 error format
5840
5841 Returns:
5842 An object of the form:
5843
5844 { # Represents an Operation resource.
5845 #
5846 # Google Compute Engine has three Operation resources:
5847 #
5848 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
5849 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
5850 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
5851 #
5852 # You can use an operation resource to manage asynchronous API requests.
5853 # For more information, readHandling
5854 # API responses.
5855 #
5856 # Operations can be global, regional or zonal.
5857 #
5858 # - For global operations, use the `globalOperations`
5859 # resource.
5860 # - For regional operations, use the
5861 # `regionOperations` resource.
5862 # - For zonal operations, use
5863 # the `zoneOperations` resource.
5864 #
5865 #
5866 #
5867 # For more information, read
5868 # Global, Regional, and Zonal Resources.
5869 #
5870 # Note that completed Operation resources have a limited
5871 # retention period.
5872 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
5873 # Not present otherwise.
5874 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
5875 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
5876 # set when the operation is created.
5877 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
5878 # text format.
5879 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
5880 # this field will be populated.
5881 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
5882 # operation.
5883 {
5884 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
5885 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
5886 # details. There is a set of defined message types to use for providing
5887 # details.The syntax depends on the error code. For example,
5888 # QuotaExceededInfo will have details when the error code is
5889 # QUOTA_EXCEEDED.
5890 {
5891 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
5892 #
5893 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
5894 # is not enabled:
5895 #
5896 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
5897 # &quot;domain&quot;: &quot;googleapis.com&quot;
5898 # &quot;metadata&quot;: {
5899 # &quot;resource&quot;: &quot;projects/123&quot;,
5900 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
5901 # }
5902 # }
5903 #
5904 # This response indicates that the pubsub.googleapis.com API is not enabled.
5905 #
5906 # Example of an error that is returned when attempting to create a Spanner
5907 # instance in a region that is out of stock:
5908 #
5909 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
5910 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
5911 # &quot;metadata&quot;: {
5912 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
5913 # }
5914 # }
5915 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
5916 # is typically the registered service name of the tool or product that
5917 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
5918 # generated by some common infrastructure, the error domain must be a
5919 # globally unique value that identifies the infrastructure. For Google API
5920 # infrastructure, the error domain is &quot;googleapis.com&quot;.
5921 &quot;metadatas&quot;: { # Additional structured details about this error.
5922 #
5923 # Keys must match a regular expression of `a-z+` but should
5924 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
5925 # length. When identifying the current value of an exceeded limit, the units
5926 # should be contained in the key, not the value. For example, rather than
5927 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
5928 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
5929 # instances that can be created in a single (batch) request.
5930 &quot;a_key&quot;: &quot;A String&quot;,
5931 },
5932 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
5933 # proximate cause of the error. Error reasons are unique within a particular
5934 # domain of errors. This should be at most 63 characters and match a
5935 # regular expression of `A-Z+[A-Z0-9]`, which represents
5936 # UPPER_SNAKE_CASE.
5937 },
5938 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
5939 #
5940 # For example, if a quota check failed with an error indicating the calling
5941 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
5942 # directly to the right place in the developer console to flip the bit.
5943 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
5944 { # Describes a URL link.
5945 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
5946 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
5947 },
5948 ],
5949 },
5950 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
5951 # which can be attached to an RPC error.
5952 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
5953 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
5954 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
5955 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
5956 },
5957 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
5958 &quot;dimensions&quot;: { # The map holding related quota dimensions.
5959 &quot;a_key&quot;: &quot;A String&quot;,
5960 },
5961 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
5962 # type or metric.
5963 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
5964 # or metric.
5965 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
5966 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
5967 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
5968 },
5969 },
5970 ],
5971 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
5972 # This property is optional.
5973 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
5974 },
5975 ],
5976 },
5977 &quot;getVersionOperationMetadata&quot;: {
5978 &quot;inlineSbomInfo&quot;: {
5979 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
5980 # appropriate identifiers.
5981 &quot;a_key&quot;: &quot;A String&quot;,
5982 },
5983 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
5984 # identifiers.
5985 &quot;a_key&quot;: &quot;A String&quot;,
5986 },
5987 },
5988 },
5989 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
5990 # message that was returned, such as `NOT FOUND`.
5991 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
5992 # status code that was returned. For example, a `404` means the
5993 # resource was not found.
5994 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
5995 # defined by the server.
5996 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
5997 # This value is inRFC3339
5998 # text format.
5999 &quot;instancesBulkInsertOperationMetadata&quot;: {
6000 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
6001 # Example key: zones/us-central1-a
6002 &quot;a_key&quot;: {
6003 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
6004 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
6005 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
6006 # error.
6007 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
6008 # if the flow is rolling forward or rolling back.
6009 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
6010 },
6011 },
6012 },
6013 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
6014 # Operation resources.
6015 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
6016 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
6017 # group of operations results from a `bulkInsert` API request.
6018 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
6019 # `update`, or `delete`, and so on.
6020 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
6021 # There is no requirement that this be linear or support any granularity of
6022 # operations. This should not be used to guess when the operation will be
6023 # complete. This number should monotonically increase as the operation
6024 # progresses.
6025 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
6026 # applicable when performing regional operations.
6027 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
6028 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
6029 # this field will contain information on all underlying zonal actions and
6030 # their state.
6031 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
6032 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
6033 # Example key: zones/us-central1-a
6034 &quot;a_key&quot;: {
6035 &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
6036 # populated.
6037 # different programming environments, including REST APIs and RPC APIs. It is
6038 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
6039 # three pieces of data: error code, error message, and error details.
6040 #
6041 # You can find out more about this error model and how to work with it in the
6042 # [API Design Guide](https://cloud.google.com/apis/design/errors).
6043 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
6044 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
6045 # message types for APIs to use.
6046 {
6047 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
6048 },
6049 ],
6050 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
6051 # user-facing error message should be localized and sent in the
6052 # google.rpc.Status.details field, or localized by the client.
6053 },
6054 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
6055 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
6056 },
6057 },
6058 },
6059 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
6060 # This value is inRFC3339
6061 # text format.
6062 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
6063 # following:
6064 # `PENDING`, `RUNNING`, or `DONE`.
6065 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
6066 # operation.
6067 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
6068 # of the target resource.
6069 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
6070 # operations related to creating a snapshot, this points to the disk
6071 # that the snapshot was created from.
6072 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
6073 # `[email protected]` or
6074 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
6075 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
6076 # operation, this field will be populated.
6077 {
6078 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
6079 # Engine returns NO_RESULTS_ON_PAGE if there
6080 # are no results in the response.
6081 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
6082 # value format. For example:
6083 #
6084 # &quot;data&quot;: [
6085 # {
6086 # &quot;key&quot;: &quot;scope&quot;,
6087 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
6088 # }
6089 {
6090 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
6091 # returned. For example, for warnings where there are no results in a list
6092 # request for a particular zone, this key might be scope and
6093 # the key value might be the zone name. Other examples might be a key
6094 # indicating a deprecated resource and a suggested replacement, or a
6095 # warning about invalid network settings (for example, if an instance
6096 # attempts to perform IP forwarding but is not enabled for IP forwarding).
6097 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
6098 },
6099 ],
6100 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
6101 },
6102 ],
6103 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
6104 # applicable when performing per-zone operations.
6105 }</pre>
6106 </div>
6107
6108 <div class="method">
6109 <code class="details" id="removeAssociation">removeAssociation(project, region, firewallPolicy, name=None, requestId=None, x__xgafv=None)</code>
6110 <pre>Removes an association for the specified network firewall policy.
6111
6112 Args:
6113 project: string, Project ID for this request. (required)
6114 region: string, Name of the region scoping this request. (required)
6115 firewallPolicy: string, Name of the firewall policy to update. (required)
6116 name: string, Name for the association that will be removed.
6117 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
6118 that if you must retry your request, the server will know to ignore the
6119 request if it has already been completed.
6120
6121 For example, consider a situation where you make an initial request and
6122 the request times out. If you make the request again with the same
6123 request ID, the server can check if original operation with the same
6124 request ID was received, and if so, will ignore the second request. This
6125 prevents clients from accidentally creating duplicate commitments.
6126
6127 The request ID must be
6128 a valid UUID with the exception that zero UUID is not supported
6129 (00000000-0000-0000-0000-000000000000).
6130 x__xgafv: string, V1 error format.
6131 Allowed values
6132 1 - v1 error format
6133 2 - v2 error format
6134
6135 Returns:
6136 An object of the form:
6137
6138 { # Represents an Operation resource.
6139 #
6140 # Google Compute Engine has three Operation resources:
6141 #
6142 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
6143 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
6144 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
6145 #
6146 # You can use an operation resource to manage asynchronous API requests.
6147 # For more information, readHandling
6148 # API responses.
6149 #
6150 # Operations can be global, regional or zonal.
6151 #
6152 # - For global operations, use the `globalOperations`
6153 # resource.
6154 # - For regional operations, use the
6155 # `regionOperations` resource.
6156 # - For zonal operations, use
6157 # the `zoneOperations` resource.
6158 #
6159 #
6160 #
6161 # For more information, read
6162 # Global, Regional, and Zonal Resources.
6163 #
6164 # Note that completed Operation resources have a limited
6165 # retention period.
6166 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
6167 # Not present otherwise.
6168 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
6169 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
6170 # set when the operation is created.
6171 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
6172 # text format.
6173 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
6174 # this field will be populated.
6175 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
6176 # operation.
6177 {
6178 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
6179 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
6180 # details. There is a set of defined message types to use for providing
6181 # details.The syntax depends on the error code. For example,
6182 # QuotaExceededInfo will have details when the error code is
6183 # QUOTA_EXCEEDED.
6184 {
6185 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
6186 #
6187 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
6188 # is not enabled:
6189 #
6190 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
6191 # &quot;domain&quot;: &quot;googleapis.com&quot;
6192 # &quot;metadata&quot;: {
6193 # &quot;resource&quot;: &quot;projects/123&quot;,
6194 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
6195 # }
6196 # }
6197 #
6198 # This response indicates that the pubsub.googleapis.com API is not enabled.
6199 #
6200 # Example of an error that is returned when attempting to create a Spanner
6201 # instance in a region that is out of stock:
6202 #
6203 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
6204 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
6205 # &quot;metadata&quot;: {
6206 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
6207 # }
6208 # }
6209 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
6210 # is typically the registered service name of the tool or product that
6211 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
6212 # generated by some common infrastructure, the error domain must be a
6213 # globally unique value that identifies the infrastructure. For Google API
6214 # infrastructure, the error domain is &quot;googleapis.com&quot;.
6215 &quot;metadatas&quot;: { # Additional structured details about this error.
6216 #
6217 # Keys must match a regular expression of `a-z+` but should
6218 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
6219 # length. When identifying the current value of an exceeded limit, the units
6220 # should be contained in the key, not the value. For example, rather than
6221 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
6222 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
6223 # instances that can be created in a single (batch) request.
6224 &quot;a_key&quot;: &quot;A String&quot;,
6225 },
6226 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
6227 # proximate cause of the error. Error reasons are unique within a particular
6228 # domain of errors. This should be at most 63 characters and match a
6229 # regular expression of `A-Z+[A-Z0-9]`, which represents
6230 # UPPER_SNAKE_CASE.
6231 },
6232 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
6233 #
6234 # For example, if a quota check failed with an error indicating the calling
6235 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
6236 # directly to the right place in the developer console to flip the bit.
6237 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
6238 { # Describes a URL link.
6239 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
6240 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
6241 },
6242 ],
6243 },
6244 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
6245 # which can be attached to an RPC error.
6246 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
6247 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
6248 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
6249 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
6250 },
6251 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
6252 &quot;dimensions&quot;: { # The map holding related quota dimensions.
6253 &quot;a_key&quot;: &quot;A String&quot;,
6254 },
6255 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
6256 # type or metric.
6257 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
6258 # or metric.
6259 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
6260 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
6261 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
6262 },
6263 },
6264 ],
6265 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
6266 # This property is optional.
6267 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
6268 },
6269 ],
6270 },
6271 &quot;getVersionOperationMetadata&quot;: {
6272 &quot;inlineSbomInfo&quot;: {
6273 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
6274 # appropriate identifiers.
6275 &quot;a_key&quot;: &quot;A String&quot;,
6276 },
6277 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
6278 # identifiers.
6279 &quot;a_key&quot;: &quot;A String&quot;,
6280 },
6281 },
6282 },
6283 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
6284 # message that was returned, such as `NOT FOUND`.
6285 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
6286 # status code that was returned. For example, a `404` means the
6287 # resource was not found.
6288 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
6289 # defined by the server.
6290 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
6291 # This value is inRFC3339
6292 # text format.
6293 &quot;instancesBulkInsertOperationMetadata&quot;: {
6294 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
6295 # Example key: zones/us-central1-a
6296 &quot;a_key&quot;: {
6297 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
6298 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
6299 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
6300 # error.
6301 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
6302 # if the flow is rolling forward or rolling back.
6303 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
6304 },
6305 },
6306 },
6307 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
6308 # Operation resources.
6309 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
6310 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
6311 # group of operations results from a `bulkInsert` API request.
6312 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
6313 # `update`, or `delete`, and so on.
6314 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
6315 # There is no requirement that this be linear or support any granularity of
6316 # operations. This should not be used to guess when the operation will be
6317 # complete. This number should monotonically increase as the operation
6318 # progresses.
6319 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
6320 # applicable when performing regional operations.
6321 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
6322 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
6323 # this field will contain information on all underlying zonal actions and
6324 # their state.
6325 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
6326 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
6327 # Example key: zones/us-central1-a
6328 &quot;a_key&quot;: {
6329 &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
6330 # populated.
6331 # different programming environments, including REST APIs and RPC APIs. It is
6332 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
6333 # three pieces of data: error code, error message, and error details.
6334 #
6335 # You can find out more about this error model and how to work with it in the
6336 # [API Design Guide](https://cloud.google.com/apis/design/errors).
6337 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
6338 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
6339 # message types for APIs to use.
6340 {
6341 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
6342 },
6343 ],
6344 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
6345 # user-facing error message should be localized and sent in the
6346 # google.rpc.Status.details field, or localized by the client.
6347 },
6348 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
6349 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
6350 },
6351 },
6352 },
6353 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
6354 # This value is inRFC3339
6355 # text format.
6356 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
6357 # following:
6358 # `PENDING`, `RUNNING`, or `DONE`.
6359 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
6360 # operation.
6361 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
6362 # of the target resource.
6363 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
6364 # operations related to creating a snapshot, this points to the disk
6365 # that the snapshot was created from.
6366 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
6367 # `[email protected]` or
6368 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
6369 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
6370 # operation, this field will be populated.
6371 {
6372 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
6373 # Engine returns NO_RESULTS_ON_PAGE if there
6374 # are no results in the response.
6375 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
6376 # value format. For example:
6377 #
6378 # &quot;data&quot;: [
6379 # {
6380 # &quot;key&quot;: &quot;scope&quot;,
6381 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
6382 # }
6383 {
6384 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
6385 # returned. For example, for warnings where there are no results in a list
6386 # request for a particular zone, this key might be scope and
6387 # the key value might be the zone name. Other examples might be a key
6388 # indicating a deprecated resource and a suggested replacement, or a
6389 # warning about invalid network settings (for example, if an instance
6390 # attempts to perform IP forwarding but is not enabled for IP forwarding).
6391 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
6392 },
6393 ],
6394 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
6395 },
6396 ],
6397 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
6398 # applicable when performing per-zone operations.
6399 }</pre>
6400 </div>
6401
6402 <div class="method">
6403 <code class="details" id="removeRule">removeRule(project, region, firewallPolicy, priority=None, requestId=None, x__xgafv=None)</code>
6404 <pre>Deletes a rule of the specified priority.
6405
6406 Args:
6407 project: string, Project ID for this request. (required)
6408 region: string, Name of the region scoping this request. (required)
6409 firewallPolicy: string, Name of the firewall policy to update. (required)
6410 priority: integer, The priority of the rule to remove from the firewall policy.
6411 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
6412 that if you must retry your request, the server will know to ignore the
6413 request if it has already been completed.
6414
6415 For example, consider a situation where you make an initial request and
6416 the request times out. If you make the request again with the same
6417 request ID, the server can check if original operation with the same
6418 request ID was received, and if so, will ignore the second request. This
6419 prevents clients from accidentally creating duplicate commitments.
6420
6421 The request ID must be
6422 a valid UUID with the exception that zero UUID is not supported
6423 (00000000-0000-0000-0000-000000000000).
6424 x__xgafv: string, V1 error format.
6425 Allowed values
6426 1 - v1 error format
6427 2 - v2 error format
6428
6429 Returns:
6430 An object of the form:
6431
6432 { # Represents an Operation resource.
6433 #
6434 # Google Compute Engine has three Operation resources:
6435 #
6436 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
6437 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
6438 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
6439 #
6440 # You can use an operation resource to manage asynchronous API requests.
6441 # For more information, readHandling
6442 # API responses.
6443 #
6444 # Operations can be global, regional or zonal.
6445 #
6446 # - For global operations, use the `globalOperations`
6447 # resource.
6448 # - For regional operations, use the
6449 # `regionOperations` resource.
6450 # - For zonal operations, use
6451 # the `zoneOperations` resource.
6452 #
6453 #
6454 #
6455 # For more information, read
6456 # Global, Regional, and Zonal Resources.
6457 #
6458 # Note that completed Operation resources have a limited
6459 # retention period.
6460 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
6461 # Not present otherwise.
6462 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
6463 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
6464 # set when the operation is created.
6465 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
6466 # text format.
6467 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
6468 # this field will be populated.
6469 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
6470 # operation.
6471 {
6472 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
6473 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
6474 # details. There is a set of defined message types to use for providing
6475 # details.The syntax depends on the error code. For example,
6476 # QuotaExceededInfo will have details when the error code is
6477 # QUOTA_EXCEEDED.
6478 {
6479 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
6480 #
6481 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
6482 # is not enabled:
6483 #
6484 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
6485 # &quot;domain&quot;: &quot;googleapis.com&quot;
6486 # &quot;metadata&quot;: {
6487 # &quot;resource&quot;: &quot;projects/123&quot;,
6488 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
6489 # }
6490 # }
6491 #
6492 # This response indicates that the pubsub.googleapis.com API is not enabled.
6493 #
6494 # Example of an error that is returned when attempting to create a Spanner
6495 # instance in a region that is out of stock:
6496 #
6497 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
6498 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
6499 # &quot;metadata&quot;: {
6500 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
6501 # }
6502 # }
6503 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
6504 # is typically the registered service name of the tool or product that
6505 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
6506 # generated by some common infrastructure, the error domain must be a
6507 # globally unique value that identifies the infrastructure. For Google API
6508 # infrastructure, the error domain is &quot;googleapis.com&quot;.
6509 &quot;metadatas&quot;: { # Additional structured details about this error.
6510 #
6511 # Keys must match a regular expression of `a-z+` but should
6512 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
6513 # length. When identifying the current value of an exceeded limit, the units
6514 # should be contained in the key, not the value. For example, rather than
6515 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
6516 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
6517 # instances that can be created in a single (batch) request.
6518 &quot;a_key&quot;: &quot;A String&quot;,
6519 },
6520 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
6521 # proximate cause of the error. Error reasons are unique within a particular
6522 # domain of errors. This should be at most 63 characters and match a
6523 # regular expression of `A-Z+[A-Z0-9]`, which represents
6524 # UPPER_SNAKE_CASE.
6525 },
6526 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
6527 #
6528 # For example, if a quota check failed with an error indicating the calling
6529 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
6530 # directly to the right place in the developer console to flip the bit.
6531 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
6532 { # Describes a URL link.
6533 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
6534 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
6535 },
6536 ],
6537 },
6538 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
6539 # which can be attached to an RPC error.
6540 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
6541 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
6542 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
6543 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
6544 },
6545 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
6546 &quot;dimensions&quot;: { # The map holding related quota dimensions.
6547 &quot;a_key&quot;: &quot;A String&quot;,
6548 },
6549 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
6550 # type or metric.
6551 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
6552 # or metric.
6553 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
6554 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
6555 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
6556 },
6557 },
6558 ],
6559 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
6560 # This property is optional.
6561 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
6562 },
6563 ],
6564 },
6565 &quot;getVersionOperationMetadata&quot;: {
6566 &quot;inlineSbomInfo&quot;: {
6567 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
6568 # appropriate identifiers.
6569 &quot;a_key&quot;: &quot;A String&quot;,
6570 },
6571 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
6572 # identifiers.
6573 &quot;a_key&quot;: &quot;A String&quot;,
6574 },
6575 },
6576 },
6577 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
6578 # message that was returned, such as `NOT FOUND`.
6579 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
6580 # status code that was returned. For example, a `404` means the
6581 # resource was not found.
6582 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
6583 # defined by the server.
6584 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
6585 # This value is inRFC3339
6586 # text format.
6587 &quot;instancesBulkInsertOperationMetadata&quot;: {
6588 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
6589 # Example key: zones/us-central1-a
6590 &quot;a_key&quot;: {
6591 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
6592 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
6593 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
6594 # error.
6595 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
6596 # if the flow is rolling forward or rolling back.
6597 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
6598 },
6599 },
6600 },
6601 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
6602 # Operation resources.
6603 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
6604 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
6605 # group of operations results from a `bulkInsert` API request.
6606 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
6607 # `update`, or `delete`, and so on.
6608 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
6609 # There is no requirement that this be linear or support any granularity of
6610 # operations. This should not be used to guess when the operation will be
6611 # complete. This number should monotonically increase as the operation
6612 # progresses.
6613 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
6614 # applicable when performing regional operations.
6615 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
6616 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
6617 # this field will contain information on all underlying zonal actions and
6618 # their state.
6619 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
6620 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
6621 # Example key: zones/us-central1-a
6622 &quot;a_key&quot;: {
6623 &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
6624 # populated.
6625 # different programming environments, including REST APIs and RPC APIs. It is
6626 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
6627 # three pieces of data: error code, error message, and error details.
6628 #
6629 # You can find out more about this error model and how to work with it in the
6630 # [API Design Guide](https://cloud.google.com/apis/design/errors).
6631 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
6632 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
6633 # message types for APIs to use.
6634 {
6635 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
6636 },
6637 ],
6638 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
6639 # user-facing error message should be localized and sent in the
6640 # google.rpc.Status.details field, or localized by the client.
6641 },
6642 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
6643 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
6644 },
6645 },
6646 },
6647 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
6648 # This value is inRFC3339
6649 # text format.
6650 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
6651 # following:
6652 # `PENDING`, `RUNNING`, or `DONE`.
6653 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
6654 # operation.
6655 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
6656 # of the target resource.
6657 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
6658 # operations related to creating a snapshot, this points to the disk
6659 # that the snapshot was created from.
6660 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
6661 # `[email protected]` or
6662 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
6663 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
6664 # operation, this field will be populated.
6665 {
6666 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
6667 # Engine returns NO_RESULTS_ON_PAGE if there
6668 # are no results in the response.
6669 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
6670 # value format. For example:
6671 #
6672 # &quot;data&quot;: [
6673 # {
6674 # &quot;key&quot;: &quot;scope&quot;,
6675 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
6676 # }
6677 {
6678 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
6679 # returned. For example, for warnings where there are no results in a list
6680 # request for a particular zone, this key might be scope and
6681 # the key value might be the zone name. Other examples might be a key
6682 # indicating a deprecated resource and a suggested replacement, or a
6683 # warning about invalid network settings (for example, if an instance
6684 # attempts to perform IP forwarding but is not enabled for IP forwarding).
6685 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
6686 },
6687 ],
6688 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
6689 },
6690 ],
6691 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
6692 # applicable when performing per-zone operations.
6693 }</pre>
6694 </div>
6695
6696 <div class="method">
6697 <code class="details" id="setIamPolicy">setIamPolicy(project, region, resource, body=None, x__xgafv=None)</code>
6698 <pre>Sets the access control policy on the specified resource.
6699 Replaces any existing policy.
6700
6701 Args:
6702 project: string, Project ID for this request. (required)
6703 region: string, The name of the region for this request. (required)
6704 resource: string, Name or id of the resource for this request. (required)
6705 body: object, The request body.
6706 The object takes the form of:
6707
6708 {
6709 &quot;bindings&quot;: [ # Flatten Policy to create a backwacd compatible wire-format.
6710 # Deprecated. Use &#x27;policy&#x27; to specify bindings.
6711 { # Associates `members`, or principals, with a `role`.
6712 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
6713 #
6714 # If the condition evaluates to `true`, then this binding applies to the
6715 # current request.
6716 #
6717 # If the condition evaluates to `false`, then this binding does not apply to
6718 # the current request. However, a different role binding might grant the same
6719 # role to one or more of the principals in this binding.
6720 #
6721 # To learn which resources support conditions in their IAM policies, see the
6722 # [IAM
6723 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
6724 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
6725 # are documented at https://github.com/google/cel-spec.
6726 #
6727 # Example (Comparison):
6728 #
6729 # title: &quot;Summary size limit&quot;
6730 # description: &quot;Determines if a summary is less than 100 chars&quot;
6731 # expression: &quot;document.summary.size() &lt; 100&quot;
6732 #
6733 # Example (Equality):
6734 #
6735 # title: &quot;Requestor is owner&quot;
6736 # description: &quot;Determines if requestor is the document owner&quot;
6737 # expression: &quot;document.owner == request.auth.claims.email&quot;
6738 #
6739 # Example (Logic):
6740 #
6741 # title: &quot;Public documents&quot;
6742 # description: &quot;Determine whether the document should be publicly visible&quot;
6743 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
6744 #
6745 # Example (Data Manipulation):
6746 #
6747 # title: &quot;Notification string&quot;
6748 # description: &quot;Create a notification string with a timestamp.&quot;
6749 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
6750 #
6751 # The exact variables and functions that may be referenced within an expression
6752 # are determined by the service that evaluates it. See the service
6753 # documentation for additional information.
6754 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
6755 # describes the expression, e.g. when hovered over it in a UI.
6756 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
6757 # syntax.
6758 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
6759 # reporting, e.g. a file name and a position in the file.
6760 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
6761 # its purpose. This can be used e.g. in UIs which allow to enter the
6762 # expression.
6763 },
6764 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
6765 # `members` can have the following values:
6766 #
6767 # * `allUsers`: A special identifier that represents anyone who is
6768 # on the internet; with or without a Google account.
6769 #
6770 # * `allAuthenticatedUsers`: A special identifier that represents anyone
6771 # who is authenticated with a Google account or a service account.
6772 # Does not include identities that come from external identity providers
6773 # (IdPs) through identity federation.
6774 #
6775 # * `user:{emailid}`: An email address that represents a specific Google
6776 # account. For example, `[email protected]` .
6777 #
6778 #
6779 # * `serviceAccount:{emailid}`: An email address that represents a Google
6780 # service account. For example,
6781 # `[email protected]`.
6782 #
6783 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
6784 # identifier for a
6785 # [Kubernetes service
6786 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
6787 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
6788 #
6789 # * `group:{emailid}`: An email address that represents a Google group.
6790 # For example, `[email protected]`.
6791 #
6792 #
6793 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
6794 # users of that domain. For example, `google.com` or `example.com`.
6795 #
6796 #
6797 #
6798 #
6799 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
6800 # A single identity in a workforce identity pool.
6801 #
6802 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
6803 # All workforce identities in a group.
6804 #
6805 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
6806 # All workforce identities with a specific attribute value.
6807 #
6808 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
6809 # All identities in a workforce identity pool.
6810 #
6811 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
6812 # A single identity in a workload identity pool.
6813 #
6814 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
6815 # A workload identity pool group.
6816 #
6817 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
6818 # All identities in a workload identity pool with a certain attribute.
6819 #
6820 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
6821 # All identities in a workload identity pool.
6822 #
6823 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
6824 # identifier) representing a user that has been recently deleted. For
6825 # example, `[email protected]?uid=123456789012345678901`. If the user is
6826 # recovered, this value reverts to `user:{emailid}` and the recovered user
6827 # retains the role in the binding.
6828 #
6829 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
6830 # unique identifier) representing a service account that has been recently
6831 # deleted. For example,
6832 # `[email protected]?uid=123456789012345678901`.
6833 # If the service account is undeleted, this value reverts to
6834 # `serviceAccount:{emailid}` and the undeleted service account retains the
6835 # role in the binding.
6836 #
6837 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
6838 # identifier) representing a Google group that has been recently
6839 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
6840 # the group is recovered, this value reverts to `group:{emailid}` and the
6841 # recovered group retains the role in the binding.
6842 #
6843 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
6844 # Deleted single identity in a workforce identity pool. For example,
6845 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
6846 &quot;A String&quot;,
6847 ],
6848 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
6849 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
6850 #
6851 # For an overview of the IAM roles and permissions, see the
6852 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
6853 # a list of the available pre-defined roles, see
6854 # [here](https://cloud.google.com/iam/docs/understanding-roles).
6855 },
6856 ],
6857 &quot;etag&quot;: &quot;A String&quot;, # Flatten Policy to create a backward compatible wire-format.
6858 # Deprecated. Use &#x27;policy&#x27; to specify the etag.
6859 &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
6860 # the policy is limited to a few 10s of KB. An empty policy is in general a
6861 # valid policy but certain services (like Projects) might reject them.
6862 # controls for Google Cloud resources.
6863 #
6864 #
6865 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
6866 # `members`, or principals, to a single `role`. Principals can be user
6867 # accounts, service accounts, Google groups, and domains (such as G Suite). A
6868 # `role` is a named list of permissions; each `role` can be an IAM predefined
6869 # role or a user-created custom role.
6870 #
6871 # For some types of Google Cloud resources, a `binding` can also specify a
6872 # `condition`, which is a logical expression that allows access to a resource
6873 # only if the expression evaluates to `true`. A condition can add constraints
6874 # based on attributes of the request, the resource, or both. To learn which
6875 # resources support conditions in their IAM policies, see the
6876 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
6877 #
6878 # **JSON example:**
6879 #
6880 # ```
6881 # {
6882 # &quot;bindings&quot;: [
6883 # {
6884 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
6885 # &quot;members&quot;: [
6886 # &quot;user:[email protected]&quot;,
6887 # &quot;group:[email protected]&quot;,
6888 # &quot;domain:google.com&quot;,
6889 # &quot;serviceAccount:[email protected]&quot;
6890 # ]
6891 # },
6892 # {
6893 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
6894 # &quot;members&quot;: [
6895 # &quot;user:[email protected]&quot;
6896 # ],
6897 # &quot;condition&quot;: {
6898 # &quot;title&quot;: &quot;expirable access&quot;,
6899 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
6900 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
6901 # }
6902 # }
6903 # ],
6904 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
6905 # &quot;version&quot;: 3
6906 # }
6907 # ```
6908 #
6909 # **YAML example:**
6910 #
6911 # ```
6912 # bindings:
6913 # - members:
6914 # - user:[email protected]
6915 # - group:[email protected]
6916 # - domain:google.com
6917 # - serviceAccount:[email protected]
6918 # role: roles/resourcemanager.organizationAdmin
6919 # - members:
6920 # - user:[email protected]
6921 # role: roles/resourcemanager.organizationViewer
6922 # condition:
6923 # title: expirable access
6924 # description: Does not grant access after Sep 2020
6925 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
6926 # etag: BwWWja0YfJA=
6927 # version: 3
6928 # ```
6929 #
6930 # For a description of IAM and its features, see the
6931 # [IAM documentation](https://cloud.google.com/iam/docs/).
6932 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
6933 { # Specifies the audit configuration for a service.
6934 # The configuration determines which permission types are logged, and what
6935 # identities, if any, are exempted from logging.
6936 # An AuditConfig must have one or more AuditLogConfigs.
6937 #
6938 # If there are AuditConfigs for both `allServices` and a specific service,
6939 # the union of the two AuditConfigs is used for that service: the log_types
6940 # specified in each AuditConfig are enabled, and the exempted_members in each
6941 # AuditLogConfig are exempted.
6942 #
6943 # Example Policy with multiple AuditConfigs:
6944 #
6945 # {
6946 # &quot;audit_configs&quot;: [
6947 # {
6948 # &quot;service&quot;: &quot;allServices&quot;,
6949 # &quot;audit_log_configs&quot;: [
6950 # {
6951 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
6952 # &quot;exempted_members&quot;: [
6953 # &quot;user:[email protected]&quot;
6954 # ]
6955 # },
6956 # {
6957 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
6958 # },
6959 # {
6960 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
6961 # }
6962 # ]
6963 # },
6964 # {
6965 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
6966 # &quot;audit_log_configs&quot;: [
6967 # {
6968 # &quot;log_type&quot;: &quot;DATA_READ&quot;
6969 # },
6970 # {
6971 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
6972 # &quot;exempted_members&quot;: [
6973 # &quot;user:[email protected]&quot;
6974 # ]
6975 # }
6976 # ]
6977 # }
6978 # ]
6979 # }
6980 #
6981 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
6982 # logging. It also exempts `[email protected]` from DATA_READ logging, and
6983 # `[email protected]` from DATA_WRITE logging.
6984 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
6985 { # Provides the configuration for logging a type of permissions.
6986 # Example:
6987 #
6988 # {
6989 # &quot;audit_log_configs&quot;: [
6990 # {
6991 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
6992 # &quot;exempted_members&quot;: [
6993 # &quot;user:[email protected]&quot;
6994 # ]
6995 # },
6996 # {
6997 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
6998 # }
6999 # ]
7000 # }
7001 #
7002 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
7003 # [email protected] from DATA_READ logging.
7004 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
7005 # permission.
7006 # Follows the same format of Binding.members.
7007 &quot;A String&quot;,
7008 ],
7009 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
7010 },
7011 ],
7012 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
7013 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
7014 # `allServices` is a special value that covers all services.
7015 },
7016 ],
7017 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
7018 # may specify a `condition` that determines how and when the `bindings` are
7019 # applied. Each of the `bindings` must contain at least one principal.
7020 #
7021 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
7022 # of these principals can be Google groups. Each occurrence of a principal
7023 # counts towards these limits. For example, if the `bindings` grant 50
7024 # different roles to `user:[email protected]`, and not to any other
7025 # principal, then you can add another 1,450 principals to the `bindings` in
7026 # the `Policy`.
7027 { # Associates `members`, or principals, with a `role`.
7028 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
7029 #
7030 # If the condition evaluates to `true`, then this binding applies to the
7031 # current request.
7032 #
7033 # If the condition evaluates to `false`, then this binding does not apply to
7034 # the current request. However, a different role binding might grant the same
7035 # role to one or more of the principals in this binding.
7036 #
7037 # To learn which resources support conditions in their IAM policies, see the
7038 # [IAM
7039 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7040 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
7041 # are documented at https://github.com/google/cel-spec.
7042 #
7043 # Example (Comparison):
7044 #
7045 # title: &quot;Summary size limit&quot;
7046 # description: &quot;Determines if a summary is less than 100 chars&quot;
7047 # expression: &quot;document.summary.size() &lt; 100&quot;
7048 #
7049 # Example (Equality):
7050 #
7051 # title: &quot;Requestor is owner&quot;
7052 # description: &quot;Determines if requestor is the document owner&quot;
7053 # expression: &quot;document.owner == request.auth.claims.email&quot;
7054 #
7055 # Example (Logic):
7056 #
7057 # title: &quot;Public documents&quot;
7058 # description: &quot;Determine whether the document should be publicly visible&quot;
7059 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
7060 #
7061 # Example (Data Manipulation):
7062 #
7063 # title: &quot;Notification string&quot;
7064 # description: &quot;Create a notification string with a timestamp.&quot;
7065 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
7066 #
7067 # The exact variables and functions that may be referenced within an expression
7068 # are determined by the service that evaluates it. See the service
7069 # documentation for additional information.
7070 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
7071 # describes the expression, e.g. when hovered over it in a UI.
7072 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
7073 # syntax.
7074 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
7075 # reporting, e.g. a file name and a position in the file.
7076 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
7077 # its purpose. This can be used e.g. in UIs which allow to enter the
7078 # expression.
7079 },
7080 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
7081 # `members` can have the following values:
7082 #
7083 # * `allUsers`: A special identifier that represents anyone who is
7084 # on the internet; with or without a Google account.
7085 #
7086 # * `allAuthenticatedUsers`: A special identifier that represents anyone
7087 # who is authenticated with a Google account or a service account.
7088 # Does not include identities that come from external identity providers
7089 # (IdPs) through identity federation.
7090 #
7091 # * `user:{emailid}`: An email address that represents a specific Google
7092 # account. For example, `[email protected]` .
7093 #
7094 #
7095 # * `serviceAccount:{emailid}`: An email address that represents a Google
7096 # service account. For example,
7097 # `[email protected]`.
7098 #
7099 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
7100 # identifier for a
7101 # [Kubernetes service
7102 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
7103 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
7104 #
7105 # * `group:{emailid}`: An email address that represents a Google group.
7106 # For example, `[email protected]`.
7107 #
7108 #
7109 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
7110 # users of that domain. For example, `google.com` or `example.com`.
7111 #
7112 #
7113 #
7114 #
7115 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
7116 # A single identity in a workforce identity pool.
7117 #
7118 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
7119 # All workforce identities in a group.
7120 #
7121 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
7122 # All workforce identities with a specific attribute value.
7123 #
7124 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
7125 # All identities in a workforce identity pool.
7126 #
7127 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
7128 # A single identity in a workload identity pool.
7129 #
7130 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
7131 # A workload identity pool group.
7132 #
7133 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
7134 # All identities in a workload identity pool with a certain attribute.
7135 #
7136 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
7137 # All identities in a workload identity pool.
7138 #
7139 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
7140 # identifier) representing a user that has been recently deleted. For
7141 # example, `[email protected]?uid=123456789012345678901`. If the user is
7142 # recovered, this value reverts to `user:{emailid}` and the recovered user
7143 # retains the role in the binding.
7144 #
7145 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
7146 # unique identifier) representing a service account that has been recently
7147 # deleted. For example,
7148 # `[email protected]?uid=123456789012345678901`.
7149 # If the service account is undeleted, this value reverts to
7150 # `serviceAccount:{emailid}` and the undeleted service account retains the
7151 # role in the binding.
7152 #
7153 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
7154 # identifier) representing a Google group that has been recently
7155 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
7156 # the group is recovered, this value reverts to `group:{emailid}` and the
7157 # recovered group retains the role in the binding.
7158 #
7159 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
7160 # Deleted single identity in a workforce identity pool. For example,
7161 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
7162 &quot;A String&quot;,
7163 ],
7164 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
7165 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
7166 #
7167 # For an overview of the IAM roles and permissions, see the
7168 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
7169 # a list of the available pre-defined roles, see
7170 # [here](https://cloud.google.com/iam/docs/understanding-roles).
7171 },
7172 ],
7173 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
7174 # prevent simultaneous updates of a policy from overwriting each other.
7175 # It is strongly suggested that systems make use of the `etag` in the
7176 # read-modify-write cycle to perform policy updates in order to avoid race
7177 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
7178 # systems are expected to put that etag in the request to `setIamPolicy` to
7179 # ensure that their change will be applied to the same version of the policy.
7180 #
7181 # **Important:** If you use IAM Conditions, you must include the `etag` field
7182 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
7183 # you to overwrite a version `3` policy with a version `1` policy, and all of
7184 # the conditions in the version `3` policy are lost.
7185 &quot;version&quot;: 42, # Specifies the format of the policy.
7186 #
7187 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
7188 # are rejected.
7189 #
7190 # Any operation that affects conditional role bindings must specify version
7191 # `3`. This requirement applies to the following operations:
7192 #
7193 # * Getting a policy that includes a conditional role binding
7194 # * Adding a conditional role binding to a policy
7195 # * Changing a conditional role binding in a policy
7196 # * Removing any role binding, with or without a condition, from a policy
7197 # that includes conditions
7198 #
7199 # **Important:** If you use IAM Conditions, you must include the `etag` field
7200 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
7201 # you to overwrite a version `3` policy with a version `1` policy, and all of
7202 # the conditions in the version `3` policy are lost.
7203 #
7204 # If a policy does not include any conditions, operations on that policy may
7205 # specify any valid version or leave the field unset.
7206 #
7207 # To learn which resources support conditions in their IAM policies, see the
7208 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7209 },
7210 }
7211
7212 x__xgafv: string, V1 error format.
7213 Allowed values
7214 1 - v1 error format
7215 2 - v2 error format
7216
7217 Returns:
7218 An object of the form:
7219
7220 { # An Identity and Access Management (IAM) policy, which specifies access
7221 # controls for Google Cloud resources.
7222 #
7223 #
7224 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
7225 # `members`, or principals, to a single `role`. Principals can be user
7226 # accounts, service accounts, Google groups, and domains (such as G Suite). A
7227 # `role` is a named list of permissions; each `role` can be an IAM predefined
7228 # role or a user-created custom role.
7229 #
7230 # For some types of Google Cloud resources, a `binding` can also specify a
7231 # `condition`, which is a logical expression that allows access to a resource
7232 # only if the expression evaluates to `true`. A condition can add constraints
7233 # based on attributes of the request, the resource, or both. To learn which
7234 # resources support conditions in their IAM policies, see the
7235 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7236 #
7237 # **JSON example:**
7238 #
7239 # ```
7240 # {
7241 # &quot;bindings&quot;: [
7242 # {
7243 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
7244 # &quot;members&quot;: [
7245 # &quot;user:[email protected]&quot;,
7246 # &quot;group:[email protected]&quot;,
7247 # &quot;domain:google.com&quot;,
7248 # &quot;serviceAccount:[email protected]&quot;
7249 # ]
7250 # },
7251 # {
7252 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
7253 # &quot;members&quot;: [
7254 # &quot;user:[email protected]&quot;
7255 # ],
7256 # &quot;condition&quot;: {
7257 # &quot;title&quot;: &quot;expirable access&quot;,
7258 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
7259 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
7260 # }
7261 # }
7262 # ],
7263 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
7264 # &quot;version&quot;: 3
7265 # }
7266 # ```
7267 #
7268 # **YAML example:**
7269 #
7270 # ```
7271 # bindings:
7272 # - members:
7273 # - user:[email protected]
7274 # - group:[email protected]
7275 # - domain:google.com
7276 # - serviceAccount:[email protected]
7277 # role: roles/resourcemanager.organizationAdmin
7278 # - members:
7279 # - user:[email protected]
7280 # role: roles/resourcemanager.organizationViewer
7281 # condition:
7282 # title: expirable access
7283 # description: Does not grant access after Sep 2020
7284 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
7285 # etag: BwWWja0YfJA=
7286 # version: 3
7287 # ```
7288 #
7289 # For a description of IAM and its features, see the
7290 # [IAM documentation](https://cloud.google.com/iam/docs/).
7291 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
7292 { # Specifies the audit configuration for a service.
7293 # The configuration determines which permission types are logged, and what
7294 # identities, if any, are exempted from logging.
7295 # An AuditConfig must have one or more AuditLogConfigs.
7296 #
7297 # If there are AuditConfigs for both `allServices` and a specific service,
7298 # the union of the two AuditConfigs is used for that service: the log_types
7299 # specified in each AuditConfig are enabled, and the exempted_members in each
7300 # AuditLogConfig are exempted.
7301 #
7302 # Example Policy with multiple AuditConfigs:
7303 #
7304 # {
7305 # &quot;audit_configs&quot;: [
7306 # {
7307 # &quot;service&quot;: &quot;allServices&quot;,
7308 # &quot;audit_log_configs&quot;: [
7309 # {
7310 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
7311 # &quot;exempted_members&quot;: [
7312 # &quot;user:[email protected]&quot;
7313 # ]
7314 # },
7315 # {
7316 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
7317 # },
7318 # {
7319 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
7320 # }
7321 # ]
7322 # },
7323 # {
7324 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
7325 # &quot;audit_log_configs&quot;: [
7326 # {
7327 # &quot;log_type&quot;: &quot;DATA_READ&quot;
7328 # },
7329 # {
7330 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
7331 # &quot;exempted_members&quot;: [
7332 # &quot;user:[email protected]&quot;
7333 # ]
7334 # }
7335 # ]
7336 # }
7337 # ]
7338 # }
7339 #
7340 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
7341 # logging. It also exempts `[email protected]` from DATA_READ logging, and
7342 # `[email protected]` from DATA_WRITE logging.
7343 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
7344 { # Provides the configuration for logging a type of permissions.
7345 # Example:
7346 #
7347 # {
7348 # &quot;audit_log_configs&quot;: [
7349 # {
7350 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
7351 # &quot;exempted_members&quot;: [
7352 # &quot;user:[email protected]&quot;
7353 # ]
7354 # },
7355 # {
7356 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
7357 # }
7358 # ]
7359 # }
7360 #
7361 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
7362 # [email protected] from DATA_READ logging.
7363 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
7364 # permission.
7365 # Follows the same format of Binding.members.
7366 &quot;A String&quot;,
7367 ],
7368 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
7369 },
7370 ],
7371 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
7372 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
7373 # `allServices` is a special value that covers all services.
7374 },
7375 ],
7376 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
7377 # may specify a `condition` that determines how and when the `bindings` are
7378 # applied. Each of the `bindings` must contain at least one principal.
7379 #
7380 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
7381 # of these principals can be Google groups. Each occurrence of a principal
7382 # counts towards these limits. For example, if the `bindings` grant 50
7383 # different roles to `user:[email protected]`, and not to any other
7384 # principal, then you can add another 1,450 principals to the `bindings` in
7385 # the `Policy`.
7386 { # Associates `members`, or principals, with a `role`.
7387 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
7388 #
7389 # If the condition evaluates to `true`, then this binding applies to the
7390 # current request.
7391 #
7392 # If the condition evaluates to `false`, then this binding does not apply to
7393 # the current request. However, a different role binding might grant the same
7394 # role to one or more of the principals in this binding.
7395 #
7396 # To learn which resources support conditions in their IAM policies, see the
7397 # [IAM
7398 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7399 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
7400 # are documented at https://github.com/google/cel-spec.
7401 #
7402 # Example (Comparison):
7403 #
7404 # title: &quot;Summary size limit&quot;
7405 # description: &quot;Determines if a summary is less than 100 chars&quot;
7406 # expression: &quot;document.summary.size() &lt; 100&quot;
7407 #
7408 # Example (Equality):
7409 #
7410 # title: &quot;Requestor is owner&quot;
7411 # description: &quot;Determines if requestor is the document owner&quot;
7412 # expression: &quot;document.owner == request.auth.claims.email&quot;
7413 #
7414 # Example (Logic):
7415 #
7416 # title: &quot;Public documents&quot;
7417 # description: &quot;Determine whether the document should be publicly visible&quot;
7418 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
7419 #
7420 # Example (Data Manipulation):
7421 #
7422 # title: &quot;Notification string&quot;
7423 # description: &quot;Create a notification string with a timestamp.&quot;
7424 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
7425 #
7426 # The exact variables and functions that may be referenced within an expression
7427 # are determined by the service that evaluates it. See the service
7428 # documentation for additional information.
7429 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
7430 # describes the expression, e.g. when hovered over it in a UI.
7431 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
7432 # syntax.
7433 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
7434 # reporting, e.g. a file name and a position in the file.
7435 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
7436 # its purpose. This can be used e.g. in UIs which allow to enter the
7437 # expression.
7438 },
7439 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
7440 # `members` can have the following values:
7441 #
7442 # * `allUsers`: A special identifier that represents anyone who is
7443 # on the internet; with or without a Google account.
7444 #
7445 # * `allAuthenticatedUsers`: A special identifier that represents anyone
7446 # who is authenticated with a Google account or a service account.
7447 # Does not include identities that come from external identity providers
7448 # (IdPs) through identity federation.
7449 #
7450 # * `user:{emailid}`: An email address that represents a specific Google
7451 # account. For example, `[email protected]` .
7452 #
7453 #
7454 # * `serviceAccount:{emailid}`: An email address that represents a Google
7455 # service account. For example,
7456 # `[email protected]`.
7457 #
7458 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
7459 # identifier for a
7460 # [Kubernetes service
7461 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
7462 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
7463 #
7464 # * `group:{emailid}`: An email address that represents a Google group.
7465 # For example, `[email protected]`.
7466 #
7467 #
7468 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
7469 # users of that domain. For example, `google.com` or `example.com`.
7470 #
7471 #
7472 #
7473 #
7474 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
7475 # A single identity in a workforce identity pool.
7476 #
7477 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
7478 # All workforce identities in a group.
7479 #
7480 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
7481 # All workforce identities with a specific attribute value.
7482 #
7483 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
7484 # All identities in a workforce identity pool.
7485 #
7486 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
7487 # A single identity in a workload identity pool.
7488 #
7489 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
7490 # A workload identity pool group.
7491 #
7492 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
7493 # All identities in a workload identity pool with a certain attribute.
7494 #
7495 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
7496 # All identities in a workload identity pool.
7497 #
7498 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
7499 # identifier) representing a user that has been recently deleted. For
7500 # example, `[email protected]?uid=123456789012345678901`. If the user is
7501 # recovered, this value reverts to `user:{emailid}` and the recovered user
7502 # retains the role in the binding.
7503 #
7504 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
7505 # unique identifier) representing a service account that has been recently
7506 # deleted. For example,
7507 # `[email protected]?uid=123456789012345678901`.
7508 # If the service account is undeleted, this value reverts to
7509 # `serviceAccount:{emailid}` and the undeleted service account retains the
7510 # role in the binding.
7511 #
7512 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
7513 # identifier) representing a Google group that has been recently
7514 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
7515 # the group is recovered, this value reverts to `group:{emailid}` and the
7516 # recovered group retains the role in the binding.
7517 #
7518 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
7519 # Deleted single identity in a workforce identity pool. For example,
7520 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
7521 &quot;A String&quot;,
7522 ],
7523 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
7524 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
7525 #
7526 # For an overview of the IAM roles and permissions, see the
7527 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
7528 # a list of the available pre-defined roles, see
7529 # [here](https://cloud.google.com/iam/docs/understanding-roles).
7530 },
7531 ],
7532 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
7533 # prevent simultaneous updates of a policy from overwriting each other.
7534 # It is strongly suggested that systems make use of the `etag` in the
7535 # read-modify-write cycle to perform policy updates in order to avoid race
7536 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
7537 # systems are expected to put that etag in the request to `setIamPolicy` to
7538 # ensure that their change will be applied to the same version of the policy.
7539 #
7540 # **Important:** If you use IAM Conditions, you must include the `etag` field
7541 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
7542 # you to overwrite a version `3` policy with a version `1` policy, and all of
7543 # the conditions in the version `3` policy are lost.
7544 &quot;version&quot;: 42, # Specifies the format of the policy.
7545 #
7546 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
7547 # are rejected.
7548 #
7549 # Any operation that affects conditional role bindings must specify version
7550 # `3`. This requirement applies to the following operations:
7551 #
7552 # * Getting a policy that includes a conditional role binding
7553 # * Adding a conditional role binding to a policy
7554 # * Changing a conditional role binding in a policy
7555 # * Removing any role binding, with or without a condition, from a policy
7556 # that includes conditions
7557 #
7558 # **Important:** If you use IAM Conditions, you must include the `etag` field
7559 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
7560 # you to overwrite a version `3` policy with a version `1` policy, and all of
7561 # the conditions in the version `3` policy are lost.
7562 #
7563 # If a policy does not include any conditions, operations on that policy may
7564 # specify any valid version or leave the field unset.
7565 #
7566 # To learn which resources support conditions in their IAM policies, see the
7567 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7568 }</pre>
7569 </div>
7570
7571 <div class="method">
7572 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</code>
7573 <pre>Returns permissions that a caller has on the specified resource.
7574
7575 Args:
7576 project: string, Project ID for this request. (required)
7577 region: string, The name of the region for this request. (required)
7578 resource: string, Name or id of the resource for this request. (required)
7579 body: object, The request body.
7580 The object takes the form of:
7581
7582 {
7583 &quot;permissions&quot;: [ # The set of permissions to check for the &#x27;resource&#x27;. Permissions with
7584 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed.
7585 &quot;A String&quot;,
7586 ],
7587 }
7588
7589 x__xgafv: string, V1 error format.
7590 Allowed values
7591 1 - v1 error format
7592 2 - v2 error format
7593
7594 Returns:
7595 An object of the form:
7596
7597 {
7598 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
7599 # allowed.
7600 &quot;A String&quot;,
7601 ],
7602 }</pre>
7603 </div>
7604
7605 </body></html>