windowsAutopilotDeviceCSVImport

package
v0.29.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderSerialNumber   = "Device Serial Number"
	HeaderWindowsProduct = "Windows Product ID"
	HeaderHardwareHash   = "Hardware Hash"
	HeaderGroupTag       = "Group Tag"
	HeaderAssignedUser   = "Assigned User"
)

Expected CSV headers

Variables

This section is empty.

Functions

func NewWindowsAutopilotDeviceCSVImportEphemeralResource

func NewWindowsAutopilotDeviceCSVImportEphemeralResource() ephemeral.EphemeralResource

NewWindowsAutopilotDeviceCSVImportEphemeralResource is a helper function to simplify provider implementation

Types

type DeviceEntry

type DeviceEntry struct {
	// Device Serial Number (required)
	SerialNumber types.String `tfsdk:"serial_number"`

	// Windows Product ID (optional for admins, required for partners)
	WindowsProductID types.String `tfsdk:"windows_product_id"`

	// Hardware Hash (required)
	HardwareHash types.String `tfsdk:"hardware_hash"`

	// Group Tag (optional)
	GroupTag types.String `tfsdk:"group_tag"`

	// Assigned User (optional)
	AssignedUser types.String `tfsdk:"assigned_user"`
}

DeviceEntry represents a single device entry from a CSV file

type WindowsAutopilotDeviceCSVImportEphemeralResource

type WindowsAutopilotDeviceCSVImportEphemeralResource struct {
}

WindowsAutopilotDeviceCSVImportEphemeralResource is the ephemeral resource implementation

func (*WindowsAutopilotDeviceCSVImportEphemeralResource) Close

Close is called when the ephemeral resource is no longer needed

func (*WindowsAutopilotDeviceCSVImportEphemeralResource) Configure

Configure is called to pass the provider configured client to the resource

func (*WindowsAutopilotDeviceCSVImportEphemeralResource) Metadata

Metadata returns the resource type name

func (*WindowsAutopilotDeviceCSVImportEphemeralResource) Open

Open is called when the ephemeral resource is created

func (*WindowsAutopilotDeviceCSVImportEphemeralResource) Renew

Renew is called when the ephemeral resource needs to be renewed

func (*WindowsAutopilotDeviceCSVImportEphemeralResource) Schema

Schema defines the schema for the ephemeral resource

func (*WindowsAutopilotDeviceCSVImportEphemeralResource) ValidateConfig

ValidateConfig validates the configuration

type WindowsAutopilotDeviceCSVImportModel

type WindowsAutopilotDeviceCSVImportModel struct {
	// Path to the CSV file containing device information
	FilePath types.String `tfsdk:"file_path"`

	// Devices imported from the CSV file
	Devices []DeviceEntry `tfsdk:"devices"`
}

WindowsAutopilotDeviceCSVImportModel represents the ephemeral resource model for importing Windows Autopilot devices from a CSV file

Jump to

Keyboard shortcuts

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