Class WorkerPool (1.2.0)

public sealed class WorkerPool : IMessage<WorkerPool>, IEquatable<WorkerPool>, IDeepCloneable<WorkerPool>, IBufferMessage, IMessage

Configuration for a WorkerPool to run the builds.

Workers are machines that Cloud Build uses to run your builds. By default, all workers run in a project owned by Cloud Build. To have full control over the workers that execute your builds -- such as enabling them to access private resources on your private network -- you can request Cloud Build to run the workers in your own project by creating a custom workers pool.

Inheritance

Object > WorkerPool

Namespace

Google.Cloud.CloudBuild.V1

Assembly

Google.Cloud.CloudBuild.V1.dll

Constructors

WorkerPool()

public WorkerPool()

WorkerPool(WorkerPool)

public WorkerPool(WorkerPool other)
Parameter
NameDescription
otherWorkerPool

Properties

CreateTime

public Timestamp CreateTime { get; set; }

Output only. Time at which the request to create the WorkerPool was received.

Property Value
TypeDescription
Timestamp

DeleteTime

public Timestamp DeleteTime { get; set; }

Output only. Time at which the request to delete the WorkerPool was received.

Property Value
TypeDescription
Timestamp

Name

public string Name { get; set; }

User-defined name of the WorkerPool.

Property Value
TypeDescription
String

ProjectId

public string ProjectId { get; set; }

The project ID of the GCP project for which the WorkerPool is created.

Property Value
TypeDescription
String

Regions

public RepeatedField<WorkerPool.Types.Region> Regions { get; }

List of regions to create the WorkerPool. Regions can't be empty. If Cloud Build adds a new GCP region in the future, the existing WorkerPool will not be enabled in the new region automatically; you must add the new region to the regions field to enable the WorkerPool in that region.

Property Value
TypeDescription
RepeatedField<WorkerPool.Types.Region>

ServiceAccountEmail

public string ServiceAccountEmail { get; set; }

Output only. The service account used to manage the WorkerPool. The service account must have the Compute Instance Admin (Beta) permission at the project level.

Property Value
TypeDescription
String

Status

public WorkerPool.Types.Status Status { get; set; }

Output only. WorkerPool Status.

Property Value
TypeDescription
WorkerPool.Types.Status

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. Time at which the request to update the WorkerPool was received.

Property Value
TypeDescription
Timestamp

WorkerConfig

public WorkerConfig WorkerConfig { get; set; }

Configuration to be used for a creating workers in the WorkerPool.

Property Value
TypeDescription
WorkerConfig

WorkerCount

public long WorkerCount { get; set; }

Total number of workers to be created across all requested regions.

Property Value
TypeDescription
Int64