Documentation
¶
Index ¶
- Constants
- func NewWindowsAutopilotDeviceCSVImportEphemeralResource() ephemeral.EphemeralResource
- type DeviceEntry
- type WindowsAutopilotDeviceCSVImportEphemeralResource
- func (r *WindowsAutopilotDeviceCSVImportEphemeralResource) Close(ctx context.Context, req ephemeral.CloseRequest, resp *ephemeral.CloseResponse)
- func (r *WindowsAutopilotDeviceCSVImportEphemeralResource) Configure(ctx context.Context, req ephemeral.ConfigureRequest, ...)
- func (r *WindowsAutopilotDeviceCSVImportEphemeralResource) Metadata(_ context.Context, req ephemeral.MetadataRequest, ...)
- func (r *WindowsAutopilotDeviceCSVImportEphemeralResource) Open(ctx context.Context, req ephemeral.OpenRequest, resp *ephemeral.OpenResponse)
- func (r *WindowsAutopilotDeviceCSVImportEphemeralResource) Renew(ctx context.Context, req ephemeral.RenewRequest, resp *ephemeral.RenewResponse)
- func (r *WindowsAutopilotDeviceCSVImportEphemeralResource) Schema(_ context.Context, _ ephemeral.SchemaRequest, resp *ephemeral.SchemaResponse)
- func (r *WindowsAutopilotDeviceCSVImportEphemeralResource) ValidateConfig(ctx context.Context, req ephemeral.ValidateConfigRequest, ...)
- type WindowsAutopilotDeviceCSVImportModel
Constants ¶
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 ¶
func (r *WindowsAutopilotDeviceCSVImportEphemeralResource) Close(ctx context.Context, req ephemeral.CloseRequest, resp *ephemeral.CloseResponse)
Close is called when the ephemeral resource is no longer needed
func (*WindowsAutopilotDeviceCSVImportEphemeralResource) Configure ¶
func (r *WindowsAutopilotDeviceCSVImportEphemeralResource) Configure(ctx context.Context, req ephemeral.ConfigureRequest, resp *ephemeral.ConfigureResponse)
Configure is called to pass the provider configured client to the resource
func (*WindowsAutopilotDeviceCSVImportEphemeralResource) Metadata ¶
func (r *WindowsAutopilotDeviceCSVImportEphemeralResource) Metadata(_ context.Context, req ephemeral.MetadataRequest, resp *ephemeral.MetadataResponse)
Metadata returns the resource type name
func (*WindowsAutopilotDeviceCSVImportEphemeralResource) Open ¶
func (r *WindowsAutopilotDeviceCSVImportEphemeralResource) Open(ctx context.Context, req ephemeral.OpenRequest, resp *ephemeral.OpenResponse)
Open is called when the ephemeral resource is created
func (*WindowsAutopilotDeviceCSVImportEphemeralResource) Renew ¶
func (r *WindowsAutopilotDeviceCSVImportEphemeralResource) Renew(ctx context.Context, req ephemeral.RenewRequest, resp *ephemeral.RenewResponse)
Renew is called when the ephemeral resource needs to be renewed
func (*WindowsAutopilotDeviceCSVImportEphemeralResource) Schema ¶
func (r *WindowsAutopilotDeviceCSVImportEphemeralResource) Schema(_ context.Context, _ ephemeral.SchemaRequest, resp *ephemeral.SchemaResponse)
Schema defines the schema for the ephemeral resource
func (*WindowsAutopilotDeviceCSVImportEphemeralResource) ValidateConfig ¶
func (r *WindowsAutopilotDeviceCSVImportEphemeralResource) ValidateConfig(ctx context.Context, req ephemeral.ValidateConfigRequest, resp *ephemeral.ValidateConfigResponse)
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