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