azurerm_gallery_application_version

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 {
	// ConfigFile: string, optional
	ConfigFile terra.StringValue `hcl:"config_file,attr"`
	// EnableHealthCheck: bool, optional
	EnableHealthCheck terra.BoolValue `hcl:"enable_health_check,attr"`
	// EndOfLifeDate: string, optional
	EndOfLifeDate terra.StringValue `hcl:"end_of_life_date,attr"`
	// ExcludeFromLatest: bool, optional
	ExcludeFromLatest terra.BoolValue `hcl:"exclude_from_latest,attr"`
	// GalleryApplicationId: string, required
	GalleryApplicationId terra.StringValue `hcl:"gallery_application_id,attr" validate:"required"`
	// 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"`
	// PackageFile: string, optional
	PackageFile terra.StringValue `hcl:"package_file,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// ManageAction: required
	ManageAction *ManageAction `hcl:"manage_action,block" validate:"required"`
	// Source: required
	Source *Source `hcl:"source,block" validate:"required"`
	// TargetRegion: min=1
	TargetRegion []TargetRegion `hcl:"target_region,block" validate:"min=1"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_gallery_application_version.

type ManageAction

type ManageAction struct {
	// Install: string, required
	Install terra.StringValue `hcl:"install,attr" validate:"required"`
	// Remove: string, required
	Remove terra.StringValue `hcl:"remove,attr" validate:"required"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type ManageActionAttributes

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

func (ManageActionAttributes) Install

func (ManageActionAttributes) InternalRef

func (ma ManageActionAttributes) InternalRef() (terra.Reference, error)

func (ManageActionAttributes) InternalTokens

func (ma ManageActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ManageActionAttributes) InternalWithRef

func (ManageActionAttributes) Remove

func (ManageActionAttributes) Update

type ManageActionState

type ManageActionState struct {
	Install string `json:"install"`
	Remove  string `json:"remove"`
	Update  string `json:"update"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (agav *Resource) Attributes() azurermGalleryApplicationVersionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (agav *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (agav *Resource) State() (*azurermGalleryApplicationVersionState, bool)

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

func (*Resource) StateMust

func (agav *Resource) StateMust() *azurermGalleryApplicationVersionState

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

func (*Resource) Type

func (agav *Resource) Type() string

Type returns the Terraform object type for Resource.

type Source

type Source struct {
	// DefaultConfigurationLink: string, optional
	DefaultConfigurationLink terra.StringValue `hcl:"default_configuration_link,attr"`
	// MediaLink: string, required
	MediaLink terra.StringValue `hcl:"media_link,attr" validate:"required"`
}

type SourceAttributes

type SourceAttributes struct {
	// contains filtered or unexported fields
}
func (s SourceAttributes) DefaultConfigurationLink() terra.StringValue

func (SourceAttributes) InternalRef

func (s SourceAttributes) InternalRef() (terra.Reference, error)

func (SourceAttributes) InternalTokens

func (s SourceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SourceAttributes) InternalWithRef

func (s SourceAttributes) InternalWithRef(ref terra.Reference) SourceAttributes
func (s SourceAttributes) MediaLink() terra.StringValue

type SourceState

type SourceState struct {
	DefaultConfigurationLink string `json:"default_configuration_link"`
	MediaLink                string `json:"media_link"`
}

type TargetRegion

type TargetRegion struct {
	// ExcludeFromLatest: bool, optional
	ExcludeFromLatest terra.BoolValue `hcl:"exclude_from_latest,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RegionalReplicaCount: number, required
	RegionalReplicaCount terra.NumberValue `hcl:"regional_replica_count,attr" validate:"required"`
	// StorageAccountType: string, optional
	StorageAccountType terra.StringValue `hcl:"storage_account_type,attr"`
}

type TargetRegionAttributes

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

func (TargetRegionAttributes) ExcludeFromLatest

func (tr TargetRegionAttributes) ExcludeFromLatest() terra.BoolValue

func (TargetRegionAttributes) InternalRef

func (tr TargetRegionAttributes) InternalRef() (terra.Reference, error)

func (TargetRegionAttributes) InternalTokens

func (tr TargetRegionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TargetRegionAttributes) InternalWithRef

func (TargetRegionAttributes) Name

func (TargetRegionAttributes) RegionalReplicaCount

func (tr TargetRegionAttributes) RegionalReplicaCount() terra.NumberValue

func (TargetRegionAttributes) StorageAccountType

func (tr TargetRegionAttributes) StorageAccountType() terra.StringValue

type TargetRegionState

type TargetRegionState struct {
	ExcludeFromLatest    bool    `json:"exclude_from_latest"`
	Name                 string  `json:"name"`
	RegionalReplicaCount float64 `json:"regional_replica_count"`
	StorageAccountType   string  `json:"storage_account_type"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,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) Read

func (TimeoutsAttributes) Update

type TimeoutsState

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

Jump to

Keyboard shortcuts

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