Documentation ¶
Index ¶
- type Args
- type DataArgs
- type DataSource
- type GuestOsFeatures
- type GuestOsFeaturesAttributes
- func (gof GuestOsFeaturesAttributes) InternalRef() (terra.Reference, error)
- func (gof GuestOsFeaturesAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (gof GuestOsFeaturesAttributes) InternalWithRef(ref terra.Reference) GuestOsFeaturesAttributes
- func (gof GuestOsFeaturesAttributes) Type() terra.StringValue
- type GuestOsFeaturesState
- type ImageEncryptionKey
- type ImageEncryptionKeyAttributes
- func (iek ImageEncryptionKeyAttributes) InternalRef() (terra.Reference, error)
- func (iek ImageEncryptionKeyAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (iek ImageEncryptionKeyAttributes) InternalWithRef(ref terra.Reference) ImageEncryptionKeyAttributes
- func (iek ImageEncryptionKeyAttributes) KmsKeySelfLink() terra.StringValue
- func (iek ImageEncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue
- type ImageEncryptionKeyState
- type RawDisk
- type RawDiskAttributes
- func (rd RawDiskAttributes) ContainerType() terra.StringValue
- func (rd RawDiskAttributes) InternalRef() (terra.Reference, error)
- func (rd RawDiskAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (rd RawDiskAttributes) InternalWithRef(ref terra.Reference) RawDiskAttributes
- func (rd RawDiskAttributes) Sha1() terra.StringValue
- func (rd RawDiskAttributes) Source() terra.StringValue
- type RawDiskState
- type Resource
- func (gci *Resource) Attributes() googleComputeImageAttributes
- func (gci *Resource) Configuration() interface{}
- func (gci *Resource) DependOn() terra.Reference
- func (gci *Resource) Dependencies() terra.Dependencies
- func (gci *Resource) ImportState(state io.Reader) error
- func (gci *Resource) LifecycleManagement() *terra.Lifecycle
- func (gci *Resource) LocalName() string
- func (gci *Resource) State() (*googleComputeImageState, bool)
- func (gci *Resource) StateMust() *googleComputeImageState
- func (gci *Resource) Type() string
- type Timeouts
- type TimeoutsAttributes
- func (t TimeoutsAttributes) Create() terra.StringValue
- func (t TimeoutsAttributes) Delete() terra.StringValue
- func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)
- func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes
- func (t TimeoutsAttributes) Update() terra.StringValue
- type TimeoutsState
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 ¶
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 (gof GuestOsFeaturesAttributes) InternalWithRef(ref terra.Reference) GuestOsFeaturesAttributes
func (GuestOsFeaturesAttributes) Type ¶
func (gof GuestOsFeaturesAttributes) Type() terra.StringValue
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) InternalWithRef(ref terra.Reference) ImageEncryptionKeyAttributes
func (ImageEncryptionKeyAttributes) KmsKeySelfLink ¶
func (iek ImageEncryptionKeyAttributes) KmsKeySelfLink() terra.StringValue
func (ImageEncryptionKeyAttributes) KmsKeyServiceAccount ¶
func (iek ImageEncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue
type ImageEncryptionKeyState ¶
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 (rd RawDiskAttributes) Sha1() terra.StringValue
func (RawDiskAttributes) Source ¶
func (rd RawDiskAttributes) Source() terra.StringValue
type RawDiskState ¶
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 (*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) Dependencies ¶
func (gci *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block 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 (t TimeoutsAttributes) Create() terra.StringValue
func (TimeoutsAttributes) Delete ¶
func (t TimeoutsAttributes) Delete() terra.StringValue
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 ¶
func (t TimeoutsAttributes) Update() terra.StringValue