Reference documentation and code samples for the Google Cloud Tpu V2 Client class NetworkConfig.
Network related configurations.
Generated from protobuf message google.cloud.tpu.v2.NetworkConfig
Namespace
Google \ Cloud \ Tpu \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ network
string
The name of the network for the TPU node. It must be a preexisting Google Compute Engine network. If none is provided, "default" will be used.
↳ subnetwork
string
The name of the subnetwork for the TPU node. It must be a preexisting Google Compute Engine subnetwork. If none is provided, "default" will be used.
↳ enable_external_ips
bool
Indicates that external IP addresses would be associated with the TPU workers. If set to false, the specified subnetwork or network should have Private Google Access enabled.
↳ can_ip_forward
bool
Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes.
getNetwork
The name of the network for the TPU node. It must be a preexisting Google Compute Engine network. If none is provided, "default" will be used.
string
setNetwork
The name of the network for the TPU node. It must be a preexisting Google Compute Engine network. If none is provided, "default" will be used.
var
string
$this
getSubnetwork
The name of the subnetwork for the TPU node. It must be a preexisting Google Compute Engine subnetwork. If none is provided, "default" will be used.
string
setSubnetwork
The name of the subnetwork for the TPU node. It must be a preexisting Google Compute Engine subnetwork. If none is provided, "default" will be used.
var
string
$this
getEnableExternalIps
Indicates that external IP addresses would be associated with the TPU workers. If set to false, the specified subnetwork or network should have Private Google Access enabled.
bool
setEnableExternalIps
Indicates that external IP addresses would be associated with the TPU workers. If set to false, the specified subnetwork or network should have Private Google Access enabled.
var
bool
$this
getCanIpForward
Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes.
bool
setCanIpForward
Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes.
var
bool
$this