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.
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.
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.
var
string
$this
getNetwork
Network on which the workers are created.
"default" network is used if empty.
string
setNetwork
Network on which the workers are created.
"default" network is used if empty.
var
string
$this
getSubnetwork
Subnetwork on which the workers are created.
"default" subnetwork is used if empty.
string
setSubnetwork
Subnetwork on which the workers are created.
"default" subnetwork is used if empty.
var
string
$this