@@ -14,19 +14,19 @@ type (
1414		// 
1515		// Apple Business Manager API docs: 
1616		// https://developer.apple.com/documentation/applebusinessmanagerapi/get-mdm-servers 
17- 		GetDeviceManagementServices (ctx  context.Context , opts  * RequestQueryOptions ) (* MDMServersResponse , error )
17+ 		GetDeviceManagementServices (ctx  context.Context , opts  * RequestQueryOptions ) (* ResponseMDMServers , error )
1818
1919		// GetMDMServerDeviceLinkages retrieves a list of device IDs assigned to an MDM server 
2020		// 
2121		// Apple Business Manager API docs: 
2222		// https://developer.apple.com/documentation/applebusinessmanagerapi/get-all-device-ids-for-a-mdmserver 
23- 		GetMDMServerDeviceLinkages (ctx  context.Context , mdmServerID  string , opts  * RequestQueryOptions ) (* MDMServerDevicesLinkagesResponse , error )
23+ 		GetMDMServerDeviceLinkages (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: 
2828		// https://developer.apple.com/documentation/applebusinessmanagerapi/get-the-assigned-server-id-for-an-orgdevice 
29- 		GetAssignedDeviceManagementServiceIDForADevice (ctx  context.Context , deviceID  string ) (* OrgDeviceAssignedServerLinkageResponse , error )
29+ 		GetAssignedDeviceManagementServiceIDForADevice (ctx  context.Context , deviceID  string ) (* ResponseOrgDeviceAssignedServerLinkage , error )
3030
3131		// GetAssignedDeviceManagementServiceInformationByDeviceID retrieves the assigned device management service information for a device 
3232		// 
@@ -38,13 +38,13 @@ type (
3838		// 
3939		// Apple Business Manager API docs: 
4040		// https://developer.apple.com/documentation/applebusinessmanagerapi/create-an-orgdeviceactivity 
41- 		AssignDevicesToServer (ctx  context.Context , mdmServerID  string , deviceIDs  []string ) (* OrgDeviceActivityResponse , error )
41+ 		AssignDevicesToServer (ctx  context.Context , mdmServerID  string , deviceIDs  []string ) (* ResponseOrgDeviceActivity , error )
4242
4343		// UnassignDevicesFromServer unassigns devices from an MDM server 
4444		// 
4545		// Apple Business Manager API docs: 
4646		// https://developer.apple.com/documentation/applebusinessmanagerapi/create-an-orgdeviceactivity 
47- 		UnassignDevicesFromServer (ctx  context.Context , mdmServerID  string , deviceIDs  []string ) (* OrgDeviceActivityResponse , error )
47+ 		UnassignDevicesFromServer (ctx  context.Context , mdmServerID  string , deviceIDs  []string ) (* ResponseOrgDeviceActivity , error )
4848	}
4949
5050	// DeviceManagementService handles communication with the device management 
@@ -68,7 +68,7 @@ func NewService(client interfaces.HTTPClient) *DeviceManagementService {
6868// GetDeviceManagementServices retrieves a list of device management services (MDM servers) in an organization 
6969// URL: GET https://api-business.apple.com/v1/mdmServers 
7070// https://developer.apple.com/documentation/applebusinessmanagerapi/get-mdm-servers 
71- func  (s  * DeviceManagementService ) GetDeviceManagementServices (ctx  context.Context , opts  * RequestQueryOptions ) (* MDMServersResponse , error ) {
71+ func  (s  * DeviceManagementService ) GetDeviceManagementServices (ctx  context.Context , opts  * RequestQueryOptions ) (* ResponseMDMServers , error ) {
7272	if  opts  ==  nil  {
7373		opts  =  & RequestQueryOptions {}
7474	}
@@ -93,7 +93,7 @@ func (s *DeviceManagementService) GetDeviceManagementServices(ctx context.Contex
9393		"Content-Type" : "application/json" ,
9494	}
9595
96- 	var  result  MDMServersResponse 
96+ 	var  result  ResponseMDMServers 
9797	err  :=  s .client .GetPaginated (ctx , endpoint , queryParams .Build (), headers , & result )
9898	if  err  !=  nil  {
9999		return  nil , err 
@@ -105,7 +105,7 @@ func (s *DeviceManagementService) GetDeviceManagementServices(ctx context.Contex
105105// GetMDMServerDeviceLinkages retrieves a list of device IDs assigned to an MDM server 
106106// URL: GET https://api-business.apple.com/v1/mdmServers/{id}/relationships/devices 
107107// 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 ) (* MDMServerDevicesLinkagesResponse , error ) {
108+ func  (s  * DeviceManagementService ) GetMDMServerDeviceLinkages (ctx  context.Context , mdmServerID  string , opts  * RequestQueryOptions ) (* ResponseMDMServerDevicesLinkages , error ) {
109109	if  mdmServerID  ==  ""  {
110110		return  nil , fmt .Errorf ("MDM server ID is required" )
111111	}
@@ -130,7 +130,7 @@ func (s *DeviceManagementService) GetMDMServerDeviceLinkages(ctx context.Context
130130		queryParams .AddInt ("limit" , opts .Limit )
131131	}
132132
133- 	var  result  MDMServerDevicesLinkagesResponse 
133+ 	var  result  ResponseMDMServerDevicesLinkages 
134134
135135	err  :=  s .client .GetPaginated (ctx , endpoint , queryParams .Build (), headers , & result )
136136	if  err  !=  nil  {
@@ -143,7 +143,7 @@ func (s *DeviceManagementService) GetMDMServerDeviceLinkages(ctx context.Context
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 
145145// https://developer.apple.com/documentation/applebusinessmanagerapi/get-the-assigned-server-id-for-an-orgdevice 
146- func  (s  * DeviceManagementService ) GetAssignedDeviceManagementServiceIDForADevice (ctx  context.Context , deviceID  string ) (* OrgDeviceAssignedServerLinkageResponse , error ) {
146+ func  (s  * DeviceManagementService ) GetAssignedDeviceManagementServiceIDForADevice (ctx  context.Context , deviceID  string ) (* ResponseOrgDeviceAssignedServerLinkage , error ) {
147147	if  deviceID  ==  ""  {
148148		return  nil , fmt .Errorf ("device ID is required" )
149149	}
@@ -155,7 +155,7 @@ func (s *DeviceManagementService) GetAssignedDeviceManagementServiceIDForADevice
155155		"Content-Type" : "application/json" ,
156156	}
157157
158- 	var  result  OrgDeviceAssignedServerLinkageResponse 
158+ 	var  result  ResponseOrgDeviceAssignedServerLinkage 
159159	err  :=  s .client .Get (ctx , endpoint , nil , headers , & result )
160160	if  err  !=  nil  {
161161		return  nil , err 
@@ -201,7 +201,7 @@ func (s *DeviceManagementService) GetAssignedDeviceManagementServiceInformationB
201201// AssignDevicesToServer assigns devices to an MDM server 
202202// URL: POST https://api-business.apple.com/v1/orgDeviceActivities 
203203// https://developer.apple.com/documentation/applebusinessmanagerapi/create-an-orgdeviceactivity 
204- func  (s  * DeviceManagementService ) AssignDevicesToServer (ctx  context.Context , mdmServerID  string , deviceIDs  []string ) (* OrgDeviceActivityResponse , error ) {
204+ func  (s  * DeviceManagementService ) AssignDevicesToServer (ctx  context.Context , mdmServerID  string , deviceIDs  []string ) (* ResponseOrgDeviceActivity , error ) {
205205	if  mdmServerID  ==  ""  {
206206		return  nil , fmt .Errorf ("MDM server ID is required" )
207207	}
@@ -244,7 +244,7 @@ func (s *DeviceManagementService) AssignDevicesToServer(ctx context.Context, mdm
244244		"Content-Type" : "application/json" ,
245245	}
246246
247- 	var  result  OrgDeviceActivityResponse 
247+ 	var  result  ResponseOrgDeviceActivity 
248248
249249	err  :=  s .client .Post (ctx , endpoint , request , headers , & result )
250250	if  err  !=  nil  {
@@ -257,7 +257,7 @@ func (s *DeviceManagementService) AssignDevicesToServer(ctx context.Context, mdm
257257// UnassignDevicesFromServer unassigns devices from an MDM server 
258258// URL: POST https://api-business.apple.com/v1/orgDeviceActivities 
259259// https://developer.apple.com/documentation/applebusinessmanagerapi/create-an-orgdeviceactivity 
260- func  (s  * DeviceManagementService ) UnassignDevicesFromServer (ctx  context.Context , mdmServerID  string , deviceIDs  []string ) (* OrgDeviceActivityResponse , error ) {
260+ func  (s  * DeviceManagementService ) UnassignDevicesFromServer (ctx  context.Context , mdmServerID  string , deviceIDs  []string ) (* ResponseOrgDeviceActivity , error ) {
261261	if  mdmServerID  ==  ""  {
262262		return  nil , fmt .Errorf ("MDM server ID is required" )
263263	}
@@ -300,7 +300,7 @@ func (s *DeviceManagementService) UnassignDevicesFromServer(ctx context.Context,
300300		"Content-Type" : "application/json" ,
301301	}
302302
303- 	var  result  OrgDeviceActivityResponse 
303+ 	var  result  ResponseOrgDeviceActivity 
304304	err  :=  s .client .Post (ctx , endpoint , request , headers , & result )
305305	if  err  !=  nil  {
306306		return  nil , err 
0 commit comments