Debian Codegraph @

docs/dyn/compute_alpha.regionNetworkFirewallPolicies.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="compute_alpha.html">Compute Engine API</a> . <a href="compute_alpha.regionNetworkFirewallPolicies.html">regionNetworkFirewallPolicies</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#addAssociation">addAssociation(project, region, firewallPolicy, associatedPolicyToBeReplaced=None, body=None, replaceExistingAssociation=None, requestId=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Inserts an association for the specified network firewall policy.</p>
80 <p class="toc_element">
81 <code><a href="#addRule">addRule(project, region, firewallPolicy, body=None, maxPriority=None, minPriority=None, requestId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Inserts a rule into a network firewall policy.</p>
83 <p class="toc_element">
84 <code><a href="#cloneRules">cloneRules(project, region, firewallPolicy, requestId=None, sourceFirewallPolicy=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Copies rules to the specified network firewall policy.</p>
86 <p class="toc_element">
87 <code><a href="#close">close()</a></code></p>
88 <p class="firstline">Close httplib2 connections.</p>
89 <p class="toc_element">
90 <code><a href="#delete">delete(project, region, firewallPolicy, requestId=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Deletes the specified network firewall policy.</p>
92 <p class="toc_element">
93 <code><a href="#get">get(project, region, firewallPolicy, x__xgafv=None)</a></code></p>
94 <p class="firstline">Returns the specified network firewall policy.</p>
95 <p class="toc_element">
96 <code><a href="#getAssociation">getAssociation(project, region, firewallPolicy, name=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Gets an association with the specified name.</p>
98 <p class="toc_element">
99 <code><a href="#getEffectiveFirewalls">getEffectiveFirewalls(project, region, network, x__xgafv=None)</a></code></p>
100 <p class="firstline">Returns the effective firewalls on a given network.</p>
101 <p class="toc_element">
102 <code><a href="#getIamPolicy">getIamPolicy(project, region, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Gets the access control policy for a resource. May be empty if no such</p>
104 <p class="toc_element">
105 <code><a href="#getRule">getRule(project, region, firewallPolicy, priority=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Gets a rule of the specified priority.</p>
107 <p class="toc_element">
108 <code><a href="#insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</a></code></p>
109 <p class="firstline">Creates a new network firewall policy in the specified project and region.</p>
110 <p class="toc_element">
111 <code><a href="#list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p>
112 <p class="firstline">Lists all the network firewall policies that have been configured</p>
113 <p class="toc_element">
114 <code><a href="#list_next">list_next()</a></code></p>
115 <p class="firstline">Retrieves the next page of results.</p>
116 <p class="toc_element">
117 <code><a href="#patch">patch(project, region, firewallPolicy, body=None, requestId=None, x__xgafv=None)</a></code></p>
118 <p class="firstline">Patches the specified network firewall policy.</p>
119 <p class="toc_element">
120 <code><a href="#patchAssociation">patchAssociation(project, region, firewallPolicy, body=None, requestId=None, x__xgafv=None)</a></code></p>
121 <p class="firstline">Updates an association for the specified network firewall policy.</p>
122 <p class="toc_element">
123 <code><a href="#patchRule">patchRule(project, region, firewallPolicy, body=None, priority=None, requestId=None, x__xgafv=None)</a></code></p>
124 <p class="firstline">Patches a rule of the specified priority.</p>
125 <p class="toc_element">
126 <code><a href="#removeAssociation">removeAssociation(project, region, firewallPolicy, name=None, requestId=None, x__xgafv=None)</a></code></p>
127 <p class="firstline">Removes an association for the specified network firewall policy.</p>
128 <p class="toc_element">
129 <code><a href="#removeRule">removeRule(project, region, firewallPolicy, priority=None, requestId=None, x__xgafv=None)</a></code></p>
130 <p class="firstline">Deletes a rule of the specified priority.</p>
131 <p class="toc_element">
132 <code><a href="#setIamPolicy">setIamPolicy(project, region, resource, body=None, x__xgafv=None)</a></code></p>
133 <p class="firstline">Sets the access control policy on the specified resource.</p>
134 <p class="toc_element">
135 <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</a></code></p>
136 <p class="firstline">Returns permissions that a caller has on the specified resource.</p>
137 <h3>Method Details</h3>
138 <div class="method">
139 <code class="details" id="addAssociation">addAssociation(project, region, firewallPolicy, associatedPolicyToBeReplaced=None, body=None, replaceExistingAssociation=None, requestId=None, x__xgafv=None)</code>
140 <pre>Inserts an association for the specified network firewall policy.
141
142 Args:
143 project: string, Project ID for this request. (required)
144 region: string, Name of the region scoping this request. (required)
145 firewallPolicy: string, Name of the firewall policy to update. (required)
146 body: object, The request body.
147 The object takes the form of:
148
149 {
150 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
151 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
152 # of the firewall policy of the association.
153 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
154 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
155 &quot;priority&quot;: 42, # An integer indicating the priority of an association. The priority
156 # must be a positive value between 1 and 2147483647.
157 # Firewall Policies are evaluated from highest to lowest priority where 1
158 # is the highest priority and 2147483647 is the lowest priority.
159 # The default value is `1000`. If two associations have the same priority
160 # then lexicographical order on association names is applied.
161 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
162 }
163
164 associatedPolicyToBeReplaced: string, Name of the firewall policy associated with the target network to swap
165 association with. This field is mutually exclusive with
166 &#x27;replace_existing_association&#x27;.
167 replaceExistingAssociation: boolean, Indicates whether or not to replace it if an association already exists.
168 This is false by default, in which case an error will be returned if an
169 association already exists.
170 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
171 that if you must retry your request, the server will know to ignore the
172 request if it has already been completed.
173
174 For example, consider a situation where you make an initial request and
175 the request times out. If you make the request again with the same
176 request ID, the server can check if original operation with the same
177 request ID was received, and if so, will ignore the second request. This
178 prevents clients from accidentally creating duplicate commitments.
179
180 The request ID must be
181 a valid UUID with the exception that zero UUID is not supported
182 (00000000-0000-0000-0000-000000000000).
183 x__xgafv: string, V1 error format.
184 Allowed values
185 1 - v1 error format
186 2 - v2 error format
187
188 Returns:
189 An object of the form:
190
191 { # Represents an Operation resource.
192 #
193 # Google Compute Engine has three Operation resources:
194 #
195 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
196 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
197 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
198 #
199 # You can use an operation resource to manage asynchronous API requests.
200 # For more information, readHandling
201 # API responses.
202 #
203 # Operations can be global, regional or zonal.
204 #
205 # - For global operations, use the `globalOperations`
206 # resource.
207 # - For regional operations, use the
208 # `regionOperations` resource.
209 # - For zonal operations, use
210 # the `zoneOperations` resource.
211 #
212 #
213 #
214 # For more information, read
215 # Global, Regional, and Zonal Resources.
216 #
217 # Note that completed Operation resources have a limited
218 # retention period.
219 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
220 # Not present otherwise.
221 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
222 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
223 # set when the operation is created.
224 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
225 # text format.
226 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
227 # this field will be populated.
228 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
229 # operation.
230 {
231 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
232 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
233 # details. There is a set of defined message types to use for providing
234 # details.The syntax depends on the error code. For example,
235 # QuotaExceededInfo will have details when the error code is
236 # QUOTA_EXCEEDED.
237 {
238 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
239 #
240 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
241 # is not enabled:
242 #
243 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
244 # &quot;domain&quot;: &quot;googleapis.com&quot;
245 # &quot;metadata&quot;: {
246 # &quot;resource&quot;: &quot;projects/123&quot;,
247 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
248 # }
249 # }
250 #
251 # This response indicates that the pubsub.googleapis.com API is not enabled.
252 #
253 # Example of an error that is returned when attempting to create a Spanner
254 # instance in a region that is out of stock:
255 #
256 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
257 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
258 # &quot;metadata&quot;: {
259 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
260 # }
261 # }
262 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
263 # is typically the registered service name of the tool or product that
264 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
265 # generated by some common infrastructure, the error domain must be a
266 # globally unique value that identifies the infrastructure. For Google API
267 # infrastructure, the error domain is &quot;googleapis.com&quot;.
268 &quot;metadatas&quot;: { # Additional structured details about this error.
269 #
270 # Keys must match a regular expression of `a-z+` but should
271 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
272 # length. When identifying the current value of an exceeded limit, the units
273 # should be contained in the key, not the value. For example, rather than
274 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
275 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
276 # instances that can be created in a single (batch) request.
277 &quot;a_key&quot;: &quot;A String&quot;,
278 },
279 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
280 # proximate cause of the error. Error reasons are unique within a particular
281 # domain of errors. This should be at most 63 characters and match a
282 # regular expression of `A-Z+[A-Z0-9]`, which represents
283 # UPPER_SNAKE_CASE.
284 },
285 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
286 #
287 # For example, if a quota check failed with an error indicating the calling
288 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
289 # directly to the right place in the developer console to flip the bit.
290 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
291 { # Describes a URL link.
292 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
293 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
294 },
295 ],
296 },
297 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
298 # which can be attached to an RPC error.
299 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
300 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
301 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
302 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
303 },
304 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
305 &quot;dimensions&quot;: { # The map holding related quota dimensions.
306 &quot;a_key&quot;: &quot;A String&quot;,
307 },
308 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
309 # type or metric.
310 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
311 # or metric.
312 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
313 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
314 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
315 },
316 },
317 ],
318 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
319 # This property is optional.
320 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
321 },
322 ],
323 },
324 &quot;getVersionOperationMetadata&quot;: {
325 &quot;inlineSbomInfo&quot;: {
326 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
327 # appropriate identifiers.
328 &quot;a_key&quot;: &quot;A String&quot;,
329 },
330 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
331 # identifiers.
332 &quot;a_key&quot;: &quot;A String&quot;,
333 },
334 },
335 },
336 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
337 # message that was returned, such as `NOT FOUND`.
338 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
339 # status code that was returned. For example, a `404` means the
340 # resource was not found.
341 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
342 # defined by the server.
343 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
344 # This value is inRFC3339
345 # text format.
346 &quot;instancesBulkInsertOperationMetadata&quot;: {
347 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
348 # Example key: zones/us-central1-a
349 &quot;a_key&quot;: {
350 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
351 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
352 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
353 # error.
354 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
355 # if the flow is rolling forward or rolling back.
356 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
357 },
358 },
359 },
360 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
361 # Operation resources.
362 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
363 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
364 # group of operations results from a `bulkInsert` API request.
365 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
366 # `update`, or `delete`, and so on.
367 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
368 # There is no requirement that this be linear or support any granularity of
369 # operations. This should not be used to guess when the operation will be
370 # complete. This number should monotonically increase as the operation
371 # progresses.
372 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
373 # applicable when performing regional operations.
374 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
375 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
376 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
377 # this field will contain information on all underlying zonal actions and
378 # their state.
379 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
380 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
381 # Example key: zones/us-central1-a
382 &quot;a_key&quot;: {
383 &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
384 # populated.
385 # different programming environments, including REST APIs and RPC APIs. It is
386 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
387 # three pieces of data: error code, error message, and error details.
388 #
389 # You can find out more about this error model and how to work with it in the
390 # [API Design Guide](https://cloud.google.com/apis/design/errors).
391 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
392 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
393 # message types for APIs to use.
394 {
395 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
396 },
397 ],
398 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
399 # user-facing error message should be localized and sent in the
400 # google.rpc.Status.details field, or localized by the client.
401 },
402 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
403 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
404 },
405 },
406 },
407 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
408 # This value is inRFC3339
409 # text format.
410 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
411 # following:
412 # `PENDING`, `RUNNING`, or `DONE`.
413 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
414 # operation.
415 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
416 # of the target resource.
417 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
418 # operations related to creating a snapshot, this points to the disk
419 # that the snapshot was created from.
420 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
421 # `[email protected]` or
422 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
423 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
424 # operation, this field will be populated.
425 {
426 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
427 # Engine returns NO_RESULTS_ON_PAGE if there
428 # are no results in the response.
429 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
430 # value format. For example:
431 #
432 # &quot;data&quot;: [
433 # {
434 # &quot;key&quot;: &quot;scope&quot;,
435 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
436 # }
437 {
438 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
439 # returned. For example, for warnings where there are no results in a list
440 # request for a particular zone, this key might be scope and
441 # the key value might be the zone name. Other examples might be a key
442 # indicating a deprecated resource and a suggested replacement, or a
443 # warning about invalid network settings (for example, if an instance
444 # attempts to perform IP forwarding but is not enabled for IP forwarding).
445 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
446 },
447 ],
448 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
449 },
450 ],
451 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
452 # applicable when performing per-zone operations.
453 }</pre>
454 </div>
455
456 <div class="method">
457 <code class="details" id="addRule">addRule(project, region, firewallPolicy, body=None, maxPriority=None, minPriority=None, requestId=None, x__xgafv=None)</code>
458 <pre>Inserts a rule into a network firewall policy.
459
460 Args:
461 project: string, Project ID for this request. (required)
462 region: string, Name of the region scoping this request. (required)
463 firewallPolicy: string, Name of the firewall policy to update. (required)
464 body: object, The request body.
465 The object takes the form of:
466
467 { # Represents a rule that describes one or more match conditions along with
468 # the action to be taken when traffic matches this condition (allow or deny).
469 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
470 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
471 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
472 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
473 # and &quot;goto_next&quot;.
474 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
475 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
476 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
477 # the firewall policy rule is not enforced and traffic behaves as if it did
478 # not exist. If this is unspecified, the firewall policy rule will be
479 # enabled.
480 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
481 # enabled, logs will be exported to the configured export destination in
482 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
483 # cannot enable logging on &quot;goto_next&quot; rules.
484 &quot;kind&quot;: &quot;compute#firewallPolicyRule&quot;, # Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules andcompute#packetMirroringRule for packet mirroring rules.
485 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
486 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
487 # Exactly one field must be specified.
488 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
489 # Maximum number of destination address groups is 10.
490 &quot;A String&quot;,
491 ],
492 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
493 # traffic destination.
494 # Maximum number of destination fqdn allowed is 100.
495 &quot;A String&quot;,
496 ],
497 &quot;destIpRanges&quot;: [ # CIDR IP address range.
498 # Maximum number of destination CIDR IP ranges allowed is 5000.
499 &quot;A String&quot;,
500 ],
501 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
502 #
503 #
504 # - UNSPECIFIED
505 # - INTERNET
506 # - NON_INTERNET
507 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
508 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
509 #
510 #
511 # - UNSPECIFIED
512 # - INTERNET
513 # - NON_INTERNET
514 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
515 # of traffic. Should be specified as 2 letter country code defined as per
516 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
517 # Maximum number of dest region codes allowed is 5000.
518 &quot;A String&quot;,
519 ],
520 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
521 # The IPs in these lists will be matched against traffic destination.
522 &quot;A String&quot;,
523 ],
524 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
525 {
526 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
527 # required when creating a firewall rule. This value can either be
528 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
529 # protocol number.
530 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
531 # only applicable for UDP or TCP protocol. Each entry must be either
532 # an integer or a range. If not specified, this rule applies to
533 # connections through any port.
534 #
535 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
536 &quot;A String&quot;,
537 ],
538 },
539 ],
540 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
541 # Maximum number of source address groups is 10.
542 &quot;A String&quot;,
543 ],
544 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
545 # traffic source.
546 # Maximum number of source fqdn allowed is 100.
547 &quot;A String&quot;,
548 ],
549 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
550 # Maximum number of source CIDR IP ranges allowed is 5000.
551 &quot;A String&quot;,
552 ],
553 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
554 #
555 #
556 # - UNSPECIFIED
557 # - INTERNET
558 # - INTRA_VPC
559 # - NON_INTERNET
560 # - VPC_NETWORKS
561 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
562 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
563 #
564 #
565 # - UNSPECIFIED
566 # - INTERNET
567 # - INTRA_VPC
568 # - NON_INTERNET
569 # - VPC_NETWORKS
570 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
571 &quot;A String&quot;,
572 ],
573 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
574 # of traffic. Should be specified as 2 letter country code defined as per
575 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
576 # Maximum number of source region codes allowed is 5000.
577 &quot;A String&quot;,
578 ],
579 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
580 # of the traffic.
581 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
582 # and there is no srcIpRange, this rule will be ignored.
583 # Maximum number of source tag values allowed is 256.
584 {
585 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
586 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
587 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
588 # or its network is deleted.
589 },
590 ],
591 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
592 # The IPs in these lists will be matched against traffic source.
593 &quot;A String&quot;,
594 ],
595 },
596 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
597 # must be a positive value between 0 and 2147483647.
598 # Rules are evaluated from highest to lowest priority where 0 is the
599 # highest priority and 2147483647 is the lowest priority.
600 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
601 # and can be updated.
602 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
603 # rule.
604 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
605 # Example:
606 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
607 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
608 # &#x27;mirror&#x27;. Cannot be specified for other actions.
609 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
610 # This field allows you to control which load balancers get this rule.
611 # For example, the following are valid values:
612 #
613 #
614 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
615 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
616 # - projects/project/global/
617 # forwardingRules/forwardingRule
618 # - projects/project/regions/region/forwardingRules/
619 # forwardingRule
620 &quot;A String&quot;,
621 ],
622 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
623 # allows you to control which network&#x27;s VMs get this rule. If this field
624 # is left blank, all VMs within the organization will receive the rule.
625 &quot;A String&quot;,
626 ],
627 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
628 # applies to. If targetSecureTag are specified, then the
629 # firewall rule applies only to instances in the VPC network that have one
630 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
631 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
632 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
633 # to all instances on the specified network.
634 # Maximum number of target label tags allowed is 256.
635 {
636 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
637 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
638 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
639 # or its network is deleted.
640 },
641 ],
642 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
643 # applied with this rule.
644 &quot;A String&quot;,
645 ],
646 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
647 # Default value is INSTANCES.
648 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
649 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
650 # be set for other actions.
651 }
652
653 maxPriority: integer, When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority&gt;.
654 This field is exclusive with rule.priority.
655 minPriority: integer, When rule.priority is not specified, auto choose a unused priority betweenminPriority and maxPriority&gt;.
656 This field is exclusive with rule.priority.
657 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
658 that if you must retry your request, the server will know to ignore the
659 request if it has already been completed.
660
661 For example, consider a situation where you make an initial request and
662 the request times out. If you make the request again with the same
663 request ID, the server can check if original operation with the same
664 request ID was received, and if so, will ignore the second request. This
665 prevents clients from accidentally creating duplicate commitments.
666
667 The request ID must be
668 a valid UUID with the exception that zero UUID is not supported
669 (00000000-0000-0000-0000-000000000000).
670 x__xgafv: string, V1 error format.
671 Allowed values
672 1 - v1 error format
673 2 - v2 error format
674
675 Returns:
676 An object of the form:
677
678 { # Represents an Operation resource.
679 #
680 # Google Compute Engine has three Operation resources:
681 #
682 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
683 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
684 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
685 #
686 # You can use an operation resource to manage asynchronous API requests.
687 # For more information, readHandling
688 # API responses.
689 #
690 # Operations can be global, regional or zonal.
691 #
692 # - For global operations, use the `globalOperations`
693 # resource.
694 # - For regional operations, use the
695 # `regionOperations` resource.
696 # - For zonal operations, use
697 # the `zoneOperations` resource.
698 #
699 #
700 #
701 # For more information, read
702 # Global, Regional, and Zonal Resources.
703 #
704 # Note that completed Operation resources have a limited
705 # retention period.
706 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
707 # Not present otherwise.
708 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
709 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
710 # set when the operation is created.
711 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
712 # text format.
713 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
714 # this field will be populated.
715 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
716 # operation.
717 {
718 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
719 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
720 # details. There is a set of defined message types to use for providing
721 # details.The syntax depends on the error code. For example,
722 # QuotaExceededInfo will have details when the error code is
723 # QUOTA_EXCEEDED.
724 {
725 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
726 #
727 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
728 # is not enabled:
729 #
730 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
731 # &quot;domain&quot;: &quot;googleapis.com&quot;
732 # &quot;metadata&quot;: {
733 # &quot;resource&quot;: &quot;projects/123&quot;,
734 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
735 # }
736 # }
737 #
738 # This response indicates that the pubsub.googleapis.com API is not enabled.
739 #
740 # Example of an error that is returned when attempting to create a Spanner
741 # instance in a region that is out of stock:
742 #
743 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
744 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
745 # &quot;metadata&quot;: {
746 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
747 # }
748 # }
749 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
750 # is typically the registered service name of the tool or product that
751 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
752 # generated by some common infrastructure, the error domain must be a
753 # globally unique value that identifies the infrastructure. For Google API
754 # infrastructure, the error domain is &quot;googleapis.com&quot;.
755 &quot;metadatas&quot;: { # Additional structured details about this error.
756 #
757 # Keys must match a regular expression of `a-z+` but should
758 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
759 # length. When identifying the current value of an exceeded limit, the units
760 # should be contained in the key, not the value. For example, rather than
761 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
762 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
763 # instances that can be created in a single (batch) request.
764 &quot;a_key&quot;: &quot;A String&quot;,
765 },
766 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
767 # proximate cause of the error. Error reasons are unique within a particular
768 # domain of errors. This should be at most 63 characters and match a
769 # regular expression of `A-Z+[A-Z0-9]`, which represents
770 # UPPER_SNAKE_CASE.
771 },
772 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
773 #
774 # For example, if a quota check failed with an error indicating the calling
775 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
776 # directly to the right place in the developer console to flip the bit.
777 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
778 { # Describes a URL link.
779 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
780 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
781 },
782 ],
783 },
784 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
785 # which can be attached to an RPC error.
786 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
787 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
788 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
789 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
790 },
791 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
792 &quot;dimensions&quot;: { # The map holding related quota dimensions.
793 &quot;a_key&quot;: &quot;A String&quot;,
794 },
795 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
796 # type or metric.
797 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
798 # or metric.
799 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
800 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
801 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
802 },
803 },
804 ],
805 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
806 # This property is optional.
807 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
808 },
809 ],
810 },
811 &quot;getVersionOperationMetadata&quot;: {
812 &quot;inlineSbomInfo&quot;: {
813 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
814 # appropriate identifiers.
815 &quot;a_key&quot;: &quot;A String&quot;,
816 },
817 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
818 # identifiers.
819 &quot;a_key&quot;: &quot;A String&quot;,
820 },
821 },
822 },
823 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
824 # message that was returned, such as `NOT FOUND`.
825 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
826 # status code that was returned. For example, a `404` means the
827 # resource was not found.
828 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
829 # defined by the server.
830 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
831 # This value is inRFC3339
832 # text format.
833 &quot;instancesBulkInsertOperationMetadata&quot;: {
834 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
835 # Example key: zones/us-central1-a
836 &quot;a_key&quot;: {
837 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
838 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
839 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
840 # error.
841 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
842 # if the flow is rolling forward or rolling back.
843 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
844 },
845 },
846 },
847 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
848 # Operation resources.
849 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
850 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
851 # group of operations results from a `bulkInsert` API request.
852 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
853 # `update`, or `delete`, and so on.
854 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
855 # There is no requirement that this be linear or support any granularity of
856 # operations. This should not be used to guess when the operation will be
857 # complete. This number should monotonically increase as the operation
858 # progresses.
859 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
860 # applicable when performing regional operations.
861 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
862 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
863 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
864 # this field will contain information on all underlying zonal actions and
865 # their state.
866 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
867 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
868 # Example key: zones/us-central1-a
869 &quot;a_key&quot;: {
870 &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
871 # populated.
872 # different programming environments, including REST APIs and RPC APIs. It is
873 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
874 # three pieces of data: error code, error message, and error details.
875 #
876 # You can find out more about this error model and how to work with it in the
877 # [API Design Guide](https://cloud.google.com/apis/design/errors).
878 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
879 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
880 # message types for APIs to use.
881 {
882 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
883 },
884 ],
885 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
886 # user-facing error message should be localized and sent in the
887 # google.rpc.Status.details field, or localized by the client.
888 },
889 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
890 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
891 },
892 },
893 },
894 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
895 # This value is inRFC3339
896 # text format.
897 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
898 # following:
899 # `PENDING`, `RUNNING`, or `DONE`.
900 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
901 # operation.
902 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
903 # of the target resource.
904 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
905 # operations related to creating a snapshot, this points to the disk
906 # that the snapshot was created from.
907 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
908 # `[email protected]` or
909 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
910 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
911 # operation, this field will be populated.
912 {
913 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
914 # Engine returns NO_RESULTS_ON_PAGE if there
915 # are no results in the response.
916 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
917 # value format. For example:
918 #
919 # &quot;data&quot;: [
920 # {
921 # &quot;key&quot;: &quot;scope&quot;,
922 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
923 # }
924 {
925 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
926 # returned. For example, for warnings where there are no results in a list
927 # request for a particular zone, this key might be scope and
928 # the key value might be the zone name. Other examples might be a key
929 # indicating a deprecated resource and a suggested replacement, or a
930 # warning about invalid network settings (for example, if an instance
931 # attempts to perform IP forwarding but is not enabled for IP forwarding).
932 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
933 },
934 ],
935 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
936 },
937 ],
938 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
939 # applicable when performing per-zone operations.
940 }</pre>
941 </div>
942
943 <div class="method">
944 <code class="details" id="cloneRules">cloneRules(project, region, firewallPolicy, requestId=None, sourceFirewallPolicy=None, x__xgafv=None)</code>
945 <pre>Copies rules to the specified network firewall policy.
946
947 Args:
948 project: string, Project ID for this request. (required)
949 region: string, Name of the region scoping this request. (required)
950 firewallPolicy: string, Name of the firewall policy to update. (required)
951 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
952 that if you must retry your request, the server will know to ignore the
953 request if it has already been completed.
954
955 For example, consider a situation where you make an initial request and
956 the request times out. If you make the request again with the same
957 request ID, the server can check if original operation with the same
958 request ID was received, and if so, will ignore the second request. This
959 prevents clients from accidentally creating duplicate commitments.
960
961 The request ID must be
962 a valid UUID with the exception that zero UUID is not supported
963 (00000000-0000-0000-0000-000000000000).
964 sourceFirewallPolicy: string, The firewall policy from which to copy rules.
965 x__xgafv: string, V1 error format.
966 Allowed values
967 1 - v1 error format
968 2 - v2 error format
969
970 Returns:
971 An object of the form:
972
973 { # Represents an Operation resource.
974 #
975 # Google Compute Engine has three Operation resources:
976 #
977 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
978 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
979 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
980 #
981 # You can use an operation resource to manage asynchronous API requests.
982 # For more information, readHandling
983 # API responses.
984 #
985 # Operations can be global, regional or zonal.
986 #
987 # - For global operations, use the `globalOperations`
988 # resource.
989 # - For regional operations, use the
990 # `regionOperations` resource.
991 # - For zonal operations, use
992 # the `zoneOperations` resource.
993 #
994 #
995 #
996 # For more information, read
997 # Global, Regional, and Zonal Resources.
998 #
999 # Note that completed Operation resources have a limited
1000 # retention period.
1001 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1002 # Not present otherwise.
1003 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1004 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1005 # set when the operation is created.
1006 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1007 # text format.
1008 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1009 # this field will be populated.
1010 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1011 # operation.
1012 {
1013 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1014 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1015 # details. There is a set of defined message types to use for providing
1016 # details.The syntax depends on the error code. For example,
1017 # QuotaExceededInfo will have details when the error code is
1018 # QUOTA_EXCEEDED.
1019 {
1020 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1021 #
1022 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1023 # is not enabled:
1024 #
1025 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1026 # &quot;domain&quot;: &quot;googleapis.com&quot;
1027 # &quot;metadata&quot;: {
1028 # &quot;resource&quot;: &quot;projects/123&quot;,
1029 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1030 # }
1031 # }
1032 #
1033 # This response indicates that the pubsub.googleapis.com API is not enabled.
1034 #
1035 # Example of an error that is returned when attempting to create a Spanner
1036 # instance in a region that is out of stock:
1037 #
1038 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1039 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1040 # &quot;metadata&quot;: {
1041 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1042 # }
1043 # }
1044 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1045 # is typically the registered service name of the tool or product that
1046 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1047 # generated by some common infrastructure, the error domain must be a
1048 # globally unique value that identifies the infrastructure. For Google API
1049 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1050 &quot;metadatas&quot;: { # Additional structured details about this error.
1051 #
1052 # Keys must match a regular expression of `a-z+` but should
1053 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1054 # length. When identifying the current value of an exceeded limit, the units
1055 # should be contained in the key, not the value. For example, rather than
1056 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1057 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1058 # instances that can be created in a single (batch) request.
1059 &quot;a_key&quot;: &quot;A String&quot;,
1060 },
1061 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1062 # proximate cause of the error. Error reasons are unique within a particular
1063 # domain of errors. This should be at most 63 characters and match a
1064 # regular expression of `A-Z+[A-Z0-9]`, which represents
1065 # UPPER_SNAKE_CASE.
1066 },
1067 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1068 #
1069 # For example, if a quota check failed with an error indicating the calling
1070 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1071 # directly to the right place in the developer console to flip the bit.
1072 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1073 { # Describes a URL link.
1074 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1075 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1076 },
1077 ],
1078 },
1079 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1080 # which can be attached to an RPC error.
1081 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1082 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1083 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1084 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1085 },
1086 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1087 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1088 &quot;a_key&quot;: &quot;A String&quot;,
1089 },
1090 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1091 # type or metric.
1092 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1093 # or metric.
1094 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1095 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1096 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1097 },
1098 },
1099 ],
1100 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1101 # This property is optional.
1102 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1103 },
1104 ],
1105 },
1106 &quot;getVersionOperationMetadata&quot;: {
1107 &quot;inlineSbomInfo&quot;: {
1108 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1109 # appropriate identifiers.
1110 &quot;a_key&quot;: &quot;A String&quot;,
1111 },
1112 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1113 # identifiers.
1114 &quot;a_key&quot;: &quot;A String&quot;,
1115 },
1116 },
1117 },
1118 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1119 # message that was returned, such as `NOT FOUND`.
1120 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1121 # status code that was returned. For example, a `404` means the
1122 # resource was not found.
1123 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1124 # defined by the server.
1125 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1126 # This value is inRFC3339
1127 # text format.
1128 &quot;instancesBulkInsertOperationMetadata&quot;: {
1129 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1130 # Example key: zones/us-central1-a
1131 &quot;a_key&quot;: {
1132 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1133 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1134 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1135 # error.
1136 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1137 # if the flow is rolling forward or rolling back.
1138 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1139 },
1140 },
1141 },
1142 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1143 # Operation resources.
1144 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1145 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1146 # group of operations results from a `bulkInsert` API request.
1147 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1148 # `update`, or `delete`, and so on.
1149 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1150 # There is no requirement that this be linear or support any granularity of
1151 # operations. This should not be used to guess when the operation will be
1152 # complete. This number should monotonically increase as the operation
1153 # progresses.
1154 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1155 # applicable when performing regional operations.
1156 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1157 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
1158 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1159 # this field will contain information on all underlying zonal actions and
1160 # their state.
1161 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1162 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1163 # Example key: zones/us-central1-a
1164 &quot;a_key&quot;: {
1165 &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
1166 # populated.
1167 # different programming environments, including REST APIs and RPC APIs. It is
1168 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1169 # three pieces of data: error code, error message, and error details.
1170 #
1171 # You can find out more about this error model and how to work with it in the
1172 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1173 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1174 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1175 # message types for APIs to use.
1176 {
1177 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1178 },
1179 ],
1180 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1181 # user-facing error message should be localized and sent in the
1182 # google.rpc.Status.details field, or localized by the client.
1183 },
1184 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1185 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1186 },
1187 },
1188 },
1189 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1190 # This value is inRFC3339
1191 # text format.
1192 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1193 # following:
1194 # `PENDING`, `RUNNING`, or `DONE`.
1195 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1196 # operation.
1197 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1198 # of the target resource.
1199 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1200 # operations related to creating a snapshot, this points to the disk
1201 # that the snapshot was created from.
1202 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1203 # `[email protected]` or
1204 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1205 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1206 # operation, this field will be populated.
1207 {
1208 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1209 # Engine returns NO_RESULTS_ON_PAGE if there
1210 # are no results in the response.
1211 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1212 # value format. For example:
1213 #
1214 # &quot;data&quot;: [
1215 # {
1216 # &quot;key&quot;: &quot;scope&quot;,
1217 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1218 # }
1219 {
1220 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1221 # returned. For example, for warnings where there are no results in a list
1222 # request for a particular zone, this key might be scope and
1223 # the key value might be the zone name. Other examples might be a key
1224 # indicating a deprecated resource and a suggested replacement, or a
1225 # warning about invalid network settings (for example, if an instance
1226 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1227 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1228 },
1229 ],
1230 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1231 },
1232 ],
1233 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1234 # applicable when performing per-zone operations.
1235 }</pre>
1236 </div>
1237
1238 <div class="method">
1239 <code class="details" id="close">close()</code>
1240 <pre>Close httplib2 connections.</pre>
1241 </div>
1242
1243 <div class="method">
1244 <code class="details" id="delete">delete(project, region, firewallPolicy, requestId=None, x__xgafv=None)</code>
1245 <pre>Deletes the specified network firewall policy.
1246
1247 Args:
1248 project: string, Project ID for this request. (required)
1249 region: string, Name of the region scoping this request. (required)
1250 firewallPolicy: string, Name of the firewall policy to delete. (required)
1251 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
1252 that if you must retry your request, the server will know to ignore the
1253 request if it has already been completed.
1254
1255 For example, consider a situation where you make an initial request and
1256 the request times out. If you make the request again with the same
1257 request ID, the server can check if original operation with the same
1258 request ID was received, and if so, will ignore the second request. This
1259 prevents clients from accidentally creating duplicate commitments.
1260
1261 The request ID must be
1262 a valid UUID with the exception that zero UUID is not supported
1263 (00000000-0000-0000-0000-000000000000).
1264 x__xgafv: string, V1 error format.
1265 Allowed values
1266 1 - v1 error format
1267 2 - v2 error format
1268
1269 Returns:
1270 An object of the form:
1271
1272 { # Represents an Operation resource.
1273 #
1274 # Google Compute Engine has three Operation resources:
1275 #
1276 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
1277 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
1278 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
1279 #
1280 # You can use an operation resource to manage asynchronous API requests.
1281 # For more information, readHandling
1282 # API responses.
1283 #
1284 # Operations can be global, regional or zonal.
1285 #
1286 # - For global operations, use the `globalOperations`
1287 # resource.
1288 # - For regional operations, use the
1289 # `regionOperations` resource.
1290 # - For zonal operations, use
1291 # the `zoneOperations` resource.
1292 #
1293 #
1294 #
1295 # For more information, read
1296 # Global, Regional, and Zonal Resources.
1297 #
1298 # Note that completed Operation resources have a limited
1299 # retention period.
1300 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1301 # Not present otherwise.
1302 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1303 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1304 # set when the operation is created.
1305 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1306 # text format.
1307 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1308 # this field will be populated.
1309 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1310 # operation.
1311 {
1312 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1313 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1314 # details. There is a set of defined message types to use for providing
1315 # details.The syntax depends on the error code. For example,
1316 # QuotaExceededInfo will have details when the error code is
1317 # QUOTA_EXCEEDED.
1318 {
1319 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1320 #
1321 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1322 # is not enabled:
1323 #
1324 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1325 # &quot;domain&quot;: &quot;googleapis.com&quot;
1326 # &quot;metadata&quot;: {
1327 # &quot;resource&quot;: &quot;projects/123&quot;,
1328 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1329 # }
1330 # }
1331 #
1332 # This response indicates that the pubsub.googleapis.com API is not enabled.
1333 #
1334 # Example of an error that is returned when attempting to create a Spanner
1335 # instance in a region that is out of stock:
1336 #
1337 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1338 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1339 # &quot;metadata&quot;: {
1340 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1341 # }
1342 # }
1343 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1344 # is typically the registered service name of the tool or product that
1345 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1346 # generated by some common infrastructure, the error domain must be a
1347 # globally unique value that identifies the infrastructure. For Google API
1348 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1349 &quot;metadatas&quot;: { # Additional structured details about this error.
1350 #
1351 # Keys must match a regular expression of `a-z+` but should
1352 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1353 # length. When identifying the current value of an exceeded limit, the units
1354 # should be contained in the key, not the value. For example, rather than
1355 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1356 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1357 # instances that can be created in a single (batch) request.
1358 &quot;a_key&quot;: &quot;A String&quot;,
1359 },
1360 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1361 # proximate cause of the error. Error reasons are unique within a particular
1362 # domain of errors. This should be at most 63 characters and match a
1363 # regular expression of `A-Z+[A-Z0-9]`, which represents
1364 # UPPER_SNAKE_CASE.
1365 },
1366 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1367 #
1368 # For example, if a quota check failed with an error indicating the calling
1369 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1370 # directly to the right place in the developer console to flip the bit.
1371 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1372 { # Describes a URL link.
1373 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1374 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1375 },
1376 ],
1377 },
1378 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1379 # which can be attached to an RPC error.
1380 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1381 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1382 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1383 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1384 },
1385 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1386 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1387 &quot;a_key&quot;: &quot;A String&quot;,
1388 },
1389 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1390 # type or metric.
1391 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1392 # or metric.
1393 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1394 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1395 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1396 },
1397 },
1398 ],
1399 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1400 # This property is optional.
1401 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1402 },
1403 ],
1404 },
1405 &quot;getVersionOperationMetadata&quot;: {
1406 &quot;inlineSbomInfo&quot;: {
1407 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1408 # appropriate identifiers.
1409 &quot;a_key&quot;: &quot;A String&quot;,
1410 },
1411 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1412 # identifiers.
1413 &quot;a_key&quot;: &quot;A String&quot;,
1414 },
1415 },
1416 },
1417 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1418 # message that was returned, such as `NOT FOUND`.
1419 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1420 # status code that was returned. For example, a `404` means the
1421 # resource was not found.
1422 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1423 # defined by the server.
1424 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1425 # This value is inRFC3339
1426 # text format.
1427 &quot;instancesBulkInsertOperationMetadata&quot;: {
1428 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1429 # Example key: zones/us-central1-a
1430 &quot;a_key&quot;: {
1431 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1432 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1433 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1434 # error.
1435 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1436 # if the flow is rolling forward or rolling back.
1437 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1438 },
1439 },
1440 },
1441 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1442 # Operation resources.
1443 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1444 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1445 # group of operations results from a `bulkInsert` API request.
1446 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1447 # `update`, or `delete`, and so on.
1448 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1449 # There is no requirement that this be linear or support any granularity of
1450 # operations. This should not be used to guess when the operation will be
1451 # complete. This number should monotonically increase as the operation
1452 # progresses.
1453 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1454 # applicable when performing regional operations.
1455 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1456 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
1457 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1458 # this field will contain information on all underlying zonal actions and
1459 # their state.
1460 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1461 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1462 # Example key: zones/us-central1-a
1463 &quot;a_key&quot;: {
1464 &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
1465 # populated.
1466 # different programming environments, including REST APIs and RPC APIs. It is
1467 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1468 # three pieces of data: error code, error message, and error details.
1469 #
1470 # You can find out more about this error model and how to work with it in the
1471 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1472 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1473 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1474 # message types for APIs to use.
1475 {
1476 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1477 },
1478 ],
1479 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1480 # user-facing error message should be localized and sent in the
1481 # google.rpc.Status.details field, or localized by the client.
1482 },
1483 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1484 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1485 },
1486 },
1487 },
1488 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1489 # This value is inRFC3339
1490 # text format.
1491 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1492 # following:
1493 # `PENDING`, `RUNNING`, or `DONE`.
1494 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1495 # operation.
1496 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1497 # of the target resource.
1498 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1499 # operations related to creating a snapshot, this points to the disk
1500 # that the snapshot was created from.
1501 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1502 # `[email protected]` or
1503 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1504 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1505 # operation, this field will be populated.
1506 {
1507 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1508 # Engine returns NO_RESULTS_ON_PAGE if there
1509 # are no results in the response.
1510 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1511 # value format. For example:
1512 #
1513 # &quot;data&quot;: [
1514 # {
1515 # &quot;key&quot;: &quot;scope&quot;,
1516 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1517 # }
1518 {
1519 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1520 # returned. For example, for warnings where there are no results in a list
1521 # request for a particular zone, this key might be scope and
1522 # the key value might be the zone name. Other examples might be a key
1523 # indicating a deprecated resource and a suggested replacement, or a
1524 # warning about invalid network settings (for example, if an instance
1525 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1526 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1527 },
1528 ],
1529 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1530 },
1531 ],
1532 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1533 # applicable when performing per-zone operations.
1534 }</pre>
1535 </div>
1536
1537 <div class="method">
1538 <code class="details" id="get">get(project, region, firewallPolicy, x__xgafv=None)</code>
1539 <pre>Returns the specified network firewall policy.
1540
1541 Args:
1542 project: string, Project ID for this request. (required)
1543 region: string, Name of the region scoping this request. (required)
1544 firewallPolicy: string, Name of the firewall policy to get. (required)
1545 x__xgafv: string, V1 error format.
1546 Allowed values
1547 1 - v1 error format
1548 2 - v2 error format
1549
1550 Returns:
1551 An object of the form:
1552
1553 { # Represents a Firewall Policy resource.
1554 &quot;associations&quot;: [ # A list of associations that belong to this firewall policy.
1555 {
1556 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
1557 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
1558 # of the firewall policy of the association.
1559 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
1560 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
1561 &quot;priority&quot;: 42, # An integer indicating the priority of an association. The priority
1562 # must be a positive value between 1 and 2147483647.
1563 # Firewall Policies are evaluated from highest to lowest priority where 1
1564 # is the highest priority and 2147483647 is the lowest priority.
1565 # The default value is `1000`. If two associations have the same priority
1566 # then lexicographical order on association names is applied.
1567 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
1568 },
1569 ],
1570 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
1571 # text format.
1572 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
1573 # create the resource.
1574 &quot;displayName&quot;: &quot;A String&quot;, # Deprecated, please use short name instead. User-provided name of the
1575 # Organization firewall policy. The name should be unique in the organization
1576 # in which the firewall policy is created.
1577 # This field is not applicable to network firewall policies.
1578 # This name must be set on creation and cannot be changed.
1579 # The name must be 1-63 characters long, and comply
1580 # with RFC1035. Specifically, the name must be 1-63 characters
1581 # long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which
1582 # means the first character must be a lowercase letter, and all following
1583 # characters must be a dash, lowercase letter, or digit, except the last
1584 # character, which cannot be a dash.
1585 &quot;fingerprint&quot;: &quot;A String&quot;, # Specifies a fingerprint for this resource, which is essentially a hash of
1586 # the metadata&#x27;s contents and used for optimistic locking. The
1587 # fingerprint is initially generated by Compute Engine and changes after
1588 # every request to modify or update metadata. You must always provide an
1589 # up-to-date fingerprint hash in order to update or change metadata,
1590 # otherwise the request will fail with error412 conditionNotMet.
1591 #
1592 # To see the latest fingerprint, make get() request to the
1593 # firewall policy.
1594 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
1595 # defined by the server.
1596 &quot;kind&quot;: &quot;compute#firewallPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
1597 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. For Organization Firewall Policies it&#x27;s a
1598 # [Output Only] numeric ID allocated by Google Cloud which uniquely
1599 # identifies the Organization Firewall Policy.
1600 &quot;packetMirroringRules&quot;: [ # A list of packet mirroring rules that belong to this policy.
1601 { # Represents a rule that describes one or more match conditions along with
1602 # the action to be taken when traffic matches this condition (allow or deny).
1603 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
1604 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
1605 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
1606 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
1607 # and &quot;goto_next&quot;.
1608 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
1609 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
1610 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
1611 # the firewall policy rule is not enforced and traffic behaves as if it did
1612 # not exist. If this is unspecified, the firewall policy rule will be
1613 # enabled.
1614 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
1615 # enabled, logs will be exported to the configured export destination in
1616 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
1617 # cannot enable logging on &quot;goto_next&quot; rules.
1618 &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.
1619 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
1620 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
1621 # Exactly one field must be specified.
1622 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
1623 # Maximum number of destination address groups is 10.
1624 &quot;A String&quot;,
1625 ],
1626 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
1627 # traffic destination.
1628 # Maximum number of destination fqdn allowed is 100.
1629 &quot;A String&quot;,
1630 ],
1631 &quot;destIpRanges&quot;: [ # CIDR IP address range.
1632 # Maximum number of destination CIDR IP ranges allowed is 5000.
1633 &quot;A String&quot;,
1634 ],
1635 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
1636 #
1637 #
1638 # - UNSPECIFIED
1639 # - INTERNET
1640 # - NON_INTERNET
1641 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
1642 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
1643 #
1644 #
1645 # - UNSPECIFIED
1646 # - INTERNET
1647 # - NON_INTERNET
1648 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
1649 # of traffic. Should be specified as 2 letter country code defined as per
1650 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
1651 # Maximum number of dest region codes allowed is 5000.
1652 &quot;A String&quot;,
1653 ],
1654 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1655 # The IPs in these lists will be matched against traffic destination.
1656 &quot;A String&quot;,
1657 ],
1658 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
1659 {
1660 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
1661 # required when creating a firewall rule. This value can either be
1662 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
1663 # protocol number.
1664 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
1665 # only applicable for UDP or TCP protocol. Each entry must be either
1666 # an integer or a range. If not specified, this rule applies to
1667 # connections through any port.
1668 #
1669 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
1670 &quot;A String&quot;,
1671 ],
1672 },
1673 ],
1674 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
1675 # Maximum number of source address groups is 10.
1676 &quot;A String&quot;,
1677 ],
1678 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
1679 # traffic source.
1680 # Maximum number of source fqdn allowed is 100.
1681 &quot;A String&quot;,
1682 ],
1683 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
1684 # Maximum number of source CIDR IP ranges allowed is 5000.
1685 &quot;A String&quot;,
1686 ],
1687 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
1688 #
1689 #
1690 # - UNSPECIFIED
1691 # - INTERNET
1692 # - INTRA_VPC
1693 # - NON_INTERNET
1694 # - VPC_NETWORKS
1695 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
1696 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
1697 #
1698 #
1699 # - UNSPECIFIED
1700 # - INTERNET
1701 # - INTRA_VPC
1702 # - NON_INTERNET
1703 # - VPC_NETWORKS
1704 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
1705 &quot;A String&quot;,
1706 ],
1707 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
1708 # of traffic. Should be specified as 2 letter country code defined as per
1709 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
1710 # Maximum number of source region codes allowed is 5000.
1711 &quot;A String&quot;,
1712 ],
1713 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
1714 # of the traffic.
1715 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
1716 # and there is no srcIpRange, this rule will be ignored.
1717 # Maximum number of source tag values allowed is 256.
1718 {
1719 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1720 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1721 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1722 # or its network is deleted.
1723 },
1724 ],
1725 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1726 # The IPs in these lists will be matched against traffic source.
1727 &quot;A String&quot;,
1728 ],
1729 },
1730 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
1731 # must be a positive value between 0 and 2147483647.
1732 # Rules are evaluated from highest to lowest priority where 0 is the
1733 # highest priority and 2147483647 is the lowest priority.
1734 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
1735 # and can be updated.
1736 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
1737 # rule.
1738 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
1739 # Example:
1740 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
1741 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
1742 # &#x27;mirror&#x27;. Cannot be specified for other actions.
1743 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
1744 # This field allows you to control which load balancers get this rule.
1745 # For example, the following are valid values:
1746 #
1747 #
1748 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
1749 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
1750 # - projects/project/global/
1751 # forwardingRules/forwardingRule
1752 # - projects/project/regions/region/forwardingRules/
1753 # forwardingRule
1754 &quot;A String&quot;,
1755 ],
1756 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
1757 # allows you to control which network&#x27;s VMs get this rule. If this field
1758 # is left blank, all VMs within the organization will receive the rule.
1759 &quot;A String&quot;,
1760 ],
1761 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
1762 # applies to. If targetSecureTag are specified, then the
1763 # firewall rule applies only to instances in the VPC network that have one
1764 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
1765 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
1766 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
1767 # to all instances on the specified network.
1768 # Maximum number of target label tags allowed is 256.
1769 {
1770 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1771 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1772 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1773 # or its network is deleted.
1774 },
1775 ],
1776 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
1777 # applied with this rule.
1778 &quot;A String&quot;,
1779 ],
1780 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
1781 # Default value is INSTANCES.
1782 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
1783 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
1784 # be set for other actions.
1785 },
1786 ],
1787 &quot;parent&quot;: &quot;A String&quot;, # Output only. [Output Only] The parent of the firewall policy.
1788 # This field is not applicable to network firewall policies.
1789 &quot;policySource&quot;: &quot;A String&quot;, # Indicates the source of this Firewall Policy. This field is optional on
1790 # creation and defaults to USER_DEFINED.
1791 #
1792 # The USER_DEFINED value indicates a regular firewall policy.
1793 #
1794 # The SYSTEM value indicates a system-level policy managed by an
1795 # internal service like GKE. This SYSTEM value is reserved for
1796 # internal services and cannot be set by users during policy creation.
1797 # Policies with a SYSTEM source cannot be modified or deleted by
1798 # users.
1799 &quot;policyType&quot;: &quot;A String&quot;, # The type of the firewall policy. This field can be one of
1800 # VPC_POLICY, RDMA_ROCE_POLICY or ULL_POLICY.
1801 #
1802 # Note: if not specified then VPC_POLICY will be used.
1803 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional firewall policy resides.
1804 # This field is not applicable to global firewall policies.
1805 # You must specify this field as part of the HTTP request URL. It is
1806 # not settable as a field in the request body.
1807 &quot;rolloutOperation&quot;: { # Represents progressive rollout input parameters and current status. # Configuration and status of the progressive rollout of this resource.
1808 &quot;rolloutInput&quot;: { # Represents progressive rollout input parameters. # Input parameters to be used by the next not yet scheduled rollout.
1809 &quot;name&quot;: &quot;A String&quot;, # The name of the rollout plan. Ex.
1810 # organizations//locations/global/rolloutPlans/.
1811 &quot;predefinedRolloutPlan&quot;: &quot;A String&quot;, # Predefined rollout plan.
1812 &quot;retryUuid&quot;: &quot;A String&quot;, # The UUID of the retry action. Only needed if this is a retry for an
1813 # existing rollout. This can be used after the user canceled a rollout
1814 # and want to retry it with no changes.
1815 },
1816 &quot;rolloutStatus&quot;: { # Represents progressive rollout current status. # [Output only] Current status of the rollout.
1817 &quot;nextRollout&quot;: { # [Output only] The next rollout.
1818 &quot;rolloutId&quot;: &quot;A String&quot;, # Output only. [Output only] The id of the next rollout.
1819 &quot;rolloutPlan&quot;: &quot;A String&quot;, # The name of the rollout plan to be used by the next not yet started
1820 # rollout. This field is auto populated based on RolloutInput when a
1821 # new rollout is scheduled. This can be manually changed before the
1822 # scheduled rollout starts.
1823 # Ex.
1824 # organizations//locations/global/rolloutPlans/
1825 },
1826 &quot;ongoingRollouts&quot;: [ # [Output only] The ongoing rollout.
1827 { # Represents the status of the progressive rollout instance, either
1828 # completed or ongoing.
1829 &quot;rollout&quot;: &quot;A String&quot;, # Output only. [Output only] The name of the rollout
1830 # organizations//locations/global/rollouts/
1831 &quot;rolloutPlan&quot;: &quot;A String&quot;, # Output only. [Output only] The name of the rollout plan used by this rollout
1832 # organizations//locations/global/rolloutPlans/
1833 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output only] The state of the rollout.
1834 },
1835 ],
1836 &quot;previousRollout&quot;: { # Represents the status of the progressive rollout instance, either # [Output only] The last previously executed rollout.
1837 # completed or ongoing.
1838 &quot;rollout&quot;: &quot;A String&quot;, # Output only. [Output only] The name of the rollout
1839 # organizations//locations/global/rollouts/
1840 &quot;rolloutPlan&quot;: &quot;A String&quot;, # Output only. [Output only] The name of the rollout plan used by this rollout
1841 # organizations//locations/global/rolloutPlans/
1842 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output only] The state of the rollout.
1843 },
1844 },
1845 },
1846 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall
1847 # policy can not exceed a set number of tuples.
1848 &quot;rules&quot;: [ # A list of rules that belong to this policy.
1849 # There must always be a default rule (rule with priority 2147483647 and
1850 # match &quot;*&quot;). If no rules are provided when creating a firewall policy, a
1851 # default rule with action &quot;allow&quot; will be added.
1852 { # Represents a rule that describes one or more match conditions along with
1853 # the action to be taken when traffic matches this condition (allow or deny).
1854 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
1855 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
1856 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
1857 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
1858 # and &quot;goto_next&quot;.
1859 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
1860 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
1861 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
1862 # the firewall policy rule is not enforced and traffic behaves as if it did
1863 # not exist. If this is unspecified, the firewall policy rule will be
1864 # enabled.
1865 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
1866 # enabled, logs will be exported to the configured export destination in
1867 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
1868 # cannot enable logging on &quot;goto_next&quot; rules.
1869 &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.
1870 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
1871 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
1872 # Exactly one field must be specified.
1873 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
1874 # Maximum number of destination address groups is 10.
1875 &quot;A String&quot;,
1876 ],
1877 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
1878 # traffic destination.
1879 # Maximum number of destination fqdn allowed is 100.
1880 &quot;A String&quot;,
1881 ],
1882 &quot;destIpRanges&quot;: [ # CIDR IP address range.
1883 # Maximum number of destination CIDR IP ranges allowed is 5000.
1884 &quot;A String&quot;,
1885 ],
1886 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
1887 #
1888 #
1889 # - UNSPECIFIED
1890 # - INTERNET
1891 # - NON_INTERNET
1892 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
1893 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
1894 #
1895 #
1896 # - UNSPECIFIED
1897 # - INTERNET
1898 # - NON_INTERNET
1899 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
1900 # of traffic. Should be specified as 2 letter country code defined as per
1901 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
1902 # Maximum number of dest region codes allowed is 5000.
1903 &quot;A String&quot;,
1904 ],
1905 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1906 # The IPs in these lists will be matched against traffic destination.
1907 &quot;A String&quot;,
1908 ],
1909 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
1910 {
1911 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
1912 # required when creating a firewall rule. This value can either be
1913 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
1914 # protocol number.
1915 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
1916 # only applicable for UDP or TCP protocol. Each entry must be either
1917 # an integer or a range. If not specified, this rule applies to
1918 # connections through any port.
1919 #
1920 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
1921 &quot;A String&quot;,
1922 ],
1923 },
1924 ],
1925 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
1926 # Maximum number of source address groups is 10.
1927 &quot;A String&quot;,
1928 ],
1929 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
1930 # traffic source.
1931 # Maximum number of source fqdn allowed is 100.
1932 &quot;A String&quot;,
1933 ],
1934 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
1935 # Maximum number of source CIDR IP ranges allowed is 5000.
1936 &quot;A String&quot;,
1937 ],
1938 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
1939 #
1940 #
1941 # - UNSPECIFIED
1942 # - INTERNET
1943 # - INTRA_VPC
1944 # - NON_INTERNET
1945 # - VPC_NETWORKS
1946 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
1947 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
1948 #
1949 #
1950 # - UNSPECIFIED
1951 # - INTERNET
1952 # - INTRA_VPC
1953 # - NON_INTERNET
1954 # - VPC_NETWORKS
1955 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
1956 &quot;A String&quot;,
1957 ],
1958 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
1959 # of traffic. Should be specified as 2 letter country code defined as per
1960 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
1961 # Maximum number of source region codes allowed is 5000.
1962 &quot;A String&quot;,
1963 ],
1964 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
1965 # of the traffic.
1966 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
1967 # and there is no srcIpRange, this rule will be ignored.
1968 # Maximum number of source tag values allowed is 256.
1969 {
1970 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1971 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1972 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1973 # or its network is deleted.
1974 },
1975 ],
1976 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
1977 # The IPs in these lists will be matched against traffic source.
1978 &quot;A String&quot;,
1979 ],
1980 },
1981 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
1982 # must be a positive value between 0 and 2147483647.
1983 # Rules are evaluated from highest to lowest priority where 0 is the
1984 # highest priority and 2147483647 is the lowest priority.
1985 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
1986 # and can be updated.
1987 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
1988 # rule.
1989 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
1990 # Example:
1991 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
1992 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
1993 # &#x27;mirror&#x27;. Cannot be specified for other actions.
1994 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
1995 # This field allows you to control which load balancers get this rule.
1996 # For example, the following are valid values:
1997 #
1998 #
1999 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
2000 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
2001 # - projects/project/global/
2002 # forwardingRules/forwardingRule
2003 # - projects/project/regions/region/forwardingRules/
2004 # forwardingRule
2005 &quot;A String&quot;,
2006 ],
2007 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
2008 # allows you to control which network&#x27;s VMs get this rule. If this field
2009 # is left blank, all VMs within the organization will receive the rule.
2010 &quot;A String&quot;,
2011 ],
2012 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
2013 # applies to. If targetSecureTag are specified, then the
2014 # firewall rule applies only to instances in the VPC network that have one
2015 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
2016 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
2017 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
2018 # to all instances on the specified network.
2019 # Maximum number of target label tags allowed is 256.
2020 {
2021 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2022 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2023 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2024 # or its network is deleted.
2025 },
2026 ],
2027 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
2028 # applied with this rule.
2029 &quot;A String&quot;,
2030 ],
2031 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
2032 # Default value is INSTANCES.
2033 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
2034 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
2035 # be set for other actions.
2036 },
2037 ],
2038 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
2039 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
2040 &quot;shortName&quot;: &quot;A String&quot;, # User-provided name of the Organization firewall policy. The name should be
2041 # unique in the organization in which the firewall policy is created.
2042 # This field is not applicable to network firewall policies.
2043 # This name must be set on creation and cannot be changed. The name must be
2044 # 1-63 characters long, and comply with RFC1035.
2045 # Specifically, the name must be 1-63 characters long and match the regular
2046 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
2047 # character must be a lowercase letter, and all following characters must
2048 # be a dash, lowercase letter, or digit, except the last character, which
2049 # cannot be a dash.
2050 &quot;vpcNetworkScope&quot;: &quot;A String&quot;, # The scope of networks allowed to be associated with the firewall
2051 # policy. This field can be either GLOBAL_VPC_NETWORK orREGIONAL_VPC_NETWORK.
2052 #
2053 # A firewall policy with the VPC scope set to GLOBAL_VPC_NETWORK
2054 # is allowed to be attached only to global networks.
2055 #
2056 # When the VPC scope is set to REGIONAL_VPC_NETWORK the firewall
2057 # policy is allowed to be attached only to regional networks in the same
2058 # scope as the firewall policy.
2059 #
2060 # Note: if not specified then GLOBAL_VPC_NETWORK will be used.
2061 }</pre>
2062 </div>
2063
2064 <div class="method">
2065 <code class="details" id="getAssociation">getAssociation(project, region, firewallPolicy, name=None, x__xgafv=None)</code>
2066 <pre>Gets an association with the specified name.
2067
2068 Args:
2069 project: string, Project ID for this request. (required)
2070 region: string, Name of the region scoping this request. (required)
2071 firewallPolicy: string, Name of the firewall policy to which the queried association belongs. (required)
2072 name: string, The name of the association to get from the firewall policy.
2073 x__xgafv: string, V1 error format.
2074 Allowed values
2075 1 - v1 error format
2076 2 - v2 error format
2077
2078 Returns:
2079 An object of the form:
2080
2081 {
2082 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
2083 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
2084 # of the firewall policy of the association.
2085 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
2086 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
2087 &quot;priority&quot;: 42, # An integer indicating the priority of an association. The priority
2088 # must be a positive value between 1 and 2147483647.
2089 # Firewall Policies are evaluated from highest to lowest priority where 1
2090 # is the highest priority and 2147483647 is the lowest priority.
2091 # The default value is `1000`. If two associations have the same priority
2092 # then lexicographical order on association names is applied.
2093 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
2094 }</pre>
2095 </div>
2096
2097 <div class="method">
2098 <code class="details" id="getEffectiveFirewalls">getEffectiveFirewalls(project, region, network, x__xgafv=None)</code>
2099 <pre>Returns the effective firewalls on a given network.
2100
2101 Args:
2102 project: string, Project ID for this request. (required)
2103 region: string, Name of the region scoping this request. (required)
2104 network: string, Network reference (required)
2105 x__xgafv: string, V1 error format.
2106 Allowed values
2107 1 - v1 error format
2108 2 - v2 error format
2109
2110 Returns:
2111 An object of the form:
2112
2113 {
2114 &quot;firewallPolicys&quot;: [ # Output only. [Output only] Effective firewalls from firewall policy. It applies to
2115 # Regional Network Firewall Policies in the specified region, Global Network
2116 # Firewall Policies and Hierachial Firewall Policies which are associated
2117 # with the network.
2118 {
2119 &quot;displayName&quot;: &quot;A String&quot;, # Output only. [Output Only] The display name of the firewall policy.
2120 &quot;name&quot;: &quot;A String&quot;, # Output only. [Output Only] The name of the firewall policy.
2121 &quot;packetMirroringRules&quot;: [ # Output only. [Output only] The packet mirroring rules that apply to the network.
2122 { # Represents a rule that describes one or more match conditions along with
2123 # the action to be taken when traffic matches this condition (allow or deny).
2124 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
2125 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
2126 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
2127 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
2128 # and &quot;goto_next&quot;.
2129 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
2130 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
2131 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
2132 # the firewall policy rule is not enforced and traffic behaves as if it did
2133 # not exist. If this is unspecified, the firewall policy rule will be
2134 # enabled.
2135 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
2136 # enabled, logs will be exported to the configured export destination in
2137 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
2138 # cannot enable logging on &quot;goto_next&quot; rules.
2139 &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.
2140 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
2141 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
2142 # Exactly one field must be specified.
2143 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
2144 # Maximum number of destination address groups is 10.
2145 &quot;A String&quot;,
2146 ],
2147 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
2148 # traffic destination.
2149 # Maximum number of destination fqdn allowed is 100.
2150 &quot;A String&quot;,
2151 ],
2152 &quot;destIpRanges&quot;: [ # CIDR IP address range.
2153 # Maximum number of destination CIDR IP ranges allowed is 5000.
2154 &quot;A String&quot;,
2155 ],
2156 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
2157 #
2158 #
2159 # - UNSPECIFIED
2160 # - INTERNET
2161 # - NON_INTERNET
2162 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
2163 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
2164 #
2165 #
2166 # - UNSPECIFIED
2167 # - INTERNET
2168 # - NON_INTERNET
2169 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
2170 # of traffic. Should be specified as 2 letter country code defined as per
2171 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
2172 # Maximum number of dest region codes allowed is 5000.
2173 &quot;A String&quot;,
2174 ],
2175 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
2176 # The IPs in these lists will be matched against traffic destination.
2177 &quot;A String&quot;,
2178 ],
2179 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
2180 {
2181 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
2182 # required when creating a firewall rule. This value can either be
2183 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
2184 # protocol number.
2185 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
2186 # only applicable for UDP or TCP protocol. Each entry must be either
2187 # an integer or a range. If not specified, this rule applies to
2188 # connections through any port.
2189 #
2190 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
2191 &quot;A String&quot;,
2192 ],
2193 },
2194 ],
2195 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
2196 # Maximum number of source address groups is 10.
2197 &quot;A String&quot;,
2198 ],
2199 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
2200 # traffic source.
2201 # Maximum number of source fqdn allowed is 100.
2202 &quot;A String&quot;,
2203 ],
2204 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
2205 # Maximum number of source CIDR IP ranges allowed is 5000.
2206 &quot;A String&quot;,
2207 ],
2208 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
2209 #
2210 #
2211 # - UNSPECIFIED
2212 # - INTERNET
2213 # - INTRA_VPC
2214 # - NON_INTERNET
2215 # - VPC_NETWORKS
2216 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
2217 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
2218 #
2219 #
2220 # - UNSPECIFIED
2221 # - INTERNET
2222 # - INTRA_VPC
2223 # - NON_INTERNET
2224 # - VPC_NETWORKS
2225 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
2226 &quot;A String&quot;,
2227 ],
2228 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
2229 # of traffic. Should be specified as 2 letter country code defined as per
2230 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
2231 # Maximum number of source region codes allowed is 5000.
2232 &quot;A String&quot;,
2233 ],
2234 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
2235 # of the traffic.
2236 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
2237 # and there is no srcIpRange, this rule will be ignored.
2238 # Maximum number of source tag values allowed is 256.
2239 {
2240 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2241 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2242 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2243 # or its network is deleted.
2244 },
2245 ],
2246 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
2247 # The IPs in these lists will be matched against traffic source.
2248 &quot;A String&quot;,
2249 ],
2250 },
2251 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
2252 # must be a positive value between 0 and 2147483647.
2253 # Rules are evaluated from highest to lowest priority where 0 is the
2254 # highest priority and 2147483647 is the lowest priority.
2255 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
2256 # and can be updated.
2257 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
2258 # rule.
2259 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
2260 # Example:
2261 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
2262 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
2263 # &#x27;mirror&#x27;. Cannot be specified for other actions.
2264 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
2265 # This field allows you to control which load balancers get this rule.
2266 # For example, the following are valid values:
2267 #
2268 #
2269 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
2270 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
2271 # - projects/project/global/
2272 # forwardingRules/forwardingRule
2273 # - projects/project/regions/region/forwardingRules/
2274 # forwardingRule
2275 &quot;A String&quot;,
2276 ],
2277 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
2278 # allows you to control which network&#x27;s VMs get this rule. If this field
2279 # is left blank, all VMs within the organization will receive the rule.
2280 &quot;A String&quot;,
2281 ],
2282 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
2283 # applies to. If targetSecureTag are specified, then the
2284 # firewall rule applies only to instances in the VPC network that have one
2285 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
2286 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
2287 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
2288 # to all instances on the specified network.
2289 # Maximum number of target label tags allowed is 256.
2290 {
2291 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2292 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2293 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2294 # or its network is deleted.
2295 },
2296 ],
2297 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
2298 # applied with this rule.
2299 &quot;A String&quot;,
2300 ],
2301 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
2302 # Default value is INSTANCES.
2303 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
2304 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
2305 # be set for other actions.
2306 },
2307 ],
2308 &quot;priority&quot;: 42, # Output only. [Output only] Priority of firewall policy association. Not applicable for
2309 # type=HIERARCHY.
2310 &quot;rules&quot;: [ # Output only. [Output only] The rules that apply to the network.
2311 { # Represents a rule that describes one or more match conditions along with
2312 # the action to be taken when traffic matches this condition (allow or deny).
2313 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
2314 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
2315 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
2316 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
2317 # and &quot;goto_next&quot;.
2318 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
2319 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
2320 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
2321 # the firewall policy rule is not enforced and traffic behaves as if it did
2322 # not exist. If this is unspecified, the firewall policy rule will be
2323 # enabled.
2324 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
2325 # enabled, logs will be exported to the configured export destination in
2326 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
2327 # cannot enable logging on &quot;goto_next&quot; rules.
2328 &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.
2329 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
2330 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
2331 # Exactly one field must be specified.
2332 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
2333 # Maximum number of destination address groups is 10.
2334 &quot;A String&quot;,
2335 ],
2336 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
2337 # traffic destination.
2338 # Maximum number of destination fqdn allowed is 100.
2339 &quot;A String&quot;,
2340 ],
2341 &quot;destIpRanges&quot;: [ # CIDR IP address range.
2342 # Maximum number of destination CIDR IP ranges allowed is 5000.
2343 &quot;A String&quot;,
2344 ],
2345 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
2346 #
2347 #
2348 # - UNSPECIFIED
2349 # - INTERNET
2350 # - NON_INTERNET
2351 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
2352 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
2353 #
2354 #
2355 # - UNSPECIFIED
2356 # - INTERNET
2357 # - NON_INTERNET
2358 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
2359 # of traffic. Should be specified as 2 letter country code defined as per
2360 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
2361 # Maximum number of dest region codes allowed is 5000.
2362 &quot;A String&quot;,
2363 ],
2364 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
2365 # The IPs in these lists will be matched against traffic destination.
2366 &quot;A String&quot;,
2367 ],
2368 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
2369 {
2370 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
2371 # required when creating a firewall rule. This value can either be
2372 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
2373 # protocol number.
2374 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
2375 # only applicable for UDP or TCP protocol. Each entry must be either
2376 # an integer or a range. If not specified, this rule applies to
2377 # connections through any port.
2378 #
2379 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
2380 &quot;A String&quot;,
2381 ],
2382 },
2383 ],
2384 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
2385 # Maximum number of source address groups is 10.
2386 &quot;A String&quot;,
2387 ],
2388 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
2389 # traffic source.
2390 # Maximum number of source fqdn allowed is 100.
2391 &quot;A String&quot;,
2392 ],
2393 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
2394 # Maximum number of source CIDR IP ranges allowed is 5000.
2395 &quot;A String&quot;,
2396 ],
2397 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
2398 #
2399 #
2400 # - UNSPECIFIED
2401 # - INTERNET
2402 # - INTRA_VPC
2403 # - NON_INTERNET
2404 # - VPC_NETWORKS
2405 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
2406 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
2407 #
2408 #
2409 # - UNSPECIFIED
2410 # - INTERNET
2411 # - INTRA_VPC
2412 # - NON_INTERNET
2413 # - VPC_NETWORKS
2414 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
2415 &quot;A String&quot;,
2416 ],
2417 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
2418 # of traffic. Should be specified as 2 letter country code defined as per
2419 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
2420 # Maximum number of source region codes allowed is 5000.
2421 &quot;A String&quot;,
2422 ],
2423 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
2424 # of the traffic.
2425 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
2426 # and there is no srcIpRange, this rule will be ignored.
2427 # Maximum number of source tag values allowed is 256.
2428 {
2429 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2430 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2431 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2432 # or its network is deleted.
2433 },
2434 ],
2435 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
2436 # The IPs in these lists will be matched against traffic source.
2437 &quot;A String&quot;,
2438 ],
2439 },
2440 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
2441 # must be a positive value between 0 and 2147483647.
2442 # Rules are evaluated from highest to lowest priority where 0 is the
2443 # highest priority and 2147483647 is the lowest priority.
2444 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
2445 # and can be updated.
2446 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
2447 # rule.
2448 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
2449 # Example:
2450 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
2451 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
2452 # &#x27;mirror&#x27;. Cannot be specified for other actions.
2453 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
2454 # This field allows you to control which load balancers get this rule.
2455 # For example, the following are valid values:
2456 #
2457 #
2458 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
2459 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
2460 # - projects/project/global/
2461 # forwardingRules/forwardingRule
2462 # - projects/project/regions/region/forwardingRules/
2463 # forwardingRule
2464 &quot;A String&quot;,
2465 ],
2466 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
2467 # allows you to control which network&#x27;s VMs get this rule. If this field
2468 # is left blank, all VMs within the organization will receive the rule.
2469 &quot;A String&quot;,
2470 ],
2471 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
2472 # applies to. If targetSecureTag are specified, then the
2473 # firewall rule applies only to instances in the VPC network that have one
2474 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
2475 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
2476 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
2477 # to all instances on the specified network.
2478 # Maximum number of target label tags allowed is 256.
2479 {
2480 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2481 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2482 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2483 # or its network is deleted.
2484 },
2485 ],
2486 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
2487 # applied with this rule.
2488 &quot;A String&quot;,
2489 ],
2490 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
2491 # Default value is INSTANCES.
2492 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
2493 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
2494 # be set for other actions.
2495 },
2496 ],
2497 &quot;type&quot;: &quot;A String&quot;, # Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY,
2498 # NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL.
2499 },
2500 ],
2501 &quot;firewalls&quot;: [ # Effective firewalls on the network.
2502 { # Represents a Firewall Rule resource.
2503 #
2504 # Firewall rules allow or deny ingress traffic to, and egress traffic from your
2505 # instances. For more information, readFirewall rules.
2506 &quot;allowed&quot;: [ # The list of ALLOW rules specified by this firewall. Each rule specifies a
2507 # protocol and port-range tuple that describes a permitted connection.
2508 {
2509 &quot;IPProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
2510 # required when creating a firewall rule. This value can either be one of the
2511 # following well known protocol strings (tcp, udp,icmp, esp, ah, ipip,sctp) or the IP protocol number.
2512 &quot;ports&quot;: [ # An optional list of ports to which this rule applies.
2513 # This field is only applicable for the UDP or TCP protocol.
2514 # Each entry must be either an integer or a range.
2515 # If not specified, this rule applies to connections through any port.
2516 #
2517 # Example inputs include: [&quot;22&quot;], [&quot;80&quot;,&quot;443&quot;],
2518 # and [&quot;12345-12349&quot;].
2519 &quot;A String&quot;,
2520 ],
2521 },
2522 ],
2523 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
2524 # text format.
2525 &quot;denied&quot;: [ # The list of DENY rules specified by this firewall. Each rule specifies a
2526 # protocol and port-range tuple that describes a denied connection.
2527 {
2528 &quot;IPProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
2529 # required when creating a firewall rule. This value can either be one of the
2530 # following well known protocol strings (tcp, udp,icmp, esp, ah, ipip,sctp) or the IP protocol number.
2531 &quot;ports&quot;: [ # An optional list of ports to which this rule applies.
2532 # This field is only applicable for the UDP or TCP protocol.
2533 # Each entry must be either an integer or a range.
2534 # If not specified, this rule applies to connections through any port.
2535 #
2536 # Example inputs include: [&quot;22&quot;], [&quot;80&quot;,&quot;443&quot;],
2537 # and [&quot;12345-12349&quot;].
2538 &quot;A String&quot;,
2539 ],
2540 },
2541 ],
2542 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this field when you
2543 # create the resource.
2544 &quot;destinationRanges&quot;: [ # If destination ranges are specified, the firewall rule applies only to
2545 # traffic that has destination IP address in these ranges. These ranges must
2546 # be expressed inCIDR format. Both IPv4 and IPv6 are supported.
2547 &quot;A String&quot;,
2548 ],
2549 &quot;direction&quot;: &quot;A String&quot;, # Direction of traffic to which this firewall applies, either `INGRESS` or
2550 # `EGRESS`. The default is `INGRESS`. For `EGRESS` traffic, you cannot
2551 # specify the sourceTags fields.
2552 &quot;disabled&quot;: True or False, # Denotes whether the firewall rule is disabled. When set to true, the
2553 # firewall rule is not enforced and the network behaves as if it did not
2554 # exist. If this is unspecified, the firewall rule will be enabled.
2555 &quot;enableLogging&quot;: True or False, # Deprecated in favor of enable in LogConfig.
2556 # This field denotes whether to enable logging for a particular
2557 # firewall rule. If logging is enabled, logs will be exported t
2558 # Cloud Logging.
2559 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
2560 # defined by the server.
2561 &quot;kind&quot;: &quot;compute#firewall&quot;, # Output only. [Output Only] Type of the resource. Always compute#firewall
2562 # for firewall rules.
2563 &quot;logConfig&quot;: { # The available logging options for a firewall rule. # This field denotes the logging options for a particular firewall rule. If
2564 # logging is enabled, logs will be exported to Cloud Logging.
2565 &quot;enable&quot;: True or False, # This field denotes whether to enable logging for a particular firewall
2566 # rule.
2567 &quot;metadata&quot;: &quot;A String&quot;, # This field can only be specified for a particular firewall rule if
2568 # logging is enabled for that rule. This field denotes whether to include
2569 # or exclude metadata for firewall logs.
2570 },
2571 &quot;name&quot;: &quot;A String&quot;, # Name of the resource; provided by the client when the resource is created.
2572 # The name must be 1-63 characters long, and comply withRFC1035.
2573 # Specifically, the name must be 1-63 characters long and match the regular
2574 # expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character
2575 # must be a lowercase letter, and all following characters (except for the
2576 # last character) must be a dash, lowercase letter, or digit. The last
2577 # character must be a lowercase letter or digit.
2578 &quot;network&quot;: &quot;A String&quot;, # URL of the network resource for this firewall rule. If not
2579 # specified when creating a firewall rule, the default network
2580 # is used:
2581 #
2582 # global/networks/default
2583 #
2584 # If you choose to specify this field, you can specify the network as a full
2585 # or partial URL. For example, the following are all valid URLs:
2586 #
2587 # -
2588 # https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network
2589 # - projects/myproject/global/networks/my-network
2590 # - global/networks/default
2591 &quot;params&quot;: { # Additional firewall parameters. # Input only. [Input Only] Additional params passed with the request, but not persisted
2592 # as part of resource payload.
2593 &quot;resourceManagerTags&quot;: { # Tag keys/values directly bound to this resource.
2594 # Tag keys and values have the same definition as resource
2595 # manager tags. The field is allowed for INSERT
2596 # only. The keys/values to set on the resource should be specified in
2597 # either ID { : } or Namespaced format
2598 # { : }.
2599 # For example the following are valid inputs:
2600 # * {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;tagKeys/123&quot; : &quot;tagValues/456&quot;}
2601 # * {&quot;123/environment&quot; : &quot;production&quot;, &quot;345/abc&quot; : &quot;xyz&quot;}
2602 # Note:
2603 # * Invalid combinations of ID &amp; namespaced format is not supported. For
2604 # instance: {&quot;123/environment&quot; : &quot;tagValues/444&quot;} is invalid.
2605 &quot;a_key&quot;: &quot;A String&quot;,
2606 },
2607 },
2608 &quot;priority&quot;: 42, # Priority for this rule.
2609 # This is an integer between `0` and `65535`, both inclusive.
2610 # The default value is `1000`.
2611 # Relative priorities determine which rule takes effect if multiple rules
2612 # apply. Lower values indicate higher priority. For example, a rule with
2613 # priority `0` has higher precedence than a rule with priority `1`.
2614 # DENY rules take precedence over ALLOW rules if they have equal priority.
2615 # Note that VPC networks have implied
2616 # rules with a priority of `65535`. To avoid conflicts with the implied
2617 # rules, use a priority number less than `65535`.
2618 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
2619 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
2620 &quot;sourceRanges&quot;: [ # If source ranges are specified, the firewall rule applies only to traffic
2621 # that has a source IP address in these ranges. These ranges must be
2622 # expressed inCIDR format. One or both of sourceRanges
2623 # and sourceTags may be set.
2624 # If both fields are set, the rule applies to traffic that has a
2625 # source IP address within sourceRanges OR a source IP
2626 # from a resource with a matching tag listed in thesourceTags field. The connection does not need to match
2627 # both fields for the rule to
2628 # apply. Both IPv4 and IPv6 are supported.
2629 &quot;A String&quot;,
2630 ],
2631 &quot;sourceServiceAccounts&quot;: [ # If source service accounts are specified, the firewall rules apply only to
2632 # traffic originating from an instance with a service account in this list.
2633 # Source service accounts cannot be used to control traffic to an instance&#x27;s
2634 # external IP address because service accounts are associated with an
2635 # instance, not an IP address.sourceRanges can be set at the same time assourceServiceAccounts.
2636 # If both are set, the firewall applies to traffic that
2637 # has a source IP address within the sourceRanges OR a source
2638 # IP that belongs to an instance with service account listed insourceServiceAccount. The connection does not need to match
2639 # both fields for the firewall to apply.sourceServiceAccounts cannot be used at the same time assourceTags or targetTags.
2640 &quot;A String&quot;,
2641 ],
2642 &quot;sourceTags&quot;: [ # If source tags are specified, the firewall rule applies only to traffic
2643 # with source IPs that match the primary network interfaces of VM instances
2644 # that have the tag and are in the same VPC network.
2645 # Source tags cannot be used to control traffic to an instance&#x27;s external IP
2646 # address, it only applies to traffic between instances in the same virtual
2647 # network. Because tags are associated with instances, not IP addresses.
2648 # One or both of sourceRanges and sourceTags may be
2649 # set. If both fields are set, the firewall applies to traffic that has a
2650 # source IP address within sourceRanges OR a source IP from a
2651 # resource with a matching tag listed in the sourceTags
2652 # field. The connection does not need to match both fields for the
2653 # firewall to apply.
2654 &quot;A String&quot;,
2655 ],
2656 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating sets of instances located in the
2657 # network that may make network connections as specified inallowed[].targetServiceAccounts cannot be used at the same time astargetTags or sourceTags.
2658 # If neither targetServiceAccounts nor targetTags
2659 # are specified, the firewall rule applies to all instances on the specified
2660 # network.
2661 &quot;A String&quot;,
2662 ],
2663 &quot;targetTags&quot;: [ # A list of tags that controls which instances the firewall rule
2664 # applies to. If targetTags are specified, then the firewall
2665 # rule applies only to instances in the VPC network that have one of those
2666 # tags. If no targetTags are specified, the firewall rule
2667 # applies to all instances on the specified network.
2668 &quot;A String&quot;,
2669 ],
2670 },
2671 ],
2672 }</pre>
2673 </div>
2674
2675 <div class="method">
2676 <code class="details" id="getIamPolicy">getIamPolicy(project, region, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</code>
2677 <pre>Gets the access control policy for a resource. May be empty if no such
2678 policy or resource exists.
2679
2680 Args:
2681 project: string, Project ID for this request. (required)
2682 region: string, The name of the region for this request. (required)
2683 resource: string, Name or id of the resource for this request. (required)
2684 optionsRequestedPolicyVersion: integer, Requested IAM Policy version.
2685 x__xgafv: string, V1 error format.
2686 Allowed values
2687 1 - v1 error format
2688 2 - v2 error format
2689
2690 Returns:
2691 An object of the form:
2692
2693 { # An Identity and Access Management (IAM) policy, which specifies access
2694 # controls for Google Cloud resources.
2695 #
2696 #
2697 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
2698 # `members`, or principals, to a single `role`. Principals can be user
2699 # accounts, service accounts, Google groups, and domains (such as G Suite). A
2700 # `role` is a named list of permissions; each `role` can be an IAM predefined
2701 # role or a user-created custom role.
2702 #
2703 # For some types of Google Cloud resources, a `binding` can also specify a
2704 # `condition`, which is a logical expression that allows access to a resource
2705 # only if the expression evaluates to `true`. A condition can add constraints
2706 # based on attributes of the request, the resource, or both. To learn which
2707 # resources support conditions in their IAM policies, see the
2708 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2709 #
2710 # **JSON example:**
2711 #
2712 # ```
2713 # {
2714 # &quot;bindings&quot;: [
2715 # {
2716 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
2717 # &quot;members&quot;: [
2718 # &quot;user:[email protected]&quot;,
2719 # &quot;group:[email protected]&quot;,
2720 # &quot;domain:google.com&quot;,
2721 # &quot;serviceAccount:[email protected]&quot;
2722 # ]
2723 # },
2724 # {
2725 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
2726 # &quot;members&quot;: [
2727 # &quot;user:[email protected]&quot;
2728 # ],
2729 # &quot;condition&quot;: {
2730 # &quot;title&quot;: &quot;expirable access&quot;,
2731 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
2732 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
2733 # }
2734 # }
2735 # ],
2736 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
2737 # &quot;version&quot;: 3
2738 # }
2739 # ```
2740 #
2741 # **YAML example:**
2742 #
2743 # ```
2744 # bindings:
2745 # - members:
2746 # - user:[email protected]
2747 # - group:[email protected]
2748 # - domain:google.com
2749 # - serviceAccount:[email protected]
2750 # role: roles/resourcemanager.organizationAdmin
2751 # - members:
2752 # - user:[email protected]
2753 # role: roles/resourcemanager.organizationViewer
2754 # condition:
2755 # title: expirable access
2756 # description: Does not grant access after Sep 2020
2757 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
2758 # etag: BwWWja0YfJA=
2759 # version: 3
2760 # ```
2761 #
2762 # For a description of IAM and its features, see the
2763 # [IAM documentation](https://cloud.google.com/iam/docs/).
2764 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
2765 { # Specifies the audit configuration for a service.
2766 # The configuration determines which permission types are logged, and what
2767 # identities, if any, are exempted from logging.
2768 # An AuditConfig must have one or more AuditLogConfigs.
2769 #
2770 # If there are AuditConfigs for both `allServices` and a specific service,
2771 # the union of the two AuditConfigs is used for that service: the log_types
2772 # specified in each AuditConfig are enabled, and the exempted_members in each
2773 # AuditLogConfig are exempted.
2774 #
2775 # Example Policy with multiple AuditConfigs:
2776 #
2777 # {
2778 # &quot;audit_configs&quot;: [
2779 # {
2780 # &quot;service&quot;: &quot;allServices&quot;,
2781 # &quot;audit_log_configs&quot;: [
2782 # {
2783 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2784 # &quot;exempted_members&quot;: [
2785 # &quot;user:[email protected]&quot;
2786 # ]
2787 # },
2788 # {
2789 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
2790 # },
2791 # {
2792 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
2793 # }
2794 # ]
2795 # },
2796 # {
2797 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
2798 # &quot;audit_log_configs&quot;: [
2799 # {
2800 # &quot;log_type&quot;: &quot;DATA_READ&quot;
2801 # },
2802 # {
2803 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
2804 # &quot;exempted_members&quot;: [
2805 # &quot;user:[email protected]&quot;
2806 # ]
2807 # }
2808 # ]
2809 # }
2810 # ]
2811 # }
2812 #
2813 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
2814 # logging. It also exempts `[email protected]` from DATA_READ logging, and
2815 # `[email protected]` from DATA_WRITE logging.
2816 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
2817 { # Provides the configuration for logging a type of permissions.
2818 # Example:
2819 #
2820 # {
2821 # &quot;audit_log_configs&quot;: [
2822 # {
2823 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2824 # &quot;exempted_members&quot;: [
2825 # &quot;user:[email protected]&quot;
2826 # ]
2827 # },
2828 # {
2829 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
2830 # }
2831 # ]
2832 # }
2833 #
2834 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
2835 # [email protected] from DATA_READ logging.
2836 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
2837 # permission.
2838 # Follows the same format of Binding.members.
2839 &quot;A String&quot;,
2840 ],
2841 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
2842 },
2843 ],
2844 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
2845 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
2846 # `allServices` is a special value that covers all services.
2847 },
2848 ],
2849 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
2850 # may specify a `condition` that determines how and when the `bindings` are
2851 # applied. Each of the `bindings` must contain at least one principal.
2852 #
2853 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
2854 # of these principals can be Google groups. Each occurrence of a principal
2855 # counts towards these limits. For example, if the `bindings` grant 50
2856 # different roles to `user:[email protected]`, and not to any other
2857 # principal, then you can add another 1,450 principals to the `bindings` in
2858 # the `Policy`.
2859 { # Associates `members`, or principals, with a `role`.
2860 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
2861 #
2862 # If the condition evaluates to `true`, then this binding applies to the
2863 # current request.
2864 #
2865 # If the condition evaluates to `false`, then this binding does not apply to
2866 # the current request. However, a different role binding might grant the same
2867 # role to one or more of the principals in this binding.
2868 #
2869 # To learn which resources support conditions in their IAM policies, see the
2870 # [IAM
2871 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2872 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
2873 # are documented at https://github.com/google/cel-spec.
2874 #
2875 # Example (Comparison):
2876 #
2877 # title: &quot;Summary size limit&quot;
2878 # description: &quot;Determines if a summary is less than 100 chars&quot;
2879 # expression: &quot;document.summary.size() &lt; 100&quot;
2880 #
2881 # Example (Equality):
2882 #
2883 # title: &quot;Requestor is owner&quot;
2884 # description: &quot;Determines if requestor is the document owner&quot;
2885 # expression: &quot;document.owner == request.auth.claims.email&quot;
2886 #
2887 # Example (Logic):
2888 #
2889 # title: &quot;Public documents&quot;
2890 # description: &quot;Determine whether the document should be publicly visible&quot;
2891 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
2892 #
2893 # Example (Data Manipulation):
2894 #
2895 # title: &quot;Notification string&quot;
2896 # description: &quot;Create a notification string with a timestamp.&quot;
2897 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
2898 #
2899 # The exact variables and functions that may be referenced within an expression
2900 # are determined by the service that evaluates it. See the service
2901 # documentation for additional information.
2902 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
2903 # describes the expression, e.g. when hovered over it in a UI.
2904 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
2905 # syntax.
2906 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
2907 # reporting, e.g. a file name and a position in the file.
2908 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
2909 # its purpose. This can be used e.g. in UIs which allow to enter the
2910 # expression.
2911 },
2912 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
2913 # `members` can have the following values:
2914 #
2915 # * `allUsers`: A special identifier that represents anyone who is
2916 # on the internet; with or without a Google account.
2917 #
2918 # * `allAuthenticatedUsers`: A special identifier that represents anyone
2919 # who is authenticated with a Google account or a service account.
2920 # Does not include identities that come from external identity providers
2921 # (IdPs) through identity federation.
2922 #
2923 # * `user:{emailid}`: An email address that represents a specific Google
2924 # account. For example, `[email protected]` .
2925 #
2926 #
2927 # * `serviceAccount:{emailid}`: An email address that represents a Google
2928 # service account. For example,
2929 # `[email protected]`.
2930 #
2931 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
2932 # identifier for a
2933 # [Kubernetes service
2934 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
2935 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
2936 #
2937 # * `group:{emailid}`: An email address that represents a Google group.
2938 # For example, `[email protected]`.
2939 #
2940 #
2941 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
2942 # users of that domain. For example, `google.com` or `example.com`.
2943 #
2944 #
2945 #
2946 #
2947 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
2948 # A single identity in a workforce identity pool.
2949 #
2950 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
2951 # All workforce identities in a group.
2952 #
2953 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
2954 # All workforce identities with a specific attribute value.
2955 #
2956 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
2957 # All identities in a workforce identity pool.
2958 #
2959 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
2960 # A single identity in a workload identity pool.
2961 #
2962 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
2963 # A workload identity pool group.
2964 #
2965 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
2966 # All identities in a workload identity pool with a certain attribute.
2967 #
2968 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
2969 # All identities in a workload identity pool.
2970 #
2971 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
2972 # identifier) representing a user that has been recently deleted. For
2973 # example, `[email protected]?uid=123456789012345678901`. If the user is
2974 # recovered, this value reverts to `user:{emailid}` and the recovered user
2975 # retains the role in the binding.
2976 #
2977 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
2978 # unique identifier) representing a service account that has been recently
2979 # deleted. For example,
2980 # `[email protected]?uid=123456789012345678901`.
2981 # If the service account is undeleted, this value reverts to
2982 # `serviceAccount:{emailid}` and the undeleted service account retains the
2983 # role in the binding.
2984 #
2985 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
2986 # identifier) representing a Google group that has been recently
2987 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
2988 # the group is recovered, this value reverts to `group:{emailid}` and the
2989 # recovered group retains the role in the binding.
2990 #
2991 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
2992 # Deleted single identity in a workforce identity pool. For example,
2993 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
2994 &quot;A String&quot;,
2995 ],
2996 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
2997 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2998 #
2999 # For an overview of the IAM roles and permissions, see the
3000 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
3001 # a list of the available pre-defined roles, see
3002 # [here](https://cloud.google.com/iam/docs/understanding-roles).
3003 },
3004 ],
3005 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
3006 # prevent simultaneous updates of a policy from overwriting each other.
3007 # It is strongly suggested that systems make use of the `etag` in the
3008 # read-modify-write cycle to perform policy updates in order to avoid race
3009 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
3010 # systems are expected to put that etag in the request to `setIamPolicy` to
3011 # ensure that their change will be applied to the same version of the policy.
3012 #
3013 # **Important:** If you use IAM Conditions, you must include the `etag` field
3014 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
3015 # you to overwrite a version `3` policy with a version `1` policy, and all of
3016 # the conditions in the version `3` policy are lost.
3017 &quot;version&quot;: 42, # Specifies the format of the policy.
3018 #
3019 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
3020 # are rejected.
3021 #
3022 # Any operation that affects conditional role bindings must specify version
3023 # `3`. This requirement applies to the following operations:
3024 #
3025 # * Getting a policy that includes a conditional role binding
3026 # * Adding a conditional role binding to a policy
3027 # * Changing a conditional role binding in a policy
3028 # * Removing any role binding, with or without a condition, from a policy
3029 # that includes conditions
3030 #
3031 # **Important:** If you use IAM Conditions, you must include the `etag` field
3032 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
3033 # you to overwrite a version `3` policy with a version `1` policy, and all of
3034 # the conditions in the version `3` policy are lost.
3035 #
3036 # If a policy does not include any conditions, operations on that policy may
3037 # specify any valid version or leave the field unset.
3038 #
3039 # To learn which resources support conditions in their IAM policies, see the
3040 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3041 }</pre>
3042 </div>
3043
3044 <div class="method">
3045 <code class="details" id="getRule">getRule(project, region, firewallPolicy, priority=None, x__xgafv=None)</code>
3046 <pre>Gets a rule of the specified priority.
3047
3048 Args:
3049 project: string, Project ID for this request. (required)
3050 region: string, Name of the region scoping this request. (required)
3051 firewallPolicy: string, Name of the firewall policy to which the queried rule belongs. (required)
3052 priority: integer, The priority of the rule to get from the firewall policy.
3053 x__xgafv: string, V1 error format.
3054 Allowed values
3055 1 - v1 error format
3056 2 - v2 error format
3057
3058 Returns:
3059 An object of the form:
3060
3061 { # Represents a rule that describes one or more match conditions along with
3062 # the action to be taken when traffic matches this condition (allow or deny).
3063 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
3064 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
3065 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
3066 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
3067 # and &quot;goto_next&quot;.
3068 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
3069 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
3070 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
3071 # the firewall policy rule is not enforced and traffic behaves as if it did
3072 # not exist. If this is unspecified, the firewall policy rule will be
3073 # enabled.
3074 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
3075 # enabled, logs will be exported to the configured export destination in
3076 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
3077 # cannot enable logging on &quot;goto_next&quot; rules.
3078 &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.
3079 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
3080 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
3081 # Exactly one field must be specified.
3082 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
3083 # Maximum number of destination address groups is 10.
3084 &quot;A String&quot;,
3085 ],
3086 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3087 # traffic destination.
3088 # Maximum number of destination fqdn allowed is 100.
3089 &quot;A String&quot;,
3090 ],
3091 &quot;destIpRanges&quot;: [ # CIDR IP address range.
3092 # Maximum number of destination CIDR IP ranges allowed is 5000.
3093 &quot;A String&quot;,
3094 ],
3095 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
3096 #
3097 #
3098 # - UNSPECIFIED
3099 # - INTERNET
3100 # - NON_INTERNET
3101 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
3102 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
3103 #
3104 #
3105 # - UNSPECIFIED
3106 # - INTERNET
3107 # - NON_INTERNET
3108 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
3109 # of traffic. Should be specified as 2 letter country code defined as per
3110 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3111 # Maximum number of dest region codes allowed is 5000.
3112 &quot;A String&quot;,
3113 ],
3114 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3115 # The IPs in these lists will be matched against traffic destination.
3116 &quot;A String&quot;,
3117 ],
3118 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
3119 {
3120 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
3121 # required when creating a firewall rule. This value can either be
3122 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
3123 # protocol number.
3124 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
3125 # only applicable for UDP or TCP protocol. Each entry must be either
3126 # an integer or a range. If not specified, this rule applies to
3127 # connections through any port.
3128 #
3129 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
3130 &quot;A String&quot;,
3131 ],
3132 },
3133 ],
3134 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
3135 # Maximum number of source address groups is 10.
3136 &quot;A String&quot;,
3137 ],
3138 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3139 # traffic source.
3140 # Maximum number of source fqdn allowed is 100.
3141 &quot;A String&quot;,
3142 ],
3143 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
3144 # Maximum number of source CIDR IP ranges allowed is 5000.
3145 &quot;A String&quot;,
3146 ],
3147 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
3148 #
3149 #
3150 # - UNSPECIFIED
3151 # - INTERNET
3152 # - INTRA_VPC
3153 # - NON_INTERNET
3154 # - VPC_NETWORKS
3155 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
3156 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
3157 #
3158 #
3159 # - UNSPECIFIED
3160 # - INTERNET
3161 # - INTRA_VPC
3162 # - NON_INTERNET
3163 # - VPC_NETWORKS
3164 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
3165 &quot;A String&quot;,
3166 ],
3167 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
3168 # of traffic. Should be specified as 2 letter country code defined as per
3169 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3170 # Maximum number of source region codes allowed is 5000.
3171 &quot;A String&quot;,
3172 ],
3173 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
3174 # of the traffic.
3175 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
3176 # and there is no srcIpRange, this rule will be ignored.
3177 # Maximum number of source tag values allowed is 256.
3178 {
3179 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3180 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3181 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3182 # or its network is deleted.
3183 },
3184 ],
3185 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3186 # The IPs in these lists will be matched against traffic source.
3187 &quot;A String&quot;,
3188 ],
3189 },
3190 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
3191 # must be a positive value between 0 and 2147483647.
3192 # Rules are evaluated from highest to lowest priority where 0 is the
3193 # highest priority and 2147483647 is the lowest priority.
3194 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
3195 # and can be updated.
3196 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
3197 # rule.
3198 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
3199 # Example:
3200 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
3201 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
3202 # &#x27;mirror&#x27;. Cannot be specified for other actions.
3203 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
3204 # This field allows you to control which load balancers get this rule.
3205 # For example, the following are valid values:
3206 #
3207 #
3208 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
3209 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
3210 # - projects/project/global/
3211 # forwardingRules/forwardingRule
3212 # - projects/project/regions/region/forwardingRules/
3213 # forwardingRule
3214 &quot;A String&quot;,
3215 ],
3216 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
3217 # allows you to control which network&#x27;s VMs get this rule. If this field
3218 # is left blank, all VMs within the organization will receive the rule.
3219 &quot;A String&quot;,
3220 ],
3221 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
3222 # applies to. If targetSecureTag are specified, then the
3223 # firewall rule applies only to instances in the VPC network that have one
3224 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
3225 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
3226 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
3227 # to all instances on the specified network.
3228 # Maximum number of target label tags allowed is 256.
3229 {
3230 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3231 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3232 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3233 # or its network is deleted.
3234 },
3235 ],
3236 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
3237 # applied with this rule.
3238 &quot;A String&quot;,
3239 ],
3240 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
3241 # Default value is INSTANCES.
3242 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
3243 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
3244 # be set for other actions.
3245 }</pre>
3246 </div>
3247
3248 <div class="method">
3249 <code class="details" id="insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</code>
3250 <pre>Creates a new network firewall policy in the specified project and region.
3251
3252 Args:
3253 project: string, Project ID for this request. (required)
3254 region: string, Name of the region scoping this request. (required)
3255 body: object, The request body.
3256 The object takes the form of:
3257
3258 { # Represents a Firewall Policy resource.
3259 &quot;associations&quot;: [ # A list of associations that belong to this firewall policy.
3260 {
3261 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
3262 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
3263 # of the firewall policy of the association.
3264 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
3265 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
3266 &quot;priority&quot;: 42, # An integer indicating the priority of an association. The priority
3267 # must be a positive value between 1 and 2147483647.
3268 # Firewall Policies are evaluated from highest to lowest priority where 1
3269 # is the highest priority and 2147483647 is the lowest priority.
3270 # The default value is `1000`. If two associations have the same priority
3271 # then lexicographical order on association names is applied.
3272 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
3273 },
3274 ],
3275 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
3276 # text format.
3277 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
3278 # create the resource.
3279 &quot;displayName&quot;: &quot;A String&quot;, # Deprecated, please use short name instead. User-provided name of the
3280 # Organization firewall policy. The name should be unique in the organization
3281 # in which the firewall policy is created.
3282 # This field is not applicable to network firewall policies.
3283 # This name must be set on creation and cannot be changed.
3284 # The name must be 1-63 characters long, and comply
3285 # with RFC1035. Specifically, the name must be 1-63 characters
3286 # long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which
3287 # means the first character must be a lowercase letter, and all following
3288 # characters must be a dash, lowercase letter, or digit, except the last
3289 # character, which cannot be a dash.
3290 &quot;fingerprint&quot;: &quot;A String&quot;, # Specifies a fingerprint for this resource, which is essentially a hash of
3291 # the metadata&#x27;s contents and used for optimistic locking. The
3292 # fingerprint is initially generated by Compute Engine and changes after
3293 # every request to modify or update metadata. You must always provide an
3294 # up-to-date fingerprint hash in order to update or change metadata,
3295 # otherwise the request will fail with error412 conditionNotMet.
3296 #
3297 # To see the latest fingerprint, make get() request to the
3298 # firewall policy.
3299 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
3300 # defined by the server.
3301 &quot;kind&quot;: &quot;compute#firewallPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
3302 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. For Organization Firewall Policies it&#x27;s a
3303 # [Output Only] numeric ID allocated by Google Cloud which uniquely
3304 # identifies the Organization Firewall Policy.
3305 &quot;packetMirroringRules&quot;: [ # A list of packet mirroring rules that belong to this policy.
3306 { # Represents a rule that describes one or more match conditions along with
3307 # the action to be taken when traffic matches this condition (allow or deny).
3308 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
3309 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
3310 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
3311 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
3312 # and &quot;goto_next&quot;.
3313 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
3314 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
3315 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
3316 # the firewall policy rule is not enforced and traffic behaves as if it did
3317 # not exist. If this is unspecified, the firewall policy rule will be
3318 # enabled.
3319 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
3320 # enabled, logs will be exported to the configured export destination in
3321 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
3322 # cannot enable logging on &quot;goto_next&quot; rules.
3323 &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.
3324 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
3325 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
3326 # Exactly one field must be specified.
3327 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
3328 # Maximum number of destination address groups is 10.
3329 &quot;A String&quot;,
3330 ],
3331 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3332 # traffic destination.
3333 # Maximum number of destination fqdn allowed is 100.
3334 &quot;A String&quot;,
3335 ],
3336 &quot;destIpRanges&quot;: [ # CIDR IP address range.
3337 # Maximum number of destination CIDR IP ranges allowed is 5000.
3338 &quot;A String&quot;,
3339 ],
3340 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
3341 #
3342 #
3343 # - UNSPECIFIED
3344 # - INTERNET
3345 # - NON_INTERNET
3346 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
3347 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
3348 #
3349 #
3350 # - UNSPECIFIED
3351 # - INTERNET
3352 # - NON_INTERNET
3353 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
3354 # of traffic. Should be specified as 2 letter country code defined as per
3355 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3356 # Maximum number of dest region codes allowed is 5000.
3357 &quot;A String&quot;,
3358 ],
3359 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3360 # The IPs in these lists will be matched against traffic destination.
3361 &quot;A String&quot;,
3362 ],
3363 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
3364 {
3365 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
3366 # required when creating a firewall rule. This value can either be
3367 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
3368 # protocol number.
3369 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
3370 # only applicable for UDP or TCP protocol. Each entry must be either
3371 # an integer or a range. If not specified, this rule applies to
3372 # connections through any port.
3373 #
3374 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
3375 &quot;A String&quot;,
3376 ],
3377 },
3378 ],
3379 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
3380 # Maximum number of source address groups is 10.
3381 &quot;A String&quot;,
3382 ],
3383 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3384 # traffic source.
3385 # Maximum number of source fqdn allowed is 100.
3386 &quot;A String&quot;,
3387 ],
3388 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
3389 # Maximum number of source CIDR IP ranges allowed is 5000.
3390 &quot;A String&quot;,
3391 ],
3392 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
3393 #
3394 #
3395 # - UNSPECIFIED
3396 # - INTERNET
3397 # - INTRA_VPC
3398 # - NON_INTERNET
3399 # - VPC_NETWORKS
3400 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
3401 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
3402 #
3403 #
3404 # - UNSPECIFIED
3405 # - INTERNET
3406 # - INTRA_VPC
3407 # - NON_INTERNET
3408 # - VPC_NETWORKS
3409 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
3410 &quot;A String&quot;,
3411 ],
3412 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
3413 # of traffic. Should be specified as 2 letter country code defined as per
3414 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3415 # Maximum number of source region codes allowed is 5000.
3416 &quot;A String&quot;,
3417 ],
3418 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
3419 # of the traffic.
3420 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
3421 # and there is no srcIpRange, this rule will be ignored.
3422 # Maximum number of source tag values allowed is 256.
3423 {
3424 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3425 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3426 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3427 # or its network is deleted.
3428 },
3429 ],
3430 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3431 # The IPs in these lists will be matched against traffic source.
3432 &quot;A String&quot;,
3433 ],
3434 },
3435 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
3436 # must be a positive value between 0 and 2147483647.
3437 # Rules are evaluated from highest to lowest priority where 0 is the
3438 # highest priority and 2147483647 is the lowest priority.
3439 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
3440 # and can be updated.
3441 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
3442 # rule.
3443 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
3444 # Example:
3445 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
3446 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
3447 # &#x27;mirror&#x27;. Cannot be specified for other actions.
3448 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
3449 # This field allows you to control which load balancers get this rule.
3450 # For example, the following are valid values:
3451 #
3452 #
3453 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
3454 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
3455 # - projects/project/global/
3456 # forwardingRules/forwardingRule
3457 # - projects/project/regions/region/forwardingRules/
3458 # forwardingRule
3459 &quot;A String&quot;,
3460 ],
3461 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
3462 # allows you to control which network&#x27;s VMs get this rule. If this field
3463 # is left blank, all VMs within the organization will receive the rule.
3464 &quot;A String&quot;,
3465 ],
3466 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
3467 # applies to. If targetSecureTag are specified, then the
3468 # firewall rule applies only to instances in the VPC network that have one
3469 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
3470 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
3471 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
3472 # to all instances on the specified network.
3473 # Maximum number of target label tags allowed is 256.
3474 {
3475 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3476 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3477 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3478 # or its network is deleted.
3479 },
3480 ],
3481 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
3482 # applied with this rule.
3483 &quot;A String&quot;,
3484 ],
3485 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
3486 # Default value is INSTANCES.
3487 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
3488 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
3489 # be set for other actions.
3490 },
3491 ],
3492 &quot;parent&quot;: &quot;A String&quot;, # Output only. [Output Only] The parent of the firewall policy.
3493 # This field is not applicable to network firewall policies.
3494 &quot;policySource&quot;: &quot;A String&quot;, # Indicates the source of this Firewall Policy. This field is optional on
3495 # creation and defaults to USER_DEFINED.
3496 #
3497 # The USER_DEFINED value indicates a regular firewall policy.
3498 #
3499 # The SYSTEM value indicates a system-level policy managed by an
3500 # internal service like GKE. This SYSTEM value is reserved for
3501 # internal services and cannot be set by users during policy creation.
3502 # Policies with a SYSTEM source cannot be modified or deleted by
3503 # users.
3504 &quot;policyType&quot;: &quot;A String&quot;, # The type of the firewall policy. This field can be one of
3505 # VPC_POLICY, RDMA_ROCE_POLICY or ULL_POLICY.
3506 #
3507 # Note: if not specified then VPC_POLICY will be used.
3508 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional firewall policy resides.
3509 # This field is not applicable to global firewall policies.
3510 # You must specify this field as part of the HTTP request URL. It is
3511 # not settable as a field in the request body.
3512 &quot;rolloutOperation&quot;: { # Represents progressive rollout input parameters and current status. # Configuration and status of the progressive rollout of this resource.
3513 &quot;rolloutInput&quot;: { # Represents progressive rollout input parameters. # Input parameters to be used by the next not yet scheduled rollout.
3514 &quot;name&quot;: &quot;A String&quot;, # The name of the rollout plan. Ex.
3515 # organizations//locations/global/rolloutPlans/.
3516 &quot;predefinedRolloutPlan&quot;: &quot;A String&quot;, # Predefined rollout plan.
3517 &quot;retryUuid&quot;: &quot;A String&quot;, # The UUID of the retry action. Only needed if this is a retry for an
3518 # existing rollout. This can be used after the user canceled a rollout
3519 # and want to retry it with no changes.
3520 },
3521 &quot;rolloutStatus&quot;: { # Represents progressive rollout current status. # [Output only] Current status of the rollout.
3522 &quot;nextRollout&quot;: { # [Output only] The next rollout.
3523 &quot;rolloutId&quot;: &quot;A String&quot;, # Output only. [Output only] The id of the next rollout.
3524 &quot;rolloutPlan&quot;: &quot;A String&quot;, # The name of the rollout plan to be used by the next not yet started
3525 # rollout. This field is auto populated based on RolloutInput when a
3526 # new rollout is scheduled. This can be manually changed before the
3527 # scheduled rollout starts.
3528 # Ex.
3529 # organizations//locations/global/rolloutPlans/
3530 },
3531 &quot;ongoingRollouts&quot;: [ # [Output only] The ongoing rollout.
3532 { # Represents the status of the progressive rollout instance, either
3533 # completed or ongoing.
3534 &quot;rollout&quot;: &quot;A String&quot;, # Output only. [Output only] The name of the rollout
3535 # organizations//locations/global/rollouts/
3536 &quot;rolloutPlan&quot;: &quot;A String&quot;, # Output only. [Output only] The name of the rollout plan used by this rollout
3537 # organizations//locations/global/rolloutPlans/
3538 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output only] The state of the rollout.
3539 },
3540 ],
3541 &quot;previousRollout&quot;: { # Represents the status of the progressive rollout instance, either # [Output only] The last previously executed rollout.
3542 # completed or ongoing.
3543 &quot;rollout&quot;: &quot;A String&quot;, # Output only. [Output only] The name of the rollout
3544 # organizations//locations/global/rollouts/
3545 &quot;rolloutPlan&quot;: &quot;A String&quot;, # Output only. [Output only] The name of the rollout plan used by this rollout
3546 # organizations//locations/global/rolloutPlans/
3547 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output only] The state of the rollout.
3548 },
3549 },
3550 },
3551 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall
3552 # policy can not exceed a set number of tuples.
3553 &quot;rules&quot;: [ # A list of rules that belong to this policy.
3554 # There must always be a default rule (rule with priority 2147483647 and
3555 # match &quot;*&quot;). If no rules are provided when creating a firewall policy, a
3556 # default rule with action &quot;allow&quot; will be added.
3557 { # Represents a rule that describes one or more match conditions along with
3558 # the action to be taken when traffic matches this condition (allow or deny).
3559 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
3560 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
3561 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
3562 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
3563 # and &quot;goto_next&quot;.
3564 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
3565 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
3566 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
3567 # the firewall policy rule is not enforced and traffic behaves as if it did
3568 # not exist. If this is unspecified, the firewall policy rule will be
3569 # enabled.
3570 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
3571 # enabled, logs will be exported to the configured export destination in
3572 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
3573 # cannot enable logging on &quot;goto_next&quot; rules.
3574 &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.
3575 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
3576 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
3577 # Exactly one field must be specified.
3578 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
3579 # Maximum number of destination address groups is 10.
3580 &quot;A String&quot;,
3581 ],
3582 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3583 # traffic destination.
3584 # Maximum number of destination fqdn allowed is 100.
3585 &quot;A String&quot;,
3586 ],
3587 &quot;destIpRanges&quot;: [ # CIDR IP address range.
3588 # Maximum number of destination CIDR IP ranges allowed is 5000.
3589 &quot;A String&quot;,
3590 ],
3591 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
3592 #
3593 #
3594 # - UNSPECIFIED
3595 # - INTERNET
3596 # - NON_INTERNET
3597 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
3598 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
3599 #
3600 #
3601 # - UNSPECIFIED
3602 # - INTERNET
3603 # - NON_INTERNET
3604 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
3605 # of traffic. Should be specified as 2 letter country code defined as per
3606 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3607 # Maximum number of dest region codes allowed is 5000.
3608 &quot;A String&quot;,
3609 ],
3610 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3611 # The IPs in these lists will be matched against traffic destination.
3612 &quot;A String&quot;,
3613 ],
3614 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
3615 {
3616 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
3617 # required when creating a firewall rule. This value can either be
3618 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
3619 # protocol number.
3620 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
3621 # only applicable for UDP or TCP protocol. Each entry must be either
3622 # an integer or a range. If not specified, this rule applies to
3623 # connections through any port.
3624 #
3625 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
3626 &quot;A String&quot;,
3627 ],
3628 },
3629 ],
3630 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
3631 # Maximum number of source address groups is 10.
3632 &quot;A String&quot;,
3633 ],
3634 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
3635 # traffic source.
3636 # Maximum number of source fqdn allowed is 100.
3637 &quot;A String&quot;,
3638 ],
3639 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
3640 # Maximum number of source CIDR IP ranges allowed is 5000.
3641 &quot;A String&quot;,
3642 ],
3643 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
3644 #
3645 #
3646 # - UNSPECIFIED
3647 # - INTERNET
3648 # - INTRA_VPC
3649 # - NON_INTERNET
3650 # - VPC_NETWORKS
3651 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
3652 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
3653 #
3654 #
3655 # - UNSPECIFIED
3656 # - INTERNET
3657 # - INTRA_VPC
3658 # - NON_INTERNET
3659 # - VPC_NETWORKS
3660 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
3661 &quot;A String&quot;,
3662 ],
3663 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
3664 # of traffic. Should be specified as 2 letter country code defined as per
3665 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
3666 # Maximum number of source region codes allowed is 5000.
3667 &quot;A String&quot;,
3668 ],
3669 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
3670 # of the traffic.
3671 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
3672 # and there is no srcIpRange, this rule will be ignored.
3673 # Maximum number of source tag values allowed is 256.
3674 {
3675 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3676 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3677 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3678 # or its network is deleted.
3679 },
3680 ],
3681 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
3682 # The IPs in these lists will be matched against traffic source.
3683 &quot;A String&quot;,
3684 ],
3685 },
3686 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
3687 # must be a positive value between 0 and 2147483647.
3688 # Rules are evaluated from highest to lowest priority where 0 is the
3689 # highest priority and 2147483647 is the lowest priority.
3690 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
3691 # and can be updated.
3692 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
3693 # rule.
3694 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
3695 # Example:
3696 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
3697 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
3698 # &#x27;mirror&#x27;. Cannot be specified for other actions.
3699 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
3700 # This field allows you to control which load balancers get this rule.
3701 # For example, the following are valid values:
3702 #
3703 #
3704 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
3705 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
3706 # - projects/project/global/
3707 # forwardingRules/forwardingRule
3708 # - projects/project/regions/region/forwardingRules/
3709 # forwardingRule
3710 &quot;A String&quot;,
3711 ],
3712 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
3713 # allows you to control which network&#x27;s VMs get this rule. If this field
3714 # is left blank, all VMs within the organization will receive the rule.
3715 &quot;A String&quot;,
3716 ],
3717 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
3718 # applies to. If targetSecureTag are specified, then the
3719 # firewall rule applies only to instances in the VPC network that have one
3720 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
3721 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
3722 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
3723 # to all instances on the specified network.
3724 # Maximum number of target label tags allowed is 256.
3725 {
3726 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
3727 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
3728 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
3729 # or its network is deleted.
3730 },
3731 ],
3732 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
3733 # applied with this rule.
3734 &quot;A String&quot;,
3735 ],
3736 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
3737 # Default value is INSTANCES.
3738 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
3739 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
3740 # be set for other actions.
3741 },
3742 ],
3743 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
3744 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
3745 &quot;shortName&quot;: &quot;A String&quot;, # User-provided name of the Organization firewall policy. The name should be
3746 # unique in the organization in which the firewall policy is created.
3747 # This field is not applicable to network firewall policies.
3748 # This name must be set on creation and cannot be changed. The name must be
3749 # 1-63 characters long, and comply with RFC1035.
3750 # Specifically, the name must be 1-63 characters long and match the regular
3751 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
3752 # character must be a lowercase letter, and all following characters must
3753 # be a dash, lowercase letter, or digit, except the last character, which
3754 # cannot be a dash.
3755 &quot;vpcNetworkScope&quot;: &quot;A String&quot;, # The scope of networks allowed to be associated with the firewall
3756 # policy. This field can be either GLOBAL_VPC_NETWORK orREGIONAL_VPC_NETWORK.
3757 #
3758 # A firewall policy with the VPC scope set to GLOBAL_VPC_NETWORK
3759 # is allowed to be attached only to global networks.
3760 #
3761 # When the VPC scope is set to REGIONAL_VPC_NETWORK the firewall
3762 # policy is allowed to be attached only to regional networks in the same
3763 # scope as the firewall policy.
3764 #
3765 # Note: if not specified then GLOBAL_VPC_NETWORK will be used.
3766 }
3767
3768 requestId: string, An optional request ID to identify requests. Specify a unique request ID
3769 so that if you must retry your request, the server will know to ignore the
3770 request if it has already been completed.
3771
3772 For example, consider a situation where you make an initial request and
3773 the request times out. If you make the request again with the same
3774 request ID, the server can check if original operation with the same
3775 request ID was received, and if so, will ignore the second request. This
3776 prevents clients from accidentally creating duplicate commitments.
3777
3778 The request ID must be
3779 a valid UUID with the exception that zero UUID is not supported
3780 (00000000-0000-0000-0000-000000000000).
3781 x__xgafv: string, V1 error format.
3782 Allowed values
3783 1 - v1 error format
3784 2 - v2 error format
3785
3786 Returns:
3787 An object of the form:
3788
3789 { # Represents an Operation resource.
3790 #
3791 # Google Compute Engine has three Operation resources:
3792 #
3793 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
3794 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
3795 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
3796 #
3797 # You can use an operation resource to manage asynchronous API requests.
3798 # For more information, readHandling
3799 # API responses.
3800 #
3801 # Operations can be global, regional or zonal.
3802 #
3803 # - For global operations, use the `globalOperations`
3804 # resource.
3805 # - For regional operations, use the
3806 # `regionOperations` resource.
3807 # - For zonal operations, use
3808 # the `zoneOperations` resource.
3809 #
3810 #
3811 #
3812 # For more information, read
3813 # Global, Regional, and Zonal Resources.
3814 #
3815 # Note that completed Operation resources have a limited
3816 # retention period.
3817 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
3818 # Not present otherwise.
3819 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
3820 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
3821 # set when the operation is created.
3822 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
3823 # text format.
3824 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
3825 # this field will be populated.
3826 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
3827 # operation.
3828 {
3829 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
3830 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
3831 # details. There is a set of defined message types to use for providing
3832 # details.The syntax depends on the error code. For example,
3833 # QuotaExceededInfo will have details when the error code is
3834 # QUOTA_EXCEEDED.
3835 {
3836 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
3837 #
3838 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
3839 # is not enabled:
3840 #
3841 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
3842 # &quot;domain&quot;: &quot;googleapis.com&quot;
3843 # &quot;metadata&quot;: {
3844 # &quot;resource&quot;: &quot;projects/123&quot;,
3845 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
3846 # }
3847 # }
3848 #
3849 # This response indicates that the pubsub.googleapis.com API is not enabled.
3850 #
3851 # Example of an error that is returned when attempting to create a Spanner
3852 # instance in a region that is out of stock:
3853 #
3854 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
3855 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
3856 # &quot;metadata&quot;: {
3857 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
3858 # }
3859 # }
3860 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
3861 # is typically the registered service name of the tool or product that
3862 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
3863 # generated by some common infrastructure, the error domain must be a
3864 # globally unique value that identifies the infrastructure. For Google API
3865 # infrastructure, the error domain is &quot;googleapis.com&quot;.
3866 &quot;metadatas&quot;: { # Additional structured details about this error.
3867 #
3868 # Keys must match a regular expression of `a-z+` but should
3869 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
3870 # length. When identifying the current value of an exceeded limit, the units
3871 # should be contained in the key, not the value. For example, rather than
3872 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
3873 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
3874 # instances that can be created in a single (batch) request.
3875 &quot;a_key&quot;: &quot;A String&quot;,
3876 },
3877 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
3878 # proximate cause of the error. Error reasons are unique within a particular
3879 # domain of errors. This should be at most 63 characters and match a
3880 # regular expression of `A-Z+[A-Z0-9]`, which represents
3881 # UPPER_SNAKE_CASE.
3882 },
3883 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
3884 #
3885 # For example, if a quota check failed with an error indicating the calling
3886 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
3887 # directly to the right place in the developer console to flip the bit.
3888 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
3889 { # Describes a URL link.
3890 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
3891 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
3892 },
3893 ],
3894 },
3895 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
3896 # which can be attached to an RPC error.
3897 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
3898 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
3899 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
3900 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
3901 },
3902 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
3903 &quot;dimensions&quot;: { # The map holding related quota dimensions.
3904 &quot;a_key&quot;: &quot;A String&quot;,
3905 },
3906 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
3907 # type or metric.
3908 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
3909 # or metric.
3910 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
3911 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
3912 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
3913 },
3914 },
3915 ],
3916 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
3917 # This property is optional.
3918 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
3919 },
3920 ],
3921 },
3922 &quot;getVersionOperationMetadata&quot;: {
3923 &quot;inlineSbomInfo&quot;: {
3924 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
3925 # appropriate identifiers.
3926 &quot;a_key&quot;: &quot;A String&quot;,
3927 },
3928 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
3929 # identifiers.
3930 &quot;a_key&quot;: &quot;A String&quot;,
3931 },
3932 },
3933 },
3934 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
3935 # message that was returned, such as `NOT FOUND`.
3936 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
3937 # status code that was returned. For example, a `404` means the
3938 # resource was not found.
3939 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
3940 # defined by the server.
3941 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
3942 # This value is inRFC3339
3943 # text format.
3944 &quot;instancesBulkInsertOperationMetadata&quot;: {
3945 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
3946 # Example key: zones/us-central1-a
3947 &quot;a_key&quot;: {
3948 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
3949 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
3950 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
3951 # error.
3952 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
3953 # if the flow is rolling forward or rolling back.
3954 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
3955 },
3956 },
3957 },
3958 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
3959 # Operation resources.
3960 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
3961 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
3962 # group of operations results from a `bulkInsert` API request.
3963 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
3964 # `update`, or `delete`, and so on.
3965 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
3966 # There is no requirement that this be linear or support any granularity of
3967 # operations. This should not be used to guess when the operation will be
3968 # complete. This number should monotonically increase as the operation
3969 # progresses.
3970 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
3971 # applicable when performing regional operations.
3972 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
3973 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
3974 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
3975 # this field will contain information on all underlying zonal actions and
3976 # their state.
3977 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
3978 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
3979 # Example key: zones/us-central1-a
3980 &quot;a_key&quot;: {
3981 &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
3982 # populated.
3983 # different programming environments, including REST APIs and RPC APIs. It is
3984 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3985 # three pieces of data: error code, error message, and error details.
3986 #
3987 # You can find out more about this error model and how to work with it in the
3988 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3989 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3990 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3991 # message types for APIs to use.
3992 {
3993 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3994 },
3995 ],
3996 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3997 # user-facing error message should be localized and sent in the
3998 # google.rpc.Status.details field, or localized by the client.
3999 },
4000 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
4001 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
4002 },
4003 },
4004 },
4005 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
4006 # This value is inRFC3339
4007 # text format.
4008 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
4009 # following:
4010 # `PENDING`, `RUNNING`, or `DONE`.
4011 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
4012 # operation.
4013 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
4014 # of the target resource.
4015 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
4016 # operations related to creating a snapshot, this points to the disk
4017 # that the snapshot was created from.
4018 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
4019 # `[email protected]` or
4020 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
4021 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
4022 # operation, this field will be populated.
4023 {
4024 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
4025 # Engine returns NO_RESULTS_ON_PAGE if there
4026 # are no results in the response.
4027 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
4028 # value format. For example:
4029 #
4030 # &quot;data&quot;: [
4031 # {
4032 # &quot;key&quot;: &quot;scope&quot;,
4033 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
4034 # }
4035 {
4036 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
4037 # returned. For example, for warnings where there are no results in a list
4038 # request for a particular zone, this key might be scope and
4039 # the key value might be the zone name. Other examples might be a key
4040 # indicating a deprecated resource and a suggested replacement, or a
4041 # warning about invalid network settings (for example, if an instance
4042 # attempts to perform IP forwarding but is not enabled for IP forwarding).
4043 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
4044 },
4045 ],
4046 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
4047 },
4048 ],
4049 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
4050 # applicable when performing per-zone operations.
4051 }</pre>
4052 </div>
4053
4054 <div class="method">
4055 <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
4056 <pre>Lists all the network firewall policies that have been configured
4057 for the specified project in the given region.
4058
4059 Args:
4060 project: string, Project ID for this request. (required)
4061 region: string, Name of the region scoping this request. (required)
4062 filter: string, A filter expression that filters resources listed in the response. Most
4063 Compute resources support two types of filter expressions:
4064 expressions that support regular expressions and expressions that follow
4065 API improvement proposal AIP-160.
4066 These two types of filter expressions cannot be mixed in one request.
4067
4068 If you want to use AIP-160, your expression must specify the field name, an
4069 operator, and the value that you want to use for filtering. The value
4070 must be a string, a number, or a boolean. The operator
4071 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
4072
4073 For example, if you are filtering Compute Engine instances, you can
4074 exclude instances named `example-instance` by specifying
4075 `name != example-instance`.
4076
4077 The `:*` comparison can be used to test whether a key has been defined.
4078 For example, to find all objects with `owner` label use:
4079 ```
4080 labels.owner:*
4081 ```
4082
4083 You can also filter nested fields. For example, you could specify
4084 `scheduling.automaticRestart = false` to include instances only
4085 if they are not scheduled for automatic restarts. You can use filtering
4086 on nested fields to filter based onresource labels.
4087
4088 To filter on multiple expressions, provide each separate expression within
4089 parentheses. For example:
4090 ```
4091 (scheduling.automaticRestart = true)
4092 (cpuPlatform = &quot;Intel Skylake&quot;)
4093 ```
4094 By default, each expression is an `AND` expression. However, you
4095 can include `AND` and `OR` expressions explicitly.
4096 For example:
4097 ```
4098 (cpuPlatform = &quot;Intel Skylake&quot;) OR
4099 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
4100 (scheduling.automaticRestart = true)
4101 ```
4102
4103 If you want to use a regular expression, use the `eq` (equal) or `ne`
4104 (not equal) operator against a single un-parenthesized expression with or
4105 without quotes or against multiple parenthesized expressions. Examples:
4106
4107 `fieldname eq unquoted literal`
4108 `fieldname eq &#x27;single quoted literal&#x27;`
4109 `fieldname eq &quot;double quoted literal&quot;`
4110 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
4111
4112 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
4113 The literal value must match the entire field.
4114
4115 For example, to filter for instances that do not end with name &quot;instance&quot;,
4116 you would use `name ne .*instance`.
4117
4118 You cannot combine constraints on multiple fields using regular
4119 expressions.
4120 maxResults: integer, The maximum number of results per page that should be returned.
4121 If the number of available results is larger than `maxResults`,
4122 Compute Engine returns a `nextPageToken` that can be used to get
4123 the next page of results in subsequent list requests. Acceptable values are
4124 `0` to `500`, inclusive. (Default: `500`)
4125 orderBy: string, Sorts list results by a certain order. By default, results
4126 are returned in alphanumerical order based on the resource name.
4127
4128 You can also sort results in descending order based on the creation
4129 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
4130 results based on the `creationTimestamp` field in
4131 reverse chronological order (newest result first). Use this to sort
4132 resources like operations so that the newest operation is returned first.
4133
4134 Currently, only sorting by `name` or
4135 `creationTimestamp desc` is supported.
4136 pageToken: string, Specifies a page token to use. Set `pageToken` to the
4137 `nextPageToken` returned by a previous list request to get
4138 the next page of results.
4139 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
4140 of failure. The default value is false.
4141
4142 For example, when partial success behavior is enabled, aggregatedList for a
4143 single zone scope either returns all resources in the zone or no resources,
4144 with an error code.
4145 x__xgafv: string, V1 error format.
4146 Allowed values
4147 1 - v1 error format
4148 2 - v2 error format
4149
4150 Returns:
4151 An object of the form:
4152
4153 {
4154 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
4155 &quot;items&quot;: [ # A list of FirewallPolicy resources.
4156 { # Represents a Firewall Policy resource.
4157 &quot;associations&quot;: [ # A list of associations that belong to this firewall policy.
4158 {
4159 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
4160 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
4161 # of the firewall policy of the association.
4162 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
4163 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
4164 &quot;priority&quot;: 42, # An integer indicating the priority of an association. The priority
4165 # must be a positive value between 1 and 2147483647.
4166 # Firewall Policies are evaluated from highest to lowest priority where 1
4167 # is the highest priority and 2147483647 is the lowest priority.
4168 # The default value is `1000`. If two associations have the same priority
4169 # then lexicographical order on association names is applied.
4170 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
4171 },
4172 ],
4173 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
4174 # text format.
4175 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
4176 # create the resource.
4177 &quot;displayName&quot;: &quot;A String&quot;, # Deprecated, please use short name instead. User-provided name of the
4178 # Organization firewall policy. The name should be unique in the organization
4179 # in which the firewall policy is created.
4180 # This field is not applicable to network firewall policies.
4181 # This name must be set on creation and cannot be changed.
4182 # The name must be 1-63 characters long, and comply
4183 # with RFC1035. Specifically, the name must be 1-63 characters
4184 # long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which
4185 # means the first character must be a lowercase letter, and all following
4186 # characters must be a dash, lowercase letter, or digit, except the last
4187 # character, which cannot be a dash.
4188 &quot;fingerprint&quot;: &quot;A String&quot;, # Specifies a fingerprint for this resource, which is essentially a hash of
4189 # the metadata&#x27;s contents and used for optimistic locking. The
4190 # fingerprint is initially generated by Compute Engine and changes after
4191 # every request to modify or update metadata. You must always provide an
4192 # up-to-date fingerprint hash in order to update or change metadata,
4193 # otherwise the request will fail with error412 conditionNotMet.
4194 #
4195 # To see the latest fingerprint, make get() request to the
4196 # firewall policy.
4197 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
4198 # defined by the server.
4199 &quot;kind&quot;: &quot;compute#firewallPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
4200 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. For Organization Firewall Policies it&#x27;s a
4201 # [Output Only] numeric ID allocated by Google Cloud which uniquely
4202 # identifies the Organization Firewall Policy.
4203 &quot;packetMirroringRules&quot;: [ # A list of packet mirroring rules that belong to this policy.
4204 { # Represents a rule that describes one or more match conditions along with
4205 # the action to be taken when traffic matches this condition (allow or deny).
4206 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
4207 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
4208 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
4209 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
4210 # and &quot;goto_next&quot;.
4211 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
4212 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
4213 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
4214 # the firewall policy rule is not enforced and traffic behaves as if it did
4215 # not exist. If this is unspecified, the firewall policy rule will be
4216 # enabled.
4217 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
4218 # enabled, logs will be exported to the configured export destination in
4219 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
4220 # cannot enable logging on &quot;goto_next&quot; rules.
4221 &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.
4222 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
4223 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
4224 # Exactly one field must be specified.
4225 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
4226 # Maximum number of destination address groups is 10.
4227 &quot;A String&quot;,
4228 ],
4229 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4230 # traffic destination.
4231 # Maximum number of destination fqdn allowed is 100.
4232 &quot;A String&quot;,
4233 ],
4234 &quot;destIpRanges&quot;: [ # CIDR IP address range.
4235 # Maximum number of destination CIDR IP ranges allowed is 5000.
4236 &quot;A String&quot;,
4237 ],
4238 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
4239 #
4240 #
4241 # - UNSPECIFIED
4242 # - INTERNET
4243 # - NON_INTERNET
4244 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
4245 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
4246 #
4247 #
4248 # - UNSPECIFIED
4249 # - INTERNET
4250 # - NON_INTERNET
4251 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
4252 # of traffic. Should be specified as 2 letter country code defined as per
4253 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4254 # Maximum number of dest region codes allowed is 5000.
4255 &quot;A String&quot;,
4256 ],
4257 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4258 # The IPs in these lists will be matched against traffic destination.
4259 &quot;A String&quot;,
4260 ],
4261 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
4262 {
4263 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
4264 # required when creating a firewall rule. This value can either be
4265 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
4266 # protocol number.
4267 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
4268 # only applicable for UDP or TCP protocol. Each entry must be either
4269 # an integer or a range. If not specified, this rule applies to
4270 # connections through any port.
4271 #
4272 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
4273 &quot;A String&quot;,
4274 ],
4275 },
4276 ],
4277 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
4278 # Maximum number of source address groups is 10.
4279 &quot;A String&quot;,
4280 ],
4281 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4282 # traffic source.
4283 # Maximum number of source fqdn allowed is 100.
4284 &quot;A String&quot;,
4285 ],
4286 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
4287 # Maximum number of source CIDR IP ranges allowed is 5000.
4288 &quot;A String&quot;,
4289 ],
4290 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
4291 #
4292 #
4293 # - UNSPECIFIED
4294 # - INTERNET
4295 # - INTRA_VPC
4296 # - NON_INTERNET
4297 # - VPC_NETWORKS
4298 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
4299 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
4300 #
4301 #
4302 # - UNSPECIFIED
4303 # - INTERNET
4304 # - INTRA_VPC
4305 # - NON_INTERNET
4306 # - VPC_NETWORKS
4307 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
4308 &quot;A String&quot;,
4309 ],
4310 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
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 source region codes allowed is 5000.
4314 &quot;A String&quot;,
4315 ],
4316 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
4317 # of the traffic.
4318 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
4319 # and there is no srcIpRange, this rule will be ignored.
4320 # Maximum number of source tag values allowed is 256.
4321 {
4322 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4323 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4324 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4325 # or its network is deleted.
4326 },
4327 ],
4328 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4329 # The IPs in these lists will be matched against traffic source.
4330 &quot;A String&quot;,
4331 ],
4332 },
4333 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
4334 # must be a positive value between 0 and 2147483647.
4335 # Rules are evaluated from highest to lowest priority where 0 is the
4336 # highest priority and 2147483647 is the lowest priority.
4337 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
4338 # and can be updated.
4339 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
4340 # rule.
4341 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
4342 # Example:
4343 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
4344 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
4345 # &#x27;mirror&#x27;. Cannot be specified for other actions.
4346 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
4347 # This field allows you to control which load balancers get this rule.
4348 # For example, the following are valid values:
4349 #
4350 #
4351 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
4352 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
4353 # - projects/project/global/
4354 # forwardingRules/forwardingRule
4355 # - projects/project/regions/region/forwardingRules/
4356 # forwardingRule
4357 &quot;A String&quot;,
4358 ],
4359 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
4360 # allows you to control which network&#x27;s VMs get this rule. If this field
4361 # is left blank, all VMs within the organization will receive the rule.
4362 &quot;A String&quot;,
4363 ],
4364 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
4365 # applies to. If targetSecureTag are specified, then the
4366 # firewall rule applies only to instances in the VPC network that have one
4367 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
4368 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
4369 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
4370 # to all instances on the specified network.
4371 # Maximum number of target label tags allowed is 256.
4372 {
4373 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4374 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4375 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4376 # or its network is deleted.
4377 },
4378 ],
4379 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
4380 # applied with this rule.
4381 &quot;A String&quot;,
4382 ],
4383 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
4384 # Default value is INSTANCES.
4385 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
4386 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
4387 # be set for other actions.
4388 },
4389 ],
4390 &quot;parent&quot;: &quot;A String&quot;, # Output only. [Output Only] The parent of the firewall policy.
4391 # This field is not applicable to network firewall policies.
4392 &quot;policySource&quot;: &quot;A String&quot;, # Indicates the source of this Firewall Policy. This field is optional on
4393 # creation and defaults to USER_DEFINED.
4394 #
4395 # The USER_DEFINED value indicates a regular firewall policy.
4396 #
4397 # The SYSTEM value indicates a system-level policy managed by an
4398 # internal service like GKE. This SYSTEM value is reserved for
4399 # internal services and cannot be set by users during policy creation.
4400 # Policies with a SYSTEM source cannot be modified or deleted by
4401 # users.
4402 &quot;policyType&quot;: &quot;A String&quot;, # The type of the firewall policy. This field can be one of
4403 # VPC_POLICY, RDMA_ROCE_POLICY or ULL_POLICY.
4404 #
4405 # Note: if not specified then VPC_POLICY will be used.
4406 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional firewall policy resides.
4407 # This field is not applicable to global firewall policies.
4408 # You must specify this field as part of the HTTP request URL. It is
4409 # not settable as a field in the request body.
4410 &quot;rolloutOperation&quot;: { # Represents progressive rollout input parameters and current status. # Configuration and status of the progressive rollout of this resource.
4411 &quot;rolloutInput&quot;: { # Represents progressive rollout input parameters. # Input parameters to be used by the next not yet scheduled rollout.
4412 &quot;name&quot;: &quot;A String&quot;, # The name of the rollout plan. Ex.
4413 # organizations//locations/global/rolloutPlans/.
4414 &quot;predefinedRolloutPlan&quot;: &quot;A String&quot;, # Predefined rollout plan.
4415 &quot;retryUuid&quot;: &quot;A String&quot;, # The UUID of the retry action. Only needed if this is a retry for an
4416 # existing rollout. This can be used after the user canceled a rollout
4417 # and want to retry it with no changes.
4418 },
4419 &quot;rolloutStatus&quot;: { # Represents progressive rollout current status. # [Output only] Current status of the rollout.
4420 &quot;nextRollout&quot;: { # [Output only] The next rollout.
4421 &quot;rolloutId&quot;: &quot;A String&quot;, # Output only. [Output only] The id of the next rollout.
4422 &quot;rolloutPlan&quot;: &quot;A String&quot;, # The name of the rollout plan to be used by the next not yet started
4423 # rollout. This field is auto populated based on RolloutInput when a
4424 # new rollout is scheduled. This can be manually changed before the
4425 # scheduled rollout starts.
4426 # Ex.
4427 # organizations//locations/global/rolloutPlans/
4428 },
4429 &quot;ongoingRollouts&quot;: [ # [Output only] The ongoing rollout.
4430 { # Represents the status of the progressive rollout instance, either
4431 # completed or ongoing.
4432 &quot;rollout&quot;: &quot;A String&quot;, # Output only. [Output only] The name of the rollout
4433 # organizations//locations/global/rollouts/
4434 &quot;rolloutPlan&quot;: &quot;A String&quot;, # Output only. [Output only] The name of the rollout plan used by this rollout
4435 # organizations//locations/global/rolloutPlans/
4436 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output only] The state of the rollout.
4437 },
4438 ],
4439 &quot;previousRollout&quot;: { # Represents the status of the progressive rollout instance, either # [Output only] The last previously executed rollout.
4440 # completed or ongoing.
4441 &quot;rollout&quot;: &quot;A String&quot;, # Output only. [Output only] The name of the rollout
4442 # organizations//locations/global/rollouts/
4443 &quot;rolloutPlan&quot;: &quot;A String&quot;, # Output only. [Output only] The name of the rollout plan used by this rollout
4444 # organizations//locations/global/rolloutPlans/
4445 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output only] The state of the rollout.
4446 },
4447 },
4448 },
4449 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall
4450 # policy can not exceed a set number of tuples.
4451 &quot;rules&quot;: [ # A list of rules that belong to this policy.
4452 # There must always be a default rule (rule with priority 2147483647 and
4453 # match &quot;*&quot;). If no rules are provided when creating a firewall policy, a
4454 # default rule with action &quot;allow&quot; will be added.
4455 { # Represents a rule that describes one or more match conditions along with
4456 # the action to be taken when traffic matches this condition (allow or deny).
4457 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
4458 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
4459 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
4460 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
4461 # and &quot;goto_next&quot;.
4462 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
4463 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
4464 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
4465 # the firewall policy rule is not enforced and traffic behaves as if it did
4466 # not exist. If this is unspecified, the firewall policy rule will be
4467 # enabled.
4468 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
4469 # enabled, logs will be exported to the configured export destination in
4470 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
4471 # cannot enable logging on &quot;goto_next&quot; rules.
4472 &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.
4473 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
4474 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
4475 # Exactly one field must be specified.
4476 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
4477 # Maximum number of destination address groups is 10.
4478 &quot;A String&quot;,
4479 ],
4480 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4481 # traffic destination.
4482 # Maximum number of destination fqdn allowed is 100.
4483 &quot;A String&quot;,
4484 ],
4485 &quot;destIpRanges&quot;: [ # CIDR IP address range.
4486 # Maximum number of destination CIDR IP ranges allowed is 5000.
4487 &quot;A String&quot;,
4488 ],
4489 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
4490 #
4491 #
4492 # - UNSPECIFIED
4493 # - INTERNET
4494 # - NON_INTERNET
4495 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
4496 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
4497 #
4498 #
4499 # - UNSPECIFIED
4500 # - INTERNET
4501 # - NON_INTERNET
4502 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
4503 # of traffic. Should be specified as 2 letter country code defined as per
4504 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4505 # Maximum number of dest region codes allowed is 5000.
4506 &quot;A String&quot;,
4507 ],
4508 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4509 # The IPs in these lists will be matched against traffic destination.
4510 &quot;A String&quot;,
4511 ],
4512 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
4513 {
4514 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
4515 # required when creating a firewall rule. This value can either be
4516 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
4517 # protocol number.
4518 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
4519 # only applicable for UDP or TCP protocol. Each entry must be either
4520 # an integer or a range. If not specified, this rule applies to
4521 # connections through any port.
4522 #
4523 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
4524 &quot;A String&quot;,
4525 ],
4526 },
4527 ],
4528 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
4529 # Maximum number of source address groups is 10.
4530 &quot;A String&quot;,
4531 ],
4532 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4533 # traffic source.
4534 # Maximum number of source fqdn allowed is 100.
4535 &quot;A String&quot;,
4536 ],
4537 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
4538 # Maximum number of source CIDR IP ranges allowed is 5000.
4539 &quot;A String&quot;,
4540 ],
4541 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
4542 #
4543 #
4544 # - UNSPECIFIED
4545 # - INTERNET
4546 # - INTRA_VPC
4547 # - NON_INTERNET
4548 # - VPC_NETWORKS
4549 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
4550 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
4551 #
4552 #
4553 # - UNSPECIFIED
4554 # - INTERNET
4555 # - INTRA_VPC
4556 # - NON_INTERNET
4557 # - VPC_NETWORKS
4558 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
4559 &quot;A String&quot;,
4560 ],
4561 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
4562 # of traffic. Should be specified as 2 letter country code defined as per
4563 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4564 # Maximum number of source region codes allowed is 5000.
4565 &quot;A String&quot;,
4566 ],
4567 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
4568 # of the traffic.
4569 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
4570 # and there is no srcIpRange, this rule will be ignored.
4571 # Maximum number of source tag values allowed is 256.
4572 {
4573 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4574 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4575 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4576 # or its network is deleted.
4577 },
4578 ],
4579 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4580 # The IPs in these lists will be matched against traffic source.
4581 &quot;A String&quot;,
4582 ],
4583 },
4584 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
4585 # must be a positive value between 0 and 2147483647.
4586 # Rules are evaluated from highest to lowest priority where 0 is the
4587 # highest priority and 2147483647 is the lowest priority.
4588 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
4589 # and can be updated.
4590 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
4591 # rule.
4592 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
4593 # Example:
4594 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
4595 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
4596 # &#x27;mirror&#x27;. Cannot be specified for other actions.
4597 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
4598 # This field allows you to control which load balancers get this rule.
4599 # For example, the following are valid values:
4600 #
4601 #
4602 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
4603 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
4604 # - projects/project/global/
4605 # forwardingRules/forwardingRule
4606 # - projects/project/regions/region/forwardingRules/
4607 # forwardingRule
4608 &quot;A String&quot;,
4609 ],
4610 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
4611 # allows you to control which network&#x27;s VMs get this rule. If this field
4612 # is left blank, all VMs within the organization will receive the rule.
4613 &quot;A String&quot;,
4614 ],
4615 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
4616 # applies to. If targetSecureTag are specified, then the
4617 # firewall rule applies only to instances in the VPC network that have one
4618 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
4619 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
4620 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
4621 # to all instances on the specified network.
4622 # Maximum number of target label tags allowed is 256.
4623 {
4624 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4625 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4626 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4627 # or its network is deleted.
4628 },
4629 ],
4630 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
4631 # applied with this rule.
4632 &quot;A String&quot;,
4633 ],
4634 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
4635 # Default value is INSTANCES.
4636 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
4637 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
4638 # be set for other actions.
4639 },
4640 ],
4641 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
4642 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
4643 &quot;shortName&quot;: &quot;A String&quot;, # User-provided name of the Organization firewall policy. The name should be
4644 # unique in the organization in which the firewall policy is created.
4645 # This field is not applicable to network firewall policies.
4646 # This name must be set on creation and cannot be changed. The name must be
4647 # 1-63 characters long, and comply with RFC1035.
4648 # Specifically, the name must be 1-63 characters long and match the regular
4649 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
4650 # character must be a lowercase letter, and all following characters must
4651 # be a dash, lowercase letter, or digit, except the last character, which
4652 # cannot be a dash.
4653 &quot;vpcNetworkScope&quot;: &quot;A String&quot;, # The scope of networks allowed to be associated with the firewall
4654 # policy. This field can be either GLOBAL_VPC_NETWORK orREGIONAL_VPC_NETWORK.
4655 #
4656 # A firewall policy with the VPC scope set to GLOBAL_VPC_NETWORK
4657 # is allowed to be attached only to global networks.
4658 #
4659 # When the VPC scope is set to REGIONAL_VPC_NETWORK the firewall
4660 # policy is allowed to be attached only to regional networks in the same
4661 # scope as the firewall policy.
4662 #
4663 # Note: if not specified then GLOBAL_VPC_NETWORK will be used.
4664 },
4665 ],
4666 &quot;kind&quot;: &quot;compute#firewallPolicyList&quot;, # Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies
4667 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
4668 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
4669 # the query parameter pageToken in the next list request.
4670 # Subsequent list requests will have their own nextPageToken to
4671 # continue paging through the results.
4672 &quot;warning&quot;: { # [Output Only] Informational warning message.
4673 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
4674 # Engine returns NO_RESULTS_ON_PAGE if there
4675 # are no results in the response.
4676 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
4677 # value format. For example:
4678 #
4679 # &quot;data&quot;: [
4680 # {
4681 # &quot;key&quot;: &quot;scope&quot;,
4682 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
4683 # }
4684 {
4685 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
4686 # returned. For example, for warnings where there are no results in a list
4687 # request for a particular zone, this key might be scope and
4688 # the key value might be the zone name. Other examples might be a key
4689 # indicating a deprecated resource and a suggested replacement, or a
4690 # warning about invalid network settings (for example, if an instance
4691 # attempts to perform IP forwarding but is not enabled for IP forwarding).
4692 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
4693 },
4694 ],
4695 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
4696 },
4697 }</pre>
4698 </div>
4699
4700 <div class="method">
4701 <code class="details" id="list_next">list_next()</code>
4702 <pre>Retrieves the next page of results.
4703
4704 Args:
4705 previous_request: The request for the previous page. (required)
4706 previous_response: The response from the request for the previous page. (required)
4707
4708 Returns:
4709 A request object that you can call &#x27;execute()&#x27; on to request the next
4710 page. Returns None if there are no more items in the collection.
4711 </pre>
4712 </div>
4713
4714 <div class="method">
4715 <code class="details" id="patch">patch(project, region, firewallPolicy, body=None, requestId=None, x__xgafv=None)</code>
4716 <pre>Patches the specified network firewall policy.
4717
4718 Args:
4719 project: string, Project ID for this request. (required)
4720 region: string, Name of the region scoping this request. (required)
4721 firewallPolicy: string, Name of the firewall policy to update. (required)
4722 body: object, The request body.
4723 The object takes the form of:
4724
4725 { # Represents a Firewall Policy resource.
4726 &quot;associations&quot;: [ # A list of associations that belong to this firewall policy.
4727 {
4728 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
4729 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
4730 # of the firewall policy of the association.
4731 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
4732 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
4733 &quot;priority&quot;: 42, # An integer indicating the priority of an association. The priority
4734 # must be a positive value between 1 and 2147483647.
4735 # Firewall Policies are evaluated from highest to lowest priority where 1
4736 # is the highest priority and 2147483647 is the lowest priority.
4737 # The default value is `1000`. If two associations have the same priority
4738 # then lexicographical order on association names is applied.
4739 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
4740 },
4741 ],
4742 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
4743 # text format.
4744 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
4745 # create the resource.
4746 &quot;displayName&quot;: &quot;A String&quot;, # Deprecated, please use short name instead. User-provided name of the
4747 # Organization firewall policy. The name should be unique in the organization
4748 # in which the firewall policy is created.
4749 # This field is not applicable to network firewall policies.
4750 # This name must be set on creation and cannot be changed.
4751 # The name must be 1-63 characters long, and comply
4752 # with RFC1035. Specifically, the name must be 1-63 characters
4753 # long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which
4754 # means the first character must be a lowercase letter, and all following
4755 # characters must be a dash, lowercase letter, or digit, except the last
4756 # character, which cannot be a dash.
4757 &quot;fingerprint&quot;: &quot;A String&quot;, # Specifies a fingerprint for this resource, which is essentially a hash of
4758 # the metadata&#x27;s contents and used for optimistic locking. The
4759 # fingerprint is initially generated by Compute Engine and changes after
4760 # every request to modify or update metadata. You must always provide an
4761 # up-to-date fingerprint hash in order to update or change metadata,
4762 # otherwise the request will fail with error412 conditionNotMet.
4763 #
4764 # To see the latest fingerprint, make get() request to the
4765 # firewall policy.
4766 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
4767 # defined by the server.
4768 &quot;kind&quot;: &quot;compute#firewallPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
4769 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. For Organization Firewall Policies it&#x27;s a
4770 # [Output Only] numeric ID allocated by Google Cloud which uniquely
4771 # identifies the Organization Firewall Policy.
4772 &quot;packetMirroringRules&quot;: [ # A list of packet mirroring rules that belong to this policy.
4773 { # Represents a rule that describes one or more match conditions along with
4774 # the action to be taken when traffic matches this condition (allow or deny).
4775 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
4776 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
4777 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
4778 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
4779 # and &quot;goto_next&quot;.
4780 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
4781 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
4782 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
4783 # the firewall policy rule is not enforced and traffic behaves as if it did
4784 # not exist. If this is unspecified, the firewall policy rule will be
4785 # enabled.
4786 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
4787 # enabled, logs will be exported to the configured export destination in
4788 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
4789 # cannot enable logging on &quot;goto_next&quot; rules.
4790 &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.
4791 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
4792 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
4793 # Exactly one field must be specified.
4794 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
4795 # Maximum number of destination address groups is 10.
4796 &quot;A String&quot;,
4797 ],
4798 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4799 # traffic destination.
4800 # Maximum number of destination fqdn allowed is 100.
4801 &quot;A String&quot;,
4802 ],
4803 &quot;destIpRanges&quot;: [ # CIDR IP address range.
4804 # Maximum number of destination CIDR IP ranges allowed is 5000.
4805 &quot;A String&quot;,
4806 ],
4807 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
4808 #
4809 #
4810 # - UNSPECIFIED
4811 # - INTERNET
4812 # - NON_INTERNET
4813 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
4814 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
4815 #
4816 #
4817 # - UNSPECIFIED
4818 # - INTERNET
4819 # - NON_INTERNET
4820 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
4821 # of traffic. Should be specified as 2 letter country code defined as per
4822 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4823 # Maximum number of dest region codes allowed is 5000.
4824 &quot;A String&quot;,
4825 ],
4826 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4827 # The IPs in these lists will be matched against traffic destination.
4828 &quot;A String&quot;,
4829 ],
4830 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
4831 {
4832 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
4833 # required when creating a firewall rule. This value can either be
4834 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
4835 # protocol number.
4836 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
4837 # only applicable for UDP or TCP protocol. Each entry must be either
4838 # an integer or a range. If not specified, this rule applies to
4839 # connections through any port.
4840 #
4841 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
4842 &quot;A String&quot;,
4843 ],
4844 },
4845 ],
4846 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
4847 # Maximum number of source address groups is 10.
4848 &quot;A String&quot;,
4849 ],
4850 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
4851 # traffic source.
4852 # Maximum number of source fqdn allowed is 100.
4853 &quot;A String&quot;,
4854 ],
4855 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
4856 # Maximum number of source CIDR IP ranges allowed is 5000.
4857 &quot;A String&quot;,
4858 ],
4859 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
4860 #
4861 #
4862 # - UNSPECIFIED
4863 # - INTERNET
4864 # - INTRA_VPC
4865 # - NON_INTERNET
4866 # - VPC_NETWORKS
4867 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
4868 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
4869 #
4870 #
4871 # - UNSPECIFIED
4872 # - INTERNET
4873 # - INTRA_VPC
4874 # - NON_INTERNET
4875 # - VPC_NETWORKS
4876 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
4877 &quot;A String&quot;,
4878 ],
4879 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
4880 # of traffic. Should be specified as 2 letter country code defined as per
4881 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
4882 # Maximum number of source region codes allowed is 5000.
4883 &quot;A String&quot;,
4884 ],
4885 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
4886 # of the traffic.
4887 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
4888 # and there is no srcIpRange, this rule will be ignored.
4889 # Maximum number of source tag values allowed is 256.
4890 {
4891 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4892 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4893 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4894 # or its network is deleted.
4895 },
4896 ],
4897 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
4898 # The IPs in these lists will be matched against traffic source.
4899 &quot;A String&quot;,
4900 ],
4901 },
4902 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
4903 # must be a positive value between 0 and 2147483647.
4904 # Rules are evaluated from highest to lowest priority where 0 is the
4905 # highest priority and 2147483647 is the lowest priority.
4906 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
4907 # and can be updated.
4908 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
4909 # rule.
4910 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
4911 # Example:
4912 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
4913 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
4914 # &#x27;mirror&#x27;. Cannot be specified for other actions.
4915 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
4916 # This field allows you to control which load balancers get this rule.
4917 # For example, the following are valid values:
4918 #
4919 #
4920 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
4921 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
4922 # - projects/project/global/
4923 # forwardingRules/forwardingRule
4924 # - projects/project/regions/region/forwardingRules/
4925 # forwardingRule
4926 &quot;A String&quot;,
4927 ],
4928 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
4929 # allows you to control which network&#x27;s VMs get this rule. If this field
4930 # is left blank, all VMs within the organization will receive the rule.
4931 &quot;A String&quot;,
4932 ],
4933 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
4934 # applies to. If targetSecureTag are specified, then the
4935 # firewall rule applies only to instances in the VPC network that have one
4936 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
4937 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
4938 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
4939 # to all instances on the specified network.
4940 # Maximum number of target label tags allowed is 256.
4941 {
4942 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
4943 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
4944 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
4945 # or its network is deleted.
4946 },
4947 ],
4948 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
4949 # applied with this rule.
4950 &quot;A String&quot;,
4951 ],
4952 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
4953 # Default value is INSTANCES.
4954 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
4955 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
4956 # be set for other actions.
4957 },
4958 ],
4959 &quot;parent&quot;: &quot;A String&quot;, # Output only. [Output Only] The parent of the firewall policy.
4960 # This field is not applicable to network firewall policies.
4961 &quot;policySource&quot;: &quot;A String&quot;, # Indicates the source of this Firewall Policy. This field is optional on
4962 # creation and defaults to USER_DEFINED.
4963 #
4964 # The USER_DEFINED value indicates a regular firewall policy.
4965 #
4966 # The SYSTEM value indicates a system-level policy managed by an
4967 # internal service like GKE. This SYSTEM value is reserved for
4968 # internal services and cannot be set by users during policy creation.
4969 # Policies with a SYSTEM source cannot be modified or deleted by
4970 # users.
4971 &quot;policyType&quot;: &quot;A String&quot;, # The type of the firewall policy. This field can be one of
4972 # VPC_POLICY, RDMA_ROCE_POLICY or ULL_POLICY.
4973 #
4974 # Note: if not specified then VPC_POLICY will be used.
4975 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional firewall policy resides.
4976 # This field is not applicable to global firewall policies.
4977 # You must specify this field as part of the HTTP request URL. It is
4978 # not settable as a field in the request body.
4979 &quot;rolloutOperation&quot;: { # Represents progressive rollout input parameters and current status. # Configuration and status of the progressive rollout of this resource.
4980 &quot;rolloutInput&quot;: { # Represents progressive rollout input parameters. # Input parameters to be used by the next not yet scheduled rollout.
4981 &quot;name&quot;: &quot;A String&quot;, # The name of the rollout plan. Ex.
4982 # organizations//locations/global/rolloutPlans/.
4983 &quot;predefinedRolloutPlan&quot;: &quot;A String&quot;, # Predefined rollout plan.
4984 &quot;retryUuid&quot;: &quot;A String&quot;, # The UUID of the retry action. Only needed if this is a retry for an
4985 # existing rollout. This can be used after the user canceled a rollout
4986 # and want to retry it with no changes.
4987 },
4988 &quot;rolloutStatus&quot;: { # Represents progressive rollout current status. # [Output only] Current status of the rollout.
4989 &quot;nextRollout&quot;: { # [Output only] The next rollout.
4990 &quot;rolloutId&quot;: &quot;A String&quot;, # Output only. [Output only] The id of the next rollout.
4991 &quot;rolloutPlan&quot;: &quot;A String&quot;, # The name of the rollout plan to be used by the next not yet started
4992 # rollout. This field is auto populated based on RolloutInput when a
4993 # new rollout is scheduled. This can be manually changed before the
4994 # scheduled rollout starts.
4995 # Ex.
4996 # organizations//locations/global/rolloutPlans/
4997 },
4998 &quot;ongoingRollouts&quot;: [ # [Output only] The ongoing rollout.
4999 { # Represents the status of the progressive rollout instance, either
5000 # completed or ongoing.
5001 &quot;rollout&quot;: &quot;A String&quot;, # Output only. [Output only] The name of the rollout
5002 # organizations//locations/global/rollouts/
5003 &quot;rolloutPlan&quot;: &quot;A String&quot;, # Output only. [Output only] The name of the rollout plan used by this rollout
5004 # organizations//locations/global/rolloutPlans/
5005 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output only] The state of the rollout.
5006 },
5007 ],
5008 &quot;previousRollout&quot;: { # Represents the status of the progressive rollout instance, either # [Output only] The last previously executed rollout.
5009 # completed or ongoing.
5010 &quot;rollout&quot;: &quot;A String&quot;, # Output only. [Output only] The name of the rollout
5011 # organizations//locations/global/rollouts/
5012 &quot;rolloutPlan&quot;: &quot;A String&quot;, # Output only. [Output only] The name of the rollout plan used by this rollout
5013 # organizations//locations/global/rolloutPlans/
5014 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output only] The state of the rollout.
5015 },
5016 },
5017 },
5018 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall
5019 # policy can not exceed a set number of tuples.
5020 &quot;rules&quot;: [ # A list of rules that belong to this policy.
5021 # There must always be a default rule (rule with priority 2147483647 and
5022 # match &quot;*&quot;). If no rules are provided when creating a firewall policy, a
5023 # default rule with action &quot;allow&quot; will be added.
5024 { # Represents a rule that describes one or more match conditions along with
5025 # the action to be taken when traffic matches this condition (allow or deny).
5026 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
5027 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
5028 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
5029 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
5030 # and &quot;goto_next&quot;.
5031 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
5032 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
5033 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
5034 # the firewall policy rule is not enforced and traffic behaves as if it did
5035 # not exist. If this is unspecified, the firewall policy rule will be
5036 # enabled.
5037 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
5038 # enabled, logs will be exported to the configured export destination in
5039 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
5040 # cannot enable logging on &quot;goto_next&quot; rules.
5041 &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.
5042 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
5043 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
5044 # Exactly one field must be specified.
5045 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
5046 # Maximum number of destination address groups is 10.
5047 &quot;A String&quot;,
5048 ],
5049 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
5050 # traffic destination.
5051 # Maximum number of destination fqdn allowed is 100.
5052 &quot;A String&quot;,
5053 ],
5054 &quot;destIpRanges&quot;: [ # CIDR IP address range.
5055 # Maximum number of destination CIDR IP ranges allowed is 5000.
5056 &quot;A String&quot;,
5057 ],
5058 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
5059 #
5060 #
5061 # - UNSPECIFIED
5062 # - INTERNET
5063 # - NON_INTERNET
5064 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
5065 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
5066 #
5067 #
5068 # - UNSPECIFIED
5069 # - INTERNET
5070 # - NON_INTERNET
5071 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
5072 # of traffic. Should be specified as 2 letter country code defined as per
5073 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
5074 # Maximum number of dest region codes allowed is 5000.
5075 &quot;A String&quot;,
5076 ],
5077 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
5078 # The IPs in these lists will be matched against traffic destination.
5079 &quot;A String&quot;,
5080 ],
5081 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
5082 {
5083 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
5084 # required when creating a firewall rule. This value can either be
5085 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
5086 # protocol number.
5087 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
5088 # only applicable for UDP or TCP protocol. Each entry must be either
5089 # an integer or a range. If not specified, this rule applies to
5090 # connections through any port.
5091 #
5092 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
5093 &quot;A String&quot;,
5094 ],
5095 },
5096 ],
5097 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
5098 # Maximum number of source address groups is 10.
5099 &quot;A String&quot;,
5100 ],
5101 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
5102 # traffic source.
5103 # Maximum number of source fqdn allowed is 100.
5104 &quot;A String&quot;,
5105 ],
5106 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
5107 # Maximum number of source CIDR IP ranges allowed is 5000.
5108 &quot;A String&quot;,
5109 ],
5110 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
5111 #
5112 #
5113 # - UNSPECIFIED
5114 # - INTERNET
5115 # - INTRA_VPC
5116 # - NON_INTERNET
5117 # - VPC_NETWORKS
5118 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
5119 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
5120 #
5121 #
5122 # - UNSPECIFIED
5123 # - INTERNET
5124 # - INTRA_VPC
5125 # - NON_INTERNET
5126 # - VPC_NETWORKS
5127 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
5128 &quot;A String&quot;,
5129 ],
5130 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
5131 # of traffic. Should be specified as 2 letter country code defined as per
5132 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
5133 # Maximum number of source region codes allowed is 5000.
5134 &quot;A String&quot;,
5135 ],
5136 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
5137 # of the traffic.
5138 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
5139 # and there is no srcIpRange, this rule will be ignored.
5140 # Maximum number of source tag values allowed is 256.
5141 {
5142 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
5143 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
5144 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
5145 # or its network is deleted.
5146 },
5147 ],
5148 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
5149 # The IPs in these lists will be matched against traffic source.
5150 &quot;A String&quot;,
5151 ],
5152 },
5153 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
5154 # must be a positive value between 0 and 2147483647.
5155 # Rules are evaluated from highest to lowest priority where 0 is the
5156 # highest priority and 2147483647 is the lowest priority.
5157 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
5158 # and can be updated.
5159 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
5160 # rule.
5161 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
5162 # Example:
5163 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
5164 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
5165 # &#x27;mirror&#x27;. Cannot be specified for other actions.
5166 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
5167 # This field allows you to control which load balancers get this rule.
5168 # For example, the following are valid values:
5169 #
5170 #
5171 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
5172 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
5173 # - projects/project/global/
5174 # forwardingRules/forwardingRule
5175 # - projects/project/regions/region/forwardingRules/
5176 # forwardingRule
5177 &quot;A String&quot;,
5178 ],
5179 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
5180 # allows you to control which network&#x27;s VMs get this rule. If this field
5181 # is left blank, all VMs within the organization will receive the rule.
5182 &quot;A String&quot;,
5183 ],
5184 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
5185 # applies to. If targetSecureTag are specified, then the
5186 # firewall rule applies only to instances in the VPC network that have one
5187 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
5188 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
5189 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
5190 # to all instances on the specified network.
5191 # Maximum number of target label tags allowed is 256.
5192 {
5193 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
5194 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
5195 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
5196 # or its network is deleted.
5197 },
5198 ],
5199 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
5200 # applied with this rule.
5201 &quot;A String&quot;,
5202 ],
5203 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
5204 # Default value is INSTANCES.
5205 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
5206 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
5207 # be set for other actions.
5208 },
5209 ],
5210 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
5211 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
5212 &quot;shortName&quot;: &quot;A String&quot;, # User-provided name of the Organization firewall policy. The name should be
5213 # unique in the organization in which the firewall policy is created.
5214 # This field is not applicable to network firewall policies.
5215 # This name must be set on creation and cannot be changed. The name must be
5216 # 1-63 characters long, and comply with RFC1035.
5217 # Specifically, the name must be 1-63 characters long and match the regular
5218 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
5219 # character must be a lowercase letter, and all following characters must
5220 # be a dash, lowercase letter, or digit, except the last character, which
5221 # cannot be a dash.
5222 &quot;vpcNetworkScope&quot;: &quot;A String&quot;, # The scope of networks allowed to be associated with the firewall
5223 # policy. This field can be either GLOBAL_VPC_NETWORK orREGIONAL_VPC_NETWORK.
5224 #
5225 # A firewall policy with the VPC scope set to GLOBAL_VPC_NETWORK
5226 # is allowed to be attached only to global networks.
5227 #
5228 # When the VPC scope is set to REGIONAL_VPC_NETWORK the firewall
5229 # policy is allowed to be attached only to regional networks in the same
5230 # scope as the firewall policy.
5231 #
5232 # Note: if not specified then GLOBAL_VPC_NETWORK will be used.
5233 }
5234
5235 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
5236 that if you must retry your request, the server will know to ignore the
5237 request if it has already been completed.
5238
5239 For example, consider a situation where you make an initial request and
5240 the request times out. If you make the request again with the same
5241 request ID, the server can check if original operation with the same
5242 request ID was received, and if so, will ignore the second request. This
5243 prevents clients from accidentally creating duplicate commitments.
5244
5245 The request ID must be
5246 a valid UUID with the exception that zero UUID is not supported
5247 (00000000-0000-0000-0000-000000000000).
5248 x__xgafv: string, V1 error format.
5249 Allowed values
5250 1 - v1 error format
5251 2 - v2 error format
5252
5253 Returns:
5254 An object of the form:
5255
5256 { # Represents an Operation resource.
5257 #
5258 # Google Compute Engine has three Operation resources:
5259 #
5260 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
5261 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
5262 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
5263 #
5264 # You can use an operation resource to manage asynchronous API requests.
5265 # For more information, readHandling
5266 # API responses.
5267 #
5268 # Operations can be global, regional or zonal.
5269 #
5270 # - For global operations, use the `globalOperations`
5271 # resource.
5272 # - For regional operations, use the
5273 # `regionOperations` resource.
5274 # - For zonal operations, use
5275 # the `zoneOperations` resource.
5276 #
5277 #
5278 #
5279 # For more information, read
5280 # Global, Regional, and Zonal Resources.
5281 #
5282 # Note that completed Operation resources have a limited
5283 # retention period.
5284 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
5285 # Not present otherwise.
5286 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
5287 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
5288 # set when the operation is created.
5289 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
5290 # text format.
5291 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
5292 # this field will be populated.
5293 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
5294 # operation.
5295 {
5296 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
5297 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
5298 # details. There is a set of defined message types to use for providing
5299 # details.The syntax depends on the error code. For example,
5300 # QuotaExceededInfo will have details when the error code is
5301 # QUOTA_EXCEEDED.
5302 {
5303 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
5304 #
5305 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
5306 # is not enabled:
5307 #
5308 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
5309 # &quot;domain&quot;: &quot;googleapis.com&quot;
5310 # &quot;metadata&quot;: {
5311 # &quot;resource&quot;: &quot;projects/123&quot;,
5312 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
5313 # }
5314 # }
5315 #
5316 # This response indicates that the pubsub.googleapis.com API is not enabled.
5317 #
5318 # Example of an error that is returned when attempting to create a Spanner
5319 # instance in a region that is out of stock:
5320 #
5321 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
5322 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
5323 # &quot;metadata&quot;: {
5324 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
5325 # }
5326 # }
5327 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
5328 # is typically the registered service name of the tool or product that
5329 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
5330 # generated by some common infrastructure, the error domain must be a
5331 # globally unique value that identifies the infrastructure. For Google API
5332 # infrastructure, the error domain is &quot;googleapis.com&quot;.
5333 &quot;metadatas&quot;: { # Additional structured details about this error.
5334 #
5335 # Keys must match a regular expression of `a-z+` but should
5336 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
5337 # length. When identifying the current value of an exceeded limit, the units
5338 # should be contained in the key, not the value. For example, rather than
5339 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
5340 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
5341 # instances that can be created in a single (batch) request.
5342 &quot;a_key&quot;: &quot;A String&quot;,
5343 },
5344 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
5345 # proximate cause of the error. Error reasons are unique within a particular
5346 # domain of errors. This should be at most 63 characters and match a
5347 # regular expression of `A-Z+[A-Z0-9]`, which represents
5348 # UPPER_SNAKE_CASE.
5349 },
5350 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
5351 #
5352 # For example, if a quota check failed with an error indicating the calling
5353 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
5354 # directly to the right place in the developer console to flip the bit.
5355 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
5356 { # Describes a URL link.
5357 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
5358 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
5359 },
5360 ],
5361 },
5362 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
5363 # which can be attached to an RPC error.
5364 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
5365 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
5366 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
5367 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
5368 },
5369 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
5370 &quot;dimensions&quot;: { # The map holding related quota dimensions.
5371 &quot;a_key&quot;: &quot;A String&quot;,
5372 },
5373 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
5374 # type or metric.
5375 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
5376 # or metric.
5377 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
5378 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
5379 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
5380 },
5381 },
5382 ],
5383 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
5384 # This property is optional.
5385 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
5386 },
5387 ],
5388 },
5389 &quot;getVersionOperationMetadata&quot;: {
5390 &quot;inlineSbomInfo&quot;: {
5391 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
5392 # appropriate identifiers.
5393 &quot;a_key&quot;: &quot;A String&quot;,
5394 },
5395 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
5396 # identifiers.
5397 &quot;a_key&quot;: &quot;A String&quot;,
5398 },
5399 },
5400 },
5401 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
5402 # message that was returned, such as `NOT FOUND`.
5403 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
5404 # status code that was returned. For example, a `404` means the
5405 # resource was not found.
5406 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
5407 # defined by the server.
5408 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
5409 # This value is inRFC3339
5410 # text format.
5411 &quot;instancesBulkInsertOperationMetadata&quot;: {
5412 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
5413 # Example key: zones/us-central1-a
5414 &quot;a_key&quot;: {
5415 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
5416 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
5417 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
5418 # error.
5419 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
5420 # if the flow is rolling forward or rolling back.
5421 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
5422 },
5423 },
5424 },
5425 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
5426 # Operation resources.
5427 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
5428 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
5429 # group of operations results from a `bulkInsert` API request.
5430 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
5431 # `update`, or `delete`, and so on.
5432 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
5433 # There is no requirement that this be linear or support any granularity of
5434 # operations. This should not be used to guess when the operation will be
5435 # complete. This number should monotonically increase as the operation
5436 # progresses.
5437 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
5438 # applicable when performing regional operations.
5439 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
5440 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
5441 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
5442 # this field will contain information on all underlying zonal actions and
5443 # their state.
5444 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
5445 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
5446 # Example key: zones/us-central1-a
5447 &quot;a_key&quot;: {
5448 &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
5449 # populated.
5450 # different programming environments, including REST APIs and RPC APIs. It is
5451 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
5452 # three pieces of data: error code, error message, and error details.
5453 #
5454 # You can find out more about this error model and how to work with it in the
5455 # [API Design Guide](https://cloud.google.com/apis/design/errors).
5456 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
5457 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
5458 # message types for APIs to use.
5459 {
5460 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
5461 },
5462 ],
5463 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
5464 # user-facing error message should be localized and sent in the
5465 # google.rpc.Status.details field, or localized by the client.
5466 },
5467 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
5468 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
5469 },
5470 },
5471 },
5472 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
5473 # This value is inRFC3339
5474 # text format.
5475 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
5476 # following:
5477 # `PENDING`, `RUNNING`, or `DONE`.
5478 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
5479 # operation.
5480 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
5481 # of the target resource.
5482 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
5483 # operations related to creating a snapshot, this points to the disk
5484 # that the snapshot was created from.
5485 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
5486 # `[email protected]` or
5487 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
5488 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
5489 # operation, this field will be populated.
5490 {
5491 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
5492 # Engine returns NO_RESULTS_ON_PAGE if there
5493 # are no results in the response.
5494 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
5495 # value format. For example:
5496 #
5497 # &quot;data&quot;: [
5498 # {
5499 # &quot;key&quot;: &quot;scope&quot;,
5500 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
5501 # }
5502 {
5503 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
5504 # returned. For example, for warnings where there are no results in a list
5505 # request for a particular zone, this key might be scope and
5506 # the key value might be the zone name. Other examples might be a key
5507 # indicating a deprecated resource and a suggested replacement, or a
5508 # warning about invalid network settings (for example, if an instance
5509 # attempts to perform IP forwarding but is not enabled for IP forwarding).
5510 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
5511 },
5512 ],
5513 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
5514 },
5515 ],
5516 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
5517 # applicable when performing per-zone operations.
5518 }</pre>
5519 </div>
5520
5521 <div class="method">
5522 <code class="details" id="patchAssociation">patchAssociation(project, region, firewallPolicy, body=None, requestId=None, x__xgafv=None)</code>
5523 <pre>Updates an association for the specified network firewall policy.
5524
5525 Args:
5526 project: string, Project ID for this request. (required)
5527 region: string, Name of the region scoping this request. (required)
5528 firewallPolicy: string, Name of the firewall policy to update. (required)
5529 body: object, The request body.
5530 The object takes the form of:
5531
5532 {
5533 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the firewall policy is attached to.
5534 &quot;displayName&quot;: &quot;A String&quot;, # [Output Only] Deprecated, please use short name instead. The display name
5535 # of the firewall policy of the association.
5536 &quot;firewallPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] The firewall policy ID of the association.
5537 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
5538 &quot;priority&quot;: 42, # An integer indicating the priority of an association. The priority
5539 # must be a positive value between 1 and 2147483647.
5540 # Firewall Policies are evaluated from highest to lowest priority where 1
5541 # is the highest priority and 2147483647 is the lowest priority.
5542 # The default value is `1000`. If two associations have the same priority
5543 # then lexicographical order on association names is applied.
5544 &quot;shortName&quot;: &quot;A String&quot;, # Output only. [Output Only] The short name of the firewall policy of the association.
5545 }
5546
5547 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
5548 that if you must retry your request, the server will know to ignore the
5549 request if it has already been completed.
5550
5551 For example, consider a situation where you make an initial request and
5552 the request times out. If you make the request again with the same
5553 request ID, the server can check if original operation with the same
5554 request ID was received, and if so, will ignore the second request. This
5555 prevents clients from accidentally creating duplicate commitments.
5556
5557 The request ID must be
5558 a valid UUID with the exception that zero UUID is not supported
5559 (00000000-0000-0000-0000-000000000000).
5560 x__xgafv: string, V1 error format.
5561 Allowed values
5562 1 - v1 error format
5563 2 - v2 error format
5564
5565 Returns:
5566 An object of the form:
5567
5568 { # Represents an Operation resource.
5569 #
5570 # Google Compute Engine has three Operation resources:
5571 #
5572 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
5573 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
5574 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
5575 #
5576 # You can use an operation resource to manage asynchronous API requests.
5577 # For more information, readHandling
5578 # API responses.
5579 #
5580 # Operations can be global, regional or zonal.
5581 #
5582 # - For global operations, use the `globalOperations`
5583 # resource.
5584 # - For regional operations, use the
5585 # `regionOperations` resource.
5586 # - For zonal operations, use
5587 # the `zoneOperations` resource.
5588 #
5589 #
5590 #
5591 # For more information, read
5592 # Global, Regional, and Zonal Resources.
5593 #
5594 # Note that completed Operation resources have a limited
5595 # retention period.
5596 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
5597 # Not present otherwise.
5598 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
5599 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
5600 # set when the operation is created.
5601 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
5602 # text format.
5603 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
5604 # this field will be populated.
5605 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
5606 # operation.
5607 {
5608 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
5609 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
5610 # details. There is a set of defined message types to use for providing
5611 # details.The syntax depends on the error code. For example,
5612 # QuotaExceededInfo will have details when the error code is
5613 # QUOTA_EXCEEDED.
5614 {
5615 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
5616 #
5617 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
5618 # is not enabled:
5619 #
5620 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
5621 # &quot;domain&quot;: &quot;googleapis.com&quot;
5622 # &quot;metadata&quot;: {
5623 # &quot;resource&quot;: &quot;projects/123&quot;,
5624 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
5625 # }
5626 # }
5627 #
5628 # This response indicates that the pubsub.googleapis.com API is not enabled.
5629 #
5630 # Example of an error that is returned when attempting to create a Spanner
5631 # instance in a region that is out of stock:
5632 #
5633 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
5634 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
5635 # &quot;metadata&quot;: {
5636 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
5637 # }
5638 # }
5639 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
5640 # is typically the registered service name of the tool or product that
5641 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
5642 # generated by some common infrastructure, the error domain must be a
5643 # globally unique value that identifies the infrastructure. For Google API
5644 # infrastructure, the error domain is &quot;googleapis.com&quot;.
5645 &quot;metadatas&quot;: { # Additional structured details about this error.
5646 #
5647 # Keys must match a regular expression of `a-z+` but should
5648 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
5649 # length. When identifying the current value of an exceeded limit, the units
5650 # should be contained in the key, not the value. For example, rather than
5651 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
5652 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
5653 # instances that can be created in a single (batch) request.
5654 &quot;a_key&quot;: &quot;A String&quot;,
5655 },
5656 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
5657 # proximate cause of the error. Error reasons are unique within a particular
5658 # domain of errors. This should be at most 63 characters and match a
5659 # regular expression of `A-Z+[A-Z0-9]`, which represents
5660 # UPPER_SNAKE_CASE.
5661 },
5662 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
5663 #
5664 # For example, if a quota check failed with an error indicating the calling
5665 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
5666 # directly to the right place in the developer console to flip the bit.
5667 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
5668 { # Describes a URL link.
5669 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
5670 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
5671 },
5672 ],
5673 },
5674 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
5675 # which can be attached to an RPC error.
5676 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
5677 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
5678 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
5679 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
5680 },
5681 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
5682 &quot;dimensions&quot;: { # The map holding related quota dimensions.
5683 &quot;a_key&quot;: &quot;A String&quot;,
5684 },
5685 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
5686 # type or metric.
5687 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
5688 # or metric.
5689 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
5690 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
5691 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
5692 },
5693 },
5694 ],
5695 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
5696 # This property is optional.
5697 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
5698 },
5699 ],
5700 },
5701 &quot;getVersionOperationMetadata&quot;: {
5702 &quot;inlineSbomInfo&quot;: {
5703 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
5704 # appropriate identifiers.
5705 &quot;a_key&quot;: &quot;A String&quot;,
5706 },
5707 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
5708 # identifiers.
5709 &quot;a_key&quot;: &quot;A String&quot;,
5710 },
5711 },
5712 },
5713 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
5714 # message that was returned, such as `NOT FOUND`.
5715 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
5716 # status code that was returned. For example, a `404` means the
5717 # resource was not found.
5718 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
5719 # defined by the server.
5720 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
5721 # This value is inRFC3339
5722 # text format.
5723 &quot;instancesBulkInsertOperationMetadata&quot;: {
5724 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
5725 # Example key: zones/us-central1-a
5726 &quot;a_key&quot;: {
5727 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
5728 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
5729 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
5730 # error.
5731 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
5732 # if the flow is rolling forward or rolling back.
5733 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
5734 },
5735 },
5736 },
5737 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
5738 # Operation resources.
5739 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
5740 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
5741 # group of operations results from a `bulkInsert` API request.
5742 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
5743 # `update`, or `delete`, and so on.
5744 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
5745 # There is no requirement that this be linear or support any granularity of
5746 # operations. This should not be used to guess when the operation will be
5747 # complete. This number should monotonically increase as the operation
5748 # progresses.
5749 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
5750 # applicable when performing regional operations.
5751 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
5752 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
5753 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
5754 # this field will contain information on all underlying zonal actions and
5755 # their state.
5756 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
5757 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
5758 # Example key: zones/us-central1-a
5759 &quot;a_key&quot;: {
5760 &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
5761 # populated.
5762 # different programming environments, including REST APIs and RPC APIs. It is
5763 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
5764 # three pieces of data: error code, error message, and error details.
5765 #
5766 # You can find out more about this error model and how to work with it in the
5767 # [API Design Guide](https://cloud.google.com/apis/design/errors).
5768 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
5769 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
5770 # message types for APIs to use.
5771 {
5772 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
5773 },
5774 ],
5775 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
5776 # user-facing error message should be localized and sent in the
5777 # google.rpc.Status.details field, or localized by the client.
5778 },
5779 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
5780 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
5781 },
5782 },
5783 },
5784 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
5785 # This value is inRFC3339
5786 # text format.
5787 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
5788 # following:
5789 # `PENDING`, `RUNNING`, or `DONE`.
5790 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
5791 # operation.
5792 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
5793 # of the target resource.
5794 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
5795 # operations related to creating a snapshot, this points to the disk
5796 # that the snapshot was created from.
5797 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
5798 # `[email protected]` or
5799 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
5800 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
5801 # operation, this field will be populated.
5802 {
5803 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
5804 # Engine returns NO_RESULTS_ON_PAGE if there
5805 # are no results in the response.
5806 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
5807 # value format. For example:
5808 #
5809 # &quot;data&quot;: [
5810 # {
5811 # &quot;key&quot;: &quot;scope&quot;,
5812 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
5813 # }
5814 {
5815 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
5816 # returned. For example, for warnings where there are no results in a list
5817 # request for a particular zone, this key might be scope and
5818 # the key value might be the zone name. Other examples might be a key
5819 # indicating a deprecated resource and a suggested replacement, or a
5820 # warning about invalid network settings (for example, if an instance
5821 # attempts to perform IP forwarding but is not enabled for IP forwarding).
5822 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
5823 },
5824 ],
5825 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
5826 },
5827 ],
5828 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
5829 # applicable when performing per-zone operations.
5830 }</pre>
5831 </div>
5832
5833 <div class="method">
5834 <code class="details" id="patchRule">patchRule(project, region, firewallPolicy, body=None, priority=None, requestId=None, x__xgafv=None)</code>
5835 <pre>Patches a rule of the specified priority.
5836
5837 Args:
5838 project: string, Project ID for this request. (required)
5839 region: string, Name of the region scoping this request. (required)
5840 firewallPolicy: string, Name of the firewall policy to update. (required)
5841 body: object, The request body.
5842 The object takes the form of:
5843
5844 { # Represents a rule that describes one or more match conditions along with
5845 # the action to be taken when traffic matches this condition (allow or deny).
5846 &quot;action&quot;: &quot;A String&quot;, # The Action to perform when the client connection triggers the rule.
5847 # Valid actions for firewall rules are: &quot;allow&quot;, &quot;deny&quot;,
5848 # &quot;apply_security_profile_group&quot; and &quot;goto_next&quot;.
5849 # Valid actions for packet mirroring rules are: &quot;mirror&quot;, &quot;do_not_mirror&quot;
5850 # and &quot;goto_next&quot;.
5851 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
5852 &quot;direction&quot;: &quot;A String&quot;, # The direction in which this rule applies.
5853 &quot;disabled&quot;: True or False, # Denotes whether the firewall policy rule is disabled. When set to true,
5854 # the firewall policy rule is not enforced and traffic behaves as if it did
5855 # not exist. If this is unspecified, the firewall policy rule will be
5856 # enabled.
5857 &quot;enableLogging&quot;: True or False, # Denotes whether to enable logging for a particular rule. If logging is
5858 # enabled, logs will be exported to the configured export destination in
5859 # Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you
5860 # cannot enable logging on &quot;goto_next&quot; rules.
5861 &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.
5862 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that incoming traffic is evaluated against.
5863 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
5864 # Exactly one field must be specified.
5865 &quot;destAddressGroups&quot;: [ # Address groups which should be matched against the traffic destination.
5866 # Maximum number of destination address groups is 10.
5867 &quot;A String&quot;,
5868 ],
5869 &quot;destFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
5870 # traffic destination.
5871 # Maximum number of destination fqdn allowed is 100.
5872 &quot;A String&quot;,
5873 ],
5874 &quot;destIpRanges&quot;: [ # CIDR IP address range.
5875 # Maximum number of destination CIDR IP ranges allowed is 5000.
5876 &quot;A String&quot;,
5877 ],
5878 &quot;destNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic destination. Allowed values are:
5879 #
5880 #
5881 # - UNSPECIFIED
5882 # - INTERNET
5883 # - NON_INTERNET
5884 &quot;destNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic destination.
5885 &quot;destNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic destination. Allowed values are:
5886 #
5887 #
5888 # - UNSPECIFIED
5889 # - INTERNET
5890 # - NON_INTERNET
5891 &quot;destRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for destination
5892 # of traffic. Should be specified as 2 letter country code defined as per
5893 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
5894 # Maximum number of dest region codes allowed is 5000.
5895 &quot;A String&quot;,
5896 ],
5897 &quot;destThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
5898 # The IPs in these lists will be matched against traffic destination.
5899 &quot;A String&quot;,
5900 ],
5901 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
5902 {
5903 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
5904 # required when creating a firewall rule. This value can either be
5905 # one of the following well known protocol strings (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP
5906 # protocol number.
5907 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
5908 # only applicable for UDP or TCP protocol. Each entry must be either
5909 # an integer or a range. If not specified, this rule applies to
5910 # connections through any port.
5911 #
5912 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
5913 &quot;A String&quot;,
5914 ],
5915 },
5916 ],
5917 &quot;srcAddressGroups&quot;: [ # Address groups which should be matched against the traffic source.
5918 # Maximum number of source address groups is 10.
5919 &quot;A String&quot;,
5920 ],
5921 &quot;srcFqdns&quot;: [ # Fully Qualified Domain Name (FQDN) which should be matched against
5922 # traffic source.
5923 # Maximum number of source fqdn allowed is 100.
5924 &quot;A String&quot;,
5925 ],
5926 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
5927 # Maximum number of source CIDR IP ranges allowed is 5000.
5928 &quot;A String&quot;,
5929 ],
5930 &quot;srcNetworkContext&quot;: &quot;A String&quot;, # Network context of the traffic source. Allowed values are:
5931 #
5932 #
5933 # - UNSPECIFIED
5934 # - INTERNET
5935 # - INTRA_VPC
5936 # - NON_INTERNET
5937 # - VPC_NETWORKS
5938 &quot;srcNetworkScope&quot;: &quot;A String&quot;, # Network scope of the traffic source.
5939 &quot;srcNetworkType&quot;: &quot;A String&quot;, # Network type of the traffic source. Allowed values are:
5940 #
5941 #
5942 # - UNSPECIFIED
5943 # - INTERNET
5944 # - INTRA_VPC
5945 # - NON_INTERNET
5946 # - VPC_NETWORKS
5947 &quot;srcNetworks&quot;: [ # Networks of the traffic source. It can be either a full or partial url.
5948 &quot;A String&quot;,
5949 ],
5950 &quot;srcRegionCodes&quot;: [ # Region codes whose IP addresses will be used to match for source
5951 # of traffic. Should be specified as 2 letter country code defined as per
5952 # ISO 3166 alpha-2 country codes. ex.&quot;US&quot;
5953 # Maximum number of source region codes allowed is 5000.
5954 &quot;A String&quot;,
5955 ],
5956 &quot;srcSecureTags&quot;: [ # List of secure tag values, which should be matched at the source
5957 # of the traffic.
5958 # For INGRESS rule, if all the srcSecureTag are INEFFECTIVE,
5959 # and there is no srcIpRange, this rule will be ignored.
5960 # Maximum number of source tag values allowed is 256.
5961 {
5962 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
5963 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
5964 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
5965 # or its network is deleted.
5966 },
5967 ],
5968 &quot;srcThreatIntelligences&quot;: [ # Names of Network Threat Intelligence lists.
5969 # The IPs in these lists will be matched against traffic source.
5970 &quot;A String&quot;,
5971 ],
5972 },
5973 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
5974 # must be a positive value between 0 and 2147483647.
5975 # Rules are evaluated from highest to lowest priority where 0 is the
5976 # highest priority and 2147483647 is the lowest priority.
5977 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
5978 # and can be updated.
5979 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single firewall policy
5980 # rule.
5981 &quot;securityProfileGroup&quot;: &quot;A String&quot;, # A fully-qualified URL of a SecurityProfile resource instance.
5982 # Example:
5983 # https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group
5984 # Must be specified if action is one of &#x27;apply_security_profile_group&#x27; or
5985 # &#x27;mirror&#x27;. Cannot be specified for other actions.
5986 &quot;targetForwardingRules&quot;: [ # A list of forwarding rules to which this rule applies.
5987 # This field allows you to control which load balancers get this rule.
5988 # For example, the following are valid values:
5989 #
5990 #
5991 # - https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule
5992 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
5993 # - projects/project/global/
5994 # forwardingRules/forwardingRule
5995 # - projects/project/regions/region/forwardingRules/
5996 # forwardingRule
5997 &quot;A String&quot;,
5998 ],
5999 &quot;targetResources&quot;: [ # A list of network resource URLs to which this rule applies. This field
6000 # allows you to control which network&#x27;s VMs get this rule. If this field
6001 # is left blank, all VMs within the organization will receive the rule.
6002 &quot;A String&quot;,
6003 ],
6004 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the firewall rule
6005 # applies to. If targetSecureTag are specified, then the
6006 # firewall rule applies only to instances in the VPC network that have one
6007 # of those EFFECTIVE secure tags, if all the target_secure_tag are in
6008 # INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same time astargetServiceAccounts.
6009 # If neither targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies
6010 # to all instances on the specified network.
6011 # Maximum number of target label tags allowed is 256.
6012 {
6013 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
6014 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
6015 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
6016 # or its network is deleted.
6017 },
6018 ],
6019 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
6020 # applied with this rule.
6021 &quot;A String&quot;,
6022 ],
6023 &quot;targetType&quot;: &quot;A String&quot;, # Target types of the firewall policy rule.
6024 # Default value is INSTANCES.
6025 &quot;tlsInspect&quot;: True or False, # Boolean flag indicating if the traffic should be TLS decrypted.
6026 # Can be set only if action = &#x27;apply_security_profile_group&#x27; and cannot
6027 # be set for other actions.
6028 }
6029
6030 priority: integer, The priority of the rule to patch.
6031 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
6032 that if you must retry your request, the server will know to ignore the
6033 request if it has already been completed.
6034
6035 For example, consider a situation where you make an initial request and
6036 the request times out. If you make the request again with the same
6037 request ID, the server can check if original operation with the same
6038 request ID was received, and if so, will ignore the second request. This
6039 prevents clients from accidentally creating duplicate commitments.
6040
6041 The request ID must be
6042 a valid UUID with the exception that zero UUID is not supported
6043 (00000000-0000-0000-0000-000000000000).
6044 x__xgafv: string, V1 error format.
6045 Allowed values
6046 1 - v1 error format
6047 2 - v2 error format
6048
6049 Returns:
6050 An object of the form:
6051
6052 { # Represents an Operation resource.
6053 #
6054 # Google Compute Engine has three Operation resources:
6055 #
6056 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
6057 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
6058 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
6059 #
6060 # You can use an operation resource to manage asynchronous API requests.
6061 # For more information, readHandling
6062 # API responses.
6063 #
6064 # Operations can be global, regional or zonal.
6065 #
6066 # - For global operations, use the `globalOperations`
6067 # resource.
6068 # - For regional operations, use the
6069 # `regionOperations` resource.
6070 # - For zonal operations, use
6071 # the `zoneOperations` resource.
6072 #
6073 #
6074 #
6075 # For more information, read
6076 # Global, Regional, and Zonal Resources.
6077 #
6078 # Note that completed Operation resources have a limited
6079 # retention period.
6080 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
6081 # Not present otherwise.
6082 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
6083 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
6084 # set when the operation is created.
6085 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
6086 # text format.
6087 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
6088 # this field will be populated.
6089 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
6090 # operation.
6091 {
6092 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
6093 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
6094 # details. There is a set of defined message types to use for providing
6095 # details.The syntax depends on the error code. For example,
6096 # QuotaExceededInfo will have details when the error code is
6097 # QUOTA_EXCEEDED.
6098 {
6099 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
6100 #
6101 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
6102 # is not enabled:
6103 #
6104 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
6105 # &quot;domain&quot;: &quot;googleapis.com&quot;
6106 # &quot;metadata&quot;: {
6107 # &quot;resource&quot;: &quot;projects/123&quot;,
6108 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
6109 # }
6110 # }
6111 #
6112 # This response indicates that the pubsub.googleapis.com API is not enabled.
6113 #
6114 # Example of an error that is returned when attempting to create a Spanner
6115 # instance in a region that is out of stock:
6116 #
6117 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
6118 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
6119 # &quot;metadata&quot;: {
6120 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
6121 # }
6122 # }
6123 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
6124 # is typically the registered service name of the tool or product that
6125 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
6126 # generated by some common infrastructure, the error domain must be a
6127 # globally unique value that identifies the infrastructure. For Google API
6128 # infrastructure, the error domain is &quot;googleapis.com&quot;.
6129 &quot;metadatas&quot;: { # Additional structured details about this error.
6130 #
6131 # Keys must match a regular expression of `a-z+` but should
6132 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
6133 # length. When identifying the current value of an exceeded limit, the units
6134 # should be contained in the key, not the value. For example, rather than
6135 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
6136 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
6137 # instances that can be created in a single (batch) request.
6138 &quot;a_key&quot;: &quot;A String&quot;,
6139 },
6140 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
6141 # proximate cause of the error. Error reasons are unique within a particular
6142 # domain of errors. This should be at most 63 characters and match a
6143 # regular expression of `A-Z+[A-Z0-9]`, which represents
6144 # UPPER_SNAKE_CASE.
6145 },
6146 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
6147 #
6148 # For example, if a quota check failed with an error indicating the calling
6149 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
6150 # directly to the right place in the developer console to flip the bit.
6151 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
6152 { # Describes a URL link.
6153 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
6154 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
6155 },
6156 ],
6157 },
6158 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
6159 # which can be attached to an RPC error.
6160 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
6161 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
6162 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
6163 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
6164 },
6165 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
6166 &quot;dimensions&quot;: { # The map holding related quota dimensions.
6167 &quot;a_key&quot;: &quot;A String&quot;,
6168 },
6169 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
6170 # type or metric.
6171 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
6172 # or metric.
6173 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
6174 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
6175 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
6176 },
6177 },
6178 ],
6179 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
6180 # This property is optional.
6181 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
6182 },
6183 ],
6184 },
6185 &quot;getVersionOperationMetadata&quot;: {
6186 &quot;inlineSbomInfo&quot;: {
6187 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
6188 # appropriate identifiers.
6189 &quot;a_key&quot;: &quot;A String&quot;,
6190 },
6191 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
6192 # identifiers.
6193 &quot;a_key&quot;: &quot;A String&quot;,
6194 },
6195 },
6196 },
6197 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
6198 # message that was returned, such as `NOT FOUND`.
6199 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
6200 # status code that was returned. For example, a `404` means the
6201 # resource was not found.
6202 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
6203 # defined by the server.
6204 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
6205 # This value is inRFC3339
6206 # text format.
6207 &quot;instancesBulkInsertOperationMetadata&quot;: {
6208 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
6209 # Example key: zones/us-central1-a
6210 &quot;a_key&quot;: {
6211 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
6212 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
6213 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
6214 # error.
6215 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
6216 # if the flow is rolling forward or rolling back.
6217 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
6218 },
6219 },
6220 },
6221 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
6222 # Operation resources.
6223 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
6224 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
6225 # group of operations results from a `bulkInsert` API request.
6226 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
6227 # `update`, or `delete`, and so on.
6228 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
6229 # There is no requirement that this be linear or support any granularity of
6230 # operations. This should not be used to guess when the operation will be
6231 # complete. This number should monotonically increase as the operation
6232 # progresses.
6233 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
6234 # applicable when performing regional operations.
6235 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
6236 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
6237 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
6238 # this field will contain information on all underlying zonal actions and
6239 # their state.
6240 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
6241 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
6242 # Example key: zones/us-central1-a
6243 &quot;a_key&quot;: {
6244 &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
6245 # populated.
6246 # different programming environments, including REST APIs and RPC APIs. It is
6247 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
6248 # three pieces of data: error code, error message, and error details.
6249 #
6250 # You can find out more about this error model and how to work with it in the
6251 # [API Design Guide](https://cloud.google.com/apis/design/errors).
6252 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
6253 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
6254 # message types for APIs to use.
6255 {
6256 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
6257 },
6258 ],
6259 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
6260 # user-facing error message should be localized and sent in the
6261 # google.rpc.Status.details field, or localized by the client.
6262 },
6263 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
6264 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
6265 },
6266 },
6267 },
6268 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
6269 # This value is inRFC3339
6270 # text format.
6271 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
6272 # following:
6273 # `PENDING`, `RUNNING`, or `DONE`.
6274 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
6275 # operation.
6276 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
6277 # of the target resource.
6278 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
6279 # operations related to creating a snapshot, this points to the disk
6280 # that the snapshot was created from.
6281 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
6282 # `[email protected]` or
6283 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
6284 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
6285 # operation, this field will be populated.
6286 {
6287 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
6288 # Engine returns NO_RESULTS_ON_PAGE if there
6289 # are no results in the response.
6290 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
6291 # value format. For example:
6292 #
6293 # &quot;data&quot;: [
6294 # {
6295 # &quot;key&quot;: &quot;scope&quot;,
6296 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
6297 # }
6298 {
6299 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
6300 # returned. For example, for warnings where there are no results in a list
6301 # request for a particular zone, this key might be scope and
6302 # the key value might be the zone name. Other examples might be a key
6303 # indicating a deprecated resource and a suggested replacement, or a
6304 # warning about invalid network settings (for example, if an instance
6305 # attempts to perform IP forwarding but is not enabled for IP forwarding).
6306 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
6307 },
6308 ],
6309 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
6310 },
6311 ],
6312 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
6313 # applicable when performing per-zone operations.
6314 }</pre>
6315 </div>
6316
6317 <div class="method">
6318 <code class="details" id="removeAssociation">removeAssociation(project, region, firewallPolicy, name=None, requestId=None, x__xgafv=None)</code>
6319 <pre>Removes an association for the specified network firewall policy.
6320
6321 Args:
6322 project: string, Project ID for this request. (required)
6323 region: string, Name of the region scoping this request. (required)
6324 firewallPolicy: string, Name of the firewall policy to update. (required)
6325 name: string, Name for the association that will be removed.
6326 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
6327 that if you must retry your request, the server will know to ignore the
6328 request if it has already been completed.
6329
6330 For example, consider a situation where you make an initial request and
6331 the request times out. If you make the request again with the same
6332 request ID, the server can check if original operation with the same
6333 request ID was received, and if so, will ignore the second request. This
6334 prevents clients from accidentally creating duplicate commitments.
6335
6336 The request ID must be
6337 a valid UUID with the exception that zero UUID is not supported
6338 (00000000-0000-0000-0000-000000000000).
6339 x__xgafv: string, V1 error format.
6340 Allowed values
6341 1 - v1 error format
6342 2 - v2 error format
6343
6344 Returns:
6345 An object of the form:
6346
6347 { # Represents an Operation resource.
6348 #
6349 # Google Compute Engine has three Operation resources:
6350 #
6351 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
6352 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
6353 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
6354 #
6355 # You can use an operation resource to manage asynchronous API requests.
6356 # For more information, readHandling
6357 # API responses.
6358 #
6359 # Operations can be global, regional or zonal.
6360 #
6361 # - For global operations, use the `globalOperations`
6362 # resource.
6363 # - For regional operations, use the
6364 # `regionOperations` resource.
6365 # - For zonal operations, use
6366 # the `zoneOperations` resource.
6367 #
6368 #
6369 #
6370 # For more information, read
6371 # Global, Regional, and Zonal Resources.
6372 #
6373 # Note that completed Operation resources have a limited
6374 # retention period.
6375 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
6376 # Not present otherwise.
6377 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
6378 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
6379 # set when the operation is created.
6380 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
6381 # text format.
6382 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
6383 # this field will be populated.
6384 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
6385 # operation.
6386 {
6387 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
6388 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
6389 # details. There is a set of defined message types to use for providing
6390 # details.The syntax depends on the error code. For example,
6391 # QuotaExceededInfo will have details when the error code is
6392 # QUOTA_EXCEEDED.
6393 {
6394 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
6395 #
6396 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
6397 # is not enabled:
6398 #
6399 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
6400 # &quot;domain&quot;: &quot;googleapis.com&quot;
6401 # &quot;metadata&quot;: {
6402 # &quot;resource&quot;: &quot;projects/123&quot;,
6403 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
6404 # }
6405 # }
6406 #
6407 # This response indicates that the pubsub.googleapis.com API is not enabled.
6408 #
6409 # Example of an error that is returned when attempting to create a Spanner
6410 # instance in a region that is out of stock:
6411 #
6412 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
6413 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
6414 # &quot;metadata&quot;: {
6415 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
6416 # }
6417 # }
6418 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
6419 # is typically the registered service name of the tool or product that
6420 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
6421 # generated by some common infrastructure, the error domain must be a
6422 # globally unique value that identifies the infrastructure. For Google API
6423 # infrastructure, the error domain is &quot;googleapis.com&quot;.
6424 &quot;metadatas&quot;: { # Additional structured details about this error.
6425 #
6426 # Keys must match a regular expression of `a-z+` but should
6427 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
6428 # length. When identifying the current value of an exceeded limit, the units
6429 # should be contained in the key, not the value. For example, rather than
6430 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
6431 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
6432 # instances that can be created in a single (batch) request.
6433 &quot;a_key&quot;: &quot;A String&quot;,
6434 },
6435 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
6436 # proximate cause of the error. Error reasons are unique within a particular
6437 # domain of errors. This should be at most 63 characters and match a
6438 # regular expression of `A-Z+[A-Z0-9]`, which represents
6439 # UPPER_SNAKE_CASE.
6440 },
6441 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
6442 #
6443 # For example, if a quota check failed with an error indicating the calling
6444 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
6445 # directly to the right place in the developer console to flip the bit.
6446 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
6447 { # Describes a URL link.
6448 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
6449 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
6450 },
6451 ],
6452 },
6453 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
6454 # which can be attached to an RPC error.
6455 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
6456 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
6457 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
6458 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
6459 },
6460 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
6461 &quot;dimensions&quot;: { # The map holding related quota dimensions.
6462 &quot;a_key&quot;: &quot;A String&quot;,
6463 },
6464 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
6465 # type or metric.
6466 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
6467 # or metric.
6468 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
6469 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
6470 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
6471 },
6472 },
6473 ],
6474 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
6475 # This property is optional.
6476 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
6477 },
6478 ],
6479 },
6480 &quot;getVersionOperationMetadata&quot;: {
6481 &quot;inlineSbomInfo&quot;: {
6482 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
6483 # appropriate identifiers.
6484 &quot;a_key&quot;: &quot;A String&quot;,
6485 },
6486 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
6487 # identifiers.
6488 &quot;a_key&quot;: &quot;A String&quot;,
6489 },
6490 },
6491 },
6492 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
6493 # message that was returned, such as `NOT FOUND`.
6494 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
6495 # status code that was returned. For example, a `404` means the
6496 # resource was not found.
6497 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
6498 # defined by the server.
6499 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
6500 # This value is inRFC3339
6501 # text format.
6502 &quot;instancesBulkInsertOperationMetadata&quot;: {
6503 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
6504 # Example key: zones/us-central1-a
6505 &quot;a_key&quot;: {
6506 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
6507 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
6508 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
6509 # error.
6510 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
6511 # if the flow is rolling forward or rolling back.
6512 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
6513 },
6514 },
6515 },
6516 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
6517 # Operation resources.
6518 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
6519 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
6520 # group of operations results from a `bulkInsert` API request.
6521 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
6522 # `update`, or `delete`, and so on.
6523 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
6524 # There is no requirement that this be linear or support any granularity of
6525 # operations. This should not be used to guess when the operation will be
6526 # complete. This number should monotonically increase as the operation
6527 # progresses.
6528 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
6529 # applicable when performing regional operations.
6530 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
6531 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
6532 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
6533 # this field will contain information on all underlying zonal actions and
6534 # their state.
6535 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
6536 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
6537 # Example key: zones/us-central1-a
6538 &quot;a_key&quot;: {
6539 &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
6540 # populated.
6541 # different programming environments, including REST APIs and RPC APIs. It is
6542 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
6543 # three pieces of data: error code, error message, and error details.
6544 #
6545 # You can find out more about this error model and how to work with it in the
6546 # [API Design Guide](https://cloud.google.com/apis/design/errors).
6547 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
6548 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
6549 # message types for APIs to use.
6550 {
6551 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
6552 },
6553 ],
6554 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
6555 # user-facing error message should be localized and sent in the
6556 # google.rpc.Status.details field, or localized by the client.
6557 },
6558 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
6559 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
6560 },
6561 },
6562 },
6563 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
6564 # This value is inRFC3339
6565 # text format.
6566 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
6567 # following:
6568 # `PENDING`, `RUNNING`, or `DONE`.
6569 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
6570 # operation.
6571 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
6572 # of the target resource.
6573 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
6574 # operations related to creating a snapshot, this points to the disk
6575 # that the snapshot was created from.
6576 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
6577 # `[email protected]` or
6578 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
6579 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
6580 # operation, this field will be populated.
6581 {
6582 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
6583 # Engine returns NO_RESULTS_ON_PAGE if there
6584 # are no results in the response.
6585 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
6586 # value format. For example:
6587 #
6588 # &quot;data&quot;: [
6589 # {
6590 # &quot;key&quot;: &quot;scope&quot;,
6591 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
6592 # }
6593 {
6594 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
6595 # returned. For example, for warnings where there are no results in a list
6596 # request for a particular zone, this key might be scope and
6597 # the key value might be the zone name. Other examples might be a key
6598 # indicating a deprecated resource and a suggested replacement, or a
6599 # warning about invalid network settings (for example, if an instance
6600 # attempts to perform IP forwarding but is not enabled for IP forwarding).
6601 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
6602 },
6603 ],
6604 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
6605 },
6606 ],
6607 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
6608 # applicable when performing per-zone operations.
6609 }</pre>
6610 </div>
6611
6612 <div class="method">
6613 <code class="details" id="removeRule">removeRule(project, region, firewallPolicy, priority=None, requestId=None, x__xgafv=None)</code>
6614 <pre>Deletes a rule of the specified priority.
6615
6616 Args:
6617 project: string, Project ID for this request. (required)
6618 region: string, Name of the region scoping this request. (required)
6619 firewallPolicy: string, Name of the firewall policy to update. (required)
6620 priority: integer, The priority of the rule to remove from the firewall policy.
6621 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
6622 that if you must retry your request, the server will know to ignore the
6623 request if it has already been completed.
6624
6625 For example, consider a situation where you make an initial request and
6626 the request times out. If you make the request again with the same
6627 request ID, the server can check if original operation with the same
6628 request ID was received, and if so, will ignore the second request. This
6629 prevents clients from accidentally creating duplicate commitments.
6630
6631 The request ID must be
6632 a valid UUID with the exception that zero UUID is not supported
6633 (00000000-0000-0000-0000-000000000000).
6634 x__xgafv: string, V1 error format.
6635 Allowed values
6636 1 - v1 error format
6637 2 - v2 error format
6638
6639 Returns:
6640 An object of the form:
6641
6642 { # Represents an Operation resource.
6643 #
6644 # Google Compute Engine has three Operation resources:
6645 #
6646 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
6647 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
6648 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
6649 #
6650 # You can use an operation resource to manage asynchronous API requests.
6651 # For more information, readHandling
6652 # API responses.
6653 #
6654 # Operations can be global, regional or zonal.
6655 #
6656 # - For global operations, use the `globalOperations`
6657 # resource.
6658 # - For regional operations, use the
6659 # `regionOperations` resource.
6660 # - For zonal operations, use
6661 # the `zoneOperations` resource.
6662 #
6663 #
6664 #
6665 # For more information, read
6666 # Global, Regional, and Zonal Resources.
6667 #
6668 # Note that completed Operation resources have a limited
6669 # retention period.
6670 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
6671 # Not present otherwise.
6672 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
6673 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
6674 # set when the operation is created.
6675 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
6676 # text format.
6677 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
6678 # this field will be populated.
6679 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
6680 # operation.
6681 {
6682 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
6683 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
6684 # details. There is a set of defined message types to use for providing
6685 # details.The syntax depends on the error code. For example,
6686 # QuotaExceededInfo will have details when the error code is
6687 # QUOTA_EXCEEDED.
6688 {
6689 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
6690 #
6691 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
6692 # is not enabled:
6693 #
6694 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
6695 # &quot;domain&quot;: &quot;googleapis.com&quot;
6696 # &quot;metadata&quot;: {
6697 # &quot;resource&quot;: &quot;projects/123&quot;,
6698 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
6699 # }
6700 # }
6701 #
6702 # This response indicates that the pubsub.googleapis.com API is not enabled.
6703 #
6704 # Example of an error that is returned when attempting to create a Spanner
6705 # instance in a region that is out of stock:
6706 #
6707 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
6708 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
6709 # &quot;metadata&quot;: {
6710 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
6711 # }
6712 # }
6713 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
6714 # is typically the registered service name of the tool or product that
6715 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
6716 # generated by some common infrastructure, the error domain must be a
6717 # globally unique value that identifies the infrastructure. For Google API
6718 # infrastructure, the error domain is &quot;googleapis.com&quot;.
6719 &quot;metadatas&quot;: { # Additional structured details about this error.
6720 #
6721 # Keys must match a regular expression of `a-z+` but should
6722 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
6723 # length. When identifying the current value of an exceeded limit, the units
6724 # should be contained in the key, not the value. For example, rather than
6725 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
6726 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
6727 # instances that can be created in a single (batch) request.
6728 &quot;a_key&quot;: &quot;A String&quot;,
6729 },
6730 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
6731 # proximate cause of the error. Error reasons are unique within a particular
6732 # domain of errors. This should be at most 63 characters and match a
6733 # regular expression of `A-Z+[A-Z0-9]`, which represents
6734 # UPPER_SNAKE_CASE.
6735 },
6736 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
6737 #
6738 # For example, if a quota check failed with an error indicating the calling
6739 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
6740 # directly to the right place in the developer console to flip the bit.
6741 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
6742 { # Describes a URL link.
6743 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
6744 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
6745 },
6746 ],
6747 },
6748 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
6749 # which can be attached to an RPC error.
6750 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
6751 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
6752 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
6753 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
6754 },
6755 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
6756 &quot;dimensions&quot;: { # The map holding related quota dimensions.
6757 &quot;a_key&quot;: &quot;A String&quot;,
6758 },
6759 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
6760 # type or metric.
6761 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
6762 # or metric.
6763 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
6764 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
6765 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
6766 },
6767 },
6768 ],
6769 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
6770 # This property is optional.
6771 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
6772 },
6773 ],
6774 },
6775 &quot;getVersionOperationMetadata&quot;: {
6776 &quot;inlineSbomInfo&quot;: {
6777 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
6778 # appropriate identifiers.
6779 &quot;a_key&quot;: &quot;A String&quot;,
6780 },
6781 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
6782 # identifiers.
6783 &quot;a_key&quot;: &quot;A String&quot;,
6784 },
6785 },
6786 },
6787 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
6788 # message that was returned, such as `NOT FOUND`.
6789 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
6790 # status code that was returned. For example, a `404` means the
6791 # resource was not found.
6792 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
6793 # defined by the server.
6794 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
6795 # This value is inRFC3339
6796 # text format.
6797 &quot;instancesBulkInsertOperationMetadata&quot;: {
6798 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
6799 # Example key: zones/us-central1-a
6800 &quot;a_key&quot;: {
6801 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
6802 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
6803 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
6804 # error.
6805 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
6806 # if the flow is rolling forward or rolling back.
6807 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
6808 },
6809 },
6810 },
6811 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
6812 # Operation resources.
6813 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
6814 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
6815 # group of operations results from a `bulkInsert` API request.
6816 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
6817 # `update`, or `delete`, and so on.
6818 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
6819 # There is no requirement that this be linear or support any granularity of
6820 # operations. This should not be used to guess when the operation will be
6821 # complete. This number should monotonically increase as the operation
6822 # progresses.
6823 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
6824 # applicable when performing regional operations.
6825 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
6826 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
6827 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
6828 # this field will contain information on all underlying zonal actions and
6829 # their state.
6830 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
6831 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
6832 # Example key: zones/us-central1-a
6833 &quot;a_key&quot;: {
6834 &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
6835 # populated.
6836 # different programming environments, including REST APIs and RPC APIs. It is
6837 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
6838 # three pieces of data: error code, error message, and error details.
6839 #
6840 # You can find out more about this error model and how to work with it in the
6841 # [API Design Guide](https://cloud.google.com/apis/design/errors).
6842 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
6843 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
6844 # message types for APIs to use.
6845 {
6846 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
6847 },
6848 ],
6849 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
6850 # user-facing error message should be localized and sent in the
6851 # google.rpc.Status.details field, or localized by the client.
6852 },
6853 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
6854 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
6855 },
6856 },
6857 },
6858 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
6859 # This value is inRFC3339
6860 # text format.
6861 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
6862 # following:
6863 # `PENDING`, `RUNNING`, or `DONE`.
6864 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
6865 # operation.
6866 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
6867 # of the target resource.
6868 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
6869 # operations related to creating a snapshot, this points to the disk
6870 # that the snapshot was created from.
6871 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
6872 # `[email protected]` or
6873 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
6874 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
6875 # operation, this field will be populated.
6876 {
6877 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
6878 # Engine returns NO_RESULTS_ON_PAGE if there
6879 # are no results in the response.
6880 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
6881 # value format. For example:
6882 #
6883 # &quot;data&quot;: [
6884 # {
6885 # &quot;key&quot;: &quot;scope&quot;,
6886 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
6887 # }
6888 {
6889 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
6890 # returned. For example, for warnings where there are no results in a list
6891 # request for a particular zone, this key might be scope and
6892 # the key value might be the zone name. Other examples might be a key
6893 # indicating a deprecated resource and a suggested replacement, or a
6894 # warning about invalid network settings (for example, if an instance
6895 # attempts to perform IP forwarding but is not enabled for IP forwarding).
6896 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
6897 },
6898 ],
6899 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
6900 },
6901 ],
6902 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
6903 # applicable when performing per-zone operations.
6904 }</pre>
6905 </div>
6906
6907 <div class="method">
6908 <code class="details" id="setIamPolicy">setIamPolicy(project, region, resource, body=None, x__xgafv=None)</code>
6909 <pre>Sets the access control policy on the specified resource.
6910 Replaces any existing policy.
6911
6912 Args:
6913 project: string, Project ID for this request. (required)
6914 region: string, The name of the region for this request. (required)
6915 resource: string, Name or id of the resource for this request. (required)
6916 body: object, The request body.
6917 The object takes the form of:
6918
6919 {
6920 &quot;bindings&quot;: [ # Flatten Policy to create a backwacd compatible wire-format.
6921 # Deprecated. Use &#x27;policy&#x27; to specify bindings.
6922 { # Associates `members`, or principals, with a `role`.
6923 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
6924 #
6925 # If the condition evaluates to `true`, then this binding applies to the
6926 # current request.
6927 #
6928 # If the condition evaluates to `false`, then this binding does not apply to
6929 # the current request. However, a different role binding might grant the same
6930 # role to one or more of the principals in this binding.
6931 #
6932 # To learn which resources support conditions in their IAM policies, see the
6933 # [IAM
6934 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
6935 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
6936 # are documented at https://github.com/google/cel-spec.
6937 #
6938 # Example (Comparison):
6939 #
6940 # title: &quot;Summary size limit&quot;
6941 # description: &quot;Determines if a summary is less than 100 chars&quot;
6942 # expression: &quot;document.summary.size() &lt; 100&quot;
6943 #
6944 # Example (Equality):
6945 #
6946 # title: &quot;Requestor is owner&quot;
6947 # description: &quot;Determines if requestor is the document owner&quot;
6948 # expression: &quot;document.owner == request.auth.claims.email&quot;
6949 #
6950 # Example (Logic):
6951 #
6952 # title: &quot;Public documents&quot;
6953 # description: &quot;Determine whether the document should be publicly visible&quot;
6954 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
6955 #
6956 # Example (Data Manipulation):
6957 #
6958 # title: &quot;Notification string&quot;
6959 # description: &quot;Create a notification string with a timestamp.&quot;
6960 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
6961 #
6962 # The exact variables and functions that may be referenced within an expression
6963 # are determined by the service that evaluates it. See the service
6964 # documentation for additional information.
6965 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
6966 # describes the expression, e.g. when hovered over it in a UI.
6967 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
6968 # syntax.
6969 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
6970 # reporting, e.g. a file name and a position in the file.
6971 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
6972 # its purpose. This can be used e.g. in UIs which allow to enter the
6973 # expression.
6974 },
6975 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
6976 # `members` can have the following values:
6977 #
6978 # * `allUsers`: A special identifier that represents anyone who is
6979 # on the internet; with or without a Google account.
6980 #
6981 # * `allAuthenticatedUsers`: A special identifier that represents anyone
6982 # who is authenticated with a Google account or a service account.
6983 # Does not include identities that come from external identity providers
6984 # (IdPs) through identity federation.
6985 #
6986 # * `user:{emailid}`: An email address that represents a specific Google
6987 # account. For example, `[email protected]` .
6988 #
6989 #
6990 # * `serviceAccount:{emailid}`: An email address that represents a Google
6991 # service account. For example,
6992 # `[email protected]`.
6993 #
6994 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
6995 # identifier for a
6996 # [Kubernetes service
6997 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
6998 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
6999 #
7000 # * `group:{emailid}`: An email address that represents a Google group.
7001 # For example, `[email protected]`.
7002 #
7003 #
7004 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
7005 # users of that domain. For example, `google.com` or `example.com`.
7006 #
7007 #
7008 #
7009 #
7010 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
7011 # A single identity in a workforce identity pool.
7012 #
7013 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
7014 # All workforce identities in a group.
7015 #
7016 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
7017 # All workforce identities with a specific attribute value.
7018 #
7019 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
7020 # All identities in a workforce identity pool.
7021 #
7022 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
7023 # A single identity in a workload identity pool.
7024 #
7025 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
7026 # A workload identity pool group.
7027 #
7028 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
7029 # All identities in a workload identity pool with a certain attribute.
7030 #
7031 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
7032 # All identities in a workload identity pool.
7033 #
7034 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
7035 # identifier) representing a user that has been recently deleted. For
7036 # example, `[email protected]?uid=123456789012345678901`. If the user is
7037 # recovered, this value reverts to `user:{emailid}` and the recovered user
7038 # retains the role in the binding.
7039 #
7040 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
7041 # unique identifier) representing a service account that has been recently
7042 # deleted. For example,
7043 # `[email protected]?uid=123456789012345678901`.
7044 # If the service account is undeleted, this value reverts to
7045 # `serviceAccount:{emailid}` and the undeleted service account retains the
7046 # role in the binding.
7047 #
7048 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
7049 # identifier) representing a Google group that has been recently
7050 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
7051 # the group is recovered, this value reverts to `group:{emailid}` and the
7052 # recovered group retains the role in the binding.
7053 #
7054 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
7055 # Deleted single identity in a workforce identity pool. For example,
7056 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
7057 &quot;A String&quot;,
7058 ],
7059 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
7060 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
7061 #
7062 # For an overview of the IAM roles and permissions, see the
7063 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
7064 # a list of the available pre-defined roles, see
7065 # [here](https://cloud.google.com/iam/docs/understanding-roles).
7066 },
7067 ],
7068 &quot;etag&quot;: &quot;A String&quot;, # Flatten Policy to create a backward compatible wire-format.
7069 # Deprecated. Use &#x27;policy&#x27; to specify the etag.
7070 &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
7071 # the policy is limited to a few 10s of KB. An empty policy is in general a
7072 # valid policy but certain services (like Projects) might reject them.
7073 # controls for Google Cloud resources.
7074 #
7075 #
7076 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
7077 # `members`, or principals, to a single `role`. Principals can be user
7078 # accounts, service accounts, Google groups, and domains (such as G Suite). A
7079 # `role` is a named list of permissions; each `role` can be an IAM predefined
7080 # role or a user-created custom role.
7081 #
7082 # For some types of Google Cloud resources, a `binding` can also specify a
7083 # `condition`, which is a logical expression that allows access to a resource
7084 # only if the expression evaluates to `true`. A condition can add constraints
7085 # based on attributes of the request, the resource, or both. To learn which
7086 # resources support conditions in their IAM policies, see the
7087 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7088 #
7089 # **JSON example:**
7090 #
7091 # ```
7092 # {
7093 # &quot;bindings&quot;: [
7094 # {
7095 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
7096 # &quot;members&quot;: [
7097 # &quot;user:[email protected]&quot;,
7098 # &quot;group:[email protected]&quot;,
7099 # &quot;domain:google.com&quot;,
7100 # &quot;serviceAccount:[email protected]&quot;
7101 # ]
7102 # },
7103 # {
7104 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
7105 # &quot;members&quot;: [
7106 # &quot;user:[email protected]&quot;
7107 # ],
7108 # &quot;condition&quot;: {
7109 # &quot;title&quot;: &quot;expirable access&quot;,
7110 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
7111 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
7112 # }
7113 # }
7114 # ],
7115 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
7116 # &quot;version&quot;: 3
7117 # }
7118 # ```
7119 #
7120 # **YAML example:**
7121 #
7122 # ```
7123 # bindings:
7124 # - members:
7125 # - user:[email protected]
7126 # - group:[email protected]
7127 # - domain:google.com
7128 # - serviceAccount:[email protected]
7129 # role: roles/resourcemanager.organizationAdmin
7130 # - members:
7131 # - user:[email protected]
7132 # role: roles/resourcemanager.organizationViewer
7133 # condition:
7134 # title: expirable access
7135 # description: Does not grant access after Sep 2020
7136 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
7137 # etag: BwWWja0YfJA=
7138 # version: 3
7139 # ```
7140 #
7141 # For a description of IAM and its features, see the
7142 # [IAM documentation](https://cloud.google.com/iam/docs/).
7143 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
7144 { # Specifies the audit configuration for a service.
7145 # The configuration determines which permission types are logged, and what
7146 # identities, if any, are exempted from logging.
7147 # An AuditConfig must have one or more AuditLogConfigs.
7148 #
7149 # If there are AuditConfigs for both `allServices` and a specific service,
7150 # the union of the two AuditConfigs is used for that service: the log_types
7151 # specified in each AuditConfig are enabled, and the exempted_members in each
7152 # AuditLogConfig are exempted.
7153 #
7154 # Example Policy with multiple AuditConfigs:
7155 #
7156 # {
7157 # &quot;audit_configs&quot;: [
7158 # {
7159 # &quot;service&quot;: &quot;allServices&quot;,
7160 # &quot;audit_log_configs&quot;: [
7161 # {
7162 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
7163 # &quot;exempted_members&quot;: [
7164 # &quot;user:[email protected]&quot;
7165 # ]
7166 # },
7167 # {
7168 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
7169 # },
7170 # {
7171 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
7172 # }
7173 # ]
7174 # },
7175 # {
7176 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
7177 # &quot;audit_log_configs&quot;: [
7178 # {
7179 # &quot;log_type&quot;: &quot;DATA_READ&quot;
7180 # },
7181 # {
7182 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
7183 # &quot;exempted_members&quot;: [
7184 # &quot;user:[email protected]&quot;
7185 # ]
7186 # }
7187 # ]
7188 # }
7189 # ]
7190 # }
7191 #
7192 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
7193 # logging. It also exempts `[email protected]` from DATA_READ logging, and
7194 # `[email protected]` from DATA_WRITE logging.
7195 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
7196 { # Provides the configuration for logging a type of permissions.
7197 # Example:
7198 #
7199 # {
7200 # &quot;audit_log_configs&quot;: [
7201 # {
7202 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
7203 # &quot;exempted_members&quot;: [
7204 # &quot;user:[email protected]&quot;
7205 # ]
7206 # },
7207 # {
7208 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
7209 # }
7210 # ]
7211 # }
7212 #
7213 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
7214 # [email protected] from DATA_READ logging.
7215 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
7216 # permission.
7217 # Follows the same format of Binding.members.
7218 &quot;A String&quot;,
7219 ],
7220 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
7221 },
7222 ],
7223 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
7224 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
7225 # `allServices` is a special value that covers all services.
7226 },
7227 ],
7228 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
7229 # may specify a `condition` that determines how and when the `bindings` are
7230 # applied. Each of the `bindings` must contain at least one principal.
7231 #
7232 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
7233 # of these principals can be Google groups. Each occurrence of a principal
7234 # counts towards these limits. For example, if the `bindings` grant 50
7235 # different roles to `user:[email protected]`, and not to any other
7236 # principal, then you can add another 1,450 principals to the `bindings` in
7237 # the `Policy`.
7238 { # Associates `members`, or principals, with a `role`.
7239 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
7240 #
7241 # If the condition evaluates to `true`, then this binding applies to the
7242 # current request.
7243 #
7244 # If the condition evaluates to `false`, then this binding does not apply to
7245 # the current request. However, a different role binding might grant the same
7246 # role to one or more of the principals in this binding.
7247 #
7248 # To learn which resources support conditions in their IAM policies, see the
7249 # [IAM
7250 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7251 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
7252 # are documented at https://github.com/google/cel-spec.
7253 #
7254 # Example (Comparison):
7255 #
7256 # title: &quot;Summary size limit&quot;
7257 # description: &quot;Determines if a summary is less than 100 chars&quot;
7258 # expression: &quot;document.summary.size() &lt; 100&quot;
7259 #
7260 # Example (Equality):
7261 #
7262 # title: &quot;Requestor is owner&quot;
7263 # description: &quot;Determines if requestor is the document owner&quot;
7264 # expression: &quot;document.owner == request.auth.claims.email&quot;
7265 #
7266 # Example (Logic):
7267 #
7268 # title: &quot;Public documents&quot;
7269 # description: &quot;Determine whether the document should be publicly visible&quot;
7270 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
7271 #
7272 # Example (Data Manipulation):
7273 #
7274 # title: &quot;Notification string&quot;
7275 # description: &quot;Create a notification string with a timestamp.&quot;
7276 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
7277 #
7278 # The exact variables and functions that may be referenced within an expression
7279 # are determined by the service that evaluates it. See the service
7280 # documentation for additional information.
7281 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
7282 # describes the expression, e.g. when hovered over it in a UI.
7283 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
7284 # syntax.
7285 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
7286 # reporting, e.g. a file name and a position in the file.
7287 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
7288 # its purpose. This can be used e.g. in UIs which allow to enter the
7289 # expression.
7290 },
7291 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
7292 # `members` can have the following values:
7293 #
7294 # * `allUsers`: A special identifier that represents anyone who is
7295 # on the internet; with or without a Google account.
7296 #
7297 # * `allAuthenticatedUsers`: A special identifier that represents anyone
7298 # who is authenticated with a Google account or a service account.
7299 # Does not include identities that come from external identity providers
7300 # (IdPs) through identity federation.
7301 #
7302 # * `user:{emailid}`: An email address that represents a specific Google
7303 # account. For example, `[email protected]` .
7304 #
7305 #
7306 # * `serviceAccount:{emailid}`: An email address that represents a Google
7307 # service account. For example,
7308 # `[email protected]`.
7309 #
7310 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
7311 # identifier for a
7312 # [Kubernetes service
7313 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
7314 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
7315 #
7316 # * `group:{emailid}`: An email address that represents a Google group.
7317 # For example, `[email protected]`.
7318 #
7319 #
7320 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
7321 # users of that domain. For example, `google.com` or `example.com`.
7322 #
7323 #
7324 #
7325 #
7326 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
7327 # A single identity in a workforce identity pool.
7328 #
7329 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
7330 # All workforce identities in a group.
7331 #
7332 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
7333 # All workforce identities with a specific attribute value.
7334 #
7335 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
7336 # All identities in a workforce identity pool.
7337 #
7338 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
7339 # A single identity in a workload identity pool.
7340 #
7341 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
7342 # A workload identity pool group.
7343 #
7344 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
7345 # All identities in a workload identity pool with a certain attribute.
7346 #
7347 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
7348 # All identities in a workload identity pool.
7349 #
7350 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
7351 # identifier) representing a user that has been recently deleted. For
7352 # example, `[email protected]?uid=123456789012345678901`. If the user is
7353 # recovered, this value reverts to `user:{emailid}` and the recovered user
7354 # retains the role in the binding.
7355 #
7356 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
7357 # unique identifier) representing a service account that has been recently
7358 # deleted. For example,
7359 # `[email protected]?uid=123456789012345678901`.
7360 # If the service account is undeleted, this value reverts to
7361 # `serviceAccount:{emailid}` and the undeleted service account retains the
7362 # role in the binding.
7363 #
7364 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
7365 # identifier) representing a Google group that has been recently
7366 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
7367 # the group is recovered, this value reverts to `group:{emailid}` and the
7368 # recovered group retains the role in the binding.
7369 #
7370 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
7371 # Deleted single identity in a workforce identity pool. For example,
7372 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
7373 &quot;A String&quot;,
7374 ],
7375 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
7376 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
7377 #
7378 # For an overview of the IAM roles and permissions, see the
7379 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
7380 # a list of the available pre-defined roles, see
7381 # [here](https://cloud.google.com/iam/docs/understanding-roles).
7382 },
7383 ],
7384 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
7385 # prevent simultaneous updates of a policy from overwriting each other.
7386 # It is strongly suggested that systems make use of the `etag` in the
7387 # read-modify-write cycle to perform policy updates in order to avoid race
7388 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
7389 # systems are expected to put that etag in the request to `setIamPolicy` to
7390 # ensure that their change will be applied to the same version of the policy.
7391 #
7392 # **Important:** If you use IAM Conditions, you must include the `etag` field
7393 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
7394 # you to overwrite a version `3` policy with a version `1` policy, and all of
7395 # the conditions in the version `3` policy are lost.
7396 &quot;version&quot;: 42, # Specifies the format of the policy.
7397 #
7398 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
7399 # are rejected.
7400 #
7401 # Any operation that affects conditional role bindings must specify version
7402 # `3`. This requirement applies to the following operations:
7403 #
7404 # * Getting a policy that includes a conditional role binding
7405 # * Adding a conditional role binding to a policy
7406 # * Changing a conditional role binding in a policy
7407 # * Removing any role binding, with or without a condition, from a policy
7408 # that includes conditions
7409 #
7410 # **Important:** If you use IAM Conditions, you must include the `etag` field
7411 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
7412 # you to overwrite a version `3` policy with a version `1` policy, and all of
7413 # the conditions in the version `3` policy are lost.
7414 #
7415 # If a policy does not include any conditions, operations on that policy may
7416 # specify any valid version or leave the field unset.
7417 #
7418 # To learn which resources support conditions in their IAM policies, see the
7419 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7420 },
7421 }
7422
7423 x__xgafv: string, V1 error format.
7424 Allowed values
7425 1 - v1 error format
7426 2 - v2 error format
7427
7428 Returns:
7429 An object of the form:
7430
7431 { # An Identity and Access Management (IAM) policy, which specifies access
7432 # controls for Google Cloud resources.
7433 #
7434 #
7435 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
7436 # `members`, or principals, to a single `role`. Principals can be user
7437 # accounts, service accounts, Google groups, and domains (such as G Suite). A
7438 # `role` is a named list of permissions; each `role` can be an IAM predefined
7439 # role or a user-created custom role.
7440 #
7441 # For some types of Google Cloud resources, a `binding` can also specify a
7442 # `condition`, which is a logical expression that allows access to a resource
7443 # only if the expression evaluates to `true`. A condition can add constraints
7444 # based on attributes of the request, the resource, or both. To learn which
7445 # resources support conditions in their IAM policies, see the
7446 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7447 #
7448 # **JSON example:**
7449 #
7450 # ```
7451 # {
7452 # &quot;bindings&quot;: [
7453 # {
7454 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
7455 # &quot;members&quot;: [
7456 # &quot;user:[email protected]&quot;,
7457 # &quot;group:[email protected]&quot;,
7458 # &quot;domain:google.com&quot;,
7459 # &quot;serviceAccount:[email protected]&quot;
7460 # ]
7461 # },
7462 # {
7463 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
7464 # &quot;members&quot;: [
7465 # &quot;user:[email protected]&quot;
7466 # ],
7467 # &quot;condition&quot;: {
7468 # &quot;title&quot;: &quot;expirable access&quot;,
7469 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
7470 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
7471 # }
7472 # }
7473 # ],
7474 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
7475 # &quot;version&quot;: 3
7476 # }
7477 # ```
7478 #
7479 # **YAML example:**
7480 #
7481 # ```
7482 # bindings:
7483 # - members:
7484 # - user:[email protected]
7485 # - group:[email protected]
7486 # - domain:google.com
7487 # - serviceAccount:[email protected]
7488 # role: roles/resourcemanager.organizationAdmin
7489 # - members:
7490 # - user:[email protected]
7491 # role: roles/resourcemanager.organizationViewer
7492 # condition:
7493 # title: expirable access
7494 # description: Does not grant access after Sep 2020
7495 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
7496 # etag: BwWWja0YfJA=
7497 # version: 3
7498 # ```
7499 #
7500 # For a description of IAM and its features, see the
7501 # [IAM documentation](https://cloud.google.com/iam/docs/).
7502 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
7503 { # Specifies the audit configuration for a service.
7504 # The configuration determines which permission types are logged, and what
7505 # identities, if any, are exempted from logging.
7506 # An AuditConfig must have one or more AuditLogConfigs.
7507 #
7508 # If there are AuditConfigs for both `allServices` and a specific service,
7509 # the union of the two AuditConfigs is used for that service: the log_types
7510 # specified in each AuditConfig are enabled, and the exempted_members in each
7511 # AuditLogConfig are exempted.
7512 #
7513 # Example Policy with multiple AuditConfigs:
7514 #
7515 # {
7516 # &quot;audit_configs&quot;: [
7517 # {
7518 # &quot;service&quot;: &quot;allServices&quot;,
7519 # &quot;audit_log_configs&quot;: [
7520 # {
7521 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
7522 # &quot;exempted_members&quot;: [
7523 # &quot;user:[email protected]&quot;
7524 # ]
7525 # },
7526 # {
7527 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
7528 # },
7529 # {
7530 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
7531 # }
7532 # ]
7533 # },
7534 # {
7535 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
7536 # &quot;audit_log_configs&quot;: [
7537 # {
7538 # &quot;log_type&quot;: &quot;DATA_READ&quot;
7539 # },
7540 # {
7541 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
7542 # &quot;exempted_members&quot;: [
7543 # &quot;user:[email protected]&quot;
7544 # ]
7545 # }
7546 # ]
7547 # }
7548 # ]
7549 # }
7550 #
7551 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
7552 # logging. It also exempts `[email protected]` from DATA_READ logging, and
7553 # `[email protected]` from DATA_WRITE logging.
7554 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
7555 { # Provides the configuration for logging a type of permissions.
7556 # Example:
7557 #
7558 # {
7559 # &quot;audit_log_configs&quot;: [
7560 # {
7561 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
7562 # &quot;exempted_members&quot;: [
7563 # &quot;user:[email protected]&quot;
7564 # ]
7565 # },
7566 # {
7567 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
7568 # }
7569 # ]
7570 # }
7571 #
7572 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
7573 # [email protected] from DATA_READ logging.
7574 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
7575 # permission.
7576 # Follows the same format of Binding.members.
7577 &quot;A String&quot;,
7578 ],
7579 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
7580 },
7581 ],
7582 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
7583 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
7584 # `allServices` is a special value that covers all services.
7585 },
7586 ],
7587 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
7588 # may specify a `condition` that determines how and when the `bindings` are
7589 # applied. Each of the `bindings` must contain at least one principal.
7590 #
7591 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
7592 # of these principals can be Google groups. Each occurrence of a principal
7593 # counts towards these limits. For example, if the `bindings` grant 50
7594 # different roles to `user:[email protected]`, and not to any other
7595 # principal, then you can add another 1,450 principals to the `bindings` in
7596 # the `Policy`.
7597 { # Associates `members`, or principals, with a `role`.
7598 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
7599 #
7600 # If the condition evaluates to `true`, then this binding applies to the
7601 # current request.
7602 #
7603 # If the condition evaluates to `false`, then this binding does not apply to
7604 # the current request. However, a different role binding might grant the same
7605 # role to one or more of the principals in this binding.
7606 #
7607 # To learn which resources support conditions in their IAM policies, see the
7608 # [IAM
7609 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7610 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
7611 # are documented at https://github.com/google/cel-spec.
7612 #
7613 # Example (Comparison):
7614 #
7615 # title: &quot;Summary size limit&quot;
7616 # description: &quot;Determines if a summary is less than 100 chars&quot;
7617 # expression: &quot;document.summary.size() &lt; 100&quot;
7618 #
7619 # Example (Equality):
7620 #
7621 # title: &quot;Requestor is owner&quot;
7622 # description: &quot;Determines if requestor is the document owner&quot;
7623 # expression: &quot;document.owner == request.auth.claims.email&quot;
7624 #
7625 # Example (Logic):
7626 #
7627 # title: &quot;Public documents&quot;
7628 # description: &quot;Determine whether the document should be publicly visible&quot;
7629 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
7630 #
7631 # Example (Data Manipulation):
7632 #
7633 # title: &quot;Notification string&quot;
7634 # description: &quot;Create a notification string with a timestamp.&quot;
7635 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
7636 #
7637 # The exact variables and functions that may be referenced within an expression
7638 # are determined by the service that evaluates it. See the service
7639 # documentation for additional information.
7640 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
7641 # describes the expression, e.g. when hovered over it in a UI.
7642 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
7643 # syntax.
7644 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
7645 # reporting, e.g. a file name and a position in the file.
7646 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
7647 # its purpose. This can be used e.g. in UIs which allow to enter the
7648 # expression.
7649 },
7650 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
7651 # `members` can have the following values:
7652 #
7653 # * `allUsers`: A special identifier that represents anyone who is
7654 # on the internet; with or without a Google account.
7655 #
7656 # * `allAuthenticatedUsers`: A special identifier that represents anyone
7657 # who is authenticated with a Google account or a service account.
7658 # Does not include identities that come from external identity providers
7659 # (IdPs) through identity federation.
7660 #
7661 # * `user:{emailid}`: An email address that represents a specific Google
7662 # account. For example, `[email protected]` .
7663 #
7664 #
7665 # * `serviceAccount:{emailid}`: An email address that represents a Google
7666 # service account. For example,
7667 # `[email protected]`.
7668 #
7669 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
7670 # identifier for a
7671 # [Kubernetes service
7672 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
7673 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
7674 #
7675 # * `group:{emailid}`: An email address that represents a Google group.
7676 # For example, `[email protected]`.
7677 #
7678 #
7679 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
7680 # users of that domain. For example, `google.com` or `example.com`.
7681 #
7682 #
7683 #
7684 #
7685 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
7686 # A single identity in a workforce identity pool.
7687 #
7688 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
7689 # All workforce identities in a group.
7690 #
7691 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
7692 # All workforce identities with a specific attribute value.
7693 #
7694 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
7695 # All identities in a workforce identity pool.
7696 #
7697 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
7698 # A single identity in a workload identity pool.
7699 #
7700 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
7701 # A workload identity pool group.
7702 #
7703 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
7704 # All identities in a workload identity pool with a certain attribute.
7705 #
7706 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
7707 # All identities in a workload identity pool.
7708 #
7709 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
7710 # identifier) representing a user that has been recently deleted. For
7711 # example, `[email protected]?uid=123456789012345678901`. If the user is
7712 # recovered, this value reverts to `user:{emailid}` and the recovered user
7713 # retains the role in the binding.
7714 #
7715 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
7716 # unique identifier) representing a service account that has been recently
7717 # deleted. For example,
7718 # `[email protected]?uid=123456789012345678901`.
7719 # If the service account is undeleted, this value reverts to
7720 # `serviceAccount:{emailid}` and the undeleted service account retains the
7721 # role in the binding.
7722 #
7723 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
7724 # identifier) representing a Google group that has been recently
7725 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
7726 # the group is recovered, this value reverts to `group:{emailid}` and the
7727 # recovered group retains the role in the binding.
7728 #
7729 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
7730 # Deleted single identity in a workforce identity pool. For example,
7731 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
7732 &quot;A String&quot;,
7733 ],
7734 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
7735 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
7736 #
7737 # For an overview of the IAM roles and permissions, see the
7738 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
7739 # a list of the available pre-defined roles, see
7740 # [here](https://cloud.google.com/iam/docs/understanding-roles).
7741 },
7742 ],
7743 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
7744 # prevent simultaneous updates of a policy from overwriting each other.
7745 # It is strongly suggested that systems make use of the `etag` in the
7746 # read-modify-write cycle to perform policy updates in order to avoid race
7747 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
7748 # systems are expected to put that etag in the request to `setIamPolicy` to
7749 # ensure that their change will be applied to the same version of the policy.
7750 #
7751 # **Important:** If you use IAM Conditions, you must include the `etag` field
7752 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
7753 # you to overwrite a version `3` policy with a version `1` policy, and all of
7754 # the conditions in the version `3` policy are lost.
7755 &quot;version&quot;: 42, # Specifies the format of the policy.
7756 #
7757 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
7758 # are rejected.
7759 #
7760 # Any operation that affects conditional role bindings must specify version
7761 # `3`. This requirement applies to the following operations:
7762 #
7763 # * Getting a policy that includes a conditional role binding
7764 # * Adding a conditional role binding to a policy
7765 # * Changing a conditional role binding in a policy
7766 # * Removing any role binding, with or without a condition, from a policy
7767 # that includes conditions
7768 #
7769 # **Important:** If you use IAM Conditions, you must include the `etag` field
7770 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
7771 # you to overwrite a version `3` policy with a version `1` policy, and all of
7772 # the conditions in the version `3` policy are lost.
7773 #
7774 # If a policy does not include any conditions, operations on that policy may
7775 # specify any valid version or leave the field unset.
7776 #
7777 # To learn which resources support conditions in their IAM policies, see the
7778 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7779 }</pre>
7780 </div>
7781
7782 <div class="method">
7783 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</code>
7784 <pre>Returns permissions that a caller has on the specified resource.
7785
7786 Args:
7787 project: string, Project ID for this request. (required)
7788 region: string, The name of the region for this request. (required)
7789 resource: string, Name or id of the resource for this request. (required)
7790 body: object, The request body.
7791 The object takes the form of:
7792
7793 {
7794 &quot;permissions&quot;: [ # The set of permissions to check for the &#x27;resource&#x27;. Permissions with
7795 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed.
7796 &quot;A String&quot;,
7797 ],
7798 }
7799
7800 x__xgafv: string, V1 error format.
7801 Allowed values
7802 1 - v1 error format
7803 2 - v2 error format
7804
7805 Returns:
7806 An object of the form:
7807
7808 {
7809 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
7810 # allowed.
7811 &quot;A String&quot;,
7812 ],
7813 }</pre>
7814 </div>
7815
7816 </body></html>