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.
| Parameters | |
|---|---|
| Name | Description |
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.
| Returns | |
|---|---|
| Type | Description |
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.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$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.
| Returns | |
|---|---|
| Type | Description |
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.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$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.
| Returns | |
|---|---|
| Type | Description |
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.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$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.
| Returns | |
|---|---|
| Type | Description |
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.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|