resource_core_virtual_machine

package
v1.50.2-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoreVirtualMachineResourceSchema

func CoreVirtualMachineResourceSchema(ctx context.Context) schema.Schema

Types

type CoreVirtualMachineModel

type CoreVirtualMachineModel struct {
	AssignFloatingIp        types.Bool       `tfsdk:"assign_floating_ip"`
	CallbackUrl             types.String     `tfsdk:"callback_url"`
	CreateBootableVolume    types.Bool       `tfsdk:"create_bootable_volume"`
	CreatedAt               types.String     `tfsdk:"created_at"`
	EnablePortRandomization types.Bool       `tfsdk:"enable_port_randomization"`
	Environment             EnvironmentValue `tfsdk:"environment"`
	EnvironmentName         types.String     `tfsdk:"environment_name"`
	FixedIp                 types.String     `tfsdk:"fixed_ip"`
	Flavor                  FlavorValue      `tfsdk:"flavor"`
	FlavorName              types.String     `tfsdk:"flavor_name"`
	FloatingIp              types.String     `tfsdk:"floating_ip"`
	FloatingIpStatus        types.String     `tfsdk:"floating_ip_status"`
	Id                      types.Int64      `tfsdk:"id"`
	Image                   ImageValue       `tfsdk:"image"`
	ImageName               types.String     `tfsdk:"image_name"`
	KeyName                 types.String     `tfsdk:"key_name"`
	Keypair                 KeypairValue     `tfsdk:"keypair"`
	Labels                  types.Set        `tfsdk:"labels"`
	Locked                  types.Bool       `tfsdk:"locked"`
	Name                    types.String     `tfsdk:"name"`
	Os                      types.String     `tfsdk:"os"`
	PortRandomization       types.Bool       `tfsdk:"port_randomization"`
	PortRandomizationStatus types.String     `tfsdk:"port_randomization_status"`
	PowerState              types.String     `tfsdk:"power_state"`
	RequiresPublicIp        types.Bool       `tfsdk:"requires_public_ip"`
	SecurityRules           types.List       `tfsdk:"security_rules"`
	Status                  types.String     `tfsdk:"status"`
	UserData                types.String     `tfsdk:"user_data"`
	VmId                    types.Int64      `tfsdk:"vm_id"`
	VmState                 types.String     `tfsdk:"vm_state"`
	VolumeAttachments       types.List       `tfsdk:"volume_attachments"`
	VolumeName              types.String     `tfsdk:"volume_name"`
	Profile                 types.List       `tfsdk:"profile"`
}

type EnvironmentType

type EnvironmentType struct {
	basetypes.ObjectType
}

func (EnvironmentType) Equal

func (t EnvironmentType) Equal(o attr.Type) bool

func (EnvironmentType) String

func (t EnvironmentType) String() string

func (EnvironmentType) ValueFromObject

func (EnvironmentType) ValueFromTerraform

func (t EnvironmentType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (EnvironmentType) ValueType

func (t EnvironmentType) ValueType(ctx context.Context) attr.Value

type EnvironmentValue

type EnvironmentValue struct {
	Features basetypes.ObjectValue `tfsdk:"features"`
	Id       basetypes.Int64Value  `tfsdk:"id"`
	Name     basetypes.StringValue `tfsdk:"name"`
	OrgId    basetypes.Int64Value  `tfsdk:"org_id"`
	Region   basetypes.StringValue `tfsdk:"region"`
	// contains filtered or unexported fields
}

func NewEnvironmentValue

func NewEnvironmentValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (EnvironmentValue, diag.Diagnostics)

func NewEnvironmentValueMust

func NewEnvironmentValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) EnvironmentValue

func NewEnvironmentValueNull

func NewEnvironmentValueNull() EnvironmentValue

func NewEnvironmentValueUnknown

func NewEnvironmentValueUnknown() EnvironmentValue

func (EnvironmentValue) AttributeTypes

func (v EnvironmentValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (EnvironmentValue) Equal

func (v EnvironmentValue) Equal(o attr.Value) bool

func (EnvironmentValue) IsNull

func (v EnvironmentValue) IsNull() bool

func (EnvironmentValue) IsUnknown

func (v EnvironmentValue) IsUnknown() bool

func (EnvironmentValue) String

func (v EnvironmentValue) String() string

func (EnvironmentValue) ToObjectValue

func (EnvironmentValue) ToTerraformValue

func (v EnvironmentValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (EnvironmentValue) Type

type FeaturesType

type FeaturesType struct {
	basetypes.ObjectType
}

func (FeaturesType) Equal

func (t FeaturesType) Equal(o attr.Type) bool

func (FeaturesType) String

func (t FeaturesType) String() string

func (FeaturesType) ValueFromObject

func (FeaturesType) ValueFromTerraform

func (t FeaturesType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (FeaturesType) ValueType

func (t FeaturesType) ValueType(ctx context.Context) attr.Value

type FeaturesValue

type FeaturesValue struct {
	GreenStatus      basetypes.StringValue `tfsdk:"green_status"`
	NetworkOptimised basetypes.BoolValue   `tfsdk:"network_optimised"`
	// contains filtered or unexported fields
}

func NewFeaturesValue

func NewFeaturesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (FeaturesValue, diag.Diagnostics)

func NewFeaturesValueMust

func NewFeaturesValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) FeaturesValue

func NewFeaturesValueNull

func NewFeaturesValueNull() FeaturesValue

func NewFeaturesValueUnknown

func NewFeaturesValueUnknown() FeaturesValue

func (FeaturesValue) AttributeTypes

func (v FeaturesValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (FeaturesValue) Equal

func (v FeaturesValue) Equal(o attr.Value) bool

func (FeaturesValue) IsNull

func (v FeaturesValue) IsNull() bool

func (FeaturesValue) IsUnknown

func (v FeaturesValue) IsUnknown() bool

func (FeaturesValue) String

func (v FeaturesValue) String() string

func (FeaturesValue) ToObjectValue

func (FeaturesValue) ToTerraformValue

func (v FeaturesValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (FeaturesValue) Type

func (v FeaturesValue) Type(ctx context.Context) attr.Type

type FlavorType

type FlavorType struct {
	basetypes.ObjectType
}

func (FlavorType) Equal

func (t FlavorType) Equal(o attr.Type) bool

func (FlavorType) String

func (t FlavorType) String() string

func (FlavorType) ValueFromObject

func (FlavorType) ValueFromTerraform

func (t FlavorType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (FlavorType) ValueType

func (t FlavorType) ValueType(ctx context.Context) attr.Value

type FlavorValue

type FlavorValue struct {
	Cpu       basetypes.Int64Value  `tfsdk:"cpu"`
	Disk      basetypes.Int64Value  `tfsdk:"disk"`
	Ephemeral basetypes.Int64Value  `tfsdk:"ephemeral"`
	Gpu       basetypes.StringValue `tfsdk:"gpu"`
	GpuCount  basetypes.Int64Value  `tfsdk:"gpu_count"`
	Id        basetypes.Int64Value  `tfsdk:"id"`
	Labels    basetypes.ListValue   `tfsdk:"labels"`
	Name      basetypes.StringValue `tfsdk:"name"`
	Ram       basetypes.NumberValue `tfsdk:"ram"`
	// contains filtered or unexported fields
}

func NewFlavorValue

func NewFlavorValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (FlavorValue, diag.Diagnostics)

func NewFlavorValueMust

func NewFlavorValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) FlavorValue

func NewFlavorValueNull

func NewFlavorValueNull() FlavorValue

func NewFlavorValueUnknown

func NewFlavorValueUnknown() FlavorValue

func (FlavorValue) AttributeTypes

func (v FlavorValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (FlavorValue) Equal

func (v FlavorValue) Equal(o attr.Value) bool

func (FlavorValue) IsNull

func (v FlavorValue) IsNull() bool

func (FlavorValue) IsUnknown

func (v FlavorValue) IsUnknown() bool

func (FlavorValue) String

func (v FlavorValue) String() string

func (FlavorValue) ToObjectValue

func (FlavorValue) ToTerraformValue

func (v FlavorValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (FlavorValue) Type

func (v FlavorValue) Type(ctx context.Context) attr.Type

type ImageType

type ImageType struct {
	basetypes.ObjectType
}

func (ImageType) Equal

func (t ImageType) Equal(o attr.Type) bool

func (ImageType) String

func (t ImageType) String() string

func (ImageType) ValueFromObject

func (ImageType) ValueFromTerraform

func (t ImageType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (ImageType) ValueType

func (t ImageType) ValueType(ctx context.Context) attr.Value

type ImageValue

type ImageValue struct {
	Name basetypes.StringValue `tfsdk:"name"`
	// contains filtered or unexported fields
}

func NewImageValue

func NewImageValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (ImageValue, diag.Diagnostics)

func NewImageValueMust

func NewImageValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) ImageValue

func NewImageValueNull

func NewImageValueNull() ImageValue

func NewImageValueUnknown

func NewImageValueUnknown() ImageValue

func (ImageValue) AttributeTypes

func (v ImageValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (ImageValue) Equal

func (v ImageValue) Equal(o attr.Value) bool

func (ImageValue) IsNull

func (v ImageValue) IsNull() bool

func (ImageValue) IsUnknown

func (v ImageValue) IsUnknown() bool

func (ImageValue) String

func (v ImageValue) String() string

func (ImageValue) ToObjectValue

func (ImageValue) ToTerraformValue

func (v ImageValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (ImageValue) Type

func (v ImageValue) Type(ctx context.Context) attr.Type

type KeypairType

type KeypairType struct {
	basetypes.ObjectType
}

func (KeypairType) Equal

func (t KeypairType) Equal(o attr.Type) bool

func (KeypairType) String

func (t KeypairType) String() string

func (KeypairType) ValueFromObject

func (KeypairType) ValueFromTerraform

func (t KeypairType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (KeypairType) ValueType

func (t KeypairType) ValueType(ctx context.Context) attr.Value

type KeypairValue

type KeypairValue struct {
	Name basetypes.StringValue `tfsdk:"name"`
	// contains filtered or unexported fields
}

func NewKeypairValue

func NewKeypairValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (KeypairValue, diag.Diagnostics)

func NewKeypairValueMust

func NewKeypairValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) KeypairValue

func NewKeypairValueNull

func NewKeypairValueNull() KeypairValue

func NewKeypairValueUnknown

func NewKeypairValueUnknown() KeypairValue

func (KeypairValue) AttributeTypes

func (v KeypairValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (KeypairValue) Equal

func (v KeypairValue) Equal(o attr.Value) bool

func (KeypairValue) IsNull

func (v KeypairValue) IsNull() bool

func (KeypairValue) IsUnknown

func (v KeypairValue) IsUnknown() bool

func (KeypairValue) String

func (v KeypairValue) String() string

func (KeypairValue) ToObjectValue

func (KeypairValue) ToTerraformValue

func (v KeypairValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (KeypairValue) Type

func (v KeypairValue) Type(ctx context.Context) attr.Type

type LabelsType

type LabelsType struct {
	basetypes.ObjectType
}

func (LabelsType) Equal

func (t LabelsType) Equal(o attr.Type) bool

func (LabelsType) String

func (t LabelsType) String() string

func (LabelsType) ValueFromObject

func (LabelsType) ValueFromTerraform

func (t LabelsType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (LabelsType) ValueType

func (t LabelsType) ValueType(ctx context.Context) attr.Value

type LabelsValue

type LabelsValue struct {
	Id    basetypes.Int64Value  `tfsdk:"id"`
	Label basetypes.StringValue `tfsdk:"label"`
	// contains filtered or unexported fields
}

func NewLabelsValue

func NewLabelsValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (LabelsValue, diag.Diagnostics)

func NewLabelsValueMust

func NewLabelsValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) LabelsValue

func NewLabelsValueNull

func NewLabelsValueNull() LabelsValue

func NewLabelsValueUnknown

func NewLabelsValueUnknown() LabelsValue

func (LabelsValue) AttributeTypes

func (v LabelsValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (LabelsValue) Equal

func (v LabelsValue) Equal(o attr.Value) bool

func (LabelsValue) IsNull

func (v LabelsValue) IsNull() bool

func (LabelsValue) IsUnknown

func (v LabelsValue) IsUnknown() bool

func (LabelsValue) String

func (v LabelsValue) String() string

func (LabelsValue) ToObjectValue

func (LabelsValue) ToTerraformValue

func (v LabelsValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (LabelsValue) Type

func (v LabelsValue) Type(ctx context.Context) attr.Type

type ProfileType

type ProfileType struct {
	basetypes.ObjectType
}

func (ProfileType) Equal

func (t ProfileType) Equal(o attr.Type) bool

func (ProfileType) String

func (t ProfileType) String() string

func (ProfileType) ValueFromObject

func (ProfileType) ValueFromTerraform

func (t ProfileType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (ProfileType) ValueType

func (t ProfileType) ValueType(ctx context.Context) attr.Value

type ProfileValue

type ProfileValue struct {
	Description basetypes.StringValue `tfsdk:"description"`
	Name        basetypes.StringValue `tfsdk:"name"`
	// contains filtered or unexported fields
}

func NewProfileValue

func NewProfileValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (ProfileValue, diag.Diagnostics)

func NewProfileValueMust

func NewProfileValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) ProfileValue

func NewProfileValueNull

func NewProfileValueNull() ProfileValue

func NewProfileValueUnknown

func NewProfileValueUnknown() ProfileValue

func (ProfileValue) AttributeTypes

func (v ProfileValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (ProfileValue) Equal

func (v ProfileValue) Equal(o attr.Value) bool

func (ProfileValue) IsNull

func (v ProfileValue) IsNull() bool

func (ProfileValue) IsUnknown

func (v ProfileValue) IsUnknown() bool

func (ProfileValue) String

func (v ProfileValue) String() string

func (ProfileValue) ToObjectValue

func (ProfileValue) ToTerraformValue

func (v ProfileValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (ProfileValue) Type

func (v ProfileValue) Type(ctx context.Context) attr.Type

type SecurityRulesType

type SecurityRulesType struct {
	basetypes.ObjectType
}

func (SecurityRulesType) Equal

func (t SecurityRulesType) Equal(o attr.Type) bool

func (SecurityRulesType) String

func (t SecurityRulesType) String() string

func (SecurityRulesType) ValueFromObject

func (SecurityRulesType) ValueFromTerraform

func (t SecurityRulesType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (SecurityRulesType) ValueType

func (t SecurityRulesType) ValueType(ctx context.Context) attr.Value

type SecurityRulesValue

type SecurityRulesValue struct {
	CreatedAt        basetypes.StringValue `tfsdk:"created_at"`
	Direction        basetypes.StringValue `tfsdk:"direction"`
	Ethertype        basetypes.StringValue `tfsdk:"ethertype"`
	Id               basetypes.Int64Value  `tfsdk:"id"`
	PortRangeMax     basetypes.Int64Value  `tfsdk:"port_range_max"`
	PortRangeMin     basetypes.Int64Value  `tfsdk:"port_range_min"`
	Protocol         basetypes.StringValue `tfsdk:"protocol"`
	RemoteIpPrefix   basetypes.StringValue `tfsdk:"remote_ip_prefix"`
	Status           basetypes.StringValue `tfsdk:"status"`
	VirtualMachineId basetypes.Int64Value  `tfsdk:"virtual_machine_id"`
	// contains filtered or unexported fields
}

func NewSecurityRulesValue

func NewSecurityRulesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (SecurityRulesValue, diag.Diagnostics)

func NewSecurityRulesValueMust

func NewSecurityRulesValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) SecurityRulesValue

func NewSecurityRulesValueNull

func NewSecurityRulesValueNull() SecurityRulesValue

func NewSecurityRulesValueUnknown

func NewSecurityRulesValueUnknown() SecurityRulesValue

func (SecurityRulesValue) AttributeTypes

func (v SecurityRulesValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (SecurityRulesValue) Equal

func (v SecurityRulesValue) Equal(o attr.Value) bool

func (SecurityRulesValue) IsNull

func (v SecurityRulesValue) IsNull() bool

func (SecurityRulesValue) IsUnknown

func (v SecurityRulesValue) IsUnknown() bool

func (SecurityRulesValue) String

func (v SecurityRulesValue) String() string

func (SecurityRulesValue) ToObjectValue

func (SecurityRulesValue) ToTerraformValue

func (v SecurityRulesValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (SecurityRulesValue) Type

type VolumeAttachmentsType

type VolumeAttachmentsType struct {
	basetypes.ObjectType
}

func (VolumeAttachmentsType) Equal

func (t VolumeAttachmentsType) Equal(o attr.Type) bool

func (VolumeAttachmentsType) String

func (t VolumeAttachmentsType) String() string

func (VolumeAttachmentsType) ValueFromObject

func (VolumeAttachmentsType) ValueFromTerraform

func (t VolumeAttachmentsType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (VolumeAttachmentsType) ValueType

func (t VolumeAttachmentsType) ValueType(ctx context.Context) attr.Value

type VolumeAttachmentsValue

type VolumeAttachmentsValue struct {
	CreatedAt basetypes.StringValue `tfsdk:"created_at"`
	Device    basetypes.StringValue `tfsdk:"device"`
	Status    basetypes.StringValue `tfsdk:"status"`
	Volume    basetypes.ObjectValue `tfsdk:"volume"`
	// contains filtered or unexported fields
}

func NewVolumeAttachmentsValue

func NewVolumeAttachmentsValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (VolumeAttachmentsValue, diag.Diagnostics)

func NewVolumeAttachmentsValueMust

func NewVolumeAttachmentsValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) VolumeAttachmentsValue

func NewVolumeAttachmentsValueNull

func NewVolumeAttachmentsValueNull() VolumeAttachmentsValue

func NewVolumeAttachmentsValueUnknown

func NewVolumeAttachmentsValueUnknown() VolumeAttachmentsValue

func (VolumeAttachmentsValue) AttributeTypes

func (v VolumeAttachmentsValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (VolumeAttachmentsValue) Equal

func (VolumeAttachmentsValue) IsNull

func (v VolumeAttachmentsValue) IsNull() bool

func (VolumeAttachmentsValue) IsUnknown

func (v VolumeAttachmentsValue) IsUnknown() bool

func (VolumeAttachmentsValue) String

func (v VolumeAttachmentsValue) String() string

func (VolumeAttachmentsValue) ToObjectValue

func (VolumeAttachmentsValue) ToTerraformValue

func (v VolumeAttachmentsValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (VolumeAttachmentsValue) Type

type VolumeType

type VolumeType struct {
	basetypes.ObjectType
}

func (VolumeType) Equal

func (t VolumeType) Equal(o attr.Type) bool

func (VolumeType) String

func (t VolumeType) String() string

func (VolumeType) ValueFromObject

func (VolumeType) ValueFromTerraform

func (t VolumeType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (VolumeType) ValueType

func (t VolumeType) ValueType(ctx context.Context) attr.Value

type VolumeValue

type VolumeValue struct {
	Bootable    basetypes.BoolValue   `tfsdk:"bootable"`
	Description basetypes.StringValue `tfsdk:"description"`
	Id          basetypes.Int64Value  `tfsdk:"id"`
	Name        basetypes.StringValue `tfsdk:"name"`
	Size        basetypes.Int64Value  `tfsdk:"size"`
	VolumeType  basetypes.StringValue `tfsdk:"volume_type"`
	// contains filtered or unexported fields
}

func NewVolumeValue

func NewVolumeValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (VolumeValue, diag.Diagnostics)

func NewVolumeValueMust

func NewVolumeValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) VolumeValue

func NewVolumeValueNull

func NewVolumeValueNull() VolumeValue

func NewVolumeValueUnknown

func NewVolumeValueUnknown() VolumeValue

func (VolumeValue) AttributeTypes

func (v VolumeValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (VolumeValue) Equal

func (v VolumeValue) Equal(o attr.Value) bool

func (VolumeValue) IsNull

func (v VolumeValue) IsNull() bool

func (VolumeValue) IsUnknown

func (v VolumeValue) IsUnknown() bool

func (VolumeValue) String

func (v VolumeValue) String() string

func (VolumeValue) ToObjectValue

func (VolumeValue) ToTerraformValue

func (v VolumeValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (VolumeValue) Type

func (v VolumeValue) Type(ctx context.Context) attr.Type

Jump to

Keyboard shortcuts

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