Reference documentation and code samples for the Google Cloud Batch V1 Client class NetworkInterface.
A network interface.
Generated from protobuf messagegoogle.cloud.batch.v1.AllocationPolicy.NetworkInterface
Namespace
Google \ Cloud \ Batch \ V1 \ AllocationPolicy
Methods
__construct
Constructor.
Parameters
Name
Description
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}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Batch V1 Client - Class NetworkInterface (1.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.2 (latest)](/php/docs/reference/cloud-batch/latest/V1.AllocationPolicy.NetworkInterface)\n- [1.2.1](/php/docs/reference/cloud-batch/1.2.1/V1.AllocationPolicy.NetworkInterface)\n- [1.1.7](/php/docs/reference/cloud-batch/1.1.7/V1.AllocationPolicy.NetworkInterface)\n- [1.0.3](/php/docs/reference/cloud-batch/1.0.3/V1.AllocationPolicy.NetworkInterface)\n- [0.17.0](/php/docs/reference/cloud-batch/0.17.0/V1.AllocationPolicy.NetworkInterface)\n- [0.16.10](/php/docs/reference/cloud-batch/0.16.10/V1.AllocationPolicy.NetworkInterface)\n- [0.15.0](/php/docs/reference/cloud-batch/0.15.0/V1.AllocationPolicy.NetworkInterface)\n- [0.14.0](/php/docs/reference/cloud-batch/0.14.0/V1.AllocationPolicy.NetworkInterface)\n- [0.13.1](/php/docs/reference/cloud-batch/0.13.1/V1.AllocationPolicy.NetworkInterface)\n- [0.12.1](/php/docs/reference/cloud-batch/0.12.1/V1.AllocationPolicy.NetworkInterface)\n- [0.11.3](/php/docs/reference/cloud-batch/0.11.3/V1.AllocationPolicy.NetworkInterface)\n- [0.10.0](/php/docs/reference/cloud-batch/0.10.0/V1.AllocationPolicy.NetworkInterface)\n- [0.9.0](/php/docs/reference/cloud-batch/0.9.0/V1.AllocationPolicy.NetworkInterface)\n- [0.8.0](/php/docs/reference/cloud-batch/0.8.0/V1.AllocationPolicy.NetworkInterface)\n- [0.7.0](/php/docs/reference/cloud-batch/0.7.0/V1.AllocationPolicy.NetworkInterface)\n- [0.6.0](/php/docs/reference/cloud-batch/0.6.0/V1.AllocationPolicy.NetworkInterface)\n- [0.5.2](/php/docs/reference/cloud-batch/0.5.2/V1.AllocationPolicy.NetworkInterface)\n- [0.4.0](/php/docs/reference/cloud-batch/0.4.0/V1.AllocationPolicy.NetworkInterface)\n- [0.3.0](/php/docs/reference/cloud-batch/0.3.0/V1.AllocationPolicy.NetworkInterface)\n- [0.2.2](/php/docs/reference/cloud-batch/0.2.2/V1.AllocationPolicy.NetworkInterface) \nReference documentation and code samples for the Google Cloud Batch V1 Client class NetworkInterface.\n\nA network interface.\n\nGenerated from protobuf message `google.cloud.batch.v1.AllocationPolicy.NetworkInterface`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Batch \\\\ V1 \\\\ AllocationPolicy\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getNetwork\n\nThe URL of an existing network resource.\n\nYou can specify the network as a full or partial URL.\nFor example, the following are all valid URLs:\n\n- https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}\n- projects/{project}/global/networks/{network}\n- global/networks/{network}\n\n### setNetwork\n\nThe URL of an existing network resource.\n\nYou can specify the network as a full or partial URL.\nFor example, the following are all valid URLs:\n\n- https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}\n- projects/{project}/global/networks/{network}\n- global/networks/{network}\n\n### getSubnetwork\n\nThe URL of an existing subnetwork resource in the network.\n\nYou can specify the subnetwork as a full or partial URL.\nFor example, the following are all valid URLs:\n\n- https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}\n- projects/{project}/regions/{region}/subnetworks/{subnetwork}\n- regions/{region}/subnetworks/{subnetwork}\n\n### setSubnetwork\n\nThe URL of an existing subnetwork resource in the network.\n\nYou can specify the subnetwork as a full or partial URL.\nFor example, the following are all valid URLs:\n\n- https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}\n- projects/{project}/regions/{region}/subnetworks/{subnetwork}\n- regions/{region}/subnetworks/{subnetwork}\n\n### getNoExternalIpAddress\n\nDefault is false (with an external IP address). Required if\nno external public IP address is attached to the VM. If no external\npublic IP address, additional configuration is required to allow the VM\nto access Google Services. See\n\u003chttps://cloud.google.com/vpc/docs/configure-private-google-access\u003e and\n\u003chttps://cloud.google.com/nat/docs/gce-example#create-nat\u003e for more\ninformation.\n\n### setNoExternalIpAddress\n\nDefault is false (with an external IP address). Required if\nno external public IP address is attached to the VM. If no external\npublic IP address, additional configuration is required to allow the VM\nto access Google Services. See\n\u003chttps://cloud.google.com/vpc/docs/configure-private-google-access\u003e and\n\u003chttps://cloud.google.com/nat/docs/gce-example#create-nat\u003e for more\ninformation."]]