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 |