Google Cloud Batch V1 Client - Class NetworkInterface (0.7.0)

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

A network interface.

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

Namespace

Google \ Cloud \ Batch \ V1 \ AllocationPolicy

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ network string

The URL of an existing network resource. You can specify the network as a full or partial URL. For example, the following are all valid URLs: * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} * projects/{project}/global/networks/{network} * global/networks/{network}

↳ subnetwork string

The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} * projects/{project}/regions/{region}/subnetworks/{subnetwork} * regions/{region}/subnetworks/{subnetwork}

↳ no_external_ip_address bool

Default is false (with an external IP address). Required if no external public IP address is attached to the VM. If no external public IP address, additional configuration is required to allow the VM to access Google Services. See https://cloud.google.com/vpc/docs/configure-private-google-access and https://cloud.google.com/nat/docs/gce-example#create-nat for more information.

getNetwork

The URL of an existing network resource.

You can specify the network as a full or partial URL. For example, the following are all valid URLs:

  • https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
  • projects/{project}/global/networks/{network}
  • global/networks/{network}
Returns
TypeDescription
string

setNetwork

The URL of an existing network resource.

You can specify the network as a full or partial URL. For example, the following are all valid URLs:

  • https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
  • projects/{project}/global/networks/{network}
  • global/networks/{network}
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSubnetwork

The URL of an existing subnetwork resource in the network.

You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs:

  • https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
  • projects/{project}/regions/{region}/subnetworks/{subnetwork}
  • regions/{region}/subnetworks/{subnetwork}
Returns
TypeDescription
string

setSubnetwork

The URL of an existing subnetwork resource in the network.

You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs:

  • https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
  • projects/{project}/regions/{region}/subnetworks/{subnetwork}
  • regions/{region}/subnetworks/{subnetwork}
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNoExternalIpAddress

Default is false (with an external IP address). Required if no external public IP address is attached to the VM. If no external public IP address, additional configuration is required to allow the VM to access Google Services. See https://cloud.google.com/vpc/docs/configure-private-google-access and https://cloud.google.com/nat/docs/gce-example#create-nat for more information.

Returns
TypeDescription
bool

setNoExternalIpAddress

Default is false (with an external IP address). Required if no external public IP address is attached to the VM. If no external public IP address, additional configuration is required to allow the VM to access Google Services. See https://cloud.google.com/vpc/docs/configure-private-google-access and https://cloud.google.com/nat/docs/gce-example#create-nat for more information.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this