google_clouddeploy_target

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 AnthosCluster

type AnthosCluster struct {
	// Membership: string, optional
	Membership terra.StringValue `hcl:"membership,attr"`
}

type AnthosClusterAttributes

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

func (AnthosClusterAttributes) InternalRef

func (ac AnthosClusterAttributes) InternalRef() (terra.Reference, error)

func (AnthosClusterAttributes) InternalTokens

func (ac AnthosClusterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AnthosClusterAttributes) InternalWithRef

func (AnthosClusterAttributes) Membership

func (ac AnthosClusterAttributes) Membership() terra.StringValue

type AnthosClusterState

type AnthosClusterState struct {
	Membership string `json:"membership"`
}

type Args

type Args struct {
	// Annotations: map of string, optional
	Annotations terra.MapValue[terra.StringValue] `hcl:"annotations,attr"`
	// DeployParameters: map of string, optional
	DeployParameters terra.MapValue[terra.StringValue] `hcl:"deploy_parameters,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,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"`
	// RequireApproval: bool, optional
	RequireApproval terra.BoolValue `hcl:"require_approval,attr"`
	// AnthosCluster: optional
	AnthosCluster *AnthosCluster `hcl:"anthos_cluster,block"`
	// ExecutionConfigs: min=0
	ExecutionConfigs []ExecutionConfigs `hcl:"execution_configs,block" validate:"min=0"`
	// Gke: optional
	Gke *Gke `hcl:"gke,block"`
	// MultiTarget: optional
	MultiTarget *MultiTarget `hcl:"multi_target,block"`
	// Run: optional
	Run *Run `hcl:"run,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_clouddeploy_target.

type ExecutionConfigs

type ExecutionConfigs struct {
	// ArtifactStorage: string, optional
	ArtifactStorage terra.StringValue `hcl:"artifact_storage,attr"`
	// ExecutionTimeout: string, optional
	ExecutionTimeout terra.StringValue `hcl:"execution_timeout,attr"`
	// ServiceAccount: string, optional
	ServiceAccount terra.StringValue `hcl:"service_account,attr"`
	// Usages: list of string, required
	Usages terra.ListValue[terra.StringValue] `hcl:"usages,attr" validate:"required"`
	// WorkerPool: string, optional
	WorkerPool terra.StringValue `hcl:"worker_pool,attr"`
}

type ExecutionConfigsAttributes

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

func (ExecutionConfigsAttributes) ArtifactStorage

func (ec ExecutionConfigsAttributes) ArtifactStorage() terra.StringValue

func (ExecutionConfigsAttributes) ExecutionTimeout

func (ec ExecutionConfigsAttributes) ExecutionTimeout() terra.StringValue

func (ExecutionConfigsAttributes) InternalRef

func (ec ExecutionConfigsAttributes) InternalRef() (terra.Reference, error)

func (ExecutionConfigsAttributes) InternalTokens

func (ec ExecutionConfigsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ExecutionConfigsAttributes) InternalWithRef

func (ExecutionConfigsAttributes) ServiceAccount

func (ec ExecutionConfigsAttributes) ServiceAccount() terra.StringValue

func (ExecutionConfigsAttributes) Usages

func (ExecutionConfigsAttributes) WorkerPool

type ExecutionConfigsState

type ExecutionConfigsState struct {
	ArtifactStorage  string   `json:"artifact_storage"`
	ExecutionTimeout string   `json:"execution_timeout"`
	ServiceAccount   string   `json:"service_account"`
	Usages           []string `json:"usages"`
	WorkerPool       string   `json:"worker_pool"`
}

type Gke

type Gke struct {
	// Cluster: string, optional
	Cluster terra.StringValue `hcl:"cluster,attr"`
	// InternalIp: bool, optional
	InternalIp terra.BoolValue `hcl:"internal_ip,attr"`
}

type GkeAttributes

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

func (GkeAttributes) Cluster

func (g GkeAttributes) Cluster() terra.StringValue

func (GkeAttributes) InternalIp

func (g GkeAttributes) InternalIp() terra.BoolValue

func (GkeAttributes) InternalRef

func (g GkeAttributes) InternalRef() (terra.Reference, error)

func (GkeAttributes) InternalTokens

func (g GkeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GkeAttributes) InternalWithRef

func (g GkeAttributes) InternalWithRef(ref terra.Reference) GkeAttributes

type GkeState

type GkeState struct {
	Cluster    string `json:"cluster"`
	InternalIp bool   `json:"internal_ip"`
}

type MultiTarget

type MultiTarget struct {
	// TargetIds: list of string, required
	TargetIds terra.ListValue[terra.StringValue] `hcl:"target_ids,attr" validate:"required"`
}

type MultiTargetAttributes

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

func (MultiTargetAttributes) InternalRef

func (mt MultiTargetAttributes) InternalRef() (terra.Reference, error)

func (MultiTargetAttributes) InternalTokens

func (mt MultiTargetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MultiTargetAttributes) InternalWithRef

func (MultiTargetAttributes) TargetIds

type MultiTargetState

type MultiTargetState struct {
	TargetIds []string `json:"target_ids"`
}

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_clouddeploy_target.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gct *Resource) Attributes() googleClouddeployTargetAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gct *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gct *Resource) State() (*googleClouddeployTargetState, bool)

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

func (*Resource) StateMust

func (gct *Resource) StateMust() *googleClouddeployTargetState

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

func (*Resource) Type

func (gct *Resource) Type() string

Type returns the Terraform object type for Resource.

type Run

type Run struct {
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
}

type RunAttributes

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

func (RunAttributes) InternalRef

func (r RunAttributes) InternalRef() (terra.Reference, error)

func (RunAttributes) InternalTokens

func (r RunAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RunAttributes) InternalWithRef

func (r RunAttributes) InternalWithRef(ref terra.Reference) RunAttributes

func (RunAttributes) Location

func (r RunAttributes) Location() terra.StringValue

type RunState

type RunState struct {
	Location string `json:"location"`
}

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"`
}

Jump to

Keyboard shortcuts

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