Google Cloud Run V2 Client - Class NetworkInterface (0.8.0)

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

Direct VPC egress settings.

Generated from protobuf message google.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

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

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

Network tags applied to this Cloud Run resource.

getNetwork

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

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

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

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

Network tags applied to this Cloud Run resource.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setTags

Network tags applied to this Cloud Run resource.

Parameter
Name Description
var string[]
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.