Google Cloud Batch V1 Client - Class NetworkPolicy (0.12.1)

Reference documentation and code samples for the Google Cloud Batch V1 Client class NetworkPolicy.

NetworkPolicy describes VM instance network configurations.

Generated from protobuf message google.cloud.batch.v1.AllocationPolicy.NetworkPolicy

Namespace

Google \ Cloud \ Batch \ V1 \ AllocationPolicy

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ network_interfaces array<Google\Cloud\Batch\V1\AllocationPolicy\NetworkInterface>

Network configurations.

getNetworkInterfaces

Network configurations.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNetworkInterfaces

Network configurations.

Parameter
NameDescription
var array<Google\Cloud\Batch\V1\AllocationPolicy\NetworkInterface>
Returns
TypeDescription
$this