Debian Codegraph @

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