CloudbuildWorkerPoolNetworkConfig class

network_config block. Legacy VPC-peering form: the workers are peered to a customer VPC via Service Networking. Mutually exclusive with CloudbuildWorkerPoolPrivateServiceConnect; pick at most one. Immutable after pool creation.

Annotations
  • @immutable

Constructors

CloudbuildWorkerPoolNetworkConfig({required TfArg<String> peeredNetwork, TfArg<String>? peeredNetworkIpRange})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
peeredNetwork → TfArg<String>
Self-link of the VPC the workers peer to. Must use the projects/{project_number}/global/networks/{network} form — pass TfArg.ref(vpc.selfLink) so the value resolves correctly. Note the path requires a project NUMBER, not a project ID.
final
peeredNetworkIpRange → TfArg<String>?
Optional CIDR range allocated to workers inside the peered VPC. Specify either a full CIDR (e.g. '192.168.0.0/29') or just a prefix size (e.g. '/24') to let Cloud Build pick the base. Defaults to /24 when omitted.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toArgMap() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited