Google Cloud Run V2 Client - Class VpcAccess (0.3.4)

Reference documentation and code samples for the Google Cloud Run V2 Client class VpcAccess.

VPC Access settings. For more information on creating a VPC Connector, visit https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For information on how to configure Cloud Run with an existing VPC Connector, visit https://cloud.google.com/run/docs/configuring/connecting-vpc

Generated from protobuf message google.cloud.run.v2.VpcAccess

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.

↳ egress int

Traffic VPC egress settings.

getConnector

VPC Access connector name.

Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.

Returns
Type Description
string

setConnector

VPC Access connector name.

Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.

Parameter
Name Description
var string
Returns
Type Description
$this

getEgress

Traffic VPC egress settings.

Returns
Type Description
int

setEgress

Traffic VPC egress settings.

Parameter
Name Description
var int
Returns
Type Description
$this

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.