@@ -13,25 +13,25 @@ type (
1313 // GetDeviceManagementServices retrieves a list of device management services (MDM servers) in an organization
1414 //
1515 // Apple Business Manager API docs:
16- // https://developer.apple.com/documentation/applebusinessmanagerapi/get-mdm-servers
16+ // https://developer.apple.com/documentation/applebusinessmanagerapi/get-device-management-services
1717 GetDeviceManagementServices (ctx context.Context , opts * RequestQueryOptions ) (* ResponseMDMServers , error )
1818
19- // GetMDMServerDeviceLinkages retrieves a list of device IDs assigned to an MDM server
19+ // GetDeviceSerialNumbersForDeviceManagementService retrieves a list of device IDs assigned to an MDM server
2020 //
2121 // Apple Business Manager API docs:
22- // https://developer.apple.com/documentation/applebusinessmanagerapi/get-all-device-ids-for-a-mdmserver
23- GetMDMServerDeviceLinkages (ctx context.Context , mdmServerID string , opts * RequestQueryOptions ) (* ResponseMDMServerDevicesLinkages , error )
22+ // https://developer.apple.com/documentation/applebusinessmanagerapi/get-all-device-ids-for-a-device-management-service
23+ GetDeviceSerialNumbersForDeviceManagementService (ctx context.Context , mdmServerID string , opts * RequestQueryOptions ) (* ResponseMDMServerDevicesLinkages , error )
2424
2525 // GetAssignedDeviceManagementServiceIDForADevice retrieves the assigned device management service ID linkage for a device
2626 //
2727 // Apple Business Manager API docs:
28- // https://developer.apple.com/documentation/applebusinessmanagerapi/get-the-assigned-server -id-for-an-orgdevice
28+ // https://developer.apple.com/documentation/applebusinessmanagerapi/get-the-assigned-device-management-service -id-for-an-orgdevice
2929 GetAssignedDeviceManagementServiceIDForADevice (ctx context.Context , deviceID string ) (* ResponseOrgDeviceAssignedServerLinkage , error )
3030
3131 // GetAssignedDeviceManagementServiceInformationByDeviceID retrieves the assigned device management service information for a device
3232 //
3333 // Apple Business Manager API docs:
34- // https://developer.apple.com/documentation/applebusinessmanagerapi/get-the-assigned-server -information-for-an-orgdevice
34+ // https://developer.apple.com/documentation/applebusinessmanagerapi/get-the-assigned-device-management-service -information-for-an-orgdevice
3535 GetAssignedDeviceManagementServiceInformationByDeviceID (ctx context.Context , deviceID string , opts * RequestQueryOptions ) (* MDMServerResponse , error )
3636
3737 // AssignDevicesToServer assigns devices to an MDM server
@@ -67,7 +67,7 @@ func NewService(client interfaces.HTTPClient) *DeviceManagementService {
6767
6868// GetDeviceManagementServices retrieves a list of device management services (MDM servers) in an organization
6969// URL: GET https://api-business.apple.com/v1/mdmServers
70- // https://developer.apple.com/documentation/applebusinessmanagerapi/get-mdm-servers
70+ // https://developer.apple.com/documentation/applebusinessmanagerapi/get-device-management-services
7171func (s * DeviceManagementService ) GetDeviceManagementServices (ctx context.Context , opts * RequestQueryOptions ) (* ResponseMDMServers , error ) {
7272 if opts == nil {
7373 opts = & RequestQueryOptions {}
@@ -102,10 +102,10 @@ func (s *DeviceManagementService) GetDeviceManagementServices(ctx context.Contex
102102 return & result , nil
103103}
104104
105- // GetMDMServerDeviceLinkages retrieves a list of device IDs assigned to an MDM server
105+ // GetDeviceSerialNumbersForDeviceManagementService retrieves a list of device IDs assigned to an MDM server
106106// URL: GET https://api-business.apple.com/v1/mdmServers/{id}/relationships/devices
107- // https://developer.apple.com/documentation/applebusinessmanagerapi/get-all-device-ids-for-a-mdmserver
108- func (s * DeviceManagementService ) GetMDMServerDeviceLinkages (ctx context.Context , mdmServerID string , opts * RequestQueryOptions ) (* ResponseMDMServerDevicesLinkages , error ) {
107+ // https://developer.apple.com/documentation/applebusinessmanagerapi/get-all-device-ids-for-a-device-management-service
108+ func (s * DeviceManagementService ) GetDeviceSerialNumbersForDeviceManagementService (ctx context.Context , mdmServerID string , opts * RequestQueryOptions ) (* ResponseMDMServerDevicesLinkages , error ) {
109109 if mdmServerID == "" {
110110 return nil , fmt .Errorf ("MDM server ID is required" )
111111 }
@@ -142,7 +142,7 @@ func (s *DeviceManagementService) GetMDMServerDeviceLinkages(ctx context.Context
142142
143143// GetAssignedDeviceManagementServiceIDForADevice retrieves the assigned device management service ID linkage for a device
144144// URL: GET https://api-business.apple.com/v1/orgDevices/{id}/relationships/assignedServer
145- // https://developer.apple.com/documentation/applebusinessmanagerapi/get-the-assigned-server -id-for-an-orgdevice
145+ // https://developer.apple.com/documentation/applebusinessmanagerapi/get-the-assigned-device-management-service -id-for-an-orgdevice
146146func (s * DeviceManagementService ) GetAssignedDeviceManagementServiceIDForADevice (ctx context.Context , deviceID string ) (* ResponseOrgDeviceAssignedServerLinkage , error ) {
147147 if deviceID == "" {
148148 return nil , fmt .Errorf ("device ID is required" )
@@ -166,7 +166,7 @@ func (s *DeviceManagementService) GetAssignedDeviceManagementServiceIDForADevice
166166
167167// GetAssignedDeviceManagementServiceInformationByDeviceID retrieves the assigned device management service information for a device
168168// URL: GET https://api-business.apple.com/v1/orgDevices/{id}/assignedServer
169- // https://developer.apple.com/documentation/applebusinessmanagerapi/get-the-assigned-server -information-for-an-orgdevice
169+ // https://developer.apple.com/documentation/applebusinessmanagerapi/get-the-assigned-device-management-service -information-for-an-orgdevice
170170func (s * DeviceManagementService ) GetAssignedDeviceManagementServiceInformationByDeviceID (ctx context.Context , deviceID string , opts * RequestQueryOptions ) (* MDMServerResponse , error ) {
171171 if deviceID == "" {
172172 return nil , fmt .Errorf ("device ID is required" )
0 commit comments