Google Cloud Build V1 Client - Class Network (0.3.8)

Reference documentation and code samples for the Google Cloud Build V1 Client class Network.

Network describes the GCP network used to create workers in.

Generated from protobuf message google.devtools.cloudbuild.v1.Network

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ project_id string

Project id containing the defined network and subnetwork. For a peered VPC, this will be the same as the project_id in which the workers are created. For a shared VPC, this will be the project sharing the network with the project_id project in which workers will be created. For custom workers with no VPC, this will be the same as project_id.

↳ network string

Network on which the workers are created. "default" network is used if empty.

↳ subnetwork string

Subnetwork on which the workers are created. "default" subnetwork is used if empty.

getProjectId

Project id containing the defined network and subnetwork. For a peered VPC, this will be the same as the project_id in which the workers are created.

For a shared VPC, this will be the project sharing the network with the project_id project in which workers will be created. For custom workers with no VPC, this will be the same as project_id.

Returns
TypeDescription
string

setProjectId

Project id containing the defined network and subnetwork. For a peered VPC, this will be the same as the project_id in which the workers are created.

For a shared VPC, this will be the project sharing the network with the project_id project in which workers will be created. For custom workers with no VPC, this will be the same as project_id.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNetwork

Network on which the workers are created.

"default" network is used if empty.

Returns
TypeDescription
string

setNetwork

Network on which the workers are created.

"default" network is used if empty.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSubnetwork

Subnetwork on which the workers are created.

"default" subnetwork is used if empty.

Returns
TypeDescription
string

setSubnetwork

Subnetwork on which the workers are created.

"default" subnetwork is used if empty.

Parameter
NameDescription
var string
Returns
TypeDescription
$this