summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/yaegashi/msgraph.go/beta/ActionUser.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2020-09-04 23:29:13 +0200
committerGitHub <noreply@github.com>2020-09-04 23:29:13 +0200
commit2f59abdda7a1072036ea1fdb4c859cccbb56efa6 (patch)
treee35393f23d12783ae92f0469085efc7dec953f82 /vendor/github.com/yaegashi/msgraph.go/beta/ActionUser.go
parent17747a5c8893fd47ba8eb61dd10477170640caf6 (diff)
downloadmatterbridge-msglm-2f59abdda7a1072036ea1fdb4c859cccbb56efa6.tar.gz
matterbridge-msglm-2f59abdda7a1072036ea1fdb4c859cccbb56efa6.tar.bz2
matterbridge-msglm-2f59abdda7a1072036ea1fdb4c859cccbb56efa6.zip
Update vendor (#1228)
Diffstat (limited to 'vendor/github.com/yaegashi/msgraph.go/beta/ActionUser.go')
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionUser.go143
1 files changed, 95 insertions, 48 deletions
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionUser.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionUser.go
index ffddabad..2d3b5791 100644
--- a/vendor/github.com/yaegashi/msgraph.go/beta/ActionUser.go
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionUser.go
@@ -1,4 +1,4 @@
-// Code generated by msgraph-generate.go DO NOT EDIT.
+// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -149,9 +149,9 @@ func (r *UserActivitiesCollectionRequest) Paging(ctx context.Context, method, pa
}
var values []UserActivity
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -164,6 +164,7 @@ func (r *UserActivitiesCollectionRequest) Paging(ctx context.Context, method, pa
value []UserActivity
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -251,9 +252,9 @@ func (r *UserAgreementAcceptancesCollectionRequest) Paging(ctx context.Context,
}
var values []AgreementAcceptance
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -266,6 +267,7 @@ func (r *UserAgreementAcceptancesCollectionRequest) Paging(ctx context.Context,
value []AgreementAcceptance
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -360,9 +362,9 @@ func (r *UserAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, me
}
var values []AppRoleAssignment
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -375,6 +377,7 @@ func (r *UserAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, me
value []AppRoleAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -469,9 +472,9 @@ func (r *UserCalendarGroupsCollectionRequest) Paging(ctx context.Context, method
}
var values []CalendarGroup
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -484,6 +487,7 @@ func (r *UserCalendarGroupsCollectionRequest) Paging(ctx context.Context, method
value []CalendarGroup
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -571,9 +575,9 @@ func (r *UserCalendarViewCollectionRequest) Paging(ctx context.Context, method,
}
var values []Event
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -586,6 +590,7 @@ func (r *UserCalendarViewCollectionRequest) Paging(ctx context.Context, method,
value []Event
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -673,9 +678,9 @@ func (r *UserCalendarsCollectionRequest) Paging(ctx context.Context, method, pat
}
var values []Calendar
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -688,6 +693,7 @@ func (r *UserCalendarsCollectionRequest) Paging(ctx context.Context, method, pat
value []Calendar
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -775,9 +781,9 @@ func (r *UserChatsCollectionRequest) Paging(ctx context.Context, method, path st
}
var values []Chat
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -790,6 +796,7 @@ func (r *UserChatsCollectionRequest) Paging(ctx context.Context, method, path st
value []Chat
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -877,9 +884,9 @@ func (r *UserContactFoldersCollectionRequest) Paging(ctx context.Context, method
}
var values []ContactFolder
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -892,6 +899,7 @@ func (r *UserContactFoldersCollectionRequest) Paging(ctx context.Context, method
value []ContactFolder
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -979,9 +987,9 @@ func (r *UserContactsCollectionRequest) Paging(ctx context.Context, method, path
}
var values []Contact
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -994,6 +1002,7 @@ func (r *UserContactsCollectionRequest) Paging(ctx context.Context, method, path
value []Contact
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1081,9 +1090,9 @@ func (r *UserCreatedObjectsCollectionRequest) Paging(ctx context.Context, method
}
var values []DirectoryObject
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -1096,6 +1105,7 @@ func (r *UserCreatedObjectsCollectionRequest) Paging(ctx context.Context, method
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1183,9 +1193,9 @@ func (r *UserDeviceEnrollmentConfigurationsCollectionRequest) Paging(ctx context
}
var values []DeviceEnrollmentConfiguration
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -1198,6 +1208,7 @@ func (r *UserDeviceEnrollmentConfigurationsCollectionRequest) Paging(ctx context
value []DeviceEnrollmentConfiguration
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1285,9 +1296,9 @@ func (r *UserDeviceManagementTroubleshootingEventsCollectionRequest) Paging(ctx
}
var values []DeviceManagementTroubleshootingEvent
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -1300,6 +1311,7 @@ func (r *UserDeviceManagementTroubleshootingEventsCollectionRequest) Paging(ctx
value []DeviceManagementTroubleshootingEvent
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1387,9 +1399,9 @@ func (r *UserDevicesCollectionRequest) Paging(ctx context.Context, method, path
}
var values []Device
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -1402,6 +1414,7 @@ func (r *UserDevicesCollectionRequest) Paging(ctx context.Context, method, path
value []Device
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1489,9 +1502,9 @@ func (r *UserDirectReportsCollectionRequest) Paging(ctx context.Context, method,
}
var values []DirectoryObject
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -1504,6 +1517,7 @@ func (r *UserDirectReportsCollectionRequest) Paging(ctx context.Context, method,
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1598,9 +1612,9 @@ func (r *UserDrivesCollectionRequest) Paging(ctx context.Context, method, path s
}
var values []Drive
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -1613,6 +1627,7 @@ func (r *UserDrivesCollectionRequest) Paging(ctx context.Context, method, path s
value []Drive
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1700,9 +1715,9 @@ func (r *UserEventsCollectionRequest) Paging(ctx context.Context, method, path s
}
var values []Event
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -1715,6 +1730,7 @@ func (r *UserEventsCollectionRequest) Paging(ctx context.Context, method, path s
value []Event
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1802,9 +1818,9 @@ func (r *UserExtensionsCollectionRequest) Paging(ctx context.Context, method, pa
}
var values []Extension
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -1817,6 +1833,7 @@ func (r *UserExtensionsCollectionRequest) Paging(ctx context.Context, method, pa
value []Extension
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1904,9 +1921,9 @@ func (r *UserFollowedSitesCollectionRequest) Paging(ctx context.Context, method,
}
var values []Site
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -1919,6 +1936,7 @@ func (r *UserFollowedSitesCollectionRequest) Paging(ctx context.Context, method,
value []Site
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2027,9 +2045,9 @@ func (r *UserJoinedGroupsCollectionRequest) Paging(ctx context.Context, method,
}
var values []Group
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2042,6 +2060,7 @@ func (r *UserJoinedGroupsCollectionRequest) Paging(ctx context.Context, method,
value []Group
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2129,9 +2148,9 @@ func (r *UserJoinedTeamsCollectionRequest) Paging(ctx context.Context, method, p
}
var values []Team
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2144,6 +2163,7 @@ func (r *UserJoinedTeamsCollectionRequest) Paging(ctx context.Context, method, p
value []Team
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2231,9 +2251,9 @@ func (r *UserLicenseDetailsCollectionRequest) Paging(ctx context.Context, method
}
var values []LicenseDetails
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2246,6 +2266,7 @@ func (r *UserLicenseDetailsCollectionRequest) Paging(ctx context.Context, method
value []LicenseDetails
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2333,9 +2354,9 @@ func (r *UserMailFoldersCollectionRequest) Paging(ctx context.Context, method, p
}
var values []MailFolder
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2348,6 +2369,7 @@ func (r *UserMailFoldersCollectionRequest) Paging(ctx context.Context, method, p
value []MailFolder
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2435,9 +2457,9 @@ func (r *UserManagedAppRegistrationsCollectionRequest) Paging(ctx context.Contex
}
var values []ManagedAppRegistration
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2450,6 +2472,7 @@ func (r *UserManagedAppRegistrationsCollectionRequest) Paging(ctx context.Contex
value []ManagedAppRegistration
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2537,9 +2560,9 @@ func (r *UserManagedDevicesCollectionRequest) Paging(ctx context.Context, method
}
var values []ManagedDevice
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2552,6 +2575,7 @@ func (r *UserManagedDevicesCollectionRequest) Paging(ctx context.Context, method
value []ManagedDevice
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2646,9 +2670,9 @@ func (r *UserMemberOfCollectionRequest) Paging(ctx context.Context, method, path
}
var values []DirectoryObject
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2661,6 +2685,7 @@ func (r *UserMemberOfCollectionRequest) Paging(ctx context.Context, method, path
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2748,9 +2773,9 @@ func (r *UserMessagesCollectionRequest) Paging(ctx context.Context, method, path
}
var values []Message
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2763,6 +2788,7 @@ func (r *UserMessagesCollectionRequest) Paging(ctx context.Context, method, path
value []Message
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2850,9 +2876,9 @@ func (r *UserMobileAppIntentAndStatesCollectionRequest) Paging(ctx context.Conte
}
var values []MobileAppIntentAndState
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2865,6 +2891,7 @@ func (r *UserMobileAppIntentAndStatesCollectionRequest) Paging(ctx context.Conte
value []MobileAppIntentAndState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2952,9 +2979,9 @@ func (r *UserMobileAppTroubleshootingEventsCollectionRequest) Paging(ctx context
}
var values []MobileAppTroubleshootingEvent
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2967,6 +2994,7 @@ func (r *UserMobileAppTroubleshootingEventsCollectionRequest) Paging(ctx context
value []MobileAppTroubleshootingEvent
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3054,9 +3082,9 @@ func (r *UserNotificationsCollectionRequest) Paging(ctx context.Context, method,
}
var values []Notification
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3069,6 +3097,7 @@ func (r *UserNotificationsCollectionRequest) Paging(ctx context.Context, method,
value []Notification
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3163,9 +3192,9 @@ func (r *UserOnlineMeetingsCollectionRequest) Paging(ctx context.Context, method
}
var values []OnlineMeeting
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3178,6 +3207,7 @@ func (r *UserOnlineMeetingsCollectionRequest) Paging(ctx context.Context, method
value []OnlineMeeting
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3272,9 +3302,9 @@ func (r *UserOwnedDevicesCollectionRequest) Paging(ctx context.Context, method,
}
var values []DirectoryObject
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3287,6 +3317,7 @@ func (r *UserOwnedDevicesCollectionRequest) Paging(ctx context.Context, method,
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3374,9 +3405,9 @@ func (r *UserOwnedObjectsCollectionRequest) Paging(ctx context.Context, method,
}
var values []DirectoryObject
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3389,6 +3420,7 @@ func (r *UserOwnedObjectsCollectionRequest) Paging(ctx context.Context, method,
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3476,9 +3508,9 @@ func (r *UserPeopleCollectionRequest) Paging(ctx context.Context, method, path s
}
var values []Person
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3491,6 +3523,7 @@ func (r *UserPeopleCollectionRequest) Paging(ctx context.Context, method, path s
value []Person
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3585,9 +3618,9 @@ func (r *UserPhotosCollectionRequest) Paging(ctx context.Context, method, path s
}
var values []ProfilePhoto
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3600,6 +3633,7 @@ func (r *UserPhotosCollectionRequest) Paging(ctx context.Context, method, path s
value []ProfilePhoto
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3708,9 +3742,9 @@ func (r *UserRegisteredDevicesCollectionRequest) Paging(ctx context.Context, met
}
var values []DirectoryObject
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3723,6 +3757,7 @@ func (r *UserRegisteredDevicesCollectionRequest) Paging(ctx context.Context, met
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3810,9 +3845,9 @@ func (r *UserScopedRoleMemberOfCollectionRequest) Paging(ctx context.Context, me
}
var values []ScopedRoleMembership
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3825,6 +3860,7 @@ func (r *UserScopedRoleMemberOfCollectionRequest) Paging(ctx context.Context, me
value []ScopedRoleMembership
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3926,9 +3962,9 @@ func (r *UserTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, me
}
var values []DirectoryObject
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3941,6 +3977,7 @@ func (r *UserTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, me
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4028,9 +4065,9 @@ func (r *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest) P
}
var values []WindowsInformationProtectionDeviceRegistration
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4043,6 +4080,7 @@ func (r *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest) P
value []WindowsInformationProtectionDeviceRegistration
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4130,9 +4168,9 @@ func (r *UserActivityHistoryItemsCollectionRequest) Paging(ctx context.Context,
}
var values []ActivityHistoryItem
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4145,6 +4183,7 @@ func (r *UserActivityHistoryItemsCollectionRequest) Paging(ctx context.Context,
value []ActivityHistoryItem
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4232,9 +4271,9 @@ func (r *UserAnalyticsActivityStatisticsCollectionRequest) Paging(ctx context.Co
}
var values []ActivityStatistics
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4247,6 +4286,7 @@ func (r *UserAnalyticsActivityStatisticsCollectionRequest) Paging(ctx context.Co
value []ActivityStatistics
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4341,9 +4381,9 @@ func (r *UserAppInstallStatusDeviceStatusesCollectionRequest) Paging(ctx context
}
var values []MobileAppInstallStatus
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4356,6 +4396,7 @@ func (r *UserAppInstallStatusDeviceStatusesCollectionRequest) Paging(ctx context
value []MobileAppInstallStatus
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4457,9 +4498,9 @@ func (r *UserExperienceAnalyticsCategoryMetricValuesCollectionRequest) Paging(ct
}
var values []UserExperienceAnalyticsMetric
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4472,6 +4513,7 @@ func (r *UserExperienceAnalyticsCategoryMetricValuesCollectionRequest) Paging(ct
value []UserExperienceAnalyticsMetric
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4559,9 +4601,9 @@ func (r *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectio
}
var values []UserExperienceAnalyticsMetric
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4574,6 +4616,7 @@ func (r *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectio
value []UserExperienceAnalyticsMetric
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4661,9 +4704,9 @@ func (r *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionReques
}
var values []UserExperienceAnalyticsMetric
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4676,6 +4719,7 @@ func (r *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionReques
value []UserExperienceAnalyticsMetric
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4763,9 +4807,9 @@ func (r *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollec
}
var values []UserExperienceAnalyticsMetric
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4778,6 +4822,7 @@ func (r *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollec
value []UserExperienceAnalyticsMetric
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4865,9 +4910,9 @@ func (r *UserInstallStateSummaryDeviceStatesCollectionRequest) Paging(ctx contex
}
var values []DeviceInstallState
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4880,6 +4925,7 @@ func (r *UserInstallStateSummaryDeviceStatesCollectionRequest) Paging(ctx contex
value []DeviceInstallState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4967,9 +5013,9 @@ func (r *UserTeamworkInstalledAppsCollectionRequest) Paging(ctx context.Context,
}
var values []TeamsAppInstallation
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4982,6 +5028,7 @@ func (r *UserTeamworkInstalledAppsCollectionRequest) Paging(ctx context.Context,
value []TeamsAppInstallation
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}