Debian Codegraph @

docs/dyn/compute_v1.networkFirewallPolicies.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="compute_v1.html">Compute Engine API</a> . <a href="compute_v1.networkFirewallPolicies.html">networkFirewallPolicies</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#addAssociation">addAssociation(project, firewallPolicy, body=None, replaceExistingAssociation=None, requestId=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Inserts an association for the specified firewall policy.</p>
80 <p class="toc_element">
81 <code><a href="#addPacketMirroringRule">addPacketMirroringRule(project, firewallPolicy, body=None, maxPriority=None, minPriority=None, requestId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Inserts a packet mirroring rule into a firewall policy.</p>
83 <p class="toc_element">
84 <code><a href="#addRule">addRule(project, firewallPolicy, body=None, maxPriority=None, minPriority=None, requestId=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Inserts a rule into a firewall policy.</p>
86 <p class="toc_element">
87 <code><a href="#aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, serviceProjectNumber=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Retrieves an aggregated list of network firewall policies, listing network</p>
89 <p class="toc_element">
90 <code><a href="#aggregatedList_next">aggregatedList_next()</a></code></p>
91 <p class="firstline">Retrieves the next page of results.</p>
92 <p class="toc_element">
93 <code><a href="#cloneRules">cloneRules(project, firewallPolicy, requestId=None, sourceFirewallPolicy=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Copies rules to the specified firewall policy.</p>
95 <p class="toc_element">
96 <code><a href="#close">close()</a></code></p>
97 <p class="firstline">Close httplib2 connections.</p>
98 <p class="toc_element">
99 <code><a href="#delete">delete(project, firewallPolicy, requestId=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Deletes the specified policy.</p>
101 <p class="toc_element">
102 <code><a href="#get">get(project, firewallPolicy, x__xgafv=None)</a></code></p>
103 <p class="firstline">Returns the specified network firewall policy.</p>
104 <p class="toc_element">
105 <code><a href="#getAssociation">getAssociation(project, firewallPolicy, name=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Gets an association with the specified name.</p>
107 <p class="toc_element">
108 <code><a href="#getIamPolicy">getIamPolicy(project, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</a></code></p>
109 <p class="firstline">Gets the access control policy for a resource. May be empty if no such</p>
110 <p class="toc_element">
111 <code><a href="#getPacketMirroringRule">getPacketMirroringRule(project, firewallPolicy, priority=None, x__xgafv=None)</a></code></p>
112 <p class="firstline">Gets a packet mirroring rule of the specified priority.</p>
113 <p class="toc_element">
114 <code><a href="#getRule">getRule(project, firewallPolicy, priority=None, x__xgafv=None)</a></code></p>
115 <p class="firstline">Gets a rule of the specified priority.</p>
116 <p class="toc_element">
117 <code><a href="#insert">insert(project, body=None, requestId=None, x__xgafv=None)</a></code></p>
118 <p class="firstline">Creates a new policy in the specified project using the data included in</p>
119 <p class="toc_element">
120 <code><a href="#list">list(project, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p>
121 <p class="firstline">Lists all the policies that have been configured for the specified project.</p>
122 <p class="toc_element">
123 <code><a href="#list_next">list_next()</a></code></p>
124 <p class="firstline">Retrieves the next page of results.</p>
125 <p class="toc_element">
126 <code><a href="#patch">patch(project, firewallPolicy, body=None, requestId=None, x__xgafv=None)</a></code></p>
127 <p class="firstline">Patches the specified policy with the data included in the request.</p>
128 <p class="toc_element">
129 <code><a href="#patchPacketMirroringRule">patchPacketMirroringRule(project, firewallPolicy, body=None, priority=None, requestId=None, x__xgafv=None)</a></code></p>
130 <p class="firstline">Patches a packet mirroring rule of the specified priority.</p>
131 <p class="toc_element">
132 <code><a href="#patchRule">patchRule(project, firewallPolicy, body=None, priority=None, requestId=None, x__xgafv=None)</a></code></p>
133 <p class="firstline">Patches a rule of the specified priority.</p>
134 <p class="toc_element">
135 <code><a href="#removeAssociation">removeAssociation(project, firewallPolicy, name=None, requestId=None, x__xgafv=None)</a></code></p>
136 <p class="firstline">Removes an association for the specified firewall policy.</p>
137 <p class="toc_element">
138 <code><a href="#removePacketMirroringRule">removePacketMirroringRule(project, firewallPolicy, priority=None, requestId=None, x__xgafv=None)</a></code></p>
139 <p class="firstline">Deletes a packet mirroring rule of the specified priority.</p>
140 <p class="toc_element">
141 <code><a href="#removeRule">removeRule(project, firewallPolicy, priority=None, requestId=None, x__xgafv=None)</a></code></p>
142 <p class="firstline">Deletes a rule of the specified priority.</p>
143 <p class="toc_element">
144 <code><a href="#setIamPolicy">setIamPolicy(project, resource, body=None, x__xgafv=None)</a></code></p>
145 <p class="firstline">Sets the access control policy on the specified resource.</p>
146 <p class="toc_element">
147 <code><a href="#testIamPermissions">testIamPermissions(project, resource, body=None, x__xgafv=None)</a></code></p>
148 <p class="firstline">Returns permissions that a caller has on the specified resource.</p>
149 <h3>Method Details</h3>
150 <div class="method">
151 <code class="details" id="addAssociation">addAssociation(project, firewallPolicy, body=None, replaceExistingAssociation=None, requestId=None, x__xgafv=None)</code>
152 <pre>Inserts an association for the specified firewall policy.
153
154 Args:
155 project: string, Project ID for this request. (required)
156 firewallPolicy: string, Name of the firewall policy to update. (required)
157 body: object, The request body.
158 The object takes the form of:
159
160 {
161 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
162 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
163 # of the firewall policy of the association.
164 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
165 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
166 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
167 }
168
169 replaceExistingAssociation: boolean, Indicates whether or not to replace it if an association of the attachment
170 already exists. This is false by default, in which case an error will be
171 returned if an association already exists.
172 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
173 that if you must retry your request, the server will know to ignore the
174 request if it has already been completed.
175
176 For example, consider a situation where you make an initial request and
177 the request times out. If you make the request again with the same
178 request ID, the server can check if original operation with the same
179 request ID was received, and if so, will ignore the second request. This
180 prevents clients from accidentally creating duplicate commitments.
181
182 The request ID must be
183 a valid UUID with the exception that zero UUID is not supported
184 (00000000-0000-0000-0000-000000000000).
185 x__xgafv: string, V1 error format.
186 Allowed values
187 1 - v1 error format
188 2 - v2 error format
189
190 Returns:
191 An object of the form:
192
193 { # Represents an Operation resource.
194 #
195 # Google Compute Engine has three Operation resources:
196 #
197 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
198 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
199 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
200 #
201 # You can use an operation resource to manage asynchronous API requests.
202 # For more information, readHandling
203 # API responses.
204 #
205 # Operations can be global, regional or zonal.
206 #
207 # - For global operations, use the `globalOperations`
208 # resource.
209 # - For regional operations, use the
210 # `regionOperations` resource.
211 # - For zonal operations, use
212 # the `zoneOperations` resource.
213 #
214 #
215 #
216 # For more information, read
217 # Global, Regional, and Zonal Resources.
218 #
219 # Note that completed Operation resources have a limited
220 # retention period.
221 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
222 # Not present otherwise.
223 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
224 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
225 # set when the operation is created.
226 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
227 # text format.
228 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
229 # this field will be populated.
230 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
231 # operation.
232 {
233 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
234 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
235 # details. There is a set of defined message types to use for providing
236 # details.The syntax depends on the error code. For example,
237 # QuotaExceededInfo will have details when the error code is
238 # QUOTA_EXCEEDED.
239 {
240 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
241 #
242 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
243 # is not enabled:
244 #
245 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
246 # &quot;domain&quot;: &quot;googleapis.com&quot;
247 # &quot;metadata&quot;: {
248 # &quot;resource&quot;: &quot;projects/123&quot;,
249 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
250 # }
251 # }
252 #
253 # This response indicates that the pubsub.googleapis.com API is not enabled.
254 #
255 # Example of an error that is returned when attempting to create a Spanner
256 # instance in a region that is out of stock:
257 #
258 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
259 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
260 # &quot;metadata&quot;: {
261 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
262 # }
263 # }
264 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
265 # is typically the registered service name of the tool or product that
266 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
267 # generated by some common infrastructure, the error domain must be a
268 # globally unique value that identifies the infrastructure. For Google API
269 # infrastructure, the error domain is &quot;googleapis.com&quot;.
270 &quot;metadatas&quot;: { # Additional structured details about this error.
271 #
272 # Keys must match a regular expression of `a-z+` but should
273 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
274 # length. When identifying the current value of an exceeded limit, the units
275 # should be contained in the key, not the value. For example, rather than
276 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
277 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
278 # instances that can be created in a single (batch) request.
279 &quot;a_key&quot;: &quot;A String&quot;,
280 },
281 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
282 # proximate cause of the error. Error reasons are unique within a particular
283 # domain of errors. This should be at most 63 characters and match a
284 # regular expression of `A-Z+[A-Z0-9]`, which represents
285 # UPPER_SNAKE_CASE.
286 },
287 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
288 #
289 # For example, if a quota check failed with an error indicating the calling
290 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
291 # directly to the right place in the developer console to flip the bit.
292 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
293 { # Describes a URL link.
294 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
295 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
296 },
297 ],
298 },
299 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
300 # which can be attached to an RPC error.
301 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
302 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
303 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
304 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
305 },
306 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
307 &quot;dimensions&quot;: { # The map holding related quota dimensions.
308 &quot;a_key&quot;: &quot;A String&quot;,
309 },
310 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
311 # type or metric.
312 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
313 # or metric.
314 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
315 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
316 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
317 },
318 },
319 ],
320 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
321 # This property is optional.
322 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
323 },
324 ],
325 },
326 &quot;getVersionOperationMetadata&quot;: {
327 &quot;inlineSbomInfo&quot;: {
328 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
329 # appropriate identifiers.
330 &quot;a_key&quot;: &quot;A String&quot;,
331 },
332 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
333 # identifiers.
334 &quot;a_key&quot;: &quot;A String&quot;,
335 },
336 },
337 },
338 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
339 # message that was returned, such as `NOT FOUND`.
340 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
341 # status code that was returned. For example, a `404` means the
342 # resource was not found.
343 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
344 # defined by the server.
345 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
346 # This value is inRFC3339
347 # text format.
348 &quot;instancesBulkInsertOperationMetadata&quot;: {
349 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
350 # Example key: zones/us-central1-a
351 &quot;a_key&quot;: {
352 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
353 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
354 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
355 # error.
356 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
357 # if the flow is rolling forward or rolling back.
358 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
359 },
360 },
361 },
362 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
363 # Operation resources.
364 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
365 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
366 # group of operations results from a `bulkInsert` API request.
367 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
368 # `update`, or `delete`, and so on.
369 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
370 # There is no requirement that this be linear or support any granularity of
371 # operations. This should not be used to guess when the operation will be
372 # complete. This number should monotonically increase as the operation
373 # progresses.
374 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
375 # applicable when performing regional operations.
376 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
377 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
378 # this field will contain information on all underlying zonal actions and
379 # their state.
380 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
381 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
382 # Example key: zones/us-central1-a
383 &quot;a_key&quot;: {
384 &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
385 # populated.
386 # different programming environments, including REST APIs and RPC APIs. It is
387 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
388 # three pieces of data: error code, error message, and error details.
389 #
390 # You can find out more about this error model and how to work with it in the
391 # [API Design Guide](https://cloud.google.com/apis/design/errors).
392 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
393 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
394 # message types for APIs to use.
395 {
396 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
397 },
398 ],
399 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
400 # user-facing error message should be localized and sent in the
401 # google.rpc.Status.details field, or localized by the client.
402 },
403 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
404 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
405 },
406 },
407 },
408 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
409 # This value is inRFC3339
410 # text format.
411 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
412 # following:
413 # `PENDING`, `RUNNING`, or `DONE`.
414 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
415 # operation.
416 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
417 # of the target resource.
418 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
419 # operations related to creating a snapshot, this points to the disk
420 # that the snapshot was created from.
421 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
422 # `[email protected]` or
423 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
424 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
425 # operation, this field will be populated.
426 {
427 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
428 # Engine returns NO_RESULTS_ON_PAGE if there
429 # are no results in the response.
430 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
431 # value format. For example:
432 #
433 # &quot;data&quot;: [
434 # {
435 # &quot;key&quot;: &quot;scope&quot;,
436 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
437 # }
438 {
439 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
440 # returned. For example, for warnings where there are no results in a list
441 # request for a particular zone, this key might be scope and
442 # the key value might be the zone name. Other examples might be a key
443 # indicating a deprecated resource and a suggested replacement, or a
444 # warning about invalid network settings (for example, if an instance
445 # attempts to perform IP forwarding but is not enabled for IP forwarding).
446 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
447 },
448 ],
449 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
450 },
451 ],
452 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
453 # applicable when performing per-zone operations.
454 }</pre>
455 </div>
456
457 <div class="method">
458 <code class="details" id="addPacketMirroringRule">addPacketMirroringRule(project, firewallPolicy, body=None, maxPriority=None, minPriority=None, requestId=None, x__xgafv=None)</code>
459 <pre>Inserts a packet mirroring rule into a firewall policy.
460
461 Args:
462 project: string, Project ID for this request. (required)
463 firewallPolicy: string, Name of the firewall policy to update. (required)
464 body: object, The request body.
465 The object takes the form of:
466
467 { # Represents a rule that describes one or more match conditions along with
468 # the action to be taken when traffic matches this condition (allow or deny).
469 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
470 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
471 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
472 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
473 # and &quot;goto_next&quot;.
474 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
475 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
476 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
477 # the firewall policy rule is not enforced and traffic behaves as if it did
478 # not exist. If this is unspecified, the firewall policy rule will be
479 # enabled.
480 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
481 # enabled, logs will be exported to the configured export destination in
482 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
483 # cannot enable logging on &quot;goto_next&quot; rules.
484 &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.
485 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
486 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
487 # Exactly one field must be specified.
488 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
489 # Maximum number of destination address groups is 10.
490 &quot;A String&quot;,
491 ],
492 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
493 # traffic destination.
494 # Maximum number of destination fqdn allowed is 100.
495 &quot;A String&quot;,
496 ],
497 &quot;destIpRanges&quot;: [ # CIDR IP address range.
498 # Maximum number of destination CIDR IP ranges allowed is 5000.
499 &quot;A String&quot;,
500 ],
501 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
502 #
503 #
504 # - UNSPECIFIED
505 # - INTERNET
506 # - NON_INTERNET
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;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
561 #
562 #
563 # - UNSPECIFIED
564 # - INTERNET
565 # - INTRA_VPC
566 # - NON_INTERNET
567 # - VPC_NETWORKS
568 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
569 &quot;A String&quot;,
570 ],
571 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
572 # of traffic. Should be specified as 2 letter country code defined as per
573 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
574 # Maximum number of source region codes allowed is 5000.
575 &quot;A String&quot;,
576 ],
577 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
578 # of the traffic.
579 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
580 # and there is no srcIpRange, this rule will be ignored.
581 # Maximum number of source tag values allowed is 256.
582 {
583 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
584 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
585 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
586 # or its network is deleted.
587 },
588 ],
589 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
590 # The IPs in these lists will be matched against traffic source.
591 &quot;A String&quot;,
592 ],
593 },
594 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
595 # must be a positive value between 0 and 2147483647.
596 # Rules are evaluated from highest to lowest priority where 0 is the
597 # highest priority and 2147483647 is the lowest priority.
598 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
599 # and can be updated.
600 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
601 # rule.
602 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
603 # Example:
604 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
605 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
606 # &#x27;mirror&#x27;. Cannot be specified for other actions.
607 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
608 # This field allows you to control which load balancers get this rule.
609 # For example, the following are valid values:
610 #
611 #
612 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
613 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
614 # - projects/project/global/
615 # forwardingRules/forwardingRule
616 # - projects/project/regions/region/forwardingRules/
617 # forwardingRule
618 &quot;A String&quot;,
619 ],
620 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
621 # allows you to control which network&#x27;s VMs get this rule. If this field
622 # is left blank, all VMs within the organization will receive the rule.
623 &quot;A String&quot;,
624 ],
625 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
626 # applies to. If targetSecureTag are specified, then the
627 # firewall rule applies only to instances in the VPC network that have one
628 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
629 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
630 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
631 # to all instances on the specified network.
632 # Maximum number of target label tags allowed is 256.
633 {
634 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
635 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
636 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
637 # or its network is deleted.
638 },
639 ],
640 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
641 # applied with this rule.
642 &quot;A String&quot;,
643 ],
644 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
645 # Default value is INSTANCES.
646 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
647 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
648 # be set for other actions.
649 }
650
651 maxPriority: integer, When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority&gt;.
652 This field is exclusive with rule.priority.
653 minPriority: integer, When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority&gt;.
654 This field is exclusive with rule.priority.
655 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
656 that if you must retry your request, the server will know to ignore the
657 request if it has already been completed.
658
659 For example, consider a situation where you make an initial request and
660 the request times out. If you make the request again with the same
661 request ID, the server can check if original operation with the same
662 request ID was received, and if so, will ignore the second request. This
663 prevents clients from accidentally creating duplicate commitments.
664
665 The request ID must be
666 a valid UUID with the exception that zero UUID is not supported
667 (00000000-0000-0000-0000-000000000000).
668 x__xgafv: string, V1 error format.
669 Allowed values
670 1 - v1 error format
671 2 - v2 error format
672
673 Returns:
674 An object of the form:
675
676 { # Represents an Operation resource.
677 #
678 # Google Compute Engine has three Operation resources:
679 #
680 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
681 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
682 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
683 #
684 # You can use an operation resource to manage asynchronous API requests.
685 # For more information, readHandling
686 # API responses.
687 #
688 # Operations can be global, regional or zonal.
689 #
690 # - For global operations, use the `globalOperations`
691 # resource.
692 # - For regional operations, use the
693 # `regionOperations` resource.
694 # - For zonal operations, use
695 # the `zoneOperations` resource.
696 #
697 #
698 #
699 # For more information, read
700 # Global, Regional, and Zonal Resources.
701 #
702 # Note that completed Operation resources have a limited
703 # retention period.
704 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
705 # Not present otherwise.
706 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
707 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
708 # set when the operation is created.
709 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
710 # text format.
711 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
712 # this field will be populated.
713 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
714 # operation.
715 {
716 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
717 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
718 # details. There is a set of defined message types to use for providing
719 # details.The syntax depends on the error code. For example,
720 # QuotaExceededInfo will have details when the error code is
721 # QUOTA_EXCEEDED.
722 {
723 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
724 #
725 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
726 # is not enabled:
727 #
728 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
729 # &quot;domain&quot;: &quot;googleapis.com&quot;
730 # &quot;metadata&quot;: {
731 # &quot;resource&quot;: &quot;projects/123&quot;,
732 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
733 # }
734 # }
735 #
736 # This response indicates that the pubsub.googleapis.com API is not enabled.
737 #
738 # Example of an error that is returned when attempting to create a Spanner
739 # instance in a region that is out of stock:
740 #
741 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
742 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
743 # &quot;metadata&quot;: {
744 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
745 # }
746 # }
747 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
748 # is typically the registered service name of the tool or product that
749 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
750 # generated by some common infrastructure, the error domain must be a
751 # globally unique value that identifies the infrastructure. For Google API
752 # infrastructure, the error domain is &quot;googleapis.com&quot;.
753 &quot;metadatas&quot;: { # Additional structured details about this error.
754 #
755 # Keys must match a regular expression of `a-z+` but should
756 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
757 # length. When identifying the current value of an exceeded limit, the units
758 # should be contained in the key, not the value. For example, rather than
759 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
760 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
761 # instances that can be created in a single (batch) request.
762 &quot;a_key&quot;: &quot;A String&quot;,
763 },
764 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
765 # proximate cause of the error. Error reasons are unique within a particular
766 # domain of errors. This should be at most 63 characters and match a
767 # regular expression of `A-Z+[A-Z0-9]`, which represents
768 # UPPER_SNAKE_CASE.
769 },
770 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
771 #
772 # For example, if a quota check failed with an error indicating the calling
773 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
774 # directly to the right place in the developer console to flip the bit.
775 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
776 { # Describes a URL link.
777 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
778 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
779 },
780 ],
781 },
782 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
783 # which can be attached to an RPC error.
784 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
785 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
786 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
787 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
788 },
789 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
790 &quot;dimensions&quot;: { # The map holding related quota dimensions.
791 &quot;a_key&quot;: &quot;A String&quot;,
792 },
793 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
794 # type or metric.
795 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
796 # or metric.
797 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
798 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
799 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
800 },
801 },
802 ],
803 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
804 # This property is optional.
805 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
806 },
807 ],
808 },
809 &quot;getVersionOperationMetadata&quot;: {
810 &quot;inlineSbomInfo&quot;: {
811 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
812 # appropriate identifiers.
813 &quot;a_key&quot;: &quot;A String&quot;,
814 },
815 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
816 # identifiers.
817 &quot;a_key&quot;: &quot;A String&quot;,
818 },
819 },
820 },
821 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
822 # message that was returned, such as `NOT FOUND`.
823 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
824 # status code that was returned. For example, a `404` means the
825 # resource was not found.
826 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
827 # defined by the server.
828 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
829 # This value is inRFC3339
830 # text format.
831 &quot;instancesBulkInsertOperationMetadata&quot;: {
832 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
833 # Example key: zones/us-central1-a
834 &quot;a_key&quot;: {
835 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
836 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
837 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
838 # error.
839 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
840 # if the flow is rolling forward or rolling back.
841 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
842 },
843 },
844 },
845 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
846 # Operation resources.
847 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
848 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
849 # group of operations results from a `bulkInsert` API request.
850 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
851 # `update`, or `delete`, and so on.
852 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
853 # There is no requirement that this be linear or support any granularity of
854 # operations. This should not be used to guess when the operation will be
855 # complete. This number should monotonically increase as the operation
856 # progresses.
857 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
858 # applicable when performing regional operations.
859 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
860 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
861 # this field will contain information on all underlying zonal actions and
862 # their state.
863 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
864 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
865 # Example key: zones/us-central1-a
866 &quot;a_key&quot;: {
867 &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
868 # populated.
869 # different programming environments, including REST APIs and RPC APIs. It is
870 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
871 # three pieces of data: error code, error message, and error details.
872 #
873 # You can find out more about this error model and how to work with it in the
874 # [API Design Guide](https://cloud.google.com/apis/design/errors).
875 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
876 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
877 # message types for APIs to use.
878 {
879 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
880 },
881 ],
882 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
883 # user-facing error message should be localized and sent in the
884 # google.rpc.Status.details field, or localized by the client.
885 },
886 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
887 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
888 },
889 },
890 },
891 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
892 # This value is inRFC3339
893 # text format.
894 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
895 # following:
896 # `PENDING`, `RUNNING`, or `DONE`.
897 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
898 # operation.
899 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
900 # of the target resource.
901 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
902 # operations related to creating a snapshot, this points to the disk
903 # that the snapshot was created from.
904 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
905 # `[email protected]` or
906 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
907 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
908 # operation, this field will be populated.
909 {
910 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
911 # Engine returns NO_RESULTS_ON_PAGE if there
912 # are no results in the response.
913 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
914 # value format. For example:
915 #
916 # &quot;data&quot;: [
917 # {
918 # &quot;key&quot;: &quot;scope&quot;,
919 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
920 # }
921 {
922 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
923 # returned. For example, for warnings where there are no results in a list
924 # request for a particular zone, this key might be scope and
925 # the key value might be the zone name. Other examples might be a key
926 # indicating a deprecated resource and a suggested replacement, or a
927 # warning about invalid network settings (for example, if an instance
928 # attempts to perform IP forwarding but is not enabled for IP forwarding).
929 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
930 },
931 ],
932 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
933 },
934 ],
935 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
936 # applicable when performing per-zone operations.
937 }</pre>
938 </div>
939
940 <div class="method">
941 <code class="details" id="addRule">addRule(project, firewallPolicy, body=None, maxPriority=None, minPriority=None, requestId=None, x__xgafv=None)</code>
942 <pre>Inserts a rule into a firewall policy.
943
944 Args:
945 project: string, Project ID for this request. (required)
946 firewallPolicy: string, Name of the firewall policy to update. (required)
947 body: object, The request body.
948 The object takes the form of:
949
950 { # Represents a rule that describes one or more match conditions along with
951 # the action to be taken when traffic matches this condition (allow or deny).
952 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
953 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
954 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
955 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
956 # and &quot;goto_next&quot;.
957 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
958 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
959 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
960 # the firewall policy rule is not enforced and traffic behaves as if it did
961 # not exist. If this is unspecified, the firewall policy rule will be
962 # enabled.
963 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
964 # enabled, logs will be exported to the configured export destination in
965 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
966 # cannot enable logging on &quot;goto_next&quot; rules.
967 &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.
968 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
969 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
970 # Exactly one field must be specified.
971 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
972 # Maximum number of destination address groups is 10.
973 &quot;A String&quot;,
974 ],
975 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
976 # traffic destination.
977 # Maximum number of destination fqdn allowed is 100.
978 &quot;A String&quot;,
979 ],
980 &quot;destIpRanges&quot;: [ # CIDR IP address range.
981 # Maximum number of destination CIDR IP ranges allowed is 5000.
982 &quot;A String&quot;,
983 ],
984 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
985 #
986 #
987 # - UNSPECIFIED
988 # - INTERNET
989 # - NON_INTERNET
990 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
991 #
992 #
993 # - UNSPECIFIED
994 # - INTERNET
995 # - NON_INTERNET
996 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
997 # of traffic. Should be specified as 2 letter country code defined as per
998 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
999 # Maximum number of dest region codes allowed is 5000.
1000 &quot;A String&quot;,
1001 ],
1002 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1003 # The IPs in these lists will be matched against traffic destination.
1004 &quot;A String&quot;,
1005 ],
1006 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
1007 {
1008 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
1009 # required when creating a firewall rule. This value can either be
1010 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
1011 # protocol number.
1012 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
1013 # only applicable for UDP or TCP protocol. Each entry must be either
1014 # an integer or a range. If not specified, this rule applies to
1015 # connections through any port.
1016 #
1017 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
1018 &quot;A String&quot;,
1019 ],
1020 },
1021 ],
1022 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
1023 # Maximum number of source address groups is 10.
1024 &quot;A String&quot;,
1025 ],
1026 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
1027 # traffic source.
1028 # Maximum number of source fqdn allowed is 100.
1029 &quot;A String&quot;,
1030 ],
1031 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
1032 # Maximum number of source CIDR IP ranges allowed is 5000.
1033 &quot;A String&quot;,
1034 ],
1035 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
1036 #
1037 #
1038 # - UNSPECIFIED
1039 # - INTERNET
1040 # - INTRA_VPC
1041 # - NON_INTERNET
1042 # - VPC_NETWORKS
1043 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
1044 #
1045 #
1046 # - UNSPECIFIED
1047 # - INTERNET
1048 # - INTRA_VPC
1049 # - NON_INTERNET
1050 # - VPC_NETWORKS
1051 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
1052 &quot;A String&quot;,
1053 ],
1054 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
1055 # of traffic. Should be specified as 2 letter country code defined as per
1056 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
1057 # Maximum number of source region codes allowed is 5000.
1058 &quot;A String&quot;,
1059 ],
1060 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
1061 # of the traffic.
1062 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
1063 # and there is no srcIpRange, this rule will be ignored.
1064 # Maximum number of source tag values allowed is 256.
1065 {
1066 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1067 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1068 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1069 # or its network is deleted.
1070 },
1071 ],
1072 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1073 # The IPs in these lists will be matched against traffic source.
1074 &quot;A String&quot;,
1075 ],
1076 },
1077 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
1078 # must be a positive value between 0 and 2147483647.
1079 # Rules are evaluated from highest to lowest priority where 0 is the
1080 # highest priority and 2147483647 is the lowest priority.
1081 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
1082 # and can be updated.
1083 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
1084 # rule.
1085 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
1086 # Example:
1087 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
1088 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
1089 # &#x27;mirror&#x27;. Cannot be specified for other actions.
1090 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
1091 # This field allows you to control which load balancers get this rule.
1092 # For example, the following are valid values:
1093 #
1094 #
1095 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
1096 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
1097 # - projects/project/global/
1098 # forwardingRules/forwardingRule
1099 # - projects/project/regions/region/forwardingRules/
1100 # forwardingRule
1101 &quot;A String&quot;,
1102 ],
1103 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
1104 # allows you to control which network&#x27;s VMs get this rule. If this field
1105 # is left blank, all VMs within the organization will receive the rule.
1106 &quot;A String&quot;,
1107 ],
1108 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
1109 # applies to. If targetSecureTag are specified, then the
1110 # firewall rule applies only to instances in the VPC network that have one
1111 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
1112 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
1113 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
1114 # to all instances on the specified network.
1115 # Maximum number of target label tags allowed is 256.
1116 {
1117 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1118 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1119 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1120 # or its network is deleted.
1121 },
1122 ],
1123 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
1124 # applied with this rule.
1125 &quot;A String&quot;,
1126 ],
1127 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
1128 # Default value is INSTANCES.
1129 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
1130 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
1131 # be set for other actions.
1132 }
1133
1134 maxPriority: integer, When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority&gt;.
1135 This field is exclusive with rule.priority.
1136 minPriority: integer, When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority&gt;.
1137 This field is exclusive with rule.priority.
1138 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
1139 that if you must retry your request, the server will know to ignore the
1140 request if it has already been completed.
1141
1142 For example, consider a situation where you make an initial request and
1143 the request times out. If you make the request again with the same
1144 request ID, the server can check if original operation with the same
1145 request ID was received, and if so, will ignore the second request. This
1146 prevents clients from accidentally creating duplicate commitments.
1147
1148 The request ID must be
1149 a valid UUID with the exception that zero UUID is not supported
1150 (00000000-0000-0000-0000-000000000000).
1151 x__xgafv: string, V1 error format.
1152 Allowed values
1153 1 - v1 error format
1154 2 - v2 error format
1155
1156 Returns:
1157 An object of the form:
1158
1159 { # Represents an Operation resource.
1160 #
1161 # Google Compute Engine has three Operation resources:
1162 #
1163 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
1164 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
1165 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
1166 #
1167 # You can use an operation resource to manage asynchronous API requests.
1168 # For more information, readHandling
1169 # API responses.
1170 #
1171 # Operations can be global, regional or zonal.
1172 #
1173 # - For global operations, use the `globalOperations`
1174 # resource.
1175 # - For regional operations, use the
1176 # `regionOperations` resource.
1177 # - For zonal operations, use
1178 # the `zoneOperations` resource.
1179 #
1180 #
1181 #
1182 # For more information, read
1183 # Global, Regional, and Zonal Resources.
1184 #
1185 # Note that completed Operation resources have a limited
1186 # retention period.
1187 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1188 # Not present otherwise.
1189 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1190 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1191 # set when the operation is created.
1192 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1193 # text format.
1194 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1195 # this field will be populated.
1196 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1197 # operation.
1198 {
1199 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1200 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1201 # details. There is a set of defined message types to use for providing
1202 # details.The syntax depends on the error code. For example,
1203 # QuotaExceededInfo will have details when the error code is
1204 # QUOTA_EXCEEDED.
1205 {
1206 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1207 #
1208 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1209 # is not enabled:
1210 #
1211 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1212 # &quot;domain&quot;: &quot;googleapis.com&quot;
1213 # &quot;metadata&quot;: {
1214 # &quot;resource&quot;: &quot;projects/123&quot;,
1215 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1216 # }
1217 # }
1218 #
1219 # This response indicates that the pubsub.googleapis.com API is not enabled.
1220 #
1221 # Example of an error that is returned when attempting to create a Spanner
1222 # instance in a region that is out of stock:
1223 #
1224 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1225 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1226 # &quot;metadata&quot;: {
1227 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1228 # }
1229 # }
1230 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1231 # is typically the registered service name of the tool or product that
1232 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1233 # generated by some common infrastructure, the error domain must be a
1234 # globally unique value that identifies the infrastructure. For Google API
1235 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1236 &quot;metadatas&quot;: { # Additional structured details about this error.
1237 #
1238 # Keys must match a regular expression of `a-z+` but should
1239 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1240 # length. When identifying the current value of an exceeded limit, the units
1241 # should be contained in the key, not the value. For example, rather than
1242 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1243 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1244 # instances that can be created in a single (batch) request.
1245 &quot;a_key&quot;: &quot;A String&quot;,
1246 },
1247 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1248 # proximate cause of the error. Error reasons are unique within a particular
1249 # domain of errors. This should be at most 63 characters and match a
1250 # regular expression of `A-Z+[A-Z0-9]`, which represents
1251 # UPPER_SNAKE_CASE.
1252 },
1253 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1254 #
1255 # For example, if a quota check failed with an error indicating the calling
1256 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1257 # directly to the right place in the developer console to flip the bit.
1258 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1259 { # Describes a URL link.
1260 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1261 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1262 },
1263 ],
1264 },
1265 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1266 # which can be attached to an RPC error.
1267 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1268 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1269 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1270 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1271 },
1272 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1273 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1274 &quot;a_key&quot;: &quot;A String&quot;,
1275 },
1276 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1277 # type or metric.
1278 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1279 # or metric.
1280 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1281 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1282 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1283 },
1284 },
1285 ],
1286 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1287 # This property is optional.
1288 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1289 },
1290 ],
1291 },
1292 &quot;getVersionOperationMetadata&quot;: {
1293 &quot;inlineSbomInfo&quot;: {
1294 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1295 # appropriate identifiers.
1296 &quot;a_key&quot;: &quot;A String&quot;,
1297 },
1298 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1299 # identifiers.
1300 &quot;a_key&quot;: &quot;A String&quot;,
1301 },
1302 },
1303 },
1304 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1305 # message that was returned, such as `NOT FOUND`.
1306 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1307 # status code that was returned. For example, a `404` means the
1308 # resource was not found.
1309 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1310 # defined by the server.
1311 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1312 # This value is inRFC3339
1313 # text format.
1314 &quot;instancesBulkInsertOperationMetadata&quot;: {
1315 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1316 # Example key: zones/us-central1-a
1317 &quot;a_key&quot;: {
1318 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1319 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1320 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1321 # error.
1322 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1323 # if the flow is rolling forward or rolling back.
1324 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1325 },
1326 },
1327 },
1328 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1329 # Operation resources.
1330 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1331 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1332 # group of operations results from a `bulkInsert` API request.
1333 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1334 # `update`, or `delete`, and so on.
1335 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1336 # There is no requirement that this be linear or support any granularity of
1337 # operations. This should not be used to guess when the operation will be
1338 # complete. This number should monotonically increase as the operation
1339 # progresses.
1340 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1341 # applicable when performing regional operations.
1342 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1343 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1344 # this field will contain information on all underlying zonal actions and
1345 # their state.
1346 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1347 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1348 # Example key: zones/us-central1-a
1349 &quot;a_key&quot;: {
1350 &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
1351 # populated.
1352 # different programming environments, including REST APIs and RPC APIs. It is
1353 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1354 # three pieces of data: error code, error message, and error details.
1355 #
1356 # You can find out more about this error model and how to work with it in the
1357 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1358 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1359 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1360 # message types for APIs to use.
1361 {
1362 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1363 },
1364 ],
1365 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1366 # user-facing error message should be localized and sent in the
1367 # google.rpc.Status.details field, or localized by the client.
1368 },
1369 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1370 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1371 },
1372 },
1373 },
1374 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1375 # This value is inRFC3339
1376 # text format.
1377 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1378 # following:
1379 # `PENDING`, `RUNNING`, or `DONE`.
1380 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1381 # operation.
1382 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1383 # of the target resource.
1384 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1385 # operations related to creating a snapshot, this points to the disk
1386 # that the snapshot was created from.
1387 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1388 # `[email protected]` or
1389 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1390 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1391 # operation, this field will be populated.
1392 {
1393 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1394 # Engine returns NO_RESULTS_ON_PAGE if there
1395 # are no results in the response.
1396 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1397 # value format. For example:
1398 #
1399 # &quot;data&quot;: [
1400 # {
1401 # &quot;key&quot;: &quot;scope&quot;,
1402 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1403 # }
1404 {
1405 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1406 # returned. For example, for warnings where there are no results in a list
1407 # request for a particular zone, this key might be scope and
1408 # the key value might be the zone name. Other examples might be a key
1409 # indicating a deprecated resource and a suggested replacement, or a
1410 # warning about invalid network settings (for example, if an instance
1411 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1412 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1413 },
1414 ],
1415 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1416 },
1417 ],
1418 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1419 # applicable when performing per-zone operations.
1420 }</pre>
1421 </div>
1422
1423 <div class="method">
1424 <code class="details" id="aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, serviceProjectNumber=None, x__xgafv=None)</code>
1425 <pre>Retrieves an aggregated list of network firewall policies, listing network
1426 firewall policies from all applicable scopes (global and regional) and
1427 grouping the results per scope.
1428
1429 To prevent failure, it is recommended that you set the
1430 `returnPartialSuccess` parameter to `true`.
1431
1432 Args:
1433 project: string, Project ID for this request. (required)
1434 filter: string, A filter expression that filters resources listed in the response. Most
1435 Compute resources support two types of filter expressions:
1436 expressions that support regular expressions and expressions that follow
1437 API improvement proposal AIP-160.
1438 These two types of filter expressions cannot be mixed in one request.
1439
1440 If you want to use AIP-160, your expression must specify the field name, an
1441 operator, and the value that you want to use for filtering. The value
1442 must be a string, a number, or a boolean. The operator
1443 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
1444
1445 For example, if you are filtering Compute Engine instances, you can
1446 exclude instances named `example-instance` by specifying
1447 `name != example-instance`.
1448
1449 The `:*` comparison can be used to test whether a key has been defined.
1450 For example, to find all objects with `owner` label use:
1451 ```
1452 labels.owner:*
1453 ```
1454
1455 You can also filter nested fields. For example, you could specify
1456 `scheduling.automaticRestart = false` to include instances only
1457 if they are not scheduled for automatic restarts. You can use filtering
1458 on nested fields to filter based onresource labels.
1459
1460 To filter on multiple expressions, provide each separate expression within
1461 parentheses. For example:
1462 ```
1463 (scheduling.automaticRestart = true)
1464 (cpuPlatform = &quot;Intel Skylake&quot;)
1465 ```
1466 By default, each expression is an `AND` expression. However, you
1467 can include `AND` and `OR` expressions explicitly.
1468 For example:
1469 ```
1470 (cpuPlatform = &quot;Intel Skylake&quot;) OR
1471 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
1472 (scheduling.automaticRestart = true)
1473 ```
1474
1475 If you want to use a regular expression, use the `eq` (equal) or `ne`
1476 (not equal) operator against a single un-parenthesized expression with or
1477 without quotes or against multiple parenthesized expressions. Examples:
1478
1479 `fieldname eq unquoted literal`
1480 `fieldname eq &#x27;single quoted literal&#x27;`
1481 `fieldname eq &quot;double quoted literal&quot;`
1482 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
1483
1484 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
1485 The literal value must match the entire field.
1486
1487 For example, to filter for instances that do not end with name &quot;instance&quot;,
1488 you would use `name ne .*instance`.
1489
1490 You cannot combine constraints on multiple fields using regular
1491 expressions.
1492 includeAllScopes: boolean, Indicates whether every visible scope for each scope type (zone, region,
1493 global) should be included in the response. For new resource types added
1494 after this field, the flag has no effect as new resource types will always
1495 include every visible scope for each scope type in response. For resource
1496 types which predate this field, if this flag is omitted or false, only
1497 scopes of the scope types where the resource type is expected to be found
1498 will be included.
1499 maxResults: integer, The maximum number of results per page that should be returned.
1500 If the number of available results is larger than `maxResults`,
1501 Compute Engine returns a `nextPageToken` that can be used to get
1502 the next page of results in subsequent list requests. Acceptable values are
1503 `0` to `500`, inclusive. (Default: `500`)
1504 orderBy: string, Sorts list results by a certain order. By default, results
1505 are returned in alphanumerical order based on the resource name.
1506
1507 You can also sort results in descending order based on the creation
1508 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
1509 results based on the `creationTimestamp` field in
1510 reverse chronological order (newest result first). Use this to sort
1511 resources like operations so that the newest operation is returned first.
1512
1513 Currently, only sorting by `name` or
1514 `creationTimestamp desc` is supported.
1515 pageToken: string, Specifies a page token to use. Set `pageToken` to the
1516 `nextPageToken` returned by a previous list request to get
1517 the next page of results.
1518 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
1519 of failure. The default value is false.
1520
1521 For example, when partial success behavior is enabled, aggregatedList for a
1522 single zone scope either returns all resources in the zone or no resources,
1523 with an error code.
1524 serviceProjectNumber: string, The Shared VPC service project id or service project number for which
1525 aggregated list request is invoked for subnetworks list-usable api.
1526 x__xgafv: string, V1 error format.
1527 Allowed values
1528 1 - v1 error format
1529 2 - v2 error format
1530
1531 Returns:
1532 An object of the form:
1533
1534 {
1535 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
1536 &quot;items&quot;: { # A list of FirewallPoliciesScopedList resources.
1537 &quot;a_key&quot;: { # Name of the scope containing this set of addresses.
1538 &quot;firewallPolicies&quot;: [ # A list of firewall policies contained in this scope.
1539 { # Represents a Firewall Policy resource.
1540 &quot;associations&quot;: [ # A list of associations that belong to this firewall policy.
1541 {
1542 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
1543 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
1544 # of the firewall policy of the association.
1545 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
1546 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
1547 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
1548 },
1549 ],
1550 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
1551 # text format.
1552 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
1553 # create the resource.
1554 &quot;displayName&quot;: &quot;A String&quot;, # Deprecated, please use short name instead. User-provided name of the
1555 # Organization firewall policy. The name should be unique in the organization
1556 # in which the firewall policy is created.
1557 # This field is not applicable to network firewall policies.
1558 # This name must be set on creation and cannot be changed.
1559 # The name must be 1-63 characters long, and comply
1560 # with RFC1035. Specifically, the name must be 1-63 characters
1561 # long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which
1562 # means the first character must be a lowercase letter, and all following
1563 # characters must be a dash, lowercase letter, or digit, except the last
1564 # character, which cannot be a dash.
1565 &quot;fingerprint&quot;: &quot;A String&quot;, # Specifies a fingerprint for this resource, which is essentially a hash of
1566 # the metadata&#x27;s contents and used for optimistic locking. The
1567 # fingerprint is initially generated by Compute Engine and changes after
1568 # every request to modify or update metadata. You must always provide an
1569 # up-to-date fingerprint hash in order to update or change metadata,
1570 # otherwise the request will fail with error412 conditionNotMet.
1571 #
1572 # To see the latest fingerprint, make get() request to the
1573 # firewall policy.
1574 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
1575 # defined by the server.
1576 &quot;kind&quot;: &quot;compute#firewallPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
1577 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. For Organization Firewall Policies it&#x27;s a
1578 # [Output Only] numeric ID allocated by Google Cloud which uniquely
1579 # identifies the Organization Firewall Policy.
1580 &quot;packetMirroringRules&quot;: [ # A list of packet mirroring rules that belong to this policy.
1581 { # Represents a rule that describes one or more match conditions along with
1582 # the action to be taken when traffic matches this condition (allow or deny).
1583 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
1584 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
1585 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
1586 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
1587 # and &quot;goto_next&quot;.
1588 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
1589 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
1590 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
1591 # the firewall policy rule is not enforced and traffic behaves as if it did
1592 # not exist. If this is unspecified, the firewall policy rule will be
1593 # enabled.
1594 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
1595 # enabled, logs will be exported to the configured export destination in
1596 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
1597 # cannot enable logging on &quot;goto_next&quot; rules.
1598 &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.
1599 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
1600 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
1601 # Exactly one field must be specified.
1602 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
1603 # Maximum number of destination address groups is 10.
1604 &quot;A String&quot;,
1605 ],
1606 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
1607 # traffic destination.
1608 # Maximum number of destination fqdn allowed is 100.
1609 &quot;A String&quot;,
1610 ],
1611 &quot;destIpRanges&quot;: [ # CIDR IP address range.
1612 # Maximum number of destination CIDR IP ranges allowed is 5000.
1613 &quot;A String&quot;,
1614 ],
1615 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
1616 #
1617 #
1618 # - UNSPECIFIED
1619 # - INTERNET
1620 # - NON_INTERNET
1621 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
1622 #
1623 #
1624 # - UNSPECIFIED
1625 # - INTERNET
1626 # - NON_INTERNET
1627 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
1628 # of traffic. Should be specified as 2 letter country code defined as per
1629 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
1630 # Maximum number of dest region codes allowed is 5000.
1631 &quot;A String&quot;,
1632 ],
1633 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1634 # The IPs in these lists will be matched against traffic destination.
1635 &quot;A String&quot;,
1636 ],
1637 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
1638 {
1639 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
1640 # required when creating a firewall rule. This value can either be
1641 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
1642 # protocol number.
1643 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
1644 # only applicable for UDP or TCP protocol. Each entry must be either
1645 # an integer or a range. If not specified, this rule applies to
1646 # connections through any port.
1647 #
1648 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
1649 &quot;A String&quot;,
1650 ],
1651 },
1652 ],
1653 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
1654 # Maximum number of source address groups is 10.
1655 &quot;A String&quot;,
1656 ],
1657 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
1658 # traffic source.
1659 # Maximum number of source fqdn allowed is 100.
1660 &quot;A String&quot;,
1661 ],
1662 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
1663 # Maximum number of source CIDR IP ranges allowed is 5000.
1664 &quot;A String&quot;,
1665 ],
1666 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
1667 #
1668 #
1669 # - UNSPECIFIED
1670 # - INTERNET
1671 # - INTRA_VPC
1672 # - NON_INTERNET
1673 # - VPC_NETWORKS
1674 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
1675 #
1676 #
1677 # - UNSPECIFIED
1678 # - INTERNET
1679 # - INTRA_VPC
1680 # - NON_INTERNET
1681 # - VPC_NETWORKS
1682 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
1683 &quot;A String&quot;,
1684 ],
1685 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
1686 # of traffic. Should be specified as 2 letter country code defined as per
1687 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
1688 # Maximum number of source region codes allowed is 5000.
1689 &quot;A String&quot;,
1690 ],
1691 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
1692 # of the traffic.
1693 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
1694 # and there is no srcIpRange, this rule will be ignored.
1695 # Maximum number of source tag values allowed is 256.
1696 {
1697 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1698 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1699 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1700 # or its network is deleted.
1701 },
1702 ],
1703 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1704 # The IPs in these lists will be matched against traffic source.
1705 &quot;A String&quot;,
1706 ],
1707 },
1708 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
1709 # must be a positive value between 0 and 2147483647.
1710 # Rules are evaluated from highest to lowest priority where 0 is the
1711 # highest priority and 2147483647 is the lowest priority.
1712 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
1713 # and can be updated.
1714 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
1715 # rule.
1716 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
1717 # Example:
1718 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
1719 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
1720 # &#x27;mirror&#x27;. Cannot be specified for other actions.
1721 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
1722 # This field allows you to control which load balancers get this rule.
1723 # For example, the following are valid values:
1724 #
1725 #
1726 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
1727 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
1728 # - projects/project/global/
1729 # forwardingRules/forwardingRule
1730 # - projects/project/regions/region/forwardingRules/
1731 # forwardingRule
1732 &quot;A String&quot;,
1733 ],
1734 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
1735 # allows you to control which network&#x27;s VMs get this rule. If this field
1736 # is left blank, all VMs within the organization will receive the rule.
1737 &quot;A String&quot;,
1738 ],
1739 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
1740 # applies to. If targetSecureTag are specified, then the
1741 # firewall rule applies only to instances in the VPC network that have one
1742 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
1743 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
1744 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
1745 # to all instances on the specified network.
1746 # Maximum number of target label tags allowed is 256.
1747 {
1748 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1749 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1750 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1751 # or its network is deleted.
1752 },
1753 ],
1754 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
1755 # applied with this rule.
1756 &quot;A String&quot;,
1757 ],
1758 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
1759 # Default value is INSTANCES.
1760 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
1761 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
1762 # be set for other actions.
1763 },
1764 ],
1765 &quot;parent&quot;: &quot;A String&quot;, # Output only. [Output Only] The parent of the firewall policy.
1766 # This field is not applicable to network firewall policies.
1767 &quot;policyType&quot;: &quot;A String&quot;, # The type of the firewall policy. This field can be one of
1768 # VPC_POLICY, RDMA_ROCE_POLICY or ULL_POLICY.
1769 #
1770 # Note: if not specified then VPC_POLICY will be used.
1771 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional firewall policy resides.
1772 # This field is not applicable to global firewall policies.
1773 # You must specify this field as part of the HTTP request URL. It is
1774 # not settable as a field in the request body.
1775 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall
1776 # policy can not exceed a set number of tuples.
1777 &quot;rules&quot;: [ # A list of rules that belong to this policy.
1778 # There must always be a default rule (rule with priority 2147483647 and
1779 # match &quot;*&quot;). If no rules are provided when creating a firewall policy, a
1780 # default rule with action &quot;allow&quot; will be added.
1781 { # Represents a rule that describes one or more match conditions along with
1782 # the action to be taken when traffic matches this condition (allow or deny).
1783 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
1784 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
1785 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
1786 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
1787 # and &quot;goto_next&quot;.
1788 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
1789 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
1790 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
1791 # the firewall policy rule is not enforced and traffic behaves as if it did
1792 # not exist. If this is unspecified, the firewall policy rule will be
1793 # enabled.
1794 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
1795 # enabled, logs will be exported to the configured export destination in
1796 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
1797 # cannot enable logging on &quot;goto_next&quot; rules.
1798 &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.
1799 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
1800 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
1801 # Exactly one field must be specified.
1802 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
1803 # Maximum number of destination address groups is 10.
1804 &quot;A String&quot;,
1805 ],
1806 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
1807 # traffic destination.
1808 # Maximum number of destination fqdn allowed is 100.
1809 &quot;A String&quot;,
1810 ],
1811 &quot;destIpRanges&quot;: [ # CIDR IP address range.
1812 # Maximum number of destination CIDR IP ranges allowed is 5000.
1813 &quot;A String&quot;,
1814 ],
1815 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
1816 #
1817 #
1818 # - UNSPECIFIED
1819 # - INTERNET
1820 # - NON_INTERNET
1821 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
1822 #
1823 #
1824 # - UNSPECIFIED
1825 # - INTERNET
1826 # - NON_INTERNET
1827 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
1828 # of traffic. Should be specified as 2 letter country code defined as per
1829 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
1830 # Maximum number of dest region codes allowed is 5000.
1831 &quot;A String&quot;,
1832 ],
1833 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1834 # The IPs in these lists will be matched against traffic destination.
1835 &quot;A String&quot;,
1836 ],
1837 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
1838 {
1839 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
1840 # required when creating a firewall rule. This value can either be
1841 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
1842 # protocol number.
1843 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
1844 # only applicable for UDP or TCP protocol. Each entry must be either
1845 # an integer or a range. If not specified, this rule applies to
1846 # connections through any port.
1847 #
1848 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
1849 &quot;A String&quot;,
1850 ],
1851 },
1852 ],
1853 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
1854 # Maximum number of source address groups is 10.
1855 &quot;A String&quot;,
1856 ],
1857 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
1858 # traffic source.
1859 # Maximum number of source fqdn allowed is 100.
1860 &quot;A String&quot;,
1861 ],
1862 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
1863 # Maximum number of source CIDR IP ranges allowed is 5000.
1864 &quot;A String&quot;,
1865 ],
1866 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
1867 #
1868 #
1869 # - UNSPECIFIED
1870 # - INTERNET
1871 # - INTRA_VPC
1872 # - NON_INTERNET
1873 # - VPC_NETWORKS
1874 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
1875 #
1876 #
1877 # - UNSPECIFIED
1878 # - INTERNET
1879 # - INTRA_VPC
1880 # - NON_INTERNET
1881 # - VPC_NETWORKS
1882 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
1883 &quot;A String&quot;,
1884 ],
1885 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
1886 # of traffic. Should be specified as 2 letter country code defined as per
1887 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
1888 # Maximum number of source region codes allowed is 5000.
1889 &quot;A String&quot;,
1890 ],
1891 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
1892 # of the traffic.
1893 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
1894 # and there is no srcIpRange, this rule will be ignored.
1895 # Maximum number of source tag values allowed is 256.
1896 {
1897 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1898 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1899 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1900 # or its network is deleted.
1901 },
1902 ],
1903 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1904 # The IPs in these lists will be matched against traffic source.
1905 &quot;A String&quot;,
1906 ],
1907 },
1908 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
1909 # must be a positive value between 0 and 2147483647.
1910 # Rules are evaluated from highest to lowest priority where 0 is the
1911 # highest priority and 2147483647 is the lowest priority.
1912 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
1913 # and can be updated.
1914 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
1915 # rule.
1916 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
1917 # Example:
1918 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
1919 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
1920 # &#x27;mirror&#x27;. Cannot be specified for other actions.
1921 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
1922 # This field allows you to control which load balancers get this rule.
1923 # For example, the following are valid values:
1924 #
1925 #
1926 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
1927 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
1928 # - projects/project/global/
1929 # forwardingRules/forwardingRule
1930 # - projects/project/regions/region/forwardingRules/
1931 # forwardingRule
1932 &quot;A String&quot;,
1933 ],
1934 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
1935 # allows you to control which network&#x27;s VMs get this rule. If this field
1936 # is left blank, all VMs within the organization will receive the rule.
1937 &quot;A String&quot;,
1938 ],
1939 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
1940 # applies to. If targetSecureTag are specified, then the
1941 # firewall rule applies only to instances in the VPC network that have one
1942 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
1943 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
1944 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
1945 # to all instances on the specified network.
1946 # Maximum number of target label tags allowed is 256.
1947 {
1948 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1949 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1950 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1951 # or its network is deleted.
1952 },
1953 ],
1954 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
1955 # applied with this rule.
1956 &quot;A String&quot;,
1957 ],
1958 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
1959 # Default value is INSTANCES.
1960 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
1961 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
1962 # be set for other actions.
1963 },
1964 ],
1965 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1966 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
1967 &quot;shortName&quot;: &quot;A String&quot;, # User-provided name of the Organization firewall policy. The name should be
1968 # unique in the organization in which the firewall policy is created.
1969 # This field is not applicable to network firewall policies.
1970 # This name must be set on creation and cannot be changed. The name must be
1971 # 1-63 characters long, and comply with RFC1035.
1972 # Specifically, the name must be 1-63 characters long and match the regular
1973 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1974 # character must be a lowercase letter, and all following characters must
1975 # be a dash, lowercase letter, or digit, except the last character, which
1976 # cannot be a dash.
1977 },
1978 ],
1979 &quot;warning&quot;: { # Informational warning which replaces the list of firewall policies when
1980 # the list is empty.
1981 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1982 # Engine returns NO_RESULTS_ON_PAGE if there
1983 # are no results in the response.
1984 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1985 # value format. For example:
1986 #
1987 # &quot;data&quot;: [
1988 # {
1989 # &quot;key&quot;: &quot;scope&quot;,
1990 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1991 # }
1992 {
1993 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1994 # returned. For example, for warnings where there are no results in a list
1995 # request for a particular zone, this key might be scope and
1996 # the key value might be the zone name. Other examples might be a key
1997 # indicating a deprecated resource and a suggested replacement, or a
1998 # warning about invalid network settings (for example, if an instance
1999 # attempts to perform IP forwarding but is not enabled for IP forwarding).
2000 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
2001 },
2002 ],
2003 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
2004 },
2005 },
2006 },
2007 &quot;kind&quot;: &quot;compute#networkFirewallPolicyAggregatedList&quot;, # Output only. [Output Only] Type of resource. Alwayscompute#networkFirewallPoliciesAggregatedList for lists of
2008 # network firewall policies.
2009 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
2010 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
2011 # the query parameter pageToken in the next list request.
2012 # Subsequent list requests will have their own nextPageToken to
2013 # continue paging through the results.
2014 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource.
2015 &quot;unreachables&quot;: [ # Output only. [Output Only] Unreachable resources.
2016 &quot;A String&quot;,
2017 ],
2018 &quot;warning&quot;: { # [Output Only] Informational warning message.
2019 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
2020 # Engine returns NO_RESULTS_ON_PAGE if there
2021 # are no results in the response.
2022 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
2023 # value format. For example:
2024 #
2025 # &quot;data&quot;: [
2026 # {
2027 # &quot;key&quot;: &quot;scope&quot;,
2028 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
2029 # }
2030 {
2031 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
2032 # returned. For example, for warnings where there are no results in a list
2033 # request for a particular zone, this key might be scope and
2034 # the key value might be the zone name. Other examples might be a key
2035 # indicating a deprecated resource and a suggested replacement, or a
2036 # warning about invalid network settings (for example, if an instance
2037 # attempts to perform IP forwarding but is not enabled for IP forwarding).
2038 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
2039 },
2040 ],
2041 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
2042 },
2043 }</pre>
2044 </div>
2045
2046 <div class="method">
2047 <code class="details" id="aggregatedList_next">aggregatedList_next()</code>
2048 <pre>Retrieves the next page of results.
2049
2050 Args:
2051 previous_request: The request for the previous page. (required)
2052 previous_response: The response from the request for the previous page. (required)
2053
2054 Returns:
2055 A request object that you can call &#x27;execute()&#x27; on to request the next
2056 page. Returns None if there are no more items in the collection.
2057 </pre>
2058 </div>
2059
2060 <div class="method">
2061 <code class="details" id="cloneRules">cloneRules(project, firewallPolicy, requestId=None, sourceFirewallPolicy=None, x__xgafv=None)</code>
2062 <pre>Copies rules to the specified firewall policy.
2063
2064 Args:
2065 project: string, Project ID for this request. (required)
2066 firewallPolicy: string, Name of the firewall policy to update. (required)
2067 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
2068 that if you must retry your request, the server will know to ignore the
2069 request if it has already been completed.
2070
2071 For example, consider a situation where you make an initial request and
2072 the request times out. If you make the request again with the same
2073 request ID, the server can check if original operation with the same
2074 request ID was received, and if so, will ignore the second request. This
2075 prevents clients from accidentally creating duplicate commitments.
2076
2077 The request ID must be
2078 a valid UUID with the exception that zero UUID is not supported
2079 (00000000-0000-0000-0000-000000000000).
2080 sourceFirewallPolicy: string, The firewall policy from which to copy rules.
2081 x__xgafv: string, V1 error format.
2082 Allowed values
2083 1 - v1 error format
2084 2 - v2 error format
2085
2086 Returns:
2087 An object of the form:
2088
2089 { # Represents an Operation resource.
2090 #
2091 # Google Compute Engine has three Operation resources:
2092 #
2093 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
2094 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
2095 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
2096 #
2097 # You can use an operation resource to manage asynchronous API requests.
2098 # For more information, readHandling
2099 # API responses.
2100 #
2101 # Operations can be global, regional or zonal.
2102 #
2103 # - For global operations, use the `globalOperations`
2104 # resource.
2105 # - For regional operations, use the
2106 # `regionOperations` resource.
2107 # - For zonal operations, use
2108 # the `zoneOperations` resource.
2109 #
2110 #
2111 #
2112 # For more information, read
2113 # Global, Regional, and Zonal Resources.
2114 #
2115 # Note that completed Operation resources have a limited
2116 # retention period.
2117 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
2118 # Not present otherwise.
2119 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
2120 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
2121 # set when the operation is created.
2122 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
2123 # text format.
2124 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
2125 # this field will be populated.
2126 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
2127 # operation.
2128 {
2129 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
2130 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
2131 # details. There is a set of defined message types to use for providing
2132 # details.The syntax depends on the error code. For example,
2133 # QuotaExceededInfo will have details when the error code is
2134 # QUOTA_EXCEEDED.
2135 {
2136 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
2137 #
2138 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
2139 # is not enabled:
2140 #
2141 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
2142 # &quot;domain&quot;: &quot;googleapis.com&quot;
2143 # &quot;metadata&quot;: {
2144 # &quot;resource&quot;: &quot;projects/123&quot;,
2145 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
2146 # }
2147 # }
2148 #
2149 # This response indicates that the pubsub.googleapis.com API is not enabled.
2150 #
2151 # Example of an error that is returned when attempting to create a Spanner
2152 # instance in a region that is out of stock:
2153 #
2154 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
2155 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
2156 # &quot;metadata&quot;: {
2157 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
2158 # }
2159 # }
2160 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
2161 # is typically the registered service name of the tool or product that
2162 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
2163 # generated by some common infrastructure, the error domain must be a
2164 # globally unique value that identifies the infrastructure. For Google API
2165 # infrastructure, the error domain is &quot;googleapis.com&quot;.
2166 &quot;metadatas&quot;: { # Additional structured details about this error.
2167 #
2168 # Keys must match a regular expression of `a-z+` but should
2169 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
2170 # length. When identifying the current value of an exceeded limit, the units
2171 # should be contained in the key, not the value. For example, rather than
2172 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
2173 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
2174 # instances that can be created in a single (batch) request.
2175 &quot;a_key&quot;: &quot;A String&quot;,
2176 },
2177 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
2178 # proximate cause of the error. Error reasons are unique within a particular
2179 # domain of errors. This should be at most 63 characters and match a
2180 # regular expression of `A-Z+[A-Z0-9]`, which represents
2181 # UPPER_SNAKE_CASE.
2182 },
2183 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
2184 #
2185 # For example, if a quota check failed with an error indicating the calling
2186 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
2187 # directly to the right place in the developer console to flip the bit.
2188 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
2189 { # Describes a URL link.
2190 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
2191 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
2192 },
2193 ],
2194 },
2195 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
2196 # which can be attached to an RPC error.
2197 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
2198 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
2199 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
2200 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
2201 },
2202 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
2203 &quot;dimensions&quot;: { # The map holding related quota dimensions.
2204 &quot;a_key&quot;: &quot;A String&quot;,
2205 },
2206 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
2207 # type or metric.
2208 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
2209 # or metric.
2210 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
2211 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
2212 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
2213 },
2214 },
2215 ],
2216 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
2217 # This property is optional.
2218 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
2219 },
2220 ],
2221 },
2222 &quot;getVersionOperationMetadata&quot;: {
2223 &quot;inlineSbomInfo&quot;: {
2224 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
2225 # appropriate identifiers.
2226 &quot;a_key&quot;: &quot;A String&quot;,
2227 },
2228 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
2229 # identifiers.
2230 &quot;a_key&quot;: &quot;A String&quot;,
2231 },
2232 },
2233 },
2234 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
2235 # message that was returned, such as `NOT FOUND`.
2236 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
2237 # status code that was returned. For example, a `404` means the
2238 # resource was not found.
2239 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
2240 # defined by the server.
2241 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
2242 # This value is inRFC3339
2243 # text format.
2244 &quot;instancesBulkInsertOperationMetadata&quot;: {
2245 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
2246 # Example key: zones/us-central1-a
2247 &quot;a_key&quot;: {
2248 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
2249 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
2250 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
2251 # error.
2252 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
2253 # if the flow is rolling forward or rolling back.
2254 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
2255 },
2256 },
2257 },
2258 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
2259 # Operation resources.
2260 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
2261 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
2262 # group of operations results from a `bulkInsert` API request.
2263 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
2264 # `update`, or `delete`, and so on.
2265 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
2266 # There is no requirement that this be linear or support any granularity of
2267 # operations. This should not be used to guess when the operation will be
2268 # complete. This number should monotonically increase as the operation
2269 # progresses.
2270 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
2271 # applicable when performing regional operations.
2272 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
2273 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
2274 # this field will contain information on all underlying zonal actions and
2275 # their state.
2276 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
2277 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
2278 # Example key: zones/us-central1-a
2279 &quot;a_key&quot;: {
2280 &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
2281 # populated.
2282 # different programming environments, including REST APIs and RPC APIs. It is
2283 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2284 # three pieces of data: error code, error message, and error details.
2285 #
2286 # You can find out more about this error model and how to work with it in the
2287 # [API Design Guide](https://cloud.google.com/apis/design/errors).
2288 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2289 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
2290 # message types for APIs to use.
2291 {
2292 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2293 },
2294 ],
2295 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
2296 # user-facing error message should be localized and sent in the
2297 # google.rpc.Status.details field, or localized by the client.
2298 },
2299 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
2300 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
2301 },
2302 },
2303 },
2304 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
2305 # This value is inRFC3339
2306 # text format.
2307 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
2308 # following:
2309 # `PENDING`, `RUNNING`, or `DONE`.
2310 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
2311 # operation.
2312 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
2313 # of the target resource.
2314 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
2315 # operations related to creating a snapshot, this points to the disk
2316 # that the snapshot was created from.
2317 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
2318 # `[email protected]` or
2319 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
2320 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
2321 # operation, this field will be populated.
2322 {
2323 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
2324 # Engine returns NO_RESULTS_ON_PAGE if there
2325 # are no results in the response.
2326 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
2327 # value format. For example:
2328 #
2329 # &quot;data&quot;: [
2330 # {
2331 # &quot;key&quot;: &quot;scope&quot;,
2332 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
2333 # }
2334 {
2335 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
2336 # returned. For example, for warnings where there are no results in a list
2337 # request for a particular zone, this key might be scope and
2338 # the key value might be the zone name. Other examples might be a key
2339 # indicating a deprecated resource and a suggested replacement, or a
2340 # warning about invalid network settings (for example, if an instance
2341 # attempts to perform IP forwarding but is not enabled for IP forwarding).
2342 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
2343 },
2344 ],
2345 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
2346 },
2347 ],
2348 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
2349 # applicable when performing per-zone operations.
2350 }</pre>
2351 </div>
2352
2353 <div class="method">
2354 <code class="details" id="close">close()</code>
2355 <pre>Close httplib2 connections.</pre>
2356 </div>
2357
2358 <div class="method">
2359 <code class="details" id="delete">delete(project, firewallPolicy, requestId=None, x__xgafv=None)</code>
2360 <pre>Deletes the specified policy.
2361
2362 Args:
2363 project: string, Project ID for this request. (required)
2364 firewallPolicy: string, Name of the firewall policy to delete. (required)
2365 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
2366 that if you must retry your request, the server will know to ignore the
2367 request if it has already been completed.
2368
2369 For example, consider a situation where you make an initial request and
2370 the request times out. If you make the request again with the same
2371 request ID, the server can check if original operation with the same
2372 request ID was received, and if so, will ignore the second request. This
2373 prevents clients from accidentally creating duplicate commitments.
2374
2375 The request ID must be
2376 a valid UUID with the exception that zero UUID is not supported
2377 (00000000-0000-0000-0000-000000000000).
2378 x__xgafv: string, V1 error format.
2379 Allowed values
2380 1 - v1 error format
2381 2 - v2 error format
2382
2383 Returns:
2384 An object of the form:
2385
2386 { # Represents an Operation resource.
2387 #
2388 # Google Compute Engine has three Operation resources:
2389 #
2390 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
2391 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
2392 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
2393 #
2394 # You can use an operation resource to manage asynchronous API requests.
2395 # For more information, readHandling
2396 # API responses.
2397 #
2398 # Operations can be global, regional or zonal.
2399 #
2400 # - For global operations, use the `globalOperations`
2401 # resource.
2402 # - For regional operations, use the
2403 # `regionOperations` resource.
2404 # - For zonal operations, use
2405 # the `zoneOperations` resource.
2406 #
2407 #
2408 #
2409 # For more information, read
2410 # Global, Regional, and Zonal Resources.
2411 #
2412 # Note that completed Operation resources have a limited
2413 # retention period.
2414 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
2415 # Not present otherwise.
2416 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
2417 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
2418 # set when the operation is created.
2419 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
2420 # text format.
2421 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
2422 # this field will be populated.
2423 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
2424 # operation.
2425 {
2426 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
2427 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
2428 # details. There is a set of defined message types to use for providing
2429 # details.The syntax depends on the error code. For example,
2430 # QuotaExceededInfo will have details when the error code is
2431 # QUOTA_EXCEEDED.
2432 {
2433 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
2434 #
2435 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
2436 # is not enabled:
2437 #
2438 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
2439 # &quot;domain&quot;: &quot;googleapis.com&quot;
2440 # &quot;metadata&quot;: {
2441 # &quot;resource&quot;: &quot;projects/123&quot;,
2442 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
2443 # }
2444 # }
2445 #
2446 # This response indicates that the pubsub.googleapis.com API is not enabled.
2447 #
2448 # Example of an error that is returned when attempting to create a Spanner
2449 # instance in a region that is out of stock:
2450 #
2451 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
2452 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
2453 # &quot;metadata&quot;: {
2454 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
2455 # }
2456 # }
2457 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
2458 # is typically the registered service name of the tool or product that
2459 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
2460 # generated by some common infrastructure, the error domain must be a
2461 # globally unique value that identifies the infrastructure. For Google API
2462 # infrastructure, the error domain is &quot;googleapis.com&quot;.
2463 &quot;metadatas&quot;: { # Additional structured details about this error.
2464 #
2465 # Keys must match a regular expression of `a-z+` but should
2466 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
2467 # length. When identifying the current value of an exceeded limit, the units
2468 # should be contained in the key, not the value. For example, rather than
2469 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
2470 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
2471 # instances that can be created in a single (batch) request.
2472 &quot;a_key&quot;: &quot;A String&quot;,
2473 },
2474 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
2475 # proximate cause of the error. Error reasons are unique within a particular
2476 # domain of errors. This should be at most 63 characters and match a
2477 # regular expression of `A-Z+[A-Z0-9]`, which represents
2478 # UPPER_SNAKE_CASE.
2479 },
2480 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
2481 #
2482 # For example, if a quota check failed with an error indicating the calling
2483 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
2484 # directly to the right place in the developer console to flip the bit.
2485 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
2486 { # Describes a URL link.
2487 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
2488 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
2489 },
2490 ],
2491 },
2492 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
2493 # which can be attached to an RPC error.
2494 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
2495 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
2496 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
2497 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
2498 },
2499 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
2500 &quot;dimensions&quot;: { # The map holding related quota dimensions.
2501 &quot;a_key&quot;: &quot;A String&quot;,
2502 },
2503 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
2504 # type or metric.
2505 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
2506 # or metric.
2507 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
2508 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
2509 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
2510 },
2511 },
2512 ],
2513 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
2514 # This property is optional.
2515 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
2516 },
2517 ],
2518 },
2519 &quot;getVersionOperationMetadata&quot;: {
2520 &quot;inlineSbomInfo&quot;: {
2521 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
2522 # appropriate identifiers.
2523 &quot;a_key&quot;: &quot;A String&quot;,
2524 },
2525 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
2526 # identifiers.
2527 &quot;a_key&quot;: &quot;A String&quot;,
2528 },
2529 },
2530 },
2531 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
2532 # message that was returned, such as `NOT FOUND`.
2533 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
2534 # status code that was returned. For example, a `404` means the
2535 # resource was not found.
2536 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
2537 # defined by the server.
2538 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
2539 # This value is inRFC3339
2540 # text format.
2541 &quot;instancesBulkInsertOperationMetadata&quot;: {
2542 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
2543 # Example key: zones/us-central1-a
2544 &quot;a_key&quot;: {
2545 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
2546 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
2547 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
2548 # error.
2549 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
2550 # if the flow is rolling forward or rolling back.
2551 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
2552 },
2553 },
2554 },
2555 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
2556 # Operation resources.
2557 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
2558 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
2559 # group of operations results from a `bulkInsert` API request.
2560 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
2561 # `update`, or `delete`, and so on.
2562 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
2563 # There is no requirement that this be linear or support any granularity of
2564 # operations. This should not be used to guess when the operation will be
2565 # complete. This number should monotonically increase as the operation
2566 # progresses.
2567 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
2568 # applicable when performing regional operations.
2569 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
2570 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
2571 # this field will contain information on all underlying zonal actions and
2572 # their state.
2573 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
2574 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
2575 # Example key: zones/us-central1-a
2576 &quot;a_key&quot;: {
2577 &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
2578 # populated.
2579 # different programming environments, including REST APIs and RPC APIs. It is
2580 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2581 # three pieces of data: error code, error message, and error details.
2582 #
2583 # You can find out more about this error model and how to work with it in the
2584 # [API Design Guide](https://cloud.google.com/apis/design/errors).
2585 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2586 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
2587 # message types for APIs to use.
2588 {
2589 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2590 },
2591 ],
2592 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
2593 # user-facing error message should be localized and sent in the
2594 # google.rpc.Status.details field, or localized by the client.
2595 },
2596 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
2597 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
2598 },
2599 },
2600 },
2601 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
2602 # This value is inRFC3339
2603 # text format.
2604 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
2605 # following:
2606 # `PENDING`, `RUNNING`, or `DONE`.
2607 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
2608 # operation.
2609 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
2610 # of the target resource.
2611 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
2612 # operations related to creating a snapshot, this points to the disk
2613 # that the snapshot was created from.
2614 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
2615 # `[email protected]` or
2616 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
2617 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
2618 # operation, this field will be populated.
2619 {
2620 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
2621 # Engine returns NO_RESULTS_ON_PAGE if there
2622 # are no results in the response.
2623 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
2624 # value format. For example:
2625 #
2626 # &quot;data&quot;: [
2627 # {
2628 # &quot;key&quot;: &quot;scope&quot;,
2629 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
2630 # }
2631 {
2632 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
2633 # returned. For example, for warnings where there are no results in a list
2634 # request for a particular zone, this key might be scope and
2635 # the key value might be the zone name. Other examples might be a key
2636 # indicating a deprecated resource and a suggested replacement, or a
2637 # warning about invalid network settings (for example, if an instance
2638 # attempts to perform IP forwarding but is not enabled for IP forwarding).
2639 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
2640 },
2641 ],
2642 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
2643 },
2644 ],
2645 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
2646 # applicable when performing per-zone operations.
2647 }</pre>
2648 </div>
2649
2650 <div class="method">
2651 <code class="details" id="get">get(project, firewallPolicy, x__xgafv=None)</code>
2652 <pre>Returns the specified network firewall policy.
2653
2654 Args:
2655 project: string, Project ID for this request. (required)
2656 firewallPolicy: string, Name of the firewall policy to get. (required)
2657 x__xgafv: string, V1 error format.
2658 Allowed values
2659 1 - v1 error format
2660 2 - v2 error format
2661
2662 Returns:
2663 An object of the form:
2664
2665 { # Represents a Firewall Policy resource.
2666 &quot;associations&quot;: [ # A list of associations that belong to this firewall policy.
2667 {
2668 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
2669 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
2670 # of the firewall policy of the association.
2671 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
2672 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
2673 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
2674 },
2675 ],
2676 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
2677 # text format.
2678 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
2679 # create the resource.
2680 &quot;displayName&quot;: &quot;A String&quot;, # Deprecated, please use short name instead. User-provided name of the
2681 # Organization firewall policy. The name should be unique in the organization
2682 # in which the firewall policy is created.
2683 # This field is not applicable to network firewall policies.
2684 # This name must be set on creation and cannot be changed.
2685 # The name must be 1-63 characters long, and comply
2686 # with RFC1035. Specifically, the name must be 1-63 characters
2687 # long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which
2688 # means the first character must be a lowercase letter, and all following
2689 # characters must be a dash, lowercase letter, or digit, except the last
2690 # character, which cannot be a dash.
2691 &quot;fingerprint&quot;: &quot;A String&quot;, # Specifies a fingerprint for this resource, which is essentially a hash of
2692 # the metadata&#x27;s contents and used for optimistic locking. The
2693 # fingerprint is initially generated by Compute Engine and changes after
2694 # every request to modify or update metadata. You must always provide an
2695 # up-to-date fingerprint hash in order to update or change metadata,
2696 # otherwise the request will fail with error412 conditionNotMet.
2697 #
2698 # To see the latest fingerprint, make get() request to the
2699 # firewall policy.
2700 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
2701 # defined by the server.
2702 &quot;kind&quot;: &quot;compute#firewallPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
2703 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. For Organization Firewall Policies it&#x27;s a
2704 # [Output Only] numeric ID allocated by Google Cloud which uniquely
2705 # identifies the Organization Firewall Policy.
2706 &quot;packetMirroringRules&quot;: [ # A list of packet mirroring rules that belong to this policy.
2707 { # Represents a rule that describes one or more match conditions along with
2708 # the action to be taken when traffic matches this condition (allow or deny).
2709 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
2710 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
2711 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
2712 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
2713 # and &quot;goto_next&quot;.
2714 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
2715 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
2716 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
2717 # the firewall policy rule is not enforced and traffic behaves as if it did
2718 # not exist. If this is unspecified, the firewall policy rule will be
2719 # enabled.
2720 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
2721 # enabled, logs will be exported to the configured export destination in
2722 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
2723 # cannot enable logging on &quot;goto_next&quot; rules.
2724 &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.
2725 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
2726 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
2727 # Exactly one field must be specified.
2728 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
2729 # Maximum number of destination address groups is 10.
2730 &quot;A String&quot;,
2731 ],
2732 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
2733 # traffic destination.
2734 # Maximum number of destination fqdn allowed is 100.
2735 &quot;A String&quot;,
2736 ],
2737 &quot;destIpRanges&quot;: [ # CIDR IP address range.
2738 # Maximum number of destination CIDR IP ranges allowed is 5000.
2739 &quot;A String&quot;,
2740 ],
2741 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
2742 #
2743 #
2744 # - UNSPECIFIED
2745 # - INTERNET
2746 # - NON_INTERNET
2747 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
2748 #
2749 #
2750 # - UNSPECIFIED
2751 # - INTERNET
2752 # - NON_INTERNET
2753 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
2754 # of traffic. Should be specified as 2 letter country code defined as per
2755 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
2756 # Maximum number of dest region codes allowed is 5000.
2757 &quot;A String&quot;,
2758 ],
2759 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
2760 # The IPs in these lists will be matched against traffic destination.
2761 &quot;A String&quot;,
2762 ],
2763 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
2764 {
2765 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
2766 # required when creating a firewall rule. This value can either be
2767 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
2768 # protocol number.
2769 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
2770 # only applicable for UDP or TCP protocol. Each entry must be either
2771 # an integer or a range. If not specified, this rule applies to
2772 # connections through any port.
2773 #
2774 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
2775 &quot;A String&quot;,
2776 ],
2777 },
2778 ],
2779 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
2780 # Maximum number of source address groups is 10.
2781 &quot;A String&quot;,
2782 ],
2783 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
2784 # traffic source.
2785 # Maximum number of source fqdn allowed is 100.
2786 &quot;A String&quot;,
2787 ],
2788 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
2789 # Maximum number of source CIDR IP ranges allowed is 5000.
2790 &quot;A String&quot;,
2791 ],
2792 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
2793 #
2794 #
2795 # - UNSPECIFIED
2796 # - INTERNET
2797 # - INTRA_VPC
2798 # - NON_INTERNET
2799 # - VPC_NETWORKS
2800 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
2801 #
2802 #
2803 # - UNSPECIFIED
2804 # - INTERNET
2805 # - INTRA_VPC
2806 # - NON_INTERNET
2807 # - VPC_NETWORKS
2808 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
2809 &quot;A String&quot;,
2810 ],
2811 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
2812 # of traffic. Should be specified as 2 letter country code defined as per
2813 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
2814 # Maximum number of source region codes allowed is 5000.
2815 &quot;A String&quot;,
2816 ],
2817 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
2818 # of the traffic.
2819 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
2820 # and there is no srcIpRange, this rule will be ignored.
2821 # Maximum number of source tag values allowed is 256.
2822 {
2823 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2824 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2825 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2826 # or its network is deleted.
2827 },
2828 ],
2829 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
2830 # The IPs in these lists will be matched against traffic source.
2831 &quot;A String&quot;,
2832 ],
2833 },
2834 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
2835 # must be a positive value between 0 and 2147483647.
2836 # Rules are evaluated from highest to lowest priority where 0 is the
2837 # highest priority and 2147483647 is the lowest priority.
2838 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
2839 # and can be updated.
2840 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
2841 # rule.
2842 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
2843 # Example:
2844 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
2845 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
2846 # &#x27;mirror&#x27;. Cannot be specified for other actions.
2847 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
2848 # This field allows you to control which load balancers get this rule.
2849 # For example, the following are valid values:
2850 #
2851 #
2852 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
2853 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
2854 # - projects/project/global/
2855 # forwardingRules/forwardingRule
2856 # - projects/project/regions/region/forwardingRules/
2857 # forwardingRule
2858 &quot;A String&quot;,
2859 ],
2860 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
2861 # allows you to control which network&#x27;s VMs get this rule. If this field
2862 # is left blank, all VMs within the organization will receive the rule.
2863 &quot;A String&quot;,
2864 ],
2865 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
2866 # applies to. If targetSecureTag are specified, then the
2867 # firewall rule applies only to instances in the VPC network that have one
2868 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
2869 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
2870 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
2871 # to all instances on the specified network.
2872 # Maximum number of target label tags allowed is 256.
2873 {
2874 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2875 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2876 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2877 # or its network is deleted.
2878 },
2879 ],
2880 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
2881 # applied with this rule.
2882 &quot;A String&quot;,
2883 ],
2884 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
2885 # Default value is INSTANCES.
2886 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
2887 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
2888 # be set for other actions.
2889 },
2890 ],
2891 &quot;parent&quot;: &quot;A String&quot;, # Output only. [Output Only] The parent of the firewall policy.
2892 # This field is not applicable to network firewall policies.
2893 &quot;policyType&quot;: &quot;A String&quot;, # The type of the firewall policy. This field can be one of
2894 # VPC_POLICY, RDMA_ROCE_POLICY or ULL_POLICY.
2895 #
2896 # Note: if not specified then VPC_POLICY will be used.
2897 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional firewall policy resides.
2898 # This field is not applicable to global firewall policies.
2899 # You must specify this field as part of the HTTP request URL. It is
2900 # not settable as a field in the request body.
2901 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall
2902 # policy can not exceed a set number of tuples.
2903 &quot;rules&quot;: [ # A list of rules that belong to this policy.
2904 # There must always be a default rule (rule with priority 2147483647 and
2905 # match &quot;*&quot;). If no rules are provided when creating a firewall policy, a
2906 # default rule with action &quot;allow&quot; will be added.
2907 { # Represents a rule that describes one or more match conditions along with
2908 # the action to be taken when traffic matches this condition (allow or deny).
2909 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
2910 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
2911 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
2912 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
2913 # and &quot;goto_next&quot;.
2914 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
2915 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
2916 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
2917 # the firewall policy rule is not enforced and traffic behaves as if it did
2918 # not exist. If this is unspecified, the firewall policy rule will be
2919 # enabled.
2920 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
2921 # enabled, logs will be exported to the configured export destination in
2922 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
2923 # cannot enable logging on &quot;goto_next&quot; rules.
2924 &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.
2925 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
2926 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
2927 # Exactly one field must be specified.
2928 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
2929 # Maximum number of destination address groups is 10.
2930 &quot;A String&quot;,
2931 ],
2932 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
2933 # traffic destination.
2934 # Maximum number of destination fqdn allowed is 100.
2935 &quot;A String&quot;,
2936 ],
2937 &quot;destIpRanges&quot;: [ # CIDR IP address range.
2938 # Maximum number of destination CIDR IP ranges allowed is 5000.
2939 &quot;A String&quot;,
2940 ],
2941 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
2942 #
2943 #
2944 # - UNSPECIFIED
2945 # - INTERNET
2946 # - NON_INTERNET
2947 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
2948 #
2949 #
2950 # - UNSPECIFIED
2951 # - INTERNET
2952 # - NON_INTERNET
2953 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
2954 # of traffic. Should be specified as 2 letter country code defined as per
2955 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
2956 # Maximum number of dest region codes allowed is 5000.
2957 &quot;A String&quot;,
2958 ],
2959 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
2960 # The IPs in these lists will be matched against traffic destination.
2961 &quot;A String&quot;,
2962 ],
2963 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
2964 {
2965 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
2966 # required when creating a firewall rule. This value can either be
2967 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
2968 # protocol number.
2969 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
2970 # only applicable for UDP or TCP protocol. Each entry must be either
2971 # an integer or a range. If not specified, this rule applies to
2972 # connections through any port.
2973 #
2974 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
2975 &quot;A String&quot;,
2976 ],
2977 },
2978 ],
2979 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
2980 # Maximum number of source address groups is 10.
2981 &quot;A String&quot;,
2982 ],
2983 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
2984 # traffic source.
2985 # Maximum number of source fqdn allowed is 100.
2986 &quot;A String&quot;,
2987 ],
2988 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
2989 # Maximum number of source CIDR IP ranges allowed is 5000.
2990 &quot;A String&quot;,
2991 ],
2992 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
2993 #
2994 #
2995 # - UNSPECIFIED
2996 # - INTERNET
2997 # - INTRA_VPC
2998 # - NON_INTERNET
2999 # - VPC_NETWORKS
3000 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
3001 #
3002 #
3003 # - UNSPECIFIED
3004 # - INTERNET
3005 # - INTRA_VPC
3006 # - NON_INTERNET
3007 # - VPC_NETWORKS
3008 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
3009 &quot;A String&quot;,
3010 ],
3011 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
3012 # of traffic. Should be specified as 2 letter country code defined as per
3013 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3014 # Maximum number of source region codes allowed is 5000.
3015 &quot;A String&quot;,
3016 ],
3017 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
3018 # of the traffic.
3019 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
3020 # and there is no srcIpRange, this rule will be ignored.
3021 # Maximum number of source tag values allowed is 256.
3022 {
3023 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3024 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3025 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3026 # or its network is deleted.
3027 },
3028 ],
3029 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3030 # The IPs in these lists will be matched against traffic source.
3031 &quot;A String&quot;,
3032 ],
3033 },
3034 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
3035 # must be a positive value between 0 and 2147483647.
3036 # Rules are evaluated from highest to lowest priority where 0 is the
3037 # highest priority and 2147483647 is the lowest priority.
3038 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
3039 # and can be updated.
3040 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
3041 # rule.
3042 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
3043 # Example:
3044 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
3045 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
3046 # &#x27;mirror&#x27;. Cannot be specified for other actions.
3047 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
3048 # This field allows you to control which load balancers get this rule.
3049 # For example, the following are valid values:
3050 #
3051 #
3052 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
3053 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
3054 # - projects/project/global/
3055 # forwardingRules/forwardingRule
3056 # - projects/project/regions/region/forwardingRules/
3057 # forwardingRule
3058 &quot;A String&quot;,
3059 ],
3060 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
3061 # allows you to control which network&#x27;s VMs get this rule. If this field
3062 # is left blank, all VMs within the organization will receive the rule.
3063 &quot;A String&quot;,
3064 ],
3065 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
3066 # applies to. If targetSecureTag are specified, then the
3067 # firewall rule applies only to instances in the VPC network that have one
3068 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
3069 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
3070 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
3071 # to all instances on the specified network.
3072 # Maximum number of target label tags allowed is 256.
3073 {
3074 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3075 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3076 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3077 # or its network is deleted.
3078 },
3079 ],
3080 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
3081 # applied with this rule.
3082 &quot;A String&quot;,
3083 ],
3084 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
3085 # Default value is INSTANCES.
3086 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
3087 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
3088 # be set for other actions.
3089 },
3090 ],
3091 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
3092 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
3093 &quot;shortName&quot;: &quot;A String&quot;, # User-provided name of the Organization firewall policy. The name should be
3094 # unique in the organization in which the firewall policy is created.
3095 # This field is not applicable to network firewall policies.
3096 # This name must be set on creation and cannot be changed. The name must be
3097 # 1-63 characters long, and comply with RFC1035.
3098 # Specifically, the name must be 1-63 characters long and match the regular
3099 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
3100 # character must be a lowercase letter, and all following characters must
3101 # be a dash, lowercase letter, or digit, except the last character, which
3102 # cannot be a dash.
3103 }</pre>
3104 </div>
3105
3106 <div class="method">
3107 <code class="details" id="getAssociation">getAssociation(project, firewallPolicy, name=None, x__xgafv=None)</code>
3108 <pre>Gets an association with the specified name.
3109
3110 Args:
3111 project: string, Project ID for this request. (required)
3112 firewallPolicy: string, Name of the firewall policy to which the queried association belongs. (required)
3113 name: string, The name of the association to get from the firewall policy.
3114 x__xgafv: string, V1 error format.
3115 Allowed values
3116 1 - v1 error format
3117 2 - v2 error format
3118
3119 Returns:
3120 An object of the form:
3121
3122 {
3123 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
3124 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
3125 # of the firewall policy of the association.
3126 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
3127 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
3128 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
3129 }</pre>
3130 </div>
3131
3132 <div class="method">
3133 <code class="details" id="getIamPolicy">getIamPolicy(project, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</code>
3134 <pre>Gets the access control policy for a resource. May be empty if no such
3135 policy or resource exists.
3136
3137 Args:
3138 project: string, Project ID for this request. (required)
3139 resource: string, Name or id of the resource for this request. (required)
3140 optionsRequestedPolicyVersion: integer, Requested IAM Policy version.
3141 x__xgafv: string, V1 error format.
3142 Allowed values
3143 1 - v1 error format
3144 2 - v2 error format
3145
3146 Returns:
3147 An object of the form:
3148
3149 { # An Identity and Access Management (IAM) policy, which specifies access
3150 # controls for Google Cloud resources.
3151 #
3152 #
3153 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
3154 # `members`, or principals, to a single `role`. Principals can be user
3155 # accounts, service accounts, Google groups, and domains (such as G Suite). A
3156 # `role` is a named list of permissions; each `role` can be an IAM predefined
3157 # role or a user-created custom role.
3158 #
3159 # For some types of Google Cloud resources, a `binding` can also specify a
3160 # `condition`, which is a logical expression that allows access to a resource
3161 # only if the expression evaluates to `true`. A condition can add constraints
3162 # based on attributes of the request, the resource, or both. To learn which
3163 # resources support conditions in their IAM policies, see the
3164 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3165 #
3166 # **JSON example:**
3167 #
3168 # ```
3169 # {
3170 # &quot;bindings&quot;: [
3171 # {
3172 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
3173 # &quot;members&quot;: [
3174 # &quot;user:[email protected]&quot;,
3175 # &quot;group:[email protected]&quot;,
3176 # &quot;domain:google.com&quot;,
3177 # &quot;serviceAccount:[email protected]&quot;
3178 # ]
3179 # },
3180 # {
3181 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
3182 # &quot;members&quot;: [
3183 # &quot;user:[email protected]&quot;
3184 # ],
3185 # &quot;condition&quot;: {
3186 # &quot;title&quot;: &quot;expirable access&quot;,
3187 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
3188 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
3189 # }
3190 # }
3191 # ],
3192 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
3193 # &quot;version&quot;: 3
3194 # }
3195 # ```
3196 #
3197 # **YAML example:**
3198 #
3199 # ```
3200 # bindings:
3201 # - members:
3202 # - user:[email protected]
3203 # - group:[email protected]
3204 # - domain:google.com
3205 # - serviceAccount:[email protected]
3206 # role: roles/resourcemanager.organizationAdmin
3207 # - members:
3208 # - user:[email protected]
3209 # role: roles/resourcemanager.organizationViewer
3210 # condition:
3211 # title: expirable access
3212 # description: Does not grant access after Sep 2020
3213 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
3214 # etag: BwWWja0YfJA=
3215 # version: 3
3216 # ```
3217 #
3218 # For a description of IAM and its features, see the
3219 # [IAM documentation](https://cloud.google.com/iam/docs/).
3220 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
3221 { # Specifies the audit configuration for a service.
3222 # The configuration determines which permission types are logged, and what
3223 # identities, if any, are exempted from logging.
3224 # An AuditConfig must have one or more AuditLogConfigs.
3225 #
3226 # If there are AuditConfigs for both `allServices` and a specific service,
3227 # the union of the two AuditConfigs is used for that service: the log_types
3228 # specified in each AuditConfig are enabled, and the exempted_members in each
3229 # AuditLogConfig are exempted.
3230 #
3231 # Example Policy with multiple AuditConfigs:
3232 #
3233 # {
3234 # &quot;audit_configs&quot;: [
3235 # {
3236 # &quot;service&quot;: &quot;allServices&quot;,
3237 # &quot;audit_log_configs&quot;: [
3238 # {
3239 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
3240 # &quot;exempted_members&quot;: [
3241 # &quot;user:[email protected]&quot;
3242 # ]
3243 # },
3244 # {
3245 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
3246 # },
3247 # {
3248 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
3249 # }
3250 # ]
3251 # },
3252 # {
3253 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
3254 # &quot;audit_log_configs&quot;: [
3255 # {
3256 # &quot;log_type&quot;: &quot;DATA_READ&quot;
3257 # },
3258 # {
3259 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
3260 # &quot;exempted_members&quot;: [
3261 # &quot;user:[email protected]&quot;
3262 # ]
3263 # }
3264 # ]
3265 # }
3266 # ]
3267 # }
3268 #
3269 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
3270 # logging. It also exempts `[email protected]` from DATA_READ logging, and
3271 # `[email protected]` from DATA_WRITE logging.
3272 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
3273 { # Provides the configuration for logging a type of permissions.
3274 # Example:
3275 #
3276 # {
3277 # &quot;audit_log_configs&quot;: [
3278 # {
3279 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
3280 # &quot;exempted_members&quot;: [
3281 # &quot;user:[email protected]&quot;
3282 # ]
3283 # },
3284 # {
3285 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
3286 # }
3287 # ]
3288 # }
3289 #
3290 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
3291 # [email protected] from DATA_READ logging.
3292 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
3293 # permission.
3294 # Follows the same format of Binding.members.
3295 &quot;A String&quot;,
3296 ],
3297 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
3298 },
3299 ],
3300 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
3301 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
3302 # `allServices` is a special value that covers all services.
3303 },
3304 ],
3305 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
3306 # may specify a `condition` that determines how and when the `bindings` are
3307 # applied. Each of the `bindings` must contain at least one principal.
3308 #
3309 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
3310 # of these principals can be Google groups. Each occurrence of a principal
3311 # counts towards these limits. For example, if the `bindings` grant 50
3312 # different roles to `user:[email protected]`, and not to any other
3313 # principal, then you can add another 1,450 principals to the `bindings` in
3314 # the `Policy`.
3315 { # Associates `members`, or principals, with a `role`.
3316 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
3317 #
3318 # If the condition evaluates to `true`, then this binding applies to the
3319 # current request.
3320 #
3321 # If the condition evaluates to `false`, then this binding does not apply to
3322 # the current request. However, a different role binding might grant the same
3323 # role to one or more of the principals in this binding.
3324 #
3325 # To learn which resources support conditions in their IAM policies, see the
3326 # [IAM
3327 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3328 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
3329 # are documented at https://github.com/google/cel-spec.
3330 #
3331 # Example (Comparison):
3332 #
3333 # title: &quot;Summary size limit&quot;
3334 # description: &quot;Determines if a summary is less than 100 chars&quot;
3335 # expression: &quot;document.summary.size() &lt; 100&quot;
3336 #
3337 # Example (Equality):
3338 #
3339 # title: &quot;Requestor is owner&quot;
3340 # description: &quot;Determines if requestor is the document owner&quot;
3341 # expression: &quot;document.owner == request.auth.claims.email&quot;
3342 #
3343 # Example (Logic):
3344 #
3345 # title: &quot;Public documents&quot;
3346 # description: &quot;Determine whether the document should be publicly visible&quot;
3347 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
3348 #
3349 # Example (Data Manipulation):
3350 #
3351 # title: &quot;Notification string&quot;
3352 # description: &quot;Create a notification string with a timestamp.&quot;
3353 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
3354 #
3355 # The exact variables and functions that may be referenced within an expression
3356 # are determined by the service that evaluates it. See the service
3357 # documentation for additional information.
3358 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
3359 # describes the expression, e.g. when hovered over it in a UI.
3360 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
3361 # syntax.
3362 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
3363 # reporting, e.g. a file name and a position in the file.
3364 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
3365 # its purpose. This can be used e.g. in UIs which allow to enter the
3366 # expression.
3367 },
3368 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
3369 # `members` can have the following values:
3370 #
3371 # * `allUsers`: A special identifier that represents anyone who is
3372 # on the internet; with or without a Google account.
3373 #
3374 # * `allAuthenticatedUsers`: A special identifier that represents anyone
3375 # who is authenticated with a Google account or a service account.
3376 # Does not include identities that come from external identity providers
3377 # (IdPs) through identity federation.
3378 #
3379 # * `user:{emailid}`: An email address that represents a specific Google
3380 # account. For example, `[email protected]` .
3381 #
3382 #
3383 # * `serviceAccount:{emailid}`: An email address that represents a Google
3384 # service account. For example,
3385 # `[email protected]`.
3386 #
3387 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
3388 # identifier for a
3389 # [Kubernetes service
3390 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
3391 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
3392 #
3393 # * `group:{emailid}`: An email address that represents a Google group.
3394 # For example, `[email protected]`.
3395 #
3396 #
3397 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
3398 # users of that domain. For example, `google.com` or `example.com`.
3399 #
3400 #
3401 #
3402 #
3403 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
3404 # A single identity in a workforce identity pool.
3405 #
3406 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
3407 # All workforce identities in a group.
3408 #
3409 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
3410 # All workforce identities with a specific attribute value.
3411 #
3412 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
3413 # All identities in a workforce identity pool.
3414 #
3415 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
3416 # A single identity in a workload identity pool.
3417 #
3418 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
3419 # A workload identity pool group.
3420 #
3421 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
3422 # All identities in a workload identity pool with a certain attribute.
3423 #
3424 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
3425 # All identities in a workload identity pool.
3426 #
3427 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
3428 # identifier) representing a user that has been recently deleted. For
3429 # example, `[email protected]?uid=123456789012345678901`. If the user is
3430 # recovered, this value reverts to `user:{emailid}` and the recovered user
3431 # retains the role in the binding.
3432 #
3433 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
3434 # unique identifier) representing a service account that has been recently
3435 # deleted. For example,
3436 # `[email protected]?uid=123456789012345678901`.
3437 # If the service account is undeleted, this value reverts to
3438 # `serviceAccount:{emailid}` and the undeleted service account retains the
3439 # role in the binding.
3440 #
3441 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
3442 # identifier) representing a Google group that has been recently
3443 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
3444 # the group is recovered, this value reverts to `group:{emailid}` and the
3445 # recovered group retains the role in the binding.
3446 #
3447 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
3448 # Deleted single identity in a workforce identity pool. For example,
3449 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
3450 &quot;A String&quot;,
3451 ],
3452 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
3453 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
3454 #
3455 # For an overview of the IAM roles and permissions, see the
3456 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
3457 # a list of the available pre-defined roles, see
3458 # [here](https://cloud.google.com/iam/docs/understanding-roles).
3459 },
3460 ],
3461 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
3462 # prevent simultaneous updates of a policy from overwriting each other.
3463 # It is strongly suggested that systems make use of the `etag` in the
3464 # read-modify-write cycle to perform policy updates in order to avoid race
3465 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
3466 # systems are expected to put that etag in the request to `setIamPolicy` to
3467 # ensure that their change will be applied to the same version of the policy.
3468 #
3469 # **Important:** If you use IAM Conditions, you must include the `etag` field
3470 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
3471 # you to overwrite a version `3` policy with a version `1` policy, and all of
3472 # the conditions in the version `3` policy are lost.
3473 &quot;version&quot;: 42, # Specifies the format of the policy.
3474 #
3475 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
3476 # are rejected.
3477 #
3478 # Any operation that affects conditional role bindings must specify version
3479 # `3`. This requirement applies to the following operations:
3480 #
3481 # * Getting a policy that includes a conditional role binding
3482 # * Adding a conditional role binding to a policy
3483 # * Changing a conditional role binding in a policy
3484 # * Removing any role binding, with or without a condition, from a policy
3485 # that includes conditions
3486 #
3487 # **Important:** If you use IAM Conditions, you must include the `etag` field
3488 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
3489 # you to overwrite a version `3` policy with a version `1` policy, and all of
3490 # the conditions in the version `3` policy are lost.
3491 #
3492 # If a policy does not include any conditions, operations on that policy may
3493 # specify any valid version or leave the field unset.
3494 #
3495 # To learn which resources support conditions in their IAM policies, see the
3496 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3497 }</pre>
3498 </div>
3499
3500 <div class="method">
3501 <code class="details" id="getPacketMirroringRule">getPacketMirroringRule(project, firewallPolicy, priority=None, x__xgafv=None)</code>
3502 <pre>Gets a packet mirroring rule of the specified priority.
3503
3504 Args:
3505 project: string, Project ID for this request. (required)
3506 firewallPolicy: string, Name of the firewall policy to which the queried rule belongs. (required)
3507 priority: integer, The priority of the rule to get from the firewall policy.
3508 x__xgafv: string, V1 error format.
3509 Allowed values
3510 1 - v1 error format
3511 2 - v2 error format
3512
3513 Returns:
3514 An object of the form:
3515
3516 { # Represents a rule that describes one or more match conditions along with
3517 # the action to be taken when traffic matches this condition (allow or deny).
3518 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
3519 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
3520 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
3521 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
3522 # and &quot;goto_next&quot;.
3523 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
3524 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
3525 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
3526 # the firewall policy rule is not enforced and traffic behaves as if it did
3527 # not exist. If this is unspecified, the firewall policy rule will be
3528 # enabled.
3529 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
3530 # enabled, logs will be exported to the configured export destination in
3531 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
3532 # cannot enable logging on &quot;goto_next&quot; rules.
3533 &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.
3534 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
3535 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
3536 # Exactly one field must be specified.
3537 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
3538 # Maximum number of destination address groups is 10.
3539 &quot;A String&quot;,
3540 ],
3541 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3542 # traffic destination.
3543 # Maximum number of destination fqdn allowed is 100.
3544 &quot;A String&quot;,
3545 ],
3546 &quot;destIpRanges&quot;: [ # CIDR IP address range.
3547 # Maximum number of destination CIDR IP ranges allowed is 5000.
3548 &quot;A String&quot;,
3549 ],
3550 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
3551 #
3552 #
3553 # - UNSPECIFIED
3554 # - INTERNET
3555 # - NON_INTERNET
3556 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
3557 #
3558 #
3559 # - UNSPECIFIED
3560 # - INTERNET
3561 # - NON_INTERNET
3562 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
3563 # of traffic. Should be specified as 2 letter country code defined as per
3564 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3565 # Maximum number of dest region codes allowed is 5000.
3566 &quot;A String&quot;,
3567 ],
3568 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3569 # The IPs in these lists will be matched against traffic destination.
3570 &quot;A String&quot;,
3571 ],
3572 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
3573 {
3574 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
3575 # required when creating a firewall rule. This value can either be
3576 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
3577 # protocol number.
3578 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
3579 # only applicable for UDP or TCP protocol. Each entry must be either
3580 # an integer or a range. If not specified, this rule applies to
3581 # connections through any port.
3582 #
3583 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
3584 &quot;A String&quot;,
3585 ],
3586 },
3587 ],
3588 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
3589 # Maximum number of source address groups is 10.
3590 &quot;A String&quot;,
3591 ],
3592 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3593 # traffic source.
3594 # Maximum number of source fqdn allowed is 100.
3595 &quot;A String&quot;,
3596 ],
3597 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
3598 # Maximum number of source CIDR IP ranges allowed is 5000.
3599 &quot;A String&quot;,
3600 ],
3601 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
3602 #
3603 #
3604 # - UNSPECIFIED
3605 # - INTERNET
3606 # - INTRA_VPC
3607 # - NON_INTERNET
3608 # - VPC_NETWORKS
3609 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
3610 #
3611 #
3612 # - UNSPECIFIED
3613 # - INTERNET
3614 # - INTRA_VPC
3615 # - NON_INTERNET
3616 # - VPC_NETWORKS
3617 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
3618 &quot;A String&quot;,
3619 ],
3620 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
3621 # of traffic. Should be specified as 2 letter country code defined as per
3622 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3623 # Maximum number of source region codes allowed is 5000.
3624 &quot;A String&quot;,
3625 ],
3626 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
3627 # of the traffic.
3628 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
3629 # and there is no srcIpRange, this rule will be ignored.
3630 # Maximum number of source tag values 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;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3639 # The IPs in these lists will be matched against traffic source.
3640 &quot;A String&quot;,
3641 ],
3642 },
3643 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
3644 # must be a positive value between 0 and 2147483647.
3645 # Rules are evaluated from highest to lowest priority where 0 is the
3646 # highest priority and 2147483647 is the lowest priority.
3647 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
3648 # and can be updated.
3649 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
3650 # rule.
3651 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
3652 # Example:
3653 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
3654 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
3655 # &#x27;mirror&#x27;. Cannot be specified for other actions.
3656 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
3657 # This field allows you to control which load balancers get this rule.
3658 # For example, the following are valid values:
3659 #
3660 #
3661 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
3662 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
3663 # - projects/project/global/
3664 # forwardingRules/forwardingRule
3665 # - projects/project/regions/region/forwardingRules/
3666 # forwardingRule
3667 &quot;A String&quot;,
3668 ],
3669 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
3670 # allows you to control which network&#x27;s VMs get this rule. If this field
3671 # is left blank, all VMs within the organization will receive the rule.
3672 &quot;A String&quot;,
3673 ],
3674 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
3675 # applies to. If targetSecureTag are specified, then the
3676 # firewall rule applies only to instances in the VPC network that have one
3677 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
3678 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
3679 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
3680 # to all instances on the specified network.
3681 # Maximum number of target label tags allowed is 256.
3682 {
3683 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3684 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3685 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3686 # or its network is deleted.
3687 },
3688 ],
3689 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
3690 # applied with this rule.
3691 &quot;A String&quot;,
3692 ],
3693 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
3694 # Default value is INSTANCES.
3695 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
3696 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
3697 # be set for other actions.
3698 }</pre>
3699 </div>
3700
3701 <div class="method">
3702 <code class="details" id="getRule">getRule(project, firewallPolicy, priority=None, x__xgafv=None)</code>
3703 <pre>Gets a rule of the specified priority.
3704
3705 Args:
3706 project: string, Project ID for this request. (required)
3707 firewallPolicy: string, Name of the firewall policy to which the queried rule belongs. (required)
3708 priority: integer, The priority of the rule to get from the firewall policy.
3709 x__xgafv: string, V1 error format.
3710 Allowed values
3711 1 - v1 error format
3712 2 - v2 error format
3713
3714 Returns:
3715 An object of the form:
3716
3717 { # Represents a rule that describes one or more match conditions along with
3718 # the action to be taken when traffic matches this condition (allow or deny).
3719 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
3720 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
3721 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
3722 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
3723 # and &quot;goto_next&quot;.
3724 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
3725 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
3726 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
3727 # the firewall policy rule is not enforced and traffic behaves as if it did
3728 # not exist. If this is unspecified, the firewall policy rule will be
3729 # enabled.
3730 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
3731 # enabled, logs will be exported to the configured export destination in
3732 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
3733 # cannot enable logging on &quot;goto_next&quot; rules.
3734 &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.
3735 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
3736 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
3737 # Exactly one field must be specified.
3738 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
3739 # Maximum number of destination address groups is 10.
3740 &quot;A String&quot;,
3741 ],
3742 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3743 # traffic destination.
3744 # Maximum number of destination fqdn allowed is 100.
3745 &quot;A String&quot;,
3746 ],
3747 &quot;destIpRanges&quot;: [ # CIDR IP address range.
3748 # Maximum number of destination CIDR IP ranges allowed is 5000.
3749 &quot;A String&quot;,
3750 ],
3751 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
3752 #
3753 #
3754 # - UNSPECIFIED
3755 # - INTERNET
3756 # - NON_INTERNET
3757 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
3758 #
3759 #
3760 # - UNSPECIFIED
3761 # - INTERNET
3762 # - NON_INTERNET
3763 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
3764 # of traffic. Should be specified as 2 letter country code defined as per
3765 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3766 # Maximum number of dest region codes allowed is 5000.
3767 &quot;A String&quot;,
3768 ],
3769 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3770 # The IPs in these lists will be matched against traffic destination.
3771 &quot;A String&quot;,
3772 ],
3773 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
3774 {
3775 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
3776 # required when creating a firewall rule. This value can either be
3777 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
3778 # protocol number.
3779 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
3780 # only applicable for UDP or TCP protocol. Each entry must be either
3781 # an integer or a range. If not specified, this rule applies to
3782 # connections through any port.
3783 #
3784 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
3785 &quot;A String&quot;,
3786 ],
3787 },
3788 ],
3789 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
3790 # Maximum number of source address groups is 10.
3791 &quot;A String&quot;,
3792 ],
3793 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3794 # traffic source.
3795 # Maximum number of source fqdn allowed is 100.
3796 &quot;A String&quot;,
3797 ],
3798 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
3799 # Maximum number of source CIDR IP ranges allowed is 5000.
3800 &quot;A String&quot;,
3801 ],
3802 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
3803 #
3804 #
3805 # - UNSPECIFIED
3806 # - INTERNET
3807 # - INTRA_VPC
3808 # - NON_INTERNET
3809 # - VPC_NETWORKS
3810 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
3811 #
3812 #
3813 # - UNSPECIFIED
3814 # - INTERNET
3815 # - INTRA_VPC
3816 # - NON_INTERNET
3817 # - VPC_NETWORKS
3818 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
3819 &quot;A String&quot;,
3820 ],
3821 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
3822 # of traffic. Should be specified as 2 letter country code defined as per
3823 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3824 # Maximum number of source region codes allowed is 5000.
3825 &quot;A String&quot;,
3826 ],
3827 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
3828 # of the traffic.
3829 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
3830 # and there is no srcIpRange, this rule will be ignored.
3831 # Maximum number of source tag values allowed is 256.
3832 {
3833 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3834 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3835 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3836 # or its network is deleted.
3837 },
3838 ],
3839 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3840 # The IPs in these lists will be matched against traffic source.
3841 &quot;A String&quot;,
3842 ],
3843 },
3844 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
3845 # must be a positive value between 0 and 2147483647.
3846 # Rules are evaluated from highest to lowest priority where 0 is the
3847 # highest priority and 2147483647 is the lowest priority.
3848 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
3849 # and can be updated.
3850 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
3851 # rule.
3852 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
3853 # Example:
3854 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
3855 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
3856 # &#x27;mirror&#x27;. Cannot be specified for other actions.
3857 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
3858 # This field allows you to control which load balancers get this rule.
3859 # For example, the following are valid values:
3860 #
3861 #
3862 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
3863 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
3864 # - projects/project/global/
3865 # forwardingRules/forwardingRule
3866 # - projects/project/regions/region/forwardingRules/
3867 # forwardingRule
3868 &quot;A String&quot;,
3869 ],
3870 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
3871 # allows you to control which network&#x27;s VMs get this rule. If this field
3872 # is left blank, all VMs within the organization will receive the rule.
3873 &quot;A String&quot;,
3874 ],
3875 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
3876 # applies to. If targetSecureTag are specified, then the
3877 # firewall rule applies only to instances in the VPC network that have one
3878 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
3879 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
3880 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
3881 # to all instances on the specified network.
3882 # Maximum number of target label tags allowed is 256.
3883 {
3884 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3885 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3886 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3887 # or its network is deleted.
3888 },
3889 ],
3890 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
3891 # applied with this rule.
3892 &quot;A String&quot;,
3893 ],
3894 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
3895 # Default value is INSTANCES.
3896 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
3897 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
3898 # be set for other actions.
3899 }</pre>
3900 </div>
3901
3902 <div class="method">
3903 <code class="details" id="insert">insert(project, body=None, requestId=None, x__xgafv=None)</code>
3904 <pre>Creates a new policy in the specified project using the data included in
3905 the request.
3906
3907 Args:
3908 project: string, Project ID for this request. (required)
3909 body: object, The request body.
3910 The object takes the form of:
3911
3912 { # Represents a Firewall Policy resource.
3913 &quot;associations&quot;: [ # A list of associations that belong to this firewall policy.
3914 {
3915 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
3916 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
3917 # of the firewall policy of the association.
3918 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
3919 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
3920 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
3921 },
3922 ],
3923 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
3924 # text format.
3925 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
3926 # create the resource.
3927 &quot;displayName&quot;: &quot;A String&quot;, # Deprecated, please use short name instead. User-provided name of the
3928 # Organization firewall policy. The name should be unique in the organization
3929 # in which the firewall policy is created.
3930 # This field is not applicable to network firewall policies.
3931 # This name must be set on creation and cannot be changed.
3932 # The name must be 1-63 characters long, and comply
3933 # with RFC1035. Specifically, the name must be 1-63 characters
3934 # long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which
3935 # means the first character must be a lowercase letter, and all following
3936 # characters must be a dash, lowercase letter, or digit, except the last
3937 # character, which cannot be a dash.
3938 &quot;fingerprint&quot;: &quot;A String&quot;, # Specifies a fingerprint for this resource, which is essentially a hash of
3939 # the metadata&#x27;s contents and used for optimistic locking. The
3940 # fingerprint is initially generated by Compute Engine and changes after
3941 # every request to modify or update metadata. You must always provide an
3942 # up-to-date fingerprint hash in order to update or change metadata,
3943 # otherwise the request will fail with error412 conditionNotMet.
3944 #
3945 # To see the latest fingerprint, make get() request to the
3946 # firewall policy.
3947 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
3948 # defined by the server.
3949 &quot;kind&quot;: &quot;compute#firewallPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
3950 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. For Organization Firewall Policies it&#x27;s a
3951 # [Output Only] numeric ID allocated by Google Cloud which uniquely
3952 # identifies the Organization Firewall Policy.
3953 &quot;packetMirroringRules&quot;: [ # A list of packet mirroring rules that belong to this policy.
3954 { # Represents a rule that describes one or more match conditions along with
3955 # the action to be taken when traffic matches this condition (allow or deny).
3956 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
3957 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
3958 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
3959 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
3960 # and &quot;goto_next&quot;.
3961 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
3962 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
3963 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
3964 # the firewall policy rule is not enforced and traffic behaves as if it did
3965 # not exist. If this is unspecified, the firewall policy rule will be
3966 # enabled.
3967 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
3968 # enabled, logs will be exported to the configured export destination in
3969 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
3970 # cannot enable logging on &quot;goto_next&quot; rules.
3971 &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.
3972 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
3973 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
3974 # Exactly one field must be specified.
3975 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
3976 # Maximum number of destination address groups is 10.
3977 &quot;A String&quot;,
3978 ],
3979 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3980 # traffic destination.
3981 # Maximum number of destination fqdn allowed is 100.
3982 &quot;A String&quot;,
3983 ],
3984 &quot;destIpRanges&quot;: [ # CIDR IP address range.
3985 # Maximum number of destination CIDR IP ranges allowed is 5000.
3986 &quot;A String&quot;,
3987 ],
3988 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
3989 #
3990 #
3991 # - UNSPECIFIED
3992 # - INTERNET
3993 # - NON_INTERNET
3994 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
3995 #
3996 #
3997 # - UNSPECIFIED
3998 # - INTERNET
3999 # - NON_INTERNET
4000 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
4001 # of traffic. Should be specified as 2 letter country code defined as per
4002 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4003 # Maximum number of dest region codes allowed is 5000.
4004 &quot;A String&quot;,
4005 ],
4006 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4007 # The IPs in these lists will be matched against traffic destination.
4008 &quot;A String&quot;,
4009 ],
4010 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
4011 {
4012 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
4013 # required when creating a firewall rule. This value can either be
4014 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
4015 # protocol number.
4016 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
4017 # only applicable for UDP or TCP protocol. Each entry must be either
4018 # an integer or a range. If not specified, this rule applies to
4019 # connections through any port.
4020 #
4021 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
4022 &quot;A String&quot;,
4023 ],
4024 },
4025 ],
4026 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
4027 # Maximum number of source address groups is 10.
4028 &quot;A String&quot;,
4029 ],
4030 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4031 # traffic source.
4032 # Maximum number of source fqdn allowed is 100.
4033 &quot;A String&quot;,
4034 ],
4035 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
4036 # Maximum number of source CIDR IP ranges allowed is 5000.
4037 &quot;A String&quot;,
4038 ],
4039 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
4040 #
4041 #
4042 # - UNSPECIFIED
4043 # - INTERNET
4044 # - INTRA_VPC
4045 # - NON_INTERNET
4046 # - VPC_NETWORKS
4047 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
4048 #
4049 #
4050 # - UNSPECIFIED
4051 # - INTERNET
4052 # - INTRA_VPC
4053 # - NON_INTERNET
4054 # - VPC_NETWORKS
4055 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
4056 &quot;A String&quot;,
4057 ],
4058 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
4059 # of traffic. Should be specified as 2 letter country code defined as per
4060 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4061 # Maximum number of source region codes allowed is 5000.
4062 &quot;A String&quot;,
4063 ],
4064 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
4065 # of the traffic.
4066 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
4067 # and there is no srcIpRange, this rule will be ignored.
4068 # Maximum number of source tag values allowed is 256.
4069 {
4070 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4071 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4072 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4073 # or its network is deleted.
4074 },
4075 ],
4076 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4077 # The IPs in these lists will be matched against traffic source.
4078 &quot;A String&quot;,
4079 ],
4080 },
4081 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
4082 # must be a positive value between 0 and 2147483647.
4083 # Rules are evaluated from highest to lowest priority where 0 is the
4084 # highest priority and 2147483647 is the lowest priority.
4085 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
4086 # and can be updated.
4087 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
4088 # rule.
4089 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
4090 # Example:
4091 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
4092 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
4093 # &#x27;mirror&#x27;. Cannot be specified for other actions.
4094 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
4095 # This field allows you to control which load balancers get this rule.
4096 # For example, the following are valid values:
4097 #
4098 #
4099 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
4100 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
4101 # - projects/project/global/
4102 # forwardingRules/forwardingRule
4103 # - projects/project/regions/region/forwardingRules/
4104 # forwardingRule
4105 &quot;A String&quot;,
4106 ],
4107 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
4108 # allows you to control which network&#x27;s VMs get this rule. If this field
4109 # is left blank, all VMs within the organization will receive the rule.
4110 &quot;A String&quot;,
4111 ],
4112 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
4113 # applies to. If targetSecureTag are specified, then the
4114 # firewall rule applies only to instances in the VPC network that have one
4115 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
4116 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
4117 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
4118 # to all instances on the specified network.
4119 # Maximum number of target label tags allowed is 256.
4120 {
4121 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4122 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4123 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4124 # or its network is deleted.
4125 },
4126 ],
4127 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
4128 # applied with this rule.
4129 &quot;A String&quot;,
4130 ],
4131 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
4132 # Default value is INSTANCES.
4133 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
4134 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
4135 # be set for other actions.
4136 },
4137 ],
4138 &quot;parent&quot;: &quot;A String&quot;, # Output only. [Output Only] The parent of the firewall policy.
4139 # This field is not applicable to network firewall policies.
4140 &quot;policyType&quot;: &quot;A String&quot;, # The type of the firewall policy. This field can be one of
4141 # VPC_POLICY, RDMA_ROCE_POLICY or ULL_POLICY.
4142 #
4143 # Note: if not specified then VPC_POLICY will be used.
4144 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional firewall policy resides.
4145 # This field is not applicable to global firewall policies.
4146 # You must specify this field as part of the HTTP request URL. It is
4147 # not settable as a field in the request body.
4148 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall
4149 # policy can not exceed a set number of tuples.
4150 &quot;rules&quot;: [ # A list of rules that belong to this policy.
4151 # There must always be a default rule (rule with priority 2147483647 and
4152 # match &quot;*&quot;). If no rules are provided when creating a firewall policy, a
4153 # default rule with action &quot;allow&quot; will be added.
4154 { # Represents a rule that describes one or more match conditions along with
4155 # the action to be taken when traffic matches this condition (allow or deny).
4156 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
4157 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
4158 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
4159 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
4160 # and &quot;goto_next&quot;.
4161 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
4162 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
4163 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
4164 # the firewall policy rule is not enforced and traffic behaves as if it did
4165 # not exist. If this is unspecified, the firewall policy rule will be
4166 # enabled.
4167 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
4168 # enabled, logs will be exported to the configured export destination in
4169 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
4170 # cannot enable logging on &quot;goto_next&quot; rules.
4171 &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.
4172 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
4173 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
4174 # Exactly one field must be specified.
4175 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
4176 # Maximum number of destination address groups is 10.
4177 &quot;A String&quot;,
4178 ],
4179 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4180 # traffic destination.
4181 # Maximum number of destination fqdn allowed is 100.
4182 &quot;A String&quot;,
4183 ],
4184 &quot;destIpRanges&quot;: [ # CIDR IP address range.
4185 # Maximum number of destination CIDR IP ranges allowed is 5000.
4186 &quot;A String&quot;,
4187 ],
4188 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
4189 #
4190 #
4191 # - UNSPECIFIED
4192 # - INTERNET
4193 # - NON_INTERNET
4194 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
4195 #
4196 #
4197 # - UNSPECIFIED
4198 # - INTERNET
4199 # - NON_INTERNET
4200 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
4201 # of traffic. Should be specified as 2 letter country code defined as per
4202 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4203 # Maximum number of dest region codes allowed is 5000.
4204 &quot;A String&quot;,
4205 ],
4206 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4207 # The IPs in these lists will be matched against traffic destination.
4208 &quot;A String&quot;,
4209 ],
4210 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
4211 {
4212 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
4213 # required when creating a firewall rule. This value can either be
4214 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
4215 # protocol number.
4216 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
4217 # only applicable for UDP or TCP protocol. Each entry must be either
4218 # an integer or a range. If not specified, this rule applies to
4219 # connections through any port.
4220 #
4221 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
4222 &quot;A String&quot;,
4223 ],
4224 },
4225 ],
4226 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
4227 # Maximum number of source address groups is 10.
4228 &quot;A String&quot;,
4229 ],
4230 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4231 # traffic source.
4232 # Maximum number of source fqdn allowed is 100.
4233 &quot;A String&quot;,
4234 ],
4235 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
4236 # Maximum number of source CIDR IP ranges allowed is 5000.
4237 &quot;A String&quot;,
4238 ],
4239 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
4240 #
4241 #
4242 # - UNSPECIFIED
4243 # - INTERNET
4244 # - INTRA_VPC
4245 # - NON_INTERNET
4246 # - VPC_NETWORKS
4247 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
4248 #
4249 #
4250 # - UNSPECIFIED
4251 # - INTERNET
4252 # - INTRA_VPC
4253 # - NON_INTERNET
4254 # - VPC_NETWORKS
4255 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
4256 &quot;A String&quot;,
4257 ],
4258 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
4259 # of traffic. Should be specified as 2 letter country code defined as per
4260 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4261 # Maximum number of source region codes allowed is 5000.
4262 &quot;A String&quot;,
4263 ],
4264 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
4265 # of the traffic.
4266 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
4267 # and there is no srcIpRange, this rule will be ignored.
4268 # Maximum number of source tag values allowed is 256.
4269 {
4270 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4271 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4272 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4273 # or its network is deleted.
4274 },
4275 ],
4276 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4277 # The IPs in these lists will be matched against traffic source.
4278 &quot;A String&quot;,
4279 ],
4280 },
4281 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
4282 # must be a positive value between 0 and 2147483647.
4283 # Rules are evaluated from highest to lowest priority where 0 is the
4284 # highest priority and 2147483647 is the lowest priority.
4285 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
4286 # and can be updated.
4287 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
4288 # rule.
4289 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
4290 # Example:
4291 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
4292 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
4293 # &#x27;mirror&#x27;. Cannot be specified for other actions.
4294 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
4295 # This field allows you to control which load balancers get this rule.
4296 # For example, the following are valid values:
4297 #
4298 #
4299 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
4300 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
4301 # - projects/project/global/
4302 # forwardingRules/forwardingRule
4303 # - projects/project/regions/region/forwardingRules/
4304 # forwardingRule
4305 &quot;A String&quot;,
4306 ],
4307 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
4308 # allows you to control which network&#x27;s VMs get this rule. If this field
4309 # is left blank, all VMs within the organization will receive the rule.
4310 &quot;A String&quot;,
4311 ],
4312 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
4313 # applies to. If targetSecureTag are specified, then the
4314 # firewall rule applies only to instances in the VPC network that have one
4315 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
4316 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
4317 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
4318 # to all instances on the specified network.
4319 # Maximum number of target label tags allowed is 256.
4320 {
4321 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4322 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4323 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4324 # or its network is deleted.
4325 },
4326 ],
4327 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
4328 # applied with this rule.
4329 &quot;A String&quot;,
4330 ],
4331 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
4332 # Default value is INSTANCES.
4333 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
4334 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
4335 # be set for other actions.
4336 },
4337 ],
4338 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
4339 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
4340 &quot;shortName&quot;: &quot;A String&quot;, # User-provided name of the Organization firewall policy. The name should be
4341 # unique in the organization in which the firewall policy is created.
4342 # This field is not applicable to network firewall policies.
4343 # This name must be set on creation and cannot be changed. The name must be
4344 # 1-63 characters long, and comply with RFC1035.
4345 # Specifically, the name must be 1-63 characters long and match the regular
4346 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
4347 # character must be a lowercase letter, and all following characters must
4348 # be a dash, lowercase letter, or digit, except the last character, which
4349 # cannot be a dash.
4350 }
4351
4352 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
4353 that if you must retry your request, the server will know to ignore the
4354 request if it has already been completed.
4355
4356 For example, consider a situation where you make an initial request and
4357 the request times out. If you make the request again with the same
4358 request ID, the server can check if original operation with the same
4359 request ID was received, and if so, will ignore the second request. This
4360 prevents clients from accidentally creating duplicate commitments.
4361
4362 The request ID must be
4363 a valid UUID with the exception that zero UUID is not supported
4364 (00000000-0000-0000-0000-000000000000).
4365 x__xgafv: string, V1 error format.
4366 Allowed values
4367 1 - v1 error format
4368 2 - v2 error format
4369
4370 Returns:
4371 An object of the form:
4372
4373 { # Represents an Operation resource.
4374 #
4375 # Google Compute Engine has three Operation resources:
4376 #
4377 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
4378 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
4379 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
4380 #
4381 # You can use an operation resource to manage asynchronous API requests.
4382 # For more information, readHandling
4383 # API responses.
4384 #
4385 # Operations can be global, regional or zonal.
4386 #
4387 # - For global operations, use the `globalOperations`
4388 # resource.
4389 # - For regional operations, use the
4390 # `regionOperations` resource.
4391 # - For zonal operations, use
4392 # the `zoneOperations` resource.
4393 #
4394 #
4395 #
4396 # For more information, read
4397 # Global, Regional, and Zonal Resources.
4398 #
4399 # Note that completed Operation resources have a limited
4400 # retention period.
4401 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
4402 # Not present otherwise.
4403 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
4404 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
4405 # set when the operation is created.
4406 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
4407 # text format.
4408 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
4409 # this field will be populated.
4410 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
4411 # operation.
4412 {
4413 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
4414 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
4415 # details. There is a set of defined message types to use for providing
4416 # details.The syntax depends on the error code. For example,
4417 # QuotaExceededInfo will have details when the error code is
4418 # QUOTA_EXCEEDED.
4419 {
4420 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
4421 #
4422 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
4423 # is not enabled:
4424 #
4425 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
4426 # &quot;domain&quot;: &quot;googleapis.com&quot;
4427 # &quot;metadata&quot;: {
4428 # &quot;resource&quot;: &quot;projects/123&quot;,
4429 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
4430 # }
4431 # }
4432 #
4433 # This response indicates that the pubsub.googleapis.com API is not enabled.
4434 #
4435 # Example of an error that is returned when attempting to create a Spanner
4436 # instance in a region that is out of stock:
4437 #
4438 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
4439 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
4440 # &quot;metadata&quot;: {
4441 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
4442 # }
4443 # }
4444 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
4445 # is typically the registered service name of the tool or product that
4446 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
4447 # generated by some common infrastructure, the error domain must be a
4448 # globally unique value that identifies the infrastructure. For Google API
4449 # infrastructure, the error domain is &quot;googleapis.com&quot;.
4450 &quot;metadatas&quot;: { # Additional structured details about this error.
4451 #
4452 # Keys must match a regular expression of `a-z+` but should
4453 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
4454 # length. When identifying the current value of an exceeded limit, the units
4455 # should be contained in the key, not the value. For example, rather than
4456 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
4457 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
4458 # instances that can be created in a single (batch) request.
4459 &quot;a_key&quot;: &quot;A String&quot;,
4460 },
4461 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
4462 # proximate cause of the error. Error reasons are unique within a particular
4463 # domain of errors. This should be at most 63 characters and match a
4464 # regular expression of `A-Z+[A-Z0-9]`, which represents
4465 # UPPER_SNAKE_CASE.
4466 },
4467 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
4468 #
4469 # For example, if a quota check failed with an error indicating the calling
4470 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
4471 # directly to the right place in the developer console to flip the bit.
4472 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
4473 { # Describes a URL link.
4474 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
4475 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
4476 },
4477 ],
4478 },
4479 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
4480 # which can be attached to an RPC error.
4481 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
4482 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
4483 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
4484 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
4485 },
4486 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
4487 &quot;dimensions&quot;: { # The map holding related quota dimensions.
4488 &quot;a_key&quot;: &quot;A String&quot;,
4489 },
4490 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
4491 # type or metric.
4492 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
4493 # or metric.
4494 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
4495 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
4496 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
4497 },
4498 },
4499 ],
4500 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
4501 # This property is optional.
4502 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
4503 },
4504 ],
4505 },
4506 &quot;getVersionOperationMetadata&quot;: {
4507 &quot;inlineSbomInfo&quot;: {
4508 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
4509 # appropriate identifiers.
4510 &quot;a_key&quot;: &quot;A String&quot;,
4511 },
4512 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
4513 # identifiers.
4514 &quot;a_key&quot;: &quot;A String&quot;,
4515 },
4516 },
4517 },
4518 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
4519 # message that was returned, such as `NOT FOUND`.
4520 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
4521 # status code that was returned. For example, a `404` means the
4522 # resource was not found.
4523 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
4524 # defined by the server.
4525 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
4526 # This value is inRFC3339
4527 # text format.
4528 &quot;instancesBulkInsertOperationMetadata&quot;: {
4529 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
4530 # Example key: zones/us-central1-a
4531 &quot;a_key&quot;: {
4532 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
4533 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
4534 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
4535 # error.
4536 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
4537 # if the flow is rolling forward or rolling back.
4538 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
4539 },
4540 },
4541 },
4542 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
4543 # Operation resources.
4544 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
4545 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
4546 # group of operations results from a `bulkInsert` API request.
4547 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
4548 # `update`, or `delete`, and so on.
4549 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
4550 # There is no requirement that this be linear or support any granularity of
4551 # operations. This should not be used to guess when the operation will be
4552 # complete. This number should monotonically increase as the operation
4553 # progresses.
4554 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
4555 # applicable when performing regional operations.
4556 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
4557 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
4558 # this field will contain information on all underlying zonal actions and
4559 # their state.
4560 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
4561 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
4562 # Example key: zones/us-central1-a
4563 &quot;a_key&quot;: {
4564 &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
4565 # populated.
4566 # different programming environments, including REST APIs and RPC APIs. It is
4567 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
4568 # three pieces of data: error code, error message, and error details.
4569 #
4570 # You can find out more about this error model and how to work with it in the
4571 # [API Design Guide](https://cloud.google.com/apis/design/errors).
4572 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
4573 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
4574 # message types for APIs to use.
4575 {
4576 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
4577 },
4578 ],
4579 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
4580 # user-facing error message should be localized and sent in the
4581 # google.rpc.Status.details field, or localized by the client.
4582 },
4583 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
4584 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
4585 },
4586 },
4587 },
4588 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
4589 # This value is inRFC3339
4590 # text format.
4591 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
4592 # following:
4593 # `PENDING`, `RUNNING`, or `DONE`.
4594 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
4595 # operation.
4596 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
4597 # of the target resource.
4598 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
4599 # operations related to creating a snapshot, this points to the disk
4600 # that the snapshot was created from.
4601 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
4602 # `[email protected]` or
4603 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
4604 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
4605 # operation, this field will be populated.
4606 {
4607 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
4608 # Engine returns NO_RESULTS_ON_PAGE if there
4609 # are no results in the response.
4610 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
4611 # value format. For example:
4612 #
4613 # &quot;data&quot;: [
4614 # {
4615 # &quot;key&quot;: &quot;scope&quot;,
4616 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
4617 # }
4618 {
4619 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
4620 # returned. For example, for warnings where there are no results in a list
4621 # request for a particular zone, this key might be scope and
4622 # the key value might be the zone name. Other examples might be a key
4623 # indicating a deprecated resource and a suggested replacement, or a
4624 # warning about invalid network settings (for example, if an instance
4625 # attempts to perform IP forwarding but is not enabled for IP forwarding).
4626 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
4627 },
4628 ],
4629 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
4630 },
4631 ],
4632 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
4633 # applicable when performing per-zone operations.
4634 }</pre>
4635 </div>
4636
4637 <div class="method">
4638 <code class="details" id="list">list(project, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
4639 <pre>Lists all the policies that have been configured for the specified project.
4640
4641 Args:
4642 project: string, Project ID for this request. (required)
4643 filter: string, A filter expression that filters resources listed in the response. Most
4644 Compute resources support two types of filter expressions:
4645 expressions that support regular expressions and expressions that follow
4646 API improvement proposal AIP-160.
4647 These two types of filter expressions cannot be mixed in one request.
4648
4649 If you want to use AIP-160, your expression must specify the field name, an
4650 operator, and the value that you want to use for filtering. The value
4651 must be a string, a number, or a boolean. The operator
4652 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
4653
4654 For example, if you are filtering Compute Engine instances, you can
4655 exclude instances named `example-instance` by specifying
4656 `name != example-instance`.
4657
4658 The `:*` comparison can be used to test whether a key has been defined.
4659 For example, to find all objects with `owner` label use:
4660 ```
4661 labels.owner:*
4662 ```
4663
4664 You can also filter nested fields. For example, you could specify
4665 `scheduling.automaticRestart = false` to include instances only
4666 if they are not scheduled for automatic restarts. You can use filtering
4667 on nested fields to filter based onresource labels.
4668
4669 To filter on multiple expressions, provide each separate expression within
4670 parentheses. For example:
4671 ```
4672 (scheduling.automaticRestart = true)
4673 (cpuPlatform = &quot;Intel Skylake&quot;)
4674 ```
4675 By default, each expression is an `AND` expression. However, you
4676 can include `AND` and `OR` expressions explicitly.
4677 For example:
4678 ```
4679 (cpuPlatform = &quot;Intel Skylake&quot;) OR
4680 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
4681 (scheduling.automaticRestart = true)
4682 ```
4683
4684 If you want to use a regular expression, use the `eq` (equal) or `ne`
4685 (not equal) operator against a single un-parenthesized expression with or
4686 without quotes or against multiple parenthesized expressions. Examples:
4687
4688 `fieldname eq unquoted literal`
4689 `fieldname eq &#x27;single quoted literal&#x27;`
4690 `fieldname eq &quot;double quoted literal&quot;`
4691 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
4692
4693 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
4694 The literal value must match the entire field.
4695
4696 For example, to filter for instances that do not end with name &quot;instance&quot;,
4697 you would use `name ne .*instance`.
4698
4699 You cannot combine constraints on multiple fields using regular
4700 expressions.
4701 maxResults: integer, The maximum number of results per page that should be returned.
4702 If the number of available results is larger than `maxResults`,
4703 Compute Engine returns a `nextPageToken` that can be used to get
4704 the next page of results in subsequent list requests. Acceptable values are
4705 `0` to `500`, inclusive. (Default: `500`)
4706 orderBy: string, Sorts list results by a certain order. By default, results
4707 are returned in alphanumerical order based on the resource name.
4708
4709 You can also sort results in descending order based on the creation
4710 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
4711 results based on the `creationTimestamp` field in
4712 reverse chronological order (newest result first). Use this to sort
4713 resources like operations so that the newest operation is returned first.
4714
4715 Currently, only sorting by `name` or
4716 `creationTimestamp desc` is supported.
4717 pageToken: string, Specifies a page token to use. Set `pageToken` to the
4718 `nextPageToken` returned by a previous list request to get
4719 the next page of results.
4720 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
4721 of failure. The default value is false.
4722
4723 For example, when partial success behavior is enabled, aggregatedList for a
4724 single zone scope either returns all resources in the zone or no resources,
4725 with an error code.
4726 x__xgafv: string, V1 error format.
4727 Allowed values
4728 1 - v1 error format
4729 2 - v2 error format
4730
4731 Returns:
4732 An object of the form:
4733
4734 {
4735 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
4736 &quot;items&quot;: [ # A list of FirewallPolicy resources.
4737 { # Represents a Firewall Policy resource.
4738 &quot;associations&quot;: [ # A list of associations that belong to this firewall policy.
4739 {
4740 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
4741 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
4742 # of the firewall policy of the association.
4743 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
4744 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
4745 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
4746 },
4747 ],
4748 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
4749 # text format.
4750 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
4751 # create the resource.
4752 &quot;displayName&quot;: &quot;A String&quot;, # Deprecated, please use short name instead. User-provided name of the
4753 # Organization firewall policy. The name should be unique in the organization
4754 # in which the firewall policy is created.
4755 # This field is not applicable to network firewall policies.
4756 # This name must be set on creation and cannot be changed.
4757 # The name must be 1-63 characters long, and comply
4758 # with RFC1035. Specifically, the name must be 1-63 characters
4759 # long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which
4760 # means the first character must be a lowercase letter, and all following
4761 # characters must be a dash, lowercase letter, or digit, except the last
4762 # character, which cannot be a dash.
4763 &quot;fingerprint&quot;: &quot;A String&quot;, # Specifies a fingerprint for this resource, which is essentially a hash of
4764 # the metadata&#x27;s contents and used for optimistic locking. The
4765 # fingerprint is initially generated by Compute Engine and changes after
4766 # every request to modify or update metadata. You must always provide an
4767 # up-to-date fingerprint hash in order to update or change metadata,
4768 # otherwise the request will fail with error412 conditionNotMet.
4769 #
4770 # To see the latest fingerprint, make get() request to the
4771 # firewall policy.
4772 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
4773 # defined by the server.
4774 &quot;kind&quot;: &quot;compute#firewallPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
4775 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. For Organization Firewall Policies it&#x27;s a
4776 # [Output Only] numeric ID allocated by Google Cloud which uniquely
4777 # identifies the Organization Firewall Policy.
4778 &quot;packetMirroringRules&quot;: [ # A list of packet mirroring rules that belong to this policy.
4779 { # Represents a rule that describes one or more match conditions along with
4780 # the action to be taken when traffic matches this condition (allow or deny).
4781 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
4782 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
4783 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
4784 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
4785 # and &quot;goto_next&quot;.
4786 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
4787 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
4788 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
4789 # the firewall policy rule is not enforced and traffic behaves as if it did
4790 # not exist. If this is unspecified, the firewall policy rule will be
4791 # enabled.
4792 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
4793 # enabled, logs will be exported to the configured export destination in
4794 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
4795 # cannot enable logging on &quot;goto_next&quot; rules.
4796 &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.
4797 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
4798 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
4799 # Exactly one field must be specified.
4800 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
4801 # Maximum number of destination address groups is 10.
4802 &quot;A String&quot;,
4803 ],
4804 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4805 # traffic destination.
4806 # Maximum number of destination fqdn allowed is 100.
4807 &quot;A String&quot;,
4808 ],
4809 &quot;destIpRanges&quot;: [ # CIDR IP address range.
4810 # Maximum number of destination CIDR IP ranges allowed is 5000.
4811 &quot;A String&quot;,
4812 ],
4813 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
4814 #
4815 #
4816 # - UNSPECIFIED
4817 # - INTERNET
4818 # - NON_INTERNET
4819 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
4820 #
4821 #
4822 # - UNSPECIFIED
4823 # - INTERNET
4824 # - NON_INTERNET
4825 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
4826 # of traffic. Should be specified as 2 letter country code defined as per
4827 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4828 # Maximum number of dest region codes allowed is 5000.
4829 &quot;A String&quot;,
4830 ],
4831 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4832 # The IPs in these lists will be matched against traffic destination.
4833 &quot;A String&quot;,
4834 ],
4835 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
4836 {
4837 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
4838 # required when creating a firewall rule. This value can either be
4839 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
4840 # protocol number.
4841 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
4842 # only applicable for UDP or TCP protocol. Each entry must be either
4843 # an integer or a range. If not specified, this rule applies to
4844 # connections through any port.
4845 #
4846 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
4847 &quot;A String&quot;,
4848 ],
4849 },
4850 ],
4851 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
4852 # Maximum number of source address groups is 10.
4853 &quot;A String&quot;,
4854 ],
4855 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4856 # traffic source.
4857 # Maximum number of source fqdn allowed is 100.
4858 &quot;A String&quot;,
4859 ],
4860 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
4861 # Maximum number of source CIDR IP ranges allowed is 5000.
4862 &quot;A String&quot;,
4863 ],
4864 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
4865 #
4866 #
4867 # - UNSPECIFIED
4868 # - INTERNET
4869 # - INTRA_VPC
4870 # - NON_INTERNET
4871 # - VPC_NETWORKS
4872 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
4873 #
4874 #
4875 # - UNSPECIFIED
4876 # - INTERNET
4877 # - INTRA_VPC
4878 # - NON_INTERNET
4879 # - VPC_NETWORKS
4880 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
4881 &quot;A String&quot;,
4882 ],
4883 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
4884 # of traffic. Should be specified as 2 letter country code defined as per
4885 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4886 # Maximum number of source region codes allowed is 5000.
4887 &quot;A String&quot;,
4888 ],
4889 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
4890 # of the traffic.
4891 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
4892 # and there is no srcIpRange, this rule will be ignored.
4893 # Maximum number of source tag values allowed is 256.
4894 {
4895 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4896 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4897 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4898 # or its network is deleted.
4899 },
4900 ],
4901 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4902 # The IPs in these lists will be matched against traffic source.
4903 &quot;A String&quot;,
4904 ],
4905 },
4906 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
4907 # must be a positive value between 0 and 2147483647.
4908 # Rules are evaluated from highest to lowest priority where 0 is the
4909 # highest priority and 2147483647 is the lowest priority.
4910 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
4911 # and can be updated.
4912 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
4913 # rule.
4914 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
4915 # Example:
4916 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
4917 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
4918 # &#x27;mirror&#x27;. Cannot be specified for other actions.
4919 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
4920 # This field allows you to control which load balancers get this rule.
4921 # For example, the following are valid values:
4922 #
4923 #
4924 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
4925 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
4926 # - projects/project/global/
4927 # forwardingRules/forwardingRule
4928 # - projects/project/regions/region/forwardingRules/
4929 # forwardingRule
4930 &quot;A String&quot;,
4931 ],
4932 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
4933 # allows you to control which network&#x27;s VMs get this rule. If this field
4934 # is left blank, all VMs within the organization will receive the rule.
4935 &quot;A String&quot;,
4936 ],
4937 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
4938 # applies to. If targetSecureTag are specified, then the
4939 # firewall rule applies only to instances in the VPC network that have one
4940 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
4941 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
4942 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
4943 # to all instances on the specified network.
4944 # Maximum number of target label tags allowed is 256.
4945 {
4946 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4947 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4948 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4949 # or its network is deleted.
4950 },
4951 ],
4952 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
4953 # applied with this rule.
4954 &quot;A String&quot;,
4955 ],
4956 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
4957 # Default value is INSTANCES.
4958 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
4959 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
4960 # be set for other actions.
4961 },
4962 ],
4963 &quot;parent&quot;: &quot;A String&quot;, # Output only. [Output Only] The parent of the firewall policy.
4964 # This field is not applicable to network firewall policies.
4965 &quot;policyType&quot;: &quot;A String&quot;, # The type of the firewall policy. This field can be one of
4966 # VPC_POLICY, RDMA_ROCE_POLICY or ULL_POLICY.
4967 #
4968 # Note: if not specified then VPC_POLICY will be used.
4969 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional firewall policy resides.
4970 # This field is not applicable to global firewall policies.
4971 # You must specify this field as part of the HTTP request URL. It is
4972 # not settable as a field in the request body.
4973 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall
4974 # policy can not exceed a set number of tuples.
4975 &quot;rules&quot;: [ # A list of rules that belong to this policy.
4976 # There must always be a default rule (rule with priority 2147483647 and
4977 # match &quot;*&quot;). If no rules are provided when creating a firewall policy, a
4978 # default rule with action &quot;allow&quot; will be added.
4979 { # Represents a rule that describes one or more match conditions along with
4980 # the action to be taken when traffic matches this condition (allow or deny).
4981 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
4982 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
4983 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
4984 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
4985 # and &quot;goto_next&quot;.
4986 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
4987 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
4988 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
4989 # the firewall policy rule is not enforced and traffic behaves as if it did
4990 # not exist. If this is unspecified, the firewall policy rule will be
4991 # enabled.
4992 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
4993 # enabled, logs will be exported to the configured export destination in
4994 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
4995 # cannot enable logging on &quot;goto_next&quot; rules.
4996 &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.
4997 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
4998 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
4999 # Exactly one field must be specified.
5000 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
5001 # Maximum number of destination address groups is 10.
5002 &quot;A String&quot;,
5003 ],
5004 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
5005 # traffic destination.
5006 # Maximum number of destination fqdn allowed is 100.
5007 &quot;A String&quot;,
5008 ],
5009 &quot;destIpRanges&quot;: [ # CIDR IP address range.
5010 # Maximum number of destination CIDR IP ranges allowed is 5000.
5011 &quot;A String&quot;,
5012 ],
5013 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
5014 #
5015 #
5016 # - UNSPECIFIED
5017 # - INTERNET
5018 # - NON_INTERNET
5019 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
5020 #
5021 #
5022 # - UNSPECIFIED
5023 # - INTERNET
5024 # - NON_INTERNET
5025 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
5026 # of traffic. Should be specified as 2 letter country code defined as per
5027 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
5028 # Maximum number of dest region codes allowed is 5000.
5029 &quot;A String&quot;,
5030 ],
5031 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
5032 # The IPs in these lists will be matched against traffic destination.
5033 &quot;A String&quot;,
5034 ],
5035 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
5036 {
5037 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
5038 # required when creating a firewall rule. This value can either be
5039 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
5040 # protocol number.
5041 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
5042 # only applicable for UDP or TCP protocol. Each entry must be either
5043 # an integer or a range. If not specified, this rule applies to
5044 # connections through any port.
5045 #
5046 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
5047 &quot;A String&quot;,
5048 ],
5049 },
5050 ],
5051 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
5052 # Maximum number of source address groups is 10.
5053 &quot;A String&quot;,
5054 ],
5055 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
5056 # traffic source.
5057 # Maximum number of source fqdn allowed is 100.
5058 &quot;A String&quot;,
5059 ],
5060 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
5061 # Maximum number of source CIDR IP ranges allowed is 5000.
5062 &quot;A String&quot;,
5063 ],
5064 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
5065 #
5066 #
5067 # - UNSPECIFIED
5068 # - INTERNET
5069 # - INTRA_VPC
5070 # - NON_INTERNET
5071 # - VPC_NETWORKS
5072 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
5073 #
5074 #
5075 # - UNSPECIFIED
5076 # - INTERNET
5077 # - INTRA_VPC
5078 # - NON_INTERNET
5079 # - VPC_NETWORKS
5080 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
5081 &quot;A String&quot;,
5082 ],
5083 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
5084 # of traffic. Should be specified as 2 letter country code defined as per
5085 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
5086 # Maximum number of source region codes allowed is 5000.
5087 &quot;A String&quot;,
5088 ],
5089 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
5090 # of the traffic.
5091 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
5092 # and there is no srcIpRange, this rule will be ignored.
5093 # Maximum number of source tag values allowed is 256.
5094 {
5095 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
5096 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
5097 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
5098 # or its network is deleted.
5099 },
5100 ],
5101 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
5102 # The IPs in these lists will be matched against traffic source.
5103 &quot;A String&quot;,
5104 ],
5105 },
5106 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
5107 # must be a positive value between 0 and 2147483647.
5108 # Rules are evaluated from highest to lowest priority where 0 is the
5109 # highest priority and 2147483647 is the lowest priority.
5110 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
5111 # and can be updated.
5112 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
5113 # rule.
5114 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
5115 # Example:
5116 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
5117 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
5118 # &#x27;mirror&#x27;. Cannot be specified for other actions.
5119 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
5120 # This field allows you to control which load balancers get this rule.
5121 # For example, the following are valid values:
5122 #
5123 #
5124 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
5125 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
5126 # - projects/project/global/
5127 # forwardingRules/forwardingRule
5128 # - projects/project/regions/region/forwardingRules/
5129 # forwardingRule
5130 &quot;A String&quot;,
5131 ],
5132 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
5133 # allows you to control which network&#x27;s VMs get this rule. If this field
5134 # is left blank, all VMs within the organization will receive the rule.
5135 &quot;A String&quot;,
5136 ],
5137 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
5138 # applies to. If targetSecureTag are specified, then the
5139 # firewall rule applies only to instances in the VPC network that have one
5140 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
5141 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
5142 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
5143 # to all instances on the specified network.
5144 # Maximum number of target label tags allowed is 256.
5145 {
5146 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
5147 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
5148 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
5149 # or its network is deleted.
5150 },
5151 ],
5152 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
5153 # applied with this rule.
5154 &quot;A String&quot;,
5155 ],
5156 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
5157 # Default value is INSTANCES.
5158 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
5159 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
5160 # be set for other actions.
5161 },
5162 ],
5163 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
5164 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
5165 &quot;shortName&quot;: &quot;A String&quot;, # User-provided name of the Organization firewall policy. The name should be
5166 # unique in the organization in which the firewall policy is created.
5167 # This field is not applicable to network firewall policies.
5168 # This name must be set on creation and cannot be changed. The name must be
5169 # 1-63 characters long, and comply with RFC1035.
5170 # Specifically, the name must be 1-63 characters long and match the regular
5171 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
5172 # character must be a lowercase letter, and all following characters must
5173 # be a dash, lowercase letter, or digit, except the last character, which
5174 # cannot be a dash.
5175 },
5176 ],
5177 &quot;kind&quot;: &quot;compute#firewallPolicyList&quot;, # Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies
5178 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
5179 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
5180 # the query parameter pageToken in the next list request.
5181 # Subsequent list requests will have their own nextPageToken to
5182 # continue paging through the results.
5183 &quot;warning&quot;: { # [Output Only] Informational warning message.
5184 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
5185 # Engine returns NO_RESULTS_ON_PAGE if there
5186 # are no results in the response.
5187 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
5188 # value format. For example:
5189 #
5190 # &quot;data&quot;: [
5191 # {
5192 # &quot;key&quot;: &quot;scope&quot;,
5193 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
5194 # }
5195 {
5196 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
5197 # returned. For example, for warnings where there are no results in a list
5198 # request for a particular zone, this key might be scope and
5199 # the key value might be the zone name. Other examples might be a key
5200 # indicating a deprecated resource and a suggested replacement, or a
5201 # warning about invalid network settings (for example, if an instance
5202 # attempts to perform IP forwarding but is not enabled for IP forwarding).
5203 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
5204 },
5205 ],
5206 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
5207 },
5208 }</pre>
5209 </div>
5210
5211 <div class="method">
5212 <code class="details" id="list_next">list_next()</code>
5213 <pre>Retrieves the next page of results.
5214
5215 Args:
5216 previous_request: The request for the previous page. (required)
5217 previous_response: The response from the request for the previous page. (required)
5218
5219 Returns:
5220 A request object that you can call &#x27;execute()&#x27; on to request the next
5221 page. Returns None if there are no more items in the collection.
5222 </pre>
5223 </div>
5224
5225 <div class="method">
5226 <code class="details" id="patch">patch(project, firewallPolicy, body=None, requestId=None, x__xgafv=None)</code>
5227 <pre>Patches the specified policy with the data included in the request.
5228
5229 Args:
5230 project: string, Project ID for this request. (required)
5231 firewallPolicy: string, Name of the firewall policy to update. (required)
5232 body: object, The request body.
5233 The object takes the form of:
5234
5235 { # Represents a Firewall Policy resource.
5236 &quot;associations&quot;: [ # A list of associations that belong to this firewall policy.
5237 {
5238 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
5239 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
5240 # of the firewall policy of the association.
5241 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
5242 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
5243 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
5244 },
5245 ],
5246 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
5247 # text format.
5248 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
5249 # create the resource.
5250 &quot;displayName&quot;: &quot;A String&quot;, # Deprecated, please use short name instead. User-provided name of the
5251 # Organization firewall policy. The name should be unique in the organization
5252 # in which the firewall policy is created.
5253 # This field is not applicable to network firewall policies.
5254 # This name must be set on creation and cannot be changed.
5255 # The name must be 1-63 characters long, and comply
5256 # with RFC1035. Specifically, the name must be 1-63 characters
5257 # long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which
5258 # means the first character must be a lowercase letter, and all following
5259 # characters must be a dash, lowercase letter, or digit, except the last
5260 # character, which cannot be a dash.
5261 &quot;fingerprint&quot;: &quot;A String&quot;, # Specifies a fingerprint for this resource, which is essentially a hash of
5262 # the metadata&#x27;s contents and used for optimistic locking. The
5263 # fingerprint is initially generated by Compute Engine and changes after
5264 # every request to modify or update metadata. You must always provide an
5265 # up-to-date fingerprint hash in order to update or change metadata,
5266 # otherwise the request will fail with error412 conditionNotMet.
5267 #
5268 # To see the latest fingerprint, make get() request to the
5269 # firewall policy.
5270 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
5271 # defined by the server.
5272 &quot;kind&quot;: &quot;compute#firewallPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
5273 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. For Organization Firewall Policies it&#x27;s a
5274 # [Output Only] numeric ID allocated by Google Cloud which uniquely
5275 # identifies the Organization Firewall Policy.
5276 &quot;packetMirroringRules&quot;: [ # A list of packet mirroring rules that belong to this policy.
5277 { # Represents a rule that describes one or more match conditions along with
5278 # the action to be taken when traffic matches this condition (allow or deny).
5279 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
5280 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
5281 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
5282 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
5283 # and &quot;goto_next&quot;.
5284 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
5285 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
5286 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
5287 # the firewall policy rule is not enforced and traffic behaves as if it did
5288 # not exist. If this is unspecified, the firewall policy rule will be
5289 # enabled.
5290 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
5291 # enabled, logs will be exported to the configured export destination in
5292 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
5293 # cannot enable logging on &quot;goto_next&quot; rules.
5294 &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.
5295 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
5296 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
5297 # Exactly one field must be specified.
5298 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
5299 # Maximum number of destination address groups is 10.
5300 &quot;A String&quot;,
5301 ],
5302 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
5303 # traffic destination.
5304 # Maximum number of destination fqdn allowed is 100.
5305 &quot;A String&quot;,
5306 ],
5307 &quot;destIpRanges&quot;: [ # CIDR IP address range.
5308 # Maximum number of destination CIDR IP ranges allowed is 5000.
5309 &quot;A String&quot;,
5310 ],
5311 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
5312 #
5313 #
5314 # - UNSPECIFIED
5315 # - INTERNET
5316 # - NON_INTERNET
5317 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
5318 #
5319 #
5320 # - UNSPECIFIED
5321 # - INTERNET
5322 # - NON_INTERNET
5323 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
5324 # of traffic. Should be specified as 2 letter country code defined as per
5325 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
5326 # Maximum number of dest region codes allowed is 5000.
5327 &quot;A String&quot;,
5328 ],
5329 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
5330 # The IPs in these lists will be matched against traffic destination.
5331 &quot;A String&quot;,
5332 ],
5333 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
5334 {
5335 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
5336 # required when creating a firewall rule. This value can either be
5337 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
5338 # protocol number.
5339 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
5340 # only applicable for UDP or TCP protocol. Each entry must be either
5341 # an integer or a range. If not specified, this rule applies to
5342 # connections through any port.
5343 #
5344 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
5345 &quot;A String&quot;,
5346 ],
5347 },
5348 ],
5349 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
5350 # Maximum number of source address groups is 10.
5351 &quot;A String&quot;,
5352 ],
5353 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
5354 # traffic source.
5355 # Maximum number of source fqdn allowed is 100.
5356 &quot;A String&quot;,
5357 ],
5358 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
5359 # Maximum number of source CIDR IP ranges allowed is 5000.
5360 &quot;A String&quot;,
5361 ],
5362 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
5363 #
5364 #
5365 # - UNSPECIFIED
5366 # - INTERNET
5367 # - INTRA_VPC
5368 # - NON_INTERNET
5369 # - VPC_NETWORKS
5370 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
5371 #
5372 #
5373 # - UNSPECIFIED
5374 # - INTERNET
5375 # - INTRA_VPC
5376 # - NON_INTERNET
5377 # - VPC_NETWORKS
5378 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
5379 &quot;A String&quot;,
5380 ],
5381 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
5382 # of traffic. Should be specified as 2 letter country code defined as per
5383 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
5384 # Maximum number of source region codes allowed is 5000.
5385 &quot;A String&quot;,
5386 ],
5387 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
5388 # of the traffic.
5389 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
5390 # and there is no srcIpRange, this rule will be ignored.
5391 # Maximum number of source tag values allowed is 256.
5392 {
5393 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
5394 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
5395 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
5396 # or its network is deleted.
5397 },
5398 ],
5399 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
5400 # The IPs in these lists will be matched against traffic source.
5401 &quot;A String&quot;,
5402 ],
5403 },
5404 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
5405 # must be a positive value between 0 and 2147483647.
5406 # Rules are evaluated from highest to lowest priority where 0 is the
5407 # highest priority and 2147483647 is the lowest priority.
5408 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
5409 # and can be updated.
5410 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
5411 # rule.
5412 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
5413 # Example:
5414 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
5415 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
5416 # &#x27;mirror&#x27;. Cannot be specified for other actions.
5417 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
5418 # This field allows you to control which load balancers get this rule.
5419 # For example, the following are valid values:
5420 #
5421 #
5422 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
5423 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
5424 # - projects/project/global/
5425 # forwardingRules/forwardingRule
5426 # - projects/project/regions/region/forwardingRules/
5427 # forwardingRule
5428 &quot;A String&quot;,
5429 ],
5430 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
5431 # allows you to control which network&#x27;s VMs get this rule. If this field
5432 # is left blank, all VMs within the organization will receive the rule.
5433 &quot;A String&quot;,
5434 ],
5435 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
5436 # applies to. If targetSecureTag are specified, then the
5437 # firewall rule applies only to instances in the VPC network that have one
5438 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
5439 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
5440 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
5441 # to all instances on the specified network.
5442 # Maximum number of target label tags allowed is 256.
5443 {
5444 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
5445 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
5446 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
5447 # or its network is deleted.
5448 },
5449 ],
5450 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
5451 # applied with this rule.
5452 &quot;A String&quot;,
5453 ],
5454 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
5455 # Default value is INSTANCES.
5456 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
5457 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
5458 # be set for other actions.
5459 },
5460 ],
5461 &quot;parent&quot;: &quot;A String&quot;, # Output only. [Output Only] The parent of the firewall policy.
5462 # This field is not applicable to network firewall policies.
5463 &quot;policyType&quot;: &quot;A String&quot;, # The type of the firewall policy. This field can be one of
5464 # VPC_POLICY, RDMA_ROCE_POLICY or ULL_POLICY.
5465 #
5466 # Note: if not specified then VPC_POLICY will be used.
5467 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional firewall policy resides.
5468 # This field is not applicable to global firewall policies.
5469 # You must specify this field as part of the HTTP request URL. It is
5470 # not settable as a field in the request body.
5471 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall
5472 # policy can not exceed a set number of tuples.
5473 &quot;rules&quot;: [ # A list of rules that belong to this policy.
5474 # There must always be a default rule (rule with priority 2147483647 and
5475 # match &quot;*&quot;). If no rules are provided when creating a firewall policy, a
5476 # default rule with action &quot;allow&quot; will be added.
5477 { # Represents a rule that describes one or more match conditions along with
5478 # the action to be taken when traffic matches this condition (allow or deny).
5479 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
5480 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
5481 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
5482 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
5483 # and &quot;goto_next&quot;.
5484 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
5485 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
5486 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
5487 # the firewall policy rule is not enforced and traffic behaves as if it did
5488 # not exist. If this is unspecified, the firewall policy rule will be
5489 # enabled.
5490 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
5491 # enabled, logs will be exported to the configured export destination in
5492 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
5493 # cannot enable logging on &quot;goto_next&quot; rules.
5494 &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.
5495 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
5496 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
5497 # Exactly one field must be specified.
5498 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
5499 # Maximum number of destination address groups is 10.
5500 &quot;A String&quot;,
5501 ],
5502 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
5503 # traffic destination.
5504 # Maximum number of destination fqdn allowed is 100.
5505 &quot;A String&quot;,
5506 ],
5507 &quot;destIpRanges&quot;: [ # CIDR IP address range.
5508 # Maximum number of destination CIDR IP ranges allowed is 5000.
5509 &quot;A String&quot;,
5510 ],
5511 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
5512 #
5513 #
5514 # - UNSPECIFIED
5515 # - INTERNET
5516 # - NON_INTERNET
5517 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
5518 #
5519 #
5520 # - UNSPECIFIED
5521 # - INTERNET
5522 # - NON_INTERNET
5523 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
5524 # of traffic. Should be specified as 2 letter country code defined as per
5525 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
5526 # Maximum number of dest region codes allowed is 5000.
5527 &quot;A String&quot;,
5528 ],
5529 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
5530 # The IPs in these lists will be matched against traffic destination.
5531 &quot;A String&quot;,
5532 ],
5533 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
5534 {
5535 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
5536 # required when creating a firewall rule. This value can either be
5537 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
5538 # protocol number.
5539 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
5540 # only applicable for UDP or TCP protocol. Each entry must be either
5541 # an integer or a range. If not specified, this rule applies to
5542 # connections through any port.
5543 #
5544 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
5545 &quot;A String&quot;,
5546 ],
5547 },
5548 ],
5549 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
5550 # Maximum number of source address groups is 10.
5551 &quot;A String&quot;,
5552 ],
5553 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
5554 # traffic source.
5555 # Maximum number of source fqdn allowed is 100.
5556 &quot;A String&quot;,
5557 ],
5558 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
5559 # Maximum number of source CIDR IP ranges allowed is 5000.
5560 &quot;A String&quot;,
5561 ],
5562 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
5563 #
5564 #
5565 # - UNSPECIFIED
5566 # - INTERNET
5567 # - INTRA_VPC
5568 # - NON_INTERNET
5569 # - VPC_NETWORKS
5570 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
5571 #
5572 #
5573 # - UNSPECIFIED
5574 # - INTERNET
5575 # - INTRA_VPC
5576 # - NON_INTERNET
5577 # - VPC_NETWORKS
5578 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
5579 &quot;A String&quot;,
5580 ],
5581 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
5582 # of traffic. Should be specified as 2 letter country code defined as per
5583 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
5584 # Maximum number of source region codes allowed is 5000.
5585 &quot;A String&quot;,
5586 ],
5587 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
5588 # of the traffic.
5589 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
5590 # and there is no srcIpRange, this rule will be ignored.
5591 # Maximum number of source tag values allowed is 256.
5592 {
5593 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
5594 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
5595 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
5596 # or its network is deleted.
5597 },
5598 ],
5599 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
5600 # The IPs in these lists will be matched against traffic source.
5601 &quot;A String&quot;,
5602 ],
5603 },
5604 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
5605 # must be a positive value between 0 and 2147483647.
5606 # Rules are evaluated from highest to lowest priority where 0 is the
5607 # highest priority and 2147483647 is the lowest priority.
5608 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
5609 # and can be updated.
5610 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
5611 # rule.
5612 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
5613 # Example:
5614 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
5615 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
5616 # &#x27;mirror&#x27;. Cannot be specified for other actions.
5617 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
5618 # This field allows you to control which load balancers get this rule.
5619 # For example, the following are valid values:
5620 #
5621 #
5622 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
5623 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
5624 # - projects/project/global/
5625 # forwardingRules/forwardingRule
5626 # - projects/project/regions/region/forwardingRules/
5627 # forwardingRule
5628 &quot;A String&quot;,
5629 ],
5630 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
5631 # allows you to control which network&#x27;s VMs get this rule. If this field
5632 # is left blank, all VMs within the organization will receive the rule.
5633 &quot;A String&quot;,
5634 ],
5635 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
5636 # applies to. If targetSecureTag are specified, then the
5637 # firewall rule applies only to instances in the VPC network that have one
5638 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
5639 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
5640 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
5641 # to all instances on the specified network.
5642 # Maximum number of target label tags allowed is 256.
5643 {
5644 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
5645 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
5646 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
5647 # or its network is deleted.
5648 },
5649 ],
5650 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
5651 # applied with this rule.
5652 &quot;A String&quot;,
5653 ],
5654 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
5655 # Default value is INSTANCES.
5656 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
5657 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
5658 # be set for other actions.
5659 },
5660 ],
5661 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
5662 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
5663 &quot;shortName&quot;: &quot;A String&quot;, # User-provided name of the Organization firewall policy. The name should be
5664 # unique in the organization in which the firewall policy is created.
5665 # This field is not applicable to network firewall policies.
5666 # This name must be set on creation and cannot be changed. The name must be
5667 # 1-63 characters long, and comply with RFC1035.
5668 # Specifically, the name must be 1-63 characters long and match the regular
5669 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
5670 # character must be a lowercase letter, and all following characters must
5671 # be a dash, lowercase letter, or digit, except the last character, which
5672 # cannot be a dash.
5673 }
5674
5675 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
5676 that if you must retry your request, the server will know to ignore the
5677 request if it has already been completed.
5678
5679 For example, consider a situation where you make an initial request and
5680 the request times out. If you make the request again with the same
5681 request ID, the server can check if original operation with the same
5682 request ID was received, and if so, will ignore the second request. This
5683 prevents clients from accidentally creating duplicate commitments.
5684
5685 The request ID must be
5686 a valid UUID with the exception that zero UUID is not supported
5687 (00000000-0000-0000-0000-000000000000).
5688 x__xgafv: string, V1 error format.
5689 Allowed values
5690 1 - v1 error format
5691 2 - v2 error format
5692
5693 Returns:
5694 An object of the form:
5695
5696 { # Represents an Operation resource.
5697 #
5698 # Google Compute Engine has three Operation resources:
5699 #
5700 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
5701 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
5702 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
5703 #
5704 # You can use an operation resource to manage asynchronous API requests.
5705 # For more information, readHandling
5706 # API responses.
5707 #
5708 # Operations can be global, regional or zonal.
5709 #
5710 # - For global operations, use the `globalOperations`
5711 # resource.
5712 # - For regional operations, use the
5713 # `regionOperations` resource.
5714 # - For zonal operations, use
5715 # the `zoneOperations` resource.
5716 #
5717 #
5718 #
5719 # For more information, read
5720 # Global, Regional, and Zonal Resources.
5721 #
5722 # Note that completed Operation resources have a limited
5723 # retention period.
5724 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
5725 # Not present otherwise.
5726 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
5727 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
5728 # set when the operation is created.
5729 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
5730 # text format.
5731 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
5732 # this field will be populated.
5733 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
5734 # operation.
5735 {
5736 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
5737 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
5738 # details. There is a set of defined message types to use for providing
5739 # details.The syntax depends on the error code. For example,
5740 # QuotaExceededInfo will have details when the error code is
5741 # QUOTA_EXCEEDED.
5742 {
5743 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
5744 #
5745 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
5746 # is not enabled:
5747 #
5748 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
5749 # &quot;domain&quot;: &quot;googleapis.com&quot;
5750 # &quot;metadata&quot;: {
5751 # &quot;resource&quot;: &quot;projects/123&quot;,
5752 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
5753 # }
5754 # }
5755 #
5756 # This response indicates that the pubsub.googleapis.com API is not enabled.
5757 #
5758 # Example of an error that is returned when attempting to create a Spanner
5759 # instance in a region that is out of stock:
5760 #
5761 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
5762 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
5763 # &quot;metadata&quot;: {
5764 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
5765 # }
5766 # }
5767 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
5768 # is typically the registered service name of the tool or product that
5769 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
5770 # generated by some common infrastructure, the error domain must be a
5771 # globally unique value that identifies the infrastructure. For Google API
5772 # infrastructure, the error domain is &quot;googleapis.com&quot;.
5773 &quot;metadatas&quot;: { # Additional structured details about this error.
5774 #
5775 # Keys must match a regular expression of `a-z+` but should
5776 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
5777 # length. When identifying the current value of an exceeded limit, the units
5778 # should be contained in the key, not the value. For example, rather than
5779 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
5780 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
5781 # instances that can be created in a single (batch) request.
5782 &quot;a_key&quot;: &quot;A String&quot;,
5783 },
5784 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
5785 # proximate cause of the error. Error reasons are unique within a particular
5786 # domain of errors. This should be at most 63 characters and match a
5787 # regular expression of `A-Z+[A-Z0-9]`, which represents
5788 # UPPER_SNAKE_CASE.
5789 },
5790 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
5791 #
5792 # For example, if a quota check failed with an error indicating the calling
5793 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
5794 # directly to the right place in the developer console to flip the bit.
5795 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
5796 { # Describes a URL link.
5797 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
5798 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
5799 },
5800 ],
5801 },
5802 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
5803 # which can be attached to an RPC error.
5804 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
5805 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
5806 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
5807 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
5808 },
5809 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
5810 &quot;dimensions&quot;: { # The map holding related quota dimensions.
5811 &quot;a_key&quot;: &quot;A String&quot;,
5812 },
5813 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
5814 # type or metric.
5815 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
5816 # or metric.
5817 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
5818 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
5819 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
5820 },
5821 },
5822 ],
5823 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
5824 # This property is optional.
5825 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
5826 },
5827 ],
5828 },
5829 &quot;getVersionOperationMetadata&quot;: {
5830 &quot;inlineSbomInfo&quot;: {
5831 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
5832 # appropriate identifiers.
5833 &quot;a_key&quot;: &quot;A String&quot;,
5834 },
5835 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
5836 # identifiers.
5837 &quot;a_key&quot;: &quot;A String&quot;,
5838 },
5839 },
5840 },
5841 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
5842 # message that was returned, such as `NOT FOUND`.
5843 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
5844 # status code that was returned. For example, a `404` means the
5845 # resource was not found.
5846 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
5847 # defined by the server.
5848 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
5849 # This value is inRFC3339
5850 # text format.
5851 &quot;instancesBulkInsertOperationMetadata&quot;: {
5852 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
5853 # Example key: zones/us-central1-a
5854 &quot;a_key&quot;: {
5855 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
5856 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
5857 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
5858 # error.
5859 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
5860 # if the flow is rolling forward or rolling back.
5861 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
5862 },
5863 },
5864 },
5865 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
5866 # Operation resources.
5867 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
5868 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
5869 # group of operations results from a `bulkInsert` API request.
5870 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
5871 # `update`, or `delete`, and so on.
5872 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
5873 # There is no requirement that this be linear or support any granularity of
5874 # operations. This should not be used to guess when the operation will be
5875 # complete. This number should monotonically increase as the operation
5876 # progresses.
5877 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
5878 # applicable when performing regional operations.
5879 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
5880 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
5881 # this field will contain information on all underlying zonal actions and
5882 # their state.
5883 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
5884 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
5885 # Example key: zones/us-central1-a
5886 &quot;a_key&quot;: {
5887 &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
5888 # populated.
5889 # different programming environments, including REST APIs and RPC APIs. It is
5890 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
5891 # three pieces of data: error code, error message, and error details.
5892 #
5893 # You can find out more about this error model and how to work with it in the
5894 # [API Design Guide](https://cloud.google.com/apis/design/errors).
5895 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
5896 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
5897 # message types for APIs to use.
5898 {
5899 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
5900 },
5901 ],
5902 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
5903 # user-facing error message should be localized and sent in the
5904 # google.rpc.Status.details field, or localized by the client.
5905 },
5906 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
5907 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
5908 },
5909 },
5910 },
5911 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
5912 # This value is inRFC3339
5913 # text format.
5914 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
5915 # following:
5916 # `PENDING`, `RUNNING`, or `DONE`.
5917 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
5918 # operation.
5919 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
5920 # of the target resource.
5921 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
5922 # operations related to creating a snapshot, this points to the disk
5923 # that the snapshot was created from.
5924 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
5925 # `[email protected]` or
5926 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
5927 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
5928 # operation, this field will be populated.
5929 {
5930 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
5931 # Engine returns NO_RESULTS_ON_PAGE if there
5932 # are no results in the response.
5933 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
5934 # value format. For example:
5935 #
5936 # &quot;data&quot;: [
5937 # {
5938 # &quot;key&quot;: &quot;scope&quot;,
5939 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
5940 # }
5941 {
5942 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
5943 # returned. For example, for warnings where there are no results in a list
5944 # request for a particular zone, this key might be scope and
5945 # the key value might be the zone name. Other examples might be a key
5946 # indicating a deprecated resource and a suggested replacement, or a
5947 # warning about invalid network settings (for example, if an instance
5948 # attempts to perform IP forwarding but is not enabled for IP forwarding).
5949 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
5950 },
5951 ],
5952 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
5953 },
5954 ],
5955 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
5956 # applicable when performing per-zone operations.
5957 }</pre>
5958 </div>
5959
5960 <div class="method">
5961 <code class="details" id="patchPacketMirroringRule">patchPacketMirroringRule(project, firewallPolicy, body=None, priority=None, requestId=None, x__xgafv=None)</code>
5962 <pre>Patches a packet mirroring rule of the specified priority.
5963
5964 Args:
5965 project: string, Project ID for this request. (required)
5966 firewallPolicy: string, Name of the firewall policy to update. (required)
5967 body: object, The request body.
5968 The object takes the form of:
5969
5970 { # Represents a rule that describes one or more match conditions along with
5971 # the action to be taken when traffic matches this condition (allow or deny).
5972 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
5973 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
5974 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
5975 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
5976 # and &quot;goto_next&quot;.
5977 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
5978 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
5979 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
5980 # the firewall policy rule is not enforced and traffic behaves as if it did
5981 # not exist. If this is unspecified, the firewall policy rule will be
5982 # enabled.
5983 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
5984 # enabled, logs will be exported to the configured export destination in
5985 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
5986 # cannot enable logging on &quot;goto_next&quot; rules.
5987 &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.
5988 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
5989 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
5990 # Exactly one field must be specified.
5991 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
5992 # Maximum number of destination address groups is 10.
5993 &quot;A String&quot;,
5994 ],
5995 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
5996 # traffic destination.
5997 # Maximum number of destination fqdn allowed is 100.
5998 &quot;A String&quot;,
5999 ],
6000 &quot;destIpRanges&quot;: [ # CIDR IP address range.
6001 # Maximum number of destination CIDR IP ranges allowed is 5000.
6002 &quot;A String&quot;,
6003 ],
6004 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
6005 #
6006 #
6007 # - UNSPECIFIED
6008 # - INTERNET
6009 # - NON_INTERNET
6010 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
6011 #
6012 #
6013 # - UNSPECIFIED
6014 # - INTERNET
6015 # - NON_INTERNET
6016 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
6017 # of traffic. Should be specified as 2 letter country code defined as per
6018 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
6019 # Maximum number of dest region codes allowed is 5000.
6020 &quot;A String&quot;,
6021 ],
6022 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
6023 # The IPs in these lists will be matched against traffic destination.
6024 &quot;A String&quot;,
6025 ],
6026 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
6027 {
6028 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
6029 # required when creating a firewall rule. This value can either be
6030 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
6031 # protocol number.
6032 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
6033 # only applicable for UDP or TCP protocol. Each entry must be either
6034 # an integer or a range. If not specified, this rule applies to
6035 # connections through any port.
6036 #
6037 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
6038 &quot;A String&quot;,
6039 ],
6040 },
6041 ],
6042 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
6043 # Maximum number of source address groups is 10.
6044 &quot;A String&quot;,
6045 ],
6046 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
6047 # traffic source.
6048 # Maximum number of source fqdn allowed is 100.
6049 &quot;A String&quot;,
6050 ],
6051 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
6052 # Maximum number of source CIDR IP ranges allowed is 5000.
6053 &quot;A String&quot;,
6054 ],
6055 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
6056 #
6057 #
6058 # - UNSPECIFIED
6059 # - INTERNET
6060 # - INTRA_VPC
6061 # - NON_INTERNET
6062 # - VPC_NETWORKS
6063 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
6064 #
6065 #
6066 # - UNSPECIFIED
6067 # - INTERNET
6068 # - INTRA_VPC
6069 # - NON_INTERNET
6070 # - VPC_NETWORKS
6071 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
6072 &quot;A String&quot;,
6073 ],
6074 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
6075 # of traffic. Should be specified as 2 letter country code defined as per
6076 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
6077 # Maximum number of source region codes allowed is 5000.
6078 &quot;A String&quot;,
6079 ],
6080 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
6081 # of the traffic.
6082 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
6083 # and there is no srcIpRange, this rule will be ignored.
6084 # Maximum number of source tag values allowed is 256.
6085 {
6086 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
6087 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
6088 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
6089 # or its network is deleted.
6090 },
6091 ],
6092 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
6093 # The IPs in these lists will be matched against traffic source.
6094 &quot;A String&quot;,
6095 ],
6096 },
6097 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
6098 # must be a positive value between 0 and 2147483647.
6099 # Rules are evaluated from highest to lowest priority where 0 is the
6100 # highest priority and 2147483647 is the lowest priority.
6101 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
6102 # and can be updated.
6103 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
6104 # rule.
6105 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
6106 # Example:
6107 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
6108 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
6109 # &#x27;mirror&#x27;. Cannot be specified for other actions.
6110 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
6111 # This field allows you to control which load balancers get this rule.
6112 # For example, the following are valid values:
6113 #
6114 #
6115 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
6116 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
6117 # - projects/project/global/
6118 # forwardingRules/forwardingRule
6119 # - projects/project/regions/region/forwardingRules/
6120 # forwardingRule
6121 &quot;A String&quot;,
6122 ],
6123 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
6124 # allows you to control which network&#x27;s VMs get this rule. If this field
6125 # is left blank, all VMs within the organization will receive the rule.
6126 &quot;A String&quot;,
6127 ],
6128 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
6129 # applies to. If targetSecureTag are specified, then the
6130 # firewall rule applies only to instances in the VPC network that have one
6131 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
6132 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
6133 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
6134 # to all instances on the specified network.
6135 # Maximum number of target label tags allowed is 256.
6136 {
6137 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
6138 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
6139 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
6140 # or its network is deleted.
6141 },
6142 ],
6143 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
6144 # applied with this rule.
6145 &quot;A String&quot;,
6146 ],
6147 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
6148 # Default value is INSTANCES.
6149 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
6150 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
6151 # be set for other actions.
6152 }
6153
6154 priority: integer, The priority of the rule to patch.
6155 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
6156 that if you must retry your request, the server will know to ignore the
6157 request if it has already been completed.
6158
6159 For example, consider a situation where you make an initial request and
6160 the request times out. If you make the request again with the same
6161 request ID, the server can check if original operation with the same
6162 request ID was received, and if so, will ignore the second request. This
6163 prevents clients from accidentally creating duplicate commitments.
6164
6165 The request ID must be
6166 a valid UUID with the exception that zero UUID is not supported
6167 (00000000-0000-0000-0000-000000000000).
6168 x__xgafv: string, V1 error format.
6169 Allowed values
6170 1 - v1 error format
6171 2 - v2 error format
6172
6173 Returns:
6174 An object of the form:
6175
6176 { # Represents an Operation resource.
6177 #
6178 # Google Compute Engine has three Operation resources:
6179 #
6180 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
6181 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
6182 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
6183 #
6184 # You can use an operation resource to manage asynchronous API requests.
6185 # For more information, readHandling
6186 # API responses.
6187 #
6188 # Operations can be global, regional or zonal.
6189 #
6190 # - For global operations, use the `globalOperations`
6191 # resource.
6192 # - For regional operations, use the
6193 # `regionOperations` resource.
6194 # - For zonal operations, use
6195 # the `zoneOperations` resource.
6196 #
6197 #
6198 #
6199 # For more information, read
6200 # Global, Regional, and Zonal Resources.
6201 #
6202 # Note that completed Operation resources have a limited
6203 # retention period.
6204 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
6205 # Not present otherwise.
6206 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
6207 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
6208 # set when the operation is created.
6209 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
6210 # text format.
6211 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
6212 # this field will be populated.
6213 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
6214 # operation.
6215 {
6216 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
6217 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
6218 # details. There is a set of defined message types to use for providing
6219 # details.The syntax depends on the error code. For example,
6220 # QuotaExceededInfo will have details when the error code is
6221 # QUOTA_EXCEEDED.
6222 {
6223 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
6224 #
6225 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
6226 # is not enabled:
6227 #
6228 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
6229 # &quot;domain&quot;: &quot;googleapis.com&quot;
6230 # &quot;metadata&quot;: {
6231 # &quot;resource&quot;: &quot;projects/123&quot;,
6232 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
6233 # }
6234 # }
6235 #
6236 # This response indicates that the pubsub.googleapis.com API is not enabled.
6237 #
6238 # Example of an error that is returned when attempting to create a Spanner
6239 # instance in a region that is out of stock:
6240 #
6241 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
6242 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
6243 # &quot;metadata&quot;: {
6244 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
6245 # }
6246 # }
6247 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
6248 # is typically the registered service name of the tool or product that
6249 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
6250 # generated by some common infrastructure, the error domain must be a
6251 # globally unique value that identifies the infrastructure. For Google API
6252 # infrastructure, the error domain is &quot;googleapis.com&quot;.
6253 &quot;metadatas&quot;: { # Additional structured details about this error.
6254 #
6255 # Keys must match a regular expression of `a-z+` but should
6256 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
6257 # length. When identifying the current value of an exceeded limit, the units
6258 # should be contained in the key, not the value. For example, rather than
6259 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
6260 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
6261 # instances that can be created in a single (batch) request.
6262 &quot;a_key&quot;: &quot;A String&quot;,
6263 },
6264 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
6265 # proximate cause of the error. Error reasons are unique within a particular
6266 # domain of errors. This should be at most 63 characters and match a
6267 # regular expression of `A-Z+[A-Z0-9]`, which represents
6268 # UPPER_SNAKE_CASE.
6269 },
6270 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
6271 #
6272 # For example, if a quota check failed with an error indicating the calling
6273 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
6274 # directly to the right place in the developer console to flip the bit.
6275 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
6276 { # Describes a URL link.
6277 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
6278 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
6279 },
6280 ],
6281 },
6282 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
6283 # which can be attached to an RPC error.
6284 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
6285 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
6286 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
6287 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
6288 },
6289 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
6290 &quot;dimensions&quot;: { # The map holding related quota dimensions.
6291 &quot;a_key&quot;: &quot;A String&quot;,
6292 },
6293 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
6294 # type or metric.
6295 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
6296 # or metric.
6297 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
6298 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
6299 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
6300 },
6301 },
6302 ],
6303 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
6304 # This property is optional.
6305 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
6306 },
6307 ],
6308 },
6309 &quot;getVersionOperationMetadata&quot;: {
6310 &quot;inlineSbomInfo&quot;: {
6311 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
6312 # appropriate identifiers.
6313 &quot;a_key&quot;: &quot;A String&quot;,
6314 },
6315 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
6316 # identifiers.
6317 &quot;a_key&quot;: &quot;A String&quot;,
6318 },
6319 },
6320 },
6321 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
6322 # message that was returned, such as `NOT FOUND`.
6323 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
6324 # status code that was returned. For example, a `404` means the
6325 # resource was not found.
6326 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
6327 # defined by the server.
6328 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
6329 # This value is inRFC3339
6330 # text format.
6331 &quot;instancesBulkInsertOperationMetadata&quot;: {
6332 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
6333 # Example key: zones/us-central1-a
6334 &quot;a_key&quot;: {
6335 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
6336 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
6337 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
6338 # error.
6339 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
6340 # if the flow is rolling forward or rolling back.
6341 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
6342 },
6343 },
6344 },
6345 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
6346 # Operation resources.
6347 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
6348 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
6349 # group of operations results from a `bulkInsert` API request.
6350 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
6351 # `update`, or `delete`, and so on.
6352 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
6353 # There is no requirement that this be linear or support any granularity of
6354 # operations. This should not be used to guess when the operation will be
6355 # complete. This number should monotonically increase as the operation
6356 # progresses.
6357 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
6358 # applicable when performing regional operations.
6359 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
6360 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
6361 # this field will contain information on all underlying zonal actions and
6362 # their state.
6363 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
6364 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
6365 # Example key: zones/us-central1-a
6366 &quot;a_key&quot;: {
6367 &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
6368 # populated.
6369 # different programming environments, including REST APIs and RPC APIs. It is
6370 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
6371 # three pieces of data: error code, error message, and error details.
6372 #
6373 # You can find out more about this error model and how to work with it in the
6374 # [API Design Guide](https://cloud.google.com/apis/design/errors).
6375 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
6376 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
6377 # message types for APIs to use.
6378 {
6379 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
6380 },
6381 ],
6382 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
6383 # user-facing error message should be localized and sent in the
6384 # google.rpc.Status.details field, or localized by the client.
6385 },
6386 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
6387 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
6388 },
6389 },
6390 },
6391 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
6392 # This value is inRFC3339
6393 # text format.
6394 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
6395 # following:
6396 # `PENDING`, `RUNNING`, or `DONE`.
6397 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
6398 # operation.
6399 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
6400 # of the target resource.
6401 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
6402 # operations related to creating a snapshot, this points to the disk
6403 # that the snapshot was created from.
6404 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
6405 # `[email protected]` or
6406 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
6407 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
6408 # operation, this field will be populated.
6409 {
6410 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
6411 # Engine returns NO_RESULTS_ON_PAGE if there
6412 # are no results in the response.
6413 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
6414 # value format. For example:
6415 #
6416 # &quot;data&quot;: [
6417 # {
6418 # &quot;key&quot;: &quot;scope&quot;,
6419 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
6420 # }
6421 {
6422 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
6423 # returned. For example, for warnings where there are no results in a list
6424 # request for a particular zone, this key might be scope and
6425 # the key value might be the zone name. Other examples might be a key
6426 # indicating a deprecated resource and a suggested replacement, or a
6427 # warning about invalid network settings (for example, if an instance
6428 # attempts to perform IP forwarding but is not enabled for IP forwarding).
6429 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
6430 },
6431 ],
6432 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
6433 },
6434 ],
6435 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
6436 # applicable when performing per-zone operations.
6437 }</pre>
6438 </div>
6439
6440 <div class="method">
6441 <code class="details" id="patchRule">patchRule(project, firewallPolicy, body=None, priority=None, requestId=None, x__xgafv=None)</code>
6442 <pre>Patches a rule of the specified priority.
6443
6444 Args:
6445 project: string, Project ID for this request. (required)
6446 firewallPolicy: string, Name of the firewall policy to update. (required)
6447 body: object, The request body.
6448 The object takes the form of:
6449
6450 { # Represents a rule that describes one or more match conditions along with
6451 # the action to be taken when traffic matches this condition (allow or deny).
6452 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
6453 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
6454 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
6455 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
6456 # and &quot;goto_next&quot;.
6457 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
6458 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
6459 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
6460 # the firewall policy rule is not enforced and traffic behaves as if it did
6461 # not exist. If this is unspecified, the firewall policy rule will be
6462 # enabled.
6463 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
6464 # enabled, logs will be exported to the configured export destination in
6465 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
6466 # cannot enable logging on &quot;goto_next&quot; rules.
6467 &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.
6468 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
6469 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
6470 # Exactly one field must be specified.
6471 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
6472 # Maximum number of destination address groups is 10.
6473 &quot;A String&quot;,
6474 ],
6475 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
6476 # traffic destination.
6477 # Maximum number of destination fqdn allowed is 100.
6478 &quot;A String&quot;,
6479 ],
6480 &quot;destIpRanges&quot;: [ # CIDR IP address range.
6481 # Maximum number of destination CIDR IP ranges allowed is 5000.
6482 &quot;A String&quot;,
6483 ],
6484 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
6485 #
6486 #
6487 # - UNSPECIFIED
6488 # - INTERNET
6489 # - NON_INTERNET
6490 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
6491 #
6492 #
6493 # - UNSPECIFIED
6494 # - INTERNET
6495 # - NON_INTERNET
6496 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
6497 # of traffic. Should be specified as 2 letter country code defined as per
6498 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
6499 # Maximum number of dest region codes allowed is 5000.
6500 &quot;A String&quot;,
6501 ],
6502 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
6503 # The IPs in these lists will be matched against traffic destination.
6504 &quot;A String&quot;,
6505 ],
6506 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
6507 {
6508 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
6509 # required when creating a firewall rule. This value can either be
6510 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
6511 # protocol number.
6512 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
6513 # only applicable for UDP or TCP protocol. Each entry must be either
6514 # an integer or a range. If not specified, this rule applies to
6515 # connections through any port.
6516 #
6517 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
6518 &quot;A String&quot;,
6519 ],
6520 },
6521 ],
6522 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
6523 # Maximum number of source address groups is 10.
6524 &quot;A String&quot;,
6525 ],
6526 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
6527 # traffic source.
6528 # Maximum number of source fqdn allowed is 100.
6529 &quot;A String&quot;,
6530 ],
6531 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
6532 # Maximum number of source CIDR IP ranges allowed is 5000.
6533 &quot;A String&quot;,
6534 ],
6535 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
6536 #
6537 #
6538 # - UNSPECIFIED
6539 # - INTERNET
6540 # - INTRA_VPC
6541 # - NON_INTERNET
6542 # - VPC_NETWORKS
6543 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
6544 #
6545 #
6546 # - UNSPECIFIED
6547 # - INTERNET
6548 # - INTRA_VPC
6549 # - NON_INTERNET
6550 # - VPC_NETWORKS
6551 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
6552 &quot;A String&quot;,
6553 ],
6554 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
6555 # of traffic. Should be specified as 2 letter country code defined as per
6556 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
6557 # Maximum number of source region codes allowed is 5000.
6558 &quot;A String&quot;,
6559 ],
6560 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
6561 # of the traffic.
6562 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
6563 # and there is no srcIpRange, this rule will be ignored.
6564 # Maximum number of source tag values allowed is 256.
6565 {
6566 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
6567 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
6568 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
6569 # or its network is deleted.
6570 },
6571 ],
6572 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
6573 # The IPs in these lists will be matched against traffic source.
6574 &quot;A String&quot;,
6575 ],
6576 },
6577 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
6578 # must be a positive value between 0 and 2147483647.
6579 # Rules are evaluated from highest to lowest priority where 0 is the
6580 # highest priority and 2147483647 is the lowest priority.
6581 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
6582 # and can be updated.
6583 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
6584 # rule.
6585 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
6586 # Example:
6587 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
6588 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
6589 # &#x27;mirror&#x27;. Cannot be specified for other actions.
6590 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
6591 # This field allows you to control which load balancers get this rule.
6592 # For example, the following are valid values:
6593 #
6594 #
6595 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
6596 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
6597 # - projects/project/global/
6598 # forwardingRules/forwardingRule
6599 # - projects/project/regions/region/forwardingRules/
6600 # forwardingRule
6601 &quot;A String&quot;,
6602 ],
6603 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
6604 # allows you to control which network&#x27;s VMs get this rule. If this field
6605 # is left blank, all VMs within the organization will receive the rule.
6606 &quot;A String&quot;,
6607 ],
6608 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
6609 # applies to. If targetSecureTag are specified, then the
6610 # firewall rule applies only to instances in the VPC network that have one
6611 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
6612 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
6613 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
6614 # to all instances on the specified network.
6615 # Maximum number of target label tags allowed is 256.
6616 {
6617 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
6618 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
6619 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
6620 # or its network is deleted.
6621 },
6622 ],
6623 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
6624 # applied with this rule.
6625 &quot;A String&quot;,
6626 ],
6627 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
6628 # Default value is INSTANCES.
6629 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
6630 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
6631 # be set for other actions.
6632 }
6633
6634 priority: integer, The priority of the rule to patch.
6635 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
6636 that if you must retry your request, the server will know to ignore the
6637 request if it has already been completed.
6638
6639 For example, consider a situation where you make an initial request and
6640 the request times out. If you make the request again with the same
6641 request ID, the server can check if original operation with the same
6642 request ID was received, and if so, will ignore the second request. This
6643 prevents clients from accidentally creating duplicate commitments.
6644
6645 The request ID must be
6646 a valid UUID with the exception that zero UUID is not supported
6647 (00000000-0000-0000-0000-000000000000).
6648 x__xgafv: string, V1 error format.
6649 Allowed values
6650 1 - v1 error format
6651 2 - v2 error format
6652
6653 Returns:
6654 An object of the form:
6655
6656 { # Represents an Operation resource.
6657 #
6658 # Google Compute Engine has three Operation resources:
6659 #
6660 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
6661 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
6662 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
6663 #
6664 # You can use an operation resource to manage asynchronous API requests.
6665 # For more information, readHandling
6666 # API responses.
6667 #
6668 # Operations can be global, regional or zonal.
6669 #
6670 # - For global operations, use the `globalOperations`
6671 # resource.
6672 # - For regional operations, use the
6673 # `regionOperations` resource.
6674 # - For zonal operations, use
6675 # the `zoneOperations` resource.
6676 #
6677 #
6678 #
6679 # For more information, read
6680 # Global, Regional, and Zonal Resources.
6681 #
6682 # Note that completed Operation resources have a limited
6683 # retention period.
6684 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
6685 # Not present otherwise.
6686 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
6687 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
6688 # set when the operation is created.
6689 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
6690 # text format.
6691 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
6692 # this field will be populated.
6693 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
6694 # operation.
6695 {
6696 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
6697 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
6698 # details. There is a set of defined message types to use for providing
6699 # details.The syntax depends on the error code. For example,
6700 # QuotaExceededInfo will have details when the error code is
6701 # QUOTA_EXCEEDED.
6702 {
6703 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
6704 #
6705 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
6706 # is not enabled:
6707 #
6708 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
6709 # &quot;domain&quot;: &quot;googleapis.com&quot;
6710 # &quot;metadata&quot;: {
6711 # &quot;resource&quot;: &quot;projects/123&quot;,
6712 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
6713 # }
6714 # }
6715 #
6716 # This response indicates that the pubsub.googleapis.com API is not enabled.
6717 #
6718 # Example of an error that is returned when attempting to create a Spanner
6719 # instance in a region that is out of stock:
6720 #
6721 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
6722 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
6723 # &quot;metadata&quot;: {
6724 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
6725 # }
6726 # }
6727 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
6728 # is typically the registered service name of the tool or product that
6729 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
6730 # generated by some common infrastructure, the error domain must be a
6731 # globally unique value that identifies the infrastructure. For Google API
6732 # infrastructure, the error domain is &quot;googleapis.com&quot;.
6733 &quot;metadatas&quot;: { # Additional structured details about this error.
6734 #
6735 # Keys must match a regular expression of `a-z+` but should
6736 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
6737 # length. When identifying the current value of an exceeded limit, the units
6738 # should be contained in the key, not the value. For example, rather than
6739 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
6740 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
6741 # instances that can be created in a single (batch) request.
6742 &quot;a_key&quot;: &quot;A String&quot;,
6743 },
6744 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
6745 # proximate cause of the error. Error reasons are unique within a particular
6746 # domain of errors. This should be at most 63 characters and match a
6747 # regular expression of `A-Z+[A-Z0-9]`, which represents
6748 # UPPER_SNAKE_CASE.
6749 },
6750 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
6751 #
6752 # For example, if a quota check failed with an error indicating the calling
6753 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
6754 # directly to the right place in the developer console to flip the bit.
6755 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
6756 { # Describes a URL link.
6757 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
6758 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
6759 },
6760 ],
6761 },
6762 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
6763 # which can be attached to an RPC error.
6764 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
6765 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
6766 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
6767 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
6768 },
6769 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
6770 &quot;dimensions&quot;: { # The map holding related quota dimensions.
6771 &quot;a_key&quot;: &quot;A String&quot;,
6772 },
6773 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
6774 # type or metric.
6775 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
6776 # or metric.
6777 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
6778 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
6779 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
6780 },
6781 },
6782 ],
6783 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
6784 # This property is optional.
6785 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
6786 },
6787 ],
6788 },
6789 &quot;getVersionOperationMetadata&quot;: {
6790 &quot;inlineSbomInfo&quot;: {
6791 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
6792 # appropriate identifiers.
6793 &quot;a_key&quot;: &quot;A String&quot;,
6794 },
6795 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
6796 # identifiers.
6797 &quot;a_key&quot;: &quot;A String&quot;,
6798 },
6799 },
6800 },
6801 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
6802 # message that was returned, such as `NOT FOUND`.
6803 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
6804 # status code that was returned. For example, a `404` means the
6805 # resource was not found.
6806 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
6807 # defined by the server.
6808 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
6809 # This value is inRFC3339
6810 # text format.
6811 &quot;instancesBulkInsertOperationMetadata&quot;: {
6812 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
6813 # Example key: zones/us-central1-a
6814 &quot;a_key&quot;: {
6815 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
6816 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
6817 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
6818 # error.
6819 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
6820 # if the flow is rolling forward or rolling back.
6821 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
6822 },
6823 },
6824 },
6825 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
6826 # Operation resources.
6827 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
6828 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
6829 # group of operations results from a `bulkInsert` API request.
6830 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
6831 # `update`, or `delete`, and so on.
6832 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
6833 # There is no requirement that this be linear or support any granularity of
6834 # operations. This should not be used to guess when the operation will be
6835 # complete. This number should monotonically increase as the operation
6836 # progresses.
6837 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
6838 # applicable when performing regional operations.
6839 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
6840 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
6841 # this field will contain information on all underlying zonal actions and
6842 # their state.
6843 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
6844 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
6845 # Example key: zones/us-central1-a
6846 &quot;a_key&quot;: {
6847 &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
6848 # populated.
6849 # different programming environments, including REST APIs and RPC APIs. It is
6850 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
6851 # three pieces of data: error code, error message, and error details.
6852 #
6853 # You can find out more about this error model and how to work with it in the
6854 # [API Design Guide](https://cloud.google.com/apis/design/errors).
6855 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
6856 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
6857 # message types for APIs to use.
6858 {
6859 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
6860 },
6861 ],
6862 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
6863 # user-facing error message should be localized and sent in the
6864 # google.rpc.Status.details field, or localized by the client.
6865 },
6866 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
6867 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
6868 },
6869 },
6870 },
6871 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
6872 # This value is inRFC3339
6873 # text format.
6874 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
6875 # following:
6876 # `PENDING`, `RUNNING`, or `DONE`.
6877 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
6878 # operation.
6879 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
6880 # of the target resource.
6881 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
6882 # operations related to creating a snapshot, this points to the disk
6883 # that the snapshot was created from.
6884 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
6885 # `[email protected]` or
6886 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
6887 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
6888 # operation, this field will be populated.
6889 {
6890 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
6891 # Engine returns NO_RESULTS_ON_PAGE if there
6892 # are no results in the response.
6893 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
6894 # value format. For example:
6895 #
6896 # &quot;data&quot;: [
6897 # {
6898 # &quot;key&quot;: &quot;scope&quot;,
6899 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
6900 # }
6901 {
6902 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
6903 # returned. For example, for warnings where there are no results in a list
6904 # request for a particular zone, this key might be scope and
6905 # the key value might be the zone name. Other examples might be a key
6906 # indicating a deprecated resource and a suggested replacement, or a
6907 # warning about invalid network settings (for example, if an instance
6908 # attempts to perform IP forwarding but is not enabled for IP forwarding).
6909 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
6910 },
6911 ],
6912 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
6913 },
6914 ],
6915 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
6916 # applicable when performing per-zone operations.
6917 }</pre>
6918 </div>
6919
6920 <div class="method">
6921 <code class="details" id="removeAssociation">removeAssociation(project, firewallPolicy, name=None, requestId=None, x__xgafv=None)</code>
6922 <pre>Removes an association for the specified firewall policy.
6923
6924 Args:
6925 project: string, Project ID for this request. (required)
6926 firewallPolicy: string, Name of the firewall policy to update. (required)
6927 name: string, Name for the attachment that will be removed.
6928 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
6929 that if you must retry your request, the server will know to ignore the
6930 request if it has already been completed.
6931
6932 For example, consider a situation where you make an initial request and
6933 the request times out. If you make the request again with the same
6934 request ID, the server can check if original operation with the same
6935 request ID was received, and if so, will ignore the second request. This
6936 prevents clients from accidentally creating duplicate commitments.
6937
6938 The request ID must be
6939 a valid UUID with the exception that zero UUID is not supported
6940 (00000000-0000-0000-0000-000000000000).
6941 x__xgafv: string, V1 error format.
6942 Allowed values
6943 1 - v1 error format
6944 2 - v2 error format
6945
6946 Returns:
6947 An object of the form:
6948
6949 { # Represents an Operation resource.
6950 #
6951 # Google Compute Engine has three Operation resources:
6952 #
6953 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
6954 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
6955 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
6956 #
6957 # You can use an operation resource to manage asynchronous API requests.
6958 # For more information, readHandling
6959 # API responses.
6960 #
6961 # Operations can be global, regional or zonal.
6962 #
6963 # - For global operations, use the `globalOperations`
6964 # resource.
6965 # - For regional operations, use the
6966 # `regionOperations` resource.
6967 # - For zonal operations, use
6968 # the `zoneOperations` resource.
6969 #
6970 #
6971 #
6972 # For more information, read
6973 # Global, Regional, and Zonal Resources.
6974 #
6975 # Note that completed Operation resources have a limited
6976 # retention period.
6977 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
6978 # Not present otherwise.
6979 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
6980 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
6981 # set when the operation is created.
6982 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
6983 # text format.
6984 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
6985 # this field will be populated.
6986 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
6987 # operation.
6988 {
6989 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
6990 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
6991 # details. There is a set of defined message types to use for providing
6992 # details.The syntax depends on the error code. For example,
6993 # QuotaExceededInfo will have details when the error code is
6994 # QUOTA_EXCEEDED.
6995 {
6996 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
6997 #
6998 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
6999 # is not enabled:
7000 #
7001 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
7002 # &quot;domain&quot;: &quot;googleapis.com&quot;
7003 # &quot;metadata&quot;: {
7004 # &quot;resource&quot;: &quot;projects/123&quot;,
7005 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
7006 # }
7007 # }
7008 #
7009 # This response indicates that the pubsub.googleapis.com API is not enabled.
7010 #
7011 # Example of an error that is returned when attempting to create a Spanner
7012 # instance in a region that is out of stock:
7013 #
7014 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
7015 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
7016 # &quot;metadata&quot;: {
7017 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
7018 # }
7019 # }
7020 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
7021 # is typically the registered service name of the tool or product that
7022 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
7023 # generated by some common infrastructure, the error domain must be a
7024 # globally unique value that identifies the infrastructure. For Google API
7025 # infrastructure, the error domain is &quot;googleapis.com&quot;.
7026 &quot;metadatas&quot;: { # Additional structured details about this error.
7027 #
7028 # Keys must match a regular expression of `a-z+` but should
7029 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
7030 # length. When identifying the current value of an exceeded limit, the units
7031 # should be contained in the key, not the value. For example, rather than
7032 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
7033 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
7034 # instances that can be created in a single (batch) request.
7035 &quot;a_key&quot;: &quot;A String&quot;,
7036 },
7037 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
7038 # proximate cause of the error. Error reasons are unique within a particular
7039 # domain of errors. This should be at most 63 characters and match a
7040 # regular expression of `A-Z+[A-Z0-9]`, which represents
7041 # UPPER_SNAKE_CASE.
7042 },
7043 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
7044 #
7045 # For example, if a quota check failed with an error indicating the calling
7046 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
7047 # directly to the right place in the developer console to flip the bit.
7048 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
7049 { # Describes a URL link.
7050 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
7051 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
7052 },
7053 ],
7054 },
7055 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
7056 # which can be attached to an RPC error.
7057 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
7058 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
7059 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
7060 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
7061 },
7062 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
7063 &quot;dimensions&quot;: { # The map holding related quota dimensions.
7064 &quot;a_key&quot;: &quot;A String&quot;,
7065 },
7066 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
7067 # type or metric.
7068 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
7069 # or metric.
7070 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
7071 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
7072 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
7073 },
7074 },
7075 ],
7076 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
7077 # This property is optional.
7078 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
7079 },
7080 ],
7081 },
7082 &quot;getVersionOperationMetadata&quot;: {
7083 &quot;inlineSbomInfo&quot;: {
7084 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
7085 # appropriate identifiers.
7086 &quot;a_key&quot;: &quot;A String&quot;,
7087 },
7088 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
7089 # identifiers.
7090 &quot;a_key&quot;: &quot;A String&quot;,
7091 },
7092 },
7093 },
7094 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
7095 # message that was returned, such as `NOT FOUND`.
7096 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
7097 # status code that was returned. For example, a `404` means the
7098 # resource was not found.
7099 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
7100 # defined by the server.
7101 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
7102 # This value is inRFC3339
7103 # text format.
7104 &quot;instancesBulkInsertOperationMetadata&quot;: {
7105 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
7106 # Example key: zones/us-central1-a
7107 &quot;a_key&quot;: {
7108 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
7109 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
7110 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
7111 # error.
7112 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
7113 # if the flow is rolling forward or rolling back.
7114 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
7115 },
7116 },
7117 },
7118 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
7119 # Operation resources.
7120 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
7121 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
7122 # group of operations results from a `bulkInsert` API request.
7123 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
7124 # `update`, or `delete`, and so on.
7125 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
7126 # There is no requirement that this be linear or support any granularity of
7127 # operations. This should not be used to guess when the operation will be
7128 # complete. This number should monotonically increase as the operation
7129 # progresses.
7130 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
7131 # applicable when performing regional operations.
7132 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
7133 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
7134 # this field will contain information on all underlying zonal actions and
7135 # their state.
7136 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
7137 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
7138 # Example key: zones/us-central1-a
7139 &quot;a_key&quot;: {
7140 &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
7141 # populated.
7142 # different programming environments, including REST APIs and RPC APIs. It is
7143 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
7144 # three pieces of data: error code, error message, and error details.
7145 #
7146 # You can find out more about this error model and how to work with it in the
7147 # [API Design Guide](https://cloud.google.com/apis/design/errors).
7148 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
7149 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
7150 # message types for APIs to use.
7151 {
7152 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
7153 },
7154 ],
7155 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
7156 # user-facing error message should be localized and sent in the
7157 # google.rpc.Status.details field, or localized by the client.
7158 },
7159 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
7160 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
7161 },
7162 },
7163 },
7164 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
7165 # This value is inRFC3339
7166 # text format.
7167 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
7168 # following:
7169 # `PENDING`, `RUNNING`, or `DONE`.
7170 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
7171 # operation.
7172 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
7173 # of the target resource.
7174 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
7175 # operations related to creating a snapshot, this points to the disk
7176 # that the snapshot was created from.
7177 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
7178 # `[email protected]` or
7179 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
7180 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
7181 # operation, this field will be populated.
7182 {
7183 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
7184 # Engine returns NO_RESULTS_ON_PAGE if there
7185 # are no results in the response.
7186 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
7187 # value format. For example:
7188 #
7189 # &quot;data&quot;: [
7190 # {
7191 # &quot;key&quot;: &quot;scope&quot;,
7192 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
7193 # }
7194 {
7195 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
7196 # returned. For example, for warnings where there are no results in a list
7197 # request for a particular zone, this key might be scope and
7198 # the key value might be the zone name. Other examples might be a key
7199 # indicating a deprecated resource and a suggested replacement, or a
7200 # warning about invalid network settings (for example, if an instance
7201 # attempts to perform IP forwarding but is not enabled for IP forwarding).
7202 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
7203 },
7204 ],
7205 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
7206 },
7207 ],
7208 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
7209 # applicable when performing per-zone operations.
7210 }</pre>
7211 </div>
7212
7213 <div class="method">
7214 <code class="details" id="removePacketMirroringRule">removePacketMirroringRule(project, firewallPolicy, priority=None, requestId=None, x__xgafv=None)</code>
7215 <pre>Deletes a packet mirroring rule of the specified priority.
7216
7217 Args:
7218 project: string, Project ID for this request. (required)
7219 firewallPolicy: string, Name of the firewall policy to update. (required)
7220 priority: integer, The priority of the rule to remove from the firewall policy.
7221 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
7222 that if you must retry your request, the server will know to ignore the
7223 request if it has already been completed.
7224
7225 For example, consider a situation where you make an initial request and
7226 the request times out. If you make the request again with the same
7227 request ID, the server can check if original operation with the same
7228 request ID was received, and if so, will ignore the second request. This
7229 prevents clients from accidentally creating duplicate commitments.
7230
7231 The request ID must be
7232 a valid UUID with the exception that zero UUID is not supported
7233 (00000000-0000-0000-0000-000000000000).
7234 x__xgafv: string, V1 error format.
7235 Allowed values
7236 1 - v1 error format
7237 2 - v2 error format
7238
7239 Returns:
7240 An object of the form:
7241
7242 { # Represents an Operation resource.
7243 #
7244 # Google Compute Engine has three Operation resources:
7245 #
7246 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
7247 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
7248 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
7249 #
7250 # You can use an operation resource to manage asynchronous API requests.
7251 # For more information, readHandling
7252 # API responses.
7253 #
7254 # Operations can be global, regional or zonal.
7255 #
7256 # - For global operations, use the `globalOperations`
7257 # resource.
7258 # - For regional operations, use the
7259 # `regionOperations` resource.
7260 # - For zonal operations, use
7261 # the `zoneOperations` resource.
7262 #
7263 #
7264 #
7265 # For more information, read
7266 # Global, Regional, and Zonal Resources.
7267 #
7268 # Note that completed Operation resources have a limited
7269 # retention period.
7270 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
7271 # Not present otherwise.
7272 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
7273 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
7274 # set when the operation is created.
7275 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
7276 # text format.
7277 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
7278 # this field will be populated.
7279 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
7280 # operation.
7281 {
7282 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
7283 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
7284 # details. There is a set of defined message types to use for providing
7285 # details.The syntax depends on the error code. For example,
7286 # QuotaExceededInfo will have details when the error code is
7287 # QUOTA_EXCEEDED.
7288 {
7289 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
7290 #
7291 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
7292 # is not enabled:
7293 #
7294 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
7295 # &quot;domain&quot;: &quot;googleapis.com&quot;
7296 # &quot;metadata&quot;: {
7297 # &quot;resource&quot;: &quot;projects/123&quot;,
7298 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
7299 # }
7300 # }
7301 #
7302 # This response indicates that the pubsub.googleapis.com API is not enabled.
7303 #
7304 # Example of an error that is returned when attempting to create a Spanner
7305 # instance in a region that is out of stock:
7306 #
7307 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
7308 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
7309 # &quot;metadata&quot;: {
7310 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
7311 # }
7312 # }
7313 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
7314 # is typically the registered service name of the tool or product that
7315 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
7316 # generated by some common infrastructure, the error domain must be a
7317 # globally unique value that identifies the infrastructure. For Google API
7318 # infrastructure, the error domain is &quot;googleapis.com&quot;.
7319 &quot;metadatas&quot;: { # Additional structured details about this error.
7320 #
7321 # Keys must match a regular expression of `a-z+` but should
7322 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
7323 # length. When identifying the current value of an exceeded limit, the units
7324 # should be contained in the key, not the value. For example, rather than
7325 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
7326 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
7327 # instances that can be created in a single (batch) request.
7328 &quot;a_key&quot;: &quot;A String&quot;,
7329 },
7330 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
7331 # proximate cause of the error. Error reasons are unique within a particular
7332 # domain of errors. This should be at most 63 characters and match a
7333 # regular expression of `A-Z+[A-Z0-9]`, which represents
7334 # UPPER_SNAKE_CASE.
7335 },
7336 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
7337 #
7338 # For example, if a quota check failed with an error indicating the calling
7339 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
7340 # directly to the right place in the developer console to flip the bit.
7341 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
7342 { # Describes a URL link.
7343 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
7344 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
7345 },
7346 ],
7347 },
7348 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
7349 # which can be attached to an RPC error.
7350 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
7351 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
7352 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
7353 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
7354 },
7355 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
7356 &quot;dimensions&quot;: { # The map holding related quota dimensions.
7357 &quot;a_key&quot;: &quot;A String&quot;,
7358 },
7359 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
7360 # type or metric.
7361 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
7362 # or metric.
7363 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
7364 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
7365 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
7366 },
7367 },
7368 ],
7369 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
7370 # This property is optional.
7371 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
7372 },
7373 ],
7374 },
7375 &quot;getVersionOperationMetadata&quot;: {
7376 &quot;inlineSbomInfo&quot;: {
7377 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
7378 # appropriate identifiers.
7379 &quot;a_key&quot;: &quot;A String&quot;,
7380 },
7381 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
7382 # identifiers.
7383 &quot;a_key&quot;: &quot;A String&quot;,
7384 },
7385 },
7386 },
7387 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
7388 # message that was returned, such as `NOT FOUND`.
7389 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
7390 # status code that was returned. For example, a `404` means the
7391 # resource was not found.
7392 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
7393 # defined by the server.
7394 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
7395 # This value is inRFC3339
7396 # text format.
7397 &quot;instancesBulkInsertOperationMetadata&quot;: {
7398 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
7399 # Example key: zones/us-central1-a
7400 &quot;a_key&quot;: {
7401 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
7402 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
7403 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
7404 # error.
7405 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
7406 # if the flow is rolling forward or rolling back.
7407 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
7408 },
7409 },
7410 },
7411 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
7412 # Operation resources.
7413 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
7414 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
7415 # group of operations results from a `bulkInsert` API request.
7416 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
7417 # `update`, or `delete`, and so on.
7418 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
7419 # There is no requirement that this be linear or support any granularity of
7420 # operations. This should not be used to guess when the operation will be
7421 # complete. This number should monotonically increase as the operation
7422 # progresses.
7423 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
7424 # applicable when performing regional operations.
7425 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
7426 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
7427 # this field will contain information on all underlying zonal actions and
7428 # their state.
7429 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
7430 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
7431 # Example key: zones/us-central1-a
7432 &quot;a_key&quot;: {
7433 &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
7434 # populated.
7435 # different programming environments, including REST APIs and RPC APIs. It is
7436 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
7437 # three pieces of data: error code, error message, and error details.
7438 #
7439 # You can find out more about this error model and how to work with it in the
7440 # [API Design Guide](https://cloud.google.com/apis/design/errors).
7441 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
7442 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
7443 # message types for APIs to use.
7444 {
7445 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
7446 },
7447 ],
7448 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
7449 # user-facing error message should be localized and sent in the
7450 # google.rpc.Status.details field, or localized by the client.
7451 },
7452 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
7453 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
7454 },
7455 },
7456 },
7457 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
7458 # This value is inRFC3339
7459 # text format.
7460 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
7461 # following:
7462 # `PENDING`, `RUNNING`, or `DONE`.
7463 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
7464 # operation.
7465 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
7466 # of the target resource.
7467 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
7468 # operations related to creating a snapshot, this points to the disk
7469 # that the snapshot was created from.
7470 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
7471 # `[email protected]` or
7472 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
7473 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
7474 # operation, this field will be populated.
7475 {
7476 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
7477 # Engine returns NO_RESULTS_ON_PAGE if there
7478 # are no results in the response.
7479 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
7480 # value format. For example:
7481 #
7482 # &quot;data&quot;: [
7483 # {
7484 # &quot;key&quot;: &quot;scope&quot;,
7485 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
7486 # }
7487 {
7488 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
7489 # returned. For example, for warnings where there are no results in a list
7490 # request for a particular zone, this key might be scope and
7491 # the key value might be the zone name. Other examples might be a key
7492 # indicating a deprecated resource and a suggested replacement, or a
7493 # warning about invalid network settings (for example, if an instance
7494 # attempts to perform IP forwarding but is not enabled for IP forwarding).
7495 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
7496 },
7497 ],
7498 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
7499 },
7500 ],
7501 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
7502 # applicable when performing per-zone operations.
7503 }</pre>
7504 </div>
7505
7506 <div class="method">
7507 <code class="details" id="removeRule">removeRule(project, firewallPolicy, priority=None, requestId=None, x__xgafv=None)</code>
7508 <pre>Deletes a rule of the specified priority.
7509
7510 Args:
7511 project: string, Project ID for this request. (required)
7512 firewallPolicy: string, Name of the firewall policy to update. (required)
7513 priority: integer, The priority of the rule to remove from the firewall policy.
7514 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
7515 that if you must retry your request, the server will know to ignore the
7516 request if it has already been completed.
7517
7518 For example, consider a situation where you make an initial request and
7519 the request times out. If you make the request again with the same
7520 request ID, the server can check if original operation with the same
7521 request ID was received, and if so, will ignore the second request. This
7522 prevents clients from accidentally creating duplicate commitments.
7523
7524 The request ID must be
7525 a valid UUID with the exception that zero UUID is not supported
7526 (00000000-0000-0000-0000-000000000000).
7527 x__xgafv: string, V1 error format.
7528 Allowed values
7529 1 - v1 error format
7530 2 - v2 error format
7531
7532 Returns:
7533 An object of the form:
7534
7535 { # Represents an Operation resource.
7536 #
7537 # Google Compute Engine has three Operation resources:
7538 #
7539 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
7540 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
7541 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
7542 #
7543 # You can use an operation resource to manage asynchronous API requests.
7544 # For more information, readHandling
7545 # API responses.
7546 #
7547 # Operations can be global, regional or zonal.
7548 #
7549 # - For global operations, use the `globalOperations`
7550 # resource.
7551 # - For regional operations, use the
7552 # `regionOperations` resource.
7553 # - For zonal operations, use
7554 # the `zoneOperations` resource.
7555 #
7556 #
7557 #
7558 # For more information, read
7559 # Global, Regional, and Zonal Resources.
7560 #
7561 # Note that completed Operation resources have a limited
7562 # retention period.
7563 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
7564 # Not present otherwise.
7565 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
7566 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
7567 # set when the operation is created.
7568 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
7569 # text format.
7570 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
7571 # this field will be populated.
7572 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
7573 # operation.
7574 {
7575 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
7576 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
7577 # details. There is a set of defined message types to use for providing
7578 # details.The syntax depends on the error code. For example,
7579 # QuotaExceededInfo will have details when the error code is
7580 # QUOTA_EXCEEDED.
7581 {
7582 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
7583 #
7584 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
7585 # is not enabled:
7586 #
7587 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
7588 # &quot;domain&quot;: &quot;googleapis.com&quot;
7589 # &quot;metadata&quot;: {
7590 # &quot;resource&quot;: &quot;projects/123&quot;,
7591 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
7592 # }
7593 # }
7594 #
7595 # This response indicates that the pubsub.googleapis.com API is not enabled.
7596 #
7597 # Example of an error that is returned when attempting to create a Spanner
7598 # instance in a region that is out of stock:
7599 #
7600 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
7601 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
7602 # &quot;metadata&quot;: {
7603 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
7604 # }
7605 # }
7606 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
7607 # is typically the registered service name of the tool or product that
7608 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
7609 # generated by some common infrastructure, the error domain must be a
7610 # globally unique value that identifies the infrastructure. For Google API
7611 # infrastructure, the error domain is &quot;googleapis.com&quot;.
7612 &quot;metadatas&quot;: { # Additional structured details about this error.
7613 #
7614 # Keys must match a regular expression of `a-z+` but should
7615 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
7616 # length. When identifying the current value of an exceeded limit, the units
7617 # should be contained in the key, not the value. For example, rather than
7618 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
7619 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
7620 # instances that can be created in a single (batch) request.
7621 &quot;a_key&quot;: &quot;A String&quot;,
7622 },
7623 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
7624 # proximate cause of the error. Error reasons are unique within a particular
7625 # domain of errors. This should be at most 63 characters and match a
7626 # regular expression of `A-Z+[A-Z0-9]`, which represents
7627 # UPPER_SNAKE_CASE.
7628 },
7629 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
7630 #
7631 # For example, if a quota check failed with an error indicating the calling
7632 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
7633 # directly to the right place in the developer console to flip the bit.
7634 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
7635 { # Describes a URL link.
7636 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
7637 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
7638 },
7639 ],
7640 },
7641 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
7642 # which can be attached to an RPC error.
7643 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
7644 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
7645 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
7646 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
7647 },
7648 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
7649 &quot;dimensions&quot;: { # The map holding related quota dimensions.
7650 &quot;a_key&quot;: &quot;A String&quot;,
7651 },
7652 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
7653 # type or metric.
7654 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
7655 # or metric.
7656 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
7657 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
7658 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
7659 },
7660 },
7661 ],
7662 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
7663 # This property is optional.
7664 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
7665 },
7666 ],
7667 },
7668 &quot;getVersionOperationMetadata&quot;: {
7669 &quot;inlineSbomInfo&quot;: {
7670 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
7671 # appropriate identifiers.
7672 &quot;a_key&quot;: &quot;A String&quot;,
7673 },
7674 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
7675 # identifiers.
7676 &quot;a_key&quot;: &quot;A String&quot;,
7677 },
7678 },
7679 },
7680 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
7681 # message that was returned, such as `NOT FOUND`.
7682 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
7683 # status code that was returned. For example, a `404` means the
7684 # resource was not found.
7685 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
7686 # defined by the server.
7687 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
7688 # This value is inRFC3339
7689 # text format.
7690 &quot;instancesBulkInsertOperationMetadata&quot;: {
7691 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
7692 # Example key: zones/us-central1-a
7693 &quot;a_key&quot;: {
7694 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
7695 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
7696 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
7697 # error.
7698 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
7699 # if the flow is rolling forward or rolling back.
7700 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
7701 },
7702 },
7703 },
7704 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
7705 # Operation resources.
7706 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
7707 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
7708 # group of operations results from a `bulkInsert` API request.
7709 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
7710 # `update`, or `delete`, and so on.
7711 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
7712 # There is no requirement that this be linear or support any granularity of
7713 # operations. This should not be used to guess when the operation will be
7714 # complete. This number should monotonically increase as the operation
7715 # progresses.
7716 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
7717 # applicable when performing regional operations.
7718 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
7719 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
7720 # this field will contain information on all underlying zonal actions and
7721 # their state.
7722 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
7723 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
7724 # Example key: zones/us-central1-a
7725 &quot;a_key&quot;: {
7726 &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
7727 # populated.
7728 # different programming environments, including REST APIs and RPC APIs. It is
7729 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
7730 # three pieces of data: error code, error message, and error details.
7731 #
7732 # You can find out more about this error model and how to work with it in the
7733 # [API Design Guide](https://cloud.google.com/apis/design/errors).
7734 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
7735 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
7736 # message types for APIs to use.
7737 {
7738 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
7739 },
7740 ],
7741 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
7742 # user-facing error message should be localized and sent in the
7743 # google.rpc.Status.details field, or localized by the client.
7744 },
7745 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
7746 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
7747 },
7748 },
7749 },
7750 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
7751 # This value is inRFC3339
7752 # text format.
7753 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
7754 # following:
7755 # `PENDING`, `RUNNING`, or `DONE`.
7756 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
7757 # operation.
7758 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
7759 # of the target resource.
7760 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
7761 # operations related to creating a snapshot, this points to the disk
7762 # that the snapshot was created from.
7763 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
7764 # `[email protected]` or
7765 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
7766 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
7767 # operation, this field will be populated.
7768 {
7769 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
7770 # Engine returns NO_RESULTS_ON_PAGE if there
7771 # are no results in the response.
7772 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
7773 # value format. For example:
7774 #
7775 # &quot;data&quot;: [
7776 # {
7777 # &quot;key&quot;: &quot;scope&quot;,
7778 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
7779 # }
7780 {
7781 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
7782 # returned. For example, for warnings where there are no results in a list
7783 # request for a particular zone, this key might be scope and
7784 # the key value might be the zone name. Other examples might be a key
7785 # indicating a deprecated resource and a suggested replacement, or a
7786 # warning about invalid network settings (for example, if an instance
7787 # attempts to perform IP forwarding but is not enabled for IP forwarding).
7788 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
7789 },
7790 ],
7791 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
7792 },
7793 ],
7794 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
7795 # applicable when performing per-zone operations.
7796 }</pre>
7797 </div>
7798
7799 <div class="method">
7800 <code class="details" id="setIamPolicy">setIamPolicy(project, resource, body=None, x__xgafv=None)</code>
7801 <pre>Sets the access control policy on the specified resource.
7802 Replaces any existing policy.
7803
7804 Args:
7805 project: string, Project ID for this request. (required)
7806 resource: string, Name or id of the resource for this request. (required)
7807 body: object, The request body.
7808 The object takes the form of:
7809
7810 {
7811 &quot;bindings&quot;: [ # Flatten Policy to create a backward compatible wire-format.
7812 # Deprecated. Use &#x27;policy&#x27; to specify bindings.
7813 { # Associates `members`, or principals, with a `role`.
7814 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
7815 #
7816 # If the condition evaluates to `true`, then this binding applies to the
7817 # current request.
7818 #
7819 # If the condition evaluates to `false`, then this binding does not apply to
7820 # the current request. However, a different role binding might grant the same
7821 # role to one or more of the principals in this binding.
7822 #
7823 # To learn which resources support conditions in their IAM policies, see the
7824 # [IAM
7825 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7826 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
7827 # are documented at https://github.com/google/cel-spec.
7828 #
7829 # Example (Comparison):
7830 #
7831 # title: &quot;Summary size limit&quot;
7832 # description: &quot;Determines if a summary is less than 100 chars&quot;
7833 # expression: &quot;document.summary.size() &lt; 100&quot;
7834 #
7835 # Example (Equality):
7836 #
7837 # title: &quot;Requestor is owner&quot;
7838 # description: &quot;Determines if requestor is the document owner&quot;
7839 # expression: &quot;document.owner == request.auth.claims.email&quot;
7840 #
7841 # Example (Logic):
7842 #
7843 # title: &quot;Public documents&quot;
7844 # description: &quot;Determine whether the document should be publicly visible&quot;
7845 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
7846 #
7847 # Example (Data Manipulation):
7848 #
7849 # title: &quot;Notification string&quot;
7850 # description: &quot;Create a notification string with a timestamp.&quot;
7851 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
7852 #
7853 # The exact variables and functions that may be referenced within an expression
7854 # are determined by the service that evaluates it. See the service
7855 # documentation for additional information.
7856 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
7857 # describes the expression, e.g. when hovered over it in a UI.
7858 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
7859 # syntax.
7860 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
7861 # reporting, e.g. a file name and a position in the file.
7862 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
7863 # its purpose. This can be used e.g. in UIs which allow to enter the
7864 # expression.
7865 },
7866 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
7867 # `members` can have the following values:
7868 #
7869 # * `allUsers`: A special identifier that represents anyone who is
7870 # on the internet; with or without a Google account.
7871 #
7872 # * `allAuthenticatedUsers`: A special identifier that represents anyone
7873 # who is authenticated with a Google account or a service account.
7874 # Does not include identities that come from external identity providers
7875 # (IdPs) through identity federation.
7876 #
7877 # * `user:{emailid}`: An email address that represents a specific Google
7878 # account. For example, `[email protected]` .
7879 #
7880 #
7881 # * `serviceAccount:{emailid}`: An email address that represents a Google
7882 # service account. For example,
7883 # `[email protected]`.
7884 #
7885 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
7886 # identifier for a
7887 # [Kubernetes service
7888 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
7889 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
7890 #
7891 # * `group:{emailid}`: An email address that represents a Google group.
7892 # For example, `[email protected]`.
7893 #
7894 #
7895 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
7896 # users of that domain. For example, `google.com` or `example.com`.
7897 #
7898 #
7899 #
7900 #
7901 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
7902 # A single identity in a workforce identity pool.
7903 #
7904 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
7905 # All workforce identities in a group.
7906 #
7907 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
7908 # All workforce identities with a specific attribute value.
7909 #
7910 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
7911 # All identities in a workforce identity pool.
7912 #
7913 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
7914 # A single identity in a workload identity pool.
7915 #
7916 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
7917 # A workload identity pool group.
7918 #
7919 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
7920 # All identities in a workload identity pool with a certain attribute.
7921 #
7922 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
7923 # All identities in a workload identity pool.
7924 #
7925 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
7926 # identifier) representing a user that has been recently deleted. For
7927 # example, `[email protected]?uid=123456789012345678901`. If the user is
7928 # recovered, this value reverts to `user:{emailid}` and the recovered user
7929 # retains the role in the binding.
7930 #
7931 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
7932 # unique identifier) representing a service account that has been recently
7933 # deleted. For example,
7934 # `[email protected]?uid=123456789012345678901`.
7935 # If the service account is undeleted, this value reverts to
7936 # `serviceAccount:{emailid}` and the undeleted service account retains the
7937 # role in the binding.
7938 #
7939 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
7940 # identifier) representing a Google group that has been recently
7941 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
7942 # the group is recovered, this value reverts to `group:{emailid}` and the
7943 # recovered group retains the role in the binding.
7944 #
7945 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
7946 # Deleted single identity in a workforce identity pool. For example,
7947 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
7948 &quot;A String&quot;,
7949 ],
7950 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
7951 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
7952 #
7953 # For an overview of the IAM roles and permissions, see the
7954 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
7955 # a list of the available pre-defined roles, see
7956 # [here](https://cloud.google.com/iam/docs/understanding-roles).
7957 },
7958 ],
7959 &quot;etag&quot;: &quot;A String&quot;, # Flatten Policy to create a backward compatible wire-format.
7960 # Deprecated. Use &#x27;policy&#x27; to specify the etag.
7961 &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
7962 # the policy is limited to a few 10s of KB. An empty policy is in general a
7963 # valid policy but certain services (like Projects) might reject them.
7964 # controls for Google Cloud resources.
7965 #
7966 #
7967 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
7968 # `members`, or principals, to a single `role`. Principals can be user
7969 # accounts, service accounts, Google groups, and domains (such as G Suite). A
7970 # `role` is a named list of permissions; each `role` can be an IAM predefined
7971 # role or a user-created custom role.
7972 #
7973 # For some types of Google Cloud resources, a `binding` can also specify a
7974 # `condition`, which is a logical expression that allows access to a resource
7975 # only if the expression evaluates to `true`. A condition can add constraints
7976 # based on attributes of the request, the resource, or both. To learn which
7977 # resources support conditions in their IAM policies, see the
7978 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7979 #
7980 # **JSON example:**
7981 #
7982 # ```
7983 # {
7984 # &quot;bindings&quot;: [
7985 # {
7986 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
7987 # &quot;members&quot;: [
7988 # &quot;user:[email protected]&quot;,
7989 # &quot;group:[email protected]&quot;,
7990 # &quot;domain:google.com&quot;,
7991 # &quot;serviceAccount:[email protected]&quot;
7992 # ]
7993 # },
7994 # {
7995 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
7996 # &quot;members&quot;: [
7997 # &quot;user:[email protected]&quot;
7998 # ],
7999 # &quot;condition&quot;: {
8000 # &quot;title&quot;: &quot;expirable access&quot;,
8001 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
8002 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
8003 # }
8004 # }
8005 # ],
8006 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
8007 # &quot;version&quot;: 3
8008 # }
8009 # ```
8010 #
8011 # **YAML example:**
8012 #
8013 # ```
8014 # bindings:
8015 # - members:
8016 # - user:[email protected]
8017 # - group:[email protected]
8018 # - domain:google.com
8019 # - serviceAccount:[email protected]
8020 # role: roles/resourcemanager.organizationAdmin
8021 # - members:
8022 # - user:[email protected]
8023 # role: roles/resourcemanager.organizationViewer
8024 # condition:
8025 # title: expirable access
8026 # description: Does not grant access after Sep 2020
8027 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
8028 # etag: BwWWja0YfJA=
8029 # version: 3
8030 # ```
8031 #
8032 # For a description of IAM and its features, see the
8033 # [IAM documentation](https://cloud.google.com/iam/docs/).
8034 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
8035 { # Specifies the audit configuration for a service.
8036 # The configuration determines which permission types are logged, and what
8037 # identities, if any, are exempted from logging.
8038 # An AuditConfig must have one or more AuditLogConfigs.
8039 #
8040 # If there are AuditConfigs for both `allServices` and a specific service,
8041 # the union of the two AuditConfigs is used for that service: the log_types
8042 # specified in each AuditConfig are enabled, and the exempted_members in each
8043 # AuditLogConfig are exempted.
8044 #
8045 # Example Policy with multiple AuditConfigs:
8046 #
8047 # {
8048 # &quot;audit_configs&quot;: [
8049 # {
8050 # &quot;service&quot;: &quot;allServices&quot;,
8051 # &quot;audit_log_configs&quot;: [
8052 # {
8053 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
8054 # &quot;exempted_members&quot;: [
8055 # &quot;user:[email protected]&quot;
8056 # ]
8057 # },
8058 # {
8059 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
8060 # },
8061 # {
8062 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
8063 # }
8064 # ]
8065 # },
8066 # {
8067 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
8068 # &quot;audit_log_configs&quot;: [
8069 # {
8070 # &quot;log_type&quot;: &quot;DATA_READ&quot;
8071 # },
8072 # {
8073 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
8074 # &quot;exempted_members&quot;: [
8075 # &quot;user:[email protected]&quot;
8076 # ]
8077 # }
8078 # ]
8079 # }
8080 # ]
8081 # }
8082 #
8083 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
8084 # logging. It also exempts `[email protected]` from DATA_READ logging, and
8085 # `[email protected]` from DATA_WRITE logging.
8086 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
8087 { # Provides the configuration for logging a type of permissions.
8088 # Example:
8089 #
8090 # {
8091 # &quot;audit_log_configs&quot;: [
8092 # {
8093 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
8094 # &quot;exempted_members&quot;: [
8095 # &quot;user:[email protected]&quot;
8096 # ]
8097 # },
8098 # {
8099 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
8100 # }
8101 # ]
8102 # }
8103 #
8104 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
8105 # [email protected] from DATA_READ logging.
8106 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
8107 # permission.
8108 # Follows the same format of Binding.members.
8109 &quot;A String&quot;,
8110 ],
8111 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
8112 },
8113 ],
8114 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
8115 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
8116 # `allServices` is a special value that covers all services.
8117 },
8118 ],
8119 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
8120 # may specify a `condition` that determines how and when the `bindings` are
8121 # applied. Each of the `bindings` must contain at least one principal.
8122 #
8123 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
8124 # of these principals can be Google groups. Each occurrence of a principal
8125 # counts towards these limits. For example, if the `bindings` grant 50
8126 # different roles to `user:[email protected]`, and not to any other
8127 # principal, then you can add another 1,450 principals to the `bindings` in
8128 # the `Policy`.
8129 { # Associates `members`, or principals, with a `role`.
8130 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
8131 #
8132 # If the condition evaluates to `true`, then this binding applies to the
8133 # current request.
8134 #
8135 # If the condition evaluates to `false`, then this binding does not apply to
8136 # the current request. However, a different role binding might grant the same
8137 # role to one or more of the principals in this binding.
8138 #
8139 # To learn which resources support conditions in their IAM policies, see the
8140 # [IAM
8141 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
8142 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
8143 # are documented at https://github.com/google/cel-spec.
8144 #
8145 # Example (Comparison):
8146 #
8147 # title: &quot;Summary size limit&quot;
8148 # description: &quot;Determines if a summary is less than 100 chars&quot;
8149 # expression: &quot;document.summary.size() &lt; 100&quot;
8150 #
8151 # Example (Equality):
8152 #
8153 # title: &quot;Requestor is owner&quot;
8154 # description: &quot;Determines if requestor is the document owner&quot;
8155 # expression: &quot;document.owner == request.auth.claims.email&quot;
8156 #
8157 # Example (Logic):
8158 #
8159 # title: &quot;Public documents&quot;
8160 # description: &quot;Determine whether the document should be publicly visible&quot;
8161 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
8162 #
8163 # Example (Data Manipulation):
8164 #
8165 # title: &quot;Notification string&quot;
8166 # description: &quot;Create a notification string with a timestamp.&quot;
8167 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
8168 #
8169 # The exact variables and functions that may be referenced within an expression
8170 # are determined by the service that evaluates it. See the service
8171 # documentation for additional information.
8172 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
8173 # describes the expression, e.g. when hovered over it in a UI.
8174 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
8175 # syntax.
8176 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
8177 # reporting, e.g. a file name and a position in the file.
8178 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
8179 # its purpose. This can be used e.g. in UIs which allow to enter the
8180 # expression.
8181 },
8182 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
8183 # `members` can have the following values:
8184 #
8185 # * `allUsers`: A special identifier that represents anyone who is
8186 # on the internet; with or without a Google account.
8187 #
8188 # * `allAuthenticatedUsers`: A special identifier that represents anyone
8189 # who is authenticated with a Google account or a service account.
8190 # Does not include identities that come from external identity providers
8191 # (IdPs) through identity federation.
8192 #
8193 # * `user:{emailid}`: An email address that represents a specific Google
8194 # account. For example, `[email protected]` .
8195 #
8196 #
8197 # * `serviceAccount:{emailid}`: An email address that represents a Google
8198 # service account. For example,
8199 # `[email protected]`.
8200 #
8201 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
8202 # identifier for a
8203 # [Kubernetes service
8204 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
8205 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
8206 #
8207 # * `group:{emailid}`: An email address that represents a Google group.
8208 # For example, `[email protected]`.
8209 #
8210 #
8211 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
8212 # users of that domain. For example, `google.com` or `example.com`.
8213 #
8214 #
8215 #
8216 #
8217 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
8218 # A single identity in a workforce identity pool.
8219 #
8220 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
8221 # All workforce identities in a group.
8222 #
8223 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
8224 # All workforce identities with a specific attribute value.
8225 #
8226 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
8227 # All identities in a workforce identity pool.
8228 #
8229 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
8230 # A single identity in a workload identity pool.
8231 #
8232 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
8233 # A workload identity pool group.
8234 #
8235 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
8236 # All identities in a workload identity pool with a certain attribute.
8237 #
8238 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
8239 # All identities in a workload identity pool.
8240 #
8241 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
8242 # identifier) representing a user that has been recently deleted. For
8243 # example, `[email protected]?uid=123456789012345678901`. If the user is
8244 # recovered, this value reverts to `user:{emailid}` and the recovered user
8245 # retains the role in the binding.
8246 #
8247 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
8248 # unique identifier) representing a service account that has been recently
8249 # deleted. For example,
8250 # `[email protected]?uid=123456789012345678901`.
8251 # If the service account is undeleted, this value reverts to
8252 # `serviceAccount:{emailid}` and the undeleted service account retains the
8253 # role in the binding.
8254 #
8255 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
8256 # identifier) representing a Google group that has been recently
8257 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
8258 # the group is recovered, this value reverts to `group:{emailid}` and the
8259 # recovered group retains the role in the binding.
8260 #
8261 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
8262 # Deleted single identity in a workforce identity pool. For example,
8263 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
8264 &quot;A String&quot;,
8265 ],
8266 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
8267 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
8268 #
8269 # For an overview of the IAM roles and permissions, see the
8270 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
8271 # a list of the available pre-defined roles, see
8272 # [here](https://cloud.google.com/iam/docs/understanding-roles).
8273 },
8274 ],
8275 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
8276 # prevent simultaneous updates of a policy from overwriting each other.
8277 # It is strongly suggested that systems make use of the `etag` in the
8278 # read-modify-write cycle to perform policy updates in order to avoid race
8279 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
8280 # systems are expected to put that etag in the request to `setIamPolicy` to
8281 # ensure that their change will be applied to the same version of the policy.
8282 #
8283 # **Important:** If you use IAM Conditions, you must include the `etag` field
8284 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
8285 # you to overwrite a version `3` policy with a version `1` policy, and all of
8286 # the conditions in the version `3` policy are lost.
8287 &quot;version&quot;: 42, # Specifies the format of the policy.
8288 #
8289 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
8290 # are rejected.
8291 #
8292 # Any operation that affects conditional role bindings must specify version
8293 # `3`. This requirement applies to the following operations:
8294 #
8295 # * Getting a policy that includes a conditional role binding
8296 # * Adding a conditional role binding to a policy
8297 # * Changing a conditional role binding in a policy
8298 # * Removing any role binding, with or without a condition, from a policy
8299 # that includes conditions
8300 #
8301 # **Important:** If you use IAM Conditions, you must include the `etag` field
8302 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
8303 # you to overwrite a version `3` policy with a version `1` policy, and all of
8304 # the conditions in the version `3` policy are lost.
8305 #
8306 # If a policy does not include any conditions, operations on that policy may
8307 # specify any valid version or leave the field unset.
8308 #
8309 # To learn which resources support conditions in their IAM policies, see the
8310 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
8311 },
8312 }
8313
8314 x__xgafv: string, V1 error format.
8315 Allowed values
8316 1 - v1 error format
8317 2 - v2 error format
8318
8319 Returns:
8320 An object of the form:
8321
8322 { # An Identity and Access Management (IAM) policy, which specifies access
8323 # controls for Google Cloud resources.
8324 #
8325 #
8326 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
8327 # `members`, or principals, to a single `role`. Principals can be user
8328 # accounts, service accounts, Google groups, and domains (such as G Suite). A
8329 # `role` is a named list of permissions; each `role` can be an IAM predefined
8330 # role or a user-created custom role.
8331 #
8332 # For some types of Google Cloud resources, a `binding` can also specify a
8333 # `condition`, which is a logical expression that allows access to a resource
8334 # only if the expression evaluates to `true`. A condition can add constraints
8335 # based on attributes of the request, the resource, or both. To learn which
8336 # resources support conditions in their IAM policies, see the
8337 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
8338 #
8339 # **JSON example:**
8340 #
8341 # ```
8342 # {
8343 # &quot;bindings&quot;: [
8344 # {
8345 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
8346 # &quot;members&quot;: [
8347 # &quot;user:[email protected]&quot;,
8348 # &quot;group:[email protected]&quot;,
8349 # &quot;domain:google.com&quot;,
8350 # &quot;serviceAccount:[email protected]&quot;
8351 # ]
8352 # },
8353 # {
8354 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
8355 # &quot;members&quot;: [
8356 # &quot;user:[email protected]&quot;
8357 # ],
8358 # &quot;condition&quot;: {
8359 # &quot;title&quot;: &quot;expirable access&quot;,
8360 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
8361 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
8362 # }
8363 # }
8364 # ],
8365 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
8366 # &quot;version&quot;: 3
8367 # }
8368 # ```
8369 #
8370 # **YAML example:**
8371 #
8372 # ```
8373 # bindings:
8374 # - members:
8375 # - user:[email protected]
8376 # - group:[email protected]
8377 # - domain:google.com
8378 # - serviceAccount:[email protected]
8379 # role: roles/resourcemanager.organizationAdmin
8380 # - members:
8381 # - user:[email protected]
8382 # role: roles/resourcemanager.organizationViewer
8383 # condition:
8384 # title: expirable access
8385 # description: Does not grant access after Sep 2020
8386 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
8387 # etag: BwWWja0YfJA=
8388 # version: 3
8389 # ```
8390 #
8391 # For a description of IAM and its features, see the
8392 # [IAM documentation](https://cloud.google.com/iam/docs/).
8393 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
8394 { # Specifies the audit configuration for a service.
8395 # The configuration determines which permission types are logged, and what
8396 # identities, if any, are exempted from logging.
8397 # An AuditConfig must have one or more AuditLogConfigs.
8398 #
8399 # If there are AuditConfigs for both `allServices` and a specific service,
8400 # the union of the two AuditConfigs is used for that service: the log_types
8401 # specified in each AuditConfig are enabled, and the exempted_members in each
8402 # AuditLogConfig are exempted.
8403 #
8404 # Example Policy with multiple AuditConfigs:
8405 #
8406 # {
8407 # &quot;audit_configs&quot;: [
8408 # {
8409 # &quot;service&quot;: &quot;allServices&quot;,
8410 # &quot;audit_log_configs&quot;: [
8411 # {
8412 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
8413 # &quot;exempted_members&quot;: [
8414 # &quot;user:[email protected]&quot;
8415 # ]
8416 # },
8417 # {
8418 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
8419 # },
8420 # {
8421 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
8422 # }
8423 # ]
8424 # },
8425 # {
8426 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
8427 # &quot;audit_log_configs&quot;: [
8428 # {
8429 # &quot;log_type&quot;: &quot;DATA_READ&quot;
8430 # },
8431 # {
8432 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
8433 # &quot;exempted_members&quot;: [
8434 # &quot;user:[email protected]&quot;
8435 # ]
8436 # }
8437 # ]
8438 # }
8439 # ]
8440 # }
8441 #
8442 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
8443 # logging. It also exempts `[email protected]` from DATA_READ logging, and
8444 # `[email protected]` from DATA_WRITE logging.
8445 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
8446 { # Provides the configuration for logging a type of permissions.
8447 # Example:
8448 #
8449 # {
8450 # &quot;audit_log_configs&quot;: [
8451 # {
8452 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
8453 # &quot;exempted_members&quot;: [
8454 # &quot;user:[email protected]&quot;
8455 # ]
8456 # },
8457 # {
8458 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
8459 # }
8460 # ]
8461 # }
8462 #
8463 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
8464 # [email protected] from DATA_READ logging.
8465 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
8466 # permission.
8467 # Follows the same format of Binding.members.
8468 &quot;A String&quot;,
8469 ],
8470 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
8471 },
8472 ],
8473 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
8474 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
8475 # `allServices` is a special value that covers all services.
8476 },
8477 ],
8478 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
8479 # may specify a `condition` that determines how and when the `bindings` are
8480 # applied. Each of the `bindings` must contain at least one principal.
8481 #
8482 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
8483 # of these principals can be Google groups. Each occurrence of a principal
8484 # counts towards these limits. For example, if the `bindings` grant 50
8485 # different roles to `user:[email protected]`, and not to any other
8486 # principal, then you can add another 1,450 principals to the `bindings` in
8487 # the `Policy`.
8488 { # Associates `members`, or principals, with a `role`.
8489 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
8490 #
8491 # If the condition evaluates to `true`, then this binding applies to the
8492 # current request.
8493 #
8494 # If the condition evaluates to `false`, then this binding does not apply to
8495 # the current request. However, a different role binding might grant the same
8496 # role to one or more of the principals in this binding.
8497 #
8498 # To learn which resources support conditions in their IAM policies, see the
8499 # [IAM
8500 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
8501 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
8502 # are documented at https://github.com/google/cel-spec.
8503 #
8504 # Example (Comparison):
8505 #
8506 # title: &quot;Summary size limit&quot;
8507 # description: &quot;Determines if a summary is less than 100 chars&quot;
8508 # expression: &quot;document.summary.size() &lt; 100&quot;
8509 #
8510 # Example (Equality):
8511 #
8512 # title: &quot;Requestor is owner&quot;
8513 # description: &quot;Determines if requestor is the document owner&quot;
8514 # expression: &quot;document.owner == request.auth.claims.email&quot;
8515 #
8516 # Example (Logic):
8517 #
8518 # title: &quot;Public documents&quot;
8519 # description: &quot;Determine whether the document should be publicly visible&quot;
8520 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
8521 #
8522 # Example (Data Manipulation):
8523 #
8524 # title: &quot;Notification string&quot;
8525 # description: &quot;Create a notification string with a timestamp.&quot;
8526 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
8527 #
8528 # The exact variables and functions that may be referenced within an expression
8529 # are determined by the service that evaluates it. See the service
8530 # documentation for additional information.
8531 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
8532 # describes the expression, e.g. when hovered over it in a UI.
8533 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
8534 # syntax.
8535 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
8536 # reporting, e.g. a file name and a position in the file.
8537 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
8538 # its purpose. This can be used e.g. in UIs which allow to enter the
8539 # expression.
8540 },
8541 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
8542 # `members` can have the following values:
8543 #
8544 # * `allUsers`: A special identifier that represents anyone who is
8545 # on the internet; with or without a Google account.
8546 #
8547 # * `allAuthenticatedUsers`: A special identifier that represents anyone
8548 # who is authenticated with a Google account or a service account.
8549 # Does not include identities that come from external identity providers
8550 # (IdPs) through identity federation.
8551 #
8552 # * `user:{emailid}`: An email address that represents a specific Google
8553 # account. For example, `[email protected]` .
8554 #
8555 #
8556 # * `serviceAccount:{emailid}`: An email address that represents a Google
8557 # service account. For example,
8558 # `[email protected]`.
8559 #
8560 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
8561 # identifier for a
8562 # [Kubernetes service
8563 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
8564 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
8565 #
8566 # * `group:{emailid}`: An email address that represents a Google group.
8567 # For example, `[email protected]`.
8568 #
8569 #
8570 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
8571 # users of that domain. For example, `google.com` or `example.com`.
8572 #
8573 #
8574 #
8575 #
8576 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
8577 # A single identity in a workforce identity pool.
8578 #
8579 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
8580 # All workforce identities in a group.
8581 #
8582 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
8583 # All workforce identities with a specific attribute value.
8584 #
8585 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
8586 # All identities in a workforce identity pool.
8587 #
8588 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
8589 # A single identity in a workload identity pool.
8590 #
8591 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
8592 # A workload identity pool group.
8593 #
8594 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
8595 # All identities in a workload identity pool with a certain attribute.
8596 #
8597 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
8598 # All identities in a workload identity pool.
8599 #
8600 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
8601 # identifier) representing a user that has been recently deleted. For
8602 # example, `[email protected]?uid=123456789012345678901`. If the user is
8603 # recovered, this value reverts to `user:{emailid}` and the recovered user
8604 # retains the role in the binding.
8605 #
8606 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
8607 # unique identifier) representing a service account that has been recently
8608 # deleted. For example,
8609 # `[email protected]?uid=123456789012345678901`.
8610 # If the service account is undeleted, this value reverts to
8611 # `serviceAccount:{emailid}` and the undeleted service account retains the
8612 # role in the binding.
8613 #
8614 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
8615 # identifier) representing a Google group that has been recently
8616 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
8617 # the group is recovered, this value reverts to `group:{emailid}` and the
8618 # recovered group retains the role in the binding.
8619 #
8620 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
8621 # Deleted single identity in a workforce identity pool. For example,
8622 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
8623 &quot;A String&quot;,
8624 ],
8625 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
8626 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
8627 #
8628 # For an overview of the IAM roles and permissions, see the
8629 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
8630 # a list of the available pre-defined roles, see
8631 # [here](https://cloud.google.com/iam/docs/understanding-roles).
8632 },
8633 ],
8634 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
8635 # prevent simultaneous updates of a policy from overwriting each other.
8636 # It is strongly suggested that systems make use of the `etag` in the
8637 # read-modify-write cycle to perform policy updates in order to avoid race
8638 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
8639 # systems are expected to put that etag in the request to `setIamPolicy` to
8640 # ensure that their change will be applied to the same version of the policy.
8641 #
8642 # **Important:** If you use IAM Conditions, you must include the `etag` field
8643 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
8644 # you to overwrite a version `3` policy with a version `1` policy, and all of
8645 # the conditions in the version `3` policy are lost.
8646 &quot;version&quot;: 42, # Specifies the format of the policy.
8647 #
8648 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
8649 # are rejected.
8650 #
8651 # Any operation that affects conditional role bindings must specify version
8652 # `3`. This requirement applies to the following operations:
8653 #
8654 # * Getting a policy that includes a conditional role binding
8655 # * Adding a conditional role binding to a policy
8656 # * Changing a conditional role binding in a policy
8657 # * Removing any role binding, with or without a condition, from a policy
8658 # that includes conditions
8659 #
8660 # **Important:** If you use IAM Conditions, you must include the `etag` field
8661 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
8662 # you to overwrite a version `3` policy with a version `1` policy, and all of
8663 # the conditions in the version `3` policy are lost.
8664 #
8665 # If a policy does not include any conditions, operations on that policy may
8666 # specify any valid version or leave the field unset.
8667 #
8668 # To learn which resources support conditions in their IAM policies, see the
8669 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
8670 }</pre>
8671 </div>
8672
8673 <div class="method">
8674 <code class="details" id="testIamPermissions">testIamPermissions(project, resource, body=None, x__xgafv=None)</code>
8675 <pre>Returns permissions that a caller has on the specified resource.
8676
8677 Args:
8678 project: string, Project ID for this request. (required)
8679 resource: string, Name or id of the resource for this request. (required)
8680 body: object, The request body.
8681 The object takes the form of:
8682
8683 {
8684 &quot;permissions&quot;: [ # The set of permissions to check for the &#x27;resource&#x27;. Permissions with
8685 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed.
8686 &quot;A String&quot;,
8687 ],
8688 }
8689
8690 x__xgafv: string, V1 error format.
8691 Allowed values
8692 1 - v1 error format
8693 2 - v2 error format
8694
8695 Returns:
8696 An object of the form:
8697
8698 {
8699 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
8700 # allowed.
8701 &quot;A String&quot;,
8702 ],
8703 }</pre>
8704 </div>
8705
8706 </body></html>