Reference documentation and code samples for the Google Cloud Run V2 Client class NetworkInterface.
Direct VPC egress settings.
Generated from protobuf messagegoogle.cloud.run.v2.VpcAccess.NetworkInterface
Namespace
Google \ Cloud \ Run \ V2 \ VpcAccess
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ network
string
Optional. The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.
↳ subnetwork
string
Optional. The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
↳ tags
array
Optional. Network tags applied to this Cloud Run resource.
getNetwork
Optional. The VPC network that the Cloud Run resource will be able to
send traffic to. At least one of network or subnetwork must be specified.
If both network and subnetwork are specified, the given VPC subnetwork
must belong to the given VPC network. If network is not specified, it
will be looked up from the subnetwork.
Returns
Type
Description
string
setNetwork
Optional. The VPC network that the Cloud Run resource will be able to
send traffic to. At least one of network or subnetwork must be specified.
If both network and subnetwork are specified, the given VPC subnetwork
must belong to the given VPC network. If network is not specified, it
will be looked up from the subnetwork.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getSubnetwork
Optional. The VPC subnetwork that the Cloud Run resource will get IPs
from. At least one of network or subnetwork must be specified. If both
network and subnetwork are specified, the given VPC subnetwork must
belong to the given VPC network. If subnetwork is not specified, the
subnetwork with the same name with the network will be used.
Returns
Type
Description
string
setSubnetwork
Optional. The VPC subnetwork that the Cloud Run resource will get IPs
from. At least one of network or subnetwork must be specified. If both
network and subnetwork are specified, the given VPC subnetwork must
belong to the given VPC network. If subnetwork is not specified, the
subnetwork with the same name with the network will be used.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getTags
Optional. Network tags applied to this Cloud Run resource.
[[["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 Run V2 Client - Class NetworkInterface (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/php/docs/reference/cloud-run/latest/V2.VpcAccess.NetworkInterface)\n- [1.8.0](/php/docs/reference/cloud-run/1.8.0/V2.VpcAccess.NetworkInterface)\n- [1.7.0](/php/docs/reference/cloud-run/1.7.0/V2.VpcAccess.NetworkInterface)\n- [1.6.0](/php/docs/reference/cloud-run/1.6.0/V2.VpcAccess.NetworkInterface)\n- [1.5.2](/php/docs/reference/cloud-run/1.5.2/V2.VpcAccess.NetworkInterface)\n- [1.4.0](/php/docs/reference/cloud-run/1.4.0/V2.VpcAccess.NetworkInterface)\n- [1.3.0](/php/docs/reference/cloud-run/1.3.0/V2.VpcAccess.NetworkInterface)\n- [1.2.0](/php/docs/reference/cloud-run/1.2.0/V2.VpcAccess.NetworkInterface)\n- [1.1.0](/php/docs/reference/cloud-run/1.1.0/V2.VpcAccess.NetworkInterface)\n- [1.0.0](/php/docs/reference/cloud-run/1.0.0/V2.VpcAccess.NetworkInterface)\n- [0.9.3](/php/docs/reference/cloud-run/0.9.3/V2.VpcAccess.NetworkInterface)\n- [0.8.0](/php/docs/reference/cloud-run/0.8.0/V2.VpcAccess.NetworkInterface)\n- [0.7.2](/php/docs/reference/cloud-run/0.7.2/V2.VpcAccess.NetworkInterface)\n- [0.6.0](/php/docs/reference/cloud-run/0.6.0/V2.VpcAccess.NetworkInterface)\n- [0.5.2](/php/docs/reference/cloud-run/0.5.2/V2.VpcAccess.NetworkInterface)\n- [0.4.0](/php/docs/reference/cloud-run/0.4.0/V2.VpcAccess.NetworkInterface)\n- [0.3.4](/php/docs/reference/cloud-run/0.3.4/V2.VpcAccess.NetworkInterface) \nReference documentation and code samples for the Google Cloud Run V2 Client class NetworkInterface.\n\nDirect VPC egress settings.\n\nGenerated from protobuf message `google.cloud.run.v2.VpcAccess.NetworkInterface`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Run \\\\ V2 \\\\ VpcAccess\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getNetwork\n\nOptional. The VPC network that the Cloud Run resource will be able to\nsend traffic to. At least one of network or subnetwork must be specified.\n\nIf both network and subnetwork are specified, the given VPC subnetwork\nmust belong to the given VPC network. If network is not specified, it\nwill be looked up from the subnetwork.\n\n### setNetwork\n\nOptional. The VPC network that the Cloud Run resource will be able to\nsend traffic to. At least one of network or subnetwork must be specified.\n\nIf both network and subnetwork are specified, the given VPC subnetwork\nmust belong to the given VPC network. If network is not specified, it\nwill be looked up from the subnetwork.\n\n### getSubnetwork\n\nOptional. The VPC subnetwork that the Cloud Run resource will get IPs\nfrom. At least one of network or subnetwork must be specified. If both\nnetwork and subnetwork are specified, the given VPC subnetwork must\nbelong to the given VPC network. If subnetwork is not specified, the\nsubnetwork with the same name with the network will be used.\n\n### setSubnetwork\n\nOptional. The VPC subnetwork that the Cloud Run resource will get IPs\nfrom. At least one of network or subnetwork must be specified. If both\nnetwork and subnetwork are specified, the given VPC subnetwork must\nbelong to the given VPC network. If subnetwork is not specified, the\nsubnetwork with the same name with the network will be used.\n\n### getTags\n\nOptional. Network tags applied to this Cloud Run resource.\n\n### setTags\n\nOptional. Network tags applied to this Cloud Run resource."]]