google_compute_image

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 {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// DiskSizeGb: number, optional
	DiskSizeGb terra.NumberValue `hcl:"disk_size_gb,attr"`
	// Family: string, optional
	Family terra.StringValue `hcl:"family,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Licenses: list of string, optional
	Licenses terra.ListValue[terra.StringValue] `hcl:"licenses,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// SourceDisk: string, optional
	SourceDisk terra.StringValue `hcl:"source_disk,attr"`
	// SourceImage: string, optional
	SourceImage terra.StringValue `hcl:"source_image,attr"`
	// SourceSnapshot: string, optional
	SourceSnapshot terra.StringValue `hcl:"source_snapshot,attr"`
	// StorageLocations: list of string, optional
	StorageLocations terra.ListValue[terra.StringValue] `hcl:"storage_locations,attr"`
	// GuestOsFeatures: min=0
	GuestOsFeatures []GuestOsFeatures `hcl:"guest_os_features,block" validate:"min=0"`
	// ImageEncryptionKey: optional
	ImageEncryptionKey *ImageEncryptionKey `hcl:"image_encryption_key,block"`
	// RawDisk: optional
	RawDisk *RawDisk `hcl:"raw_disk,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_compute_image.

type DataArgs

type DataArgs struct {
	// Family: string, optional
	Family terra.StringValue `hcl:"family,attr"`
	// Filter: string, optional
	Filter terra.StringValue `hcl:"filter,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// MostRecent: bool, optional
	MostRecent terra.BoolValue `hcl:"most_recent,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
}

DataArgs contains the configurations for google_compute_image.

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource google_compute_image.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (gci *DataSource) Attributes() dataGoogleComputeImageAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (gci *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (gci *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (gci *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type GuestOsFeatures

type GuestOsFeatures struct {
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type GuestOsFeaturesAttributes

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

func (GuestOsFeaturesAttributes) InternalRef

func (gof GuestOsFeaturesAttributes) InternalRef() (terra.Reference, error)

func (GuestOsFeaturesAttributes) InternalTokens

func (gof GuestOsFeaturesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GuestOsFeaturesAttributes) InternalWithRef

func (GuestOsFeaturesAttributes) Type

type GuestOsFeaturesState

type GuestOsFeaturesState struct {
	Type string `json:"type"`
}

type ImageEncryptionKey

type ImageEncryptionKey struct {
	// KmsKeySelfLink: string, optional
	KmsKeySelfLink terra.StringValue `hcl:"kms_key_self_link,attr"`
	// KmsKeyServiceAccount: string, optional
	KmsKeyServiceAccount terra.StringValue `hcl:"kms_key_service_account,attr"`
}

type ImageEncryptionKeyAttributes

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

func (ImageEncryptionKeyAttributes) InternalRef

func (iek ImageEncryptionKeyAttributes) InternalRef() (terra.Reference, error)

func (ImageEncryptionKeyAttributes) InternalTokens

func (iek ImageEncryptionKeyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ImageEncryptionKeyAttributes) InternalWithRef

func (iek ImageEncryptionKeyAttributes) KmsKeySelfLink() terra.StringValue

func (ImageEncryptionKeyAttributes) KmsKeyServiceAccount

func (iek ImageEncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue

type ImageEncryptionKeyState

type ImageEncryptionKeyState struct {
	KmsKeySelfLink       string `json:"kms_key_self_link"`
	KmsKeyServiceAccount string `json:"kms_key_service_account"`
}

type RawDisk

type RawDisk struct {
	// ContainerType: string, optional
	ContainerType terra.StringValue `hcl:"container_type,attr"`
	// Sha1: string, optional
	Sha1 terra.StringValue `hcl:"sha1,attr"`
	// Source: string, required
	Source terra.StringValue `hcl:"source,attr" validate:"required"`
}

type RawDiskAttributes

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

func (RawDiskAttributes) ContainerType

func (rd RawDiskAttributes) ContainerType() terra.StringValue

func (RawDiskAttributes) InternalRef

func (rd RawDiskAttributes) InternalRef() (terra.Reference, error)

func (RawDiskAttributes) InternalTokens

func (rd RawDiskAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RawDiskAttributes) InternalWithRef

func (rd RawDiskAttributes) InternalWithRef(ref terra.Reference) RawDiskAttributes

func (RawDiskAttributes) Sha1

func (RawDiskAttributes) Source

func (rd RawDiskAttributes) Source() terra.StringValue

type RawDiskState

type RawDiskState struct {
	ContainerType string `json:"container_type"`
	Sha1          string `json:"sha1"`
	Source        string `json:"source"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gci *Resource) Attributes() googleComputeImageAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gci *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gci *Resource) State() (*googleComputeImageState, bool)

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

func (*Resource) StateMust

func (gci *Resource) StateMust() *googleComputeImageState

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

func (*Resource) Type

func (gci *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"`
}

Jump to

Keyboard shortcuts

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