Debian Codegraph @

docs/dyn/compute_beta.regionNetworkPolicies.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="compute_beta.html">Compute Engine API</a> . <a href="compute_beta.regionNetworkPolicies.html">regionNetworkPolicies</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#addAssociation">addAssociation(project, region, networkPolicy, body=None, requestId=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Inserts an association for the specified network policy.</p>
80 <p class="toc_element">
81 <code><a href="#addTrafficClassificationRule">addTrafficClassificationRule(project, region, networkPolicy, body=None, requestId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Inserts a rule into a network policy.</p>
83 <p class="toc_element">
84 <code><a href="#aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, serviceProjectNumber=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Retrieves an aggregated list of network policies.</p>
86 <p class="toc_element">
87 <code><a href="#aggregatedList_next">aggregatedList_next()</a></code></p>
88 <p class="firstline">Retrieves the next page of results.</p>
89 <p class="toc_element">
90 <code><a href="#close">close()</a></code></p>
91 <p class="firstline">Close httplib2 connections.</p>
92 <p class="toc_element">
93 <code><a href="#delete">delete(project, region, networkPolicy, requestId=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Deletes the specified policy.</p>
95 <p class="toc_element">
96 <code><a href="#get">get(project, region, networkPolicy, x__xgafv=None)</a></code></p>
97 <p class="firstline">Returns the specified network policy.</p>
98 <p class="toc_element">
99 <code><a href="#getAssociation">getAssociation(project, region, networkPolicy, name=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Gets an association with the specified name.</p>
101 <p class="toc_element">
102 <code><a href="#getTrafficClassificationRule">getTrafficClassificationRule(project, region, networkPolicy, priority=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Gets a rule of the specified priority.</p>
104 <p class="toc_element">
105 <code><a href="#insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Creates a new policy in the specified project using the data included in</p>
107 <p class="toc_element">
108 <code><a href="#list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p>
109 <p class="firstline">Lists all the policies that have been configured for the specified project</p>
110 <p class="toc_element">
111 <code><a href="#list_next">list_next()</a></code></p>
112 <p class="firstline">Retrieves the next page of results.</p>
113 <p class="toc_element">
114 <code><a href="#patch">patch(project, region, networkPolicy, body=None, requestId=None, x__xgafv=None)</a></code></p>
115 <p class="firstline">Patches the specified policy with the data included in the</p>
116 <p class="toc_element">
117 <code><a href="#patchTrafficClassificationRule">patchTrafficClassificationRule(project, region, networkPolicy, body=None, priority=None, requestId=None, x__xgafv=None)</a></code></p>
118 <p class="firstline">Patches a rule of the specified priority.</p>
119 <p class="toc_element">
120 <code><a href="#removeAssociation">removeAssociation(project, region, networkPolicy, name=None, requestId=None, x__xgafv=None)</a></code></p>
121 <p class="firstline">Removes an association for the specified network policy.</p>
122 <p class="toc_element">
123 <code><a href="#removeTrafficClassificationRule">removeTrafficClassificationRule(project, region, networkPolicy, priority=None, requestId=None, x__xgafv=None)</a></code></p>
124 <p class="firstline">Deletes a rule of the specified priority.</p>
125 <h3>Method Details</h3>
126 <div class="method">
127 <code class="details" id="addAssociation">addAssociation(project, region, networkPolicy, body=None, requestId=None, x__xgafv=None)</code>
128 <pre>Inserts an association for the specified network policy.
129
130 Args:
131 project: string, Project ID for this request. (required)
132 region: string, Name of the region of this request. (required)
133 networkPolicy: string, Name of the network policy resource to update. (required)
134 body: object, The request body.
135 The object takes the form of:
136
137 {
138 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the network policy is attached to.
139 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
140 }
141
142 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
143 that if you must retry your request, the server will know to ignore the
144 request if it has already been completed.
145
146 For example, consider a situation where you make an initial request and
147 the request times out. If you make the request again with the same
148 request ID, the server can check if original operation with the same
149 request ID was received, and if so, will ignore the second request. This
150 prevents clients from accidentally creating duplicate commitments.
151
152 The request ID must be
153 a valid UUID with the exception that zero UUID is not supported
154 (00000000-0000-0000-0000-000000000000).
155 x__xgafv: string, V1 error format.
156 Allowed values
157 1 - v1 error format
158 2 - v2 error format
159
160 Returns:
161 An object of the form:
162
163 { # Represents an Operation resource.
164 #
165 # Google Compute Engine has three Operation resources:
166 #
167 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
168 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
169 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
170 #
171 # You can use an operation resource to manage asynchronous API requests.
172 # For more information, readHandling
173 # API responses.
174 #
175 # Operations can be global, regional or zonal.
176 #
177 # - For global operations, use the `globalOperations`
178 # resource.
179 # - For regional operations, use the
180 # `regionOperations` resource.
181 # - For zonal operations, use
182 # the `zoneOperations` resource.
183 #
184 #
185 #
186 # For more information, read
187 # Global, Regional, and Zonal Resources.
188 #
189 # Note that completed Operation resources have a limited
190 # retention period.
191 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
192 # Not present otherwise.
193 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
194 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
195 # set when the operation is created.
196 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
197 # text format.
198 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
199 # this field will be populated.
200 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
201 # operation.
202 {
203 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
204 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
205 # details. There is a set of defined message types to use for providing
206 # details.The syntax depends on the error code. For example,
207 # QuotaExceededInfo will have details when the error code is
208 # QUOTA_EXCEEDED.
209 {
210 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
211 #
212 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
213 # is not enabled:
214 #
215 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
216 # &quot;domain&quot;: &quot;googleapis.com&quot;
217 # &quot;metadata&quot;: {
218 # &quot;resource&quot;: &quot;projects/123&quot;,
219 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
220 # }
221 # }
222 #
223 # This response indicates that the pubsub.googleapis.com API is not enabled.
224 #
225 # Example of an error that is returned when attempting to create a Spanner
226 # instance in a region that is out of stock:
227 #
228 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
229 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
230 # &quot;metadata&quot;: {
231 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
232 # }
233 # }
234 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
235 # is typically the registered service name of the tool or product that
236 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
237 # generated by some common infrastructure, the error domain must be a
238 # globally unique value that identifies the infrastructure. For Google API
239 # infrastructure, the error domain is &quot;googleapis.com&quot;.
240 &quot;metadatas&quot;: { # Additional structured details about this error.
241 #
242 # Keys must match a regular expression of `a-z+` but should
243 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
244 # length. When identifying the current value of an exceeded limit, the units
245 # should be contained in the key, not the value. For example, rather than
246 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
247 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
248 # instances that can be created in a single (batch) request.
249 &quot;a_key&quot;: &quot;A String&quot;,
250 },
251 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
252 # proximate cause of the error. Error reasons are unique within a particular
253 # domain of errors. This should be at most 63 characters and match a
254 # regular expression of `A-Z+[A-Z0-9]`, which represents
255 # UPPER_SNAKE_CASE.
256 },
257 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
258 #
259 # For example, if a quota check failed with an error indicating the calling
260 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
261 # directly to the right place in the developer console to flip the bit.
262 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
263 { # Describes a URL link.
264 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
265 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
266 },
267 ],
268 },
269 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
270 # which can be attached to an RPC error.
271 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
272 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
273 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
274 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
275 },
276 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
277 &quot;dimensions&quot;: { # The map holding related quota dimensions.
278 &quot;a_key&quot;: &quot;A String&quot;,
279 },
280 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
281 # type or metric.
282 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
283 # or metric.
284 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
285 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
286 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
287 },
288 },
289 ],
290 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
291 # This property is optional.
292 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
293 },
294 ],
295 },
296 &quot;getVersionOperationMetadata&quot;: {
297 &quot;inlineSbomInfo&quot;: {
298 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
299 # appropriate identifiers.
300 &quot;a_key&quot;: &quot;A String&quot;,
301 },
302 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
303 # identifiers.
304 &quot;a_key&quot;: &quot;A String&quot;,
305 },
306 },
307 },
308 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
309 # message that was returned, such as `NOT FOUND`.
310 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
311 # status code that was returned. For example, a `404` means the
312 # resource was not found.
313 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
314 # defined by the server.
315 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
316 # This value is inRFC3339
317 # text format.
318 &quot;instancesBulkInsertOperationMetadata&quot;: {
319 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
320 # Example key: zones/us-central1-a
321 &quot;a_key&quot;: {
322 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
323 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
324 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
325 # error.
326 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
327 # if the flow is rolling forward or rolling back.
328 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
329 },
330 },
331 },
332 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
333 # Operation resources.
334 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
335 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
336 # group of operations results from a `bulkInsert` API request.
337 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
338 # `update`, or `delete`, and so on.
339 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
340 # There is no requirement that this be linear or support any granularity of
341 # operations. This should not be used to guess when the operation will be
342 # complete. This number should monotonically increase as the operation
343 # progresses.
344 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
345 # applicable when performing regional operations.
346 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
347 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
348 # this field will contain information on all underlying zonal actions and
349 # their state.
350 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
351 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
352 # Example key: zones/us-central1-a
353 &quot;a_key&quot;: {
354 &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
355 # populated.
356 # different programming environments, including REST APIs and RPC APIs. It is
357 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
358 # three pieces of data: error code, error message, and error details.
359 #
360 # You can find out more about this error model and how to work with it in the
361 # [API Design Guide](https://cloud.google.com/apis/design/errors).
362 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
363 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
364 # message types for APIs to use.
365 {
366 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
367 },
368 ],
369 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
370 # user-facing error message should be localized and sent in the
371 # google.rpc.Status.details field, or localized by the client.
372 },
373 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
374 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
375 },
376 },
377 },
378 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
379 # This value is inRFC3339
380 # text format.
381 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
382 # following:
383 # `PENDING`, `RUNNING`, or `DONE`.
384 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
385 # operation.
386 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
387 # of the target resource.
388 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
389 # operations related to creating a snapshot, this points to the disk
390 # that the snapshot was created from.
391 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
392 # `[email protected]` or
393 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
394 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
395 # operation, this field will be populated.
396 {
397 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
398 # Engine returns NO_RESULTS_ON_PAGE if there
399 # are no results in the response.
400 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
401 # value format. For example:
402 #
403 # &quot;data&quot;: [
404 # {
405 # &quot;key&quot;: &quot;scope&quot;,
406 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
407 # }
408 {
409 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
410 # returned. For example, for warnings where there are no results in a list
411 # request for a particular zone, this key might be scope and
412 # the key value might be the zone name. Other examples might be a key
413 # indicating a deprecated resource and a suggested replacement, or a
414 # warning about invalid network settings (for example, if an instance
415 # attempts to perform IP forwarding but is not enabled for IP forwarding).
416 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
417 },
418 ],
419 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
420 },
421 ],
422 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
423 # applicable when performing per-zone operations.
424 }</pre>
425 </div>
426
427 <div class="method">
428 <code class="details" id="addTrafficClassificationRule">addTrafficClassificationRule(project, region, networkPolicy, body=None, requestId=None, x__xgafv=None)</code>
429 <pre>Inserts a rule into a network policy.
430
431 Args:
432 project: string, Project ID for this request. (required)
433 region: string, Name of the region of this request. (required)
434 networkPolicy: string, Name of the network policy resource to update. (required)
435 body: object, The request body.
436 The object takes the form of:
437
438 { # Represents a traffic classification rule that describes one or more match
439 # conditions along with the action to be taken when traffic matches this
440 # condition.
441 &quot;action&quot;: { # The Action to perform when the client connection triggers the rule.
442 &quot;dscpMode&quot;: &quot;A String&quot;, # DSCP mode. When set to AUTO, the DSCP value will be picked
443 # automatically based on selected trafficClass. Otherwise,dscpValue needs to be explicitly specified.
444 &quot;dscpValue&quot;: 42, # Custom DSCP value from 0-63 range.
445 &quot;trafficClass&quot;: &quot;A String&quot;, # The traffic class that should be applied to the matching packet.
446 &quot;type&quot;: &quot;A String&quot;, # Always &quot;apply_traffic_classification&quot; for traffic classification rules.
447 },
448 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
449 &quot;disabled&quot;: True or False, # Denotes whether the network policy rule is disabled. When set to true,
450 # the network policy rule is not enforced and traffic behaves as if it did
451 # not exist. If this is unspecified, the network policy rule will be
452 # enabled.
453 &quot;kind&quot;: &quot;compute#networkPolicyTrafficClassificationRule&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for network
454 # policy traffic classification rules
455 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that outgoing traffic is evaluated against.
456 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
457 # Exactly one field must be specified.
458 &quot;destIpRanges&quot;: [ # CIDR IP address range.
459 # Maximum number of destination CIDR IP ranges allowed is 5000.
460 &quot;A String&quot;,
461 ],
462 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
463 {
464 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
465 # required when creating a traffic classification rule. This value can
466 # either be one of the following well known protocol strings
467 # (tcp, udp, icmp,esp, ah, ipip,sctp), or the IP protocol number.
468 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
469 # only applicable for UDP, TCP or SCTP protocol. Each entry must be
470 # either an integer or a range. If not specified, this rule applies to
471 # connections through any port.
472 #
473 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
474 &quot;A String&quot;,
475 ],
476 },
477 ],
478 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
479 # Maximum number of source CIDR IP ranges allowed is 5000.
480 &quot;A String&quot;,
481 ],
482 },
483 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
484 # must be a positive value between 1 and 2147482647.
485 # The priority values from 2147482648 to 2147483647 (1000) are reserved for
486 # system default network policy rules. Rules are evaluated from highest to
487 # lowest priority where 1 is the highest priority and 2147483647 is the
488 # lowest priority.
489 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
490 # and can be updated.
491 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single network policy
492 # rule.
493 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the traffic
494 # classification rule applies to. If targetSecureTag are
495 # specified, then the traffic classification rule applies only to instances
496 # in the VPC network that have one of those EFFECTIVE secure tags, if all
497 # the targetSecureTag are in INEFFECTIVE state, then this rule
498 # will be ignored. targetSecureTag may not be set at the same
499 # time as targetServiceAccounts. If neithertargetServiceAccounts nor targetSecureTag are
500 # specified, the traffic classification rule applies to all instances on
501 # the specified network. Maximum number of target label tags allowed is
502 # 256.
503 {
504 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
505 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
506 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
507 # or its network is deleted.
508 },
509 ],
510 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
511 # applied with this rule.
512 &quot;A String&quot;,
513 ],
514 }
515
516 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
517 that if you must retry your request, the server will know to ignore the
518 request if it has already been completed.
519
520 For example, consider a situation where you make an initial request and
521 the request times out. If you make the request again with the same
522 request ID, the server can check if original operation with the same
523 request ID was received, and if so, will ignore the second request. This
524 prevents clients from accidentally creating duplicate commitments.
525
526 The request ID must be
527 a valid UUID with the exception that zero UUID is not supported
528 (00000000-0000-0000-0000-000000000000).
529 x__xgafv: string, V1 error format.
530 Allowed values
531 1 - v1 error format
532 2 - v2 error format
533
534 Returns:
535 An object of the form:
536
537 { # Represents an Operation resource.
538 #
539 # Google Compute Engine has three Operation resources:
540 #
541 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
542 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
543 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
544 #
545 # You can use an operation resource to manage asynchronous API requests.
546 # For more information, readHandling
547 # API responses.
548 #
549 # Operations can be global, regional or zonal.
550 #
551 # - For global operations, use the `globalOperations`
552 # resource.
553 # - For regional operations, use the
554 # `regionOperations` resource.
555 # - For zonal operations, use
556 # the `zoneOperations` resource.
557 #
558 #
559 #
560 # For more information, read
561 # Global, Regional, and Zonal Resources.
562 #
563 # Note that completed Operation resources have a limited
564 # retention period.
565 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
566 # Not present otherwise.
567 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
568 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
569 # set when the operation is created.
570 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
571 # text format.
572 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
573 # this field will be populated.
574 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
575 # operation.
576 {
577 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
578 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
579 # details. There is a set of defined message types to use for providing
580 # details.The syntax depends on the error code. For example,
581 # QuotaExceededInfo will have details when the error code is
582 # QUOTA_EXCEEDED.
583 {
584 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
585 #
586 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
587 # is not enabled:
588 #
589 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
590 # &quot;domain&quot;: &quot;googleapis.com&quot;
591 # &quot;metadata&quot;: {
592 # &quot;resource&quot;: &quot;projects/123&quot;,
593 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
594 # }
595 # }
596 #
597 # This response indicates that the pubsub.googleapis.com API is not enabled.
598 #
599 # Example of an error that is returned when attempting to create a Spanner
600 # instance in a region that is out of stock:
601 #
602 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
603 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
604 # &quot;metadata&quot;: {
605 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
606 # }
607 # }
608 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
609 # is typically the registered service name of the tool or product that
610 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
611 # generated by some common infrastructure, the error domain must be a
612 # globally unique value that identifies the infrastructure. For Google API
613 # infrastructure, the error domain is &quot;googleapis.com&quot;.
614 &quot;metadatas&quot;: { # Additional structured details about this error.
615 #
616 # Keys must match a regular expression of `a-z+` but should
617 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
618 # length. When identifying the current value of an exceeded limit, the units
619 # should be contained in the key, not the value. For example, rather than
620 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
621 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
622 # instances that can be created in a single (batch) request.
623 &quot;a_key&quot;: &quot;A String&quot;,
624 },
625 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
626 # proximate cause of the error. Error reasons are unique within a particular
627 # domain of errors. This should be at most 63 characters and match a
628 # regular expression of `A-Z+[A-Z0-9]`, which represents
629 # UPPER_SNAKE_CASE.
630 },
631 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
632 #
633 # For example, if a quota check failed with an error indicating the calling
634 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
635 # directly to the right place in the developer console to flip the bit.
636 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
637 { # Describes a URL link.
638 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
639 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
640 },
641 ],
642 },
643 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
644 # which can be attached to an RPC error.
645 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
646 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
647 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
648 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
649 },
650 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
651 &quot;dimensions&quot;: { # The map holding related quota dimensions.
652 &quot;a_key&quot;: &quot;A String&quot;,
653 },
654 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
655 # type or metric.
656 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
657 # or metric.
658 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
659 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
660 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
661 },
662 },
663 ],
664 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
665 # This property is optional.
666 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
667 },
668 ],
669 },
670 &quot;getVersionOperationMetadata&quot;: {
671 &quot;inlineSbomInfo&quot;: {
672 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
673 # appropriate identifiers.
674 &quot;a_key&quot;: &quot;A String&quot;,
675 },
676 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
677 # identifiers.
678 &quot;a_key&quot;: &quot;A String&quot;,
679 },
680 },
681 },
682 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
683 # message that was returned, such as `NOT FOUND`.
684 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
685 # status code that was returned. For example, a `404` means the
686 # resource was not found.
687 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
688 # defined by the server.
689 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
690 # This value is inRFC3339
691 # text format.
692 &quot;instancesBulkInsertOperationMetadata&quot;: {
693 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
694 # Example key: zones/us-central1-a
695 &quot;a_key&quot;: {
696 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
697 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
698 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
699 # error.
700 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
701 # if the flow is rolling forward or rolling back.
702 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
703 },
704 },
705 },
706 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
707 # Operation resources.
708 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
709 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
710 # group of operations results from a `bulkInsert` API request.
711 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
712 # `update`, or `delete`, and so on.
713 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
714 # There is no requirement that this be linear or support any granularity of
715 # operations. This should not be used to guess when the operation will be
716 # complete. This number should monotonically increase as the operation
717 # progresses.
718 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
719 # applicable when performing regional operations.
720 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
721 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
722 # this field will contain information on all underlying zonal actions and
723 # their state.
724 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
725 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
726 # Example key: zones/us-central1-a
727 &quot;a_key&quot;: {
728 &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
729 # populated.
730 # different programming environments, including REST APIs and RPC APIs. It is
731 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
732 # three pieces of data: error code, error message, and error details.
733 #
734 # You can find out more about this error model and how to work with it in the
735 # [API Design Guide](https://cloud.google.com/apis/design/errors).
736 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
737 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
738 # message types for APIs to use.
739 {
740 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
741 },
742 ],
743 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
744 # user-facing error message should be localized and sent in the
745 # google.rpc.Status.details field, or localized by the client.
746 },
747 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
748 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
749 },
750 },
751 },
752 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
753 # This value is inRFC3339
754 # text format.
755 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
756 # following:
757 # `PENDING`, `RUNNING`, or `DONE`.
758 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
759 # operation.
760 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
761 # of the target resource.
762 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
763 # operations related to creating a snapshot, this points to the disk
764 # that the snapshot was created from.
765 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
766 # `[email protected]` or
767 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
768 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
769 # operation, this field will be populated.
770 {
771 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
772 # Engine returns NO_RESULTS_ON_PAGE if there
773 # are no results in the response.
774 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
775 # value format. For example:
776 #
777 # &quot;data&quot;: [
778 # {
779 # &quot;key&quot;: &quot;scope&quot;,
780 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
781 # }
782 {
783 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
784 # returned. For example, for warnings where there are no results in a list
785 # request for a particular zone, this key might be scope and
786 # the key value might be the zone name. Other examples might be a key
787 # indicating a deprecated resource and a suggested replacement, or a
788 # warning about invalid network settings (for example, if an instance
789 # attempts to perform IP forwarding but is not enabled for IP forwarding).
790 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
791 },
792 ],
793 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
794 },
795 ],
796 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
797 # applicable when performing per-zone operations.
798 }</pre>
799 </div>
800
801 <div class="method">
802 <code class="details" id="aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, serviceProjectNumber=None, x__xgafv=None)</code>
803 <pre>Retrieves an aggregated list of network policies.
804
805 To prevent failure, it&#x27;s recommended that you set the
806 `returnPartialSuccess` parameter to `true`.
807
808 Args:
809 project: string, Project ID for this request. (required)
810 filter: string, A filter expression that filters resources listed in the response. Most
811 Compute resources support two types of filter expressions:
812 expressions that support regular expressions and expressions that follow
813 API improvement proposal AIP-160.
814 These two types of filter expressions cannot be mixed in one request.
815
816 If you want to use AIP-160, your expression must specify the field name, an
817 operator, and the value that you want to use for filtering. The value
818 must be a string, a number, or a boolean. The operator
819 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
820
821 For example, if you are filtering Compute Engine instances, you can
822 exclude instances named `example-instance` by specifying
823 `name != example-instance`.
824
825 The `:*` comparison can be used to test whether a key has been defined.
826 For example, to find all objects with `owner` label use:
827 ```
828 labels.owner:*
829 ```
830
831 You can also filter nested fields. For example, you could specify
832 `scheduling.automaticRestart = false` to include instances only
833 if they are not scheduled for automatic restarts. You can use filtering
834 on nested fields to filter based onresource labels.
835
836 To filter on multiple expressions, provide each separate expression within
837 parentheses. For example:
838 ```
839 (scheduling.automaticRestart = true)
840 (cpuPlatform = &quot;Intel Skylake&quot;)
841 ```
842 By default, each expression is an `AND` expression. However, you
843 can include `AND` and `OR` expressions explicitly.
844 For example:
845 ```
846 (cpuPlatform = &quot;Intel Skylake&quot;) OR
847 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
848 (scheduling.automaticRestart = true)
849 ```
850
851 If you want to use a regular expression, use the `eq` (equal) or `ne`
852 (not equal) operator against a single un-parenthesized expression with or
853 without quotes or against multiple parenthesized expressions. Examples:
854
855 `fieldname eq unquoted literal`
856 `fieldname eq &#x27;single quoted literal&#x27;`
857 `fieldname eq &quot;double quoted literal&quot;`
858 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
859
860 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
861 The literal value must match the entire field.
862
863 For example, to filter for instances that do not end with name &quot;instance&quot;,
864 you would use `name ne .*instance`.
865
866 You cannot combine constraints on multiple fields using regular
867 expressions.
868 includeAllScopes: boolean, Indicates whether every visible scope for each scope type (zone, region,
869 global) should be included in the response. For new resource types added
870 after this field, the flag has no effect as new resource types will always
871 include every visible scope for each scope type in response. For resource
872 types which predate this field, if this flag is omitted or false, only
873 scopes of the scope types where the resource type is expected to be found
874 will be included.
875 maxResults: integer, The maximum number of results per page that should be returned.
876 If the number of available results is larger than `maxResults`,
877 Compute Engine returns a `nextPageToken` that can be used to get
878 the next page of results in subsequent list requests. Acceptable values are
879 `0` to `500`, inclusive. (Default: `500`)
880 orderBy: string, Sorts list results by a certain order. By default, results
881 are returned in alphanumerical order based on the resource name.
882
883 You can also sort results in descending order based on the creation
884 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
885 results based on the `creationTimestamp` field in
886 reverse chronological order (newest result first). Use this to sort
887 resources like operations so that the newest operation is returned first.
888
889 Currently, only sorting by `name` or
890 `creationTimestamp desc` is supported.
891 pageToken: string, Specifies a page token to use. Set `pageToken` to the
892 `nextPageToken` returned by a previous list request to get
893 the next page of results.
894 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
895 of failure. The default value is false.
896
897 For example, when partial success behavior is enabled, aggregatedList for a
898 single zone scope either returns all resources in the zone or no resources,
899 with an error code.
900 serviceProjectNumber: string, The Shared VPC service project id or service project number for which
901 aggregated list request is invoked for subnetworks list-usable api.
902 x__xgafv: string, V1 error format.
903 Allowed values
904 1 - v1 error format
905 2 - v2 error format
906
907 Returns:
908 An object of the form:
909
910 {
911 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
912 &quot;items&quot;: { # A list of NetworkPoliciesScopedList resources.
913 &quot;a_key&quot;: { # Name of the scope containing this set of addresses.
914 &quot;networkPolicies&quot;: [ # A list of network policies contained in this scope.
915 { # Represents a Network Policy resource.
916 &quot;associations&quot;: [ # Output only. [Output Only] A list of associations that belong to this network policy.
917 {
918 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the network policy is attached to.
919 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
920 },
921 ],
922 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
923 # text format.
924 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
925 # create the resource.
926 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
927 # defined by the server.
928 &quot;kind&quot;: &quot;compute#networkPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies
929 &quot;name&quot;: &quot;A String&quot;, # Name of the resource.
930 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional network policy resides.
931 # You must specify this field as part of the HTTP request URL. It is
932 # not settable as a field in the request body.
933 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all network policy rule tuples. A network
934 # policy can not exceed a set number of tuples.
935 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
936 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
937 &quot;trafficClassificationRules&quot;: [ # Output only. [Output Only] A list of traffic classification rules that belong to this
938 # policy.
939 { # Represents a traffic classification rule that describes one or more match
940 # conditions along with the action to be taken when traffic matches this
941 # condition.
942 &quot;action&quot;: { # The Action to perform when the client connection triggers the rule.
943 &quot;dscpMode&quot;: &quot;A String&quot;, # DSCP mode. When set to AUTO, the DSCP value will be picked
944 # automatically based on selected trafficClass. Otherwise,dscpValue needs to be explicitly specified.
945 &quot;dscpValue&quot;: 42, # Custom DSCP value from 0-63 range.
946 &quot;trafficClass&quot;: &quot;A String&quot;, # The traffic class that should be applied to the matching packet.
947 &quot;type&quot;: &quot;A String&quot;, # Always &quot;apply_traffic_classification&quot; for traffic classification rules.
948 },
949 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
950 &quot;disabled&quot;: True or False, # Denotes whether the network policy rule is disabled. When set to true,
951 # the network policy rule is not enforced and traffic behaves as if it did
952 # not exist. If this is unspecified, the network policy rule will be
953 # enabled.
954 &quot;kind&quot;: &quot;compute#networkPolicyTrafficClassificationRule&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for network
955 # policy traffic classification rules
956 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that outgoing traffic is evaluated against.
957 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
958 # Exactly one field must be specified.
959 &quot;destIpRanges&quot;: [ # CIDR IP address range.
960 # Maximum number of destination CIDR IP ranges allowed is 5000.
961 &quot;A String&quot;,
962 ],
963 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
964 {
965 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
966 # required when creating a traffic classification rule. This value can
967 # either be one of the following well known protocol strings
968 # (tcp, udp, icmp,esp, ah, ipip,sctp), or the IP protocol number.
969 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
970 # only applicable for UDP, TCP or SCTP protocol. Each entry must be
971 # either an integer or a range. If not specified, this rule applies to
972 # connections through any port.
973 #
974 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
975 &quot;A String&quot;,
976 ],
977 },
978 ],
979 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
980 # Maximum number of source CIDR IP ranges allowed is 5000.
981 &quot;A String&quot;,
982 ],
983 },
984 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
985 # must be a positive value between 1 and 2147482647.
986 # The priority values from 2147482648 to 2147483647 (1000) are reserved for
987 # system default network policy rules. Rules are evaluated from highest to
988 # lowest priority where 1 is the highest priority and 2147483647 is the
989 # lowest priority.
990 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
991 # and can be updated.
992 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single network policy
993 # rule.
994 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the traffic
995 # classification rule applies to. If targetSecureTag are
996 # specified, then the traffic classification rule applies only to instances
997 # in the VPC network that have one of those EFFECTIVE secure tags, if all
998 # the targetSecureTag are in INEFFECTIVE state, then this rule
999 # will be ignored. targetSecureTag may not be set at the same
1000 # time as targetServiceAccounts. If neithertargetServiceAccounts nor targetSecureTag are
1001 # specified, the traffic classification rule applies to all instances on
1002 # the specified network. Maximum number of target label tags allowed is
1003 # 256.
1004 {
1005 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1006 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1007 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1008 # or its network is deleted.
1009 },
1010 ],
1011 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
1012 # applied with this rule.
1013 &quot;A String&quot;,
1014 ],
1015 },
1016 ],
1017 },
1018 ],
1019 &quot;warning&quot;: { # Informational warning which replaces the list of network policies when
1020 # the list is empty.
1021 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1022 # Engine returns NO_RESULTS_ON_PAGE if there
1023 # are no results in the response.
1024 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1025 # value format. For example:
1026 #
1027 # &quot;data&quot;: [
1028 # {
1029 # &quot;key&quot;: &quot;scope&quot;,
1030 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1031 # }
1032 {
1033 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1034 # returned. For example, for warnings where there are no results in a list
1035 # request for a particular zone, this key might be scope and
1036 # the key value might be the zone name. Other examples might be a key
1037 # indicating a deprecated resource and a suggested replacement, or a
1038 # warning about invalid network settings (for example, if an instance
1039 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1040 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1041 },
1042 ],
1043 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1044 },
1045 },
1046 },
1047 &quot;kind&quot;: &quot;compute#networkPolicyAggregatedList&quot;, # Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyAggregatedList for lists of
1048 # network policies.
1049 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
1050 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
1051 # the query parameter pageToken in the next list request.
1052 # Subsequent list requests will have their own nextPageToken to
1053 # continue paging through the results.
1054 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource.
1055 &quot;unreachables&quot;: [ # Output only. [Output Only] Unreachable resources.
1056 &quot;A String&quot;,
1057 ],
1058 &quot;warning&quot;: { # [Output Only] Informational warning message.
1059 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1060 # Engine returns NO_RESULTS_ON_PAGE if there
1061 # are no results in the response.
1062 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1063 # value format. For example:
1064 #
1065 # &quot;data&quot;: [
1066 # {
1067 # &quot;key&quot;: &quot;scope&quot;,
1068 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1069 # }
1070 {
1071 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1072 # returned. For example, for warnings where there are no results in a list
1073 # request for a particular zone, this key might be scope and
1074 # the key value might be the zone name. Other examples might be a key
1075 # indicating a deprecated resource and a suggested replacement, or a
1076 # warning about invalid network settings (for example, if an instance
1077 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1078 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1079 },
1080 ],
1081 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1082 },
1083 }</pre>
1084 </div>
1085
1086 <div class="method">
1087 <code class="details" id="aggregatedList_next">aggregatedList_next()</code>
1088 <pre>Retrieves the next page of results.
1089
1090 Args:
1091 previous_request: The request for the previous page. (required)
1092 previous_response: The response from the request for the previous page. (required)
1093
1094 Returns:
1095 A request object that you can call &#x27;execute()&#x27; on to request the next
1096 page. Returns None if there are no more items in the collection.
1097 </pre>
1098 </div>
1099
1100 <div class="method">
1101 <code class="details" id="close">close()</code>
1102 <pre>Close httplib2 connections.</pre>
1103 </div>
1104
1105 <div class="method">
1106 <code class="details" id="delete">delete(project, region, networkPolicy, requestId=None, x__xgafv=None)</code>
1107 <pre>Deletes the specified policy.
1108
1109 Args:
1110 project: string, Project ID for this request. (required)
1111 region: string, Name of the region of this request. (required)
1112 networkPolicy: string, Name of the network policy resource to delete. (required)
1113 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
1114 that if you must retry your request, the server will know to ignore the
1115 request if it has already been completed.
1116
1117 For example, consider a situation where you make an initial request and
1118 the request times out. If you make the request again with the same
1119 request ID, the server can check if original operation with the same
1120 request ID was received, and if so, will ignore the second request. This
1121 prevents clients from accidentally creating duplicate commitments.
1122
1123 The request ID must be
1124 a valid UUID with the exception that zero UUID is not supported
1125 (00000000-0000-0000-0000-000000000000).
1126 x__xgafv: string, V1 error format.
1127 Allowed values
1128 1 - v1 error format
1129 2 - v2 error format
1130
1131 Returns:
1132 An object of the form:
1133
1134 { # Represents an Operation resource.
1135 #
1136 # Google Compute Engine has three Operation resources:
1137 #
1138 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
1139 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
1140 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
1141 #
1142 # You can use an operation resource to manage asynchronous API requests.
1143 # For more information, readHandling
1144 # API responses.
1145 #
1146 # Operations can be global, regional or zonal.
1147 #
1148 # - For global operations, use the `globalOperations`
1149 # resource.
1150 # - For regional operations, use the
1151 # `regionOperations` resource.
1152 # - For zonal operations, use
1153 # the `zoneOperations` resource.
1154 #
1155 #
1156 #
1157 # For more information, read
1158 # Global, Regional, and Zonal Resources.
1159 #
1160 # Note that completed Operation resources have a limited
1161 # retention period.
1162 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1163 # Not present otherwise.
1164 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1165 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1166 # set when the operation is created.
1167 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1168 # text format.
1169 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1170 # this field will be populated.
1171 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1172 # operation.
1173 {
1174 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1175 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1176 # details. There is a set of defined message types to use for providing
1177 # details.The syntax depends on the error code. For example,
1178 # QuotaExceededInfo will have details when the error code is
1179 # QUOTA_EXCEEDED.
1180 {
1181 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1182 #
1183 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1184 # is not enabled:
1185 #
1186 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1187 # &quot;domain&quot;: &quot;googleapis.com&quot;
1188 # &quot;metadata&quot;: {
1189 # &quot;resource&quot;: &quot;projects/123&quot;,
1190 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1191 # }
1192 # }
1193 #
1194 # This response indicates that the pubsub.googleapis.com API is not enabled.
1195 #
1196 # Example of an error that is returned when attempting to create a Spanner
1197 # instance in a region that is out of stock:
1198 #
1199 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1200 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1201 # &quot;metadata&quot;: {
1202 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1203 # }
1204 # }
1205 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1206 # is typically the registered service name of the tool or product that
1207 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1208 # generated by some common infrastructure, the error domain must be a
1209 # globally unique value that identifies the infrastructure. For Google API
1210 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1211 &quot;metadatas&quot;: { # Additional structured details about this error.
1212 #
1213 # Keys must match a regular expression of `a-z+` but should
1214 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1215 # length. When identifying the current value of an exceeded limit, the units
1216 # should be contained in the key, not the value. For example, rather than
1217 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1218 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1219 # instances that can be created in a single (batch) request.
1220 &quot;a_key&quot;: &quot;A String&quot;,
1221 },
1222 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1223 # proximate cause of the error. Error reasons are unique within a particular
1224 # domain of errors. This should be at most 63 characters and match a
1225 # regular expression of `A-Z+[A-Z0-9]`, which represents
1226 # UPPER_SNAKE_CASE.
1227 },
1228 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1229 #
1230 # For example, if a quota check failed with an error indicating the calling
1231 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1232 # directly to the right place in the developer console to flip the bit.
1233 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1234 { # Describes a URL link.
1235 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1236 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1237 },
1238 ],
1239 },
1240 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1241 # which can be attached to an RPC error.
1242 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1243 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1244 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1245 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1246 },
1247 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1248 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1249 &quot;a_key&quot;: &quot;A String&quot;,
1250 },
1251 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1252 # type or metric.
1253 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1254 # or metric.
1255 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1256 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1257 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1258 },
1259 },
1260 ],
1261 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1262 # This property is optional.
1263 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1264 },
1265 ],
1266 },
1267 &quot;getVersionOperationMetadata&quot;: {
1268 &quot;inlineSbomInfo&quot;: {
1269 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1270 # appropriate identifiers.
1271 &quot;a_key&quot;: &quot;A String&quot;,
1272 },
1273 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1274 # identifiers.
1275 &quot;a_key&quot;: &quot;A String&quot;,
1276 },
1277 },
1278 },
1279 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1280 # message that was returned, such as `NOT FOUND`.
1281 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1282 # status code that was returned. For example, a `404` means the
1283 # resource was not found.
1284 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1285 # defined by the server.
1286 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1287 # This value is inRFC3339
1288 # text format.
1289 &quot;instancesBulkInsertOperationMetadata&quot;: {
1290 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1291 # Example key: zones/us-central1-a
1292 &quot;a_key&quot;: {
1293 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1294 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1295 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1296 # error.
1297 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1298 # if the flow is rolling forward or rolling back.
1299 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1300 },
1301 },
1302 },
1303 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1304 # Operation resources.
1305 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1306 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1307 # group of operations results from a `bulkInsert` API request.
1308 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1309 # `update`, or `delete`, and so on.
1310 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1311 # There is no requirement that this be linear or support any granularity of
1312 # operations. This should not be used to guess when the operation will be
1313 # complete. This number should monotonically increase as the operation
1314 # progresses.
1315 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1316 # applicable when performing regional operations.
1317 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1318 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1319 # this field will contain information on all underlying zonal actions and
1320 # their state.
1321 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1322 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1323 # Example key: zones/us-central1-a
1324 &quot;a_key&quot;: {
1325 &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
1326 # populated.
1327 # different programming environments, including REST APIs and RPC APIs. It is
1328 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1329 # three pieces of data: error code, error message, and error details.
1330 #
1331 # You can find out more about this error model and how to work with it in the
1332 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1333 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1334 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1335 # message types for APIs to use.
1336 {
1337 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1338 },
1339 ],
1340 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1341 # user-facing error message should be localized and sent in the
1342 # google.rpc.Status.details field, or localized by the client.
1343 },
1344 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1345 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1346 },
1347 },
1348 },
1349 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1350 # This value is inRFC3339
1351 # text format.
1352 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1353 # following:
1354 # `PENDING`, `RUNNING`, or `DONE`.
1355 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1356 # operation.
1357 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1358 # of the target resource.
1359 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1360 # operations related to creating a snapshot, this points to the disk
1361 # that the snapshot was created from.
1362 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1363 # `[email protected]` or
1364 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1365 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1366 # operation, this field will be populated.
1367 {
1368 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1369 # Engine returns NO_RESULTS_ON_PAGE if there
1370 # are no results in the response.
1371 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1372 # value format. For example:
1373 #
1374 # &quot;data&quot;: [
1375 # {
1376 # &quot;key&quot;: &quot;scope&quot;,
1377 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1378 # }
1379 {
1380 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1381 # returned. For example, for warnings where there are no results in a list
1382 # request for a particular zone, this key might be scope and
1383 # the key value might be the zone name. Other examples might be a key
1384 # indicating a deprecated resource and a suggested replacement, or a
1385 # warning about invalid network settings (for example, if an instance
1386 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1387 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1388 },
1389 ],
1390 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1391 },
1392 ],
1393 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1394 # applicable when performing per-zone operations.
1395 }</pre>
1396 </div>
1397
1398 <div class="method">
1399 <code class="details" id="get">get(project, region, networkPolicy, x__xgafv=None)</code>
1400 <pre>Returns the specified network policy.
1401
1402 Args:
1403 project: string, Project ID for this request. (required)
1404 region: string, Name of the region of this request. (required)
1405 networkPolicy: string, Name of the network policy resource to return. (required)
1406 x__xgafv: string, V1 error format.
1407 Allowed values
1408 1 - v1 error format
1409 2 - v2 error format
1410
1411 Returns:
1412 An object of the form:
1413
1414 { # Represents a Network Policy resource.
1415 &quot;associations&quot;: [ # Output only. [Output Only] A list of associations that belong to this network policy.
1416 {
1417 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the network policy is attached to.
1418 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
1419 },
1420 ],
1421 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
1422 # text format.
1423 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
1424 # create the resource.
1425 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
1426 # defined by the server.
1427 &quot;kind&quot;: &quot;compute#networkPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies
1428 &quot;name&quot;: &quot;A String&quot;, # Name of the resource.
1429 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional network policy resides.
1430 # You must specify this field as part of the HTTP request URL. It is
1431 # not settable as a field in the request body.
1432 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all network policy rule tuples. A network
1433 # policy can not exceed a set number of tuples.
1434 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
1435 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
1436 &quot;trafficClassificationRules&quot;: [ # Output only. [Output Only] A list of traffic classification rules that belong to this
1437 # policy.
1438 { # Represents a traffic classification rule that describes one or more match
1439 # conditions along with the action to be taken when traffic matches this
1440 # condition.
1441 &quot;action&quot;: { # The Action to perform when the client connection triggers the rule.
1442 &quot;dscpMode&quot;: &quot;A String&quot;, # DSCP mode. When set to AUTO, the DSCP value will be picked
1443 # automatically based on selected trafficClass. Otherwise,dscpValue needs to be explicitly specified.
1444 &quot;dscpValue&quot;: 42, # Custom DSCP value from 0-63 range.
1445 &quot;trafficClass&quot;: &quot;A String&quot;, # The traffic class that should be applied to the matching packet.
1446 &quot;type&quot;: &quot;A String&quot;, # Always &quot;apply_traffic_classification&quot; for traffic classification rules.
1447 },
1448 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
1449 &quot;disabled&quot;: True or False, # Denotes whether the network policy rule is disabled. When set to true,
1450 # the network policy rule is not enforced and traffic behaves as if it did
1451 # not exist. If this is unspecified, the network policy rule will be
1452 # enabled.
1453 &quot;kind&quot;: &quot;compute#networkPolicyTrafficClassificationRule&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for network
1454 # policy traffic classification rules
1455 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that outgoing traffic is evaluated against.
1456 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
1457 # Exactly one field must be specified.
1458 &quot;destIpRanges&quot;: [ # CIDR IP address range.
1459 # Maximum number of destination CIDR IP ranges allowed is 5000.
1460 &quot;A String&quot;,
1461 ],
1462 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
1463 {
1464 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
1465 # required when creating a traffic classification rule. This value can
1466 # either be one of the following well known protocol strings
1467 # (tcp, udp, icmp,esp, ah, ipip,sctp), or the IP protocol number.
1468 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
1469 # only applicable for UDP, TCP or SCTP protocol. Each entry must be
1470 # either an integer or a range. If not specified, this rule applies to
1471 # connections through any port.
1472 #
1473 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
1474 &quot;A String&quot;,
1475 ],
1476 },
1477 ],
1478 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
1479 # Maximum number of source CIDR IP ranges allowed is 5000.
1480 &quot;A String&quot;,
1481 ],
1482 },
1483 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
1484 # must be a positive value between 1 and 2147482647.
1485 # The priority values from 2147482648 to 2147483647 (1000) are reserved for
1486 # system default network policy rules. Rules are evaluated from highest to
1487 # lowest priority where 1 is the highest priority and 2147483647 is the
1488 # lowest priority.
1489 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
1490 # and can be updated.
1491 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single network policy
1492 # rule.
1493 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the traffic
1494 # classification rule applies to. If targetSecureTag are
1495 # specified, then the traffic classification rule applies only to instances
1496 # in the VPC network that have one of those EFFECTIVE secure tags, if all
1497 # the targetSecureTag are in INEFFECTIVE state, then this rule
1498 # will be ignored. targetSecureTag may not be set at the same
1499 # time as targetServiceAccounts. If neithertargetServiceAccounts nor targetSecureTag are
1500 # specified, the traffic classification rule applies to all instances on
1501 # the specified network. Maximum number of target label tags allowed is
1502 # 256.
1503 {
1504 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1505 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1506 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1507 # or its network is deleted.
1508 },
1509 ],
1510 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
1511 # applied with this rule.
1512 &quot;A String&quot;,
1513 ],
1514 },
1515 ],
1516 }</pre>
1517 </div>
1518
1519 <div class="method">
1520 <code class="details" id="getAssociation">getAssociation(project, region, networkPolicy, name=None, x__xgafv=None)</code>
1521 <pre>Gets an association with the specified name.
1522
1523 Args:
1524 project: string, Project ID for this request. (required)
1525 region: string, Name of the region of this request. (required)
1526 networkPolicy: string, Name of the network policy to which the queried association belongs. (required)
1527 name: string, The name of the association to get from the network policy.
1528 x__xgafv: string, V1 error format.
1529 Allowed values
1530 1 - v1 error format
1531 2 - v2 error format
1532
1533 Returns:
1534 An object of the form:
1535
1536 {
1537 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the network policy is attached to.
1538 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
1539 }</pre>
1540 </div>
1541
1542 <div class="method">
1543 <code class="details" id="getTrafficClassificationRule">getTrafficClassificationRule(project, region, networkPolicy, priority=None, x__xgafv=None)</code>
1544 <pre>Gets a rule of the specified priority.
1545
1546 Args:
1547 project: string, Project ID for this request. (required)
1548 region: string, Name of the region of this request. (required)
1549 networkPolicy: string, Name of the network policy to which the queried rule belongs. (required)
1550 priority: integer, The priority of the rule to get from the network policy.
1551 x__xgafv: string, V1 error format.
1552 Allowed values
1553 1 - v1 error format
1554 2 - v2 error format
1555
1556 Returns:
1557 An object of the form:
1558
1559 { # Represents a traffic classification rule that describes one or more match
1560 # conditions along with the action to be taken when traffic matches this
1561 # condition.
1562 &quot;action&quot;: { # The Action to perform when the client connection triggers the rule.
1563 &quot;dscpMode&quot;: &quot;A String&quot;, # DSCP mode. When set to AUTO, the DSCP value will be picked
1564 # automatically based on selected trafficClass. Otherwise,dscpValue needs to be explicitly specified.
1565 &quot;dscpValue&quot;: 42, # Custom DSCP value from 0-63 range.
1566 &quot;trafficClass&quot;: &quot;A String&quot;, # The traffic class that should be applied to the matching packet.
1567 &quot;type&quot;: &quot;A String&quot;, # Always &quot;apply_traffic_classification&quot; for traffic classification rules.
1568 },
1569 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
1570 &quot;disabled&quot;: True or False, # Denotes whether the network policy rule is disabled. When set to true,
1571 # the network policy rule is not enforced and traffic behaves as if it did
1572 # not exist. If this is unspecified, the network policy rule will be
1573 # enabled.
1574 &quot;kind&quot;: &quot;compute#networkPolicyTrafficClassificationRule&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for network
1575 # policy traffic classification rules
1576 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that outgoing traffic is evaluated against.
1577 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
1578 # Exactly one field must be specified.
1579 &quot;destIpRanges&quot;: [ # CIDR IP address range.
1580 # Maximum number of destination CIDR IP ranges allowed is 5000.
1581 &quot;A String&quot;,
1582 ],
1583 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
1584 {
1585 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
1586 # required when creating a traffic classification rule. This value can
1587 # either be one of the following well known protocol strings
1588 # (tcp, udp, icmp,esp, ah, ipip,sctp), or the IP protocol number.
1589 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
1590 # only applicable for UDP, TCP or SCTP protocol. Each entry must be
1591 # either an integer or a range. If not specified, this rule applies to
1592 # connections through any port.
1593 #
1594 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
1595 &quot;A String&quot;,
1596 ],
1597 },
1598 ],
1599 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
1600 # Maximum number of source CIDR IP ranges allowed is 5000.
1601 &quot;A String&quot;,
1602 ],
1603 },
1604 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
1605 # must be a positive value between 1 and 2147482647.
1606 # The priority values from 2147482648 to 2147483647 (1000) are reserved for
1607 # system default network policy rules. Rules are evaluated from highest to
1608 # lowest priority where 1 is the highest priority and 2147483647 is the
1609 # lowest priority.
1610 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
1611 # and can be updated.
1612 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single network policy
1613 # rule.
1614 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the traffic
1615 # classification rule applies to. If targetSecureTag are
1616 # specified, then the traffic classification rule applies only to instances
1617 # in the VPC network that have one of those EFFECTIVE secure tags, if all
1618 # the targetSecureTag are in INEFFECTIVE state, then this rule
1619 # will be ignored. targetSecureTag may not be set at the same
1620 # time as targetServiceAccounts. If neithertargetServiceAccounts nor targetSecureTag are
1621 # specified, the traffic classification rule applies to all instances on
1622 # the specified network. Maximum number of target label tags allowed is
1623 # 256.
1624 {
1625 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1626 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1627 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1628 # or its network is deleted.
1629 },
1630 ],
1631 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
1632 # applied with this rule.
1633 &quot;A String&quot;,
1634 ],
1635 }</pre>
1636 </div>
1637
1638 <div class="method">
1639 <code class="details" id="insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</code>
1640 <pre>Creates a new policy in the specified project using the data included in
1641 the request.
1642
1643 Args:
1644 project: string, Project ID for this request. (required)
1645 region: string, Name of the region of this request. (required)
1646 body: object, The request body.
1647 The object takes the form of:
1648
1649 { # Represents a Network Policy resource.
1650 &quot;associations&quot;: [ # Output only. [Output Only] A list of associations that belong to this network policy.
1651 {
1652 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the network policy is attached to.
1653 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
1654 },
1655 ],
1656 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
1657 # text format.
1658 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
1659 # create the resource.
1660 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
1661 # defined by the server.
1662 &quot;kind&quot;: &quot;compute#networkPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies
1663 &quot;name&quot;: &quot;A String&quot;, # Name of the resource.
1664 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional network policy resides.
1665 # You must specify this field as part of the HTTP request URL. It is
1666 # not settable as a field in the request body.
1667 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all network policy rule tuples. A network
1668 # policy can not exceed a set number of tuples.
1669 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
1670 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
1671 &quot;trafficClassificationRules&quot;: [ # Output only. [Output Only] A list of traffic classification rules that belong to this
1672 # policy.
1673 { # Represents a traffic classification rule that describes one or more match
1674 # conditions along with the action to be taken when traffic matches this
1675 # condition.
1676 &quot;action&quot;: { # The Action to perform when the client connection triggers the rule.
1677 &quot;dscpMode&quot;: &quot;A String&quot;, # DSCP mode. When set to AUTO, the DSCP value will be picked
1678 # automatically based on selected trafficClass. Otherwise,dscpValue needs to be explicitly specified.
1679 &quot;dscpValue&quot;: 42, # Custom DSCP value from 0-63 range.
1680 &quot;trafficClass&quot;: &quot;A String&quot;, # The traffic class that should be applied to the matching packet.
1681 &quot;type&quot;: &quot;A String&quot;, # Always &quot;apply_traffic_classification&quot; for traffic classification rules.
1682 },
1683 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
1684 &quot;disabled&quot;: True or False, # Denotes whether the network policy rule is disabled. When set to true,
1685 # the network policy rule is not enforced and traffic behaves as if it did
1686 # not exist. If this is unspecified, the network policy rule will be
1687 # enabled.
1688 &quot;kind&quot;: &quot;compute#networkPolicyTrafficClassificationRule&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for network
1689 # policy traffic classification rules
1690 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that outgoing traffic is evaluated against.
1691 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
1692 # Exactly one field must be specified.
1693 &quot;destIpRanges&quot;: [ # CIDR IP address range.
1694 # Maximum number of destination CIDR IP ranges allowed is 5000.
1695 &quot;A String&quot;,
1696 ],
1697 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
1698 {
1699 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
1700 # required when creating a traffic classification rule. This value can
1701 # either be one of the following well known protocol strings
1702 # (tcp, udp, icmp,esp, ah, ipip,sctp), or the IP protocol number.
1703 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
1704 # only applicable for UDP, TCP or SCTP protocol. Each entry must be
1705 # either an integer or a range. If not specified, this rule applies to
1706 # connections through any port.
1707 #
1708 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
1709 &quot;A String&quot;,
1710 ],
1711 },
1712 ],
1713 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
1714 # Maximum number of source CIDR IP ranges allowed is 5000.
1715 &quot;A String&quot;,
1716 ],
1717 },
1718 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
1719 # must be a positive value between 1 and 2147482647.
1720 # The priority values from 2147482648 to 2147483647 (1000) are reserved for
1721 # system default network policy rules. Rules are evaluated from highest to
1722 # lowest priority where 1 is the highest priority and 2147483647 is the
1723 # lowest priority.
1724 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
1725 # and can be updated.
1726 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single network policy
1727 # rule.
1728 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the traffic
1729 # classification rule applies to. If targetSecureTag are
1730 # specified, then the traffic classification rule applies only to instances
1731 # in the VPC network that have one of those EFFECTIVE secure tags, if all
1732 # the targetSecureTag are in INEFFECTIVE state, then this rule
1733 # will be ignored. targetSecureTag may not be set at the same
1734 # time as targetServiceAccounts. If neithertargetServiceAccounts nor targetSecureTag are
1735 # specified, the traffic classification rule applies to all instances on
1736 # the specified network. Maximum number of target label tags allowed is
1737 # 256.
1738 {
1739 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
1740 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
1741 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
1742 # or its network is deleted.
1743 },
1744 ],
1745 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
1746 # applied with this rule.
1747 &quot;A String&quot;,
1748 ],
1749 },
1750 ],
1751 }
1752
1753 requestId: string, An optional request ID to identify requests. Specify a unique request ID
1754 so that if you must retry your request, the server will know to ignore the
1755 request if it has already been completed.
1756
1757 For example, consider a situation where you make an initial request and
1758 the request times out. If you make the request again with the same
1759 request ID, the server can check if original operation with the same
1760 request ID was received, and if so, will ignore the second request. This
1761 prevents clients from accidentally creating duplicate commitments.
1762
1763 The request ID must be
1764 a valid UUID with the exception that zero UUID is not supported
1765 (00000000-0000-0000-0000-000000000000).
1766 x__xgafv: string, V1 error format.
1767 Allowed values
1768 1 - v1 error format
1769 2 - v2 error format
1770
1771 Returns:
1772 An object of the form:
1773
1774 { # Represents an Operation resource.
1775 #
1776 # Google Compute Engine has three Operation resources:
1777 #
1778 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
1779 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
1780 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
1781 #
1782 # You can use an operation resource to manage asynchronous API requests.
1783 # For more information, readHandling
1784 # API responses.
1785 #
1786 # Operations can be global, regional or zonal.
1787 #
1788 # - For global operations, use the `globalOperations`
1789 # resource.
1790 # - For regional operations, use the
1791 # `regionOperations` resource.
1792 # - For zonal operations, use
1793 # the `zoneOperations` resource.
1794 #
1795 #
1796 #
1797 # For more information, read
1798 # Global, Regional, and Zonal Resources.
1799 #
1800 # Note that completed Operation resources have a limited
1801 # retention period.
1802 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1803 # Not present otherwise.
1804 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1805 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1806 # set when the operation is created.
1807 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1808 # text format.
1809 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1810 # this field will be populated.
1811 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1812 # operation.
1813 {
1814 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1815 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1816 # details. There is a set of defined message types to use for providing
1817 # details.The syntax depends on the error code. For example,
1818 # QuotaExceededInfo will have details when the error code is
1819 # QUOTA_EXCEEDED.
1820 {
1821 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1822 #
1823 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1824 # is not enabled:
1825 #
1826 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1827 # &quot;domain&quot;: &quot;googleapis.com&quot;
1828 # &quot;metadata&quot;: {
1829 # &quot;resource&quot;: &quot;projects/123&quot;,
1830 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1831 # }
1832 # }
1833 #
1834 # This response indicates that the pubsub.googleapis.com API is not enabled.
1835 #
1836 # Example of an error that is returned when attempting to create a Spanner
1837 # instance in a region that is out of stock:
1838 #
1839 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1840 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1841 # &quot;metadata&quot;: {
1842 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1843 # }
1844 # }
1845 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1846 # is typically the registered service name of the tool or product that
1847 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1848 # generated by some common infrastructure, the error domain must be a
1849 # globally unique value that identifies the infrastructure. For Google API
1850 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1851 &quot;metadatas&quot;: { # Additional structured details about this error.
1852 #
1853 # Keys must match a regular expression of `a-z+` but should
1854 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1855 # length. When identifying the current value of an exceeded limit, the units
1856 # should be contained in the key, not the value. For example, rather than
1857 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1858 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1859 # instances that can be created in a single (batch) request.
1860 &quot;a_key&quot;: &quot;A String&quot;,
1861 },
1862 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1863 # proximate cause of the error. Error reasons are unique within a particular
1864 # domain of errors. This should be at most 63 characters and match a
1865 # regular expression of `A-Z+[A-Z0-9]`, which represents
1866 # UPPER_SNAKE_CASE.
1867 },
1868 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1869 #
1870 # For example, if a quota check failed with an error indicating the calling
1871 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1872 # directly to the right place in the developer console to flip the bit.
1873 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1874 { # Describes a URL link.
1875 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1876 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1877 },
1878 ],
1879 },
1880 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1881 # which can be attached to an RPC error.
1882 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1883 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1884 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1885 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1886 },
1887 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1888 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1889 &quot;a_key&quot;: &quot;A String&quot;,
1890 },
1891 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1892 # type or metric.
1893 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1894 # or metric.
1895 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1896 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1897 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1898 },
1899 },
1900 ],
1901 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1902 # This property is optional.
1903 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1904 },
1905 ],
1906 },
1907 &quot;getVersionOperationMetadata&quot;: {
1908 &quot;inlineSbomInfo&quot;: {
1909 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1910 # appropriate identifiers.
1911 &quot;a_key&quot;: &quot;A String&quot;,
1912 },
1913 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1914 # identifiers.
1915 &quot;a_key&quot;: &quot;A String&quot;,
1916 },
1917 },
1918 },
1919 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1920 # message that was returned, such as `NOT FOUND`.
1921 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1922 # status code that was returned. For example, a `404` means the
1923 # resource was not found.
1924 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1925 # defined by the server.
1926 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1927 # This value is inRFC3339
1928 # text format.
1929 &quot;instancesBulkInsertOperationMetadata&quot;: {
1930 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1931 # Example key: zones/us-central1-a
1932 &quot;a_key&quot;: {
1933 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1934 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1935 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1936 # error.
1937 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1938 # if the flow is rolling forward or rolling back.
1939 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1940 },
1941 },
1942 },
1943 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1944 # Operation resources.
1945 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1946 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1947 # group of operations results from a `bulkInsert` API request.
1948 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1949 # `update`, or `delete`, and so on.
1950 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1951 # There is no requirement that this be linear or support any granularity of
1952 # operations. This should not be used to guess when the operation will be
1953 # complete. This number should monotonically increase as the operation
1954 # progresses.
1955 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1956 # applicable when performing regional operations.
1957 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1958 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1959 # this field will contain information on all underlying zonal actions and
1960 # their state.
1961 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1962 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1963 # Example key: zones/us-central1-a
1964 &quot;a_key&quot;: {
1965 &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
1966 # populated.
1967 # different programming environments, including REST APIs and RPC APIs. It is
1968 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1969 # three pieces of data: error code, error message, and error details.
1970 #
1971 # You can find out more about this error model and how to work with it in the
1972 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1973 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1974 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1975 # message types for APIs to use.
1976 {
1977 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1978 },
1979 ],
1980 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1981 # user-facing error message should be localized and sent in the
1982 # google.rpc.Status.details field, or localized by the client.
1983 },
1984 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1985 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1986 },
1987 },
1988 },
1989 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1990 # This value is inRFC3339
1991 # text format.
1992 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1993 # following:
1994 # `PENDING`, `RUNNING`, or `DONE`.
1995 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1996 # operation.
1997 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1998 # of the target resource.
1999 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
2000 # operations related to creating a snapshot, this points to the disk
2001 # that the snapshot was created from.
2002 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
2003 # `[email protected]` or
2004 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
2005 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
2006 # operation, this field will be populated.
2007 {
2008 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
2009 # Engine returns NO_RESULTS_ON_PAGE if there
2010 # are no results in the response.
2011 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
2012 # value format. For example:
2013 #
2014 # &quot;data&quot;: [
2015 # {
2016 # &quot;key&quot;: &quot;scope&quot;,
2017 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
2018 # }
2019 {
2020 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
2021 # returned. For example, for warnings where there are no results in a list
2022 # request for a particular zone, this key might be scope and
2023 # the key value might be the zone name. Other examples might be a key
2024 # indicating a deprecated resource and a suggested replacement, or a
2025 # warning about invalid network settings (for example, if an instance
2026 # attempts to perform IP forwarding but is not enabled for IP forwarding).
2027 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
2028 },
2029 ],
2030 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
2031 },
2032 ],
2033 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
2034 # applicable when performing per-zone operations.
2035 }</pre>
2036 </div>
2037
2038 <div class="method">
2039 <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
2040 <pre>Lists all the policies that have been configured for the specified project
2041 in the given region.
2042
2043 Args:
2044 project: string, Project ID for this request. (required)
2045 region: string, Name of the region of this request. (required)
2046 filter: string, A filter expression that filters resources listed in the response. Most
2047 Compute resources support two types of filter expressions:
2048 expressions that support regular expressions and expressions that follow
2049 API improvement proposal AIP-160.
2050 These two types of filter expressions cannot be mixed in one request.
2051
2052 If you want to use AIP-160, your expression must specify the field name, an
2053 operator, and the value that you want to use for filtering. The value
2054 must be a string, a number, or a boolean. The operator
2055 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
2056
2057 For example, if you are filtering Compute Engine instances, you can
2058 exclude instances named `example-instance` by specifying
2059 `name != example-instance`.
2060
2061 The `:*` comparison can be used to test whether a key has been defined.
2062 For example, to find all objects with `owner` label use:
2063 ```
2064 labels.owner:*
2065 ```
2066
2067 You can also filter nested fields. For example, you could specify
2068 `scheduling.automaticRestart = false` to include instances only
2069 if they are not scheduled for automatic restarts. You can use filtering
2070 on nested fields to filter based onresource labels.
2071
2072 To filter on multiple expressions, provide each separate expression within
2073 parentheses. For example:
2074 ```
2075 (scheduling.automaticRestart = true)
2076 (cpuPlatform = &quot;Intel Skylake&quot;)
2077 ```
2078 By default, each expression is an `AND` expression. However, you
2079 can include `AND` and `OR` expressions explicitly.
2080 For example:
2081 ```
2082 (cpuPlatform = &quot;Intel Skylake&quot;) OR
2083 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
2084 (scheduling.automaticRestart = true)
2085 ```
2086
2087 If you want to use a regular expression, use the `eq` (equal) or `ne`
2088 (not equal) operator against a single un-parenthesized expression with or
2089 without quotes or against multiple parenthesized expressions. Examples:
2090
2091 `fieldname eq unquoted literal`
2092 `fieldname eq &#x27;single quoted literal&#x27;`
2093 `fieldname eq &quot;double quoted literal&quot;`
2094 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
2095
2096 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
2097 The literal value must match the entire field.
2098
2099 For example, to filter for instances that do not end with name &quot;instance&quot;,
2100 you would use `name ne .*instance`.
2101
2102 You cannot combine constraints on multiple fields using regular
2103 expressions.
2104 maxResults: integer, The maximum number of results per page that should be returned.
2105 If the number of available results is larger than `maxResults`,
2106 Compute Engine returns a `nextPageToken` that can be used to get
2107 the next page of results in subsequent list requests. Acceptable values are
2108 `0` to `500`, inclusive. (Default: `500`)
2109 orderBy: string, Sorts list results by a certain order. By default, results
2110 are returned in alphanumerical order based on the resource name.
2111
2112 You can also sort results in descending order based on the creation
2113 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
2114 results based on the `creationTimestamp` field in
2115 reverse chronological order (newest result first). Use this to sort
2116 resources like operations so that the newest operation is returned first.
2117
2118 Currently, only sorting by `name` or
2119 `creationTimestamp desc` is supported.
2120 pageToken: string, Specifies a page token to use. Set `pageToken` to the
2121 `nextPageToken` returned by a previous list request to get
2122 the next page of results.
2123 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
2124 of failure. The default value is false.
2125
2126 For example, when partial success behavior is enabled, aggregatedList for a
2127 single zone scope either returns all resources in the zone or no resources,
2128 with an error code.
2129 x__xgafv: string, V1 error format.
2130 Allowed values
2131 1 - v1 error format
2132 2 - v2 error format
2133
2134 Returns:
2135 An object of the form:
2136
2137 {
2138 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
2139 &quot;items&quot;: [ # A list of NetworkPolicy resources.
2140 { # Represents a Network Policy resource.
2141 &quot;associations&quot;: [ # Output only. [Output Only] A list of associations that belong to this network policy.
2142 {
2143 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the network policy is attached to.
2144 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
2145 },
2146 ],
2147 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
2148 # text format.
2149 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
2150 # create the resource.
2151 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
2152 # defined by the server.
2153 &quot;kind&quot;: &quot;compute#networkPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies
2154 &quot;name&quot;: &quot;A String&quot;, # Name of the resource.
2155 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional network policy resides.
2156 # You must specify this field as part of the HTTP request URL. It is
2157 # not settable as a field in the request body.
2158 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all network policy rule tuples. A network
2159 # policy can not exceed a set number of tuples.
2160 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
2161 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
2162 &quot;trafficClassificationRules&quot;: [ # Output only. [Output Only] A list of traffic classification rules that belong to this
2163 # policy.
2164 { # Represents a traffic classification rule that describes one or more match
2165 # conditions along with the action to be taken when traffic matches this
2166 # condition.
2167 &quot;action&quot;: { # The Action to perform when the client connection triggers the rule.
2168 &quot;dscpMode&quot;: &quot;A String&quot;, # DSCP mode. When set to AUTO, the DSCP value will be picked
2169 # automatically based on selected trafficClass. Otherwise,dscpValue needs to be explicitly specified.
2170 &quot;dscpValue&quot;: 42, # Custom DSCP value from 0-63 range.
2171 &quot;trafficClass&quot;: &quot;A String&quot;, # The traffic class that should be applied to the matching packet.
2172 &quot;type&quot;: &quot;A String&quot;, # Always &quot;apply_traffic_classification&quot; for traffic classification rules.
2173 },
2174 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
2175 &quot;disabled&quot;: True or False, # Denotes whether the network policy rule is disabled. When set to true,
2176 # the network policy rule is not enforced and traffic behaves as if it did
2177 # not exist. If this is unspecified, the network policy rule will be
2178 # enabled.
2179 &quot;kind&quot;: &quot;compute#networkPolicyTrafficClassificationRule&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for network
2180 # policy traffic classification rules
2181 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that outgoing traffic is evaluated against.
2182 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
2183 # Exactly one field must be specified.
2184 &quot;destIpRanges&quot;: [ # CIDR IP address range.
2185 # Maximum number of destination CIDR IP ranges allowed is 5000.
2186 &quot;A String&quot;,
2187 ],
2188 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
2189 {
2190 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
2191 # required when creating a traffic classification rule. This value can
2192 # either be one of the following well known protocol strings
2193 # (tcp, udp, icmp,esp, ah, ipip,sctp), or the IP protocol number.
2194 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
2195 # only applicable for UDP, TCP or SCTP protocol. Each entry must be
2196 # either an integer or a range. If not specified, this rule applies to
2197 # connections through any port.
2198 #
2199 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
2200 &quot;A String&quot;,
2201 ],
2202 },
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 },
2209 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
2210 # must be a positive value between 1 and 2147482647.
2211 # The priority values from 2147482648 to 2147483647 (1000) are reserved for
2212 # system default network policy rules. Rules are evaluated from highest to
2213 # lowest priority where 1 is the highest priority and 2147483647 is the
2214 # lowest priority.
2215 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
2216 # and can be updated.
2217 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single network policy
2218 # rule.
2219 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the traffic
2220 # classification rule applies to. If targetSecureTag are
2221 # specified, then the traffic classification rule applies only to instances
2222 # in the VPC network that have one of those EFFECTIVE secure tags, if all
2223 # the targetSecureTag are in INEFFECTIVE state, then this rule
2224 # will be ignored. targetSecureTag may not be set at the same
2225 # time as targetServiceAccounts. If neithertargetServiceAccounts nor targetSecureTag are
2226 # specified, the traffic classification rule applies to all instances on
2227 # the specified network. Maximum number of target label tags allowed is
2228 # 256.
2229 {
2230 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2231 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2232 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2233 # or its network is deleted.
2234 },
2235 ],
2236 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
2237 # applied with this rule.
2238 &quot;A String&quot;,
2239 ],
2240 },
2241 ],
2242 },
2243 ],
2244 &quot;kind&quot;: &quot;compute#networkPolicyList&quot;, # Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of network policies.
2245 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
2246 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
2247 # the query parameter pageToken in the next list request.
2248 # Subsequent list requests will have their own nextPageToken to
2249 # continue paging through the results.
2250 &quot;warning&quot;: { # [Output Only] Informational warning message.
2251 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
2252 # Engine returns NO_RESULTS_ON_PAGE if there
2253 # are no results in the response.
2254 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
2255 # value format. For example:
2256 #
2257 # &quot;data&quot;: [
2258 # {
2259 # &quot;key&quot;: &quot;scope&quot;,
2260 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
2261 # }
2262 {
2263 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
2264 # returned. For example, for warnings where there are no results in a list
2265 # request for a particular zone, this key might be scope and
2266 # the key value might be the zone name. Other examples might be a key
2267 # indicating a deprecated resource and a suggested replacement, or a
2268 # warning about invalid network settings (for example, if an instance
2269 # attempts to perform IP forwarding but is not enabled for IP forwarding).
2270 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
2271 },
2272 ],
2273 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
2274 },
2275 }</pre>
2276 </div>
2277
2278 <div class="method">
2279 <code class="details" id="list_next">list_next()</code>
2280 <pre>Retrieves the next page of results.
2281
2282 Args:
2283 previous_request: The request for the previous page. (required)
2284 previous_response: The response from the request for the previous page. (required)
2285
2286 Returns:
2287 A request object that you can call &#x27;execute()&#x27; on to request the next
2288 page. Returns None if there are no more items in the collection.
2289 </pre>
2290 </div>
2291
2292 <div class="method">
2293 <code class="details" id="patch">patch(project, region, networkPolicy, body=None, requestId=None, x__xgafv=None)</code>
2294 <pre>Patches the specified policy with the data included in the
2295 request.
2296
2297 Args:
2298 project: string, Project ID for this request. (required)
2299 region: string, Name of the region of this request. (required)
2300 networkPolicy: string, Name of the network policy resource to update. (required)
2301 body: object, The request body.
2302 The object takes the form of:
2303
2304 { # Represents a Network Policy resource.
2305 &quot;associations&quot;: [ # Output only. [Output Only] A list of associations that belong to this network policy.
2306 {
2307 &quot;attachmentTarget&quot;: &quot;A String&quot;, # The target that the network policy is attached to.
2308 &quot;name&quot;: &quot;A String&quot;, # The name for an association.
2309 },
2310 ],
2311 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
2312 # text format.
2313 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
2314 # create the resource.
2315 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
2316 # defined by the server.
2317 &quot;kind&quot;: &quot;compute#networkPolicy&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies
2318 &quot;name&quot;: &quot;A String&quot;, # Name of the resource.
2319 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional network policy resides.
2320 # You must specify this field as part of the HTTP request URL. It is
2321 # not settable as a field in the request body.
2322 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Total count of all network policy rule tuples. A network
2323 # policy can not exceed a set number of tuples.
2324 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
2325 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
2326 &quot;trafficClassificationRules&quot;: [ # Output only. [Output Only] A list of traffic classification rules that belong to this
2327 # policy.
2328 { # Represents a traffic classification rule that describes one or more match
2329 # conditions along with the action to be taken when traffic matches this
2330 # condition.
2331 &quot;action&quot;: { # The Action to perform when the client connection triggers the rule.
2332 &quot;dscpMode&quot;: &quot;A String&quot;, # DSCP mode. When set to AUTO, the DSCP value will be picked
2333 # automatically based on selected trafficClass. Otherwise,dscpValue needs to be explicitly specified.
2334 &quot;dscpValue&quot;: 42, # Custom DSCP value from 0-63 range.
2335 &quot;trafficClass&quot;: &quot;A String&quot;, # The traffic class that should be applied to the matching packet.
2336 &quot;type&quot;: &quot;A String&quot;, # Always &quot;apply_traffic_classification&quot; for traffic classification rules.
2337 },
2338 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
2339 &quot;disabled&quot;: True or False, # Denotes whether the network policy rule is disabled. When set to true,
2340 # the network policy rule is not enforced and traffic behaves as if it did
2341 # not exist. If this is unspecified, the network policy rule will be
2342 # enabled.
2343 &quot;kind&quot;: &quot;compute#networkPolicyTrafficClassificationRule&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for network
2344 # policy traffic classification rules
2345 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that outgoing traffic is evaluated against.
2346 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
2347 # Exactly one field must be specified.
2348 &quot;destIpRanges&quot;: [ # CIDR IP address range.
2349 # Maximum number of destination CIDR IP ranges allowed is 5000.
2350 &quot;A String&quot;,
2351 ],
2352 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
2353 {
2354 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
2355 # required when creating a traffic classification rule. This value can
2356 # either be one of the following well known protocol strings
2357 # (tcp, udp, icmp,esp, ah, ipip,sctp), or the IP protocol number.
2358 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
2359 # only applicable for UDP, TCP or SCTP protocol. Each entry must be
2360 # either an integer or a range. If not specified, this rule applies to
2361 # connections through any port.
2362 #
2363 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
2364 &quot;A String&quot;,
2365 ],
2366 },
2367 ],
2368 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
2369 # Maximum number of source CIDR IP ranges allowed is 5000.
2370 &quot;A String&quot;,
2371 ],
2372 },
2373 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
2374 # must be a positive value between 1 and 2147482647.
2375 # The priority values from 2147482648 to 2147483647 (1000) are reserved for
2376 # system default network policy rules. Rules are evaluated from highest to
2377 # lowest priority where 1 is the highest priority and 2147483647 is the
2378 # lowest priority.
2379 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
2380 # and can be updated.
2381 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single network policy
2382 # rule.
2383 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the traffic
2384 # classification rule applies to. If targetSecureTag are
2385 # specified, then the traffic classification rule applies only to instances
2386 # in the VPC network that have one of those EFFECTIVE secure tags, if all
2387 # the targetSecureTag are in INEFFECTIVE state, then this rule
2388 # will be ignored. targetSecureTag may not be set at the same
2389 # time as targetServiceAccounts. If neithertargetServiceAccounts nor targetSecureTag are
2390 # specified, the traffic classification rule applies to all instances on
2391 # the specified network. Maximum number of target label tags allowed is
2392 # 256.
2393 {
2394 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2395 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2396 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2397 # or its network is deleted.
2398 },
2399 ],
2400 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
2401 # applied with this rule.
2402 &quot;A String&quot;,
2403 ],
2404 },
2405 ],
2406 }
2407
2408 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
2409 that if you must retry your request, the server will know to ignore the
2410 request if it has already been completed.
2411
2412 For example, consider a situation where you make an initial request and
2413 the request times out. If you make the request again with the same
2414 request ID, the server can check if original operation with the same
2415 request ID was received, and if so, will ignore the second request. This
2416 prevents clients from accidentally creating duplicate commitments.
2417
2418 The request ID must be
2419 a valid UUID with the exception that zero UUID is not supported
2420 (00000000-0000-0000-0000-000000000000).
2421 x__xgafv: string, V1 error format.
2422 Allowed values
2423 1 - v1 error format
2424 2 - v2 error format
2425
2426 Returns:
2427 An object of the form:
2428
2429 { # Represents an Operation resource.
2430 #
2431 # Google Compute Engine has three Operation resources:
2432 #
2433 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
2434 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
2435 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
2436 #
2437 # You can use an operation resource to manage asynchronous API requests.
2438 # For more information, readHandling
2439 # API responses.
2440 #
2441 # Operations can be global, regional or zonal.
2442 #
2443 # - For global operations, use the `globalOperations`
2444 # resource.
2445 # - For regional operations, use the
2446 # `regionOperations` resource.
2447 # - For zonal operations, use
2448 # the `zoneOperations` resource.
2449 #
2450 #
2451 #
2452 # For more information, read
2453 # Global, Regional, and Zonal Resources.
2454 #
2455 # Note that completed Operation resources have a limited
2456 # retention period.
2457 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
2458 # Not present otherwise.
2459 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
2460 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
2461 # set when the operation is created.
2462 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
2463 # text format.
2464 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
2465 # this field will be populated.
2466 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
2467 # operation.
2468 {
2469 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
2470 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
2471 # details. There is a set of defined message types to use for providing
2472 # details.The syntax depends on the error code. For example,
2473 # QuotaExceededInfo will have details when the error code is
2474 # QUOTA_EXCEEDED.
2475 {
2476 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
2477 #
2478 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
2479 # is not enabled:
2480 #
2481 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
2482 # &quot;domain&quot;: &quot;googleapis.com&quot;
2483 # &quot;metadata&quot;: {
2484 # &quot;resource&quot;: &quot;projects/123&quot;,
2485 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
2486 # }
2487 # }
2488 #
2489 # This response indicates that the pubsub.googleapis.com API is not enabled.
2490 #
2491 # Example of an error that is returned when attempting to create a Spanner
2492 # instance in a region that is out of stock:
2493 #
2494 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
2495 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
2496 # &quot;metadata&quot;: {
2497 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
2498 # }
2499 # }
2500 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
2501 # is typically the registered service name of the tool or product that
2502 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
2503 # generated by some common infrastructure, the error domain must be a
2504 # globally unique value that identifies the infrastructure. For Google API
2505 # infrastructure, the error domain is &quot;googleapis.com&quot;.
2506 &quot;metadatas&quot;: { # Additional structured details about this error.
2507 #
2508 # Keys must match a regular expression of `a-z+` but should
2509 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
2510 # length. When identifying the current value of an exceeded limit, the units
2511 # should be contained in the key, not the value. For example, rather than
2512 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
2513 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
2514 # instances that can be created in a single (batch) request.
2515 &quot;a_key&quot;: &quot;A String&quot;,
2516 },
2517 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
2518 # proximate cause of the error. Error reasons are unique within a particular
2519 # domain of errors. This should be at most 63 characters and match a
2520 # regular expression of `A-Z+[A-Z0-9]`, which represents
2521 # UPPER_SNAKE_CASE.
2522 },
2523 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
2524 #
2525 # For example, if a quota check failed with an error indicating the calling
2526 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
2527 # directly to the right place in the developer console to flip the bit.
2528 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
2529 { # Describes a URL link.
2530 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
2531 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
2532 },
2533 ],
2534 },
2535 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
2536 # which can be attached to an RPC error.
2537 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
2538 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
2539 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
2540 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
2541 },
2542 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
2543 &quot;dimensions&quot;: { # The map holding related quota dimensions.
2544 &quot;a_key&quot;: &quot;A String&quot;,
2545 },
2546 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
2547 # type or metric.
2548 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
2549 # or metric.
2550 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
2551 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
2552 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
2553 },
2554 },
2555 ],
2556 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
2557 # This property is optional.
2558 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
2559 },
2560 ],
2561 },
2562 &quot;getVersionOperationMetadata&quot;: {
2563 &quot;inlineSbomInfo&quot;: {
2564 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
2565 # appropriate identifiers.
2566 &quot;a_key&quot;: &quot;A String&quot;,
2567 },
2568 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
2569 # identifiers.
2570 &quot;a_key&quot;: &quot;A String&quot;,
2571 },
2572 },
2573 },
2574 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
2575 # message that was returned, such as `NOT FOUND`.
2576 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
2577 # status code that was returned. For example, a `404` means the
2578 # resource was not found.
2579 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
2580 # defined by the server.
2581 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
2582 # This value is inRFC3339
2583 # text format.
2584 &quot;instancesBulkInsertOperationMetadata&quot;: {
2585 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
2586 # Example key: zones/us-central1-a
2587 &quot;a_key&quot;: {
2588 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
2589 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
2590 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
2591 # error.
2592 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
2593 # if the flow is rolling forward or rolling back.
2594 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
2595 },
2596 },
2597 },
2598 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
2599 # Operation resources.
2600 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
2601 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
2602 # group of operations results from a `bulkInsert` API request.
2603 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
2604 # `update`, or `delete`, and so on.
2605 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
2606 # There is no requirement that this be linear or support any granularity of
2607 # operations. This should not be used to guess when the operation will be
2608 # complete. This number should monotonically increase as the operation
2609 # progresses.
2610 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
2611 # applicable when performing regional operations.
2612 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
2613 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
2614 # this field will contain information on all underlying zonal actions and
2615 # their state.
2616 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
2617 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
2618 # Example key: zones/us-central1-a
2619 &quot;a_key&quot;: {
2620 &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
2621 # populated.
2622 # different programming environments, including REST APIs and RPC APIs. It is
2623 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2624 # three pieces of data: error code, error message, and error details.
2625 #
2626 # You can find out more about this error model and how to work with it in the
2627 # [API Design Guide](https://cloud.google.com/apis/design/errors).
2628 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2629 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
2630 # message types for APIs to use.
2631 {
2632 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2633 },
2634 ],
2635 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
2636 # user-facing error message should be localized and sent in the
2637 # google.rpc.Status.details field, or localized by the client.
2638 },
2639 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
2640 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
2641 },
2642 },
2643 },
2644 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
2645 # This value is inRFC3339
2646 # text format.
2647 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
2648 # following:
2649 # `PENDING`, `RUNNING`, or `DONE`.
2650 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
2651 # operation.
2652 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
2653 # of the target resource.
2654 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
2655 # operations related to creating a snapshot, this points to the disk
2656 # that the snapshot was created from.
2657 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
2658 # `[email protected]` or
2659 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
2660 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
2661 # operation, this field will be populated.
2662 {
2663 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
2664 # Engine returns NO_RESULTS_ON_PAGE if there
2665 # are no results in the response.
2666 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
2667 # value format. For example:
2668 #
2669 # &quot;data&quot;: [
2670 # {
2671 # &quot;key&quot;: &quot;scope&quot;,
2672 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
2673 # }
2674 {
2675 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
2676 # returned. For example, for warnings where there are no results in a list
2677 # request for a particular zone, this key might be scope and
2678 # the key value might be the zone name. Other examples might be a key
2679 # indicating a deprecated resource and a suggested replacement, or a
2680 # warning about invalid network settings (for example, if an instance
2681 # attempts to perform IP forwarding but is not enabled for IP forwarding).
2682 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
2683 },
2684 ],
2685 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
2686 },
2687 ],
2688 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
2689 # applicable when performing per-zone operations.
2690 }</pre>
2691 </div>
2692
2693 <div class="method">
2694 <code class="details" id="patchTrafficClassificationRule">patchTrafficClassificationRule(project, region, networkPolicy, body=None, priority=None, requestId=None, x__xgafv=None)</code>
2695 <pre>Patches a rule of the specified priority.
2696
2697 Args:
2698 project: string, Project ID for this request. (required)
2699 region: string, Name of the region of this request. (required)
2700 networkPolicy: string, Name of the network policy resource to update. (required)
2701 body: object, The request body.
2702 The object takes the form of:
2703
2704 { # Represents a traffic classification rule that describes one or more match
2705 # conditions along with the action to be taken when traffic matches this
2706 # condition.
2707 &quot;action&quot;: { # The Action to perform when the client connection triggers the rule.
2708 &quot;dscpMode&quot;: &quot;A String&quot;, # DSCP mode. When set to AUTO, the DSCP value will be picked
2709 # automatically based on selected trafficClass. Otherwise,dscpValue needs to be explicitly specified.
2710 &quot;dscpValue&quot;: 42, # Custom DSCP value from 0-63 range.
2711 &quot;trafficClass&quot;: &quot;A String&quot;, # The traffic class that should be applied to the matching packet.
2712 &quot;type&quot;: &quot;A String&quot;, # Always &quot;apply_traffic_classification&quot; for traffic classification rules.
2713 },
2714 &quot;description&quot;: &quot;A String&quot;, # An optional description for this resource.
2715 &quot;disabled&quot;: True or False, # Denotes whether the network policy rule is disabled. When set to true,
2716 # the network policy rule is not enforced and traffic behaves as if it did
2717 # not exist. If this is unspecified, the network policy rule will be
2718 # enabled.
2719 &quot;kind&quot;: &quot;compute#networkPolicyTrafficClassificationRule&quot;, # Output only. [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for network
2720 # policy traffic classification rules
2721 &quot;match&quot;: { # Represents a match condition that incoming traffic is evaluated against. # A match condition that outgoing traffic is evaluated against.
2722 # If it evaluates to true, the corresponding &#x27;action&#x27; is enforced.
2723 # Exactly one field must be specified.
2724 &quot;destIpRanges&quot;: [ # CIDR IP address range.
2725 # Maximum number of destination CIDR IP ranges allowed is 5000.
2726 &quot;A String&quot;,
2727 ],
2728 &quot;layer4Configs&quot;: [ # Pairs of IP protocols and ports that the rule should match.
2729 {
2730 &quot;ipProtocol&quot;: &quot;A String&quot;, # The IP protocol to which this rule applies. The protocol type is
2731 # required when creating a traffic classification rule. This value can
2732 # either be one of the following well known protocol strings
2733 # (tcp, udp, icmp,esp, ah, ipip,sctp), or the IP protocol number.
2734 &quot;ports&quot;: [ # An optional list of ports to which this rule applies. This field is
2735 # only applicable for UDP, TCP or SCTP protocol. Each entry must be
2736 # either an integer or a range. If not specified, this rule applies to
2737 # connections through any port.
2738 #
2739 # Example inputs include: [&quot;22&quot;],[&quot;80&quot;,&quot;443&quot;], and [&quot;12345-12349&quot;].
2740 &quot;A String&quot;,
2741 ],
2742 },
2743 ],
2744 &quot;srcIpRanges&quot;: [ # CIDR IP address range.
2745 # Maximum number of source CIDR IP ranges allowed is 5000.
2746 &quot;A String&quot;,
2747 ],
2748 },
2749 &quot;priority&quot;: 42, # An integer indicating the priority of a rule in the list. The priority
2750 # must be a positive value between 1 and 2147482647.
2751 # The priority values from 2147482648 to 2147483647 (1000) are reserved for
2752 # system default network policy rules. Rules are evaluated from highest to
2753 # lowest priority where 1 is the highest priority and 2147483647 is the
2754 # lowest priority.
2755 &quot;ruleName&quot;: &quot;A String&quot;, # An optional name for the rule. This field is not a unique identifier
2756 # and can be updated.
2757 &quot;ruleTupleCount&quot;: 42, # Output only. [Output Only] Calculation of the complexity of a single network policy
2758 # rule.
2759 &quot;targetSecureTags&quot;: [ # A list of secure tags that controls which instances the traffic
2760 # classification rule applies to. If targetSecureTag are
2761 # specified, then the traffic classification rule applies only to instances
2762 # in the VPC network that have one of those EFFECTIVE secure tags, if all
2763 # the targetSecureTag are in INEFFECTIVE state, then this rule
2764 # will be ignored. targetSecureTag may not be set at the same
2765 # time as targetServiceAccounts. If neithertargetServiceAccounts nor targetSecureTag are
2766 # specified, the traffic classification rule applies to all instances on
2767 # the specified network. Maximum number of target label tags allowed is
2768 # 256.
2769 {
2770 &quot;name&quot;: &quot;A String&quot;, # Name of the secure tag, created with TagManager&#x27;s TagValue API.
2771 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or
2772 # `INEFFECTIVE`. A secure tag is `INEFFECTIVE` when it is deleted
2773 # or its network is deleted.
2774 },
2775 ],
2776 &quot;targetServiceAccounts&quot;: [ # A list of service accounts indicating the sets of instances that are
2777 # applied with this rule.
2778 &quot;A String&quot;,
2779 ],
2780 }
2781
2782 priority: integer, The priority of the traffic classification rule to patch. Only rules with
2783 a priority value between 1 and 2147482647 (inclusive) can be patched.
2784 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
2785 that if you must retry your request, the server will know to ignore the
2786 request if it has already been completed.
2787
2788 For example, consider a situation where you make an initial request and
2789 the request times out. If you make the request again with the same
2790 request ID, the server can check if original operation with the same
2791 request ID was received, and if so, will ignore the second request. This
2792 prevents clients from accidentally creating duplicate commitments.
2793
2794 The request ID must be
2795 a valid UUID with the exception that zero UUID is not supported
2796 (00000000-0000-0000-0000-000000000000).
2797 x__xgafv: string, V1 error format.
2798 Allowed values
2799 1 - v1 error format
2800 2 - v2 error format
2801
2802 Returns:
2803 An object of the form:
2804
2805 { # Represents an Operation resource.
2806 #
2807 # Google Compute Engine has three Operation resources:
2808 #
2809 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
2810 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
2811 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
2812 #
2813 # You can use an operation resource to manage asynchronous API requests.
2814 # For more information, readHandling
2815 # API responses.
2816 #
2817 # Operations can be global, regional or zonal.
2818 #
2819 # - For global operations, use the `globalOperations`
2820 # resource.
2821 # - For regional operations, use the
2822 # `regionOperations` resource.
2823 # - For zonal operations, use
2824 # the `zoneOperations` resource.
2825 #
2826 #
2827 #
2828 # For more information, read
2829 # Global, Regional, and Zonal Resources.
2830 #
2831 # Note that completed Operation resources have a limited
2832 # retention period.
2833 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
2834 # Not present otherwise.
2835 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
2836 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
2837 # set when the operation is created.
2838 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
2839 # text format.
2840 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
2841 # this field will be populated.
2842 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
2843 # operation.
2844 {
2845 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
2846 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
2847 # details. There is a set of defined message types to use for providing
2848 # details.The syntax depends on the error code. For example,
2849 # QuotaExceededInfo will have details when the error code is
2850 # QUOTA_EXCEEDED.
2851 {
2852 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
2853 #
2854 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
2855 # is not enabled:
2856 #
2857 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
2858 # &quot;domain&quot;: &quot;googleapis.com&quot;
2859 # &quot;metadata&quot;: {
2860 # &quot;resource&quot;: &quot;projects/123&quot;,
2861 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
2862 # }
2863 # }
2864 #
2865 # This response indicates that the pubsub.googleapis.com API is not enabled.
2866 #
2867 # Example of an error that is returned when attempting to create a Spanner
2868 # instance in a region that is out of stock:
2869 #
2870 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
2871 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
2872 # &quot;metadata&quot;: {
2873 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
2874 # }
2875 # }
2876 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
2877 # is typically the registered service name of the tool or product that
2878 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
2879 # generated by some common infrastructure, the error domain must be a
2880 # globally unique value that identifies the infrastructure. For Google API
2881 # infrastructure, the error domain is &quot;googleapis.com&quot;.
2882 &quot;metadatas&quot;: { # Additional structured details about this error.
2883 #
2884 # Keys must match a regular expression of `a-z+` but should
2885 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
2886 # length. When identifying the current value of an exceeded limit, the units
2887 # should be contained in the key, not the value. For example, rather than
2888 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
2889 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
2890 # instances that can be created in a single (batch) request.
2891 &quot;a_key&quot;: &quot;A String&quot;,
2892 },
2893 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
2894 # proximate cause of the error. Error reasons are unique within a particular
2895 # domain of errors. This should be at most 63 characters and match a
2896 # regular expression of `A-Z+[A-Z0-9]`, which represents
2897 # UPPER_SNAKE_CASE.
2898 },
2899 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
2900 #
2901 # For example, if a quota check failed with an error indicating the calling
2902 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
2903 # directly to the right place in the developer console to flip the bit.
2904 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
2905 { # Describes a URL link.
2906 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
2907 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
2908 },
2909 ],
2910 },
2911 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
2912 # which can be attached to an RPC error.
2913 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
2914 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
2915 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
2916 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
2917 },
2918 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
2919 &quot;dimensions&quot;: { # The map holding related quota dimensions.
2920 &quot;a_key&quot;: &quot;A String&quot;,
2921 },
2922 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
2923 # type or metric.
2924 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
2925 # or metric.
2926 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
2927 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
2928 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
2929 },
2930 },
2931 ],
2932 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
2933 # This property is optional.
2934 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
2935 },
2936 ],
2937 },
2938 &quot;getVersionOperationMetadata&quot;: {
2939 &quot;inlineSbomInfo&quot;: {
2940 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
2941 # appropriate identifiers.
2942 &quot;a_key&quot;: &quot;A String&quot;,
2943 },
2944 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
2945 # identifiers.
2946 &quot;a_key&quot;: &quot;A String&quot;,
2947 },
2948 },
2949 },
2950 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
2951 # message that was returned, such as `NOT FOUND`.
2952 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
2953 # status code that was returned. For example, a `404` means the
2954 # resource was not found.
2955 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
2956 # defined by the server.
2957 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
2958 # This value is inRFC3339
2959 # text format.
2960 &quot;instancesBulkInsertOperationMetadata&quot;: {
2961 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
2962 # Example key: zones/us-central1-a
2963 &quot;a_key&quot;: {
2964 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
2965 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
2966 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
2967 # error.
2968 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
2969 # if the flow is rolling forward or rolling back.
2970 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
2971 },
2972 },
2973 },
2974 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
2975 # Operation resources.
2976 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
2977 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
2978 # group of operations results from a `bulkInsert` API request.
2979 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
2980 # `update`, or `delete`, and so on.
2981 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
2982 # There is no requirement that this be linear or support any granularity of
2983 # operations. This should not be used to guess when the operation will be
2984 # complete. This number should monotonically increase as the operation
2985 # progresses.
2986 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
2987 # applicable when performing regional operations.
2988 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
2989 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
2990 # this field will contain information on all underlying zonal actions and
2991 # their state.
2992 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
2993 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
2994 # Example key: zones/us-central1-a
2995 &quot;a_key&quot;: {
2996 &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
2997 # populated.
2998 # different programming environments, including REST APIs and RPC APIs. It is
2999 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3000 # three pieces of data: error code, error message, and error details.
3001 #
3002 # You can find out more about this error model and how to work with it in the
3003 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3004 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3005 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3006 # message types for APIs to use.
3007 {
3008 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3009 },
3010 ],
3011 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3012 # user-facing error message should be localized and sent in the
3013 # google.rpc.Status.details field, or localized by the client.
3014 },
3015 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
3016 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
3017 },
3018 },
3019 },
3020 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
3021 # This value is inRFC3339
3022 # text format.
3023 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
3024 # following:
3025 # `PENDING`, `RUNNING`, or `DONE`.
3026 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
3027 # operation.
3028 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
3029 # of the target resource.
3030 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
3031 # operations related to creating a snapshot, this points to the disk
3032 # that the snapshot was created from.
3033 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
3034 # `[email protected]` or
3035 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
3036 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
3037 # operation, this field will be populated.
3038 {
3039 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
3040 # Engine returns NO_RESULTS_ON_PAGE if there
3041 # are no results in the response.
3042 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
3043 # value format. For example:
3044 #
3045 # &quot;data&quot;: [
3046 # {
3047 # &quot;key&quot;: &quot;scope&quot;,
3048 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
3049 # }
3050 {
3051 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
3052 # returned. For example, for warnings where there are no results in a list
3053 # request for a particular zone, this key might be scope and
3054 # the key value might be the zone name. Other examples might be a key
3055 # indicating a deprecated resource and a suggested replacement, or a
3056 # warning about invalid network settings (for example, if an instance
3057 # attempts to perform IP forwarding but is not enabled for IP forwarding).
3058 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
3059 },
3060 ],
3061 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
3062 },
3063 ],
3064 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
3065 # applicable when performing per-zone operations.
3066 }</pre>
3067 </div>
3068
3069 <div class="method">
3070 <code class="details" id="removeAssociation">removeAssociation(project, region, networkPolicy, name=None, requestId=None, x__xgafv=None)</code>
3071 <pre>Removes an association for the specified network policy.
3072
3073 Args:
3074 project: string, Project ID for this request. (required)
3075 region: string, Name of the region of this request. (required)
3076 networkPolicy: string, Name of the network policy resource to update. (required)
3077 name: string, Name for the association that will be removed.
3078 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
3079 that if you must retry your request, the server will know to ignore the
3080 request if it has already been completed.
3081
3082 For example, consider a situation where you make an initial request and
3083 the request times out. If you make the request again with the same
3084 request ID, the server can check if original operation with the same
3085 request ID was received, and if so, will ignore the second request. This
3086 prevents clients from accidentally creating duplicate commitments.
3087
3088 The request ID must be
3089 a valid UUID with the exception that zero UUID is not supported
3090 (00000000-0000-0000-0000-000000000000).
3091 x__xgafv: string, V1 error format.
3092 Allowed values
3093 1 - v1 error format
3094 2 - v2 error format
3095
3096 Returns:
3097 An object of the form:
3098
3099 { # Represents an Operation resource.
3100 #
3101 # Google Compute Engine has three Operation resources:
3102 #
3103 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
3104 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
3105 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
3106 #
3107 # You can use an operation resource to manage asynchronous API requests.
3108 # For more information, readHandling
3109 # API responses.
3110 #
3111 # Operations can be global, regional or zonal.
3112 #
3113 # - For global operations, use the `globalOperations`
3114 # resource.
3115 # - For regional operations, use the
3116 # `regionOperations` resource.
3117 # - For zonal operations, use
3118 # the `zoneOperations` resource.
3119 #
3120 #
3121 #
3122 # For more information, read
3123 # Global, Regional, and Zonal Resources.
3124 #
3125 # Note that completed Operation resources have a limited
3126 # retention period.
3127 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
3128 # Not present otherwise.
3129 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
3130 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
3131 # set when the operation is created.
3132 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
3133 # text format.
3134 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
3135 # this field will be populated.
3136 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
3137 # operation.
3138 {
3139 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
3140 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
3141 # details. There is a set of defined message types to use for providing
3142 # details.The syntax depends on the error code. For example,
3143 # QuotaExceededInfo will have details when the error code is
3144 # QUOTA_EXCEEDED.
3145 {
3146 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
3147 #
3148 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
3149 # is not enabled:
3150 #
3151 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
3152 # &quot;domain&quot;: &quot;googleapis.com&quot;
3153 # &quot;metadata&quot;: {
3154 # &quot;resource&quot;: &quot;projects/123&quot;,
3155 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
3156 # }
3157 # }
3158 #
3159 # This response indicates that the pubsub.googleapis.com API is not enabled.
3160 #
3161 # Example of an error that is returned when attempting to create a Spanner
3162 # instance in a region that is out of stock:
3163 #
3164 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
3165 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
3166 # &quot;metadata&quot;: {
3167 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
3168 # }
3169 # }
3170 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
3171 # is typically the registered service name of the tool or product that
3172 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
3173 # generated by some common infrastructure, the error domain must be a
3174 # globally unique value that identifies the infrastructure. For Google API
3175 # infrastructure, the error domain is &quot;googleapis.com&quot;.
3176 &quot;metadatas&quot;: { # Additional structured details about this error.
3177 #
3178 # Keys must match a regular expression of `a-z+` but should
3179 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
3180 # length. When identifying the current value of an exceeded limit, the units
3181 # should be contained in the key, not the value. For example, rather than
3182 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
3183 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
3184 # instances that can be created in a single (batch) request.
3185 &quot;a_key&quot;: &quot;A String&quot;,
3186 },
3187 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
3188 # proximate cause of the error. Error reasons are unique within a particular
3189 # domain of errors. This should be at most 63 characters and match a
3190 # regular expression of `A-Z+[A-Z0-9]`, which represents
3191 # UPPER_SNAKE_CASE.
3192 },
3193 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
3194 #
3195 # For example, if a quota check failed with an error indicating the calling
3196 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
3197 # directly to the right place in the developer console to flip the bit.
3198 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
3199 { # Describes a URL link.
3200 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
3201 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
3202 },
3203 ],
3204 },
3205 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
3206 # which can be attached to an RPC error.
3207 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
3208 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
3209 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
3210 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
3211 },
3212 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
3213 &quot;dimensions&quot;: { # The map holding related quota dimensions.
3214 &quot;a_key&quot;: &quot;A String&quot;,
3215 },
3216 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
3217 # type or metric.
3218 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
3219 # or metric.
3220 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
3221 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
3222 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
3223 },
3224 },
3225 ],
3226 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
3227 # This property is optional.
3228 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
3229 },
3230 ],
3231 },
3232 &quot;getVersionOperationMetadata&quot;: {
3233 &quot;inlineSbomInfo&quot;: {
3234 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
3235 # appropriate identifiers.
3236 &quot;a_key&quot;: &quot;A String&quot;,
3237 },
3238 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
3239 # identifiers.
3240 &quot;a_key&quot;: &quot;A String&quot;,
3241 },
3242 },
3243 },
3244 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
3245 # message that was returned, such as `NOT FOUND`.
3246 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
3247 # status code that was returned. For example, a `404` means the
3248 # resource was not found.
3249 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
3250 # defined by the server.
3251 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
3252 # This value is inRFC3339
3253 # text format.
3254 &quot;instancesBulkInsertOperationMetadata&quot;: {
3255 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
3256 # Example key: zones/us-central1-a
3257 &quot;a_key&quot;: {
3258 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
3259 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
3260 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
3261 # error.
3262 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
3263 # if the flow is rolling forward or rolling back.
3264 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
3265 },
3266 },
3267 },
3268 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
3269 # Operation resources.
3270 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
3271 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
3272 # group of operations results from a `bulkInsert` API request.
3273 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
3274 # `update`, or `delete`, and so on.
3275 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
3276 # There is no requirement that this be linear or support any granularity of
3277 # operations. This should not be used to guess when the operation will be
3278 # complete. This number should monotonically increase as the operation
3279 # progresses.
3280 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
3281 # applicable when performing regional operations.
3282 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
3283 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
3284 # this field will contain information on all underlying zonal actions and
3285 # their state.
3286 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
3287 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
3288 # Example key: zones/us-central1-a
3289 &quot;a_key&quot;: {
3290 &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
3291 # populated.
3292 # different programming environments, including REST APIs and RPC APIs. It is
3293 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3294 # three pieces of data: error code, error message, and error details.
3295 #
3296 # You can find out more about this error model and how to work with it in the
3297 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3298 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3299 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3300 # message types for APIs to use.
3301 {
3302 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3303 },
3304 ],
3305 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3306 # user-facing error message should be localized and sent in the
3307 # google.rpc.Status.details field, or localized by the client.
3308 },
3309 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
3310 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
3311 },
3312 },
3313 },
3314 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
3315 # This value is inRFC3339
3316 # text format.
3317 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
3318 # following:
3319 # `PENDING`, `RUNNING`, or `DONE`.
3320 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
3321 # operation.
3322 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
3323 # of the target resource.
3324 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
3325 # operations related to creating a snapshot, this points to the disk
3326 # that the snapshot was created from.
3327 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
3328 # `[email protected]` or
3329 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
3330 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
3331 # operation, this field will be populated.
3332 {
3333 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
3334 # Engine returns NO_RESULTS_ON_PAGE if there
3335 # are no results in the response.
3336 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
3337 # value format. For example:
3338 #
3339 # &quot;data&quot;: [
3340 # {
3341 # &quot;key&quot;: &quot;scope&quot;,
3342 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
3343 # }
3344 {
3345 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
3346 # returned. For example, for warnings where there are no results in a list
3347 # request for a particular zone, this key might be scope and
3348 # the key value might be the zone name. Other examples might be a key
3349 # indicating a deprecated resource and a suggested replacement, or a
3350 # warning about invalid network settings (for example, if an instance
3351 # attempts to perform IP forwarding but is not enabled for IP forwarding).
3352 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
3353 },
3354 ],
3355 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
3356 },
3357 ],
3358 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
3359 # applicable when performing per-zone operations.
3360 }</pre>
3361 </div>
3362
3363 <div class="method">
3364 <code class="details" id="removeTrafficClassificationRule">removeTrafficClassificationRule(project, region, networkPolicy, priority=None, requestId=None, x__xgafv=None)</code>
3365 <pre>Deletes a rule of the specified priority.
3366
3367 Args:
3368 project: string, Project ID for this request. (required)
3369 region: string, Name of the region of this request. (required)
3370 networkPolicy: string, Name of the network policy resource to update. (required)
3371 priority: integer, The priority of the rule to remove from the network policy.
3372 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
3373 that if you must retry your request, the server will know to ignore the
3374 request if it has already been completed.
3375
3376 For example, consider a situation where you make an initial request and
3377 the request times out. If you make the request again with the same
3378 request ID, the server can check if original operation with the same
3379 request ID was received, and if so, will ignore the second request. This
3380 prevents clients from accidentally creating duplicate commitments.
3381
3382 The request ID must be
3383 a valid UUID with the exception that zero UUID is not supported
3384 (00000000-0000-0000-0000-000000000000).
3385 x__xgafv: string, V1 error format.
3386 Allowed values
3387 1 - v1 error format
3388 2 - v2 error format
3389
3390 Returns:
3391 An object of the form:
3392
3393 { # Represents an Operation resource.
3394 #
3395 # Google Compute Engine has three Operation resources:
3396 #
3397 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
3398 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
3399 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
3400 #
3401 # You can use an operation resource to manage asynchronous API requests.
3402 # For more information, readHandling
3403 # API responses.
3404 #
3405 # Operations can be global, regional or zonal.
3406 #
3407 # - For global operations, use the `globalOperations`
3408 # resource.
3409 # - For regional operations, use the
3410 # `regionOperations` resource.
3411 # - For zonal operations, use
3412 # the `zoneOperations` resource.
3413 #
3414 #
3415 #
3416 # For more information, read
3417 # Global, Regional, and Zonal Resources.
3418 #
3419 # Note that completed Operation resources have a limited
3420 # retention period.
3421 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
3422 # Not present otherwise.
3423 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
3424 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
3425 # set when the operation is created.
3426 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
3427 # text format.
3428 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
3429 # this field will be populated.
3430 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
3431 # operation.
3432 {
3433 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
3434 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
3435 # details. There is a set of defined message types to use for providing
3436 # details.The syntax depends on the error code. For example,
3437 # QuotaExceededInfo will have details when the error code is
3438 # QUOTA_EXCEEDED.
3439 {
3440 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
3441 #
3442 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
3443 # is not enabled:
3444 #
3445 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
3446 # &quot;domain&quot;: &quot;googleapis.com&quot;
3447 # &quot;metadata&quot;: {
3448 # &quot;resource&quot;: &quot;projects/123&quot;,
3449 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
3450 # }
3451 # }
3452 #
3453 # This response indicates that the pubsub.googleapis.com API is not enabled.
3454 #
3455 # Example of an error that is returned when attempting to create a Spanner
3456 # instance in a region that is out of stock:
3457 #
3458 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
3459 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
3460 # &quot;metadata&quot;: {
3461 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
3462 # }
3463 # }
3464 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
3465 # is typically the registered service name of the tool or product that
3466 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
3467 # generated by some common infrastructure, the error domain must be a
3468 # globally unique value that identifies the infrastructure. For Google API
3469 # infrastructure, the error domain is &quot;googleapis.com&quot;.
3470 &quot;metadatas&quot;: { # Additional structured details about this error.
3471 #
3472 # Keys must match a regular expression of `a-z+` but should
3473 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
3474 # length. When identifying the current value of an exceeded limit, the units
3475 # should be contained in the key, not the value. For example, rather than
3476 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
3477 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
3478 # instances that can be created in a single (batch) request.
3479 &quot;a_key&quot;: &quot;A String&quot;,
3480 },
3481 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
3482 # proximate cause of the error. Error reasons are unique within a particular
3483 # domain of errors. This should be at most 63 characters and match a
3484 # regular expression of `A-Z+[A-Z0-9]`, which represents
3485 # UPPER_SNAKE_CASE.
3486 },
3487 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
3488 #
3489 # For example, if a quota check failed with an error indicating the calling
3490 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
3491 # directly to the right place in the developer console to flip the bit.
3492 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
3493 { # Describes a URL link.
3494 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
3495 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
3496 },
3497 ],
3498 },
3499 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
3500 # which can be attached to an RPC error.
3501 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
3502 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
3503 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
3504 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
3505 },
3506 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
3507 &quot;dimensions&quot;: { # The map holding related quota dimensions.
3508 &quot;a_key&quot;: &quot;A String&quot;,
3509 },
3510 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
3511 # type or metric.
3512 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
3513 # or metric.
3514 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
3515 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
3516 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
3517 },
3518 },
3519 ],
3520 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
3521 # This property is optional.
3522 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
3523 },
3524 ],
3525 },
3526 &quot;getVersionOperationMetadata&quot;: {
3527 &quot;inlineSbomInfo&quot;: {
3528 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
3529 # appropriate identifiers.
3530 &quot;a_key&quot;: &quot;A String&quot;,
3531 },
3532 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
3533 # identifiers.
3534 &quot;a_key&quot;: &quot;A String&quot;,
3535 },
3536 },
3537 },
3538 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
3539 # message that was returned, such as `NOT FOUND`.
3540 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
3541 # status code that was returned. For example, a `404` means the
3542 # resource was not found.
3543 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
3544 # defined by the server.
3545 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
3546 # This value is inRFC3339
3547 # text format.
3548 &quot;instancesBulkInsertOperationMetadata&quot;: {
3549 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
3550 # Example key: zones/us-central1-a
3551 &quot;a_key&quot;: {
3552 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
3553 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
3554 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
3555 # error.
3556 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
3557 # if the flow is rolling forward or rolling back.
3558 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
3559 },
3560 },
3561 },
3562 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
3563 # Operation resources.
3564 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
3565 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
3566 # group of operations results from a `bulkInsert` API request.
3567 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
3568 # `update`, or `delete`, and so on.
3569 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
3570 # There is no requirement that this be linear or support any granularity of
3571 # operations. This should not be used to guess when the operation will be
3572 # complete. This number should monotonically increase as the operation
3573 # progresses.
3574 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
3575 # applicable when performing regional operations.
3576 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
3577 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
3578 # this field will contain information on all underlying zonal actions and
3579 # their state.
3580 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
3581 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
3582 # Example key: zones/us-central1-a
3583 &quot;a_key&quot;: {
3584 &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
3585 # populated.
3586 # different programming environments, including REST APIs and RPC APIs. It is
3587 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3588 # three pieces of data: error code, error message, and error details.
3589 #
3590 # You can find out more about this error model and how to work with it in the
3591 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3592 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3593 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3594 # message types for APIs to use.
3595 {
3596 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3597 },
3598 ],
3599 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3600 # user-facing error message should be localized and sent in the
3601 # google.rpc.Status.details field, or localized by the client.
3602 },
3603 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
3604 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
3605 },
3606 },
3607 },
3608 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
3609 # This value is inRFC3339
3610 # text format.
3611 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
3612 # following:
3613 # `PENDING`, `RUNNING`, or `DONE`.
3614 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
3615 # operation.
3616 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
3617 # of the target resource.
3618 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
3619 # operations related to creating a snapshot, this points to the disk
3620 # that the snapshot was created from.
3621 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
3622 # `[email protected]` or
3623 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
3624 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
3625 # operation, this field will be populated.
3626 {
3627 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
3628 # Engine returns NO_RESULTS_ON_PAGE if there
3629 # are no results in the response.
3630 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
3631 # value format. For example:
3632 #
3633 # &quot;data&quot;: [
3634 # {
3635 # &quot;key&quot;: &quot;scope&quot;,
3636 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
3637 # }
3638 {
3639 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
3640 # returned. For example, for warnings where there are no results in a list
3641 # request for a particular zone, this key might be scope and
3642 # the key value might be the zone name. Other examples might be a key
3643 # indicating a deprecated resource and a suggested replacement, or a
3644 # warning about invalid network settings (for example, if an instance
3645 # attempts to perform IP forwarding but is not enabled for IP forwarding).
3646 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
3647 },
3648 ],
3649 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
3650 },
3651 ],
3652 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
3653 # applicable when performing per-zone operations.
3654 }</pre>
3655 </div>
3656
3657 </body></html>