Google Cloud Run V2 Client - Class VpcAccess (0.5.2)

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

Namespace

Google \ Cloud \ Run \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
string

setConnector

VPC Access connector name.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEgress

Traffic VPC egress settings.

Returns
TypeDescription
int

setEgress

Traffic VPC egress settings.

Parameter
NameDescription
var int
Returns
TypeDescription
$this