Google Cloud Run V2 Client - Class VpcAccess (0.9.1)

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

VPC Access settings. For more information on sending traffic to a VPC network, 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. For more information on sending traffic to a VPC network via a connector, visit https://cloud.google.com/run/docs/configuring/vpc-connectors.

↳ egress int

Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.

↳ network_interfaces array<Google\Cloud\Run\V2\VpcAccess\NetworkInterface>

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, visit https://cloud.google.com/run/docs/configuring/vpc-connectors.

Returns
TypeDescription
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, visit https://cloud.google.com/run/docs/configuring/vpc-connectors.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEgress

Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.

Returns
TypeDescription
int

setEgress

Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getNetworkInterfaces

Direct VPC egress settings. Currently only single network interface is supported.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNetworkInterfaces

Direct VPC egress settings. Currently only single network interface is supported.

Parameter
NameDescription
var array<Google\Cloud\Run\V2\VpcAccess\NetworkInterface>
Returns
TypeDescription
$this