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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ network_interfaces |
array<Google\Cloud\Batch\V1\AllocationPolicy\NetworkInterface>
Network configurations. |
getNetworkInterfaces
Network configurations.
Generated from protobuf field repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setNetworkInterfaces
Network configurations.
Generated from protobuf field repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Batch\V1\AllocationPolicy\NetworkInterface>
|
Returns | |
---|---|
Type | Description |
$this |