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_alpha.html">Compute Engine API</a> . <a href="compute_alpha.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          &quot;selfLinkWithId&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource with the resource id.
178        },
179      ],
180      &quot;warning&quot;: { # Informational warning which replaces the list of packetMirrorings when the list is empty.
181        &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.
182        &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; }
183          {
184            &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).
185            &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
186          },
187        ],
188        &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
189      },
190    },
191  },
192  &quot;kind&quot;: &quot;compute#packetMirroringAggregatedList&quot;, # Type of resource.
193  &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.
194  &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource.
195  &quot;unreachables&quot;: [ # [Output Only] Unreachable resources.
196    &quot;A String&quot;,
197  ],
198  &quot;warning&quot;: { # [Output Only] Informational warning message.
199    &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.
200    &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; }
201      {
202        &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).
203        &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
204      },
205    ],
206    &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
207  },
208}</pre>
209</div>
210
211<div class="method">
212    <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
213  <pre>Retrieves the next page of results.
214
215Args:
216  previous_request: The request for the previous page. (required)
217  previous_response: The response from the request for the previous page. (required)
218
219Returns:
220  A request object that you can call &#x27;execute()&#x27; on to request the next
221  page. Returns None if there are no more items in the collection.
222    </pre>
223</div>
224
225<div class="method">
226    <code class="details" id="close">close()</code>
227  <pre>Close httplib2 connections.</pre>
228</div>
229
230<div class="method">
231    <code class="details" id="delete">delete(project, region, packetMirroring, requestId=None, x__xgafv=None)</code>
232  <pre>Deletes the specified PacketMirroring resource.
233
234Args:
235  project: string, Project ID for this request. (required)
236  region: string, Name of the region for this request. (required)
237  packetMirroring: string, Name of the PacketMirroring resource to delete. (required)
238  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).
239  x__xgafv: string, V1 error format.
240    Allowed values
241      1 - v1 error format
242      2 - v2 error format
243
244Returns:
245  An object of the form:
246
247    { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/alpha/globalOperations) * [Regional](/compute/docs/reference/rest/alpha/regionOperations) * [Zonal](/compute/docs/reference/rest/alpha/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.
248  &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
249  &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
250  &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
251  &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
252  &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
253    &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
254      {
255        &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
256        &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
257        &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
258      },
259    ],
260  },
261  &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`.
262  &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.
263  &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
264  &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
265  &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
266  &quot;metadata&quot;: { # [Output Only] Service-specific metadata attached to this operation.
267    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
268  },
269  &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
270  &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.
271  &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
272  &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.
273  &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
274  &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
275  &quot;selfLinkWithId&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource with the resource id.
276  &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.
277  &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`.
278  &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
279  &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
280  &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.
281  &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `[email protected]`.
282  &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
283    {
284      &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.
285      &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; }
286        {
287          &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).
288          &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
289        },
290      ],
291      &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
292    },
293  ],
294  &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.
295}</pre>
296</div>
297
298<div class="method">
299    <code class="details" id="get">get(project, region, packetMirroring, x__xgafv=None)</code>
300  <pre>Returns the specified PacketMirroring resource.
301
302Args:
303  project: string, Project ID for this request. (required)
304  region: string, Name of the region for this request. (required)
305  packetMirroring: string, Name of the PacketMirroring resource to return. (required)
306  x__xgafv: string, V1 error format.
307    Allowed values
308      1 - v1 error format
309      2 - v2 error format
310
311Returns:
312  An object of the form:
313
314    { # 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.
315  &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.
316    &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the forwarding rule; defined by the server.
317    &quot;url&quot;: &quot;A String&quot;, # Resource URL to the forwarding rule representing the ILB configured as destination of the mirrored traffic.
318  },
319  &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
320  &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
321  &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.
322  &quot;filter&quot;: { # Filter for mirrored traffic. If unspecified, all traffic is mirrored.
323    &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.
324      &quot;A String&quot;,
325    ],
326    &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.
327      &quot;A String&quot;,
328    ],
329    &quot;direction&quot;: &quot;A String&quot;, # Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.
330  },
331  &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
332  &quot;kind&quot;: &quot;compute#packetMirroring&quot;, # [Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.
333  &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.
334    &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.
335      {
336        &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the instance; defined by the server.
337        &quot;url&quot;: &quot;A String&quot;, # Resource URL to the virtual machine instance which is being mirrored.
338      },
339    ],
340    &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.
341      {
342        &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the subnetwork; defined by the server.
343        &quot;url&quot;: &quot;A String&quot;, # Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored.
344      },
345    ],
346    &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.
347      &quot;A String&quot;,
348    ],
349  },
350  &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.
351  &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.
352    &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the network; defined by the server.
353    &quot;url&quot;: &quot;A String&quot;, # URL of the network resource.
354  },
355  &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.
356  &quot;region&quot;: &quot;A String&quot;, # [Output Only] URI of the region where the packetMirroring resides.
357  &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
358  &quot;selfLinkWithId&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource with the resource id.
359}</pre>
360</div>
361
362<div class="method">
363    <code class="details" id="insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</code>
364  <pre>Creates a PacketMirroring resource in the specified project and region using the data included in the request.
365
366Args:
367  project: string, Project ID for this request. (required)
368  region: string, Name of the region for this request. (required)
369  body: object, The request body.
370    The object takes the form of:
371
372{ # 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.
373  &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.
374    &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the forwarding rule; defined by the server.
375    &quot;url&quot;: &quot;A String&quot;, # Resource URL to the forwarding rule representing the ILB configured as destination of the mirrored traffic.
376  },
377  &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
378  &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
379  &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.
380  &quot;filter&quot;: { # Filter for mirrored traffic. If unspecified, all traffic is mirrored.
381    &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.
382      &quot;A String&quot;,
383    ],
384    &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.
385      &quot;A String&quot;,
386    ],
387    &quot;direction&quot;: &quot;A String&quot;, # Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.
388  },
389  &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
390  &quot;kind&quot;: &quot;compute#packetMirroring&quot;, # [Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.
391  &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.
392    &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.
393      {
394        &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the instance; defined by the server.
395        &quot;url&quot;: &quot;A String&quot;, # Resource URL to the virtual machine instance which is being mirrored.
396      },
397    ],
398    &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.
399      {
400        &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the subnetwork; defined by the server.
401        &quot;url&quot;: &quot;A String&quot;, # Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored.
402      },
403    ],
404    &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.
405      &quot;A String&quot;,
406    ],
407  },
408  &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.
409  &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.
410    &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the network; defined by the server.
411    &quot;url&quot;: &quot;A String&quot;, # URL of the network resource.
412  },
413  &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.
414  &quot;region&quot;: &quot;A String&quot;, # [Output Only] URI of the region where the packetMirroring resides.
415  &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
416  &quot;selfLinkWithId&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource with the resource id.
417}
418
419  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).
420  x__xgafv: string, V1 error format.
421    Allowed values
422      1 - v1 error format
423      2 - v2 error format
424
425Returns:
426  An object of the form:
427
428    { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/alpha/globalOperations) * [Regional](/compute/docs/reference/rest/alpha/regionOperations) * [Zonal](/compute/docs/reference/rest/alpha/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.
429  &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
430  &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
431  &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
432  &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
433  &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
434    &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
435      {
436        &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
437        &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
438        &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
439      },
440    ],
441  },
442  &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`.
443  &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.
444  &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
445  &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
446  &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
447  &quot;metadata&quot;: { # [Output Only] Service-specific metadata attached to this operation.
448    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
449  },
450  &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
451  &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.
452  &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
453  &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.
454  &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
455  &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
456  &quot;selfLinkWithId&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource with the resource id.
457  &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.
458  &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`.
459  &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
460  &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
461  &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.
462  &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `[email protected]`.
463  &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
464    {
465      &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.
466      &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; }
467        {
468          &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).
469          &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
470        },
471      ],
472      &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
473    },
474  ],
475  &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.
476}</pre>
477</div>
478
479<div class="method">
480    <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
481  <pre>Retrieves a list of PacketMirroring resources available to the specified project and region.
482
483Args:
484  project: string, Project ID for this request. (required)
485  region: string, Name of the region for this request. (required)
486  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) ```
487  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`)
488  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.
489  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.
490  returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
491  x__xgafv: string, V1 error format.
492    Allowed values
493      1 - v1 error format
494      2 - v2 error format
495
496Returns:
497  An object of the form:
498
499    { # Contains a list of PacketMirroring resources.
500  &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
501  &quot;items&quot;: [ # A list of PacketMirroring resources.
502    { # 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.
503      &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.
504        &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the forwarding rule; defined by the server.
505        &quot;url&quot;: &quot;A String&quot;, # Resource URL to the forwarding rule representing the ILB configured as destination of the mirrored traffic.
506      },
507      &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
508      &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
509      &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.
510      &quot;filter&quot;: { # Filter for mirrored traffic. If unspecified, all traffic is mirrored.
511        &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.
512          &quot;A String&quot;,
513        ],
514        &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.
515          &quot;A String&quot;,
516        ],
517        &quot;direction&quot;: &quot;A String&quot;, # Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.
518      },
519      &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
520      &quot;kind&quot;: &quot;compute#packetMirroring&quot;, # [Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.
521      &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.
522        &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.
523          {
524            &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the instance; defined by the server.
525            &quot;url&quot;: &quot;A String&quot;, # Resource URL to the virtual machine instance which is being mirrored.
526          },
527        ],
528        &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.
529          {
530            &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the subnetwork; defined by the server.
531            &quot;url&quot;: &quot;A String&quot;, # Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored.
532          },
533        ],
534        &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.
535          &quot;A String&quot;,
536        ],
537      },
538      &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.
539      &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.
540        &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the network; defined by the server.
541        &quot;url&quot;: &quot;A String&quot;, # URL of the network resource.
542      },
543      &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.
544      &quot;region&quot;: &quot;A String&quot;, # [Output Only] URI of the region where the packetMirroring resides.
545      &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
546      &quot;selfLinkWithId&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource with the resource id.
547    },
548  ],
549  &quot;kind&quot;: &quot;compute#packetMirroringList&quot;, # [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings.
550  &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.
551  &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource.
552  &quot;warning&quot;: { # [Output Only] Informational warning message.
553    &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.
554    &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; }
555      {
556        &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).
557        &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
558      },
559    ],
560    &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
561  },
562}</pre>
563</div>
564
565<div class="method">
566    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
567  <pre>Retrieves the next page of results.
568
569Args:
570  previous_request: The request for the previous page. (required)
571  previous_response: The response from the request for the previous page. (required)
572
573Returns:
574  A request object that you can call &#x27;execute()&#x27; on to request the next
575  page. Returns None if there are no more items in the collection.
576    </pre>
577</div>
578
579<div class="method">
580    <code class="details" id="patch">patch(project, region, packetMirroring, body=None, requestId=None, x__xgafv=None)</code>
581  <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.
582
583Args:
584  project: string, Project ID for this request. (required)
585  region: string, Name of the region for this request. (required)
586  packetMirroring: string, Name of the PacketMirroring resource to patch. (required)
587  body: object, The request body.
588    The object takes the form of:
589
590{ # 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.
591  &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.
592    &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the forwarding rule; defined by the server.
593    &quot;url&quot;: &quot;A String&quot;, # Resource URL to the forwarding rule representing the ILB configured as destination of the mirrored traffic.
594  },
595  &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
596  &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
597  &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.
598  &quot;filter&quot;: { # Filter for mirrored traffic. If unspecified, all traffic is mirrored.
599    &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.
600      &quot;A String&quot;,
601    ],
602    &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.
603      &quot;A String&quot;,
604    ],
605    &quot;direction&quot;: &quot;A String&quot;, # Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.
606  },
607  &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
608  &quot;kind&quot;: &quot;compute#packetMirroring&quot;, # [Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.
609  &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.
610    &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.
611      {
612        &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the instance; defined by the server.
613        &quot;url&quot;: &quot;A String&quot;, # Resource URL to the virtual machine instance which is being mirrored.
614      },
615    ],
616    &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.
617      {
618        &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the subnetwork; defined by the server.
619        &quot;url&quot;: &quot;A String&quot;, # Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored.
620      },
621    ],
622    &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.
623      &quot;A String&quot;,
624    ],
625  },
626  &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.
627  &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.
628    &quot;canonicalUrl&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the network; defined by the server.
629    &quot;url&quot;: &quot;A String&quot;, # URL of the network resource.
630  },
631  &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.
632  &quot;region&quot;: &quot;A String&quot;, # [Output Only] URI of the region where the packetMirroring resides.
633  &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
634  &quot;selfLinkWithId&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource with the resource id.
635}
636
637  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).
638  x__xgafv: string, V1 error format.
639    Allowed values
640      1 - v1 error format
641      2 - v2 error format
642
643Returns:
644  An object of the form:
645
646    { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/alpha/globalOperations) * [Regional](/compute/docs/reference/rest/alpha/regionOperations) * [Zonal](/compute/docs/reference/rest/alpha/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.
647  &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
648  &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
649  &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
650  &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
651  &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
652    &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
653      {
654        &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
655        &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
656        &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
657      },
658    ],
659  },
660  &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`.
661  &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.
662  &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
663  &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
664  &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
665  &quot;metadata&quot;: { # [Output Only] Service-specific metadata attached to this operation.
666    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
667  },
668  &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
669  &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.
670  &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
671  &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.
672  &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
673  &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
674  &quot;selfLinkWithId&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource with the resource id.
675  &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.
676  &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`.
677  &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
678  &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
679  &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.
680  &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `[email protected]`.
681  &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
682    {
683      &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.
684      &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; }
685        {
686          &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).
687          &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
688        },
689      ],
690      &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
691    },
692  ],
693  &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.
694}</pre>
695</div>
696
697<div class="method">
698    <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</code>
699  <pre>Returns permissions that a caller has on the specified resource.
700
701Args:
702  project: string, Project ID for this request. (required)
703  region: string, The name of the region for this request. (required)
704  resource: string, Name or id of the resource for this request. (required)
705  body: object, The request body.
706    The object takes the form of:
707
708{
709  &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.
710    &quot;A String&quot;,
711  ],
712}
713
714  x__xgafv: string, V1 error format.
715    Allowed values
716      1 - v1 error format
717      2 - v2 error format
718
719Returns:
720  An object of the form:
721
722    {
723  &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
724    &quot;A String&quot;,
725  ],
726}</pre>
727</div>
728
729</body></html>