google_compute_disk

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"`
	// EnableConfidentialCompute: bool, optional
	EnableConfidentialCompute terra.BoolValue `hcl:"enable_confidential_compute,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Image: string, optional
	Image terra.StringValue `hcl:"image,attr"`
	// Interface: string, optional
	Interface terra.StringValue `hcl:"interface,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"`
	// MultiWriter: bool, optional
	MultiWriter terra.BoolValue `hcl:"multi_writer,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// PhysicalBlockSizeBytes: number, optional
	PhysicalBlockSizeBytes terra.NumberValue `hcl:"physical_block_size_bytes,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// ProvisionedIops: number, optional
	ProvisionedIops terra.NumberValue `hcl:"provisioned_iops,attr"`
	// ProvisionedThroughput: number, optional
	ProvisionedThroughput terra.NumberValue `hcl:"provisioned_throughput,attr"`
	// ResourcePolicies: list of string, optional
	ResourcePolicies terra.ListValue[terra.StringValue] `hcl:"resource_policies,attr"`
	// Size: number, optional
	Size terra.NumberValue `hcl:"size,attr"`
	// Snapshot: string, optional
	Snapshot terra.StringValue `hcl:"snapshot,attr"`
	// SourceDisk: string, optional
	SourceDisk terra.StringValue `hcl:"source_disk,attr"`
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
	// Zone: string, optional
	Zone terra.StringValue `hcl:"zone,attr"`
	// AsyncPrimaryDisk: optional
	AsyncPrimaryDisk *AsyncPrimaryDisk `hcl:"async_primary_disk,block"`
	// DiskEncryptionKey: optional
	DiskEncryptionKey *DiskEncryptionKey `hcl:"disk_encryption_key,block"`
	// GuestOsFeatures: min=0
	GuestOsFeatures []GuestOsFeatures `hcl:"guest_os_features,block" validate:"min=0"`
	// SourceImageEncryptionKey: optional
	SourceImageEncryptionKey *SourceImageEncryptionKey `hcl:"source_image_encryption_key,block"`
	// SourceSnapshotEncryptionKey: optional
	SourceSnapshotEncryptionKey *SourceSnapshotEncryptionKey `hcl:"source_snapshot_encryption_key,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_compute_disk.

type AsyncPrimaryDisk

type AsyncPrimaryDisk struct {
	// Disk: string, required
	Disk terra.StringValue `hcl:"disk,attr" validate:"required"`
}

type AsyncPrimaryDiskAttributes

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

func (AsyncPrimaryDiskAttributes) Disk

func (AsyncPrimaryDiskAttributes) InternalRef

func (apd AsyncPrimaryDiskAttributes) InternalRef() (terra.Reference, error)

func (AsyncPrimaryDiskAttributes) InternalTokens

func (apd AsyncPrimaryDiskAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AsyncPrimaryDiskAttributes) InternalWithRef

type AsyncPrimaryDiskState

type AsyncPrimaryDiskState struct {
	Disk string `json:"disk"`
}

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Zone: string, optional
	Zone terra.StringValue `hcl:"zone,attr"`
}

DataArgs contains the configurations for google_compute_disk.

type DataAsyncPrimaryDiskAttributes

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

func (DataAsyncPrimaryDiskAttributes) Disk

func (DataAsyncPrimaryDiskAttributes) InternalRef

func (apd DataAsyncPrimaryDiskAttributes) InternalRef() (terra.Reference, error)

func (DataAsyncPrimaryDiskAttributes) InternalTokens

func (apd DataAsyncPrimaryDiskAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataAsyncPrimaryDiskAttributes) InternalWithRef

type DataAsyncPrimaryDiskState

type DataAsyncPrimaryDiskState struct {
	Disk string `json:"disk"`
}

type DataDiskEncryptionKeyAttributes

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

func (DataDiskEncryptionKeyAttributes) InternalRef

func (DataDiskEncryptionKeyAttributes) InternalTokens

func (dek DataDiskEncryptionKeyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataDiskEncryptionKeyAttributes) InternalWithRef

func (dek DataDiskEncryptionKeyAttributes) KmsKeySelfLink() terra.StringValue

func (DataDiskEncryptionKeyAttributes) KmsKeyServiceAccount

func (dek DataDiskEncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue

func (DataDiskEncryptionKeyAttributes) RawKey

func (DataDiskEncryptionKeyAttributes) RsaEncryptedKey

func (dek DataDiskEncryptionKeyAttributes) RsaEncryptedKey() terra.StringValue

func (DataDiskEncryptionKeyAttributes) Sha256

type DataDiskEncryptionKeyState

type DataDiskEncryptionKeyState struct {
	KmsKeySelfLink       string `json:"kms_key_self_link"`
	KmsKeyServiceAccount string `json:"kms_key_service_account"`
	RawKey               string `json:"raw_key"`
	RsaEncryptedKey      string `json:"rsa_encrypted_key"`
	Sha256               string `json:"sha256"`
}

type DataGuestOsFeaturesAttributes

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

func (DataGuestOsFeaturesAttributes) InternalRef

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

func (DataGuestOsFeaturesAttributes) InternalTokens

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

func (DataGuestOsFeaturesAttributes) InternalWithRef

func (DataGuestOsFeaturesAttributes) Type

type DataGuestOsFeaturesState

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

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource google_compute_disk.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (gcd *DataSource) Attributes() dataGoogleComputeDiskAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (gcd *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (gcd *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataSourceImageEncryptionKeyAttributes

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

func (DataSourceImageEncryptionKeyAttributes) InternalRef

func (DataSourceImageEncryptionKeyAttributes) InternalTokens

func (DataSourceImageEncryptionKeyAttributes) InternalWithRef

func (DataSourceImageEncryptionKeyAttributes) KmsKeyServiceAccount

func (siek DataSourceImageEncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue

func (DataSourceImageEncryptionKeyAttributes) RawKey

func (DataSourceImageEncryptionKeyAttributes) Sha256

type DataSourceImageEncryptionKeyState

type DataSourceImageEncryptionKeyState struct {
	KmsKeySelfLink       string `json:"kms_key_self_link"`
	KmsKeyServiceAccount string `json:"kms_key_service_account"`
	RawKey               string `json:"raw_key"`
	Sha256               string `json:"sha256"`
}

type DataSourceSnapshotEncryptionKeyAttributes

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

func (DataSourceSnapshotEncryptionKeyAttributes) InternalRef

func (DataSourceSnapshotEncryptionKeyAttributes) InternalTokens

func (DataSourceSnapshotEncryptionKeyAttributes) InternalWithRef

func (DataSourceSnapshotEncryptionKeyAttributes) KmsKeyServiceAccount

func (ssek DataSourceSnapshotEncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue

func (DataSourceSnapshotEncryptionKeyAttributes) RawKey

func (DataSourceSnapshotEncryptionKeyAttributes) Sha256

type DataSourceSnapshotEncryptionKeyState

type DataSourceSnapshotEncryptionKeyState struct {
	KmsKeySelfLink       string `json:"kms_key_self_link"`
	KmsKeyServiceAccount string `json:"kms_key_service_account"`
	RawKey               string `json:"raw_key"`
	Sha256               string `json:"sha256"`
}

type DiskEncryptionKey

type DiskEncryptionKey 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"`
	// RawKey: string, optional
	RawKey terra.StringValue `hcl:"raw_key,attr"`
	// RsaEncryptedKey: string, optional
	RsaEncryptedKey terra.StringValue `hcl:"rsa_encrypted_key,attr"`
}

type DiskEncryptionKeyAttributes

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

func (DiskEncryptionKeyAttributes) InternalRef

func (dek DiskEncryptionKeyAttributes) InternalRef() (terra.Reference, error)

func (DiskEncryptionKeyAttributes) InternalTokens

func (dek DiskEncryptionKeyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DiskEncryptionKeyAttributes) InternalWithRef

func (dek DiskEncryptionKeyAttributes) KmsKeySelfLink() terra.StringValue

func (DiskEncryptionKeyAttributes) KmsKeyServiceAccount

func (dek DiskEncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue

func (DiskEncryptionKeyAttributes) RawKey

func (DiskEncryptionKeyAttributes) RsaEncryptedKey

func (dek DiskEncryptionKeyAttributes) RsaEncryptedKey() terra.StringValue

func (DiskEncryptionKeyAttributes) Sha256

type DiskEncryptionKeyState

type DiskEncryptionKeyState struct {
	KmsKeySelfLink       string `json:"kms_key_self_link"`
	KmsKeyServiceAccount string `json:"kms_key_service_account"`
	RawKey               string `json:"raw_key"`
	RsaEncryptedKey      string `json:"rsa_encrypted_key"`
	Sha256               string `json:"sha256"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcd *Resource) Attributes() googleComputeDiskAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcd *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcd *Resource) State() (*googleComputeDiskState, bool)

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

func (*Resource) StateMust

func (gcd *Resource) StateMust() *googleComputeDiskState

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

func (*Resource) Type

func (gcd *Resource) Type() string

Type returns the Terraform object type for Resource.

type SourceImageEncryptionKey

type SourceImageEncryptionKey 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"`
	// RawKey: string, optional
	RawKey terra.StringValue `hcl:"raw_key,attr"`
}

type SourceImageEncryptionKeyAttributes

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

func (SourceImageEncryptionKeyAttributes) InternalRef

func (SourceImageEncryptionKeyAttributes) InternalTokens

func (siek SourceImageEncryptionKeyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SourceImageEncryptionKeyAttributes) InternalWithRef

func (SourceImageEncryptionKeyAttributes) KmsKeyServiceAccount

func (siek SourceImageEncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue

func (SourceImageEncryptionKeyAttributes) RawKey

func (SourceImageEncryptionKeyAttributes) Sha256

type SourceImageEncryptionKeyState

type SourceImageEncryptionKeyState struct {
	KmsKeySelfLink       string `json:"kms_key_self_link"`
	KmsKeyServiceAccount string `json:"kms_key_service_account"`
	RawKey               string `json:"raw_key"`
	Sha256               string `json:"sha256"`
}

type SourceSnapshotEncryptionKey

type SourceSnapshotEncryptionKey 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"`
	// RawKey: string, optional
	RawKey terra.StringValue `hcl:"raw_key,attr"`
}

type SourceSnapshotEncryptionKeyAttributes

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

func (SourceSnapshotEncryptionKeyAttributes) InternalRef

func (SourceSnapshotEncryptionKeyAttributes) InternalTokens

func (SourceSnapshotEncryptionKeyAttributes) InternalWithRef

func (SourceSnapshotEncryptionKeyAttributes) KmsKeyServiceAccount

func (ssek SourceSnapshotEncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue

func (SourceSnapshotEncryptionKeyAttributes) RawKey

func (SourceSnapshotEncryptionKeyAttributes) Sha256

type SourceSnapshotEncryptionKeyState

type SourceSnapshotEncryptionKeyState struct {
	KmsKeySelfLink       string `json:"kms_key_self_link"`
	KmsKeyServiceAccount string `json:"kms_key_service_account"`
	RawKey               string `json:"raw_key"`
	Sha256               string `json:"sha256"`
}

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