1<html><body>
2<style>
3
4body, 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
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="compute_v1.html">Compute Engine API</a> . <a href="compute_v1.packetMirrorings.html">packetMirrorings</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Retrieves an aggregated list of packetMirrorings.</p>
80<p class="toc_element">
81  <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p>
82<p class="firstline">Retrieves the next page of results.</p>
83<p class="toc_element">
84  <code><a href="#close">close()</a></code></p>
85<p class="firstline">Close httplib2 connections.</p>
86<p class="toc_element">
87  <code><a href="#delete">delete(project, region, packetMirroring, requestId=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Deletes the specified PacketMirroring resource.</p>
89<p class="toc_element">
90  <code><a href="#get">get(project, region, packetMirroring, x__xgafv=None)</a></code></p>
91<p class="firstline">Returns the specified PacketMirroring resource.</p>
92<p class="toc_element">
93  <code><a href="#insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Creates a PacketMirroring resource in the specified project and region using the data included in the request.</p>
95<p class="toc_element">
96  <code><a href="#list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Retrieves a list of PacketMirroring resources available to the specified project and region.</p>
98<p class="toc_element">
99  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
102  <code><a href="#patch">patch(project, region, packetMirroring, body=None, requestId=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Patches the specified PacketMirroring resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.</p>
104<p class="toc_element">
105  <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</a></code></p>
106<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
107<h3>Method Details</h3>
108<div class="method">
109    <code class="details" id="aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
110  <pre>Retrieves an aggregated list of packetMirrorings.
111
112Args:
113  project: string, Project ID for this request. (required)
114  filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = &quot;Intel Skylake&quot;) ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = &quot;Intel Skylake&quot;) OR (cpuPlatform = &quot;Intel Broadwell&quot;) AND (scheduling.automaticRestart = true) ```
115  includeAllScopes: boolean, Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
116  maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
117  orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
118  pageToken: string, Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
119  returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
120  x__xgafv: string, V1 error format.
121    Allowed values
122      1 - v1 error format
123      2 - v2 error format
124
125Returns:
126  An object of the form:
127
128    { # Contains a list of packetMirrorings.
129  &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
130  &quot;items&quot;: { # A list of PacketMirroring resources.
131    &quot;a_key&quot;: { # Name of the scope containing this set of packetMirrorings.
132      &quot;packetMirrorings&quot;: [ # A list of packetMirrorings contained in this scope.
133        { # Represents a Packet Mirroring resource. Packet Mirroring clones the traffic of specified instances in your Virtual Private Cloud (VPC) network and forwards it to a collector destination, such as an instance group of an internal TCP/UDP load balancer, for analysis or examination. For more information about setting up Packet Mirroring, see Using Packet Mirroring.
134          &quot;collectorIlb&quot;: { # The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true.
135            &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the forwarding rule; defined by the server.
136            &quot;url&quot;: &quot;A String&quot;, # Resource URL to the forwarding rule representing the ILB configured as destination of the mirrored traffic.
137          },
138          &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
139          &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
140          &quot;enable&quot;: &quot;A String&quot;, # Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. The default is TRUE.
141          &quot;filter&quot;: { # Filter for mirrored traffic. If unspecified, all traffic is mirrored.
142            &quot;IPProtocols&quot;: [ # Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.
143              &quot;A String&quot;,
144            ],
145            &quot;cidrRanges&quot;: [ # IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.
146              &quot;A String&quot;,
147            ],
148            &quot;direction&quot;: &quot;A String&quot;, # Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.
149          },
150          &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
151          &quot;kind&quot;: &quot;compute#packetMirroring&quot;, # [Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.
152          &quot;mirroredResources&quot;: { # PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored.
153            &quot;instances&quot;: [ # A set of virtual machine instances that are being mirrored. They must live in zones contained in the same region as this packetMirroring. Note that this config will apply only to those network interfaces of the Instances that belong to the network specified in this packetMirroring. You may specify a maximum of 50 Instances.
154              {
155                &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the instance; defined by the server.
156                &quot;url&quot;: &quot;A String&quot;, # Resource URL to the virtual machine instance which is being mirrored.
157              },
158            ],
159            &quot;subnetworks&quot;: [ # A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must live in the same region as this packetMirroring. You may specify a maximum of 5 subnetworks.
160              {
161                &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the subnetwork; defined by the server.
162                &quot;url&quot;: &quot;A String&quot;, # Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored.
163              },
164            ],
165            &quot;tags&quot;: [ # A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags will be mirrored.
166              &quot;A String&quot;,
167            ],
168          },
169          &quot;name&quot;: &quot;A String&quot;, # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
170          &quot;network&quot;: { # Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given network.
171            &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the network; defined by the server.
172            &quot;url&quot;: &quot;A String&quot;, # URL of the network resource.
173          },
174          &quot;priority&quot;: 42, # The priority of applying this configuration. Priority is used to break ties in cases where there is more than one matching rule. In the case of two rules that apply for a given Instance, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535.
175          &quot;region&quot;: &quot;A String&quot;, # [Output Only] URI of the region where the packetMirroring resides.
176          &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
177        },
178      ],
179      &quot;warning&quot;: { # Informational warning which replaces the list of packetMirrorings when the list is empty.
180        &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
181        &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
182          {
183            &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
184            &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
185          },
186        ],
187        &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
188      },
189    },
190  },
191  &quot;kind&quot;: &quot;compute#packetMirroringAggregatedList&quot;, # Type of resource.
192  &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
193  &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource.
194  &quot;unreachables&quot;: [ # [Output Only] Unreachable resources.
195    &quot;A String&quot;,
196  ],
197  &quot;warning&quot;: { # [Output Only] Informational warning message.
198    &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
199    &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
200      {
201        &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
202        &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
203      },
204    ],
205    &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
206  },
207}</pre>
208</div>
209
210<div class="method">
211    <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
212  <pre>Retrieves the next page of results.
213
214Args:
215  previous_request: The request for the previous page. (required)
216  previous_response: The response from the request for the previous page. (required)
217
218Returns:
219  A request object that you can call &#x27;execute()&#x27; on to request the next
220  page. Returns None if there are no more items in the collection.
221    </pre>
222</div>
223
224<div class="method">
225    <code class="details" id="close">close()</code>
226  <pre>Close httplib2 connections.</pre>
227</div>
228
229<div class="method">
230    <code class="details" id="delete">delete(project, region, packetMirroring, requestId=None, x__xgafv=None)</code>
231  <pre>Deletes the specified PacketMirroring resource.
232
233Args:
234  project: string, Project ID for this request. (required)
235  region: string, Name of the region for this request. (required)
236  packetMirroring: string, Name of the PacketMirroring resource to delete. (required)
237  requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
238  x__xgafv: string, V1 error format.
239    Allowed values
240      1 - v1 error format
241      2 - v2 error format
242
243Returns:
244  An object of the form:
245
246    { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/v1/globalOperations) * [Regional](/compute/docs/reference/rest/v1/regionOperations) * [Zonal](/compute/docs/reference/rest/v1/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources.
247  &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
248  &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
249  &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
250  &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
251  &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
252    &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
253      {
254        &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
255        &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
256        &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
257      },
258    ],
259  },
260  &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
261  &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a `404` means the resource was not found.
262  &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
263  &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
264  &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
265  &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
266  &quot;operationGroupId&quot;: &quot;A String&quot;, # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request.
267  &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
268  &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
269  &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
270  &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
271  &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
272  &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
273  &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
274  &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
275  &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
276  &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `[email protected]`.
277  &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
278    {
279      &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
280      &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
281        {
282          &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
283          &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
284        },
285      ],
286      &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
287    },
288  ],
289  &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
290}</pre>
291</div>
292
293<div class="method">
294    <code class="details" id="get">get(project, region, packetMirroring, x__xgafv=None)</code>
295  <pre>Returns the specified PacketMirroring resource.
296
297Args:
298  project: string, Project ID for this request. (required)
299  region: string, Name of the region for this request. (required)
300  packetMirroring: string, Name of the PacketMirroring resource to return. (required)
301  x__xgafv: string, V1 error format.
302    Allowed values
303      1 - v1 error format
304      2 - v2 error format
305
306Returns:
307  An object of the form:
308
309    { # Represents a Packet Mirroring resource. Packet Mirroring clones the traffic of specified instances in your Virtual Private Cloud (VPC) network and forwards it to a collector destination, such as an instance group of an internal TCP/UDP load balancer, for analysis or examination. For more information about setting up Packet Mirroring, see Using Packet Mirroring.
310  &quot;collectorIlb&quot;: { # The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true.
311    &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the forwarding rule; defined by the server.
312    &quot;url&quot;: &quot;A String&quot;, # Resource URL to the forwarding rule representing the ILB configured as destination of the mirrored traffic.
313  },
314  &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
315  &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
316  &quot;enable&quot;: &quot;A String&quot;, # Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. The default is TRUE.
317  &quot;filter&quot;: { # Filter for mirrored traffic. If unspecified, all traffic is mirrored.
318    &quot;IPProtocols&quot;: [ # Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.
319      &quot;A String&quot;,
320    ],
321    &quot;cidrRanges&quot;: [ # IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.
322      &quot;A String&quot;,
323    ],
324    &quot;direction&quot;: &quot;A String&quot;, # Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.
325  },
326  &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
327  &quot;kind&quot;: &quot;compute#packetMirroring&quot;, # [Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.
328  &quot;mirroredResources&quot;: { # PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored.
329    &quot;instances&quot;: [ # A set of virtual machine instances that are being mirrored. They must live in zones contained in the same region as this packetMirroring. Note that this config will apply only to those network interfaces of the Instances that belong to the network specified in this packetMirroring. You may specify a maximum of 50 Instances.
330      {
331        &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the instance; defined by the server.
332        &quot;url&quot;: &quot;A String&quot;, # Resource URL to the virtual machine instance which is being mirrored.
333      },
334    ],
335    &quot;subnetworks&quot;: [ # A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must live in the same region as this packetMirroring. You may specify a maximum of 5 subnetworks.
336      {
337        &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the subnetwork; defined by the server.
338        &quot;url&quot;: &quot;A String&quot;, # Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored.
339      },
340    ],
341    &quot;tags&quot;: [ # A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags will be mirrored.
342      &quot;A String&quot;,
343    ],
344  },
345  &quot;name&quot;: &quot;A String&quot;, # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
346  &quot;network&quot;: { # Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given network.
347    &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the network; defined by the server.
348    &quot;url&quot;: &quot;A String&quot;, # URL of the network resource.
349  },
350  &quot;priority&quot;: 42, # The priority of applying this configuration. Priority is used to break ties in cases where there is more than one matching rule. In the case of two rules that apply for a given Instance, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535.
351  &quot;region&quot;: &quot;A String&quot;, # [Output Only] URI of the region where the packetMirroring resides.
352  &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
353}</pre>
354</div>
355
356<div class="method">
357    <code class="details" id="insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</code>
358  <pre>Creates a PacketMirroring resource in the specified project and region using the data included in the request.
359
360Args:
361  project: string, Project ID for this request. (required)
362  region: string, Name of the region for this request. (required)
363  body: object, The request body.
364    The object takes the form of:
365
366{ # Represents a Packet Mirroring resource. Packet Mirroring clones the traffic of specified instances in your Virtual Private Cloud (VPC) network and forwards it to a collector destination, such as an instance group of an internal TCP/UDP load balancer, for analysis or examination. For more information about setting up Packet Mirroring, see Using Packet Mirroring.
367  &quot;collectorIlb&quot;: { # The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true.
368    &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the forwarding rule; defined by the server.
369    &quot;url&quot;: &quot;A String&quot;, # Resource URL to the forwarding rule representing the ILB configured as destination of the mirrored traffic.
370  },
371  &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
372  &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
373  &quot;enable&quot;: &quot;A String&quot;, # Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. The default is TRUE.
374  &quot;filter&quot;: { # Filter for mirrored traffic. If unspecified, all traffic is mirrored.
375    &quot;IPProtocols&quot;: [ # Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.
376      &quot;A String&quot;,
377    ],
378    &quot;cidrRanges&quot;: [ # IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.
379      &quot;A String&quot;,
380    ],
381    &quot;direction&quot;: &quot;A String&quot;, # Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.
382  },
383  &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
384  &quot;kind&quot;: &quot;compute#packetMirroring&quot;, # [Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.
385  &quot;mirroredResources&quot;: { # PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored.
386    &quot;instances&quot;: [ # A set of virtual machine instances that are being mirrored. They must live in zones contained in the same region as this packetMirroring. Note that this config will apply only to those network interfaces of the Instances that belong to the network specified in this packetMirroring. You may specify a maximum of 50 Instances.
387      {
388        &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the instance; defined by the server.
389        &quot;url&quot;: &quot;A String&quot;, # Resource URL to the virtual machine instance which is being mirrored.
390      },
391    ],
392    &quot;subnetworks&quot;: [ # A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must live in the same region as this packetMirroring. You may specify a maximum of 5 subnetworks.
393      {
394        &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the subnetwork; defined by the server.
395        &quot;url&quot;: &quot;A String&quot;, # Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored.
396      },
397    ],
398    &quot;tags&quot;: [ # A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags will be mirrored.
399      &quot;A String&quot;,
400    ],
401  },
402  &quot;name&quot;: &quot;A String&quot;, # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
403  &quot;network&quot;: { # Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given network.
404    &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the network; defined by the server.
405    &quot;url&quot;: &quot;A String&quot;, # URL of the network resource.
406  },
407  &quot;priority&quot;: 42, # The priority of applying this configuration. Priority is used to break ties in cases where there is more than one matching rule. In the case of two rules that apply for a given Instance, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535.
408  &quot;region&quot;: &quot;A String&quot;, # [Output Only] URI of the region where the packetMirroring resides.
409  &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
410}
411
412  requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
413  x__xgafv: string, V1 error format.
414    Allowed values
415      1 - v1 error format
416      2 - v2 error format
417
418Returns:
419  An object of the form:
420
421    { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/v1/globalOperations) * [Regional](/compute/docs/reference/rest/v1/regionOperations) * [Zonal](/compute/docs/reference/rest/v1/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources.
422  &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
423  &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
424  &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
425  &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
426  &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
427    &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
428      {
429        &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
430        &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
431        &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
432      },
433    ],
434  },
435  &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
436  &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a `404` means the resource was not found.
437  &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
438  &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
439  &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
440  &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
441  &quot;operationGroupId&quot;: &quot;A String&quot;, # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request.
442  &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
443  &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
444  &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
445  &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
446  &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
447  &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
448  &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
449  &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
450  &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
451  &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `[email protected]`.
452  &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
453    {
454      &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
455      &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
456        {
457          &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
458          &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
459        },
460      ],
461      &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
462    },
463  ],
464  &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
465}</pre>
466</div>
467
468<div class="method">
469    <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
470  <pre>Retrieves a list of PacketMirroring resources available to the specified project and region.
471
472Args:
473  project: string, Project ID for this request. (required)
474  region: string, Name of the region for this request. (required)
475  filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = &quot;Intel Skylake&quot;) ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = &quot;Intel Skylake&quot;) OR (cpuPlatform = &quot;Intel Broadwell&quot;) AND (scheduling.automaticRestart = true) ```
476  maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
477  orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
478  pageToken: string, Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
479  returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
480  x__xgafv: string, V1 error format.
481    Allowed values
482      1 - v1 error format
483      2 - v2 error format
484
485Returns:
486  An object of the form:
487
488    { # Contains a list of PacketMirroring resources.
489  &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
490  &quot;items&quot;: [ # A list of PacketMirroring resources.
491    { # Represents a Packet Mirroring resource. Packet Mirroring clones the traffic of specified instances in your Virtual Private Cloud (VPC) network and forwards it to a collector destination, such as an instance group of an internal TCP/UDP load balancer, for analysis or examination. For more information about setting up Packet Mirroring, see Using Packet Mirroring.
492      &quot;collectorIlb&quot;: { # The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true.
493        &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the forwarding rule; defined by the server.
494        &quot;url&quot;: &quot;A String&quot;, # Resource URL to the forwarding rule representing the ILB configured as destination of the mirrored traffic.
495      },
496      &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
497      &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
498      &quot;enable&quot;: &quot;A String&quot;, # Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. The default is TRUE.
499      &quot;filter&quot;: { # Filter for mirrored traffic. If unspecified, all traffic is mirrored.
500        &quot;IPProtocols&quot;: [ # Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.
501          &quot;A String&quot;,
502        ],
503        &quot;cidrRanges&quot;: [ # IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.
504          &quot;A String&quot;,
505        ],
506        &quot;direction&quot;: &quot;A String&quot;, # Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.
507      },
508      &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
509      &quot;kind&quot;: &quot;compute#packetMirroring&quot;, # [Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.
510      &quot;mirroredResources&quot;: { # PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored.
511        &quot;instances&quot;: [ # A set of virtual machine instances that are being mirrored. They must live in zones contained in the same region as this packetMirroring. Note that this config will apply only to those network interfaces of the Instances that belong to the network specified in this packetMirroring. You may specify a maximum of 50 Instances.
512          {
513            &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the instance; defined by the server.
514            &quot;url&quot;: &quot;A String&quot;, # Resource URL to the virtual machine instance which is being mirrored.
515          },
516        ],
517        &quot;subnetworks&quot;: [ # A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must live in the same region as this packetMirroring. You may specify a maximum of 5 subnetworks.
518          {
519            &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the subnetwork; defined by the server.
520            &quot;url&quot;: &quot;A String&quot;, # Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored.
521          },
522        ],
523        &quot;tags&quot;: [ # A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags will be mirrored.
524          &quot;A String&quot;,
525        ],
526      },
527      &quot;name&quot;: &quot;A String&quot;, # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
528      &quot;network&quot;: { # Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given network.
529        &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the network; defined by the server.
530        &quot;url&quot;: &quot;A String&quot;, # URL of the network resource.
531      },
532      &quot;priority&quot;: 42, # The priority of applying this configuration. Priority is used to break ties in cases where there is more than one matching rule. In the case of two rules that apply for a given Instance, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535.
533      &quot;region&quot;: &quot;A String&quot;, # [Output Only] URI of the region where the packetMirroring resides.
534      &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
535    },
536  ],
537  &quot;kind&quot;: &quot;compute#packetMirroringList&quot;, # [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings.
538  &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
539  &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource.
540  &quot;warning&quot;: { # [Output Only] Informational warning message.
541    &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
542    &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
543      {
544        &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
545        &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
546      },
547    ],
548    &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
549  },
550}</pre>
551</div>
552
553<div class="method">
554    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
555  <pre>Retrieves the next page of results.
556
557Args:
558  previous_request: The request for the previous page. (required)
559  previous_response: The response from the request for the previous page. (required)
560
561Returns:
562  A request object that you can call &#x27;execute()&#x27; on to request the next
563  page. Returns None if there are no more items in the collection.
564    </pre>
565</div>
566
567<div class="method">
568    <code class="details" id="patch">patch(project, region, packetMirroring, body=None, requestId=None, x__xgafv=None)</code>
569  <pre>Patches the specified PacketMirroring resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
570
571Args:
572  project: string, Project ID for this request. (required)
573  region: string, Name of the region for this request. (required)
574  packetMirroring: string, Name of the PacketMirroring resource to patch. (required)
575  body: object, The request body.
576    The object takes the form of:
577
578{ # Represents a Packet Mirroring resource. Packet Mirroring clones the traffic of specified instances in your Virtual Private Cloud (VPC) network and forwards it to a collector destination, such as an instance group of an internal TCP/UDP load balancer, for analysis or examination. For more information about setting up Packet Mirroring, see Using Packet Mirroring.
579  &quot;collectorIlb&quot;: { # The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true.
580    &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the forwarding rule; defined by the server.
581    &quot;url&quot;: &quot;A String&quot;, # Resource URL to the forwarding rule representing the ILB configured as destination of the mirrored traffic.
582  },
583  &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
584  &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
585  &quot;enable&quot;: &quot;A String&quot;, # Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. The default is TRUE.
586  &quot;filter&quot;: { # Filter for mirrored traffic. If unspecified, all traffic is mirrored.
587    &quot;IPProtocols&quot;: [ # Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.
588      &quot;A String&quot;,
589    ],
590    &quot;cidrRanges&quot;: [ # IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.
591      &quot;A String&quot;,
592    ],
593    &quot;direction&quot;: &quot;A String&quot;, # Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.
594  },
595  &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
596  &quot;kind&quot;: &quot;compute#packetMirroring&quot;, # [Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.
597  &quot;mirroredResources&quot;: { # PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored.
598    &quot;instances&quot;: [ # A set of virtual machine instances that are being mirrored. They must live in zones contained in the same region as this packetMirroring. Note that this config will apply only to those network interfaces of the Instances that belong to the network specified in this packetMirroring. You may specify a maximum of 50 Instances.
599      {
600        &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the instance; defined by the server.
601        &quot;url&quot;: &quot;A String&quot;, # Resource URL to the virtual machine instance which is being mirrored.
602      },
603    ],
604    &quot;subnetworks&quot;: [ # A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must live in the same region as this packetMirroring. You may specify a maximum of 5 subnetworks.
605      {
606        &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the subnetwork; defined by the server.
607        &quot;url&quot;: &quot;A String&quot;, # Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored.
608      },
609    ],
610    &quot;tags&quot;: [ # A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags will be mirrored.
611      &quot;A String&quot;,
612    ],
613  },
614  &quot;name&quot;: &quot;A String&quot;, # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
615  &quot;network&quot;: { # Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given network.
616    &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the network; defined by the server.
617    &quot;url&quot;: &quot;A String&quot;, # URL of the network resource.
618  },
619  &quot;priority&quot;: 42, # The priority of applying this configuration. Priority is used to break ties in cases where there is more than one matching rule. In the case of two rules that apply for a given Instance, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535.
620  &quot;region&quot;: &quot;A String&quot;, # [Output Only] URI of the region where the packetMirroring resides.
621  &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
622}
623
624  requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
625  x__xgafv: string, V1 error format.
626    Allowed values
627      1 - v1 error format
628      2 - v2 error format
629
630Returns:
631  An object of the form:
632
633    { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/v1/globalOperations) * [Regional](/compute/docs/reference/rest/v1/regionOperations) * [Zonal](/compute/docs/reference/rest/v1/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources.
634  &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
635  &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
636  &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
637  &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
638  &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
639    &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
640      {
641        &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
642        &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
643        &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
644      },
645    ],
646  },
647  &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
648  &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a `404` means the resource was not found.
649  &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
650  &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
651  &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
652  &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
653  &quot;operationGroupId&quot;: &quot;A String&quot;, # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request.
654  &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
655  &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
656  &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
657  &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
658  &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
659  &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
660  &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
661  &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
662  &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
663  &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `[email protected]`.
664  &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
665    {
666      &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
667      &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
668        {
669          &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
670          &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
671        },
672      ],
673      &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
674    },
675  ],
676  &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
677}</pre>
678</div>
679
680<div class="method">
681    <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</code>
682  <pre>Returns permissions that a caller has on the specified resource.
683
684Args:
685  project: string, Project ID for this request. (required)
686  region: string, The name of the region for this request. (required)
687  resource: string, Name or id of the resource for this request. (required)
688  body: object, The request body.
689    The object takes the form of:
690
691{
692  &quot;permissions&quot;: [ # The set of permissions to check for the &#x27;resource&#x27;. Permissions with wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed.
693    &quot;A String&quot;,
694  ],
695}
696
697  x__xgafv: string, V1 error format.
698    Allowed values
699      1 - v1 error format
700      2 - v2 error format
701
702Returns:
703  An object of the form:
704
705    {
706  &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
707    &quot;A String&quot;,
708  ],
709}</pre>
710</div>
711
712</body></html>