v1beta1

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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LookupWorkerPoolArgs added in v0.4.0

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

type LookupWorkerPoolOutputArgs added in v0.8.0

type LookupWorkerPoolOutputArgs struct {
	Location     pulumi.StringInput    `pulumi:"location"`
	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 {
	// User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
	Annotations map[string]string `pulumi:"annotations"`
	// 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"`
	// A user-specified, human-readable name for the `WorkerPool`. If provided, this value must be 1-63 characters.
	DisplayName string `pulumi:"displayName"`
	// Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.
	Etag string `pulumi:"etag"`
	// The resource name of the `WorkerPool`, with format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The value of `{worker_pool}` is provided by `worker_pool_id` in `CreateWorkerPool` request and the value of `{location}` is determined by the endpoint accessed.
	Name string `pulumi:"name"`
	// Network configuration for the `WorkerPool`.
	NetworkConfig NetworkConfigResponse `pulumi:"networkConfig"`
	// `WorkerPool` state.
	State string `pulumi:"state"`
	// A unique identifier for the `WorkerPool`.
	Uid string `pulumi:"uid"`
	// Time at which the request to update the `WorkerPool` was received.
	UpdateTime string `pulumi:"updateTime"`
	// Worker configuration for the `WorkerPool`.
	WorkerConfig WorkerConfigResponse `pulumi:"workerConfig"`
}

func LookupWorkerPool added in v0.4.0

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

Returns details of a `WorkerPool`.

type LookupWorkerPoolResultOutput added in v0.8.0

type LookupWorkerPoolResultOutput struct{ *pulumi.OutputState }

func LookupWorkerPoolOutput added in v0.8.0

func (LookupWorkerPoolResultOutput) Annotations added in v0.9.0

User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

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) DisplayName added in v0.9.0

A user-specified, human-readable name for the `WorkerPool`. If provided, this value must be 1-63 characters.

func (LookupWorkerPoolResultOutput) ElementType added in v0.8.0

func (LookupWorkerPoolResultOutput) Etag added in v0.9.0

Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.

func (LookupWorkerPoolResultOutput) Name added in v0.8.0

The resource name of the `WorkerPool`, with format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The value of `{worker_pool}` is provided by `worker_pool_id` in `CreateWorkerPool` request and the value of `{location}` is determined by the endpoint accessed.

func (LookupWorkerPoolResultOutput) NetworkConfig added in v0.8.0

Network configuration for the `WorkerPool`.

func (LookupWorkerPoolResultOutput) State added in v0.8.0

`WorkerPool` state.

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) Uid added in v0.9.0

A unique identifier for the `WorkerPool`.

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

Worker configuration for the `WorkerPool`.

type NetworkConfig

type NetworkConfig struct {
	// Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to `WorkerPool.project_id` on the service producer network. Must be in the format `projects/{project}/global/networks/{network}`, where `{project}` is a project number, such as `12345`, and `{network}` is the name of a VPC network in the project. See [Understanding network configuration options](https://cloud.google.com/cloud-build/docs/custom-workers/set-up-custom-worker-pool-environment#understanding_the_network_configuration_options)
	PeeredNetwork string `pulumi:"peeredNetwork"`
}

Network describes the network configuration for a `WorkerPool`.

type NetworkConfigArgs

type NetworkConfigArgs struct {
	// Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to `WorkerPool.project_id` on the service producer network. Must be in the format `projects/{project}/global/networks/{network}`, where `{project}` is a project number, such as `12345`, and `{network}` is the name of a VPC network in the project. See [Understanding network configuration options](https://cloud.google.com/cloud-build/docs/custom-workers/set-up-custom-worker-pool-environment#understanding_the_network_configuration_options)
	PeeredNetwork pulumi.StringInput `pulumi:"peeredNetwork"`
}

Network describes the network configuration for a `WorkerPool`.

func (NetworkConfigArgs) ElementType

func (NetworkConfigArgs) ElementType() reflect.Type

func (NetworkConfigArgs) ToNetworkConfigOutput

func (i NetworkConfigArgs) ToNetworkConfigOutput() NetworkConfigOutput

func (NetworkConfigArgs) ToNetworkConfigOutputWithContext

func (i NetworkConfigArgs) ToNetworkConfigOutputWithContext(ctx context.Context) NetworkConfigOutput

func (NetworkConfigArgs) ToNetworkConfigPtrOutput

func (i NetworkConfigArgs) ToNetworkConfigPtrOutput() NetworkConfigPtrOutput

func (NetworkConfigArgs) ToNetworkConfigPtrOutputWithContext

func (i NetworkConfigArgs) ToNetworkConfigPtrOutputWithContext(ctx context.Context) NetworkConfigPtrOutput

type NetworkConfigInput

type NetworkConfigInput interface {
	pulumi.Input

	ToNetworkConfigOutput() NetworkConfigOutput
	ToNetworkConfigOutputWithContext(context.Context) NetworkConfigOutput
}

NetworkConfigInput is an input type that accepts NetworkConfigArgs and NetworkConfigOutput values. You can construct a concrete instance of `NetworkConfigInput` via:

NetworkConfigArgs{...}

type NetworkConfigOutput

type NetworkConfigOutput struct{ *pulumi.OutputState }

Network describes the network configuration for a `WorkerPool`.

func (NetworkConfigOutput) ElementType

func (NetworkConfigOutput) ElementType() reflect.Type

func (NetworkConfigOutput) PeeredNetwork

func (o NetworkConfigOutput) PeeredNetwork() pulumi.StringOutput

Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to `WorkerPool.project_id` on the service producer network. Must be in the format `projects/{project}/global/networks/{network}`, where `{project}` is a project number, such as `12345`, and `{network}` is the name of a VPC network in the project. See [Understanding network configuration options](https://cloud.google.com/cloud-build/docs/custom-workers/set-up-custom-worker-pool-environment#understanding_the_network_configuration_options)

func (NetworkConfigOutput) ToNetworkConfigOutput

func (o NetworkConfigOutput) ToNetworkConfigOutput() NetworkConfigOutput

func (NetworkConfigOutput) ToNetworkConfigOutputWithContext

func (o NetworkConfigOutput) ToNetworkConfigOutputWithContext(ctx context.Context) NetworkConfigOutput

func (NetworkConfigOutput) ToNetworkConfigPtrOutput

func (o NetworkConfigOutput) ToNetworkConfigPtrOutput() NetworkConfigPtrOutput

func (NetworkConfigOutput) ToNetworkConfigPtrOutputWithContext

func (o NetworkConfigOutput) ToNetworkConfigPtrOutputWithContext(ctx context.Context) NetworkConfigPtrOutput

type NetworkConfigPtrInput

type NetworkConfigPtrInput interface {
	pulumi.Input

	ToNetworkConfigPtrOutput() NetworkConfigPtrOutput
	ToNetworkConfigPtrOutputWithContext(context.Context) NetworkConfigPtrOutput
}

NetworkConfigPtrInput is an input type that accepts NetworkConfigArgs, NetworkConfigPtr and NetworkConfigPtrOutput values. You can construct a concrete instance of `NetworkConfigPtrInput` via:

        NetworkConfigArgs{...}

or:

        nil

type NetworkConfigPtrOutput

type NetworkConfigPtrOutput struct{ *pulumi.OutputState }

func (NetworkConfigPtrOutput) Elem

func (NetworkConfigPtrOutput) ElementType

func (NetworkConfigPtrOutput) ElementType() reflect.Type

func (NetworkConfigPtrOutput) PeeredNetwork

func (o NetworkConfigPtrOutput) PeeredNetwork() pulumi.StringPtrOutput

Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to `WorkerPool.project_id` on the service producer network. Must be in the format `projects/{project}/global/networks/{network}`, where `{project}` is a project number, such as `12345`, and `{network}` is the name of a VPC network in the project. See [Understanding network configuration options](https://cloud.google.com/cloud-build/docs/custom-workers/set-up-custom-worker-pool-environment#understanding_the_network_configuration_options)

func (NetworkConfigPtrOutput) ToNetworkConfigPtrOutput

func (o NetworkConfigPtrOutput) ToNetworkConfigPtrOutput() NetworkConfigPtrOutput

func (NetworkConfigPtrOutput) ToNetworkConfigPtrOutputWithContext

func (o NetworkConfigPtrOutput) ToNetworkConfigPtrOutputWithContext(ctx context.Context) NetworkConfigPtrOutput

type NetworkConfigResponse

type NetworkConfigResponse struct {
	// Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to `WorkerPool.project_id` on the service producer network. Must be in the format `projects/{project}/global/networks/{network}`, where `{project}` is a project number, such as `12345`, and `{network}` is the name of a VPC network in the project. See [Understanding network configuration options](https://cloud.google.com/cloud-build/docs/custom-workers/set-up-custom-worker-pool-environment#understanding_the_network_configuration_options)
	PeeredNetwork string `pulumi:"peeredNetwork"`
}

Network describes the network configuration for a `WorkerPool`.

type NetworkConfigResponseOutput

type NetworkConfigResponseOutput struct{ *pulumi.OutputState }

Network describes the network configuration for a `WorkerPool`.

func (NetworkConfigResponseOutput) ElementType

func (NetworkConfigResponseOutput) PeeredNetwork

Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to `WorkerPool.project_id` on the service producer network. Must be in the format `projects/{project}/global/networks/{network}`, where `{project}` is a project number, such as `12345`, and `{network}` is the name of a VPC network in the project. See [Understanding network configuration options](https://cloud.google.com/cloud-build/docs/custom-workers/set-up-custom-worker-pool-environment#understanding_the_network_configuration_options)

func (NetworkConfigResponseOutput) ToNetworkConfigResponseOutput

func (o NetworkConfigResponseOutput) ToNetworkConfigResponseOutput() NetworkConfigResponseOutput

func (NetworkConfigResponseOutput) ToNetworkConfigResponseOutputWithContext

func (o NetworkConfigResponseOutput) ToNetworkConfigResponseOutputWithContext(ctx context.Context) NetworkConfigResponseOutput

type WorkerConfig

type WorkerConfig struct {
	// Size of the disk attached to the worker, in GB. See [Worker pool config file](https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). Specify a value of up to 1000. If `0` is specified, Cloud Build will use a standard disk size.
	DiskSizeGb *string `pulumi:"diskSizeGb"`
	// Machine type of a worker, such as `n1-standard-1`. See [Worker pool config file](https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). If left blank, Cloud Build will use `n1-standard-1`.
	MachineType *string `pulumi:"machineType"`
	// If true, workers are created without any public address, which prevents network egress to public IPs.
	NoExternalIp *bool `pulumi:"noExternalIp"`
}

Defines the configuration to be used for creating workers in the pool.

type WorkerConfigArgs

type WorkerConfigArgs struct {
	// Size of the disk attached to the worker, in GB. See [Worker pool config file](https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). Specify a value of up to 1000. If `0` is specified, Cloud Build will use a standard disk size.
	DiskSizeGb pulumi.StringPtrInput `pulumi:"diskSizeGb"`
	// Machine type of a worker, such as `n1-standard-1`. See [Worker pool config file](https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). If left blank, Cloud Build will use `n1-standard-1`.
	MachineType pulumi.StringPtrInput `pulumi:"machineType"`
	// If true, workers are created without any public address, which prevents network egress to public IPs.
	NoExternalIp pulumi.BoolPtrInput `pulumi:"noExternalIp"`
}

Defines the configuration to be used for 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 }

Defines the configuration to be used for 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 [Worker pool config file](https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). Specify a value of up to 1000. If `0` is specified, Cloud Build will use a standard disk size.

func (WorkerConfigOutput) ElementType

func (WorkerConfigOutput) ElementType() reflect.Type

func (WorkerConfigOutput) MachineType

func (o WorkerConfigOutput) MachineType() pulumi.StringPtrOutput

Machine type of a worker, such as `n1-standard-1`. See [Worker pool config file](https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). If left blank, Cloud Build will use `n1-standard-1`.

func (WorkerConfigOutput) NoExternalIp

func (o WorkerConfigOutput) NoExternalIp() pulumi.BoolPtrOutput

If true, workers are created without any public address, which prevents network egress to public IPs.

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 [Worker pool config file](https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). Specify a value of up to 1000. If `0` is specified, Cloud Build will use a standard disk size.

func (WorkerConfigPtrOutput) Elem

func (WorkerConfigPtrOutput) ElementType

func (WorkerConfigPtrOutput) ElementType() reflect.Type

func (WorkerConfigPtrOutput) MachineType

Machine type of a worker, such as `n1-standard-1`. See [Worker pool config file](https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). If left blank, Cloud Build will use `n1-standard-1`.

func (WorkerConfigPtrOutput) NoExternalIp

func (o WorkerConfigPtrOutput) NoExternalIp() pulumi.BoolPtrOutput

If true, workers are created without any public address, which prevents network egress to public IPs.

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 [Worker pool config file](https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). Specify a value of up to 1000. If `0` is specified, Cloud Build will use a standard disk size.
	DiskSizeGb string `pulumi:"diskSizeGb"`
	// Machine type of a worker, such as `n1-standard-1`. See [Worker pool config file](https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). If left blank, Cloud Build will use `n1-standard-1`.
	MachineType string `pulumi:"machineType"`
	// If true, workers are created without any public address, which prevents network egress to public IPs.
	NoExternalIp bool `pulumi:"noExternalIp"`
}

Defines the configuration to be used for creating workers in the pool.

type WorkerConfigResponseOutput

type WorkerConfigResponseOutput struct{ *pulumi.OutputState }

Defines the configuration to be used for creating workers in the pool.

func (WorkerConfigResponseOutput) DiskSizeGb

Size of the disk attached to the worker, in GB. See [Worker pool config file](https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). Specify a value of up to 1000. If `0` is specified, Cloud Build will use a standard disk size.

func (WorkerConfigResponseOutput) ElementType

func (WorkerConfigResponseOutput) ElementType() reflect.Type

func (WorkerConfigResponseOutput) MachineType

Machine type of a worker, such as `n1-standard-1`. See [Worker pool config file](https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). If left blank, Cloud Build will use `n1-standard-1`.

func (WorkerConfigResponseOutput) NoExternalIp

func (o WorkerConfigResponseOutput) NoExternalIp() pulumi.BoolOutput

If true, workers are created without any public address, which prevents network egress to public IPs.

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

	// User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
	Annotations pulumi.StringMapOutput `pulumi:"annotations"`
	// 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"`
	// A user-specified, human-readable name for the `WorkerPool`. If provided, this value must be 1-63 characters.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.
	Etag     pulumi.StringOutput `pulumi:"etag"`
	Location pulumi.StringOutput `pulumi:"location"`
	// The resource name of the `WorkerPool`, with format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The value of `{worker_pool}` is provided by `worker_pool_id` in `CreateWorkerPool` request and the value of `{location}` is determined by the endpoint accessed.
	Name pulumi.StringOutput `pulumi:"name"`
	// Network configuration for the `WorkerPool`.
	NetworkConfig NetworkConfigResponseOutput `pulumi:"networkConfig"`
	Project       pulumi.StringOutput         `pulumi:"project"`
	// `WorkerPool` state.
	State pulumi.StringOutput `pulumi:"state"`
	// A unique identifier for the `WorkerPool`.
	Uid pulumi.StringOutput `pulumi:"uid"`
	// Time at which the request to update the `WorkerPool` was received.
	UpdateTime pulumi.StringOutput `pulumi:"updateTime"`
	// Worker configuration for the `WorkerPool`.
	WorkerConfig WorkerConfigResponseOutput `pulumi:"workerConfig"`
	// Required. Immutable. The ID to use for the `WorkerPool`, which will become the final component of the resource name. This value should be 1-63 characters, and valid characters are /a-z-/.
	WorkerPoolId pulumi.StringOutput `pulumi:"workerPoolId"`
}

Creates a `WorkerPool` to run the builds, and returns the new worker pool. NOTE: As of now, this method returns an `Operation` that is always complete. Auto-naming is currently not supported for this resource.

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 specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
	Annotations pulumi.StringMapInput
	// A user-specified, human-readable name for the `WorkerPool`. If provided, this value must be 1-63 characters.
	DisplayName pulumi.StringPtrInput
	Location    pulumi.StringPtrInput
	// Network configuration for the `WorkerPool`.
	NetworkConfig NetworkConfigPtrInput
	Project       pulumi.StringPtrInput
	// Worker configuration for the `WorkerPool`.
	WorkerConfig WorkerConfigPtrInput
	// Required. Immutable. The ID to use for the `WorkerPool`, which will become the final component of the resource name. This value should be 1-63 characters, and valid characters are /a-z-/.
	WorkerPoolId pulumi.StringInput
}

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) Annotations added in v0.19.0

func (o WorkerPoolOutput) Annotations() pulumi.StringMapOutput

User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

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) DisplayName added in v0.19.0

func (o WorkerPoolOutput) DisplayName() pulumi.StringOutput

A user-specified, human-readable name for the `WorkerPool`. If provided, this value must be 1-63 characters.

func (WorkerPoolOutput) ElementType

func (WorkerPoolOutput) ElementType() reflect.Type

func (WorkerPoolOutput) Etag added in v0.19.0

Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.

func (WorkerPoolOutput) Location added in v0.21.0

func (o WorkerPoolOutput) Location() pulumi.StringOutput

func (WorkerPoolOutput) Name added in v0.19.0

The resource name of the `WorkerPool`, with format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The value of `{worker_pool}` is provided by `worker_pool_id` in `CreateWorkerPool` request and the value of `{location}` is determined by the endpoint accessed.

func (WorkerPoolOutput) NetworkConfig added in v0.19.0

Network configuration for the `WorkerPool`.

func (WorkerPoolOutput) Project added in v0.21.0

func (o WorkerPoolOutput) Project() pulumi.StringOutput

func (WorkerPoolOutput) State added in v0.19.0

`WorkerPool` state.

func (WorkerPoolOutput) ToWorkerPoolOutput

func (o WorkerPoolOutput) ToWorkerPoolOutput() WorkerPoolOutput

func (WorkerPoolOutput) ToWorkerPoolOutputWithContext

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

func (WorkerPoolOutput) Uid added in v0.19.0

A unique identifier for the `WorkerPool`.

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

Worker configuration for the `WorkerPool`.

func (WorkerPoolOutput) WorkerPoolId added in v0.21.0

func (o WorkerPoolOutput) WorkerPoolId() pulumi.StringOutput

Required. Immutable. The ID to use for the `WorkerPool`, which will become the final component of the resource name. This value should be 1-63 characters, and valid characters are /a-z-/.

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