Google Cloud Vpc Access V1 Client - Class Subnet (1.0.5)

Reference documentation and code samples for the Google Cloud Vpc Access V1 Client class Subnet.

The subnet in which to house the connector

Generated from protobuf message google.cloud.vpcaccess.v1.Connector.Subnet

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}

↳ project_id string

Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.

getName

Subnet name (relative, not fully qualified).

E.g. if the full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}

Returns
TypeDescription
string

setName

Subnet name (relative, not fully qualified).

E.g. if the full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProjectId

Project in which the subnet exists.

If not set, this project is assumed to be the project for which the connector create request was issued.

Returns
TypeDescription
string

setProjectId

Project in which the subnet exists.

If not set, this project is assumed to be the project for which the connector create request was issued.

Parameter
NameDescription
var string
Returns
TypeDescription
$this