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

getNetwork

Network on which the workers are created.

"default" network is used if empty.

Returns
Type
Description
string

setNetwork

Network on which the workers are created.

"default" network is used if empty.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getSubnetwork

Subnetwork on which the workers are created.

"default" subnetwork is used if empty.

Returns
Type
Description
string

setSubnetwork

Subnetwork on which the workers are created.

"default" subnetwork is used if empty.

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: