Google Cloud Vpc Access V1 Client - Class Subnet (1.3.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

Namespace

Google \ Cloud \ VpcAccess \ V1 \ Connector

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
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
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var string
Returns
Type Description
$this