package models

import (
	"github.com/hashicorp/terraform-plugin-framework-timeouts/datasource/timeouts"
	"github.com/hashicorp/terraform-plugin-framework/types"
)

type ListComputesModel struct {
	// request fields
	AccountID  types.Int64    `tfsdk:"account_id"`
	ComputeID  types.Int64    `tfsdk:"compute_id"`
	Name       types.String   `tfsdk:"name"`
	RGName     types.String   `tfsdk:"rg_name"`
	RGID       types.Int64    `tfsdk:"rg_id"`
	TechStatus types.String   `tfsdk:"tech_status"`
	IpAddress  types.String   `tfsdk:"ip_address"`
	ExtNetName types.String   `tfsdk:"extnet_name"`
	ExtNetID   types.Int64    `tfsdk:"extnet_id"`
	SortBy     types.String   `tfsdk:"sort_by"`
	Page       types.Int64    `tfsdk:"page"`
	Size       types.Int64    `tfsdk:"size"`
	Timeouts   timeouts.Value `tfsdk:"timeouts"`

	// response fields
	Items      []ItemComputeModel `tfsdk:"items"`
	EntryCount types.Int64        `tfsdk:"entry_count"`
}

type ItemComputeModel struct {
	AccountID      types.Int64  `tfsdk:"account_id"`
	AccountName    types.String `tfsdk:"account_name"`
	CPUs           types.Int64  `tfsdk:"cpus"`
	CreatedBy      types.String `tfsdk:"created_by"`
	CreatedTime    types.Int64  `tfsdk:"created_time"`
	DeletedBy      types.String `tfsdk:"deleted_by"`
	DeletedTime    types.Int64  `tfsdk:"deleted_time"`
	ID             types.Int64  `tfsdk:"compute_id"`
	Name           types.String `tfsdk:"compute_name"`
	RAM            types.Int64  `tfsdk:"ram"`
	Registered     types.Bool   `tfsdk:"registered"`
	RGID           types.Int64  `tfsdk:"rg_id"`
	RgName         types.String `tfsdk:"rg_name"`
	Status         types.String `tfsdk:"status"`
	TechStatus     types.String `tfsdk:"tech_status"`
	TotalDisksSize types.Int64  `tfsdk:"total_disks_size"`
	UpdatedBy      types.String `tfsdk:"updated_by"`
	UpdatedTime    types.Int64  `tfsdk:"updated_time"`
	UserManaged    types.Bool   `tfsdk:"user_managed"`
	VINSConnected  types.Int64  `tfsdk:"vins_connected"`
}
