Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSourceSchema ¶
DataSourceSchema defines the schema for the CPU datasource.
func FillCreateBody ¶
func FillCreateBody(ctx context.Context, planValue Value, body *vms.CreateRequestBody, diags *diag.Diagnostics)
FillCreateBody fills the CreateRequestBody with the CPU settings from the Value.
In the 'create' context, v is the plan.
func FillUpdateBody ¶
func FillUpdateBody( ctx context.Context, planValue, stateValue Value, updateBody *vms.UpdateRequestBody, isClone bool, diags *diag.Diagnostics, )
FillUpdateBody fills the UpdateRequestBody with the CPU settings from the Value.
In the 'update' context, v is the plan and stateValue is the current state.
func ResourceSchema ¶
ResourceSchema defines the schema for the CPU resource.
Types ¶
type Model ¶
type Model struct { Affinity types.String `tfsdk:"affinity"` Architecture types.String `tfsdk:"architecture"` Cores types.Int64 `tfsdk:"cores"` Flags types.Set `tfsdk:"flags"` Hotplugged types.Int64 `tfsdk:"hotplugged"` Limit types.Int64 `tfsdk:"limit"` Numa types.Bool `tfsdk:"numa"` Sockets types.Int64 `tfsdk:"sockets"` Type types.String `tfsdk:"type"` Units types.Int64 `tfsdk:"units"` }
Model represents the CPU model.
Click to show internal directories.
Click to hide internal directories.