Documentation
¶
Index ¶
- func NewDeviceDataSource() datasource.DataSource
- type DeviceDataSource
- func (d *DeviceDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *DeviceDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *DeviceDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DeviceDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DeviceDataSourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeviceDataSource ¶
func NewDeviceDataSource() datasource.DataSource
NewDeviceDataSource returns a new instance of DeviceDataSource.
Types ¶
type DeviceDataSource ¶
type DeviceDataSource struct {
// contains filtered or unexported fields
}
DeviceDataSource implements the Terraform data source for Jamf devices.
func (*DeviceDataSource) Configure ¶
func (d *DeviceDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure sets up the API client for the data source from the provider configuration.
func (*DeviceDataSource) Metadata ¶
func (d *DeviceDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata sets the data source type name for the Terraform provider.
func (*DeviceDataSource) Read ¶
func (d *DeviceDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read fetches a device by ID and populates the Terraform state.
func (*DeviceDataSource) Schema ¶
func (d *DeviceDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the data source schema.
type DeviceDataSourceModel ¶
type DeviceDataSourceModel struct {
ID types.String `tfsdk:"id"`
SerialNumber types.String `tfsdk:"serial_number"`
Timeouts timeouts.Value `tfsdk:"timeouts"`
Name types.String `tfsdk:"name"`
Model types.String `tfsdk:"model"`
ModelIdentifier types.String `tfsdk:"model_identifier"`
LastInventoryUpdate types.String `tfsdk:"last_inventory_update_time"`
LastCheckIn types.String `tfsdk:"last_check_in_time"`
OperatingSystemVersion types.String `tfsdk:"operating_system_version"`
OperatingSystemName types.String `tfsdk:"operating_system_name"`
OperatingSystemBuild types.String `tfsdk:"operating_system_build"`
OperatingSystemSupplementalBuildVersion types.String `tfsdk:"operating_system_supplemental_build_version"`
OperatingSystemRapidSecurityResponse types.String `tfsdk:"operating_system_rapid_security_response"`
UserID types.String `tfsdk:"user_id"`
EnrollmentType types.String `tfsdk:"enrollment_type"`
LastEnrollmentTime types.String `tfsdk:"last_enrollment_time"`
Managed types.Bool `tfsdk:"managed"`
MDMCapable types.Bool `tfsdk:"mdm_capable"`
Supervised types.Bool `tfsdk:"supervised"`
HardwareMake types.String `tfsdk:"hardware_make"`
HardwareUDID types.String `tfsdk:"hardware_udid"`
HardwareBatteryHealth types.String `tfsdk:"hardware_battery_health"`
HardwareMacAddress types.String `tfsdk:"hardware_mac_address"`
HardwareStorageCapacity types.Int64 `tfsdk:"hardware_storage_capacity"`
HardwareStorageUsed types.Int64 `tfsdk:"hardware_storage_used"`
NetworkLastIPAddress types.String `tfsdk:"network_last_ip_address"`
NetworkLastReportedIPv4Address types.String `tfsdk:"network_last_reported_ipv4_address"`
NetworkLastReportedIPv6Address types.String `tfsdk:"network_last_reported_ipv6_address"`
SecurityBootstrapTokenEscrowedStatus types.String `tfsdk:"security_bootstrap_token_escrowed_status"`
SecurityHardwareEncryption types.Bool `tfsdk:"security_hardware_encryption"`
SecurityPasscodePresent types.Bool `tfsdk:"security_passcode_present"`
SecurityPasscodeCompliant types.Bool `tfsdk:"security_passcode_compliant"`
SecurityLostModeEnabled types.Bool `tfsdk:"security_lost_mode_enabled"`
}
DeviceDataSourceModel represents the Terraform data source model for a Jamf device lookup.
Click to show internal directories.
Click to hide internal directories.