google_cloudbuild_worker_pool

package
v0.0.0-...-4deecce Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// Annotations: map of string, optional
	Annotations terra.MapValue[terra.StringValue] `hcl:"annotations,attr"`
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// NetworkConfig: optional
	NetworkConfig *NetworkConfig `hcl:"network_config,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// WorkerConfig: optional
	WorkerConfig *WorkerConfig `hcl:"worker_config,block"`
}

Args contains the configurations for google_cloudbuild_worker_pool.

type NetworkConfig

type NetworkConfig struct {
	// PeeredNetwork: string, required
	PeeredNetwork terra.StringValue `hcl:"peered_network,attr" validate:"required"`
	// PeeredNetworkIpRange: string, optional
	PeeredNetworkIpRange terra.StringValue `hcl:"peered_network_ip_range,attr"`
}

type NetworkConfigAttributes

type NetworkConfigAttributes struct {
	// contains filtered or unexported fields
}

func (NetworkConfigAttributes) InternalRef

func (nc NetworkConfigAttributes) InternalRef() (terra.Reference, error)

func (NetworkConfigAttributes) InternalTokens

func (nc NetworkConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NetworkConfigAttributes) InternalWithRef

func (NetworkConfigAttributes) PeeredNetwork

func (nc NetworkConfigAttributes) PeeredNetwork() terra.StringValue

func (NetworkConfigAttributes) PeeredNetworkIpRange

func (nc NetworkConfigAttributes) PeeredNetworkIpRange() terra.StringValue

type NetworkConfigState

type NetworkConfigState struct {
	PeeredNetwork        string `json:"peered_network"`
	PeeredNetworkIpRange string `json:"peered_network_ip_range"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource google_cloudbuild_worker_pool.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcwp *Resource) Attributes() googleCloudbuildWorkerPoolAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (gcwp *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (gcwp *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (gcwp *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (gcwp *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (gcwp *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcwp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcwp *Resource) State() (*googleCloudbuildWorkerPoolState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (gcwp *Resource) StateMust() *googleCloudbuildWorkerPoolState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (gcwp *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

type TimeoutsAttributes struct {
	// contains filtered or unexported fields
}

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Update string `json:"update"`
}

type WorkerConfig

type WorkerConfig struct {
	// DiskSizeGb: number, optional
	DiskSizeGb terra.NumberValue `hcl:"disk_size_gb,attr"`
	// MachineType: string, optional
	MachineType terra.StringValue `hcl:"machine_type,attr"`
	// NoExternalIp: bool, optional
	NoExternalIp terra.BoolValue `hcl:"no_external_ip,attr"`
}

type WorkerConfigAttributes

type WorkerConfigAttributes struct {
	// contains filtered or unexported fields
}

func (WorkerConfigAttributes) DiskSizeGb

func (wc WorkerConfigAttributes) DiskSizeGb() terra.NumberValue

func (WorkerConfigAttributes) InternalRef

func (wc WorkerConfigAttributes) InternalRef() (terra.Reference, error)

func (WorkerConfigAttributes) InternalTokens

func (wc WorkerConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (WorkerConfigAttributes) InternalWithRef

func (WorkerConfigAttributes) MachineType

func (wc WorkerConfigAttributes) MachineType() terra.StringValue

func (WorkerConfigAttributes) NoExternalIp

func (wc WorkerConfigAttributes) NoExternalIp() terra.BoolValue

type WorkerConfigState

type WorkerConfigState struct {
	DiskSizeGb   float64 `json:"disk_size_gb"`
	MachineType  string  `json:"machine_type"`
	NoExternalIp bool    `json:"no_external_ip"`
}

Jump to

Keyboard shortcuts

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