Generated from protobuf messagegoogle.cloud.run.v2.VpcAccess
Namespace
Google \ Cloud \ Run \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ connector
string
VPC Access connector name. Format:projects/{project}/locations/{location}/connectors/{connector}, where{project}can be project id or number. For more information on sending traffic to a VPC network via a connector, visithttps://cloud.google.com/run/docs/configuring/vpc-connectors.
↳ egress
int
Optional. Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.
Optional. Direct VPC egress settings. Currently only single network interface is supported.
getConnector
VPC Access connector name.
Format:projects/{project}/locations/{location}/connectors/{connector},
where{project}can be project id or number.
For more information on sending traffic to a VPC network via a connector,
visithttps://cloud.google.com/run/docs/configuring/vpc-connectors.
Returns
Type
Description
string
setConnector
VPC Access connector name.
Format:projects/{project}/locations/{location}/connectors/{connector},
where{project}can be project id or number.
For more information on sending traffic to a VPC network via a connector,
visithttps://cloud.google.com/run/docs/configuring/vpc-connectors.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getEgress
Optional. Traffic VPC egress settings. If not provided, it defaults to
PRIVATE_RANGES_ONLY.
Returns
Type
Description
int
setEgress
Optional. Traffic VPC egress settings. If not provided, it defaults to
PRIVATE_RANGES_ONLY.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getNetworkInterfaces
Optional. Direct VPC egress settings. Currently only single network
interface is supported.
[[["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 VpcAccess (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/php/docs/reference/cloud-run/latest/V2.VpcAccess)\n- [1.8.0](/php/docs/reference/cloud-run/1.8.0/V2.VpcAccess)\n- [1.7.0](/php/docs/reference/cloud-run/1.7.0/V2.VpcAccess)\n- [1.6.0](/php/docs/reference/cloud-run/1.6.0/V2.VpcAccess)\n- [1.5.2](/php/docs/reference/cloud-run/1.5.2/V2.VpcAccess)\n- [1.4.0](/php/docs/reference/cloud-run/1.4.0/V2.VpcAccess)\n- [1.3.0](/php/docs/reference/cloud-run/1.3.0/V2.VpcAccess)\n- [1.2.0](/php/docs/reference/cloud-run/1.2.0/V2.VpcAccess)\n- [1.1.0](/php/docs/reference/cloud-run/1.1.0/V2.VpcAccess)\n- [1.0.0](/php/docs/reference/cloud-run/1.0.0/V2.VpcAccess)\n- [0.9.3](/php/docs/reference/cloud-run/0.9.3/V2.VpcAccess)\n- [0.8.0](/php/docs/reference/cloud-run/0.8.0/V2.VpcAccess)\n- [0.7.2](/php/docs/reference/cloud-run/0.7.2/V2.VpcAccess)\n- [0.6.0](/php/docs/reference/cloud-run/0.6.0/V2.VpcAccess)\n- [0.5.2](/php/docs/reference/cloud-run/0.5.2/V2.VpcAccess)\n- [0.4.0](/php/docs/reference/cloud-run/0.4.0/V2.VpcAccess)\n- [0.3.4](/php/docs/reference/cloud-run/0.3.4/V2.VpcAccess) \nReference documentation and code samples for the Google Cloud Run V2 Client class VpcAccess.\n\nVPC Access settings. For more information on sending traffic to a VPC\nnetwork, visit \u003chttps://cloud.google.com/run/docs/configuring/connecting-vpc\u003e.\n\nGenerated from protobuf message `google.cloud.run.v2.VpcAccess`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Run \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getConnector\n\nVPC Access connector name.\n\nFormat: `projects/{project}/locations/{location}/connectors/{connector}`,\nwhere `{project}` can be project id or number.\nFor more information on sending traffic to a VPC network via a connector,\nvisit \u003chttps://cloud.google.com/run/docs/configuring/vpc-connectors\u003e.\n\n### setConnector\n\nVPC Access connector name.\n\nFormat: `projects/{project}/locations/{location}/connectors/{connector}`,\nwhere `{project}` can be project id or number.\nFor more information on sending traffic to a VPC network via a connector,\nvisit \u003chttps://cloud.google.com/run/docs/configuring/vpc-connectors\u003e.\n\n### getEgress\n\nOptional. Traffic VPC egress settings. If not provided, it defaults to\nPRIVATE_RANGES_ONLY.\n\n### setEgress\n\nOptional. Traffic VPC egress settings. If not provided, it defaults to\nPRIVATE_RANGES_ONLY.\n\n### getNetworkInterfaces\n\nOptional. Direct VPC egress settings. Currently only single network\ninterface is supported.\n\n### setNetworkInterfaces\n\nOptional. Direct VPC egress settings. Currently only single network\ninterface is supported."]]