Documentation ¶
Overview ¶
classicapi_computer_extension_attributes.go Jamf Pro Classic Api - Computer Extension Attributes api reference: https://developer.jamf.com/jamf-pro/reference/computerextensionattributes Classic API requires the structs to support an XML data structure.
classicapi_computer_groups.go Jamf Pro Classic Api - Computer Groups api reference: https://developer.jamf.com/jamf-pro/reference/computergroups Classic API requires the structs to support an XML data structure.
classicapi_sites.go Jamf Pro Classic Api - Sites api reference: https://developer.jamf.com/jamf-pro/reference/sites Classic API requires the structs to support an XML data structure.
jamfproapi_volume_purchasing_locations.go Jamf Pro Api - Volume Purchasing Locations api reference: https://developer.jamf.com/jamf-pro/reference/get_v1-volume-purchasing-locations Jamf Pro API requires the structs to support an JSON data structure.
jamfproapi_volume_purchasing_subscriptions.go Jamf Pro Api - Volume Purchasing Subscriptions api reference: https://developer.jamf.com/jamf-pro/reference/get_v1-volume-purchasing-subscriptions Jamf Pro API requires the structs to support an JSON data structure.
http_logging.go
Index ¶
- Variables
- func LoadClientAuthConfig(filename string) (*http_client.ClientAuthConfig, error)
- type APIRole
- type AccountDataSubsetGroup
- type AccountDataSubsetGroups
- type AccountDataSubsetLdapServer
- type AccountDataSubsetMembers
- type AccountDataSubsetPrivileges
- type AccountDataSubsetSite
- type AccountDataSubsetUser
- type AccountDataSubsetUserItem
- type AccountDataSubsetUsers
- type AccountUser
- type AdvancedComputerSearchDataSubsetComputer
- type AdvancedComputerSearchDetail
- type AdvancedComputerSearchesCriteria
- type AdvancedComputerSearchesDisplayField
- type AdvancedComputerSearchesSiteDetail
- type AdvancedMobileDeviceSearchDetail
- type AdvancedMobileDeviceSearchesCriteria
- type AdvancedMobileDeviceSearchesDisplayField
- type AdvancedMobileDeviceSearchesDisplayFieldItem
- type AdvancedMobileDeviceSearchesMobileDevice
- type AdvancedMobileDeviceSearchesSite
- type AdvancedUserSearch
- type AdvancedUserSearchCriteriaDetail
- type AdvancedUserSearchCriterionDetail
- type AdvancedUserSearchDetail
- type AdvancedUserSearchSiteDetail
- type AdvancedUserSearchSiteDisplayFieldDetail
- type AdvancedUserSearchSiteUserDetail
- type AdvancedUserSearchSiteUsersDetail
- type AllowedFileExtensionDetail
- type ApiIntegration
- type Application
- type AssignmentItem
- type BYOProfileGeneralInfo
- type BYOProfileItem
- type BYOProfileSiteInfo
- type BeaconDetail
- type Building
- type BuildingAssignment
- type BuildingDetail
- type BuildingInfo
- type BuildingScope
- type CategoryInfo
- type CategoryItem
- type Certificate
- type ClassAppleTV
- type ClassDeviceGroup
- type ClassGroupID
- type ClassItem
- type ClassMeetingTime
- type ClassMeetingTimes
- type ClassMobileDevice
- type ClassSite
- type ClassStudent
- type ClassTeacher
- type ClassTeacherID
- type Client
- func (c *Client) CreateAccountByID(account *ResponseAccount) (*ResponseAccount, error)
- func (c *Client) CreateAccountGroupByID(accountGroup *ResponseAccountGroup) (*ResponseAccountGroup, error)
- func (c *Client) CreateAdvancedComputerSearch(search *ResponseAdvancedComputerSearch) (*ResponseAdvancedComputerSearch, error)
- func (c *Client) CreateAdvancedMobileDeviceSearchByID(id int, search *ResponseAdvancedMobileDeviceSearches) (*ResponseAdvancedMobileDeviceSearches, error)
- func (c *Client) CreateAdvancedUserSearch(search *AdvancedUserSearch) (*AdvancedUserSearch, error)
- func (c *Client) CreateAllowedFileExtension(extension *AllowedFileExtensionDetail) (*AllowedFileExtensionDetail, error)
- func (c *Client) CreateApiIntegration(integration *ApiIntegration) (*ApiIntegration, error)
- func (c *Client) CreateBYOProfile(profile *ResponseBYOProfile) (*ResponseBYOProfile, error)
- func (c *Client) CreateBuilding(building *Building) (*Building, error)
- func (c *Client) CreateCategory(category *ResponseCategories) (*ResponseCategories, error)
- func (c *Client) CreateClassesByID(class *ResponseClasses) (*ResponseClasses, error)
- func (c *Client) CreateClientCredentialsByApiRoleID(id string) (*ClientCredentials, error)
- func (c *Client) CreateComputer(computer ResponseComputer) (*ResponseComputer, error)
- func (c *Client) CreateComputerExtensionAttribute(attribute *ResponseComputerExtensionAttribute) (*ResponseComputerExtensionAttribute, error)
- func (c *Client) CreateComputerGroup(group *ResponseComputerGroup) (*ResponseComputerGroup, error)
- func (c *Client) CreateComputerInventoryCollectionSettingsCustomPath(customPath *ComputerInventoryCollectionSettingsCustomPath) (*ComputerInventoryCollectionSettingsCustomPath, error)
- func (c *Client) CreateComputerInvitation(invitation *ResponseComputerInvitation) (*ResponseComputerInvitation, error)
- func (c *Client) CreateComputerPrestage(prestage *ComputerPrestagesItem) (*ComputerPrestagesItem, error)
- func (c *Client) CreateDepartment(departmentName string) (*ResponseDepartment, error)
- func (c *Client) CreateDirectoryBinding(binding *ResponseDirectoryBinding) (*ResponseDirectoryBinding, error)
- func (c *Client) CreateDiskEncryptionConfiguration(config *DiskEncryptionConfiguration) (*ResponseDiskEncryptionConfiguration, error)
- func (c *Client) CreateDistributionPoint(dp *ResponseDistributionPoint) (*ResponseDistributionPoint, error)
- func (c *Client) CreateDockItems(dockItem *ResponseDockItem) (*ResponseDockItem, error)
- func (c *Client) CreateEbook(ebook ResponseEbooks) (*ResponseEbooks, error)
- func (c *Client) CreateJamfApiRole(role *APIRole) (*APIRole, error)
- func (c *Client) CreateMacOSConfigurationProfile(profile *ResponseMacOSConfigurationProfile) (*ResponseMacOSConfigurationProfile, error)
- func (c *Client) CreatePolicyByID(policy *ResponsePolicy) (*ResponsePolicy, error)
- func (c *Client) CreateScriptByID(script *ResponseScript) (*ResponseScript, error)
- func (c *Client) CreateSelfServiceBrandingMacOS(branding *SelfServiceBrandingDetail) (*SelfServiceBrandingDetail, error)
- func (c *Client) CreateSite(site *ResponseSite) (*ResponseSite, error)
- func (c *Client) CreateVolumePurchasingSubscription(subscription *VolumePurchasingSubscription) (*VolumePurchasingSubscription, error)
- func (c *Client) DeleteAccountByID(id int) error
- func (c *Client) DeleteAccountByName(name string) error
- func (c *Client) DeleteAccountGroupByID(id int) error
- func (c *Client) DeleteAccountGroupByName(name string) error
- func (c *Client) DeleteAdvancedComputerSearchByID(id int) error
- func (c *Client) DeleteAdvancedComputerSearchByName(name string) error
- func (c *Client) DeleteAdvancedMobileDeviceSearchByID(id int) error
- func (c *Client) DeleteAdvancedMobileDeviceSearchByName(name string) error
- func (c *Client) DeleteAdvancedUserSearchByID(id int) error
- func (c *Client) DeleteAdvancedUserSearchByName(name string) error
- func (c *Client) DeleteAllowedFileExtensionByID(id int) error
- func (c *Client) DeleteAllowedFileExtensionByName(extensionName string) error
- func (c *Client) DeleteApiIntegrationByID(id string) error
- func (c *Client) DeleteApiIntegrationByName(name string) error
- func (c *Client) DeleteBYOProfileByID(id int) error
- func (c *Client) DeleteBYOProfileByName(name string) error
- func (c *Client) DeleteBuildingByID(id int) error
- func (c *Client) DeleteBuildingByName(name string) error
- func (c *Client) DeleteCategoryByID(id int) error
- func (c *Client) DeleteCategoryByNameByID(name string) error
- func (c *Client) DeleteClassByID(id int) error
- func (c *Client) DeleteClassByName(name string) error
- func (c *Client) DeleteComputerByID(id int) error
- func (c *Client) DeleteComputerByName(name string) error
- func (c *Client) DeleteComputerExtensionAttributeByID(id int) error
- func (c *Client) DeleteComputerExtensionAttributeByNameByID(name string) error
- func (c *Client) DeleteComputerGroupByID(id int) error
- func (c *Client) DeleteComputerGroupByName(name string) error
- func (c *Client) DeleteComputerInventoryCollectionSettingsCustomPathByID(id string) error
- func (c *Client) DeleteComputerInvitationByID(invitationID int) error
- func (c *Client) DeleteComputerPrestageByID(id string) error
- func (c *Client) DeleteComputerPrestageByName(name string) error
- func (c *Client) DeleteDepartmentByID(id int) error
- func (c *Client) DeleteDepartmentByName(name string) error
- func (c *Client) DeleteDirectoryBindingByID(bindingID int) error
- func (c *Client) DeleteDirectoryBindingByName(bindingName string) error
- func (c *Client) DeleteDiskEncryptionConfigurationByID(configID int) error
- func (c *Client) DeleteDiskEncryptionConfigurationByName(configName string) error
- func (c *Client) DeleteDistributionPointByID(id int) error
- func (c *Client) DeleteDistributionPointByName(name string) error
- func (c *Client) DeleteDockItemsByID(id int) error
- func (c *Client) DeleteDockItemsByName(name string) error
- func (c *Client) DeleteEbookByID(id int) error
- func (c *Client) DeleteEbookByName(name string) error
- func (c *Client) DeleteJamfApiRoleByID(id string) error
- func (c *Client) DeleteJamfApiRoleByName(name string) error
- func (c *Client) DeleteMacOSConfigurationProfileByID(id int) error
- func (c *Client) DeleteMacOSConfigurationProfileByName(name string) error
- func (c *Client) DeleteMultipleCategoriesByID(ids []string) error
- func (c *Client) DeletePolicyByID(id int) error
- func (c *Client) DeletePolicyByName(name string) error
- func (c *Client) DeleteScriptByID(id int) error
- func (c *Client) DeleteScriptByName(name string) error
- func (c *Client) DeleteSelfServiceBrandingMacOSByID(id string) error
- func (c *Client) DeleteSelfServiceBrandingMacOSByName(name string) error
- func (c *Client) DeleteSiteByID(id int) error
- func (c *Client) DeleteSiteByName(name string) error
- func (c *Client) DeleteVolumePurchasingSubscriptionByID(id string) error
- func (c *Client) DeleteVolumePurchasingSubscriptionByName(name string) error
- func (c *Client) DownloadIcon(iconID int, savePath string, res string, scale string) error
- func (c *Client) GetAccountByID(id int) (*ResponseAccount, error)
- func (c *Client) GetAccountByName(name string) (*ResponseAccount, error)
- func (c *Client) GetAccountGroupByID(id int) (*ResponseAccountGroup, error)
- func (c *Client) GetAccountGroupByName(name string) (*ResponseAccount, error)
- func (c *Client) GetAccounts() (*ResponseAccountsList, error)
- func (c *Client) GetActivationCode() (*ResponseActivationCode, error)
- func (c *Client) GetActiveCertificateAuthority() (*ResponseActiveCertificateAuthority, error)
- func (c *Client) GetAdvancedComputerSearchByID(id int) (*ResponseAdvancedComputerSearch, error)
- func (c *Client) GetAdvancedComputerSearches() (*ResponseAdvancedComputerSearches, error)
- func (c *Client) GetAdvancedComputerSearchesByName(name string) (*ResponseAdvancedComputerSearch, error)
- func (c *Client) GetAdvancedMobileDeviceSearchByID(id int) (*ResponseAdvancedMobileDeviceSearches, error)
- func (c *Client) GetAdvancedMobileDeviceSearchByName(name string) (*ResponseAdvancedMobileDeviceSearches, error)
- func (c *Client) GetAdvancedMobileDeviceSearches() (*ResponseAdvancedMobileDeviceSearchesList, error)
- func (c *Client) GetAdvancedUserSearchByID(id int) (*AdvancedUserSearch, error)
- func (c *Client) GetAdvancedUserSearchByName(name string) (*AdvancedUserSearch, error)
- func (c *Client) GetAdvancedUserSearches() (*ResponseAdvancedUserSearchesList, error)
- func (c *Client) GetAllowedFileExtensionByID(id int) (*AllowedFileExtensionDetail, error)
- func (c *Client) GetAllowedFileExtensionByName(extensionName string) (*AllowedFileExtensionDetail, error)
- func (c *Client) GetAllowedFileExtensions() (*ResponseAllowedFileExtensionsList, error)
- func (c *Client) GetApiIntegrationByID(id int) (*ApiIntegration, error)
- func (c *Client) GetApiIntegrationNameByID(name string) (*ApiIntegration, error)
- func (c *Client) GetApiIntegrations() (*ResponseApiIntegrations, error)
- func (c *Client) GetBYOProfileByID(id int) (*ResponseBYOProfile, error)
- func (c *Client) GetBYOProfileByName(name string) (*ResponseBYOProfile, error)
- func (c *Client) GetBYOProfiles() (*ResponseBYOProfilesList, error)
- func (c *Client) GetBuildingByID(id string) (*BuildingDetail, error)
- func (c *Client) GetBuildingByName(name string) (*Building, error)
- func (c *Client) GetBuildingIdByName(name string) (string, error)
- func (c *Client) GetBuildings() (*ResponseBuildings, error)
- func (c *Client) GetCacheSettings() (*ResponseCacheSettings, error)
- func (c *Client) GetCategories(page, pageSize int, sort, filter string) (*ResponseCategoriesList, error)
- func (c *Client) GetCategoryByID(id string) (*ResponseCategories, error)
- func (c *Client) GetCategoryNameByID(name string) (*ResponseCategories, error)
- func (c *Client) GetClasses() (*ResponseClassesList, error)
- func (c *Client) GetClassesByID(id int) (*ResponseClasses, error)
- func (c *Client) GetClassesByName(name string) (*ResponseClasses, error)
- func (c *Client) GetComputerByID(id int) (*ResponseComputer, error)
- func (c *Client) GetComputerByName(name string) (*ResponseComputer, error)
- func (c *Client) GetComputerExtensionAttributeByID(id int) (*ResponseComputerExtensionAttribute, error)
- func (c *Client) GetComputerExtensionAttributeByName(name string) (*ResponseComputerExtensionAttribute, error)
- func (c *Client) GetComputerExtensionAttributes() (*ResponseComputerExtensionAttributesList, error)
- func (c *Client) GetComputerGroupByID(id int) (*ResponseComputerGroup, error)
- func (c *Client) GetComputerGroupByName(name string) (*ResponseComputerGroup, error)
- func (c *Client) GetComputerGroups() (*ComputerGroupsListResponse, error)
- func (c *Client) GetComputerInventoryCollectionSettings() (*ResponseComputerInventoryCollectionSettings, error)
- func (c *Client) GetComputerInvitationByID(invitationID int) (*ResponseComputerInvitation, error)
- func (c *Client) GetComputerInvitations() (*ResponseComputerInvitationsList, error)
- func (c *Client) GetComputerInvitationsByInvitationID(invitationID int) (*ResponseComputerInvitation, error)
- func (c *Client) GetComputerPrestageByID(id string) (*ComputerPrestagesItem, error)
- func (c *Client) GetComputerPrestageByName(name string) (*ComputerPrestagesItem, error)
- func (c *Client) GetComputerPrestagesV3(page, pageSize int, sort []string) (*ResponseComputerPrestagesV3, error)
- func (c *Client) GetComputers() (*ResponseComputersList, error)
- func (c *Client) GetDepartmentByID(id int) (*ResponseDepartment, error)
- func (c *Client) GetDepartmentByName(name string) (*ResponseDepartment, error)
- func (c *Client) GetDepartmentIdByName(name string) (int, error)
- func (c *Client) GetDepartments() (*ResponseDepartmentsList, error)
- func (c *Client) GetDeviceScopeForComputerPrestage(id string) (*ResponseDeviceScope, error)
- func (c *Client) GetDirectoryBindingByID(bindingID int) (*ResponseDirectoryBinding, error)
- func (c *Client) GetDirectoryBindingByName(bindingName string) (*ResponseDirectoryBinding, error)
- func (c *Client) GetDirectoryBindings() (*ResponseDirectoryBindingsList, error)
- func (c *Client) GetDiskEncryptionConfigurationByID(configID int) (*ResponseDiskEncryptionConfiguration, error)
- func (c *Client) GetDiskEncryptionConfigurationByName(configName string) (*ResponseDiskEncryptionConfiguration, error)
- func (c *Client) GetDiskEncryptionConfigurations() (*ResponseDiskEncryptionConfigurationsList, error)
- func (c *Client) GetDistributionPointByID(id int) (*ResponseDistributionPoint, error)
- func (c *Client) GetDistributionPointByName(name string) (*ResponseDistributionPoint, error)
- func (c *Client) GetDistributionPoints() (*ResponseDistributionPointsList, error)
- func (c *Client) GetDockItems() (*ResponseDockItemsList, error)
- func (c *Client) GetDockItemsByID(id int) (*ResponseDockItem, error)
- func (c *Client) GetDockItemsByName(name string) (*ResponseDockItem, error)
- func (c *Client) GetEbooks() (*ResponseEbooksList, error)
- func (c *Client) GetEbooksByID(id int) (*ResponseEbooks, error)
- func (c *Client) GetEbooksByName(name string) (*ResponseEbooks, error)
- func (c *Client) GetEbooksByNameAndDataSubset(name, subset string) (*ResponseEbooks, error)
- func (c *Client) GetJamfAPIPrivileges() (*ResponseApiRolePrivileges, error)
- func (c *Client) GetJamfAPIPrivilegesByName(name string, limit int) (*ResponseApiRolePrivileges, error)
- func (c *Client) GetJamfAPIRoles() (*ResponseApiRoles, error)
- func (c *Client) GetJamfApiRolesByID(id int) (*APIRole, error)
- func (c *Client) GetJamfApiRolesNameById(name string) (*APIRole, error)
- func (c *Client) GetJamfProInformation() (*ResponseJamfProInformation, error)
- func (c *Client) GetJamfProVersion() (*ResponseJamfProVersion, error)
- func (c *Client) GetMacOSConfigurationProfileByID(id int) (*ResponseMacOSConfigurationProfile, error)
- func (c *Client) GetMacOSConfigurationProfileByName(name string) (*ResponseMacOSConfigurationProfile, error)
- func (c *Client) GetMacOSConfigurationProfileNameByID(id int) (string, error)
- func (c *Client) GetMacOSConfigurationProfiles() (*ResponseMacOSConfigurationProfileList, error)
- func (c *Client) GetPerformanceMetrics() *http_client.ClientPerformanceMetrics
- func (c *Client) GetPolicies() (*ResponsePoliciesList, error)
- func (c *Client) GetPoliciesByType(createdBy string) (*ResponsePoliciesList, error)
- func (c *Client) GetPolicyByCategory(category string) (*ResponsePoliciesList, error)
- func (c *Client) GetPolicyByID(id int) (*ResponsePolicy, error)
- func (c *Client) GetPolicyByName(name string) (*ResponsePolicy, error)
- func (c *Client) GetSSOFailoverSettings() (*SSOFailoverResponse, error)
- func (c *Client) GetScripts() (*ResponseScriptsList, error)
- func (c *Client) GetScriptsByID(id int) (*ResponseScript, error)
- func (c *Client) GetScriptsByName(name string) (*ResponseScript, error)
- func (c *Client) GetSelfServiceBrandingMacOS() (*ResponseSelfServiceBranding, error)
- func (c *Client) GetSelfServiceBrandingMacOSByID(id string) (*SelfServiceBrandingDetail, error)
- func (c *Client) GetSelfServiceBrandingMacOSByNameByID(name string) (*SelfServiceBrandingDetail, error)
- func (c *Client) GetSiteByID(id int) (*ResponseSite, error)
- func (c *Client) GetSiteByName(name string) (*ResponseSite, error)
- func (c *Client) GetSites() (*SitesListResponse, error)
- func (c *Client) GetVolumePurchasingSubscriptionByID(id string) (*VolumePurchasingSubscription, error)
- func (c *Client) GetVolumePurchasingSubscriptionByNameByID(name string) (*VolumePurchasingSubscription, error)
- func (c *Client) GetVolumePurchasingSubscriptions() (*ResponseVolumePurchasingSubscriptionsList, error)
- func (c *Client) SetAuthenticationCredentials(creds map[string]string)
- func (c *Client) SetClientOAuthCredentials(creds http_client.OAuthCredentials)
- func (c *Client) UpdateAccountByID(id int, account *ResponseAccount) (*ResponseAccount, error)
- func (c *Client) UpdateAccountByName(name string, account *ResponseAccount) (*ResponseAccount, error)
- func (c *Client) UpdateAccountGroupByID(id int, group *ResponseAccountGroup) (*ResponseAccountGroup, error)
- func (c *Client) UpdateAccountGroupByName(name string, group *ResponseAccountGroup) (*ResponseAccountGroup, error)
- func (c *Client) UpdateActivationCode(organizationName, code string) error
- func (c *Client) UpdateAdvancedComputerSearchByID(id int, search *ResponseAdvancedComputerSearch) (*ResponseAdvancedComputerSearch, error)
- func (c *Client) UpdateAdvancedComputerSearchByName(name string, search *ResponseAdvancedComputerSearch) (*ResponseAdvancedComputerSearch, error)
- func (c *Client) UpdateAdvancedMobileDeviceSearchByID(id int, search *ResponseAdvancedMobileDeviceSearches) (*ResponseAdvancedMobileDeviceSearches, error)
- func (c *Client) UpdateAdvancedMobileDeviceSearchByName(name string, search *ResponseAdvancedMobileDeviceSearches) (*ResponseAdvancedMobileDeviceSearches, error)
- func (c *Client) UpdateAdvancedUserSearchByID(id int, search *AdvancedUserSearch) (*AdvancedUserSearch, error)
- func (c *Client) UpdateAdvancedUserSearchByName(name string, search *AdvancedUserSearch) (*AdvancedUserSearch, error)
- func (c *Client) UpdateApiIntegrationByID(id string, integrationUpdate *ApiIntegration) (*ApiIntegration, error)
- func (c *Client) UpdateApiIntegrationByName(name string, updatedIntegration *ApiIntegration) (*ApiIntegration, error)
- func (c *Client) UpdateBYOProfileByID(id int, profile *ResponseBYOProfile) (*ResponseBYOProfile, error)
- func (c *Client) UpdateBYOProfileByName(name string, profile *ResponseBYOProfile) (*ResponseBYOProfile, error)
- func (c *Client) UpdateBuildingByID(building *Building) (*Building, error)
- func (c *Client) UpdateBuildingByName(building *Building) (*Building, error)
- func (c *Client) UpdateCacheSettings(settings *ResponseCacheSettings) (*ResponseCacheSettings, error)
- func (c *Client) UpdateCategoryByID(id int, updatedCategory *ResponseCategories) (*ResponseCategories, error)
- func (c *Client) UpdateCategoryByNameByID(name string, updatedCategory *ResponseCategories) (*ResponseCategories, error)
- func (c *Client) UpdateClassesByID(id int, class *ResponseClasses) error
- func (c *Client) UpdateClassesByName(name string, class *ResponseClasses) error
- func (c *Client) UpdateClientCredentialsByApiIntegrationID(id string) (*ClientCredentials, error)
- func (c *Client) UpdateComputerByID(id int, computer ResponseComputer) (*ResponseComputer, error)
- func (c *Client) UpdateComputerByName(name string, computer ResponseComputer) (*ResponseComputer, error)
- func (c *Client) UpdateComputerExtensionAttributeByID(id int, attribute *ResponseComputerExtensionAttribute) (*ResponseComputerExtensionAttribute, error)
- func (c *Client) UpdateComputerExtensionAttributeByName(name string, attribute *ResponseComputerExtensionAttribute) (*ResponseComputerExtensionAttribute, error)
- func (c *Client) UpdateComputerGroupByID(id int, group *ResponseComputerGroup) (*ResponseComputerGroup, error)
- func (c *Client) UpdateComputerGroupByName(name string, group *ResponseComputerGroup) (*ResponseComputerGroup, error)
- func (c *Client) UpdateComputerInventoryCollectionSettings(settings *ResponseComputerInventoryCollectionSettings) (*ResponseComputerInventoryCollectionSettings, error)
- func (c *Client) UpdateComputerPrestageByID(id string, prestageUpdate *ComputerPrestagesItem) (*ComputerPrestagesItem, error)
- func (c *Client) UpdateComputerPrestageByName(name string, updatedPrestage *ComputerPrestagesItem) (*ComputerPrestagesItem, error)
- func (c *Client) UpdateDepartmentByID(id int, departmentName string) (*ResponseDepartment, error)
- func (c *Client) UpdateDepartmentByName(oldName string, newName string) (*ResponseDepartment, error)
- func (c *Client) UpdateDirectoryBindingByID(bindingID int, binding *ResponseDirectoryBinding) (*ResponseDirectoryBinding, error)
- func (c *Client) UpdateDirectoryBindingByName(bindingName string, binding *ResponseDirectoryBinding) (*ResponseDirectoryBinding, error)
- func (c *Client) UpdateDiskEncryptionConfigurationByID(configID int, config *DiskEncryptionConfiguration) (*DiskEncryptionConfiguration, error)
- func (c *Client) UpdateDiskEncryptionConfigurationByName(configName string, config *DiskEncryptionConfiguration) (*DiskEncryptionConfiguration, error)
- func (c *Client) UpdateDistributionPointByID(id int, dp *ResponseDistributionPoint) (*ResponseDistributionPoint, error)
- func (c *Client) UpdateDistributionPointByName(name string, dp *ResponseDistributionPoint) (*ResponseDistributionPoint, error)
- func (c *Client) UpdateDockItemsByID(id int, dockItem *ResponseDockItem) (*ResponseDockItem, error)
- func (c *Client) UpdateDockItemsByName(name string, dockItem *ResponseDockItem) (*ResponseDockItem, error)
- func (c *Client) UpdateEbookByID(id int, ebook ResponseEbooks) (*ResponseEbooks, error)
- func (c *Client) UpdateEbookByName(name string, ebook ResponseEbooks) (*ResponseEbooks, error)
- func (c *Client) UpdateFailoverUrl() (*SSOFailoverResponse, error)
- func (c *Client) UpdateJamfApiRoleByID(id string, roleUpdate *APIRole) (*APIRole, error)
- func (c *Client) UpdateJamfApiRoleByName(name string, updatedRole *APIRole) (*APIRole, error)
- func (c *Client) UpdateMacOSConfigurationProfileByID(id int, profile *ResponseMacOSConfigurationProfile) (*ResponseMacOSConfigurationProfile, error)
- func (c *Client) UpdateMacOSConfigurationProfileByName(name string, profile *ResponseMacOSConfigurationProfile) (*ResponseMacOSConfigurationProfile, error)
- func (c *Client) UpdatePolicyByID(id int, policy *ResponsePolicy) (*ResponsePolicy, error)
- func (c *Client) UpdatePolicyByName(name string, policy *ResponsePolicy) (*ResponsePolicy, error)
- func (c *Client) UpdateScriptByID(script *ResponseScript) (*ResponseScript, error)
- func (c *Client) UpdateScriptByName(script *ResponseScript) (*ResponseScript, error)
- func (c *Client) UpdateSelfServiceBrandingMacOSByID(id string, branding *SelfServiceBrandingDetail) (*SelfServiceBrandingDetail, error)
- func (c *Client) UpdateSelfServiceBrandingMacOSByName(name string, newBranding *SelfServiceBrandingDetail) (*SelfServiceBrandingDetail, error)
- func (c *Client) UpdateSiteByID(id int, site *ResponseSite) (*ResponseSite, error)
- func (c *Client) UpdateSiteByName(name string, site *ResponseSite) (*ResponseSite, error)
- func (c *Client) UpdateVolumePurchasingSubscriptionByID(id string, subscription *VolumePurchasingSubscription) (*VolumePurchasingSubscription, error)
- func (c *Client) UpdateVolumePurchasingSubscriptionByNameByID(name string, updateData *VolumePurchasingSubscription) (*VolumePurchasingSubscription, error)
- func (c *Client) UploadIcon(filePath string) (*ResponseUploadIcon, error)
- type ClientCredentials
- type ComputerAssignment
- type ComputerContainer
- type ComputerDetail
- type ComputerExtensionAttributeInputType
- type ComputerExtensionAttributeItem
- type ComputerGroupComputerItem
- type ComputerGroupCriterion
- type ComputerGroupInfo
- type ComputerGroupListItem
- type ComputerGroupSite
- type ComputerGroupsListResponse
- type ComputerInfo
- type ComputerInventoryCollectionSettingsCustomPath
- type ComputerInvitationDetail
- type ComputerInvitationSite
- type ComputerItem
- type ComputerLink
- type ComputerPrestagesAccountSettings
- type ComputerPrestagesItem
- type ComputerPrestagesLocationInformation
- type ComputerPrestagesPurchasingInformation
- type Config
- type ConfigurationProfile
- type Criterion
- type CriterionContainer
- type CriterionDetail
- type DepartmentAssignment
- type DepartmentInfo
- type DepartmentItem
- type DeviceGroupAndOr
- type DirectoryBindingDetail
- type DiskEncryptionConfiguration
- type DiskEncryptionConfigurationDataSubsetInstitutionalRecoveryKey
- type DiskEncryptionConfigurationDetail
- type DisplayFieldDetail
- type DistributionPointListDetail
- type DockItem
- type Ebook
- type EbooksDataSubsetBuilding
- type EbooksDataSubsetCategory
- type EbooksDataSubsetClass
- type EbooksDataSubsetComputer
- type EbooksDataSubsetComputerGroup
- type EbooksDataSubsetDepartment
- type EbooksDataSubsetExclusions
- type EbooksDataSubsetGeneral
- type EbooksDataSubsetLimitations
- type EbooksDataSubsetMobileDevice
- type EbooksDataSubsetMobileDeviceGroup
- type EbooksDataSubsetNetworkSegment
- type EbooksDataSubsetScope
- type EbooksDataSubsetSelfService
- type EbooksDataSubsetSelfServiceCategories
- type EbooksDataSubsetSelfServiceIcon
- type EbooksDataSubsetSite
- type EbooksDataSubsetUser
- type EbooksDataSubsetUserGroup
- type ExclusionConfig
- type ExtensionAttribute
- type ExtensionAttributeItem
- type Field
- type Filevault2User
- type Font
- type General
- type GeneralConfig
- type GroupAssignmentDataSubsetGroupDetail
- type GroupMembership
- type Groups
- type GroupsAccounts
- type Hardware
- type IBeaconInfo
- type IBeaconScope
- type IbeaconListItem
- type InventoryCollectionPreference
- type JSSUserConfig
- type JSSUserGroupInfo
- type JamfUserScope
- type LocalAccount
- type Location
- type LogLevel
- type Logger
- type MacOSConfigurationProfileListItem
- type ManagementStatus
- type MdmCapableUsers
- type MemcachedEndpoint
- type MobileDeviceGroup
- type MobileDeviceItem
- type MobileDeviceLink
- type NetworkDetail
- type NetworkLimitation
- type NetworkSegmentInfo
- type NetworkSegmentList
- type NetworkSegmentScope
- type Parameters
- type Partition
- type PathItem
- type Peripheral
- type PeripheralAttachment
- type PeripheralFields
- type PeripheralLink
- type PeripheralPurchasing
- type Peripherals
- type Plugin
- type PolicyAccount
- type PolicyAccountMaintenance
- type PolicyBuilding
- type PolicyCategory
- type PolicyComputer
- type PolicyComputerGroup
- type PolicyDateTimeLimitations
- type PolicyDepartment
- type PolicyDirectoryBinding
- type PolicyDiskEncryption
- type PolicyDockItem
- type PolicyDockItems
- type PolicyExclusions
- type PolicyFilesProcesses
- type PolicyGeneral
- type PolicyIBeacon
- type PolicyItem
- type PolicyLimitToUsers
- type PolicyLimitations
- type PolicyMaintenance
- type PolicyManagementAccount
- type PolicyNetworkLimitations
- type PolicyNetworkSegment
- type PolicyNoExecuteOn
- type PolicyOpenFirmwareEfiPassword
- type PolicyOverrideSettings
- type PolicyPackage
- type PolicyPackageConfiguration
- type PolicyPrinterItem
- type PolicyPrinters
- type PolicyReboot
- type PolicyScope
- type PolicyScriptItem
- type PolicyScripts
- type PolicySelfService
- type PolicySelfServiceCategory
- type PolicySelfServiceIcon
- type PolicySite
- type PolicyUser
- type PolicyUserGroup
- type PolicyUserInteraction
- type Printer
- type Purchasing
- type RemoteManagement
- type ResponseAccount
- type ResponseAccountGroup
- type ResponseAccountsList
- type ResponseActivationCode
- type ResponseActiveCertificateAuthority
- type ResponseAdvancedComputerSearch
- type ResponseAdvancedComputerSearches
- type ResponseAdvancedMobileDeviceSearches
- type ResponseAdvancedMobileDeviceSearchesList
- type ResponseAdvancedUserSearchesList
- type ResponseAllowedFileExtensionsList
- type ResponseApiIntegrations
- type ResponseApiRolePrivileges
- type ResponseApiRoles
- type ResponseBYOProfile
- type ResponseBYOProfilesList
- type ResponseBuilding
- type ResponseBuildings
- type ResponseCacheSettings
- type ResponseCategories
- type ResponseCategoriesList
- type ResponseClasses
- type ResponseClassesList
- type ResponseComputer
- type ResponseComputerExtensionAttribute
- type ResponseComputerExtensionAttributesList
- type ResponseComputerGroup
- type ResponseComputerInventoryCollectionSettings
- type ResponseComputerInvitation
- type ResponseComputerInvitationsList
- type ResponseComputerPrestagesV3
- type ResponseComputersList
- type ResponseDepartment
- type ResponseDepartmentsList
- type ResponseDeviceScope
- type ResponseDirectoryBinding
- type ResponseDirectoryBindingsList
- type ResponseDiskEncryptionConfiguration
- type ResponseDiskEncryptionConfigurationsList
- type ResponseDistributionPoint
- type ResponseDistributionPointsList
- type ResponseDockItem
- type ResponseDockItemsList
- type ResponseEbooks
- type ResponseEbooksList
- type ResponseIbeacon
- type ResponseIbeaconList
- type ResponseJamfProInformation
- type ResponseJamfProVersion
- type ResponseMacOSConfigurationProfile
- type ResponseMacOSConfigurationProfileList
- type ResponseNetworkSegment
- type ResponsePoliciesList
- type ResponsePolicy
- type ResponseScript
- type ResponseScriptsList
- type ResponseSelfServiceBranding
- type ResponseSite
- type ResponseUploadIcon
- type ResponseUser
- type ResponseUserGroup
- type ResponseUserList
- type ResponseUsers
- type ResponseVolumePurchasingSubscriptionsList
- type SSOFailoverResponse
- type ScopeConfig
- type ScriptItem
- type Security
- type SelfServiceBrandingDetail
- type SelfServiceCategory
- type SelfServiceConfig
- type SelfServiceIcon
- type SelfServiceIconDetail
- type Signature
- type Site
- type SiteInfo
- type SiteItem
- type SitesListResponse
- type Software
- type SoftwareUpdate
- type StorageDevice
- type User
- type UserAssignment
- type UserGroupAssignment
- type UserGroupCriteria
- type UserGroupCriterion
- type UserGroupScope
- type UserGroupUser
- type UserInfo
- type UserListItem
- type UserScope
- type Users
- type UsersDataSubsetExtensionAttribute
- type UsersDataSubsetItem
- type UsersDataSubsetLDAPServer
- type UsersDataSubsetUserLinks
- type UsersDataSubsetUserSite
- type VPPAssignmentLink
- type VolumePurchasingSubscription
Constants ¶
This section is empty.
Variables ¶
var DefaultLogger = NewDefaultLogger()
Expose the default logger instance for use in the main package.
Functions ¶
func LoadClientAuthConfig ¶ added in v0.0.21
func LoadClientAuthConfig(filename string) (*http_client.ClientAuthConfig, error)
LoadClientAuthConfig reads a JSON configuration file and decodes it into a ClientAuthConfig struct.
Types ¶
type APIRole ¶ added in v0.0.41
type APIRole struct { ID string `json:"id,omitempty"` DisplayName string `json:"displayName,omitempty"` Privileges []string `json:"privileges,omitempty"` }
Role represents the details of an individual API role
type AccountDataSubsetGroup ¶
type AccountDataSubsetGroup struct { ID int `json:"id,omitempty" xml:"id,omitempty"` Name string `json:"name" xml:"name"` Site AccountDataSubsetSite `json:"site,omitempty" xml:"site,omitempty"` Privileges AccountDataSubsetPrivileges `json:"privileges,omitempty" xml:"privileges,omitempty"` }
type AccountDataSubsetGroups ¶ added in v0.0.14
type AccountDataSubsetGroups struct {
Group []AccountDataSubsetGroup `xml:"group,omitempty"`
}
type AccountDataSubsetMembers ¶ added in v0.0.14
type AccountDataSubsetPrivileges ¶
type AccountDataSubsetPrivileges struct { JSSObjects []string `json:"jss_objects,omitempty" xml:"jss_objects>privilege"` JSSSettings []string `json:"jss_settings,omitempty" xml:"jss_settings>privilege"` JSSActions []string `json:"jss_actions,omitempty" xml:"jss_actions>privilege"` Recon []string `json:"recon,omitempty" xml:"recon>privilege"` CasperAdmin []string `json:"casper_admin,omitempty" xml:"casper_admin>privilege"` CasperRemote []string `json:"casper_remote,omitempty" xml:"casper_remote>privilege"` CasperImaging []string `json:"casper_imaging,omitempty" xml:"casper_imaging>privilege"` }
type AccountDataSubsetSite ¶
type AccountDataSubsetUser ¶
type AccountDataSubsetUserItem ¶ added in v0.0.14
type AccountDataSubsetUsers ¶ added in v0.0.14
type AccountDataSubsetUsers struct {
User []AccountDataSubsetUserItem `xml:"user,omitempty"`
}
type AccountUser ¶
type AdvancedComputerSearchDataSubsetComputer ¶ added in v0.0.36
type AdvancedComputerSearchDataSubsetComputer struct { Size int `xml:"size"` Computer ComputerDetail `xml:"computer"` }
Computer represents a computer with its details.
type AdvancedComputerSearchDetail ¶ added in v0.0.36
type AdvancedComputerSearchDetail struct { ID int `json:"id,omitempty" xml:"id"` Name string `json:"name,omitempty" xml:"name"` }
AdvancedComputerSearchDetail represents the details of an advanced computer search.
type AdvancedComputerSearchesCriteria ¶ added in v0.0.48
type AdvancedComputerSearchesCriteria struct { Size int `xml:"size"` Criterion CriterionDetail `xml:"criterion"` }
Criteria represents a criterion with its details.
type AdvancedComputerSearchesDisplayField ¶ added in v0.0.48
type AdvancedComputerSearchesDisplayField struct { Size int `xml:"size"` DisplayField DisplayFieldDetail `xml:"display_field"` }
DisplayField represents a display field with its details.
type AdvancedComputerSearchesSiteDetail ¶ added in v0.0.48
SiteDetail represents the details of a site.
type AdvancedMobileDeviceSearchDetail ¶ added in v0.0.48
AdvancedMobileDeviceSearchDetail represents the details of an advanced mobile device search.
type AdvancedMobileDeviceSearchesCriteria ¶ added in v0.0.48
type AdvancedMobileDeviceSearchesCriteria struct { Size int `xml:"size"` // Number of criteria Criterion Criterion `xml:"criterion"` // Detailed criterion }
CriteriaDetail represents a single search criterion.
type AdvancedMobileDeviceSearchesDisplayField ¶ added in v0.0.48
type AdvancedMobileDeviceSearchesDisplayField struct { Size int `xml:"size"` // Number of display fields DisplayField AdvancedMobileDeviceSearchesDisplayFieldItem `xml:"display_field"` // Detailed display field }
DisplayFieldDetailWrapper wraps a display field with its size.
type AdvancedMobileDeviceSearchesDisplayFieldItem ¶ added in v0.0.48
type AdvancedMobileDeviceSearchesDisplayFieldItem struct {
Name string `xml:"name"` // Name of the display field
}
DisplayField represents a field to display in the search results.
type AdvancedMobileDeviceSearchesMobileDevice ¶ added in v0.0.48
type AdvancedMobileDeviceSearchesMobileDevice struct { Size int `xml:"size"` // Number of mobile devices MobileDevice MobileDeviceItem `xml:"mobile_device"` // Detailed mobile device }
MobileDeviceDetailWrapper wraps a mobile device with its size.
type AdvancedMobileDeviceSearchesSite ¶ added in v0.0.48
type AdvancedMobileDeviceSearchesSite struct { ID int `xml:"id"` // Unique identifier for the site Name string `xml:"name"` // Name of the site }
SiteDetail represents the details of a site associated with the search.
type AdvancedUserSearch ¶ added in v0.0.44
type AdvancedUserSearch struct { ID int `xml:"id"` Name string `xml:"name"` Criteria []AdvancedUserSearchCriteriaDetail `xml:"criteria"` Users []AdvancedUserSearchSiteUsersDetail `xml:"users"` DisplayFields []AdvancedUserSearchSiteDisplayFieldDetail `xml:"display_fields"` Site AdvancedUserSearchSiteDetail `xml:"site"` }
Structs for Advanced User Search details by ID
type AdvancedUserSearchCriteriaDetail ¶ added in v0.0.44
type AdvancedUserSearchCriteriaDetail struct { Size int `xml:"size"` Criterion AdvancedUserSearchCriterionDetail `xml:"criterion"` }
type AdvancedUserSearchCriterionDetail ¶ added in v0.0.44
type AdvancedUserSearchDetail ¶ added in v0.0.44
type AdvancedUserSearchSiteDetail ¶ added in v0.0.44
type AdvancedUserSearchSiteDisplayFieldDetail ¶ added in v0.0.44
type AdvancedUserSearchSiteUserDetail ¶ added in v0.0.44
type AdvancedUserSearchSiteUsersDetail ¶ added in v0.0.44
type AdvancedUserSearchSiteUsersDetail struct { Size int `xml:"size"` User AdvancedUserSearchSiteUserDetail `xml:"user"` }
type AllowedFileExtensionDetail ¶ added in v0.0.9
type ApiIntegration ¶ added in v0.0.13
type ApiIntegration struct { ID int `json:"id,omitempty"` AuthorizationScopes []string `json:"authorizationScopes,omitempty"` DisplayName string `json:"displayName,omitempty"` Enabled bool `json:"enabled,omitempty"` AccessTokenLifetimeSeconds int `json:"accessTokenLifetimeSeconds,omitempty"` AppType string `json:"appType,omitempty"` ClientID string `json:"clientId,omitempty"` }
Integration represents the details of an individual API integration
type Application ¶ added in v0.0.61
type Application struct { Name string `xml:"name" json:"name"` Path string `xml:"path" json:"path"` Version string `xml:"version" json:"version"` }
Application represents an application installed on the computer
type AssignmentItem ¶ added in v0.0.49
type AssignmentItem struct { SerialNumber string `json:"serialNumber"` AssignmentDate string `json:"assignmentDate"` UserAssigned string `json:"userAssigned"` }
AssignmentItem represents the structure of each assignment within the prestage scope.
type BYOProfileGeneralInfo ¶ added in v0.0.50
type BYOProfileGeneralInfo struct { ID int `xml:"id"` Name string `xml:"name"` Site BYOProfileSiteInfo `xml:"site"` Enabled bool `xml:"enabled"` Description string `xml:"description"` }
GeneralInfo represents the general section of a BYO profile.
type BYOProfileItem ¶ added in v0.0.50
BYOProfileItem represents a single BYO profile item in the list.
type BYOProfileSiteInfo ¶ added in v0.0.50
SiteInfo represents the site information of a BYO profile.
type BeaconDetail ¶ added in v0.0.11
type BuildingAssignment ¶ added in v0.0.11
type BuildingAssignment struct {
Building BuildingInfo `json:"building,omitempty" xml:"building,omitempty"`
}
type BuildingDetail ¶ added in v0.0.8
type BuildingDetail struct { ID int `json:"id,omitempty" xml:"id"` Name string `json:"name,omitempty" xml:"name"` StreetAddress1 string `json:"streetAddress1,omitempty" xml:"streetAddress1,omitempty"` StreetAddress2 string `json:"streetAddress2,omitempty" xml:"streetAddress2,omitempty"` City string `json:"city,omitempty" xml:"city,omitempty"` StateProvince string `json:"stateProvince,omitempty" xml:"stateProvince,omitempty"` ZipPostalCode string `json:"zipPostalCode,omitempty" xml:"zipPostalCode,omitempty"` Country string `json:"country,omitempty" xml:"country,omitempty"` Href string `json:"href,omitempty" xml:"href,omitempty"` }
type BuildingInfo ¶ added in v0.0.11
type BuildingScope ¶ added in v0.0.11
type CategoryInfo ¶ added in v0.0.11
type CategoryItem ¶ added in v0.0.45
type Certificate ¶ added in v0.0.61
type Certificate struct { CommonName string `xml:"common_name" json:"common_name"` Identity bool `xml:"identity" json:"identity"` ExpiresUtc string `xml:"expires_utc" json:"expires_utc"` ExpiresEpoch int64 `xml:"expires_epoch" json:"expires_epoch"` Name string `xml:"name" json:"name"` }
Certificate represents a certificate installed on the computer
type ClassAppleTV ¶ added in v0.0.51
type ClassDeviceGroup ¶ added in v0.0.51
type ClassGroupID ¶ added in v0.0.51
type ClassGroupID struct {
ID int `xml:"id,omitempty"`
}
type ClassItem ¶ added in v0.0.51
type ClassItem struct { ID int `xml:"id"` Name string `xml:"name"` Description string `xml:"description"` }
ClassItem represents a single class item in the list.
type ClassMeetingTime ¶ added in v0.0.51
type ClassMeetingTimes ¶ added in v0.0.51
type ClassMeetingTimes struct {
MeetingTime ClassMeetingTime `xml:"meeting_time,omitempty"`
}
type ClassMobileDevice ¶ added in v0.0.51
type ClassStudent ¶ added in v0.0.51
type ClassStudent struct {
Student string `xml:"student,omitempty"`
}
type ClassTeacher ¶ added in v0.0.51
type ClassTeacher struct {
Teacher string `xml:"teacher,omitempty"`
}
type ClassTeacherID ¶ added in v0.0.51
type ClassTeacherID struct {
ID int `xml:"id,omitempty"`
}
type Client ¶
type Client struct {
HTTP *http_client.Client
}
func (*Client) CreateAccountByID ¶
func (c *Client) CreateAccountByID(account *ResponseAccount) (*ResponseAccount, error)
CreateAccountByID creates an Account using its ID
func (*Client) CreateAccountGroupByID ¶ added in v0.0.14
func (c *Client) CreateAccountGroupByID(accountGroup *ResponseAccountGroup) (*ResponseAccountGroup, error)
CreateAccountGroupByID creates an Account Group using its ID
func (*Client) CreateAdvancedComputerSearch ¶ added in v0.0.36
func (c *Client) CreateAdvancedComputerSearch(search *ResponseAdvancedComputerSearch) (*ResponseAdvancedComputerSearch, error)
CreateAdvancedComputerSearch creates a new advanced computer search.
func (*Client) CreateAdvancedMobileDeviceSearchByID ¶ added in v0.0.48
func (c *Client) CreateAdvancedMobileDeviceSearchByID(id int, search *ResponseAdvancedMobileDeviceSearches) (*ResponseAdvancedMobileDeviceSearches, error)
CreateAdvancedMobileDeviceSearchByID creates a new advanced mobile device search with the given ID.
func (*Client) CreateAdvancedUserSearch ¶ added in v0.0.44
func (c *Client) CreateAdvancedUserSearch(search *AdvancedUserSearch) (*AdvancedUserSearch, error)
CreateAdvancedUserSearch creates a new advanced user search.
func (*Client) CreateAllowedFileExtension ¶ added in v0.0.9
func (c *Client) CreateAllowedFileExtension(extension *AllowedFileExtensionDetail) (*AllowedFileExtensionDetail, error)
CreateAllowedFileExtension creates a new allowed file extension
func (*Client) CreateApiIntegration ¶ added in v0.0.13
func (c *Client) CreateApiIntegration(integration *ApiIntegration) (*ApiIntegration, error)
CreateApiIntegration creates a new API integration
func (*Client) CreateBYOProfile ¶ added in v0.0.50
func (c *Client) CreateBYOProfile(profile *ResponseBYOProfile) (*ResponseBYOProfile, error)
CreateBYOProfile creates a new BYO profile.
func (*Client) CreateBuilding ¶ added in v0.0.9
CreateBuilding creates a new building
func (*Client) CreateCategory ¶ added in v0.0.45
func (c *Client) CreateCategory(category *ResponseCategories) (*ResponseCategories, error)
CreateCategory creates a new category
func (*Client) CreateClassesByID ¶ added in v0.0.51
func (c *Client) CreateClassesByID(class *ResponseClasses) (*ResponseClasses, error)
CreateClassesByID creates a new class with the given details.
func (*Client) CreateClientCredentialsByApiRoleID ¶ added in v0.0.13
func (c *Client) CreateClientCredentialsByApiRoleID(id string) (*ClientCredentials, error)
CreateClientCredentialsByApiRoleID creates new client credentials for an API integration by its ID
func (*Client) CreateComputer ¶ added in v0.0.61
func (c *Client) CreateComputer(computer ResponseComputer) (*ResponseComputer, error)
CreateComputer creates a new computer.
func (*Client) CreateComputerExtensionAttribute ¶ added in v0.0.27
func (c *Client) CreateComputerExtensionAttribute(attribute *ResponseComputerExtensionAttribute) (*ResponseComputerExtensionAttribute, error)
CreateComputerExtensionAttribute creates a new computer extension attribute.
func (*Client) CreateComputerGroup ¶ added in v0.0.16
func (c *Client) CreateComputerGroup(group *ResponseComputerGroup) (*ResponseComputerGroup, error)
CreateComputerGroup creates a new computer group.
func (*Client) CreateComputerInventoryCollectionSettingsCustomPath ¶ added in v0.0.53
func (c *Client) CreateComputerInventoryCollectionSettingsCustomPath(customPath *ComputerInventoryCollectionSettingsCustomPath) (*ComputerInventoryCollectionSettingsCustomPath, error)
CreateComputerInventoryCollectionSettingsCustomPath creates a custom path for computer inventory collection settings.
func (*Client) CreateComputerInvitation ¶ added in v0.0.56
func (c *Client) CreateComputerInvitation(invitation *ResponseComputerInvitation) (*ResponseComputerInvitation, error)
CreateComputerInvitation creates a new computer invitation.
func (*Client) CreateComputerPrestage ¶ added in v0.0.49
func (c *Client) CreateComputerPrestage(prestage *ComputerPrestagesItem) (*ComputerPrestagesItem, error)
CreateComputerPrestage creates a new computer prestage with the given details.
func (*Client) CreateDepartment ¶ added in v0.0.10
func (c *Client) CreateDepartment(departmentName string) (*ResponseDepartment, error)
CreateDepartment creates a new department
func (*Client) CreateDirectoryBinding ¶ added in v0.0.59
func (c *Client) CreateDirectoryBinding(binding *ResponseDirectoryBinding) (*ResponseDirectoryBinding, error)
CreateDirectoryBinding creates a new directory binding.
func (*Client) CreateDiskEncryptionConfiguration ¶ added in v0.0.57
func (c *Client) CreateDiskEncryptionConfiguration(config *DiskEncryptionConfiguration) (*ResponseDiskEncryptionConfiguration, error)
CreateDiskEncryptionConfiguration creates a new disk encryption configuration.
func (*Client) CreateDistributionPoint ¶ added in v0.0.58
func (c *Client) CreateDistributionPoint(dp *ResponseDistributionPoint) (*ResponseDistributionPoint, error)
CreateDistributionPoint creates a new distribution point.
func (*Client) CreateDockItems ¶ added in v0.0.62
func (c *Client) CreateDockItems(dockItem *ResponseDockItem) (*ResponseDockItem, error)
CreateDockItems creates a new dock item.
func (*Client) CreateEbook ¶ added in v0.0.63
func (c *Client) CreateEbook(ebook ResponseEbooks) (*ResponseEbooks, error)
CreateEbook creates a new ebook.
func (*Client) CreateJamfApiRole ¶ added in v0.0.12
CreateJamfApiRole creates a new Jamf API role
func (*Client) CreateMacOSConfigurationProfile ¶ added in v0.0.11
func (c *Client) CreateMacOSConfigurationProfile(profile *ResponseMacOSConfigurationProfile) (*ResponseMacOSConfigurationProfile, error)
func (*Client) CreatePolicyByID ¶ added in v0.0.45
func (c *Client) CreatePolicyByID(policy *ResponsePolicy) (*ResponsePolicy, error)
CreatePolicy creates a new policy.
func (*Client) CreateScriptByID ¶ added in v0.0.15
func (c *Client) CreateScriptByID(script *ResponseScript) (*ResponseScript, error)
CreateScriptByID creates a new script by its ID.
func (*Client) CreateSelfServiceBrandingMacOS ¶ added in v0.0.49
func (c *Client) CreateSelfServiceBrandingMacOS(branding *SelfServiceBrandingDetail) (*SelfServiceBrandingDetail, error)
CreateSelfServiceBrandingMacOS creates a new self-service branding configuration for macOS.
func (*Client) CreateSite ¶ added in v0.0.32
func (c *Client) CreateSite(site *ResponseSite) (*ResponseSite, error)
CreateSite creates a new site.
func (*Client) CreateVolumePurchasingSubscription ¶ added in v0.0.52
func (c *Client) CreateVolumePurchasingSubscription(subscription *VolumePurchasingSubscription) (*VolumePurchasingSubscription, error)
CreateVolumePurchasingSubscription creates a new volume purchasing subscription
func (*Client) DeleteAccountByID ¶
DeleteAccountByID deletes an Account using its ID
func (*Client) DeleteAccountByName ¶ added in v0.0.14
DeleteAccountByName deletes an Account using its name.
func (*Client) DeleteAccountGroupByID ¶ added in v0.0.14
DeleteAccountGroupByID deletes an Account Group using its ID.
func (*Client) DeleteAccountGroupByName ¶ added in v0.0.14
DeleteAccountGroupByName deletes an Account Group using its name.
func (*Client) DeleteAdvancedComputerSearchByID ¶ added in v0.0.36
DeleteAdvancedComputerSearchByID deletes an advanced computer search by its ID.
func (*Client) DeleteAdvancedComputerSearchByName ¶ added in v0.0.36
DeleteAdvancedComputerSearchByName deletes an advanced computer search by its name.
func (*Client) DeleteAdvancedMobileDeviceSearchByID ¶ added in v0.0.48
DeleteAdvancedMobileDeviceSearchByID deletes an existing advanced mobile device search by its ID.
func (*Client) DeleteAdvancedMobileDeviceSearchByName ¶ added in v0.0.48
DeleteAdvancedMobileDeviceSearchByName deletes an existing advanced mobile device search by its name.
func (*Client) DeleteAdvancedUserSearchByID ¶ added in v0.0.44
DeleteAdvancedUserSearchByID deletes an advanced user search by its ID.
func (*Client) DeleteAdvancedUserSearchByName ¶ added in v0.0.44
DeleteAdvancedUserSearchByName deletes an advanced user search by its name.
func (*Client) DeleteAllowedFileExtensionByID ¶ added in v0.0.9
DeleteAllowedFileExtensionByID deletes an existing allowed file extension by ID
func (*Client) DeleteAllowedFileExtensionByName ¶ added in v0.0.9
DeleteAllowedFileExtensionByNameByID deletes an existing allowed file extension by resolving its name to an ID
func (*Client) DeleteApiIntegrationByID ¶ added in v0.0.13
DeleteApiIntegrationByID deletes an API integration by its ID
func (*Client) DeleteApiIntegrationByName ¶ added in v0.0.13
DeleteApiIntegrationByName deletes an API integration by its display name
func (*Client) DeleteBYOProfileByID ¶ added in v0.0.50
DeleteBYOProfileByID deletes a BYO profile by its ID.
func (*Client) DeleteBYOProfileByName ¶ added in v0.0.50
DeleteBYOProfileByName deletes a BYO profile by its name.
func (*Client) DeleteBuildingByID ¶ added in v0.0.12
DeleteBuildingByID deletes an existing building by its ID
func (*Client) DeleteBuildingByName ¶ added in v0.0.12
DeleteBuildingByName deletes an existing building by its name
func (*Client) DeleteCategoryByID ¶ added in v0.0.45
DeleteCategoryByID deletes a category by its ID
func (*Client) DeleteCategoryByNameByID ¶ added in v0.0.45
DeleteCategoryByNameByID deletes a category by its name after inferring its ID
func (*Client) DeleteClassByID ¶ added in v0.0.51
DeleteClassByID deletes an existing class with the given ID.
func (*Client) DeleteClassByName ¶ added in v0.0.51
DeleteClassByName deletes a class by its name.
func (*Client) DeleteComputerByID ¶ added in v0.0.61
DeleteComputerByID deletes an existing Computer by its ID
func (*Client) DeleteComputerByName ¶ added in v0.0.61
DeleteComputerByName deletes an existing computer by its name
func (*Client) DeleteComputerExtensionAttributeByID ¶ added in v0.0.27
DeleteComputerExtensionAttributeByID deletes a computer extension attribute by its ID.
func (*Client) DeleteComputerExtensionAttributeByNameByID ¶ added in v0.0.27
DeleteComputerExtensionAttributeByNameByID deletes a computer extension attribute by its name. there is no url directly for deletion by resource name. so it is resolved in a two step process.
func (*Client) DeleteComputerGroupByID ¶ added in v0.0.16
DeleteComputerGroupByID deletes a computer group by its ID.
func (*Client) DeleteComputerGroupByName ¶ added in v0.0.16
DeleteComputerGroupByName deletes a computer group by its name.
func (*Client) DeleteComputerInventoryCollectionSettingsCustomPathByID ¶ added in v0.0.53
DeleteComputerInventoryCollectionSettingsCustomPathByID deletes a custom path by ID.
func (*Client) DeleteComputerInvitationByID ¶ added in v0.0.56
DeleteComputerInvitationByID deletes a computer invitation by its ID.
func (*Client) DeleteComputerPrestageByID ¶ added in v0.0.49
DeleteComputerPrestageByID deletes a computer prestage by its ID
func (*Client) DeleteComputerPrestageByName ¶ added in v0.0.49
DeleteComputerPrestageByName deletes a computer prestage by its name.
func (*Client) DeleteDepartmentByID ¶ added in v0.0.10
DeleteDepartmentByID deletes an existing department by its ID
func (*Client) DeleteDepartmentByName ¶ added in v0.0.10
DeleteDepartmentByName deletes an existing department by its name
func (*Client) DeleteDirectoryBindingByID ¶ added in v0.0.59
DeleteDirectoryBindingByID deletes a directory binding by its ID.
func (*Client) DeleteDirectoryBindingByName ¶ added in v0.0.59
DeleteDirectoryBindingByName deletes a directory binding by its name.
func (*Client) DeleteDiskEncryptionConfigurationByID ¶ added in v0.0.57
DeleteDiskEncryptionConfigurationByID deletes a disk encryption configuration by its ID.
func (*Client) DeleteDiskEncryptionConfigurationByName ¶ added in v0.0.57
DeleteDiskEncryptionConfigurationByName deletes a disk encryption configuration by its name.
func (*Client) DeleteDistributionPointByID ¶ added in v0.0.58
DeleteDistributionPointByID deletes a distribution point by its ID.
func (*Client) DeleteDistributionPointByName ¶ added in v0.0.58
DeleteDistributionPointByName deletes a distribution point by its name.
func (*Client) DeleteDockItemsByID ¶ added in v0.0.62
DeleteDockItemsByID deletes a dock item by its ID.
func (*Client) DeleteDockItemsByName ¶ added in v0.0.62
DeleteDockItemsByName deletes a dock item by its name.
func (*Client) DeleteEbookByID ¶ added in v0.0.63
DeleteEbookByID deletes a ebook by its ID.
func (*Client) DeleteEbookByName ¶ added in v0.0.63
DeleteEbookByName deletes a ebook by its name.
func (*Client) DeleteJamfApiRoleByID ¶ added in v0.0.12
DeleteJamfApiRoleByID deletes a Jamf API role by its ID
func (*Client) DeleteJamfApiRoleByName ¶ added in v0.0.12
DeleteJamfApiRoleByName deletes a Jamf API role by its display name
func (*Client) DeleteMacOSConfigurationProfileByID ¶ added in v0.0.11
func (*Client) DeleteMacOSConfigurationProfileByName ¶ added in v0.0.11
func (*Client) DeleteMultipleCategoriesByID ¶ added in v0.0.45
DeleteMultipleCategoriesByID deletes multiple categories by their IDs
func (*Client) DeletePolicyByID ¶ added in v0.0.45
DeletePolicyByID deletes a policy by its ID.
func (*Client) DeletePolicyByName ¶ added in v0.0.45
DeletePolicyByName deletes a policy by its name.
func (*Client) DeleteScriptByID ¶ added in v0.0.15
DeleteScriptByID deletes a script by its ID.
func (*Client) DeleteScriptByName ¶ added in v0.0.15
DeleteScriptByName deletes a script by its name.
func (*Client) DeleteSelfServiceBrandingMacOSByID ¶ added in v0.0.49
DeleteSelfServiceBrandingMacOSByID deletes a self-service branding configuration for macOS by ID.
func (*Client) DeleteSelfServiceBrandingMacOSByName ¶ added in v0.0.49
DeleteSelfServiceBrandingMacOSByName deletes a self-service branding configuration for macOS by name.
func (*Client) DeleteSiteByID ¶ added in v0.0.32
DeleteSiteByID deletes a site by its ID.
func (*Client) DeleteSiteByName ¶ added in v0.0.32
DeleteSiteByName deletes a site by its name.
func (*Client) DeleteVolumePurchasingSubscriptionByID ¶ added in v0.0.52
DeleteVolumePurchasingSubscriptionByID deletes a volume purchasing subscription by its ID
func (*Client) DeleteVolumePurchasingSubscriptionByName ¶ added in v0.0.52
DeleteVolumePurchasingSubscriptionByName finds a subscription by name and deletes it by its ID
func (*Client) DownloadIcon ¶ added in v0.0.50
DownloadIcon downloads an icon by its ID from Jamf Pro and saves it to the specified file path. The icon is saved to the path provided in the 'savePath' parameter.
func (*Client) GetAccountByID ¶
func (c *Client) GetAccountByID(id int) (*ResponseAccount, error)
GetAccountByID retrieves the Account by its ID
func (*Client) GetAccountByName ¶
func (c *Client) GetAccountByName(name string) (*ResponseAccount, error)
GetAccountByName retrieves the Account by its name
func (*Client) GetAccountGroupByID ¶ added in v0.0.14
func (c *Client) GetAccountGroupByID(id int) (*ResponseAccountGroup, error)
GetAccountGroupByID gets an account group using its ID and returns a response.
func (*Client) GetAccountGroupByName ¶ added in v0.0.14
func (c *Client) GetAccountGroupByName(name string) (*ResponseAccount, error)
GetAccountByName retrieves the Account by its name
func (*Client) GetAccounts ¶ added in v0.0.14
func (c *Client) GetAccounts() (*ResponseAccountsList, error)
GetAccounts retrieves a list of all accounts (both users and groups).
func (*Client) GetActivationCode ¶ added in v0.0.46
func (c *Client) GetActivationCode() (*ResponseActivationCode, error)
GetActivationCode retrieves the activation code.
func (*Client) GetActiveCertificateAuthority ¶ added in v0.0.52
func (c *Client) GetActiveCertificateAuthority() (*ResponseActiveCertificateAuthority, error)
GetActiveCertificateAuthority retrieves the active certificate authority details.
func (*Client) GetAdvancedComputerSearchByID ¶ added in v0.0.36
func (c *Client) GetAdvancedComputerSearchByID(id int) (*ResponseAdvancedComputerSearch, error)
GetAdvancedComputerSearchByID retrieves an advanced computer search by its ID
func (*Client) GetAdvancedComputerSearches ¶ added in v0.0.36
func (c *Client) GetAdvancedComputerSearches() (*ResponseAdvancedComputerSearches, error)
GetAdvancedComputerSearches retrieves all advanced computer searches.
func (*Client) GetAdvancedComputerSearchesByName ¶ added in v0.0.36
func (c *Client) GetAdvancedComputerSearchesByName(name string) (*ResponseAdvancedComputerSearch, error)
GetAdvancedComputerSearchesByName retrieves advanced computer searches by their name
func (*Client) GetAdvancedMobileDeviceSearchByID ¶ added in v0.0.48
func (c *Client) GetAdvancedMobileDeviceSearchByID(id int) (*ResponseAdvancedMobileDeviceSearches, error)
GetAdvancedMobileDeviceSearchByID retrieves an advanced mobile device search by its ID.
func (*Client) GetAdvancedMobileDeviceSearchByName ¶ added in v0.0.48
func (c *Client) GetAdvancedMobileDeviceSearchByName(name string) (*ResponseAdvancedMobileDeviceSearches, error)
GetAdvancedMobileDeviceSearchByName retrieves an advanced mobile device search by its name.
func (*Client) GetAdvancedMobileDeviceSearches ¶ added in v0.0.48
func (c *Client) GetAdvancedMobileDeviceSearches() (*ResponseAdvancedMobileDeviceSearchesList, error)
GetAdvancedMobileDeviceSearches retrieves all advanced mobile device searches.
func (*Client) GetAdvancedUserSearchByID ¶ added in v0.0.44
func (c *Client) GetAdvancedUserSearchByID(id int) (*AdvancedUserSearch, error)
GetAdvancedUserSearchByID retrieves an advanced user search by its ID
func (*Client) GetAdvancedUserSearchByName ¶ added in v0.0.44
func (c *Client) GetAdvancedUserSearchByName(name string) (*AdvancedUserSearch, error)
GetAdvancedUserSearchByName retrieves an advanced user search by its name
func (*Client) GetAdvancedUserSearches ¶ added in v0.0.44
func (c *Client) GetAdvancedUserSearches() (*ResponseAdvancedUserSearchesList, error)
GetAdvancedUserSearches retrieves all advanced user searches
func (*Client) GetAllowedFileExtensionByID ¶ added in v0.0.9
func (c *Client) GetAllowedFileExtensionByID(id int) (*AllowedFileExtensionDetail, error)
GetAllowedFileExtensionByID retrieves the allowed file extension by its ID
func (*Client) GetAllowedFileExtensionByName ¶ added in v0.0.9
func (c *Client) GetAllowedFileExtensionByName(extensionName string) (*AllowedFileExtensionDetail, error)
GetAllowedFileExtensionByName retrieves the allowed file extension by its name
func (*Client) GetAllowedFileExtensions ¶ added in v0.0.9
func (c *Client) GetAllowedFileExtensions() (*ResponseAllowedFileExtensionsList, error)
GetAllowedFileExtensions retrieves all allowed file extensions
func (*Client) GetApiIntegrationByID ¶ added in v0.0.13
func (c *Client) GetApiIntegrationByID(id int) (*ApiIntegration, error)
GetApiIntegrationByID fetches an API integration by its ID
func (*Client) GetApiIntegrationNameByID ¶ added in v0.0.13
func (c *Client) GetApiIntegrationNameByID(name string) (*ApiIntegration, error)
GetApiIntegrationNameByID fetches an API integration by its display name and then retrieves its details using its ID
func (*Client) GetApiIntegrations ¶ added in v0.0.13
func (c *Client) GetApiIntegrations() (*ResponseApiIntegrations, error)
GetApiIntegrations fetches all API integrations
func (*Client) GetBYOProfileByID ¶ added in v0.0.50
func (c *Client) GetBYOProfileByID(id int) (*ResponseBYOProfile, error)
GetBYOProfileByID retrieves a BYO profile by its ID.
func (*Client) GetBYOProfileByName ¶ added in v0.0.50
func (c *Client) GetBYOProfileByName(name string) (*ResponseBYOProfile, error)
GetBYOProfileByName retrieves a BYO profile by its name.
func (*Client) GetBYOProfiles ¶ added in v0.0.50
func (c *Client) GetBYOProfiles() (*ResponseBYOProfilesList, error)
GetBYOProfiles gets a list of all BYO profiles.
func (*Client) GetBuildingByID ¶ added in v0.0.8
func (c *Client) GetBuildingByID(id string) (*BuildingDetail, error)
GetBuildingByID retrieves the building by its ID
func (*Client) GetBuildingByName ¶ added in v0.0.12
GetBuildingByName retrieves the building by its name
func (*Client) GetBuildingIdByName ¶ added in v0.0.12
GetBuildingIdByName retrieves the building ID by its name
func (*Client) GetBuildings ¶ added in v0.0.9
func (c *Client) GetBuildings() (*ResponseBuildings, error)
GetBuildings retrieves all buildings
func (*Client) GetCacheSettings ¶ added in v0.0.52
func (c *Client) GetCacheSettings() (*ResponseCacheSettings, error)
GetCacheSettings gets the current cache settings.
func (*Client) GetCategories ¶ added in v0.0.45
func (c *Client) GetCategories(page, pageSize int, sort, filter string) (*ResponseCategoriesList, error)
GetCategories retrieves categories based on query parameters
func (*Client) GetCategoryByID ¶ added in v0.0.45
func (c *Client) GetCategoryByID(id string) (*ResponseCategories, error)
GetCategoryByID retrieves a category by its ID
func (*Client) GetCategoryNameByID ¶ added in v0.0.45
func (c *Client) GetCategoryNameByID(name string) (*ResponseCategories, error)
GetCategoryNameByID retrieves a category by its name and then retrieves its details using its ID
func (*Client) GetClasses ¶ added in v0.0.51
func (c *Client) GetClasses() (*ResponseClassesList, error)
GetClasses gets a list of all classes.
func (*Client) GetClassesByID ¶ added in v0.0.51
func (c *Client) GetClassesByID(id int) (*ResponseClasses, error)
GetClassesByID retrieves a class by its ID.
func (*Client) GetClassesByName ¶ added in v0.0.51
func (c *Client) GetClassesByName(name string) (*ResponseClasses, error)
GetClassesByName retrieves a class by its name.
func (*Client) GetComputerByID ¶ added in v0.0.61
func (c *Client) GetComputerByID(id int) (*ResponseComputer, error)
GetComputerByID retrieves the computer details by its ID.
func (*Client) GetComputerByName ¶ added in v0.0.61
func (c *Client) GetComputerByName(name string) (*ResponseComputer, error)
GetComputerByName retrieves the computer by its name
func (*Client) GetComputerExtensionAttributeByID ¶ added in v0.0.27
func (c *Client) GetComputerExtensionAttributeByID(id int) (*ResponseComputerExtensionAttribute, error)
GetComputerExtensionAttributeByID retrieves a computer extension attribute by its ID.
func (*Client) GetComputerExtensionAttributeByName ¶ added in v0.0.27
func (c *Client) GetComputerExtensionAttributeByName(name string) (*ResponseComputerExtensionAttribute, error)
GetComputerExtensionAttributeByName retrieves a computer extension attribute by its name.
func (*Client) GetComputerExtensionAttributes ¶ added in v0.0.27
func (c *Client) GetComputerExtensionAttributes() (*ResponseComputerExtensionAttributesList, error)
GetComputerExtensionAttributes gets a list of all computer extension attributes
func (*Client) GetComputerGroupByID ¶ added in v0.0.16
func (c *Client) GetComputerGroupByID(id int) (*ResponseComputerGroup, error)
GetComputerGroupByID retrieves a computer group by its ID.
func (*Client) GetComputerGroupByName ¶ added in v0.0.16
func (c *Client) GetComputerGroupByName(name string) (*ResponseComputerGroup, error)
GetComputerGroupByName retrieves a computer group by its name.
func (*Client) GetComputerGroups ¶ added in v0.0.16
func (c *Client) GetComputerGroups() (*ComputerGroupsListResponse, error)
GetComputerGroups gets a list of all computer groups
func (*Client) GetComputerInventoryCollectionSettings ¶ added in v0.0.53
func (c *Client) GetComputerInventoryCollectionSettings() (*ResponseComputerInventoryCollectionSettings, error)
func (*Client) GetComputerInvitationByID ¶ added in v0.0.56
func (c *Client) GetComputerInvitationByID(invitationID int) (*ResponseComputerInvitation, error)
GetComputerInvitationByID retrieves a computer invitation by its ID.
func (*Client) GetComputerInvitations ¶ added in v0.0.56
func (c *Client) GetComputerInvitations() (*ResponseComputerInvitationsList, error)
GetComputerInvitations retrieves a list of all computer invitations.
func (*Client) GetComputerInvitationsByInvitationID ¶ added in v0.0.56
func (c *Client) GetComputerInvitationsByInvitationID(invitationID int) (*ResponseComputerInvitation, error)
GetComputerInvitationsByName retrieves a computer invitation by its invitation Name.
func (*Client) GetComputerPrestageByID ¶ added in v0.0.35
func (c *Client) GetComputerPrestageByID(id string) (*ComputerPrestagesItem, error)
GetComputerPrestageByID retrieves a specific computer prestage by its ID.
func (*Client) GetComputerPrestageByName ¶ added in v0.0.49
func (c *Client) GetComputerPrestageByName(name string) (*ComputerPrestagesItem, error)
GetComputerPrestageByName retrieves a specific computer prestage by its name.
func (*Client) GetComputerPrestagesV3 ¶ added in v0.0.49
func (c *Client) GetComputerPrestagesV3(page, pageSize int, sort []string) (*ResponseComputerPrestagesV3, error)
GetComputerPrestagesV3 retrieves the computer prestage information with optional pagination and sorting.
func (*Client) GetComputers ¶ added in v0.0.61
func (c *Client) GetComputers() (*ResponseComputersList, error)
GetComputers retrieves all computers
func (*Client) GetDepartmentByID ¶ added in v0.0.10
func (c *Client) GetDepartmentByID(id int) (*ResponseDepartment, error)
GetDepartmentByID retrieves the department by its ID
func (*Client) GetDepartmentByName ¶ added in v0.0.10
func (c *Client) GetDepartmentByName(name string) (*ResponseDepartment, error)
GetDepartmentByName retrieves the department by its name
func (*Client) GetDepartmentIdByName ¶ added in v0.0.10
GetDepartmentIdByName retrieves the department ID by its name
func (*Client) GetDepartments ¶ added in v0.0.10
func (c *Client) GetDepartments() (*ResponseDepartmentsList, error)
GetDepartments retrieves all departments
func (*Client) GetDeviceScopeForComputerPrestage ¶ added in v0.0.49
func (c *Client) GetDeviceScopeForComputerPrestage(id string) (*ResponseDeviceScope, error)
GetDeviceScopeForComputerPrestage retrieves the device scope for a specific computer prestage by its ID.
func (*Client) GetDirectoryBindingByID ¶ added in v0.0.59
func (c *Client) GetDirectoryBindingByID(bindingID int) (*ResponseDirectoryBinding, error)
GetDirectoryBindingByID retrieves a single directory binding by its ID.
func (*Client) GetDirectoryBindingByName ¶ added in v0.0.59
func (c *Client) GetDirectoryBindingByName(bindingName string) (*ResponseDirectoryBinding, error)
GetDirectoryBindingByName retrieves a single directory binding by its name.
func (*Client) GetDirectoryBindings ¶ added in v0.0.59
func (c *Client) GetDirectoryBindings() (*ResponseDirectoryBindingsList, error)
GetDirectoryBindings retrieves a serialized list of directory bindings.
func (*Client) GetDiskEncryptionConfigurationByID ¶ added in v0.0.57
func (c *Client) GetDiskEncryptionConfigurationByID(configID int) (*ResponseDiskEncryptionConfiguration, error)
GetDiskEncryptionConfigurationByID retrieves a single disk encryption configuration by its ID.
func (*Client) GetDiskEncryptionConfigurationByName ¶ added in v0.0.57
func (c *Client) GetDiskEncryptionConfigurationByName(configName string) (*ResponseDiskEncryptionConfiguration, error)
GetDiskEncryptionConfigurationByName retrieves a disk encryption configuration by its name.
func (*Client) GetDiskEncryptionConfigurations ¶ added in v0.0.57
func (c *Client) GetDiskEncryptionConfigurations() (*ResponseDiskEncryptionConfigurationsList, error)
GetDiskEncryptionConfigurations retrieves a serialized list of disk encryption configurations.
func (*Client) GetDistributionPointByID ¶ added in v0.0.58
func (c *Client) GetDistributionPointByID(id int) (*ResponseDistributionPoint, error)
GetDistributionPointByID retrieves a single distribution point by its ID.
func (*Client) GetDistributionPointByName ¶ added in v0.0.58
func (c *Client) GetDistributionPointByName(name string) (*ResponseDistributionPoint, error)
GetDistributionPointByName retrieves a single distribution point by its name.
func (*Client) GetDistributionPoints ¶ added in v0.0.58
func (c *Client) GetDistributionPoints() (*ResponseDistributionPointsList, error)
GetDistributionPoints retrieves a serialized list of distribution points.
func (*Client) GetDockItems ¶ added in v0.0.62
func (c *Client) GetDockItems() (*ResponseDockItemsList, error)
GetDockItems retrieves a serialized list of dock items.
func (*Client) GetDockItemsByID ¶ added in v0.0.62
func (c *Client) GetDockItemsByID(id int) (*ResponseDockItem, error)
GetDockItemsByID retrieves a single dock item by its ID.
func (*Client) GetDockItemsByName ¶ added in v0.0.62
func (c *Client) GetDockItemsByName(name string) (*ResponseDockItem, error)
GetDockItemsByName retrieves a single dock item by its name.
func (*Client) GetEbooks ¶ added in v0.0.63
func (c *Client) GetEbooks() (*ResponseEbooksList, error)
GetEbooks retrieves a serialized list of ebooks.
func (*Client) GetEbooksByID ¶ added in v0.0.63
func (c *Client) GetEbooksByID(id int) (*ResponseEbooks, error)
GetEbooksByID retrieves a single ebook by its ID.
func (*Client) GetEbooksByName ¶ added in v0.0.63
func (c *Client) GetEbooksByName(name string) (*ResponseEbooks, error)
GetEbooksByName retrieves a single ebook by its name.
func (*Client) GetEbooksByNameAndDataSubset ¶ added in v0.0.63
func (c *Client) GetEbooksByNameAndDataSubset(name, subset string) (*ResponseEbooks, error)
GetEbooksByNameAndDataSubset retrieves a specific subset of an ebook by its name.
func (*Client) GetJamfAPIPrivileges ¶ added in v0.0.43
func (c *Client) GetJamfAPIPrivileges() (*ResponseApiRolePrivileges, error)
GetJamfAPIPrivileges fetches a list of Jamf API role privileges
func (*Client) GetJamfAPIPrivilegesByName ¶ added in v0.0.43
func (c *Client) GetJamfAPIPrivilegesByName(name string, limit int) (*ResponseApiRolePrivileges, error)
GetJamfAPIPrivilegesByName fetches a list of Jamf API role privileges by name
func (*Client) GetJamfAPIRoles ¶ added in v0.0.12
func (c *Client) GetJamfAPIRoles() (*ResponseApiRoles, error)
GetJamfAPIRoles fetches a list of Jamf API roles
func (*Client) GetJamfApiRolesByID ¶ added in v0.0.12
GetJamfApiRolesByID fetches a Jamf API role by its ID.
func (*Client) GetJamfApiRolesNameById ¶ added in v0.0.13
GetJamfApiRolesNameById fetches a Jamf API role by its display name and then retrieves its details using its ID.
func (*Client) GetJamfProInformation ¶ added in v0.0.53
func (c *Client) GetJamfProInformation() (*ResponseJamfProInformation, error)
func (*Client) GetJamfProVersion ¶ added in v0.0.10
func (c *Client) GetJamfProVersion() (*ResponseJamfProVersion, error)
func (*Client) GetMacOSConfigurationProfileByID ¶ added in v0.0.11
func (c *Client) GetMacOSConfigurationProfileByID(id int) (*ResponseMacOSConfigurationProfile, error)
func (*Client) GetMacOSConfigurationProfileByName ¶ added in v0.0.11
func (c *Client) GetMacOSConfigurationProfileByName(name string) (*ResponseMacOSConfigurationProfile, error)
func (*Client) GetMacOSConfigurationProfileNameByID ¶ added in v0.0.11
func (*Client) GetMacOSConfigurationProfiles ¶ added in v0.0.11
func (c *Client) GetMacOSConfigurationProfiles() (*ResponseMacOSConfigurationProfileList, error)
func (*Client) GetPerformanceMetrics ¶ added in v0.0.35
func (c *Client) GetPerformanceMetrics() *http_client.ClientPerformanceMetrics
GetPerformanceMetrics returns the http client performance metrics from the client
func (*Client) GetPolicies ¶ added in v0.0.45
func (c *Client) GetPolicies() (*ResponsePoliciesList, error)
GetPolicies retrieves a list of all policies.
func (*Client) GetPoliciesByType ¶ added in v0.0.45
func (c *Client) GetPoliciesByType(createdBy string) (*ResponsePoliciesList, error)
GetPoliciesByType retrieves policies by the type of entity that created them. The createdBy param can be either the value 'casper' which refers to Casper Remote. Or the value 'jss', which refers to policies created in the GUI or via the API.
func (*Client) GetPolicyByCategory ¶ added in v0.0.45
func (c *Client) GetPolicyByCategory(category string) (*ResponsePoliciesList, error)
GetPolicyByCategory retrieves policies by their category.
func (*Client) GetPolicyByID ¶ added in v0.0.45
func (c *Client) GetPolicyByID(id int) (*ResponsePolicy, error)
GetPolicyByID retrieves the details of a policy by its ID.
func (*Client) GetPolicyByName ¶ added in v0.0.45
func (c *Client) GetPolicyByName(name string) (*ResponsePolicy, error)
GetPolicyByName retrieves a policy by its name.
func (*Client) GetSSOFailoverSettings ¶
func (c *Client) GetSSOFailoverSettings() (*SSOFailoverResponse, error)
GetSSOFailoverSettings fetches SSO failover settings from Jamf Pro
func (*Client) GetScripts ¶ added in v0.0.15
func (c *Client) GetScripts() (*ResponseScriptsList, error)
GetScripts retrieves a list of all scripts.
func (*Client) GetScriptsByID ¶ added in v0.0.15
func (c *Client) GetScriptsByID(id int) (*ResponseScript, error)
GetScriptsByID retrieves the details of a script by its ID.
func (*Client) GetScriptsByName ¶ added in v0.0.15
func (c *Client) GetScriptsByName(name string) (*ResponseScript, error)
GetScriptsByName retrieves the details of a script by its name.
func (*Client) GetSelfServiceBrandingMacOS ¶ added in v0.0.49
func (c *Client) GetSelfServiceBrandingMacOS() (*ResponseSelfServiceBranding, error)
GetSelfServiceBrandingMacOS retrieves the list of self-service branding configurations for macOS.
func (*Client) GetSelfServiceBrandingMacOSByID ¶ added in v0.0.49
func (c *Client) GetSelfServiceBrandingMacOSByID(id string) (*SelfServiceBrandingDetail, error)
GetSelfServiceBrandingMacOSByID retrieves a specific self-service branding configuration for macOS by ID.
func (*Client) GetSelfServiceBrandingMacOSByNameByID ¶ added in v0.0.49
func (c *Client) GetSelfServiceBrandingMacOSByNameByID(name string) (*SelfServiceBrandingDetail, error)
GetSelfServiceBrandingMacOSByNameByID retrieves a specific self-service branding configuration for macOS by its name.
func (*Client) GetSiteByID ¶ added in v0.0.32
func (c *Client) GetSiteByID(id int) (*ResponseSite, error)
GetSiteByID retrieves a site by its ID.
func (*Client) GetSiteByName ¶ added in v0.0.32
func (c *Client) GetSiteByName(name string) (*ResponseSite, error)
GetSiteByName retrieves a site by its name.
func (*Client) GetSites ¶ added in v0.0.32
func (c *Client) GetSites() (*SitesListResponse, error)
GetSites gets a list of all sites
func (*Client) GetVolumePurchasingSubscriptionByID ¶ added in v0.0.52
func (c *Client) GetVolumePurchasingSubscriptionByID(id string) (*VolumePurchasingSubscription, error)
GetVolumePurchasingSubscriptionByID retrieves a single volume purchasing subscription by its ID
func (*Client) GetVolumePurchasingSubscriptionByNameByID ¶ added in v0.0.52
func (c *Client) GetVolumePurchasingSubscriptionByNameByID(name string) (*VolumePurchasingSubscription, error)
GetVolumePurchasingSubscriptionByNameByID fetches a volume purchasing subscription by its display name and retrieves its details using its ID.
func (*Client) GetVolumePurchasingSubscriptions ¶ added in v0.0.52
func (c *Client) GetVolumePurchasingSubscriptions() (*ResponseVolumePurchasingSubscriptionsList, error)
GetVolumePurchasingSubscriptions retrieves all volume purchasing subscriptions
func (*Client) SetAuthenticationCredentials ¶ added in v0.0.21
SetAuthenticationCredentials sets the http clients bearer auth Credentials once a client has been initialised
func (*Client) SetClientOAuthCredentials ¶ added in v0.0.19
func (c *Client) SetClientOAuthCredentials(creds http_client.OAuthCredentials)
SetClientOAuthCredentials sets the http clients OAuth Credentials once a client has been initialised
func (*Client) UpdateAccountByID ¶
func (c *Client) UpdateAccountByID(id int, account *ResponseAccount) (*ResponseAccount, error)
UpdateAccountByID updates an Account using its ID
func (*Client) UpdateAccountByName ¶
func (c *Client) UpdateAccountByName(name string, account *ResponseAccount) (*ResponseAccount, error)
UpdateAccountByName updates an Account using its name.
func (*Client) UpdateAccountGroupByID ¶ added in v0.0.14
func (c *Client) UpdateAccountGroupByID(id int, group *ResponseAccountGroup) (*ResponseAccountGroup, error)
UpdateAccountGroupByID updates an Account Group using its ID
func (*Client) UpdateAccountGroupByName ¶ added in v0.0.14
func (c *Client) UpdateAccountGroupByName(name string, group *ResponseAccountGroup) (*ResponseAccountGroup, error)
UpdateAccountGroupByName updates an Account Group using its name.
func (*Client) UpdateActivationCode ¶ added in v0.0.46
UpdateActivationCode updates the activation code.
func (*Client) UpdateAdvancedComputerSearchByID ¶ added in v0.0.36
func (c *Client) UpdateAdvancedComputerSearchByID(id int, search *ResponseAdvancedComputerSearch) (*ResponseAdvancedComputerSearch, error)
UpdateAdvancedComputerSearchByID updates an existing advanced computer search by its ID.
func (*Client) UpdateAdvancedComputerSearchByName ¶ added in v0.0.36
func (c *Client) UpdateAdvancedComputerSearchByName(name string, search *ResponseAdvancedComputerSearch) (*ResponseAdvancedComputerSearch, error)
UpdateAdvancedComputerSearchByName updates an existing advanced computer search by its name.
func (*Client) UpdateAdvancedMobileDeviceSearchByID ¶ added in v0.0.48
func (c *Client) UpdateAdvancedMobileDeviceSearchByID(id int, search *ResponseAdvancedMobileDeviceSearches) (*ResponseAdvancedMobileDeviceSearches, error)
UpdateAdvancedMobileDeviceSearchByID updates an existing advanced mobile device search by its ID.
func (*Client) UpdateAdvancedMobileDeviceSearchByName ¶ added in v0.0.48
func (c *Client) UpdateAdvancedMobileDeviceSearchByName(name string, search *ResponseAdvancedMobileDeviceSearches) (*ResponseAdvancedMobileDeviceSearches, error)
UpdateAdvancedMobileDeviceSearchByName updates an existing advanced mobile device search by its name.
func (*Client) UpdateAdvancedUserSearchByID ¶ added in v0.0.44
func (c *Client) UpdateAdvancedUserSearchByID(id int, search *AdvancedUserSearch) (*AdvancedUserSearch, error)
UpdateAdvancedUserSearchByID updates an existing advanced user search by its ID.
func (*Client) UpdateAdvancedUserSearchByName ¶ added in v0.0.44
func (c *Client) UpdateAdvancedUserSearchByName(name string, search *AdvancedUserSearch) (*AdvancedUserSearch, error)
UpdateAdvancedUserSearchByName updates an existing advanced user search by its name.
func (*Client) UpdateApiIntegrationByID ¶ added in v0.0.13
func (c *Client) UpdateApiIntegrationByID(id string, integrationUpdate *ApiIntegration) (*ApiIntegration, error)
UpdateApiIntegrationByID updates an API integration by its ID
func (*Client) UpdateApiIntegrationByName ¶ added in v0.0.13
func (c *Client) UpdateApiIntegrationByName(name string, updatedIntegration *ApiIntegration) (*ApiIntegration, error)
UpdateApiIntegrationByName updates an API integration based on its display name
func (*Client) UpdateBYOProfileByID ¶ added in v0.0.50
func (c *Client) UpdateBYOProfileByID(id int, profile *ResponseBYOProfile) (*ResponseBYOProfile, error)
UpdateBYOProfileByID updates an existing BYO profile by its ID.
func (*Client) UpdateBYOProfileByName ¶ added in v0.0.50
func (c *Client) UpdateBYOProfileByName(name string, profile *ResponseBYOProfile) (*ResponseBYOProfile, error)
UpdateBYOProfileByName updates a BYO profile by its name.
func (*Client) UpdateBuildingByID ¶ added in v0.0.12
UpdateBuildingByID updates an existing building
func (*Client) UpdateBuildingByName ¶ added in v0.0.12
UpdateBuildingByName updates an existing building by its name
func (*Client) UpdateCacheSettings ¶ added in v0.0.52
func (c *Client) UpdateCacheSettings(settings *ResponseCacheSettings) (*ResponseCacheSettings, error)
UpdateCacheSettings updates the cache settings.
func (*Client) UpdateCategoryByID ¶ added in v0.0.45
func (c *Client) UpdateCategoryByID(id int, updatedCategory *ResponseCategories) (*ResponseCategories, error)
UpdateCategoryByID updates an existing category by its ID
func (*Client) UpdateCategoryByNameByID ¶ added in v0.0.45
func (c *Client) UpdateCategoryByNameByID(name string, updatedCategory *ResponseCategories) (*ResponseCategories, error)
UpdateCategoryByNameByID updates a category by its name and then updates its details using its ID
func (*Client) UpdateClassesByID ¶ added in v0.0.51
func (c *Client) UpdateClassesByID(id int, class *ResponseClasses) error
UpdateClassByID updates an existing class with the given ID.
func (*Client) UpdateClassesByName ¶ added in v0.0.51
func (c *Client) UpdateClassesByName(name string, class *ResponseClasses) error
UpdateClassByName updates an existing class with the given name.
func (*Client) UpdateClientCredentialsByApiIntegrationID ¶ added in v0.0.15
func (c *Client) UpdateClientCredentialsByApiIntegrationID(id string) (*ClientCredentials, error)
UpdateClientCredentialsByApiIntegrationID updates client credentials for an API integration by its ID
func (*Client) UpdateComputerByID ¶ added in v0.0.61
func (c *Client) UpdateComputerByID(id int, computer ResponseComputer) (*ResponseComputer, error)
UpdateComputerByID updates the details of a computer by its ID.
func (*Client) UpdateComputerByName ¶ added in v0.0.61
func (c *Client) UpdateComputerByName(name string, computer ResponseComputer) (*ResponseComputer, error)
UpdateComputerByName updates the details of a computer by its name.
func (*Client) UpdateComputerExtensionAttributeByID ¶ added in v0.0.27
func (c *Client) UpdateComputerExtensionAttributeByID(id int, attribute *ResponseComputerExtensionAttribute) (*ResponseComputerExtensionAttribute, error)
UpdateComputerExtensionAttributeByID updates an existing computer extension attribute by its ID.
func (*Client) UpdateComputerExtensionAttributeByName ¶ added in v0.0.27
func (c *Client) UpdateComputerExtensionAttributeByName(name string, attribute *ResponseComputerExtensionAttribute) (*ResponseComputerExtensionAttribute, error)
UpdateComputerExtensionAttributeByName updates a computer extension attribute by its name.
func (*Client) UpdateComputerGroupByID ¶ added in v0.0.16
func (c *Client) UpdateComputerGroupByID(id int, group *ResponseComputerGroup) (*ResponseComputerGroup, error)
UpdateComputerGroupByID updates an existing computer group by its ID.
func (*Client) UpdateComputerGroupByName ¶ added in v0.0.16
func (c *Client) UpdateComputerGroupByName(name string, group *ResponseComputerGroup) (*ResponseComputerGroup, error)
UpdateComputerGroupByName updates a computer group by its name.
func (*Client) UpdateComputerInventoryCollectionSettings ¶ added in v0.0.53
func (c *Client) UpdateComputerInventoryCollectionSettings(settings *ResponseComputerInventoryCollectionSettings) (*ResponseComputerInventoryCollectionSettings, error)
UpdateComputerInventoryCollectionSettings updates the computer inventory collection settings.
func (*Client) UpdateComputerPrestageByID ¶ added in v0.0.49
func (c *Client) UpdateComputerPrestageByID(id string, prestageUpdate *ComputerPrestagesItem) (*ComputerPrestagesItem, error)
UpdateComputerPrestageByID updates a computer prestage by its ID.
func (*Client) UpdateComputerPrestageByName ¶ added in v0.0.49
func (c *Client) UpdateComputerPrestageByName(name string, updatedPrestage *ComputerPrestagesItem) (*ComputerPrestagesItem, error)
UpdateComputerPrestageByName updates a computer prestage based on its display name
func (*Client) UpdateDepartmentByID ¶ added in v0.0.10
func (c *Client) UpdateDepartmentByID(id int, departmentName string) (*ResponseDepartment, error)
UpdateDepartmentByID updates an existing department
func (*Client) UpdateDepartmentByName ¶ added in v0.0.10
func (c *Client) UpdateDepartmentByName(oldName string, newName string) (*ResponseDepartment, error)
UpdateDepartmentByName updates an existing department by its name
func (*Client) UpdateDirectoryBindingByID ¶ added in v0.0.59
func (c *Client) UpdateDirectoryBindingByID(bindingID int, binding *ResponseDirectoryBinding) (*ResponseDirectoryBinding, error)
UpdateDirectoryBindingByID updates a directory binding by its ID.
func (*Client) UpdateDirectoryBindingByName ¶ added in v0.0.59
func (c *Client) UpdateDirectoryBindingByName(bindingName string, binding *ResponseDirectoryBinding) (*ResponseDirectoryBinding, error)
UpdateDirectoryBindingByName updates a directory binding by its name.
func (*Client) UpdateDiskEncryptionConfigurationByID ¶ added in v0.0.57
func (c *Client) UpdateDiskEncryptionConfigurationByID(configID int, config *DiskEncryptionConfiguration) (*DiskEncryptionConfiguration, error)
UpdateDiskEncryptionConfigurationByID updates a disk encryption configuration by its ID.
func (*Client) UpdateDiskEncryptionConfigurationByName ¶ added in v0.0.57
func (c *Client) UpdateDiskEncryptionConfigurationByName(configName string, config *DiskEncryptionConfiguration) (*DiskEncryptionConfiguration, error)
UpdateDiskEncryptionConfigurationByName updates a disk encryption configuration by its name.
func (*Client) UpdateDistributionPointByID ¶ added in v0.0.58
func (c *Client) UpdateDistributionPointByID(id int, dp *ResponseDistributionPoint) (*ResponseDistributionPoint, error)
UpdateDistributionPointByID updates a distribution point by its ID.
func (*Client) UpdateDistributionPointByName ¶ added in v0.0.58
func (c *Client) UpdateDistributionPointByName(name string, dp *ResponseDistributionPoint) (*ResponseDistributionPoint, error)
UpdateDistributionPointByName updates a distribution point by its name.
func (*Client) UpdateDockItemsByID ¶ added in v0.0.62
func (c *Client) UpdateDockItemsByID(id int, dockItem *ResponseDockItem) (*ResponseDockItem, error)
UpdateDockItemByID updates a dock item by its ID.
func (*Client) UpdateDockItemsByName ¶ added in v0.0.62
func (c *Client) UpdateDockItemsByName(name string, dockItem *ResponseDockItem) (*ResponseDockItem, error)
UpdateDockItemByName updates a dock item by its name.
func (*Client) UpdateEbookByID ¶ added in v0.0.63
func (c *Client) UpdateEbookByID(id int, ebook ResponseEbooks) (*ResponseEbooks, error)
UpdateEbookByID updates an existing ebook by its ID.
func (*Client) UpdateEbookByName ¶ added in v0.0.63
func (c *Client) UpdateEbookByName(name string, ebook ResponseEbooks) (*ResponseEbooks, error)
UpdateEbookByName updates an existing ebook by its name.
func (*Client) UpdateFailoverUrl ¶
func (c *Client) UpdateFailoverUrl() (*SSOFailoverResponse, error)
UpdateFailoverUrl regenerates the failover URL by changing the failover key to a new one and returns the new failover settings.
func (*Client) UpdateJamfApiRoleByID ¶ added in v0.0.12
UpdateJamfApiRoleByID updates a Jamf API role by its ID
func (*Client) UpdateJamfApiRoleByName ¶ added in v0.0.12
UpdateJamfApiRoleByName updates a Jamf API role based on its display name
func (*Client) UpdateMacOSConfigurationProfileByID ¶ added in v0.0.11
func (c *Client) UpdateMacOSConfigurationProfileByID(id int, profile *ResponseMacOSConfigurationProfile) (*ResponseMacOSConfigurationProfile, error)
func (*Client) UpdateMacOSConfigurationProfileByName ¶ added in v0.0.11
func (c *Client) UpdateMacOSConfigurationProfileByName(name string, profile *ResponseMacOSConfigurationProfile) (*ResponseMacOSConfigurationProfile, error)
func (*Client) UpdatePolicyByID ¶ added in v0.0.45
func (c *Client) UpdatePolicyByID(id int, policy *ResponsePolicy) (*ResponsePolicy, error)
UpdatePolicyByID updates an existing policy by its ID.
func (*Client) UpdatePolicyByName ¶ added in v0.0.45
func (c *Client) UpdatePolicyByName(name string, policy *ResponsePolicy) (*ResponsePolicy, error)
UpdatePolicyByName updates an existing policy by its name.
func (*Client) UpdateScriptByID ¶ added in v0.0.15
func (c *Client) UpdateScriptByID(script *ResponseScript) (*ResponseScript, error)
UpdateScriptByID updates an existing script by its ID.
func (*Client) UpdateScriptByName ¶ added in v0.0.15
func (c *Client) UpdateScriptByName(script *ResponseScript) (*ResponseScript, error)
UpdateScriptByName updates an existing script by its name.
func (*Client) UpdateSelfServiceBrandingMacOSByID ¶ added in v0.0.49
func (c *Client) UpdateSelfServiceBrandingMacOSByID(id string, branding *SelfServiceBrandingDetail) (*SelfServiceBrandingDetail, error)
UpdateSelfServiceBrandingMacOSByID updates an existing self-service branding configuration for macOS.
func (*Client) UpdateSelfServiceBrandingMacOSByName ¶ added in v0.0.49
func (c *Client) UpdateSelfServiceBrandingMacOSByName(name string, newBranding *SelfServiceBrandingDetail) (*SelfServiceBrandingDetail, error)
UpdateSelfServiceBrandingMacOSByName updates a self-service branding configuration for macOS by name.
func (*Client) UpdateSiteByID ¶ added in v0.0.32
func (c *Client) UpdateSiteByID(id int, site *ResponseSite) (*ResponseSite, error)
UpdateSiteByID updates an existing site by its ID.
func (*Client) UpdateSiteByName ¶ added in v0.0.32
func (c *Client) UpdateSiteByName(name string, site *ResponseSite) (*ResponseSite, error)
UpdateSiteByName updates an existing site by its name.
func (*Client) UpdateVolumePurchasingSubscriptionByID ¶ added in v0.0.52
func (c *Client) UpdateVolumePurchasingSubscriptionByID(id string, subscription *VolumePurchasingSubscription) (*VolumePurchasingSubscription, error)
UpdateVolumePurchasingSubscriptionByID updates a volume purchasing subscription by its ID
func (*Client) UpdateVolumePurchasingSubscriptionByNameByID ¶ added in v0.0.52
func (c *Client) UpdateVolumePurchasingSubscriptionByNameByID(name string, updateData *VolumePurchasingSubscription) (*VolumePurchasingSubscription, error)
UpdateVolumePurchasingSubscriptionByNameByID updates a volume purchasing subscription by its display name
func (*Client) UploadIcon ¶ added in v0.0.50
func (c *Client) UploadIcon(filePath string) (*ResponseUploadIcon, error)
UploadIcon uploads an icon file to Jamf Pro and returns the icon URL and ID.
type ClientCredentials ¶ added in v0.0.13
type ClientCredentials struct { ClientID string `json:"clientId"` ClientSecret string `json:"clientSecret"` }
Integration represents the details of Api client credentials
type ComputerAssignment ¶ added in v0.0.11
type ComputerAssignment struct {
Computer ComputerInfo `json:"computer,omitempty" xml:"computer,omitempty"`
}
type ComputerContainer ¶ added in v0.0.46
type ComputerContainer struct { Size int `xml:"size"` Computer ComputerGroupComputerItem `xml:"computer"` }
type ComputerDetail ¶ added in v0.0.36
type ComputerDetail struct { ID int `xml:"id"` Name string `xml:"name"` UDID string `xml:"udid,omitempty"` ComputerName string `xml:"Computer_Name,omitempty"` }
ComputerDetail represents the details of a computer.
type ComputerExtensionAttributeInputType ¶ added in v0.0.27
type ComputerExtensionAttributeItem ¶ added in v0.0.27
type ComputerGroupComputerItem ¶ added in v0.0.26
type ComputerGroupComputerItem struct { ID int `json:"id,omitempty" xml:"id,omitempty"` Name string `json:"name,omitempty" xml:"name,omitempty"` SerialNumber string `json:"serial_number,omitempty" xml:"serial_number,omitempty"` MacAddress string `json:"mac_address,omitempty" xml:"mac_address,omitempty"` AltMacAddress string `json:"alt_mac_address,omitempty" xml:"alt_mac_address,omitempty"` }
type ComputerGroupCriterion ¶ added in v0.0.11
type ComputerGroupInfo ¶ added in v0.0.11
type ComputerGroupInfo struct {
ComputerGroup GroupAssignmentDataSubsetGroupDetail `json:"computer_group,omitempty" xml:"computer_group,omitempty"`
}
type ComputerGroupListItem ¶ added in v0.0.24
type ComputerGroupSite ¶ added in v0.0.46
type ComputerGroupsListResponse ¶ added in v0.0.24
type ComputerGroupsListResponse struct { Size int `xml:"size"` Results []ComputerGroupListItem `xml:"computer_group"` }
type ComputerInfo ¶ added in v0.0.11
type ComputerInventoryCollectionSettingsCustomPath ¶ added in v0.0.53
type ComputerInventoryCollectionSettingsCustomPath struct { Scope string `json:"scope"` Path string `json:"path"` }
ComputerInventoryCollectionSettingsCustomPath defines the request body for creating a custom path.
type ComputerInvitationDetail ¶ added in v0.0.56
type ComputerInvitationDetail struct { ID int `xml:"id,omitempty"` Invitation int64 `xml:"invitation,omitempty"` InvitationType string `xml:"invitation_type,omitempty"` ExpirationDate string `xml:"expiration_date,omitempty"` ExpirationDateUTC string `xml:"expiration_date_utc,omitempty"` ExpirationDateEpoch int64 `xml:"expiration_date_epoch,omitempty"` }
type ComputerInvitationSite ¶ added in v0.0.56
type ComputerItem ¶ added in v0.0.61
type ComputerLink ¶ added in v0.0.11
type ComputerLink struct {
Computer UsersDataSubsetItem `json:"computer" xml:"computer"`
}
type ComputerPrestagesAccountSettings ¶ added in v0.0.49
type ComputerPrestagesAccountSettings struct { ID string `json:"id"` PayloadConfigured bool `json:"payloadConfigured"` LocalAdminAccountEnabled bool `json:"localAdminAccountEnabled"` AdminUsername string `json:"adminUsername"` AdminPassword string `json:"adminPassword"` HiddenAdminAccount bool `json:"hiddenAdminAccount"` LocalUserManaged bool `json:"localUserManaged"` UserAccountType string `json:"userAccountType"` VersionLock int `json:"versionLock"` PrefillPrimaryAccountInfoFeatureEnabled bool `json:"prefillPrimaryAccountInfoFeatureEnabled"` PrefillType string `json:"prefillType"` PrefillAccountFullName string `json:"prefillAccountFullName"` PrefillAccountUserName string `json:"prefillAccountUserName"` PreventPrefillInfoFromModification bool `json:"preventPrefillInfoFromModification"` }
type ComputerPrestagesItem ¶ added in v0.0.49
type ComputerPrestagesItem struct { DisplayName string `json:"displayName"` Mandatory bool `json:"mandatory"` MDMRemovable bool `json:"mdmRemovable"` SupportPhoneNumber string `json:"supportPhoneNumber"` SupportEmailAddress string `json:"supportEmailAddress"` Department string `json:"department"` DefaultPrestage bool `json:"defaultPrestage"` EnrollmentSiteId string `json:"enrollmentSiteId"` KeepExistingSiteMembership bool `json:"keepExistingSiteMembership"` KeepExistingLocationInformation bool `json:"keepExistingLocationInformation"` RequireAuthentication bool `json:"requireAuthentication"` AuthenticationPrompt string `json:"authenticationPrompt"` PreventActivationLock bool `json:"preventActivationLock"` EnableDeviceBasedActivationLock bool `json:"enableDeviceBasedActivationLock"` DeviceEnrollmentProgramInstanceId string `json:"deviceEnrollmentProgramInstanceId"` SkipSetupItems map[string]bool `json:"skipSetupItems"` LocationInformation ComputerPrestagesLocationInformation `json:"locationInformation"` PurchasingInformation ComputerPrestagesPurchasingInformation `json:"purchasingInformation"` AnchorCertificates []string `json:"anchorCertificates"` EnrollmentCustomizationId string `json:"enrollmentCustomizationId"` Language string `json:"language"` Region string `json:"region"` AutoAdvanceSetup bool `json:"autoAdvanceSetup"` InstallProfilesDuringSetup bool `json:"installProfilesDuringSetup"` PrestageInstalledProfileIds []string `json:"prestageInstalledProfileIds"` CustomPackageIds []string `json:"customPackageIds"` CustomPackageDistributionPointId string `json:"customPackageDistributionPointId"` EnableRecoveryLock bool `json:"enableRecoveryLock"` RecoveryLockPasswordType string `json:"recoveryLockPasswordType"` RecoveryLockPassword string `json:"recoveryLockPassword"` RotateRecoveryLockPassword bool `json:"rotateRecoveryLockPassword"` ID string `json:"id"` ProfileUuid string `json:"profileUuid"` SiteId string `json:"siteId"` VersionLock int `json:"versionLock"` AccountSettings ComputerPrestagesAccountSettings `json:"accountSettings"` }
type ComputerPrestagesLocationInformation ¶ added in v0.0.49
type ComputerPrestagesLocationInformation struct { Username string `json:"username"` Realname string `json:"realname"` Phone string `json:"phone"` Email string `json:"email"` Room string `json:"room"` Position string `json:"position"` DepartmentId string `json:"departmentId"` BuildingId string `json:"buildingId"` ID string `json:"id"` VersionLock int `json:"versionLock"` }
type ComputerPrestagesPurchasingInformation ¶ added in v0.0.49
type ComputerPrestagesPurchasingInformation struct { ID string `json:"id"` Leased bool `json:"leased"` Purchased bool `json:"purchased"` AppleCareId string `json:"appleCareId"` PONumber string `json:"poNumber"` Vendor string `json:"vendor"` PurchasePrice string `json:"purchasePrice"` LifeExpectancy int `json:"lifeExpectancy"` PurchasingAccount string `json:"purchasingAccount"` PurchasingContact string `json:"purchasingContact"` LeaseDate string `json:"leaseDate"` PODate string `json:"poDate"` WarrantyDate string `json:"warrantyDate"` VersionLock int `json:"versionLock"` }
type ConfigurationProfile ¶ added in v0.0.61
type ConfigurationProfile struct { ID int `xml:"id" json:"id"` Name string `xml:"name" json:"name"` UUID string `xml:"uuid" json:"uuid"` IsRemovable bool `xml:"is_removable" json:"is_removable"` }
ConfigurationProfile represents a configuration profile applied to the computer
type Criterion ¶ added in v0.0.48
type Criterion struct { Name string `xml:"name"` // Name of the criterion Priority int `xml:"priority"` // Priority of the criterion AndOr string `xml:"and_or"` // Logical operator to combine criteria SearchType string `xml:"search_type"` // Type of search being performed Value int `xml:"value"` // Value for the criterion OpeningParen bool `xml:"opening_paren,omitempty"` // Indicates if there is an opening parenthesis for grouping ClosingParen bool `xml:"closing_paren,omitempty"` // Indicates if there is a closing parenthesis for grouping }
Criterion contains the details of a single criterion in the search.
type CriterionContainer ¶ added in v0.0.46
type CriterionContainer struct { Size int `xml:"size"` Criterion ComputerGroupCriterion `xml:"criterion"` }
type CriterionDetail ¶ added in v0.0.36
type CriterionDetail struct { Name string `xml:"name"` Priority int `xml:"priority,omitempty"` AndOr string `xml:"and_or,omitempty"` SearchType string `xml:"search_type,omitempty"` Value string `xml:"value,omitempty"` OpeningParen bool `xml:"opening_paren,omitempty"` ClosingParen bool `xml:"closing_paren,omitempty"` }
CriterionDetail represents the details of a criterion in a search.
type DepartmentAssignment ¶ added in v0.0.11
type DepartmentAssignment struct {
Department DepartmentInfo `json:"department,omitempty" xml:"department,omitempty"`
}
type DepartmentInfo ¶ added in v0.0.11
type DepartmentItem ¶ added in v0.0.34
type DeviceGroupAndOr ¶ added in v0.0.11
type DeviceGroupAndOr string
const ( And DeviceGroupAndOr = "and" Or DeviceGroupAndOr = "or" )
type DirectoryBindingDetail ¶ added in v0.0.59
type DiskEncryptionConfiguration ¶ added in v0.0.57
type DiskEncryptionConfiguration struct { XMLName xml.Name `xml:"disk_encryption_configuration"` Name string `xml:"name"` KeyType string `xml:"key_type"` FileVaultEnabledUsers string `xml:"file_vault_enabled_users"` InstitutionalRecoveryKey *DiskEncryptionConfigurationDataSubsetInstitutionalRecoveryKey `xml:"institutional_recovery_key,omitempty"` }
DiskEncryptionConfiguration represents the top-level XML structure for creating/updating a Disk Encryption Configuration.
type DiskEncryptionConfigurationDataSubsetInstitutionalRecoveryKey ¶ added in v0.0.57
type DiskEncryptionConfigurationDataSubsetInstitutionalRecoveryKey struct { Key string `xml:"key"` CertificateType string `xml:"certificate_type"` Password string `xml:"password"` Data string `xml:"data"` }
DiskEncryptionConfigurationDataSubsetInstitutionalRecoveryKey represents the XML structure for Institutional Recovery Key.
type DiskEncryptionConfigurationDetail ¶ added in v0.0.57
type DisplayFieldDetail ¶ added in v0.0.36
type DisplayFieldDetail struct {
Name string `xml:"name"`
}
DisplayFieldDetail represents the details of a display field.
type DistributionPointListDetail ¶ added in v0.0.58
type EbooksDataSubsetBuilding ¶ added in v0.0.63
Building represents a building within the scope.
type EbooksDataSubsetCategory ¶ added in v0.0.63
type EbooksDataSubsetClass ¶ added in v0.0.63
Class represents a class within the scope.
type EbooksDataSubsetComputer ¶ added in v0.0.63
type EbooksDataSubsetComputer struct { ID int `xml:"id"` Name string `xml:"name"` UDID string `xml:"udid"` }
Computer represents a single computer within the scope.
type EbooksDataSubsetComputerGroup ¶ added in v0.0.63
ComputerGroup represents a group of computers within the scope.
type EbooksDataSubsetDepartment ¶ added in v0.0.63
Department represents a department within the scope.
type EbooksDataSubsetExclusions ¶ added in v0.0.63
type EbooksDataSubsetExclusions struct { Computers []EbooksDataSubsetComputer `xml:"computers>computer"` ComputerGroups []EbooksDataSubsetComputerGroup `xml:"computer_groups>computer_group"` MobileDevices []EbooksDataSubsetMobileDevice `xml:"mobile_devices>mobile_device"` MobileDeviceGroups []EbooksDataSubsetMobileDeviceGroup `xml:"mobile_device_groups>mobile_device_group"` Buildings []EbooksDataSubsetBuilding `xml:"buildings>building"` Departments []EbooksDataSubsetDepartment `xml:"departments>department"` JSSUsers []EbooksDataSubsetUser `xml:"jss_users>user"` JSSUserGroups []EbooksDataSubsetUserGroup `xml:"jss_user_groups>user_group"` }
Exclusions represent any exclusions within the scope.
type EbooksDataSubsetGeneral ¶ added in v0.0.63
type EbooksDataSubsetGeneral struct { ID int `xml:"id"` Name string `xml:"name"` Author string `xml:"author"` Version string `xml:"version"` Free bool `xml:"free"` URL string `xml:"url"` DeploymentType string `xml:"deployment_type"` FileType string `xml:"file_type"` DeployAsManaged bool `xml:"deploy_as_managed"` Category EbooksDataSubsetCategory `xml:"category"` SelfServiceIcon EbooksDataSubsetSelfServiceIcon `xml:"self_service_icon"` Site EbooksDataSubsetSite `xml:"site"` }
type EbooksDataSubsetLimitations ¶ added in v0.0.63
type EbooksDataSubsetLimitations struct { NetworkSegments []EbooksDataSubsetNetworkSegment `xml:"network_segments>network_segment"` Users []EbooksDataSubsetUser `xml:"users>user"` UserGroups []EbooksDataSubsetUserGroup `xml:"user_groups>user_group"` }
EbooksDataSubsetLimitations represents any limitations within the scope.
type EbooksDataSubsetMobileDevice ¶ added in v0.0.63
type EbooksDataSubsetMobileDevice struct { ID int `xml:"id"` Name string `xml:"name"` UDID string `xml:"udid"` WiFiMacAddress string `xml:"wifi_mac_address"` }
MobileDevice represents a single mobile device within the scope.
type EbooksDataSubsetMobileDeviceGroup ¶ added in v0.0.63
EbooksDataSubsetMobileDeviceGroup represents a group of mobile devices within the scope.
type EbooksDataSubsetNetworkSegment ¶ added in v0.0.63
type EbooksDataSubsetNetworkSegment struct { ID int `xml:"id"` UID string `xml:"uid,omitempty"` Name string `xml:"name"` }
EbooksDataSubsetNetworkSegment represents a network segment within the limitations.
type EbooksDataSubsetScope ¶ added in v0.0.63
type EbooksDataSubsetScope struct { AllComputers bool `xml:"all_computers"` AllMobileDevices bool `xml:"all_mobile_devices"` AllJSSUsers bool `xml:"all_jss_users"` Computers []EbooksDataSubsetComputer `xml:"computers>computer"` ComputerGroups []EbooksDataSubsetComputerGroup `xml:"computer_groups>computer_group"` MobileDevices []EbooksDataSubsetMobileDevice `xml:"mobile_devices>mobile_device"` MobileDeviceGroups []MobileDeviceGroup `xml:"mobile_device_groups>mobile_device_group"` Buildings []EbooksDataSubsetBuilding `xml:"buildings>building"` Departments []EbooksDataSubsetDepartment `xml:"departments>department"` JSSUsers []EbooksDataSubsetUser `xml:"jss_users>user"` JSSUserGroups []EbooksDataSubsetUserGroup `xml:"jss_user_groups>user_group"` Classes []EbooksDataSubsetClass `xml:"classes>class"` Limitations EbooksDataSubsetLimitations `xml:"limitations"` Exclusions EbooksDataSubsetExclusions `xml:"exclusions"` }
type EbooksDataSubsetSelfService ¶ added in v0.0.63
type EbooksDataSubsetSelfService struct { SelfServiceDisplayName string `xml:"self_service_display_name"` InstallButtonText string `xml:"install_button_text"` SelfServiceDescription string `xml:"self_service_description"` ForceUsersToViewDescription bool `xml:"force_users_to_view_description"` SelfServiceIcon EbooksDataSubsetSelfServiceIcon `xml:"self_service_icon"` FeatureOnMainPage bool `xml:"feature_on_main_page"` SelfServiceCategories EbooksDataSubsetSelfServiceCategories `xml:"self_service_categories"` Notification bool `xml:"notification"` NotificationSubject string `xml:"notification_subject"` NotificationMessage string `xml:"notification_message"` }
type EbooksDataSubsetSelfServiceCategories ¶ added in v0.0.63
type EbooksDataSubsetSelfServiceCategories struct {
Category []EbooksDataSubsetCategory `xml:"category"`
}
SelfServiceCategories represent the categories within SelfService.
type EbooksDataSubsetSelfServiceIcon ¶ added in v0.0.63
type EbooksDataSubsetSite ¶ added in v0.0.63
type EbooksDataSubsetUser ¶ added in v0.0.63
User represents a user within the scope.
type EbooksDataSubsetUserGroup ¶ added in v0.0.63
UserGroup represents a group of users within the scope.
type ExclusionConfig ¶ added in v0.0.11
type ExclusionConfig struct { Computers []ComputerAssignment `json:"computers,omitempty" xml:"computers,omitempty"` Buildings []BuildingAssignment `json:"buildings,omitempty" xml:"buildings,omitempty"` Departments []DepartmentAssignment `json:"departments,omitempty" xml:"departments,omitempty"` ComputerGroups []ComputerGroupInfo `json:"computer_groups,omitempty" xml:"computer_groups,omitempty"` Users []UserAssignment `json:"users,omitempty" xml:"users,omitempty"` UserGroups []UserGroupAssignment `json:"user_groups,omitempty" xml:"user_groups,omitempty"` NetworkSegments []NetworkSegmentInfo `json:"network_segments,omitempty" xml:"network_segments,omitempty"` IBeacons []IBeaconInfo `json:"ibeacons,omitempty" xml:"ibeacons,omitempty"` JSSUsers []JSSUserConfig `json:"jss_users,omitempty" xml:"jss_users,omitempty"` JSSUserGroups []JSSUserGroupInfo `json:"jss_user_groups,omitempty" xml:"jss_user_groups,omitempty"` }
type ExtensionAttribute ¶ added in v0.0.61
type ExtensionAttribute struct { ID int `xml:"id" json:"id"` Name string `xml:"name" json:"name"` Type string `xml:"type" json:"type"` Value string `xml:"value" json:"value"` }
ExtensionAttribute represents a custom extension attribute of the computer
type ExtensionAttributeItem ¶ added in v0.0.11
type ExtensionAttributeItem struct { ID int `json:"id,omitempty" xml:"id,omitempty"` Name string `json:"name,omitempty" xml:"name,omitempty"` Type string `json:"type,omitempty" xml:"type,omitempty"` // possible values: String, Integer, Date Value string `json:"value,omitempty" xml:"value,omitempty"` }
type Filevault2User ¶ added in v0.0.61
type Filevault2User struct {
User string `xml:"user" json:"user"`
}
Filevault2User represents a user associated with FileVault 2
type Font ¶ added in v0.0.61
type Font struct { Name string `xml:"name" json:"name"` Path string `xml:"path" json:"path"` Version string `xml:"version" json:"version"` }
Font represents a font installed on the computer
type General ¶ added in v0.0.61
type General struct { ID int `xml:"id" json:"id"` Name string `xml:"name" json:"name"` MacAddress string `xml:"mac_address" json:"mac_address"` NetworkAdapterType string `xml:"network_adapter_type" json:"network_adapter_type"` AltMacAddress string `xml:"alt_mac_address" json:"alt_mac_address"` AltNetworkAdapterType string `xml:"alt_network_adapter_type" json:"alt_network_adapter_type"` IPAddress string `xml:"ip_address" json:"ip_address"` LastReportedIP string `xml:"last_reported_ip" json:"last_reported_ip"` SerialNumber string `xml:"serial_number" json:"serial_number"` UDID string `xml:"udid" json:"udid"` JamfVersion string `xml:"jamf_version" json:"jamf_version"` Platform string `xml:"platform" json:"platform"` Barcode1 string `xml:"barcode_1" json:"barcode_1"` Barcode2 string `xml:"barcode_2" json:"barcode_2"` AssetTag string `xml:"asset_tag" json:"asset_tag"` RemoteManagement RemoteManagement `xml:"remote_management" json:"remote_management"` MdmCapable bool `xml:"mdm_capable" json:"mdm_capable"` MdmCapableUsers MdmCapableUsers `xml:"mdm_capable_users" json:"mdm_capable_users"` MdmProfileExpirationEpoch int64 `xml:"mdm_profile_expiration_epoch" json:"mdm_profile_expiration_epoch"` MdmProfileExpirationUtc string `xml:"mdm_profile_expiration_utc" json:"mdm_profile_expiration_utc"` ManagementStatus ManagementStatus `xml:"management_status" json:"management_status"` ReportDate string `xml:"report_date" json:"report_date"` ReportDateEpoch int64 `xml:"report_date_epoch" json:"report_date_epoch"` ReportDateUtc string `xml:"report_date_utc" json:"report_date_utc"` LastContactTime string `xml:"last_contact_time" json:"last_contact_time"` LastContactTimeEpoch int64 `xml:"last_contact_time_epoch" json:"last_contact_time_epoch"` LastContactTimeUtc string `xml:"last_contact_time_utc" json:"last_contact_time_utc"` InitialEntryDate string `xml:"initial_entry_date" json:"initial_entry_date"` InitialEntryDateEpoch int64 `xml:"initial_entry_date_epoch" json:"initial_entry_date_epoch"` InitialEntryDateUtc string `xml:"initial_entry_date_utc" json:"initial_entry_date_utc"` LastCloudBackupDateEpoch int64 `xml:"last_cloud_backup_date_epoch" json:"last_cloud_backup_date_epoch"` LastCloudBackupDateUtc string `xml:"last_cloud_backup_date_utc" json:"last_cloud_backup_date_utc"` LastEnrolledDateEpoch int64 `xml:"last_enrolled_date_epoch" json:"last_enrolled_date_epoch"` LastEnrolledDateUtc string `xml:"last_enrolled_date_utc" json:"last_enrolled_date_utc"` DistributionPoint string `xml:"distribution_point" json:"distribution_point"` Sus string `xml:"sus" json:"sus"` Supervised bool `xml:"supervised" json:"supervised"` Site Site `xml:"site" json:"site"` ItunesStoreAccountIsActive bool `xml:"itunes_store_account_is_active" json:"itunes_store_account_is_active"` }
type GeneralConfig ¶ added in v0.0.11
type GeneralConfig struct { ID int `json:"id,omitempty" xml:"id,omitempty"` Name string `json:"name,omitempty" xml:"name,omitempty"` Description string `json:"description,omitempty" xml:"description,omitempty"` Site SiteInfo `json:"site,omitempty" xml:"site,omitempty"` Category CategoryInfo `json:"category,omitempty" xml:"category,omitempty"` DistributionMethod string `json:"distribution_method,omitempty" xml:"distribution_method,omitempty"` UserRemovable bool `json:"user_removable,omitempty" xml:"user_removable,omitempty"` Level string `json:"level,omitempty" xml:"level,omitempty"` UUID string `json:"uuid,omitempty" xml:"uuid,omitempty"` RedeployOnUpdate string `json:"redeploy_on_update,omitempty" xml:"redeploy_on_update,omitempty"` Payloads string `json:"payloads,omitempty" xml:"payloads,omitempty"` }
type GroupAssignmentDataSubsetGroupDetail ¶ added in v0.0.14
type GroupAssignmentDataSubsetGroupDetail struct { ID int `json:"id,omitempty" xml:"id"` Name string `json:"name" xml:"name"` AccessLevel string `json:"access_level" xml:"access_level"` PrivilegeSet string `json:"privilege_set" xml:"privilege_set"` Site AccountDataSubsetSite `json:"site" xml:"site"` Privileges AccountDataSubsetPrivileges `json:"privileges" xml:"privileges"` Members []AccountDataSubsetMembers `json:"members" xml:"members>user"` }
type GroupMembership ¶ added in v0.0.61
type GroupMembership struct {
Group string `xml:"group" json:"group"`
}
GroupMembership represents a membership of a computer in a group
type Groups ¶
type Groups struct {
Group []ResponseAccountGroup `json:"group,omitempty" xml:"group,omitempty"`
}
type GroupsAccounts ¶ added in v0.0.61
type GroupsAccounts struct { ComputerGroupMemberships []GroupMembership `xml:"computer_group_memberships>group" json:"computer_group_memberships"` LocalAccounts []LocalAccount `xml:"local_accounts>user" json:"local_accounts"` }
GroupsAccounts contains information about group memberships and local accounts
type Hardware ¶ added in v0.0.61
type Hardware struct { Make string `xml:"make" json:"make"` Model string `xml:"model" json:"model"` ModelIdentifier string `xml:"model_identifier" json:"model_identifier"` OsName string `xml:"os_name" json:"os_name"` OsVersion string `xml:"os_version" json:"os_version"` OsBuild string `xml:"os_build" json:"os_build"` MasterPasswordSet bool `xml:"master_password_set" json:"master_password_set"` ActiveDirectoryStatus string `xml:"active_directory_status" json:"active_directory_status"` ServicePack string `xml:"service_pack" json:"service_pack"` ProcessorType string `xml:"processor_type" json:"processor_type"` ProcessorArchitecture string `xml:"processor_architecture" json:"processor_architecture"` ProcessorSpeed int `xml:"processor_speed" json:"processor_speed"` ProcessorSpeedMhz int `xml:"processor_speed_mhz" json:"processor_speed_mhz"` NumberProcessors int `xml:"number_processors" json:"number_processors"` NumberCores int `xml:"number_cores" json:"number_cores"` TotalRam int `xml:"total_ram" json:"total_ram"` TotalRamMb int `xml:"total_ram_mb" json:"total_ram_mb"` BootRom string `xml:"boot_rom" json:"boot_rom"` BusSpeed int `xml:"bus_speed" json:"bus_speed"` BusSpeedMhz int `xml:"bus_speed_mhz" json:"bus_speed_mhz"` BatteryCapacity int `xml:"battery_capacity" json:"battery_capacity"` CacheSize int `xml:"cache_size" json:"cache_size"` CacheSizeKb int `xml:"cache_size_kb" json:"cache_size_kb"` AvailableRamSlots int `xml:"available_ram_slots" json:"available_ram_slots"` OpticalDrive string `xml:"optical_drive" json:"optical_drive"` NicSpeed string `xml:"nic_speed" json:"nic_speed"` SmcVersion string `xml:"smc_version" json:"smc_version"` BleCapable bool `xml:"ble_capable" json:"ble_capable"` SipStatus string `xml:"sip_status" json:"sip_status"` GatekeeperStatus string `xml:"gatekeeper_status" json:"gatekeeper_status"` XprotectVersion string `xml:"xprotect_version" json:"xprotect_version"` InstitutionalRecoveryKey string `xml:"institutional_recovery_key" json:"institutional_recovery_key"` DiskEncryptionConfiguration string `xml:"disk_encryption_configuration" json:"disk_encryption_configuration"` SoftwareUpdateDeviceID string `xml:"software_update_device_id,omitempty" json:"software_update_device_id,omitempty"` IsAppleSilicon bool `xml:"is_apple_silicon,omitempty" json:"is_apple_silicon,omitempty"` SupportsIosAppInstalls bool `xml:"supports_ios_app_installs,omitempty" json:"supports_ios_app_installs,omitempty"` Filevault2Users []Filevault2User `xml:"filevault2_users>user" json:"filevault_2_users"` Storage []StorageDevice `xml:"storage>device" json:"storage"` MappedPrinters []Printer `xml:"mapped_printers>printer" json:"mapped_printers"` }
Hardware details of the computer
type IBeaconInfo ¶ added in v0.0.11
type IBeaconInfo struct {
IBeacon BeaconDetail `json:"ibeacon,omitempty" xml:"ibeacon,omitempty"`
}
type IBeaconScope ¶ added in v0.0.11
type IbeaconListItem ¶ added in v0.0.11
type InventoryCollectionPreference ¶ added in v0.0.53
type InventoryCollectionPreference struct { MonitorApplicationUsage bool `json:"monitorApplicationUsage"` IncludeFonts bool `json:"includeFonts"` IncludePlugins bool `json:"includePlugins"` IncludePackages bool `json:"includePackages"` IncludeSoftwareUpdates bool `json:"includeSoftwareUpdates"` IncludeSoftwareId bool `json:"includeSoftwareId"` IncludeAccounts bool `json:"includeAccounts"` CalculateSizes bool `json:"calculateSizes"` IncludeHiddenAccounts bool `json:"includeHiddenAccounts"` IncludePrinters bool `json:"includePrinters"` IncludeServices bool `json:"includeServices"` CollectSyncedMobileDeviceInfo bool `json:"collectSyncedMobileDeviceInfo"` UpdateLdapInfoOnComputerInventorySubmissions bool `json:"updateLdapInfoOnComputerInventorySubmissions"` MonitorBeacons bool `json:"monitorBeacons"` AllowChangingUserAndLocation bool `json:"allowChangingUserAndLocation"` UseUnixUserPaths bool `json:"useUnixUserPaths"` CollectUnmanagedCertificates bool `json:"collectUnmanagedCertificates"` }
type JSSUserConfig ¶ added in v0.0.11
type JSSUserConfig struct {
JSSUser UserInfo `json:"jss_user,omitempty" xml:"jss_user,omitempty"`
}
type JSSUserGroupInfo ¶ added in v0.0.11
type JSSUserGroupInfo struct {
JSSUserGroup GroupAssignmentDataSubsetGroupDetail `json:"jss_user_group,omitempty" xml:"jss_user_group,omitempty"`
}
type JamfUserScope ¶ added in v0.0.11
type LocalAccount ¶ added in v0.0.61
type LocalAccount struct { Name string `xml:"name" json:"name"` RealName string `xml:"realname" json:"realname"` UID string `xml:"uid" json:"uid"` Home string `xml:"home" json:"home"` HomeSize string `xml:"home_size" json:"home_size"` HomeSizeMb int `xml:"home_size_mb" json:"home_size_mb"` Administrator bool `xml:"administrator" json:"administrator"` FilevaultEnabled bool `xml:"filevault_enabled" json:"filevault_enabled"` }
LocalAccount represents a local account on the computer
type Location ¶ added in v0.0.61
type Location struct { Username string `xml:"username" json:"username"` RealName string `xml:"realname" json:"realname"` EmailAddress string `xml:"email_address" json:"email_address"` Position string `xml:"position" json:"position"` Phone string `xml:"phone" json:"phone"` PhoneNumber string `xml:"phone_number" json:"phone_number"` Department string `xml:"department" json:"department"` Building string `xml:"building" json:"building"` Room string `xml:"room" json:"room"` }
Location details of the computer
type LogLevel ¶ added in v0.0.52
type LogLevel int
Logger is an interface for logging within the SDK.// LogLevel mirrors the http_client's LogLevel to maintain compatibility.
type Logger ¶
type Logger interface { SetLevel(level LogLevel) Trace(msg string, keysAndValues ...interface{}) Debug(msg string, keysAndValues ...interface{}) Info(msg string, keysAndValues ...interface{}) Warn(msg string, keysAndValues ...interface{}) Error(msg string, keysAndValues ...interface{}) Fatal(msg string, keysAndValues ...interface{}) }
Logger interface to match http_client's Logger interface.
func NewDefaultLogger ¶
func NewDefaultLogger() Logger
NewDefaultLogger returns a new default logger instance with a default log level.
type MacOSConfigurationProfileListItem ¶ added in v0.0.11
type ManagementStatus ¶ added in v0.0.61
type MdmCapableUsers ¶ added in v0.0.61
type MdmCapableUsers struct {
MdmCapableUser string `xml:"mdm_capable_user" json:"mdm_capable_user"`
}
type MemcachedEndpoint ¶ added in v0.0.52
type MemcachedEndpoint struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` HostName string `json:"hostName,omitempty"` Port int `json:"port,omitempty"` Enabled bool `json:"enabled,omitempty"` JSSCacheConfigurationID int `json:"jssCacheConfigurationId,omitempty"` }
MemcachedEndpoint represents an individual memcached endpoint in the cache settings.
type MobileDeviceGroup ¶ added in v0.0.63
MobileDeviceGroup represents a group of mobile devices within the scope.
type MobileDeviceItem ¶ added in v0.0.48
type MobileDeviceItem struct { ID int `xml:"id"` // Unique identifier for the mobile device Name string `xml:"name"` // Name of the mobile device UDID string `xml:"udid"` // Unique Device Identifier for the mobile device DisplayName string `xml:"Display_Name"` // Display name of the mobile device }
MobileDevice contains details about a single mobile device.
type MobileDeviceLink ¶ added in v0.0.11
type MobileDeviceLink struct {
MobileDevice UsersDataSubsetItem `json:"mobile_device" xml:"mobile_device"`
}
type NetworkDetail ¶ added in v0.0.11
type NetworkLimitation ¶ added in v0.0.11
type NetworkLimitation struct { Users []UserAssignment `json:"users,omitempty" xml:"users,omitempty"` UserGroups []UserGroupAssignment `json:"user_groups,omitempty" xml:"user_groups,omitempty"` NetworkSegments []NetworkSegmentInfo `json:"network_segments,omitempty" xml:"network_segments,omitempty"` IBeacons []IBeaconInfo `json:"ibeacons,omitempty" xml:"ibeacons,omitempty"` }
type NetworkSegmentInfo ¶ added in v0.0.11
type NetworkSegmentInfo struct {
NetworkSegment NetworkDetail `json:"network_segment,omitempty" xml:"network_segment,omitempty"`
}
type NetworkSegmentList ¶ added in v0.0.11
type NetworkSegmentList struct { Size int `json:"size" xml:"size"` Results []ResponseNetworkSegment `json:"network_segment" xml:"network_segment"` }
type NetworkSegmentScope ¶ added in v0.0.11
type Parameters ¶ added in v0.0.15
type Parameters struct { Parameter4 string `xml:"parameter4,omitempty"` Parameter5 string `xml:"parameter5,omitempty"` Parameter6 string `xml:"parameter6,omitempty"` Parameter7 string `xml:"parameter7,omitempty"` Parameter8 string `xml:"parameter8,omitempty"` Parameter9 string `xml:"parameter9,omitempty"` Parameter10 string `xml:"parameter10,omitempty"` Parameter11 string `xml:"parameter11,omitempty"` }
type Partition ¶ added in v0.0.61
type Partition struct { Name string `xml:"name" json:"name"` Size int `xml:"size" json:"size"` Type string `xml:"type" json:"type"` PartitionCapacityMb int `xml:"partition_capacity_mb" json:"partition_capacity_mb"` PercentageFull int `xml:"percentage_full" json:"percentage_full"` FilevaultStatus string `xml:"filevault_status" json:"filevault_status"` FilevaultPercent int `xml:"filevault_percent" json:"filevault_percent"` Filevault2Status string `xml:"filevault2_status" json:"filevault2_status"` Filevault2Percent int `xml:"filevault2_percent" json:"filevault2_percent"` BootDriveAvailableMb int `xml:"boot_drive_available_mb" json:"boot_drive_available_mb"` LvgUUID string `xml:"lvgUUID" json:"lvgUUID"` LvUUID string `xml:"lvUUID" json:"lvUUID"` PvUUID string `xml:"pvUUID" json:"pvUUID"` }
Partition represents a partition on a storage device
type Peripheral ¶ added in v0.0.61
type Peripheral struct { ID int `xml:"id" json:"id"` BarCode1 string `xml:"bar_code_1" json:"bar_code_1"` BarCode2 string `xml:"bar_code_2" json:"bar_code_2"` Type string `xml:"type" json:"type"` Fields PeripheralFields `xml:"fields" json:"fields"` Purchasing PeripheralPurchasing `xml:"purchasing" json:"purchasing"` Attachments []PeripheralAttachment `xml:"attachments>attachment" json:"attachments"` }
type PeripheralAttachment ¶ added in v0.0.61
type PeripheralAttachment struct { Size int `xml:"size" json:"size"` ID int `xml:"id" json:"id"` Filename string `xml:"filename" json:"filename"` URI string `xml:"uri" json:"uri"` }
Attachment represents an attachment to a peripheral
type PeripheralFields ¶ added in v0.0.61
type PeripheralFields struct {
Field []Field `xml:"field" json:"field"`
}
type PeripheralLink ¶ added in v0.0.11
type PeripheralLink struct {
Peripheral UsersDataSubsetItem `json:"peripheral" xml:"peripheral"`
}
type PeripheralPurchasing ¶ added in v0.0.61
type PeripheralPurchasing struct { IsPurchased bool `xml:"is_purchased" json:"is_purchased"` IsLeased bool `xml:"is_leased" json:"is_leased"` PoNumber string `xml:"po_number" json:"po_number"` Vendor string `xml:"vendor" json:"vendor"` ApplecareID string `xml:"applecare_id" json:"applecare_id"` PurchasePrice string `xml:"purchase_price" json:"purchase_price"` PurchasingAccount string `xml:"purchasing_account" json:"purchasing_account"` PoDate string `xml:"po_date" json:"po_date"` PoDateEpoch int64 `xml:"po_date_epoch" json:"po_date_epoch"` PoDateUtc string `xml:"po_date_utc" json:"po_date_utc"` WarrantyExpires string `xml:"warranty_expires" json:"warranty_expires"` WarrantyExpiresEpoch int64 `xml:"warranty_expires_epoch" json:"warranty_expires_epoch"` WarrantyExpiresUtc string `xml:"warranty_expires_utc" json:"warranty_expires_utc"` LeaseExpires string `xml:"lease_expires" json:"lease_expires"` LeaseExpiresEpoch int64 `xml:"lease_expires_epoch" json:"lease_expires_epoch"` LeaseExpiresUtc string `xml:"lease_expires_utc" json:"lease_expires_utc"` LifeExpectancy int `xml:"life_expectancy" json:"life_expectancy"` PurchasingContact string `xml:"purchasing_contact" json:"purchasing_contact"` }
PeripheralPurchasing contains purchasing information for peripherals
type Peripherals ¶ added in v0.0.61
type Peripherals struct { Size int `xml:"size" json:"size"` Peripherals []Peripheral `xml:"peripheral" json:"peripherals"` }
Peripherals associated with the computer
type Plugin ¶ added in v0.0.61
type Plugin struct { Name string `xml:"name" json:"name"` Path string `xml:"path" json:"path"` Version string `xml:"version" json:"version"` }
Plugin represents a plugin installed on the computer
type PolicyAccount ¶ added in v0.0.45
type PolicyAccount struct { Action string `xml:"action"` Username string `xml:"username"` Realname string `xml:"realname"` Password string `xml:"password"` ArchiveHomeDirectory bool `xml:"archive_home_directory"` ArchiveHomeDirectoryTo string `xml:"archive_home_directory_to"` Home string `xml:"home"` Hint string `xml:"hint"` Picture string `xml:"picture"` Admin bool `xml:"admin"` FilevaultEnabled bool `xml:"filevault_enabled"` PasswordSha256 string `xml:"password_sha256"` }
type PolicyAccountMaintenance ¶ added in v0.0.45
type PolicyAccountMaintenance struct { Accounts []PolicyAccount `xml:"accounts>account"` DirectoryBindings []PolicyDirectoryBinding `xml:"directory_bindings>binding"` ManagementAccount PolicyManagementAccount `xml:"management_account"` OpenFirmwareEfiPassword PolicyOpenFirmwareEfiPassword `xml:"open_firmware_efi_password"` }
PolicyAccountMaintenance represents the account maintenance settings of a policy
type PolicyBuilding ¶ added in v0.0.45
type PolicyCategory ¶ added in v0.0.45
type PolicyComputer ¶ added in v0.0.45
type PolicyComputerGroup ¶ added in v0.0.45
type PolicyDateTimeLimitations ¶ added in v0.0.45
type PolicyDateTimeLimitations struct { ActivationDate string `xml:"activation_date,omitempty"` ActivationDateEpoch int64 `xml:"activation_date_epoch,omitempty"` ActivationDateUTC string `xml:"activation_date_utc,omitempty"` ExpirationDate string `xml:"expiration_date,omitempty"` ExpirationDateEpoch int64 `xml:"expiration_date_epoch,omitempty"` ExpirationDateUTC string `xml:"expiration_date_utc,omitempty"` NoExecuteOn PolicyNoExecuteOn `xml:"no_execute_on,omitempty"` NoExecuteStart string `xml:"no_execute_start,omitempty"` NoExecuteEnd string `xml:"no_execute_end,omitempty"` }
type PolicyDepartment ¶ added in v0.0.45
type PolicyDirectoryBinding ¶ added in v0.0.45
type PolicyDiskEncryption ¶ added in v0.0.45
type PolicyDiskEncryption struct { Action string `xml:"action"` DiskEncryptionConfigurationID int `xml:"disk_encryption_configuration_id"` AuthRestart bool `xml:"auth_restart"` RemediateKeyType string `xml:"remediate_key_type,omitempty"` RemediateDiskEncryptionConfigurationID int `xml:"remediate_disk_encryption_configuration_id,omitempty"` }
PolicyDiskEncryption represents the disk encryption settings of a policy
type PolicyDockItem ¶ added in v0.0.45
type PolicyDockItems ¶ added in v0.0.45
type PolicyDockItems struct { Size int `xml:"size"` DockItem []PolicyDockItem `xml:"dock_item"` }
PolicyDockItems represents the dock items settings of a policy
type PolicyExclusions ¶ added in v0.0.45
type PolicyExclusions struct { Computers []PolicyComputer `xml:"computers>computer,omitempty"` ComputerGroups []PolicyComputerGroup `xml:"computer_groups>computer_group,omitempty"` Buildings []PolicyBuilding `xml:"buildings>building,omitempty"` Departments []PolicyDepartment `xml:"departments>department,omitempty"` Users []PolicyUser `xml:"users>user,omitempty"` UserGroups []PolicyUserGroup `xml:"user_groups>user_group,omitempty"` NetworkSegments []PolicyNetworkSegment `xml:"network_segments>network_segment,omitempty"` IBeacons []PolicyIBeacon `xml:"ibeacons>ibeacon,omitempty"` }
type PolicyFilesProcesses ¶ added in v0.0.45
type PolicyFilesProcesses struct { SearchByPath string `xml:"search_by_path"` DeleteFile bool `xml:"delete_file"` LocateFile string `xml:"locate_file"` UpdateLocateDatabase bool `xml:"update_locate_database"` SpotlightSearch string `xml:"spotlight_search"` SearchForProcess string `xml:"search_for_process"` KillProcess bool `xml:"kill_process"` RunCommand string `xml:"run_command"` }
PolicyFilesProcesses represents the files and processes settings of a policy
type PolicyGeneral ¶ added in v0.0.45
type PolicyGeneral struct { ID int `xml:"id"` Name string `xml:"name"` Enabled bool `xml:"enabled"` Trigger string `xml:"trigger,omitempty"` TriggerCheckin bool `xml:"trigger_checkin"` TriggerEnrollmentComplete bool `xml:"trigger_enrollment_complete"` TriggerLogin bool `xml:"trigger_login"` TriggerLogout bool `xml:"trigger_logout"` TriggerNetworkStateChanged bool `xml:"trigger_network_state_changed"` TriggerStartup bool `xml:"trigger_startup"` TriggerOther string `xml:"trigger_other,omitempty"` Frequency string `xml:"frequency,omitempty"` RetryEvent string `xml:"retry_event,omitempty"` RetryAttempts int `xml:"retry_attempts,omitempty"` NotifyOnEachFailedRetry bool `xml:"notify_on_each_failed_retry"` LocationUserOnly bool `xml:"location_user_only"` TargetDrive string `xml:"target_drive,omitempty"` Offline bool `xml:"offline"` Category PolicyCategory `xml:"category,omitempty"` DateTimeLimitations PolicyDateTimeLimitations `xml:"date_time_limitations,omitempty"` NetworkLimitations PolicyNetworkLimitations `xml:"network_limitations,omitempty"` OverrideDefaultSettings PolicyOverrideSettings `xml:"override_default_settings,omitempty"` NetworkRequirements string `xml:"network_requirements,omitempty"` Site PolicySite `xml:"site"` }
PolicyGeneral represents the general information of a policy
type PolicyIBeacon ¶ added in v0.0.45
type PolicyItem ¶ added in v0.0.45
type PolicyLimitToUsers ¶ added in v0.0.45
type PolicyLimitToUsers struct {
UserGroups []string `xml:"user_groups>user_group,omitempty"`
}
type PolicyLimitations ¶ added in v0.0.45
type PolicyLimitations struct { Users []PolicyUser `xml:"users>user,omitempty"` UserGroups []PolicyUserGroup `xml:"user_groups>user_group,omitempty"` NetworkSegments []PolicyNetworkSegment `xml:"network_segments>network_segment,omitempty"` IBeacons []PolicyIBeacon `xml:"ibeacons>ibeacon,omitempty"` }
type PolicyMaintenance ¶ added in v0.0.45
type PolicyMaintenance struct { Recon bool `xml:"recon"` ResetName bool `xml:"reset_name"` InstallAllCachedPackages bool `xml:"install_all_cached_packages"` Heal bool `xml:"heal"` Prebindings bool `xml:"prebindings"` Permissions bool `xml:"permissions"` Byhost bool `xml:"byhost"` SystemCache bool `xml:"system_cache"` UserCache bool `xml:"user_cache"` Verify bool `xml:"verify"` }
PolicyMaintenance represents the maintenance settings of a policy
type PolicyManagementAccount ¶ added in v0.0.45
type PolicyNetworkLimitations ¶ added in v0.0.45
type PolicyNetworkSegment ¶ added in v0.0.45
type PolicyNoExecuteOn ¶ added in v0.0.45
type PolicyNoExecuteOn struct {
Day string `xml:"day,omitempty"`
}
type PolicyOpenFirmwareEfiPassword ¶ added in v0.0.45
type PolicyOverrideSettings ¶ added in v0.0.45
type PolicyPackage ¶ added in v0.0.45
type PolicyPackageConfiguration ¶ added in v0.0.45
type PolicyPackageConfiguration struct { Packages []PolicyPackage `xml:"packages>package"` DistributionPoint string `xml:"distribution_point"` }
PolicyPackageConfiguration represents the package configuration settings of a policy
type PolicyPrinterItem ¶ added in v0.0.45
type PolicyPrinters ¶ added in v0.0.45
type PolicyPrinters struct { Size int `xml:"size"` LeaveExistingDefault bool `xml:"leave_existing_default"` Printer []PolicyPrinterItem `xml:"printer"` }
PolicyPrinters represents the printers settings of a policy
type PolicyReboot ¶ added in v0.0.45
type PolicyReboot struct { Message string `xml:"message"` StartupDisk string `xml:"startup_disk"` SpecifyStartup string `xml:"specify_startup"` NoUserLoggedIn string `xml:"no_user_logged_in"` UserLoggedIn string `xml:"user_logged_in"` MinutesUntilReboot int `xml:"minutes_until_reboot"` StartRebootTimerImmediately bool `xml:"start_reboot_timer_immediately"` FileVault2Reboot bool `xml:"file_vault_2_reboot"` }
PolicyReboot represents the reboot settings of a policy
type PolicyScope ¶ added in v0.0.45
type PolicyScope struct { AllComputers bool `xml:"all_computers"` Computers []PolicyComputer `xml:"computers>computer,omitempty"` ComputerGroups []PolicyComputerGroup `xml:"computer_groups>computer_group,omitempty"` Buildings []PolicyBuilding `xml:"buildings>building,omitempty"` Departments []PolicyDepartment `xml:"departments>department,omitempty"` LimitToUsers PolicyLimitToUsers `xml:"limit_to_users,omitempty"` Limitations PolicyLimitations `xml:"limitations,omitempty"` Exclusions PolicyExclusions `xml:"exclusions,omitempty"` }
PolicyScope represents the scope of the policy
type PolicyScriptItem ¶ added in v0.0.45
type PolicyScriptItem struct { ID string `xml:"id,omitempty"` Name string `xml:"name,omitempty"` Priority string `xml:"priority,omitempty"` Parameter4 string `xml:"parameter4,omitempty"` Parameter5 string `xml:"parameter5,omitempty"` Parameter6 string `xml:"parameter6,omitempty"` Parameter7 string `xml:"parameter7,omitempty"` Parameter8 string `xml:"parameter8,omitempty"` Parameter9 string `xml:"parameter9,omitempty"` Parameter10 string `xml:"parameter10,omitempty"` Parameter11 string `xml:"parameter11,omitempty"` }
type PolicyScripts ¶ added in v0.0.45
type PolicyScripts struct { Size int `xml:"size"` Script []PolicyScriptItem `xml:"script"` }
PolicyScripts represents the scripts settings of a policy
type PolicySelfService ¶ added in v0.0.45
type PolicySelfService struct { UseForSelfService bool `xml:"use_for_self_service"` SelfServiceDisplayName string `xml:"self_service_display_name"` InstallButtonText string `xml:"install_button_text"` ReinstallButtonText string `xml:"re_install_button_text"` SelfServiceDescription string `xml:"self_service_description"` ForceUsersToViewDescription bool `xml:"force_users_to_view_description"` SelfServiceIcon PolicySelfServiceIcon `xml:"self_service_icon,omitempty"` FeatureOnMainPage bool `xml:"feature_on_main_page"` SelfServiceCategories PolicySelfServiceCategory `xml:"self_service_categories"` }
PolicySelfService represents the self service settings of a policy
type PolicySelfServiceCategory ¶ added in v0.0.45
type PolicySelfServiceCategory struct {
Category PolicyCategory `xml:"category"`
}
type PolicySelfServiceIcon ¶ added in v0.0.45
type PolicySite ¶ added in v0.0.45
type PolicyUser ¶ added in v0.0.45
type PolicyUserGroup ¶ added in v0.0.45
type PolicyUserInteraction ¶ added in v0.0.45
type PolicyUserInteraction struct { MessageStart string `xml:"message_start"` AllowUserToDefer bool `xml:"allow_user_to_defer"` AllowDeferralUntilUtc string `xml:"allow_deferral_until_utc"` AllowDeferralMinutes int `xml:"allow_deferral_minutes"` MessageFinish string `xml:"message_finish"` }
PolicyUserInteraction represents the user interaction settings of a policy
type Printer ¶ added in v0.0.61
type Printer struct { Name string `xml:"name" json:"name"` URI string `xml:"uri" json:"uri"` Type string `xml:"type" json:"type"` Location string `xml:"location" json:"location"` }
Printer represents a printer mapped to the computer
type Purchasing ¶ added in v0.0.61
type Purchasing struct { IsPurchased bool `xml:"is_purchased" json:"is_purchased"` IsLeased bool `xml:"is_leased" json:"is_leased"` PoNumber string `xml:"po_number" json:"po_number"` Vendor string `xml:"vendor" json:"vendor"` ApplecareID string `xml:"applecare_id" json:"applecare_id"` PurchasePrice string `xml:"purchase_price" json:"purchase_price"` PurchasingAccount string `xml:"purchasing_account" json:"purchasing_account"` PoDate string `xml:"po_date" json:"po_date"` PoDateEpoch int64 `xml:"po_date_epoch" json:"po_date_epoch"` PoDateUtc string `xml:"po_date_utc" json:"po_date_utc"` WarrantyExpires string `xml:"warranty_expires" json:"warranty_expires"` WarrantyExpiresEpoch int64 `xml:"warranty_expires_epoch" json:"warranty_expires_epoch"` WarrantyExpiresUtc string `xml:"warranty_expires_utc" json:"warranty_expires_utc"` LeaseExpires string `xml:"lease_expires" json:"lease_expires"` LeaseExpiresEpoch int64 `xml:"lease_expires_epoch" json:"lease_expires_epoch"` LeaseExpiresUtc string `xml:"lease_expires_utc" json:"lease_expires_utc"` LifeExpectancy int `xml:"life_expectancy" json:"life_expectancy"` PurchasingContact string `xml:"purchasing_contact" json:"purchasing_contact"` OSAppleCareID string `xml:"os_applecare_id,omitempty" json:"os_applecare_id,omitempty"` OSMaintenanceExpires string `xml:"os_maintenance_expires,omitempty" json:"os_maintenance_expires,omitempty"` }
Purchasing information of the computer
type RemoteManagement ¶ added in v0.0.61
type ResponseAccount ¶
type ResponseAccount struct { ID int `json:"id,omitempty" xml:"id,omitempty"` Name string `json:"name" xml:"name"` DirectoryUser bool `json:"directory_user,omitempty" xml:"directory_user,omitempty"` FullName string `json:"full_name,omitempty" xml:"full_name,omitempty"` Email string `json:"email,omitempty" xml:"email,omitempty"` EmailAddress string `json:"email_address,omitempty" xml:"email_address,omitempty"` Enabled string `json:"enabled,omitempty" xml:"enabled,omitempty"` LdapServer AccountDataSubsetLdapServer `json:"ldap_server,omitempty" xml:"ldap_server,omitempty"` // Added this ForcePasswordChange bool `json:"force_password_change,omitempty" xml:"force_password_change,omitempty"` AccessLevel string `json:"access_level,omitempty" xml:"access_level,omitempty"` Password string `json:"password" xml:"password"` PrivilegeSet string `json:"privilege_set,omitempty" xml:"privilege_set,omitempty"` Site AccountDataSubsetSite `json:"site,omitempty" xml:"site,omitempty"` Privileges AccountDataSubsetPrivileges `json:"privileges,omitempty" xml:"privileges,omitempty"` }
type ResponseAccountGroup ¶
type ResponseAccountGroup struct { ID int `json:"id,omitempty" xml:"id"` Name string `json:"name" xml:"name"` AccessLevel string `json:"access_level" xml:"access_level"` PrivilegeSet string `json:"privilege_set" xml:"privilege_set"` Site AccountDataSubsetSite `json:"site" xml:"site"` Privileges AccountDataSubsetPrivileges `json:"privileges" xml:"privileges"` Members []AccountDataSubsetUser `json:"members" xml:"members>user"` }
type ResponseAccountsList ¶
type ResponseAccountsList struct { Users *AccountDataSubsetUsers `xml:"users,omitempty"` Groups *AccountDataSubsetGroups `xml:"groups,omitempty"` }
Get Account List
type ResponseActivationCode ¶ added in v0.0.46
type ResponseActivationCode struct { OrganizationName string `xml:"organization_name"` Code string `xml:"code"` }
ResponseActivationCode represents the structure of the response for an activation code.
type ResponseActiveCertificateAuthority ¶ added in v0.0.52
type ResponseActiveCertificateAuthority struct { SubjectX500Principal string `json:"subjectX500Principal"` IssuerX500Principal string `json:"issuerX500Principal"` SerialNumber string `json:"serialNumber"` Version int `json:"version"` NotAfter int64 `json:"notAfter"` NotBefore int64 `json:"notBefore"` Signature Signature `json:"signature"` KeyUsage []string `json:"keyUsage"` KeyUsageExtended []string `json:"keyUsageExtended"` SHA1Fingerprint string `json:"sha1Fingerprint"` SHA256Fingerprint string `json:"sha256Fingerprint"` }
ResponseActiveCertificateAuthority represents the JSON response for the active certificate authority.
type ResponseAdvancedComputerSearch ¶ added in v0.0.36
type ResponseAdvancedComputerSearch struct { ID int `xml:"id"` Name string `xml:"name"` ViewAs string `xml:"view_as,omitempty"` Sort1 string `xml:"sort_1,omitempty"` Sort2 string `xml:"sort_2,omitempty"` Sort3 string `xml:"sort_3,omitempty"` Criteria []AdvancedComputerSearchesCriteria `xml:"criteria"` DisplayFields []AdvancedComputerSearchesDisplayField `xml:"display_fields"` Computers []AdvancedComputerSearchDataSubsetComputer `xml:"computers"` Site AdvancedComputerSearchesSiteDetail `xml:"site"` }
ResponseAdvancedComputerSearch represents the structure of the response for an advanced computer search.
type ResponseAdvancedComputerSearches ¶ added in v0.0.36
type ResponseAdvancedComputerSearches struct { Size int `xml:"size"` AdvancedComputerSearches []AdvancedComputerSearchDetail `xml:"advanced_computer_search"` }
ResponseAdvancedComputerSearches represents the structure for multiple advanced computer searches.
type ResponseAdvancedMobileDeviceSearches ¶ added in v0.0.48
type ResponseAdvancedMobileDeviceSearches struct { ID int `xml:"id"` // Unique identifier for the search Name string `xml:"name"` // Name of the search ViewAs string `xml:"view_as,omitempty"` // The format in which the search results are viewed Sort1 string `xml:"sort_1,omitempty"` // First sorting criteria Sort2 string `xml:"sort_2,omitempty"` // Second sorting criteria Sort3 string `xml:"sort_3,omitempty"` // Third sorting criteria Criteria []AdvancedMobileDeviceSearchesCriteria `xml:"criteria,omitempty"` // List of search criteria DisplayFields []AdvancedMobileDeviceSearchesDisplayField `xml:"display_fields,omitempty"` // Fields to display in search results MobileDevices []AdvancedMobileDeviceSearchesMobileDevice `xml:"mobile_devices,omitempty"` // List of mobile devices that match the search Site AdvancedMobileDeviceSearchesSite `xml:"site,omitempty"` // Information about the site associated with the search }
ResponseAdvancedMobileDeviceSearches represents the structure of the response for an advanced mobile device search.
type ResponseAdvancedMobileDeviceSearchesList ¶ added in v0.0.48
type ResponseAdvancedMobileDeviceSearchesList struct { Size int `xml:"size"` AdvancedMobileDeviceSearches []AdvancedMobileDeviceSearchDetail `xml:"advanced_mobile_device_search"` }
ResponseAdvancedMobileDeviceSearchesList represents the structure for multiple advanced mobile device searches.
type ResponseAdvancedUserSearchesList ¶ added in v0.0.44
type ResponseAdvancedUserSearchesList struct { Size int `xml:"size"` AdvancedUserSearch []AdvancedUserSearchDetail `xml:"advanced_user_search"` }
Response structure for the list of advanced user searches
type ResponseAllowedFileExtensionsList ¶ added in v0.0.9
type ResponseAllowedFileExtensionsList struct { XMLName xml.Name `xml:"allowed_file_extensions"` Size int `xml:"size"` AllowedFileExtensions []AllowedFileExtensionDetail `xml:"allowed_file_extension"` }
Response structure for the list of allowed file extensions
type ResponseApiIntegrations ¶ added in v0.0.13
type ResponseApiIntegrations struct { TotalCount int `json:"totalCount"` Results []ApiIntegration `json:"results"` }
ResponseApiIntegrations represents the structure of the response for fetching API integrations
type ResponseApiRolePrivileges ¶ added in v0.0.43
type ResponseApiRolePrivileges struct {
Privileges []string `json:"privileges"`
}
ResponseApiRolePrivileges represents the structure of the response for fetching API role privileges
type ResponseApiRoles ¶ added in v0.0.12
type ResponseApiRoles struct { TotalCount int `json:"totalCount"` Results []APIRole `json:"results"` }
ResponseApiRoles represents the structure of the response for fetching API roles
type ResponseBYOProfile ¶ added in v0.0.50
type ResponseBYOProfile struct {
General BYOProfileGeneralInfo `xml:"general"`
}
BYOProfile represents the details of a BYO profile.
type ResponseBYOProfilesList ¶ added in v0.0.50
type ResponseBYOProfilesList struct { Size int `xml:"size"` BYOProfiles []BYOProfileItem `xml:"byoprofile"` }
ResponseBYOProfilesList represents the XML response for a list of BYO profiles.
type ResponseBuilding ¶ added in v0.0.8
type ResponseBuilding BuildingScope
ResponseBuilding is now directly the BuildingDetail
type ResponseBuildings ¶ added in v0.0.9
type ResponseBuildings struct { Size int `xml:"size"` Buildings []BuildingDetail `xml:"building"` }
For multiple buildings, the structure remains the same.
type ResponseCacheSettings ¶ added in v0.0.52
type ResponseCacheSettings struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` CacheType string `json:"cacheType"` TimeToLiveSeconds int `json:"timeToLiveSeconds"` TimeToIdleSeconds int `json:"timeToIdleSeconds"` DirectoryTimeToLiveSeconds int `json:"directoryTimeToLiveSeconds,omitempty"` EhcacheMaxBytesLocalHeap string `json:"ehcacheMaxBytesLocalHeap,omitempty"` CacheUniqueId string `json:"cacheUniqueId"` Elasticache bool `json:"elasticache,omitempty"` MemcachedEndpoints []MemcachedEndpoint `json:"memcachedEndpoints"` }
ResponseCacheSettings represents the JSON response for cache settings.
type ResponseCategories ¶ added in v0.0.11
type ResponseCategoriesList ¶ added in v0.0.45
type ResponseCategoriesList struct { TotalCount *int `json:"totalCount,omitempty"` Results []CategoryItem `json:"results,omitempty"` }
type ResponseClasses ¶ added in v0.0.51
type ResponseClasses struct { ID int `xml:"id,omitempty"` Source string `xml:"source,omitempty"` Name string `xml:"name"` // Required Description string `xml:"description,omitempty"` Site ClassSite `xml:"site"` MobileDeviceGroup ClassDeviceGroup `xml:"mobile_device_group,omitempty"` Students []ClassStudent `xml:"students>student,omitempty"` Teachers []ClassTeacher `xml:"teachers>teacher,omitempty"` TeacherIDs []ClassTeacherID `xml:"teacher_ids>id,omitempty"` StudentGroupIDs []ClassGroupID `xml:"student_group_ids>id,omitempty"` TeacherGroupIDs []ClassGroupID `xml:"teacher_group_ids>id,omitempty"` MobileDevices []ClassMobileDevice `xml:"mobile_devices>mobile_device,omitempty"` MobileDeviceGroupID []ClassGroupID `xml:"mobile_device_group_id>id,omitempty"` MeetingTimes ClassMeetingTimes `xml:"meeting_times,omitempty"` AppleTVs []ClassAppleTV `xml:"apple_tvs>apple_tv,omitempty"` }
Structs for the Class response by ID
type ResponseClassesList ¶ added in v0.0.51
ResponseClassesList represents the XML response for a list of classes.
type ResponseComputer ¶ added in v0.0.61
type ResponseComputer struct { General General `xml:"general" json:"general"` Location Location `xml:"location" json:"location"` Purchasing Purchasing `xml:"purchasing" json:"purchasing"` Peripherals Peripherals `xml:"peripherals" json:"peripherals"` Hardware Hardware `xml:"hardware" json:"hardware"` Certificates []Certificate `xml:"certificates>certificate" json:"certificates"` Security Security `xml:"security" json:"security"` Software Software `xml:"software" json:"software"` ExtensionAttributes []ExtensionAttribute `xml:"extension_attributes>extension_attribute" json:"extension_attributes"` GroupsAccounts GroupsAccounts `xml:"groups_accounts" json:"groups_accounts"` ConfigurationProfiles []ConfigurationProfile `xml:"configuration_profiles>configuration_profile" json:"configuration_profiles"` }
Response structure for computer resources
type ResponseComputerExtensionAttribute ¶ added in v0.0.37
type ResponseComputerExtensionAttribute struct { ID int `xml:"id"` Name string `xml:"name"` Enabled bool `xml:"enabled,omitempty"` Description string `xml:"description,omitempty"` DataType string `xml:"data_type,omitempty"` InputType ComputerExtensionAttributeInputType `xml:"input_type"` InventoryDisplay string `xml:"inventory_display,omitempty"` ReconDisplay string `xml:"recon_display,omitempty"` }
type ResponseComputerExtensionAttributesList ¶ added in v0.0.37
type ResponseComputerExtensionAttributesList struct { Size int `xml:"size"` Results []ComputerExtensionAttributeItem `xml:"computer_extension_attribute"` }
type ResponseComputerGroup ¶ added in v0.0.46
type ResponseComputerGroup struct { ID int `xml:"id"` Name string `xml:"name"` IsSmart bool `xml:"is_smart"` Site ComputerGroupSite `xml:"site"` Criteria []ComputerGroupCriterion `xml:"criteria>criterion"` Computers []ComputerGroupComputerItem `xml:"computers>computer"` }
type ResponseComputerInventoryCollectionSettings ¶ added in v0.0.53
type ResponseComputerInventoryCollectionSettings struct { ComputerInventoryCollectionPreferences InventoryCollectionPreference `json:"computerInventoryCollectionPreferences"` ApplicationPaths []PathItem `json:"applicationPaths"` FontPaths []PathItem `json:"fontPaths"` PluginPaths []PathItem `json:"pluginPaths"` }
type ResponseComputerInvitation ¶ added in v0.0.56
type ResponseComputerInvitation struct { ID int `xml:"id,omitempty"` Invitation string `xml:"invitation,omitempty"` InvitationStatus string `xml:"invitation_status,omitempty"` InvitationType string `xml:"invitation_type,omitempty"` ExpirationDate string `xml:"expiration_date,omitempty"` ExpirationDateUTC string `xml:"expiration_date_utc,omitempty"` ExpirationDateEpoch int64 `xml:"expiration_date_epoch,omitempty"` SSHUsername string `xml:"ssh_username,omitempty"` SSHPassword string `xml:"ssh_password,omitempty"` MultipleUsersAllowed bool `xml:"multiple_users_allowed,omitempty"` TimesUsed int `xml:"times_used,omitempty"` CreateAccountIfDoesNotExist bool `xml:"create_account_if_does_not_exist,omitempty"` HideAccount bool `xml:"hide_account,omitempty"` LockDownSSH bool `xml:"lock_down_ssh,omitempty"` InvitedUserUUID string `xml:"invited_user_uuid,omitempty"` EnrollIntoSite ComputerInvitationSite `xml:"enroll_into_site,omitempty"` KeepExistingSiteMembership bool `xml:"keep_existing_site_membership,omitempty"` Site ComputerInvitationSite `xml:"site,omitempty"` }
type ResponseComputerInvitationsList ¶ added in v0.0.56
type ResponseComputerInvitationsList struct { Size int `xml:"size"` ComputerInvitation []ComputerInvitationDetail `xml:"computer_invitation"` }
type ResponseComputerPrestagesV3 ¶ added in v0.0.49
type ResponseComputerPrestagesV3 struct { TotalCount int `json:"totalCount"` Results []ComputerPrestagesItem `json:"results"` }
type ResponseComputersList ¶ added in v0.0.61
type ResponseComputersList struct { TotalCount int `xml:"size"` Results []ComputerItem `xml:"computer"` }
Response structure for the list of computers
type ResponseDepartment ¶ added in v0.0.34
type ResponseDepartmentsList ¶ added in v0.0.34
type ResponseDepartmentsList struct { TotalCount int `xml:"size"` Results []DepartmentItem `xml:"department"` }
type ResponseDeviceScope ¶ added in v0.0.49
type ResponseDeviceScope struct { PrestageId string `json:"prestageId"` Assignments []AssignmentItem `json:"assignments"` VersionLock int `json:"versionLock"` }
ResponseDeviceScope represents the structure of the response for a specific computer prestage scope.
type ResponseDirectoryBinding ¶ added in v0.0.59
type ResponseDirectoryBinding struct { ID int `xml:"id"` Name string `xml:"name"` Priority int `xml:"priority"` Domain string `xml:"domain"` Username string `xml:"username"` Password string `xml:"password"` ComputerOU string `xml:"computer_ou"` Type string `xml:"type"` }
Struct to capture the XML response for a single directory binding
type ResponseDirectoryBindingsList ¶ added in v0.0.59
type ResponseDirectoryBindingsList struct { Size int `xml:"size"` DirectoryBinding []DirectoryBindingDetail `xml:"directory_binding"` }
Struct to capture the XML response for directory bindings
type ResponseDiskEncryptionConfiguration ¶ added in v0.0.57
type ResponseDiskEncryptionConfigurationsList ¶ added in v0.0.57
type ResponseDiskEncryptionConfigurationsList struct { Size int `xml:"size"` DiskEncryptionConfiguration []DiskEncryptionConfigurationDetail `xml:"disk_encryption_configuration"` }
Struct to capture the XML response for disk encryption configurations
type ResponseDistributionPoint ¶ added in v0.0.58
type ResponseDistributionPoint struct { ID int `xml:"id"` Name string `xml:"name"` IPAddress string `xml:"ip_address"` IsMaster bool `xml:"is_master"` FailoverPoint string `xml:"failover_point"` FailoverPointURL string `xml:"failover_point_url"` EnableLoadBalancing bool `xml:"enable_load_balancing"` LocalPath string `xml:"local_path"` SSHUsername string `xml:"ssh_username"` Password string `xml:"password"` ConnectionType string `xml:"connection_type"` WorkgroupOrDomain string `xml:"workgroup_or_domain"` ReadOnlyUsername string `xml:"read_only_username"` ReadOnlyPassword string `xml:"read_only_password"` ReadWriteUsername string `xml:"read_write_username"` ReadWritePassword string `xml:"read_write_password"` HTTPDownloadsEnabled bool `xml:"http_downloads_enabled"` HTTPURL string `xml:"http_url"` Context string `xml:"context"` Protocol string `xml:"protocol"` Port int `xml:"port"` NoAuthenticationRequired bool `xml:"no_authentication_required"` UsernamePasswordRequired bool `xml:"username_password_required"` HTTPUsername string `xml:"http_username"` HTTPPassword string `xml:"http_password"` }
Struct for detailed Distribution Point data
type ResponseDistributionPointsList ¶ added in v0.0.58
type ResponseDistributionPointsList struct { Size int `xml:"size"` DistributionPoint DistributionPointListDetail `xml:"distribution_point"` }
Struct to capture the XML response for distribution points list
type ResponseDockItem ¶ added in v0.0.62
type ResponseDockItem struct { ID int `xml:"id" json:"id"` Name string `xml:"name" json:"name"` Type string `xml:"type" json:"type"` Path string `xml:"path" json:"path"` Contents string `xml:"contents" json:"contents"` }
Struct to capture the response for a single Dock Item
type ResponseDockItemsList ¶ added in v0.0.62
Struct to capture the XML response for dock items list
type ResponseEbooks ¶ added in v0.0.63
type ResponseEbooks struct { General EbooksDataSubsetGeneral `xml:"general"` Scope EbooksDataSubsetScope `xml:"scope"` SelfService EbooksDataSubsetSelfService `xml:"self_service"` }
ResponseEbooks represents the detailed structure of an Ebook response.
type ResponseEbooksList ¶ added in v0.0.63
Struct to capture the XML response for ebooks list
type ResponseIbeacon ¶ added in v0.0.11
type ResponseIbeaconList ¶ added in v0.0.11
type ResponseIbeaconList struct {
Ibeacons []IbeaconListItem `json:"ibeacon" xml:"ibeacon"`
}
type ResponseJamfProInformation ¶ added in v0.0.53
type ResponseJamfProInformation struct { VppTokenEnabled *bool `json:"vppTokenEnabled,omitempty"` DepAccountEnabled *bool `json:"depAccountEnabled,omitempty"` ByodEnabled *bool `json:"byodEnabled,omitempty"` UserMigrationEnabled *bool `json:"userMigrationEnabled,omitempty"` CloudDeploymentsEnabled *bool `json:"cloudDeploymentsEnabled,omitempty"` PatchEnabled *bool `json:"patchEnabled,omitempty"` SsoSamlEnabled *bool `json:"ssoSamlEnabled,omitempty"` SmtpEnabled *bool `json:"smtpEnabled,omitempty"` }
type ResponseJamfProVersion ¶ added in v0.0.10
type ResponseJamfProVersion struct {
Version *string `json:"Version,omitempty"`
}
type ResponseMacOSConfigurationProfile ¶ added in v0.0.11
type ResponseMacOSConfigurationProfile struct { General GeneralConfig `json:"general,omitempty" xml:"general,omitempty"` Scope ScopeConfig `json:"scope,omitempty" xml:"scope,omitempty"` SelfService SelfServiceConfig `json:"self_service,omitempty" xml:"self_service,omitempty"` }
type ResponseMacOSConfigurationProfileList ¶ added in v0.0.11
type ResponseMacOSConfigurationProfileList struct { Size int `json:"size" xml:"size"` Results []MacOSConfigurationProfileListItem `json:"os_x_configuration_profile" xml:"os_x_configuration_profile"` }
type ResponseNetworkSegment ¶ added in v0.0.11
type ResponseNetworkSegment struct { ID int `json:"id" xml:"id"` Name string `json:"name" xml:"name"` StartingAddress string `json:"starting_address" xml:"starting_address"` EndingAddress string `json:"ending_address" xml:"ending_address"` DistributionServer string `json:"distribution_server,omitempty" xml:"distribution_server,omitempty"` DistributionPoint string `json:"distribution_point,omitempty" xml:"distribution_point,omitempty"` URL string `json:"url,omitempty" xml:"url,omitempty"` SWUServer string `json:"swu_server,omitempty" xml:"swu_server,omitempty"` Building string `json:"building,omitempty" xml:"building,omitempty"` Department string `json:"department,omitempty" xml:"department,omitempty"` OverrideBuildings bool `json:"override_buildings" xml:"override_buildings"` OverrideDepartments bool `json:"override_departments" xml:"override_departments"` }
type ResponsePoliciesList ¶ added in v0.0.45
type ResponsePoliciesList struct { Size int `xml:"size"` Policy []PolicyItem `xml:"policy"` }
Policies List Structs
type ResponsePolicy ¶ added in v0.0.45
type ResponsePolicy struct { General PolicyGeneral `xml:"general"` Scope PolicyScope `xml:"scope,omitempty"` SelfService PolicySelfService `xml:"self_service"` PackageConfiguration PolicyPackageConfiguration `xml:"package_configuration,omitempty"` Scripts PolicyScripts `xml:"scripts,omitempty"` Printers PolicyPrinters `xml:"printers"` DockItems PolicyDockItems `xml:"dock_items"` AccountMaintenance PolicyAccountMaintenance `xml:"account_maintenance"` Maintenance PolicyMaintenance `xml:"maintenance"` FilesProcesses PolicyFilesProcesses `xml:"files_processes"` UserInteraction PolicyUserInteraction `xml:"user_interaction"` DiskEncryption PolicyDiskEncryption `xml:"disk_encryption"` Reboot PolicyReboot `xml:"reboot"` }
ResponsePolicy represents the response structure for a single policy
type ResponseScript ¶ added in v0.0.15
type ResponseScript struct { ID int `xml:"id"` Name string `xml:"name"` Category string `xml:"category,omitempty"` Filename string `xml:"filename,omitempty"` Info string `xml:"info,omitempty"` Notes string `xml:"notes,omitempty"` Priority string `xml:"priority,omitempty"` Parameters Parameters `xml:"parameters"` OSRequirements string `xml:"os_requirements,omitempty"` ScriptContents string `xml:"script_contents,omitempty"` ScriptContentsEncoded string `xml:"script_contents_encoded,omitempty"` }
Script Resource structs
type ResponseScriptsList ¶ added in v0.0.15
type ResponseScriptsList struct { Size int `xml:"size"` Script []ScriptItem `xml:"script"` }
Scripts List Structs
type ResponseSelfServiceBranding ¶ added in v0.0.49
type ResponseSelfServiceBranding struct { TotalCount int `json:"totalCount"` Results []SelfServiceBrandingDetail `json:"results"` }
ResponseSelfServiceBranding is the structure that holds the list of self-service branding configurations for macOS.
type ResponseSite ¶ added in v0.0.34
type ResponseUploadIcon ¶ added in v0.0.50
ResponseUploadIcon is the response structure for uploading icons.
type ResponseUser ¶ added in v0.0.11
type ResponseUser struct { ID int `json:"id" xml:"id"` Name string `json:"name" xml:"name"` // required FullName string `json:"full_name,omitempty" xml:"full_name,omitempty"` Email string `json:"email,omitempty" xml:"email,omitempty"` EmailAddress string `json:"email_address,omitempty" xml:"email_address,omitempty"` PhoneNumber string `json:"phone_number,omitempty" xml:"phone_number,omitempty"` Position string `json:"position,omitempty" xml:"position,omitempty"` EnableCustomPhotoURL bool `json:"enable_custom_photo_url,omitempty" xml:"enable_custom_photo_url,omitempty"` CustomPhotoURL string `json:"custom_photo_url,omitempty" xml:"custom_photo_url,omitempty"` LDAPServer UsersDataSubsetLDAPServer `json:"ldap_server,omitempty" xml:"ldap_server,omitempty"` ExtensionAttributes []UsersDataSubsetExtensionAttribute `json:"extension_attributes,omitempty" xml:"extension_attributes,omitempty"` Sites []UsersDataSubsetUserSite `json:"sites,omitempty" xml:"sites,omitempty"` Links UsersDataSubsetUserLinks `json:"links,omitempty" xml:"links,omitempty"` }
type ResponseUserGroup ¶ added in v0.0.11
type ResponseUserGroup struct { ID int `json:"id" xml:"id"` Name string `json:"name" xml:"name"` IsSmart bool `json:"is_smart" xml:"is_smart"` IsNotifyOnChange bool `json:"is_notify_on_change" xml:"is_notify_on_change"` Site Site `json:"site,omitempty" xml:"site,omitempty"` Criteria []UserGroupCriteria `json:"criteria,omitempty" xml:"criteria,omitempty"` Users []UserGroupUser `json:"users,omitempty" xml:"users,omitempty"` }
type ResponseUserList ¶ added in v0.0.11
type ResponseUserList struct { Size int `json:"size" xml:"size"` Users []UserListItem `json:"user" xml:"user"` }
type ResponseUsers ¶ added in v0.0.11
type ResponseUsers struct { Size int `xml:"size"` Users []ResponseUser `xml:"user"` }
type ResponseVolumePurchasingSubscriptionsList ¶ added in v0.0.52
type ResponseVolumePurchasingSubscriptionsList struct { TotalCount *int `json:"totalCount,omitempty"` Results []VolumePurchasingSubscription `json:"results,omitempty"` }
type SSOFailoverResponse ¶
type ScopeConfig ¶ added in v0.0.11
type ScopeConfig struct { AllComputers bool `json:"all_computers,omitempty" xml:"all_computers,omitempty"` AllJSSUsers bool `json:"all_jss_users,omitempty" xml:"all_jss_users,omitempty"` Computers []ComputerAssignment `json:"computers,omitempty" xml:"computers,omitempty"` Buildings []BuildingAssignment `json:"buildings,omitempty" xml:"buildings,omitempty"` Departments []DepartmentAssignment `json:"departments,omitempty" xml:"departments,omitempty"` ComputerGroups []ComputerGroupInfo `json:"computer_groups,omitempty" xml:"computer_groups,omitempty"` JSSUsers []JSSUserConfig `json:"jss_users,omitempty" xml:"jss_users,omitempty"` JSSUserGroups []JSSUserGroupInfo `json:"jss_user_groups,omitempty" xml:"jss_user_groups,omitempty"` Limitations NetworkLimitation `json:"limitations,omitempty" xml:"limitations,omitempty"` Exclusions ExclusionConfig `json:"exclusions,omitempty" xml:"exclusions,omitempty"` }
type ScriptItem ¶ added in v0.0.15
type Security ¶ added in v0.0.61
type Security struct { ActivationLock bool `xml:"activation_lock" json:"activation_lock"` RecoveryLockEnabled bool `xml:"recovery_lock_enabled" json:"recovery_lock_enabled"` SecureBootLevel string `xml:"secure_boot_level" json:"secure_boot_level"` ExternalBootLevel string `xml:"external_boot_level" json:"external_boot_level"` FirewallEnabled bool `xml:"firewall_enabled" json:"firewall_enabled"` }
Security contains security-related information of the computer
type SelfServiceBrandingDetail ¶ added in v0.0.49
type SelfServiceBrandingDetail struct { ID string `json:"id"` ApplicationName string `json:"applicationName"` BrandingName string `json:"brandingName"` BrandingNameSecondary string `json:"brandingNameSecondary"` IconId int `json:"iconId"` BrandingHeaderImageId int `json:"brandingHeaderImageId"` }
SelfServiceBrandingDetail represents the details of a self-service branding configuration.
type SelfServiceCategory ¶ added in v0.0.11
type SelfServiceConfig ¶ added in v0.0.11
type SelfServiceConfig struct { InstallButtonText string `json:"install_button_text,omitempty" xml:"install_button_text,omitempty"` SelfServiceDescription string `json:"self_service_description,omitempty" xml:"self_service_description,omitempty"` ForceUsersToViewDescription bool `json:"force_users_to_view_description,omitempty" xml:"force_users_to_view_description,omitempty"` SelfServiceIcon SelfServiceIconDetail `json:"self_service_icon,omitempty" xml:"self_service_icon,omitempty"` FeatureOnMainPage bool `json:"feature_on_main_page,omitempty" xml:"feature_on_main_page,omitempty"` SelfServiceCategories SelfServiceCategory `json:"self_service_categories,omitempty" xml:"self_service_categories,omitempty"` Notification string `json:"notification,omitempty" xml:"notification,omitempty"` NotificationSubject string `json:"notification_subject,omitempty" xml:"notification_subject,omitempty"` NotificationMessage string `json:"notification_message,omitempty" xml:"notification_message,omitempty"` }
type SelfServiceIcon ¶ added in v0.0.11
type SelfServiceIconDetail ¶ added in v0.0.11
type Signature ¶ added in v0.0.52
type Signature struct { Algorithm string `json:"algorithm"` AlgorithmOID string `json:"algorithmOid"` Value string `json:"value"` }
Signature represents the signature part of a certificate authority.
type SitesListResponse ¶ added in v0.0.32
type Software ¶ added in v0.0.61
type Software struct { UnixExecutables []string `xml:"unix_executables>string" json:"unix_executables"` LicensedSoftware []string `xml:"licensed_software>string" json:"licensed_software"` InstalledByCasper []string `xml:"installed_by_casper>package" json:"installed_by_casper"` InstalledByInstallerSwu []string `xml:"installed_by_installer_swu>package" json:"installed_by_installer_swu"` CachedByCasper []string `xml:"cached_by_casper>package" json:"cached_by_casper"` AvailableSoftwareUpdates []string `xml:"available_software_updates>name" json:"available_software_updates"` AvailableUpdates []SoftwareUpdate `xml:"available_updates>update" json:"available_updates"` RunningServices []string `xml:"running_services>name" json:"running_services"` Applications []Application `xml:"applications>application" json:"applications"` Fonts []Font `xml:"fonts>font" json:"fonts"` Plugins []Plugin `xml:"plugins>plugin" json:"plugins"` }
Software holds information about the software installed on the computer
type SoftwareUpdate ¶ added in v0.0.61
type SoftwareUpdate struct { Name string `xml:"name" json:"name"` PackageName string `xml:"package_name" json:"package_name"` Version string `xml:"version" json:"version"` }
SoftwareUpdate represents an available software update
type StorageDevice ¶ added in v0.0.61
type StorageDevice struct { Disk string `xml:"disk" json:"disk"` Model string `xml:"model" json:"model"` Revision string `xml:"revision" json:"revision"` SerialNumber string `xml:"serial_number" json:"serial_number"` Size int `xml:"size" json:"size"` DriveCapacityMb int `xml:"drive_capacity_mb" json:"drive_capacity_mb"` ConnectionType string `xml:"connection_type" json:"connection_type"` SmartStatus string `xml:"smart_status" json:"smart_status"` Partitions []Partition `xml:"partition" json:"partitions"` }
StorageDevice represents a storage device of the computer
type User ¶ added in v0.0.11
type User struct { ID int `json:"id" xml:"id"` Username string `json:"username,omitempty" xml:"username,omitempty"` FullName string `json:"full_name,omitempty" xml:"full_name,omitempty"` PhoneNumber string `json:"phone_number,omitempty" xml:"phone_number,omitempty"` EmailAddress string `json:"email_address,omitempty" xml:"email_address,omitempty"` }
type UserAssignment ¶ added in v0.0.11
type UserAssignment struct {
User UserInfo `json:"user,omitempty" xml:"user,omitempty"`
}
type UserGroupAssignment ¶ added in v0.0.11
type UserGroupAssignment struct {
UserGroup GroupAssignmentDataSubsetGroupDetail `json:"user_group,omitempty" xml:"user_group,omitempty"`
}
type UserGroupCriteria ¶ added in v0.0.11
type UserGroupCriteria struct { Size int `json:"size" xml:"size"` Criterion UserGroupCriterion `json:"criterion" xml:"criterion"` }
type UserGroupCriterion ¶ added in v0.0.11
type UserGroupCriterion struct { Name string `json:"name" xml:"name"` Priority int `json:"priority,omitempty" xml:"priority,omitempty"` AndOr string `json:"and_or,omitempty" xml:"and_or,omitempty"` SearchType string `json:"search_type,omitempty" xml:"search_type,omitempty"` Value string `json:"value,omitempty" xml:"value,omitempty"` OpeningParen bool `json:"opening_paren,omitempty" xml:"opening_paren,omitempty"` ClosingParen bool `json:"closing_paren,omitempty" xml:"closing_paren,omitempty"` }
type UserGroupScope ¶ added in v0.0.11
type UserGroupUser ¶ added in v0.0.11
type UserListItem ¶ added in v0.0.11
type Users ¶
type Users struct {
User []AccountUser `json:"user,omitempty" xml:"user,omitempty"`
}
type UsersDataSubsetExtensionAttribute ¶ added in v0.0.11
type UsersDataSubsetExtensionAttribute struct {
ExtensionAttributeItem `json:"extension_attribute" xml:"extension_attribute"`
}
type UsersDataSubsetItem ¶ added in v0.0.11
type UsersDataSubsetLDAPServer ¶ added in v0.0.11
type UsersDataSubsetUserLinks ¶ added in v0.0.11
type UsersDataSubsetUserLinks struct { Computers ComputerLink `json:"computers,omitempty" xml:"computers,omitempty"` Peripherals PeripheralLink `json:"peripherals,omitempty" xml:"peripherals,omitempty"` MobileDevices MobileDeviceLink `json:"mobile_devices,omitempty" xml:"mobile_devices,omitempty"` VPPAssignments VPPAssignmentLink `json:"vpp_assignments,omitempty" xml:"vpp_assignments,omitempty"` TotalVPPCodeCount int `json:"total_vpp_code_count,omitempty" xml:"total_vpp_code_count,omitempty"` }
type UsersDataSubsetUserSite ¶ added in v0.0.11
type UsersDataSubsetUserSite struct {
Site Site `json:"site,omitempty" xml:"site,omitempty"`
}
type VPPAssignmentLink ¶ added in v0.0.11
type VPPAssignmentLink struct {
VPPAssignment UsersDataSubsetItem `json:"vpp_assignment" xml:"vpp_assignment"`
}
type VolumePurchasingSubscription ¶ added in v0.0.52
type VolumePurchasingSubscription struct { Id string `json:"id,omitempty"` Name string `json:"name"` Enabled bool `json:"enabled,omitempty"` Triggers []string `json:"triggers,omitempty"` LocationIds []string `json:"locationIds,omitempty"` InternalRecipients []struct { AccountId string `json:"accountId,omitempty"` Frequency string `json:"frequency,omitempty"` } `json:"internalRecipients,omitempty"` ExternalRecipients []struct { Name string `json:"name,omitempty"` Email string `json:"email,omitempty"` } `json:"externalRecipients,omitempty"` SiteId string `json:"siteId,omitempty"` }
Source Files ¶
- classicapi_accounts.go
- classicapi_activation_code.go
- classicapi_advanced_computer_searches.go
- classicapi_advanced_mobile_searches.go
- classicapi_advanced_user_searches.go
- classicapi_allowed_file_extensions.go
- classicapi_buildings.go
- classicapi_byoprofiles.go
- classicapi_classes.go
- classicapi_computer_extension_attributes.go
- classicapi_computer_groups.go
- classicapi_computer_invitations.go
- classicapi_computers.go
- classicapi_departments.go
- classicapi_directory_bindings.go
- classicapi_disk_encryption_configurations.go
- classicapi_distribution_points.go
- classicapi_dock_items.go
- classicapi_ebooks.go
- classicapi_ibeacons.go
- classicapi_macos_configuration_profiles.go
- classicapi_network_segments.go
- classicapi_policies.go
- classicapi_scripts.go
- classicapi_sites.go
- classicapi_usergroups.go
- classicapi_users.go
- jamfproapi_api_integrations.go
- jamfproapi_api_role_privileges.go
- jamfproapi_api_roles.go
- jamfproapi_cache_settings.go
- jamfproapi_categories.go
- jamfproapi_certificate_authority.go
- jamfproapi_computer_inventory_collection_settings.go
- jamfproapi_computer_prestages.go
- jamfproapi_icon.go
- jamfproapi_jamf_pro_information.go
- jamfproapi_jamf_pro_version.go
- jamfproapi_self_service_branding_macos.go
- jamfproapi_sso_failover.go
- jamfproapi_volume_purchasing_locations.go
- jamfproapi_volume_purchasing_subscriptions.go
- shared_api_client.go
- shared_logging.go
- shared_models.go