Compute V1 Client - Class PacketMirroringMirroredResourceInfo (1.13.0)

Reference documentation and code samples for the Compute V1 Client class PacketMirroringMirroredResourceInfo.

Generated from protobuf message google.cloud.compute.v1.PacketMirroringMirroredResourceInfo

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ instances array<Google\Cloud\Compute\V1\PacketMirroringMirroredResourceInfoInstanceInfo>

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.

↳ subnetworks array<Google\Cloud\Compute\V1\PacketMirroringMirroredResourceInfoSubnetInfo>

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.

↳ tags array

A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags will be mirrored.

getInstances

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.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setInstances

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.

Parameter
NameDescription
var array<Google\Cloud\Compute\V1\PacketMirroringMirroredResourceInfoInstanceInfo>
Returns
TypeDescription
$this

getSubnetworks

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.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSubnetworks

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.

Parameter
NameDescription
var array<Google\Cloud\Compute\V1\PacketMirroringMirroredResourceInfoSubnetInfo>
Returns
TypeDescription
$this

getTags

A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags will be mirrored.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTags

A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags will be mirrored.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this