Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,38 +21,38 @@ func main() {
// Define the payload for creating a new mobile device prestage
prestage := jamfpro.ResourceMobileDevicePrestage{
DisplayName: "jamfpro-sdk-example-mobiledevicePrestage-config",
Mandatory: jamfpro.TruePtr(),
MdmRemovable: jamfpro.FalsePtr(),
Mandatory: true,
MdmRemovable: false,
SupportPhoneNumber: "111-222-3333",
SupportEmailAddress: "[email protected]",
Department: "department name",
DefaultPrestage: jamfpro.FalsePtr(),
DefaultPrestage: false,
EnrollmentSiteID: "-1",
KeepExistingSiteMembership: jamfpro.FalsePtr(),
KeepExistingLocationInformation: jamfpro.FalsePtr(),
RequireAuthentication: jamfpro.FalsePtr(),
KeepExistingSiteMembership: false,
KeepExistingLocationInformation: false,
RequireAuthentication: false,
AuthenticationPrompt: "",
PreventActivationLock: jamfpro.TruePtr(),
EnableDeviceBasedActivationLock: jamfpro.FalsePtr(),
PreventActivationLock: true,
EnableDeviceBasedActivationLock: false,
DeviceEnrollmentProgramInstanceID: "1",
AnchorCertificates: []string{},
EnrollmentCustomizationID: "0",
Language: "",
Region: "",
AutoAdvanceSetup: jamfpro.FalsePtr(),
AllowPairing: jamfpro.TruePtr(),
MultiUser: jamfpro.FalsePtr(),
Supervised: jamfpro.TruePtr(),
AutoAdvanceSetup: false,
AllowPairing: true,
MultiUser: false,
Supervised: true,
MaximumSharedAccounts: 10,
ConfigureDeviceBeforeSetupAssistant: jamfpro.TruePtr(),
SendTimezone: jamfpro.FalsePtr(),
ConfigureDeviceBeforeSetupAssistant: true,
SendTimezone: false,
Timezone: "UTC",
StorageQuotaSizeMegabytes: 4096,
UseStorageQuotaSize: jamfpro.FalsePtr(),
TemporarySessionOnly: jamfpro.FalsePtr(),
EnforceTemporarySessionTimeout: jamfpro.FalsePtr(),
UseStorageQuotaSize: false,
TemporarySessionOnly: false,
EnforceTemporarySessionTimeout: false,
TemporarySessionTimeout: nil,
EnforceUserSessionTimeout: jamfpro.FalsePtr(),
EnforceUserSessionTimeout: false,
UserSessionTimeout: nil,
SiteId: "-1",
VersionLock: 0,
Expand All @@ -63,46 +63,46 @@ func main() {

SkipSetupItems: jamfpro.MobileDevicePrestageSubsetSkipSetupItems{
// Selected items are not displayed in the Setup Assistant during enrollment
Location: jamfpro.TruePtr(),
Privacy: jamfpro.TruePtr(),
Biometric: jamfpro.TruePtr(),
SoftwareUpdate: jamfpro.TruePtr(),
Diagnostics: jamfpro.TruePtr(),
IMessageAndFaceTime: jamfpro.TruePtr(),
Intelligence: jamfpro.TruePtr(),
TVRoom: jamfpro.TruePtr(),
Passcode: jamfpro.TruePtr(),
SIMSetup: jamfpro.TruePtr(),
ScreenTime: jamfpro.TruePtr(),
RestoreCompleted: jamfpro.TruePtr(),
TVProviderSignIn: jamfpro.TruePtr(),
Siri: jamfpro.TruePtr(),
Restore: jamfpro.TruePtr(),
ScreenSaver: jamfpro.TruePtr(),
HomeButtonSensitivity: jamfpro.TruePtr(),
CloudStorage: jamfpro.TruePtr(),
ActionButton: jamfpro.TruePtr(),
TransferData: jamfpro.TruePtr(),
EnableLockdownMode: jamfpro.TruePtr(),
Zoom: jamfpro.TruePtr(),
PreferredLanguage: jamfpro.TruePtr(),
VoiceSelection: jamfpro.TruePtr(),
TVHomeScreenSync: jamfpro.TruePtr(),
Safety: jamfpro.TruePtr(),
TermsOfAddress: jamfpro.TruePtr(),
ExpressLanguage: jamfpro.TruePtr(),
CameraButton: jamfpro.TruePtr(),
AppleID: jamfpro.TruePtr(),
DisplayTone: jamfpro.TruePtr(),
WatchMigration: jamfpro.TruePtr(),
UpdateCompleted: jamfpro.TruePtr(),
Appearance: jamfpro.TruePtr(),
Android: jamfpro.TruePtr(),
Payment: jamfpro.TruePtr(),
OnBoarding: jamfpro.TruePtr(),
TOS: jamfpro.TruePtr(),
Welcome: jamfpro.TruePtr(),
TapToSetup: jamfpro.TruePtr(),
Location: true,
Privacy: true,
Biometric: true,
SoftwareUpdate: true,
Diagnostics: true,
IMessageAndFaceTime: true,
Intelligence: true,
TVRoom: true,
Passcode: true,
SIMSetup: true,
ScreenTime: true,
RestoreCompleted: true,
TVProviderSignIn: true,
Siri: true,
Restore: true,
ScreenSaver: true,
HomeButtonSensitivity: true,
CloudStorage: true,
ActionButton: true,
TransferData: true,
EnableLockdownMode: true,
Zoom: true,
PreferredLanguage: true,
VoiceSelection: true,
TVHomeScreenSync: true,
Safety: true,
TermsOfAddress: true,
ExpressLanguage: true,
CameraButton: true,
AppleID: true,
DisplayTone: true,
WatchMigration: true,
UpdateCompleted: true,
Appearance: true,
Android: true,
Payment: true,
OnBoarding: true,
TOS: true,
Welcome: true,
TapToSetup: true,
},
LocationInformation: jamfpro.MobileDevicePrestageSubsetLocationInformation{
ID: "-1", // Required
Expand All @@ -118,8 +118,8 @@ func main() {
},
PurchasingInformation: jamfpro.MobileDevicePrestageSubsetPurchasingInformation{
ID: "-1", // Required
Leased: jamfpro.FalsePtr(),
Purchased: jamfpro.TruePtr(),
Leased: false,
Purchased: true,
AppleCareId: "",
PoNumber: "",
Vendor: "",
Expand All @@ -138,8 +138,8 @@ func main() {
DeviceNamePrefix: "",
DeviceNameSuffix: "",
SingleDeviceName: "",
ManageNames: jamfpro.TruePtr(),
DeviceNamingConfigured: jamfpro.TruePtr(),
ManageNames: true,
DeviceNamingConfigured: true,
},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,38 +29,38 @@ func main() {

update := &jamfpro.ResourceMobileDevicePrestage{
DisplayName: "jamfpro-sdk-example-mobiledevicePrestage-config",
Mandatory: jamfpro.TruePtr(),
MdmRemovable: jamfpro.FalsePtr(),
Mandatory: true,
MdmRemovable: false,
SupportPhoneNumber: "111-222-3333",
SupportEmailAddress: "[email protected]",
Department: "department name",
DefaultPrestage: jamfpro.FalsePtr(),
DefaultPrestage: false,
EnrollmentSiteID: "-1",
KeepExistingSiteMembership: jamfpro.FalsePtr(),
KeepExistingLocationInformation: jamfpro.FalsePtr(),
RequireAuthentication: jamfpro.FalsePtr(),
KeepExistingSiteMembership: false,
KeepExistingLocationInformation: false,
RequireAuthentication: false,
AuthenticationPrompt: "",
PreventActivationLock: jamfpro.TruePtr(),
EnableDeviceBasedActivationLock: jamfpro.FalsePtr(),
PreventActivationLock: true,
EnableDeviceBasedActivationLock: false,
DeviceEnrollmentProgramInstanceID: "1",
AnchorCertificates: []string{},
EnrollmentCustomizationID: "0",
Language: "",
Region: "",
AutoAdvanceSetup: jamfpro.FalsePtr(),
AllowPairing: jamfpro.TruePtr(),
MultiUser: jamfpro.FalsePtr(),
Supervised: jamfpro.TruePtr(),
AutoAdvanceSetup: false,
AllowPairing: true,
MultiUser: false,
Supervised: true,
MaximumSharedAccounts: 10,
ConfigureDeviceBeforeSetupAssistant: jamfpro.TruePtr(),
SendTimezone: jamfpro.FalsePtr(),
ConfigureDeviceBeforeSetupAssistant: true,
SendTimezone: false,
Timezone: "UTC",
StorageQuotaSizeMegabytes: 4096,
UseStorageQuotaSize: jamfpro.FalsePtr(),
TemporarySessionOnly: jamfpro.FalsePtr(),
EnforceTemporarySessionTimeout: jamfpro.FalsePtr(),
UseStorageQuotaSize: false,
TemporarySessionOnly: false,
EnforceTemporarySessionTimeout: false,
TemporarySessionTimeout: nil,
EnforceUserSessionTimeout: jamfpro.FalsePtr(),
EnforceUserSessionTimeout: false,
UserSessionTimeout: nil,
SiteId: "-1",
VersionLock: currentPrestage.VersionLock,
Expand All @@ -72,46 +72,46 @@ func main() {

update.SkipSetupItems = jamfpro.MobileDevicePrestageSubsetSkipSetupItems{
// Selected items are not displayed in the Setup Assistant during enrollment
Location: jamfpro.TruePtr(),
Privacy: jamfpro.TruePtr(),
Biometric: jamfpro.TruePtr(),
SoftwareUpdate: jamfpro.TruePtr(),
Diagnostics: jamfpro.TruePtr(),
IMessageAndFaceTime: jamfpro.TruePtr(),
Intelligence: jamfpro.TruePtr(),
TVRoom: jamfpro.TruePtr(),
Passcode: jamfpro.TruePtr(),
SIMSetup: jamfpro.TruePtr(),
ScreenTime: jamfpro.TruePtr(),
RestoreCompleted: jamfpro.TruePtr(),
TVProviderSignIn: jamfpro.TruePtr(),
Siri: jamfpro.TruePtr(),
Restore: jamfpro.TruePtr(),
ScreenSaver: jamfpro.TruePtr(),
HomeButtonSensitivity: jamfpro.TruePtr(),
CloudStorage: jamfpro.TruePtr(),
ActionButton: jamfpro.TruePtr(),
TransferData: jamfpro.TruePtr(),
EnableLockdownMode: jamfpro.TruePtr(),
Zoom: jamfpro.TruePtr(),
PreferredLanguage: jamfpro.TruePtr(),
VoiceSelection: jamfpro.TruePtr(),
TVHomeScreenSync: jamfpro.TruePtr(),
Safety: jamfpro.TruePtr(),
TermsOfAddress: jamfpro.TruePtr(),
ExpressLanguage: jamfpro.TruePtr(),
CameraButton: jamfpro.TruePtr(),
AppleID: jamfpro.TruePtr(),
DisplayTone: jamfpro.TruePtr(),
WatchMigration: jamfpro.TruePtr(),
UpdateCompleted: jamfpro.TruePtr(),
Appearance: jamfpro.TruePtr(),
Android: jamfpro.TruePtr(),
Payment: jamfpro.TruePtr(),
OnBoarding: jamfpro.TruePtr(),
TOS: jamfpro.TruePtr(),
Welcome: jamfpro.TruePtr(),
TapToSetup: jamfpro.TruePtr(),
Location: true,
Privacy: true,
Biometric: true,
SoftwareUpdate: true,
Diagnostics: true,
IMessageAndFaceTime: true,
Intelligence: true,
TVRoom: true,
Passcode: true,
SIMSetup: true,
ScreenTime: true,
RestoreCompleted: true,
TVProviderSignIn: true,
Siri: true,
Restore: true,
ScreenSaver: true,
HomeButtonSensitivity: true,
CloudStorage: true,
ActionButton: true,
TransferData: true,
EnableLockdownMode: true,
Zoom: true,
PreferredLanguage: true,
VoiceSelection: true,
TVHomeScreenSync: true,
Safety: true,
TermsOfAddress: true,
ExpressLanguage: true,
CameraButton: true,
AppleID: true,
DisplayTone: true,
WatchMigration: true,
UpdateCompleted: true,
Appearance: true,
Android: true,
Payment: true,
OnBoarding: true,
TOS: true,
Welcome: true,
TapToSetup: true,
}

update.LocationInformation = jamfpro.MobileDevicePrestageSubsetLocationInformation{
Expand All @@ -129,8 +129,8 @@ func main() {

update.PurchasingInformation = jamfpro.MobileDevicePrestageSubsetPurchasingInformation{
ID: "-1", // Required
Leased: jamfpro.FalsePtr(),
Purchased: jamfpro.TruePtr(),
Leased: false,
Purchased: true,
AppleCareId: "",
PoNumber: "",
Vendor: "",
Expand All @@ -150,8 +150,8 @@ func main() {
DeviceNamePrefix: "",
DeviceNameSuffix: "",
SingleDeviceName: "",
ManageNames: jamfpro.TruePtr(),
DeviceNamingConfigured: jamfpro.TruePtr(),
ManageNames: true,
DeviceNamingConfigured: true,
}

// Call UpdateMobileDevicePrestageByID to update the prestage
Expand Down
Loading
Loading