Reference documentation and code samples for the Compute V1 Client class PacketMirroringMirroredResourceInfo.
Generated from protobuf message google.cloud.compute.v1.PacketMirroringMirroredResourceInfo
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
array<Google\Cloud\Compute\V1\PacketMirroringMirroredResourceInfoInstanceInfo>
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
array<Google\Cloud\Compute\V1\PacketMirroringMirroredResourceInfoSubnetInfo>
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |