import { type Location } from "https://deno.land/x/jamf_school@0.5.0/models/mod.ts";
Location represents a physical site. All data in Jamf School must be assigned to a location. Locations are able to get the data that is assigned to them.
Many of the properties are nullable because the only required field when creating a location is its name.
Methods
(Read) Get all devices that belong to this location.
(Read) Get all device groups that belong to this location.
(Read) Get all users that belong to this location.
(Read) Get all user groups that belong to this location.
(Read) Get all apps that belong to this location.
(Read) Get all profiles that belong to this location.
(Read) Update this location's data.
Other locations created from this data will not be updated.
(Edit) Move devices to this location. This will also move the device's owner and any other devices they own.
Devices already in this location will not be affected.
Note that failing to move a device will not throw an exception.
(Edit) Move users and their devices to this location.
Users already in this location will not be affected.
Note that failing to move a user will not throw an exception.