Google Cloud Run V2 Client - Class NetworkInterface (0.9.1)

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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getTags

Network tags applied to this Cloud Run resource.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTags

Network tags applied to this Cloud Run resource.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this