Debian Codegraph @

docs/dyn/compute_v1.firewallPolicies.html

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