v1alpha1

package
v0.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// no region
	WorkerPoolRegionsItemRegionUnspecified = WorkerPoolRegionsItem("REGION_UNSPECIFIED")
	// us-central1 region
	WorkerPoolRegionsItemUsCentral1 = WorkerPoolRegionsItem("us-central1")
	// us-west1 region
	WorkerPoolRegionsItemUsWest1 = WorkerPoolRegionsItem("us-west1")
	// us-east1 region
	WorkerPoolRegionsItemUsEast1 = WorkerPoolRegionsItem("us-east1")
	// us-east4 region
	WorkerPoolRegionsItemUsEast4 = WorkerPoolRegionsItem("us-east4")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LookupWorkerPoolArgs added in v0.4.0

type LookupWorkerPoolArgs struct {
	Project      *string `pulumi:"project"`
	WorkerPoolId string  `pulumi:"workerPoolId"`
}

type LookupWorkerPoolOutputArgs added in v0.8.0

type LookupWorkerPoolOutputArgs struct {
	Project      pulumi.StringPtrInput `pulumi:"project"`
	WorkerPoolId pulumi.StringInput    `pulumi:"workerPoolId"`
}

func (LookupWorkerPoolOutputArgs) ElementType added in v0.8.0

func (LookupWorkerPoolOutputArgs) ElementType() reflect.Type

type LookupWorkerPoolResult added in v0.4.0

type LookupWorkerPoolResult struct {
	// Time at which the request to create the `WorkerPool` was received.
	CreateTime string `pulumi:"createTime"`
	// Time at which the request to delete the `WorkerPool` was received.
	DeleteTime string `pulumi:"deleteTime"`
	// User-defined name of the `WorkerPool`.
	Name string `pulumi:"name"`
	// The project ID of the GCP project for which the `WorkerPool` is created.
	Project string `pulumi:"project"`
	// 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.
	Regions []string `pulumi:"regions"`
	// The service account used to manage the `WorkerPool`. The service account must have the Compute Instance Admin (Beta) permission at the project level.
	ServiceAccountEmail string `pulumi:"serviceAccountEmail"`
	// WorkerPool Status.
	Status string `pulumi:"status"`
	// Time at which the request to update the `WorkerPool` was received.
	UpdateTime string `pulumi:"updateTime"`
	// Configuration to be used for a creating workers in the `WorkerPool`.
	WorkerConfig WorkerConfigResponse `pulumi:"workerConfig"`
	// Total number of workers to be created across all requested regions.
	WorkerCount string `pulumi:"workerCount"`
}

func LookupWorkerPool added in v0.4.0

func LookupWorkerPool(ctx *pulumi.Context, args *LookupWorkerPoolArgs, opts ...pulumi.InvokeOption) (*LookupWorkerPoolResult, error)

Returns information about a `WorkerPool`.

type LookupWorkerPoolResultOutput added in v0.8.0

type LookupWorkerPoolResultOutput struct{ *pulumi.OutputState }

func LookupWorkerPoolOutput added in v0.8.0

func (LookupWorkerPoolResultOutput) CreateTime added in v0.8.0

Time at which the request to create the `WorkerPool` was received.

func (LookupWorkerPoolResultOutput) DeleteTime added in v0.8.0

Time at which the request to delete the `WorkerPool` was received.

func (LookupWorkerPoolResultOutput) ElementType added in v0.8.0

func (LookupWorkerPoolResultOutput) Name added in v0.8.0

User-defined name of the `WorkerPool`.

func (LookupWorkerPoolResultOutput) Project added in v0.8.0

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

func (LookupWorkerPoolResultOutput) Regions added in v0.8.0

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.

func (LookupWorkerPoolResultOutput) ServiceAccountEmail added in v0.8.0

func (o LookupWorkerPoolResultOutput) ServiceAccountEmail() pulumi.StringOutput

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

func (LookupWorkerPoolResultOutput) Status added in v0.8.0

WorkerPool Status.

func (LookupWorkerPoolResultOutput) ToLookupWorkerPoolResultOutput added in v0.8.0

func (o LookupWorkerPoolResultOutput) ToLookupWorkerPoolResultOutput() LookupWorkerPoolResultOutput

func (LookupWorkerPoolResultOutput) ToLookupWorkerPoolResultOutputWithContext added in v0.8.0

func (o LookupWorkerPoolResultOutput) ToLookupWorkerPoolResultOutputWithContext(ctx context.Context) LookupWorkerPoolResultOutput

func (LookupWorkerPoolResultOutput) UpdateTime added in v0.8.0

Time at which the request to update the `WorkerPool` was received.

func (LookupWorkerPoolResultOutput) WorkerConfig added in v0.8.0

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

func (LookupWorkerPoolResultOutput) WorkerCount added in v0.8.0

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

type Network

type Network struct {
	// Network on which the workers are created. "default" network is used if empty.
	Network *string `pulumi:"network"`
	// 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.
	Project *string `pulumi:"project"`
	// Subnetwork on which the workers are created. "default" subnetwork is used if empty.
	Subnetwork *string `pulumi:"subnetwork"`
}

Network describes the GCP network used to create workers in.

type NetworkArgs

type NetworkArgs struct {
	// Network on which the workers are created. "default" network is used if empty.
	Network pulumi.StringPtrInput `pulumi:"network"`
	// 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.
	Project pulumi.StringPtrInput `pulumi:"project"`
	// Subnetwork on which the workers are created. "default" subnetwork is used if empty.
	Subnetwork pulumi.StringPtrInput `pulumi:"subnetwork"`
}

Network describes the GCP network used to create workers in.

func (NetworkArgs) ElementType

func (NetworkArgs) ElementType() reflect.Type

func (NetworkArgs) ToNetworkOutput

func (i NetworkArgs) ToNetworkOutput() NetworkOutput

func (NetworkArgs) ToNetworkOutputWithContext

func (i NetworkArgs) ToNetworkOutputWithContext(ctx context.Context) NetworkOutput

func (NetworkArgs) ToNetworkPtrOutput

func (i NetworkArgs) ToNetworkPtrOutput() NetworkPtrOutput

func (NetworkArgs) ToNetworkPtrOutputWithContext

func (i NetworkArgs) ToNetworkPtrOutputWithContext(ctx context.Context) NetworkPtrOutput

type NetworkInput

type NetworkInput interface {
	pulumi.Input

	ToNetworkOutput() NetworkOutput
	ToNetworkOutputWithContext(context.Context) NetworkOutput
}

NetworkInput is an input type that accepts NetworkArgs and NetworkOutput values. You can construct a concrete instance of `NetworkInput` via:

NetworkArgs{...}

type NetworkOutput

type NetworkOutput struct{ *pulumi.OutputState }

Network describes the GCP network used to create workers in.

func (NetworkOutput) ElementType

func (NetworkOutput) ElementType() reflect.Type

func (NetworkOutput) Network

func (o NetworkOutput) Network() pulumi.StringPtrOutput

Network on which the workers are created. "default" network is used if empty.

func (NetworkOutput) Project added in v0.3.0

func (o NetworkOutput) Project() pulumi.StringPtrOutput

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.

func (NetworkOutput) Subnetwork

func (o NetworkOutput) Subnetwork() pulumi.StringPtrOutput

Subnetwork on which the workers are created. "default" subnetwork is used if empty.

func (NetworkOutput) ToNetworkOutput

func (o NetworkOutput) ToNetworkOutput() NetworkOutput

func (NetworkOutput) ToNetworkOutputWithContext

func (o NetworkOutput) ToNetworkOutputWithContext(ctx context.Context) NetworkOutput

func (NetworkOutput) ToNetworkPtrOutput

func (o NetworkOutput) ToNetworkPtrOutput() NetworkPtrOutput

func (NetworkOutput) ToNetworkPtrOutputWithContext

func (o NetworkOutput) ToNetworkPtrOutputWithContext(ctx context.Context) NetworkPtrOutput

type NetworkPtrInput

type NetworkPtrInput interface {
	pulumi.Input

	ToNetworkPtrOutput() NetworkPtrOutput
	ToNetworkPtrOutputWithContext(context.Context) NetworkPtrOutput
}

NetworkPtrInput is an input type that accepts NetworkArgs, NetworkPtr and NetworkPtrOutput values. You can construct a concrete instance of `NetworkPtrInput` via:

        NetworkArgs{...}

or:

        nil

func NetworkPtr

func NetworkPtr(v *NetworkArgs) NetworkPtrInput

type NetworkPtrOutput

type NetworkPtrOutput struct{ *pulumi.OutputState }

func (NetworkPtrOutput) Elem

func (NetworkPtrOutput) ElementType

func (NetworkPtrOutput) ElementType() reflect.Type

func (NetworkPtrOutput) Network

Network on which the workers are created. "default" network is used if empty.

func (NetworkPtrOutput) Project added in v0.3.0

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.

func (NetworkPtrOutput) Subnetwork

func (o NetworkPtrOutput) Subnetwork() pulumi.StringPtrOutput

Subnetwork on which the workers are created. "default" subnetwork is used if empty.

func (NetworkPtrOutput) ToNetworkPtrOutput

func (o NetworkPtrOutput) ToNetworkPtrOutput() NetworkPtrOutput

func (NetworkPtrOutput) ToNetworkPtrOutputWithContext

func (o NetworkPtrOutput) ToNetworkPtrOutputWithContext(ctx context.Context) NetworkPtrOutput

type NetworkResponse

type NetworkResponse struct {
	// Network on which the workers are created. "default" network is used if empty.
	Network string `pulumi:"network"`
	// 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.
	Project string `pulumi:"project"`
	// Subnetwork on which the workers are created. "default" subnetwork is used if empty.
	Subnetwork string `pulumi:"subnetwork"`
}

Network describes the GCP network used to create workers in.

type NetworkResponseOutput

type NetworkResponseOutput struct{ *pulumi.OutputState }

Network describes the GCP network used to create workers in.

func (NetworkResponseOutput) ElementType

func (NetworkResponseOutput) ElementType() reflect.Type

func (NetworkResponseOutput) Network

Network on which the workers are created. "default" network is used if empty.

func (NetworkResponseOutput) Project added in v0.3.0

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.

func (NetworkResponseOutput) Subnetwork

func (o NetworkResponseOutput) Subnetwork() pulumi.StringOutput

Subnetwork on which the workers are created. "default" subnetwork is used if empty.

func (NetworkResponseOutput) ToNetworkResponseOutput

func (o NetworkResponseOutput) ToNetworkResponseOutput() NetworkResponseOutput

func (NetworkResponseOutput) ToNetworkResponseOutputWithContext

func (o NetworkResponseOutput) ToNetworkResponseOutputWithContext(ctx context.Context) NetworkResponseOutput

type WorkerConfig

type WorkerConfig struct {
	// Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If `0` is specified, Cloud Build will use a standard disk size. `disk_size` is overridden if you specify a different disk size in `build_options`. In this case, a VM with a disk size specified in the `build_options` will be created on demand at build time. For more information see https://cloud.google.com/cloud-build/docs/api/reference/rest/v1/projects.builds#buildoptions
	DiskSizeGb *string `pulumi:"diskSizeGb"`
	// Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool. `machine_type` is overridden if you specify a different machine type in `build_options`. In this case, the VM specified in the `build_options` will be created on demand at build time. For more information see https://cloud.google.com/cloud-build/docs/speeding-up-builds#using_custom_virtual_machine_sizes
	MachineType *string `pulumi:"machineType"`
	// The network definition used to create the worker. If this section is left empty, the workers will be created in WorkerPool.project_id on the default network.
	Network *Network `pulumi:"network"`
	// The tag applied to the worker, and the same tag used by the firewall rule. It is used to identify the Cloud Build workers among other VMs. The default value for tag is `worker`.
	Tag *string `pulumi:"tag"`
}

WorkerConfig defines the configuration to be used for a creating workers in the pool.

type WorkerConfigArgs

type WorkerConfigArgs struct {
	// Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If `0` is specified, Cloud Build will use a standard disk size. `disk_size` is overridden if you specify a different disk size in `build_options`. In this case, a VM with a disk size specified in the `build_options` will be created on demand at build time. For more information see https://cloud.google.com/cloud-build/docs/api/reference/rest/v1/projects.builds#buildoptions
	DiskSizeGb pulumi.StringPtrInput `pulumi:"diskSizeGb"`
	// Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool. `machine_type` is overridden if you specify a different machine type in `build_options`. In this case, the VM specified in the `build_options` will be created on demand at build time. For more information see https://cloud.google.com/cloud-build/docs/speeding-up-builds#using_custom_virtual_machine_sizes
	MachineType pulumi.StringPtrInput `pulumi:"machineType"`
	// The network definition used to create the worker. If this section is left empty, the workers will be created in WorkerPool.project_id on the default network.
	Network NetworkPtrInput `pulumi:"network"`
	// The tag applied to the worker, and the same tag used by the firewall rule. It is used to identify the Cloud Build workers among other VMs. The default value for tag is `worker`.
	Tag pulumi.StringPtrInput `pulumi:"tag"`
}

WorkerConfig defines the configuration to be used for a creating workers in the pool.

func (WorkerConfigArgs) ElementType

func (WorkerConfigArgs) ElementType() reflect.Type

func (WorkerConfigArgs) ToWorkerConfigOutput

func (i WorkerConfigArgs) ToWorkerConfigOutput() WorkerConfigOutput

func (WorkerConfigArgs) ToWorkerConfigOutputWithContext

func (i WorkerConfigArgs) ToWorkerConfigOutputWithContext(ctx context.Context) WorkerConfigOutput

func (WorkerConfigArgs) ToWorkerConfigPtrOutput

func (i WorkerConfigArgs) ToWorkerConfigPtrOutput() WorkerConfigPtrOutput

func (WorkerConfigArgs) ToWorkerConfigPtrOutputWithContext

func (i WorkerConfigArgs) ToWorkerConfigPtrOutputWithContext(ctx context.Context) WorkerConfigPtrOutput

type WorkerConfigInput

type WorkerConfigInput interface {
	pulumi.Input

	ToWorkerConfigOutput() WorkerConfigOutput
	ToWorkerConfigOutputWithContext(context.Context) WorkerConfigOutput
}

WorkerConfigInput is an input type that accepts WorkerConfigArgs and WorkerConfigOutput values. You can construct a concrete instance of `WorkerConfigInput` via:

WorkerConfigArgs{...}

type WorkerConfigOutput

type WorkerConfigOutput struct{ *pulumi.OutputState }

WorkerConfig defines the configuration to be used for a creating workers in the pool.

func (WorkerConfigOutput) DiskSizeGb

func (o WorkerConfigOutput) DiskSizeGb() pulumi.StringPtrOutput

Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If `0` is specified, Cloud Build will use a standard disk size. `disk_size` is overridden if you specify a different disk size in `build_options`. In this case, a VM with a disk size specified in the `build_options` will be created on demand at build time. For more information see https://cloud.google.com/cloud-build/docs/api/reference/rest/v1/projects.builds#buildoptions

func (WorkerConfigOutput) ElementType

func (WorkerConfigOutput) ElementType() reflect.Type

func (WorkerConfigOutput) MachineType

func (o WorkerConfigOutput) MachineType() pulumi.StringPtrOutput

Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool. `machine_type` is overridden if you specify a different machine type in `build_options`. In this case, the VM specified in the `build_options` will be created on demand at build time. For more information see https://cloud.google.com/cloud-build/docs/speeding-up-builds#using_custom_virtual_machine_sizes

func (WorkerConfigOutput) Network

The network definition used to create the worker. If this section is left empty, the workers will be created in WorkerPool.project_id on the default network.

func (WorkerConfigOutput) Tag

The tag applied to the worker, and the same tag used by the firewall rule. It is used to identify the Cloud Build workers among other VMs. The default value for tag is `worker`.

func (WorkerConfigOutput) ToWorkerConfigOutput

func (o WorkerConfigOutput) ToWorkerConfigOutput() WorkerConfigOutput

func (WorkerConfigOutput) ToWorkerConfigOutputWithContext

func (o WorkerConfigOutput) ToWorkerConfigOutputWithContext(ctx context.Context) WorkerConfigOutput

func (WorkerConfigOutput) ToWorkerConfigPtrOutput

func (o WorkerConfigOutput) ToWorkerConfigPtrOutput() WorkerConfigPtrOutput

func (WorkerConfigOutput) ToWorkerConfigPtrOutputWithContext

func (o WorkerConfigOutput) ToWorkerConfigPtrOutputWithContext(ctx context.Context) WorkerConfigPtrOutput

type WorkerConfigPtrInput

type WorkerConfigPtrInput interface {
	pulumi.Input

	ToWorkerConfigPtrOutput() WorkerConfigPtrOutput
	ToWorkerConfigPtrOutputWithContext(context.Context) WorkerConfigPtrOutput
}

WorkerConfigPtrInput is an input type that accepts WorkerConfigArgs, WorkerConfigPtr and WorkerConfigPtrOutput values. You can construct a concrete instance of `WorkerConfigPtrInput` via:

        WorkerConfigArgs{...}

or:

        nil

type WorkerConfigPtrOutput

type WorkerConfigPtrOutput struct{ *pulumi.OutputState }

func (WorkerConfigPtrOutput) DiskSizeGb

Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If `0` is specified, Cloud Build will use a standard disk size. `disk_size` is overridden if you specify a different disk size in `build_options`. In this case, a VM with a disk size specified in the `build_options` will be created on demand at build time. For more information see https://cloud.google.com/cloud-build/docs/api/reference/rest/v1/projects.builds#buildoptions

func (WorkerConfigPtrOutput) Elem

func (WorkerConfigPtrOutput) ElementType

func (WorkerConfigPtrOutput) ElementType() reflect.Type

func (WorkerConfigPtrOutput) MachineType

Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool. `machine_type` is overridden if you specify a different machine type in `build_options`. In this case, the VM specified in the `build_options` will be created on demand at build time. For more information see https://cloud.google.com/cloud-build/docs/speeding-up-builds#using_custom_virtual_machine_sizes

func (WorkerConfigPtrOutput) Network

The network definition used to create the worker. If this section is left empty, the workers will be created in WorkerPool.project_id on the default network.

func (WorkerConfigPtrOutput) Tag

The tag applied to the worker, and the same tag used by the firewall rule. It is used to identify the Cloud Build workers among other VMs. The default value for tag is `worker`.

func (WorkerConfigPtrOutput) ToWorkerConfigPtrOutput

func (o WorkerConfigPtrOutput) ToWorkerConfigPtrOutput() WorkerConfigPtrOutput

func (WorkerConfigPtrOutput) ToWorkerConfigPtrOutputWithContext

func (o WorkerConfigPtrOutput) ToWorkerConfigPtrOutputWithContext(ctx context.Context) WorkerConfigPtrOutput

type WorkerConfigResponse

type WorkerConfigResponse struct {
	// Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If `0` is specified, Cloud Build will use a standard disk size. `disk_size` is overridden if you specify a different disk size in `build_options`. In this case, a VM with a disk size specified in the `build_options` will be created on demand at build time. For more information see https://cloud.google.com/cloud-build/docs/api/reference/rest/v1/projects.builds#buildoptions
	DiskSizeGb string `pulumi:"diskSizeGb"`
	// Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool. `machine_type` is overridden if you specify a different machine type in `build_options`. In this case, the VM specified in the `build_options` will be created on demand at build time. For more information see https://cloud.google.com/cloud-build/docs/speeding-up-builds#using_custom_virtual_machine_sizes
	MachineType string `pulumi:"machineType"`
	// The network definition used to create the worker. If this section is left empty, the workers will be created in WorkerPool.project_id on the default network.
	Network NetworkResponse `pulumi:"network"`
	// The tag applied to the worker, and the same tag used by the firewall rule. It is used to identify the Cloud Build workers among other VMs. The default value for tag is `worker`.
	Tag string `pulumi:"tag"`
}

WorkerConfig defines the configuration to be used for a creating workers in the pool.

type WorkerConfigResponseOutput

type WorkerConfigResponseOutput struct{ *pulumi.OutputState }

WorkerConfig defines the configuration to be used for a creating workers in the pool.

func (WorkerConfigResponseOutput) DiskSizeGb

Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If `0` is specified, Cloud Build will use a standard disk size. `disk_size` is overridden if you specify a different disk size in `build_options`. In this case, a VM with a disk size specified in the `build_options` will be created on demand at build time. For more information see https://cloud.google.com/cloud-build/docs/api/reference/rest/v1/projects.builds#buildoptions

func (WorkerConfigResponseOutput) ElementType

func (WorkerConfigResponseOutput) ElementType() reflect.Type

func (WorkerConfigResponseOutput) MachineType

Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool. `machine_type` is overridden if you specify a different machine type in `build_options`. In this case, the VM specified in the `build_options` will be created on demand at build time. For more information see https://cloud.google.com/cloud-build/docs/speeding-up-builds#using_custom_virtual_machine_sizes

func (WorkerConfigResponseOutput) Network

The network definition used to create the worker. If this section is left empty, the workers will be created in WorkerPool.project_id on the default network.

func (WorkerConfigResponseOutput) Tag

The tag applied to the worker, and the same tag used by the firewall rule. It is used to identify the Cloud Build workers among other VMs. The default value for tag is `worker`.

func (WorkerConfigResponseOutput) ToWorkerConfigResponseOutput

func (o WorkerConfigResponseOutput) ToWorkerConfigResponseOutput() WorkerConfigResponseOutput

func (WorkerConfigResponseOutput) ToWorkerConfigResponseOutputWithContext

func (o WorkerConfigResponseOutput) ToWorkerConfigResponseOutputWithContext(ctx context.Context) WorkerConfigResponseOutput

type WorkerPool

type WorkerPool struct {
	pulumi.CustomResourceState

	// Time at which the request to create the `WorkerPool` was received.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Time at which the request to delete the `WorkerPool` was received.
	DeleteTime pulumi.StringOutput `pulumi:"deleteTime"`
	// User-defined name of the `WorkerPool`.
	Name    pulumi.StringOutput `pulumi:"name"`
	Project pulumi.StringOutput `pulumi:"project"`
	// 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.
	Regions pulumi.StringArrayOutput `pulumi:"regions"`
	// The service account used to manage the `WorkerPool`. The service account must have the Compute Instance Admin (Beta) permission at the project level.
	ServiceAccountEmail pulumi.StringOutput `pulumi:"serviceAccountEmail"`
	// WorkerPool Status.
	Status pulumi.StringOutput `pulumi:"status"`
	// Time at which the request to update the `WorkerPool` was received.
	UpdateTime pulumi.StringOutput `pulumi:"updateTime"`
	// Configuration to be used for a creating workers in the `WorkerPool`.
	WorkerConfig WorkerConfigResponseOutput `pulumi:"workerConfig"`
	// Total number of workers to be created across all requested regions.
	WorkerCount pulumi.StringOutput `pulumi:"workerCount"`
}

Creates a `WorkerPool` to run the builds, and returns the new worker pool.

func GetWorkerPool

func GetWorkerPool(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WorkerPoolState, opts ...pulumi.ResourceOption) (*WorkerPool, error)

GetWorkerPool gets an existing WorkerPool resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewWorkerPool

func NewWorkerPool(ctx *pulumi.Context,
	name string, args *WorkerPoolArgs, opts ...pulumi.ResourceOption) (*WorkerPool, error)

NewWorkerPool registers a new resource with the given unique name, arguments, and options.

func (*WorkerPool) ElementType

func (*WorkerPool) ElementType() reflect.Type

func (*WorkerPool) ToWorkerPoolOutput

func (i *WorkerPool) ToWorkerPoolOutput() WorkerPoolOutput

func (*WorkerPool) ToWorkerPoolOutputWithContext

func (i *WorkerPool) ToWorkerPoolOutputWithContext(ctx context.Context) WorkerPoolOutput

type WorkerPoolArgs

type WorkerPoolArgs struct {
	// User-defined name of the `WorkerPool`.
	Name pulumi.StringPtrInput
	// The project ID of the GCP project for which the `WorkerPool` is created.
	Project pulumi.StringPtrInput
	// 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.
	Regions WorkerPoolRegionsItemArrayInput
	// Configuration to be used for a creating workers in the `WorkerPool`.
	WorkerConfig WorkerConfigPtrInput
	// Total number of workers to be created across all requested regions.
	WorkerCount pulumi.StringPtrInput
}

The set of arguments for constructing a WorkerPool resource.

func (WorkerPoolArgs) ElementType

func (WorkerPoolArgs) ElementType() reflect.Type

type WorkerPoolInput

type WorkerPoolInput interface {
	pulumi.Input

	ToWorkerPoolOutput() WorkerPoolOutput
	ToWorkerPoolOutputWithContext(ctx context.Context) WorkerPoolOutput
}

type WorkerPoolOutput

type WorkerPoolOutput struct{ *pulumi.OutputState }

func (WorkerPoolOutput) CreateTime added in v0.19.0

func (o WorkerPoolOutput) CreateTime() pulumi.StringOutput

Time at which the request to create the `WorkerPool` was received.

func (WorkerPoolOutput) DeleteTime added in v0.19.0

func (o WorkerPoolOutput) DeleteTime() pulumi.StringOutput

Time at which the request to delete the `WorkerPool` was received.

func (WorkerPoolOutput) ElementType

func (WorkerPoolOutput) ElementType() reflect.Type

func (WorkerPoolOutput) Name added in v0.19.0

User-defined name of the `WorkerPool`.

func (WorkerPoolOutput) Project added in v0.19.0

func (o WorkerPoolOutput) Project() pulumi.StringOutput

func (WorkerPoolOutput) Regions added in v0.19.0

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.

func (WorkerPoolOutput) ServiceAccountEmail added in v0.19.0

func (o WorkerPoolOutput) ServiceAccountEmail() pulumi.StringOutput

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

func (WorkerPoolOutput) Status added in v0.19.0

WorkerPool Status.

func (WorkerPoolOutput) ToWorkerPoolOutput

func (o WorkerPoolOutput) ToWorkerPoolOutput() WorkerPoolOutput

func (WorkerPoolOutput) ToWorkerPoolOutputWithContext

func (o WorkerPoolOutput) ToWorkerPoolOutputWithContext(ctx context.Context) WorkerPoolOutput

func (WorkerPoolOutput) UpdateTime added in v0.19.0

func (o WorkerPoolOutput) UpdateTime() pulumi.StringOutput

Time at which the request to update the `WorkerPool` was received.

func (WorkerPoolOutput) WorkerConfig added in v0.19.0

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

func (WorkerPoolOutput) WorkerCount added in v0.19.0

func (o WorkerPoolOutput) WorkerCount() pulumi.StringOutput

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

type WorkerPoolRegionsItem added in v0.4.0

type WorkerPoolRegionsItem string

func (WorkerPoolRegionsItem) ElementType added in v0.4.0

func (WorkerPoolRegionsItem) ElementType() reflect.Type

func (WorkerPoolRegionsItem) ToStringOutput added in v0.4.0

func (e WorkerPoolRegionsItem) ToStringOutput() pulumi.StringOutput

func (WorkerPoolRegionsItem) ToStringOutputWithContext added in v0.4.0

func (e WorkerPoolRegionsItem) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput

func (WorkerPoolRegionsItem) ToStringPtrOutput added in v0.4.0

func (e WorkerPoolRegionsItem) ToStringPtrOutput() pulumi.StringPtrOutput

func (WorkerPoolRegionsItem) ToStringPtrOutputWithContext added in v0.4.0

func (e WorkerPoolRegionsItem) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput

func (WorkerPoolRegionsItem) ToWorkerPoolRegionsItemOutput added in v0.6.0

func (e WorkerPoolRegionsItem) ToWorkerPoolRegionsItemOutput() WorkerPoolRegionsItemOutput

func (WorkerPoolRegionsItem) ToWorkerPoolRegionsItemOutputWithContext added in v0.6.0

func (e WorkerPoolRegionsItem) ToWorkerPoolRegionsItemOutputWithContext(ctx context.Context) WorkerPoolRegionsItemOutput

func (WorkerPoolRegionsItem) ToWorkerPoolRegionsItemPtrOutput added in v0.6.0

func (e WorkerPoolRegionsItem) ToWorkerPoolRegionsItemPtrOutput() WorkerPoolRegionsItemPtrOutput

func (WorkerPoolRegionsItem) ToWorkerPoolRegionsItemPtrOutputWithContext added in v0.6.0

func (e WorkerPoolRegionsItem) ToWorkerPoolRegionsItemPtrOutputWithContext(ctx context.Context) WorkerPoolRegionsItemPtrOutput

type WorkerPoolRegionsItemArray added in v0.4.0

type WorkerPoolRegionsItemArray []WorkerPoolRegionsItem

func (WorkerPoolRegionsItemArray) ElementType added in v0.4.0

func (WorkerPoolRegionsItemArray) ElementType() reflect.Type

func (WorkerPoolRegionsItemArray) ToWorkerPoolRegionsItemArrayOutput added in v0.4.0

func (i WorkerPoolRegionsItemArray) ToWorkerPoolRegionsItemArrayOutput() WorkerPoolRegionsItemArrayOutput

func (WorkerPoolRegionsItemArray) ToWorkerPoolRegionsItemArrayOutputWithContext added in v0.4.0

func (i WorkerPoolRegionsItemArray) ToWorkerPoolRegionsItemArrayOutputWithContext(ctx context.Context) WorkerPoolRegionsItemArrayOutput

type WorkerPoolRegionsItemArrayInput added in v0.4.0

type WorkerPoolRegionsItemArrayInput interface {
	pulumi.Input

	ToWorkerPoolRegionsItemArrayOutput() WorkerPoolRegionsItemArrayOutput
	ToWorkerPoolRegionsItemArrayOutputWithContext(context.Context) WorkerPoolRegionsItemArrayOutput
}

WorkerPoolRegionsItemArrayInput is an input type that accepts WorkerPoolRegionsItemArray and WorkerPoolRegionsItemArrayOutput values. You can construct a concrete instance of `WorkerPoolRegionsItemArrayInput` via:

WorkerPoolRegionsItemArray{ WorkerPoolRegionsItemArgs{...} }

type WorkerPoolRegionsItemArrayOutput added in v0.4.0

type WorkerPoolRegionsItemArrayOutput struct{ *pulumi.OutputState }

func (WorkerPoolRegionsItemArrayOutput) ElementType added in v0.4.0

func (WorkerPoolRegionsItemArrayOutput) Index added in v0.4.0

func (WorkerPoolRegionsItemArrayOutput) ToWorkerPoolRegionsItemArrayOutput added in v0.4.0

func (o WorkerPoolRegionsItemArrayOutput) ToWorkerPoolRegionsItemArrayOutput() WorkerPoolRegionsItemArrayOutput

func (WorkerPoolRegionsItemArrayOutput) ToWorkerPoolRegionsItemArrayOutputWithContext added in v0.4.0

func (o WorkerPoolRegionsItemArrayOutput) ToWorkerPoolRegionsItemArrayOutputWithContext(ctx context.Context) WorkerPoolRegionsItemArrayOutput

type WorkerPoolRegionsItemInput added in v0.6.0

type WorkerPoolRegionsItemInput interface {
	pulumi.Input

	ToWorkerPoolRegionsItemOutput() WorkerPoolRegionsItemOutput
	ToWorkerPoolRegionsItemOutputWithContext(context.Context) WorkerPoolRegionsItemOutput
}

WorkerPoolRegionsItemInput is an input type that accepts WorkerPoolRegionsItemArgs and WorkerPoolRegionsItemOutput values. You can construct a concrete instance of `WorkerPoolRegionsItemInput` via:

WorkerPoolRegionsItemArgs{...}

type WorkerPoolRegionsItemOutput added in v0.6.0

type WorkerPoolRegionsItemOutput struct{ *pulumi.OutputState }

func (WorkerPoolRegionsItemOutput) ElementType added in v0.6.0

func (WorkerPoolRegionsItemOutput) ToStringOutput added in v0.6.0

func (o WorkerPoolRegionsItemOutput) ToStringOutput() pulumi.StringOutput

func (WorkerPoolRegionsItemOutput) ToStringOutputWithContext added in v0.6.0

func (o WorkerPoolRegionsItemOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput

func (WorkerPoolRegionsItemOutput) ToStringPtrOutput added in v0.6.0

func (o WorkerPoolRegionsItemOutput) ToStringPtrOutput() pulumi.StringPtrOutput

func (WorkerPoolRegionsItemOutput) ToStringPtrOutputWithContext added in v0.6.0

func (o WorkerPoolRegionsItemOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput

func (WorkerPoolRegionsItemOutput) ToWorkerPoolRegionsItemOutput added in v0.6.0

func (o WorkerPoolRegionsItemOutput) ToWorkerPoolRegionsItemOutput() WorkerPoolRegionsItemOutput

func (WorkerPoolRegionsItemOutput) ToWorkerPoolRegionsItemOutputWithContext added in v0.6.0

func (o WorkerPoolRegionsItemOutput) ToWorkerPoolRegionsItemOutputWithContext(ctx context.Context) WorkerPoolRegionsItemOutput

func (WorkerPoolRegionsItemOutput) ToWorkerPoolRegionsItemPtrOutput added in v0.6.0

func (o WorkerPoolRegionsItemOutput) ToWorkerPoolRegionsItemPtrOutput() WorkerPoolRegionsItemPtrOutput

func (WorkerPoolRegionsItemOutput) ToWorkerPoolRegionsItemPtrOutputWithContext added in v0.6.0

func (o WorkerPoolRegionsItemOutput) ToWorkerPoolRegionsItemPtrOutputWithContext(ctx context.Context) WorkerPoolRegionsItemPtrOutput

type WorkerPoolRegionsItemPtrInput added in v0.6.0

type WorkerPoolRegionsItemPtrInput interface {
	pulumi.Input

	ToWorkerPoolRegionsItemPtrOutput() WorkerPoolRegionsItemPtrOutput
	ToWorkerPoolRegionsItemPtrOutputWithContext(context.Context) WorkerPoolRegionsItemPtrOutput
}

func WorkerPoolRegionsItemPtr added in v0.6.0

func WorkerPoolRegionsItemPtr(v string) WorkerPoolRegionsItemPtrInput

type WorkerPoolRegionsItemPtrOutput added in v0.6.0

type WorkerPoolRegionsItemPtrOutput struct{ *pulumi.OutputState }

func (WorkerPoolRegionsItemPtrOutput) Elem added in v0.6.0

func (WorkerPoolRegionsItemPtrOutput) ElementType added in v0.6.0

func (WorkerPoolRegionsItemPtrOutput) ToStringPtrOutput added in v0.6.0

func (WorkerPoolRegionsItemPtrOutput) ToStringPtrOutputWithContext added in v0.6.0

func (o WorkerPoolRegionsItemPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput

func (WorkerPoolRegionsItemPtrOutput) ToWorkerPoolRegionsItemPtrOutput added in v0.6.0

func (o WorkerPoolRegionsItemPtrOutput) ToWorkerPoolRegionsItemPtrOutput() WorkerPoolRegionsItemPtrOutput

func (WorkerPoolRegionsItemPtrOutput) ToWorkerPoolRegionsItemPtrOutputWithContext added in v0.6.0

func (o WorkerPoolRegionsItemPtrOutput) ToWorkerPoolRegionsItemPtrOutputWithContext(ctx context.Context) WorkerPoolRegionsItemPtrOutput

type WorkerPoolState

type WorkerPoolState struct {
}

func (WorkerPoolState) ElementType

func (WorkerPoolState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL