Update vendor (#1228)

This commit is contained in:
Wim
2020-09-04 23:29:13 +02:00
committed by GitHub
parent 17747a5c88
commit 2f59abdda7
1436 changed files with 21840 additions and 3466 deletions

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -73,9 +73,9 @@ func (r *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest) Paging(c
}
var values []AccessPackageAssignmentPolicy
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 {
@@ -88,6 +88,7 @@ func (r *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest) Paging(c
value []AccessPackageAssignmentPolicy
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -182,9 +183,9 @@ func (r *AccessPackageAccessPackageResourceRoleScopesCollectionRequest) Paging(c
}
var values []AccessPackageResourceRoleScope
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 {
@@ -197,6 +198,7 @@ func (r *AccessPackageAccessPackageResourceRoleScopesCollectionRequest) Paging(c
value []AccessPackageResourceRoleScope
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -298,9 +300,9 @@ func (r *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest
}
var values []AccessPackageAssignmentRequestObject
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 {
@@ -313,6 +315,7 @@ func (r *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest
value []AccessPackageAssignmentRequestObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -400,9 +403,9 @@ func (r *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRe
}
var values []AccessPackageAssignmentResourceRole
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 {
@@ -415,6 +418,7 @@ func (r *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRe
value []AccessPackageAssignmentResourceRole
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -544,9 +548,9 @@ func (r *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRe
}
var values []AccessPackageAssignment
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 {
@@ -559,6 +563,7 @@ func (r *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRe
value []AccessPackageAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -667,9 +672,9 @@ func (r *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest) Paging
}
var values []AccessPackageResourceRole
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 {
@@ -682,6 +687,7 @@ func (r *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest) Paging
value []AccessPackageResourceRole
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -769,9 +775,9 @@ func (r *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest) Pagin
}
var values []AccessPackageResourceScope
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 {
@@ -784,6 +790,7 @@ func (r *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest) Pagin
value []AccessPackageResourceScope
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -871,9 +878,9 @@ func (r *AccessPackageCatalogAccessPackageResourcesCollectionRequest) Paging(ctx
}
var values []AccessPackageResource
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 {
@@ -886,6 +893,7 @@ func (r *AccessPackageCatalogAccessPackageResourcesCollectionRequest) Paging(ctx
value []AccessPackageResource
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -973,9 +981,9 @@ func (r *AccessPackageCatalogAccessPackagesCollectionRequest) Paging(ctx context
}
var values []AccessPackage
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 {
@@ -988,6 +996,7 @@ func (r *AccessPackageCatalogAccessPackagesCollectionRequest) Paging(ctx context
value []AccessPackage
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1075,9 +1084,9 @@ func (r *AccessPackageResourceAccessPackageResourceRolesCollectionRequest) Pagin
}
var values []AccessPackageResourceRole
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 {
@@ -1090,6 +1099,7 @@ func (r *AccessPackageResourceAccessPackageResourceRolesCollectionRequest) Pagin
value []AccessPackageResourceRole
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1177,9 +1187,9 @@ func (r *AccessPackageResourceAccessPackageResourceScopesCollectionRequest) Pagi
}
var values []AccessPackageResourceScope
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 {
@@ -1192,6 +1202,7 @@ func (r *AccessPackageResourceAccessPackageResourceScopesCollectionRequest) Pagi
value []AccessPackageResourceScope
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1321,9 +1332,9 @@ func (r *AccessReviewDecisionsCollectionRequest) Paging(ctx context.Context, met
}
var values []AccessReviewDecision
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 {
@@ -1336,6 +1347,7 @@ func (r *AccessReviewDecisionsCollectionRequest) Paging(ctx context.Context, met
value []AccessReviewDecision
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1423,9 +1435,9 @@ func (r *AccessReviewInstancesCollectionRequest) Paging(ctx context.Context, met
}
var values []AccessReview
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 {
@@ -1438,6 +1450,7 @@ func (r *AccessReviewInstancesCollectionRequest) Paging(ctx context.Context, met
value []AccessReview
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1525,9 +1538,9 @@ func (r *AccessReviewMyDecisionsCollectionRequest) Paging(ctx context.Context, m
}
var values []AccessReviewDecision
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 {
@@ -1540,6 +1553,7 @@ func (r *AccessReviewMyDecisionsCollectionRequest) Paging(ctx context.Context, m
value []AccessReviewDecision
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1627,9 +1641,9 @@ func (r *AccessReviewReviewersCollectionRequest) Paging(ctx context.Context, met
}
var values []AccessReviewReviewer
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 {
@@ -1642,6 +1656,7 @@ func (r *AccessReviewReviewersCollectionRequest) Paging(ctx context.Context, met
value []AccessReviewReviewer
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *AdministrativeUnitExtensionsCollectionRequest) Paging(ctx context.Conte
}
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 {
@@ -68,6 +68,7 @@ func (r *AdministrativeUnitExtensionsCollectionRequest) Paging(ctx context.Conte
value []Extension
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -155,9 +156,9 @@ func (r *AdministrativeUnitMembersCollectionRequest) Paging(ctx context.Context,
}
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 {
@@ -170,6 +171,7 @@ func (r *AdministrativeUnitMembersCollectionRequest) Paging(ctx context.Context,
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -257,9 +259,9 @@ func (r *AdministrativeUnitScopedRoleMembersCollectionRequest) Paging(ctx contex
}
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 {
@@ -272,6 +274,7 @@ func (r *AdministrativeUnitScopedRoleMembersCollectionRequest) Paging(ctx contex
value []ScopedRoleMembership
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionO
}
var values []AdvancedThreatProtectionOnboardingDeviceSettingState
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 {
@@ -68,6 +68,7 @@ func (r *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionO
value []AdvancedThreatProtectionOnboardingDeviceSettingState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *AgreementFilesCollectionRequest) Paging(ctx context.Context, method, pa
}
var values []AgreementFile
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 {
@@ -68,6 +68,7 @@ func (r *AgreementFilesCollectionRequest) Paging(ctx context.Context, method, pa
value []AgreementFile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -167,9 +167,9 @@ func (r *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesC
}
var values []ManagedDeviceCertificateState
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 {
@@ -182,6 +182,7 @@ func (r *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesC
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -332,9 +333,9 @@ func (r *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStat
}
var values []ManagedDeviceCertificateState
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 {
@@ -347,6 +348,7 @@ func (r *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStat
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -434,9 +436,9 @@ func (r *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesColle
}
var values []ManagedDeviceCertificateState
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 {
@@ -449,6 +451,7 @@ func (r *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesColle
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -536,9 +539,9 @@ func (r *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesColle
}
var values []ManagedDeviceCertificateState
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 {
@@ -551,6 +554,7 @@ func (r *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesColle
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -645,9 +649,9 @@ func (r *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesColle
}
var values []ManagedDeviceCertificateState
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 {
@@ -660,6 +664,7 @@ func (r *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesColle
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -747,9 +752,9 @@ func (r *AndroidManagedAppProtectionAppsCollectionRequest) Paging(ctx context.Co
}
var values []ManagedMobileApp
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 {
@@ -762,6 +767,7 @@ func (r *AndroidManagedAppProtectionAppsCollectionRequest) Paging(ctx context.Co
value []ManagedMobileApp
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -856,9 +862,9 @@ func (r *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRe
}
var values []ManagedDeviceCertificateState
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 {
@@ -871,6 +877,7 @@ func (r *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRe
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -958,9 +965,9 @@ func (r *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRe
}
var values []ManagedDeviceCertificateState
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 {
@@ -973,6 +980,7 @@ func (r *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRe
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1095,9 +1103,9 @@ func (r *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesC
}
var values []ManagedDeviceCertificateState
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 {
@@ -1110,6 +1118,7 @@ func (r *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesC
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1197,9 +1206,9 @@ func (r *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesC
}
var values []ManagedDeviceCertificateState
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 {
@@ -1212,6 +1221,7 @@ func (r *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesC
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -57,9 +57,9 @@ func (r *AppCatalogsTeamsAppsCollectionRequest) Paging(ctx context.Context, meth
}
var values []TeamsApp
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 {
@@ -72,6 +72,7 @@ func (r *AppCatalogsTeamsAppsCollectionRequest) Paging(ctx context.Context, meth
value []TeamsApp
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -159,9 +160,9 @@ func (r *AppVulnerabilityTaskManagedDevicesCollectionRequest) Paging(ctx context
}
var values []AppVulnerabilityManagedDevice
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 {
@@ -174,6 +175,7 @@ func (r *AppVulnerabilityTaskManagedDevicesCollectionRequest) Paging(ctx context
value []AppVulnerabilityManagedDevice
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -261,9 +263,9 @@ func (r *AppVulnerabilityTaskMobileAppsCollectionRequest) Paging(ctx context.Con
}
var values []AppVulnerabilityMobileApp
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 {
@@ -276,6 +278,7 @@ func (r *AppVulnerabilityTaskMobileAppsCollectionRequest) Paging(ctx context.Con
value []AppVulnerabilityMobileApp
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -59,9 +59,9 @@ func (r *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest) Paging
}
var values []AppleEnrollmentProfileAssignment
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 {
@@ -74,6 +74,7 @@ func (r *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest) Paging
value []AppleEnrollmentProfileAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -96,9 +96,9 @@ func (r *ApplicationExtensionPropertiesCollectionRequest) Paging(ctx context.Con
}
var values []ExtensionProperty
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 {
@@ -111,6 +111,7 @@ func (r *ApplicationExtensionPropertiesCollectionRequest) Paging(ctx context.Con
value []ExtensionProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -198,9 +199,9 @@ func (r *ApplicationOwnersCollectionRequest) 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 {
@@ -213,6 +214,7 @@ func (r *ApplicationOwnersCollectionRequest) Paging(ctx context.Context, method,
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -300,9 +302,9 @@ func (r *ApplicationPoliciesCollectionRequest) Paging(ctx context.Context, metho
}
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 {
@@ -315,6 +317,7 @@ func (r *ApplicationPoliciesCollectionRequest) Paging(ctx context.Context, metho
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *ApprovalWorkflowProviderBusinessFlowsCollectionRequest) Paging(ctx cont
}
var values []BusinessFlow
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 {
@@ -68,6 +68,7 @@ func (r *ApprovalWorkflowProviderBusinessFlowsCollectionRequest) Paging(ctx cont
value []BusinessFlow
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -155,9 +156,9 @@ func (r *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionColl
}
var values []BusinessFlow
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 {
@@ -170,6 +171,7 @@ func (r *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionColl
value []BusinessFlow
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -257,9 +259,9 @@ func (r *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest) Paging(ctx co
}
var values []GovernancePolicyTemplate
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 {
@@ -272,6 +274,7 @@ func (r *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest) Paging(ctx co
value []GovernancePolicyTemplate
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -359,9 +362,9 @@ func (r *ApprovalWorkflowProviderRequestsCollectionRequest) Paging(ctx context.C
}
var values []RequestObject
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 {
@@ -374,6 +377,7 @@ func (r *ApprovalWorkflowProviderRequestsCollectionRequest) Paging(ctx context.C
value []RequestObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -461,9 +465,9 @@ func (r *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest) Pa
}
var values []RequestObject
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 {
@@ -476,6 +480,7 @@ func (r *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest) Pa
value []RequestObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *AuditLogRootDirectoryAuditsCollectionRequest) Paging(ctx context.Contex
}
var values []DirectoryAudit
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 {
@@ -68,6 +68,7 @@ func (r *AuditLogRootDirectoryAuditsCollectionRequest) Paging(ctx context.Contex
value []DirectoryAudit
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -155,9 +156,9 @@ func (r *AuditLogRootDirectoryProvisioningCollectionRequest) Paging(ctx context.
}
var values []ProvisioningObjectSummary
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 {
@@ -170,6 +171,7 @@ func (r *AuditLogRootDirectoryProvisioningCollectionRequest) Paging(ctx context.
value []ProvisioningObjectSummary
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -257,9 +259,9 @@ func (r *AuditLogRootProvisioningCollectionRequest) Paging(ctx context.Context,
}
var values []ProvisioningObjectSummary
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 {
@@ -272,6 +274,7 @@ func (r *AuditLogRootProvisioningCollectionRequest) Paging(ctx context.Context,
value []ProvisioningObjectSummary
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -359,9 +362,9 @@ func (r *AuditLogRootRestrictedSignInsCollectionRequest) Paging(ctx context.Cont
}
var values []RestrictedSignIn
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 {
@@ -374,6 +377,7 @@ func (r *AuditLogRootRestrictedSignInsCollectionRequest) Paging(ctx context.Cont
value []RestrictedSignIn
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -461,9 +465,9 @@ func (r *AuditLogRootSignInsCollectionRequest) Paging(ctx context.Context, metho
}
var values []SignIn
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 {
@@ -476,6 +480,7 @@ func (r *AuditLogRootSignInsCollectionRequest) Paging(ctx context.Context, metho
value []SignIn
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -67,9 +67,9 @@ func (r *BookingBusinessAppointmentsCollectionRequest) Paging(ctx context.Contex
}
var values []BookingAppointment
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 {
@@ -82,6 +82,7 @@ func (r *BookingBusinessAppointmentsCollectionRequest) Paging(ctx context.Contex
value []BookingAppointment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -169,9 +170,9 @@ func (r *BookingBusinessCalendarViewCollectionRequest) Paging(ctx context.Contex
}
var values []BookingAppointment
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 {
@@ -184,6 +185,7 @@ func (r *BookingBusinessCalendarViewCollectionRequest) Paging(ctx context.Contex
value []BookingAppointment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -271,9 +273,9 @@ func (r *BookingBusinessCustomersCollectionRequest) Paging(ctx context.Context,
}
var values []BookingCustomer
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 {
@@ -286,6 +288,7 @@ func (r *BookingBusinessCustomersCollectionRequest) Paging(ctx context.Context,
value []BookingCustomer
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -373,9 +376,9 @@ func (r *BookingBusinessServicesCollectionRequest) Paging(ctx context.Context, m
}
var values []BookingService
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 {
@@ -388,6 +391,7 @@ func (r *BookingBusinessServicesCollectionRequest) Paging(ctx context.Context, m
value []BookingService
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -475,9 +479,9 @@ func (r *BookingBusinessStaffMembersCollectionRequest) Paging(ctx context.Contex
}
var values []BookingStaffMember
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 {
@@ -490,6 +494,7 @@ func (r *BookingBusinessStaffMembersCollectionRequest) Paging(ctx context.Contex
value []BookingStaffMember
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -69,9 +69,9 @@ func (r *CalendarCalendarPermissionsCollectionRequest) Paging(ctx context.Contex
}
var values []CalendarPermission
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 {
@@ -84,6 +84,7 @@ func (r *CalendarCalendarPermissionsCollectionRequest) Paging(ctx context.Contex
value []CalendarPermission
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -171,9 +172,9 @@ func (r *CalendarCalendarViewCollectionRequest) Paging(ctx context.Context, meth
}
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 {
@@ -186,6 +187,7 @@ func (r *CalendarCalendarViewCollectionRequest) Paging(ctx context.Context, meth
value []Event
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -273,9 +275,9 @@ func (r *CalendarEventsCollectionRequest) Paging(ctx context.Context, method, pa
}
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 {
@@ -288,6 +290,7 @@ func (r *CalendarEventsCollectionRequest) Paging(ctx context.Context, method, pa
value []Event
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -375,9 +378,9 @@ func (r *CalendarMultiValueExtendedPropertiesCollectionRequest) Paging(ctx conte
}
var values []MultiValueLegacyExtendedProperty
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 {
@@ -390,6 +393,7 @@ func (r *CalendarMultiValueExtendedPropertiesCollectionRequest) Paging(ctx conte
value []MultiValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -477,9 +481,9 @@ func (r *CalendarSingleValueExtendedPropertiesCollectionRequest) Paging(ctx cont
}
var values []SingleValueLegacyExtendedProperty
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 {
@@ -492,6 +496,7 @@ func (r *CalendarSingleValueExtendedPropertiesCollectionRequest) Paging(ctx cont
value []SingleValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -579,9 +584,9 @@ func (r *CalendarGroupCalendarsCollectionRequest) Paging(ctx context.Context, me
}
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 {
@@ -594,6 +599,7 @@ func (r *CalendarGroupCalendarsCollectionRequest) Paging(ctx context.Context, me
value []Calendar
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -189,9 +189,9 @@ func (r *CallAudioRoutingGroupsCollectionRequest) Paging(ctx context.Context, me
}
var values []AudioRoutingGroup
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 {
@@ -204,6 +204,7 @@ func (r *CallAudioRoutingGroupsCollectionRequest) Paging(ctx context.Context, me
value []AudioRoutingGroup
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -291,9 +292,9 @@ func (r *CallOperationsCollectionRequest) Paging(ctx context.Context, method, pa
}
var values []CommsOperation
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 {
@@ -306,6 +307,7 @@ func (r *CallOperationsCollectionRequest) Paging(ctx context.Context, method, pa
value []CommsOperation
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -393,9 +395,9 @@ func (r *CallParticipantsCollectionRequest) Paging(ctx context.Context, method,
}
var values []Participant
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 {
@@ -408,6 +410,7 @@ func (r *CallParticipantsCollectionRequest) Paging(ctx context.Context, method,
value []Participant
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -60,9 +60,9 @@ func (r *ChannelMembersCollectionRequest) Paging(ctx context.Context, method, pa
}
var values []ConversationMember
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 {
@@ -75,6 +75,7 @@ func (r *ChannelMembersCollectionRequest) Paging(ctx context.Context, method, pa
value []ConversationMember
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -162,9 +163,9 @@ func (r *ChannelMessagesCollectionRequest) Paging(ctx context.Context, method, p
}
var values []ChatMessage
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 {
@@ -177,6 +178,7 @@ func (r *ChannelMessagesCollectionRequest) Paging(ctx context.Context, method, p
value []ChatMessage
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -264,9 +266,9 @@ func (r *ChannelTabsCollectionRequest) Paging(ctx context.Context, method, path
}
var values []TeamsTab
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 {
@@ -279,6 +281,7 @@ func (r *ChannelTabsCollectionRequest) Paging(ctx context.Context, method, path
value []TeamsTab
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *ChatInstalledAppsCollectionRequest) Paging(ctx context.Context, method,
}
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 {
@@ -68,6 +68,7 @@ func (r *ChatInstalledAppsCollectionRequest) Paging(ctx context.Context, method,
value []TeamsAppInstallation
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -155,9 +156,9 @@ func (r *ChatMembersCollectionRequest) Paging(ctx context.Context, method, path
}
var values []ConversationMember
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 {
@@ -170,6 +171,7 @@ func (r *ChatMembersCollectionRequest) Paging(ctx context.Context, method, path
value []ConversationMember
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -257,9 +259,9 @@ func (r *ChatMessagesCollectionRequest) Paging(ctx context.Context, method, path
}
var values []ChatMessage
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 {
@@ -272,6 +274,7 @@ func (r *ChatMessagesCollectionRequest) Paging(ctx context.Context, method, path
value []ChatMessage
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -359,9 +362,9 @@ func (r *ChatMessageHostedContentsCollectionRequest) Paging(ctx context.Context,
}
var values []ChatMessageHostedContent
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 {
@@ -374,6 +377,7 @@ func (r *ChatMessageHostedContentsCollectionRequest) Paging(ctx context.Context,
value []ChatMessageHostedContent
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -461,9 +465,9 @@ func (r *ChatMessageRepliesCollectionRequest) Paging(ctx context.Context, method
}
var values []ChatMessage
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 {
@@ -476,6 +480,7 @@ func (r *ChatMessageRepliesCollectionRequest) Paging(ctx context.Context, method
value []ChatMessage
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -59,9 +59,9 @@ func (r *CloudCommunicationsCallsCollectionRequest) Paging(ctx context.Context,
}
var values []Call
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 {
@@ -74,6 +74,7 @@ func (r *CloudCommunicationsCallsCollectionRequest) Paging(ctx context.Context,
value []Call
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -161,9 +162,9 @@ func (r *CloudCommunicationsOnlineMeetingsCollectionRequest) Paging(ctx context.
}
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 {
@@ -176,6 +177,7 @@ func (r *CloudCommunicationsOnlineMeetingsCollectionRequest) Paging(ctx context.
value []OnlineMeeting
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *CommsApplicationCallsCollectionRequest) Paging(ctx context.Context, met
}
var values []Call
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 {
@@ -68,6 +68,7 @@ func (r *CommsApplicationCallsCollectionRequest) Paging(ctx context.Context, met
value []Call
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -155,9 +156,9 @@ func (r *CommsApplicationOnlineMeetingsCollectionRequest) Paging(ctx context.Con
}
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 {
@@ -170,6 +171,7 @@ func (r *CommsApplicationOnlineMeetingsCollectionRequest) Paging(ctx context.Con
value []OnlineMeeting
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *CompanyAccountsCollectionRequest) Paging(ctx context.Context, method, p
}
var values []Account
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 {
@@ -68,6 +68,7 @@ func (r *CompanyAccountsCollectionRequest) Paging(ctx context.Context, method, p
value []Account
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -155,9 +156,9 @@ func (r *CompanyAgedAccountsPayableCollectionRequest) Paging(ctx context.Context
}
var values []AgedAccountsPayable
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 {
@@ -170,6 +171,7 @@ func (r *CompanyAgedAccountsPayableCollectionRequest) Paging(ctx context.Context
value []AgedAccountsPayable
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -257,9 +259,9 @@ func (r *CompanyAgedAccountsReceivableCollectionRequest) Paging(ctx context.Cont
}
var values []AgedAccountsReceivable
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 {
@@ -272,6 +274,7 @@ func (r *CompanyAgedAccountsReceivableCollectionRequest) Paging(ctx context.Cont
value []AgedAccountsReceivable
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -359,9 +362,9 @@ func (r *CompanyCompanyInformationCollectionRequest) Paging(ctx context.Context,
}
var values []CompanyInformation
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 {
@@ -374,6 +377,7 @@ func (r *CompanyCompanyInformationCollectionRequest) Paging(ctx context.Context,
value []CompanyInformation
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -461,9 +465,9 @@ func (r *CompanyCountriesRegionsCollectionRequest) Paging(ctx context.Context, m
}
var values []CountryRegion
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 {
@@ -476,6 +480,7 @@ func (r *CompanyCountriesRegionsCollectionRequest) Paging(ctx context.Context, m
value []CountryRegion
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -563,9 +568,9 @@ func (r *CompanyCurrenciesCollectionRequest) Paging(ctx context.Context, method,
}
var values []Currency
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 {
@@ -578,6 +583,7 @@ func (r *CompanyCurrenciesCollectionRequest) Paging(ctx context.Context, method,
value []Currency
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -665,9 +671,9 @@ func (r *CompanyCustomerPaymentJournalsCollectionRequest) Paging(ctx context.Con
}
var values []CustomerPaymentJournal
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 {
@@ -680,6 +686,7 @@ func (r *CompanyCustomerPaymentJournalsCollectionRequest) Paging(ctx context.Con
value []CustomerPaymentJournal
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -767,9 +774,9 @@ func (r *CompanyCustomerPaymentsCollectionRequest) Paging(ctx context.Context, m
}
var values []CustomerPayment
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 {
@@ -782,6 +789,7 @@ func (r *CompanyCustomerPaymentsCollectionRequest) Paging(ctx context.Context, m
value []CustomerPayment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -869,9 +877,9 @@ func (r *CompanyCustomersCollectionRequest) Paging(ctx context.Context, method,
}
var values []Customer
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 {
@@ -884,6 +892,7 @@ func (r *CompanyCustomersCollectionRequest) Paging(ctx context.Context, method,
value []Customer
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -971,9 +980,9 @@ func (r *CompanyDimensionValuesCollectionRequest) Paging(ctx context.Context, me
}
var values []DimensionValue
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 {
@@ -986,6 +995,7 @@ func (r *CompanyDimensionValuesCollectionRequest) Paging(ctx context.Context, me
value []DimensionValue
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1073,9 +1083,9 @@ func (r *CompanyDimensionsCollectionRequest) Paging(ctx context.Context, method,
}
var values []Dimension
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 {
@@ -1088,6 +1098,7 @@ func (r *CompanyDimensionsCollectionRequest) Paging(ctx context.Context, method,
value []Dimension
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1175,9 +1186,9 @@ func (r *CompanyEmployeesCollectionRequest) Paging(ctx context.Context, method,
}
var values []Employee
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 {
@@ -1190,6 +1201,7 @@ func (r *CompanyEmployeesCollectionRequest) Paging(ctx context.Context, method,
value []Employee
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1277,9 +1289,9 @@ func (r *CompanyGeneralLedgerEntriesCollectionRequest) Paging(ctx context.Contex
}
var values []GeneralLedgerEntry
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 {
@@ -1292,6 +1304,7 @@ func (r *CompanyGeneralLedgerEntriesCollectionRequest) Paging(ctx context.Contex
value []GeneralLedgerEntry
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1379,9 +1392,9 @@ func (r *CompanyItemCategoriesCollectionRequest) Paging(ctx context.Context, met
}
var values []ItemCategory
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 {
@@ -1394,6 +1407,7 @@ func (r *CompanyItemCategoriesCollectionRequest) Paging(ctx context.Context, met
value []ItemCategory
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1481,9 +1495,9 @@ func (r *CompanyItemsCollectionRequest) Paging(ctx context.Context, method, path
}
var values []Item
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 {
@@ -1496,6 +1510,7 @@ func (r *CompanyItemsCollectionRequest) Paging(ctx context.Context, method, path
value []Item
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1583,9 +1598,9 @@ func (r *CompanyJournalLinesCollectionRequest) Paging(ctx context.Context, metho
}
var values []JournalLine
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 {
@@ -1598,6 +1613,7 @@ func (r *CompanyJournalLinesCollectionRequest) Paging(ctx context.Context, metho
value []JournalLine
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1685,9 +1701,9 @@ func (r *CompanyJournalsCollectionRequest) Paging(ctx context.Context, method, p
}
var values []Journal
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 {
@@ -1700,6 +1716,7 @@ func (r *CompanyJournalsCollectionRequest) Paging(ctx context.Context, method, p
value []Journal
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1787,9 +1804,9 @@ func (r *CompanyPaymentMethodsCollectionRequest) Paging(ctx context.Context, met
}
var values []PaymentMethod
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 {
@@ -1802,6 +1819,7 @@ func (r *CompanyPaymentMethodsCollectionRequest) Paging(ctx context.Context, met
value []PaymentMethod
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1889,9 +1907,9 @@ func (r *CompanyPaymentTermsCollectionRequest) Paging(ctx context.Context, metho
}
var values []PaymentTerm
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 {
@@ -1904,6 +1922,7 @@ func (r *CompanyPaymentTermsCollectionRequest) Paging(ctx context.Context, metho
value []PaymentTerm
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1991,9 +2010,9 @@ func (r *CompanyPictureCollectionRequest) Paging(ctx context.Context, method, pa
}
var values []Picture
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 {
@@ -2006,6 +2025,7 @@ func (r *CompanyPictureCollectionRequest) Paging(ctx context.Context, method, pa
value []Picture
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2093,9 +2113,9 @@ func (r *CompanyPurchaseInvoiceLinesCollectionRequest) Paging(ctx context.Contex
}
var values []PurchaseInvoiceLine
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 {
@@ -2108,6 +2128,7 @@ func (r *CompanyPurchaseInvoiceLinesCollectionRequest) Paging(ctx context.Contex
value []PurchaseInvoiceLine
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2195,9 +2216,9 @@ func (r *CompanyPurchaseInvoicesCollectionRequest) Paging(ctx context.Context, m
}
var values []PurchaseInvoice
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 {
@@ -2210,6 +2231,7 @@ func (r *CompanyPurchaseInvoicesCollectionRequest) Paging(ctx context.Context, m
value []PurchaseInvoice
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2297,9 +2319,9 @@ func (r *CompanySalesCreditMemoLinesCollectionRequest) Paging(ctx context.Contex
}
var values []SalesCreditMemoLine
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 {
@@ -2312,6 +2334,7 @@ func (r *CompanySalesCreditMemoLinesCollectionRequest) Paging(ctx context.Contex
value []SalesCreditMemoLine
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2399,9 +2422,9 @@ func (r *CompanySalesCreditMemosCollectionRequest) Paging(ctx context.Context, m
}
var values []SalesCreditMemo
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 {
@@ -2414,6 +2437,7 @@ func (r *CompanySalesCreditMemosCollectionRequest) Paging(ctx context.Context, m
value []SalesCreditMemo
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2501,9 +2525,9 @@ func (r *CompanySalesInvoiceLinesCollectionRequest) Paging(ctx context.Context,
}
var values []SalesInvoiceLine
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 {
@@ -2516,6 +2540,7 @@ func (r *CompanySalesInvoiceLinesCollectionRequest) Paging(ctx context.Context,
value []SalesInvoiceLine
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2603,9 +2628,9 @@ func (r *CompanySalesInvoicesCollectionRequest) Paging(ctx context.Context, meth
}
var values []SalesInvoice
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 {
@@ -2618,6 +2643,7 @@ func (r *CompanySalesInvoicesCollectionRequest) Paging(ctx context.Context, meth
value []SalesInvoice
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2705,9 +2731,9 @@ func (r *CompanySalesOrderLinesCollectionRequest) Paging(ctx context.Context, me
}
var values []SalesOrderLine
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 {
@@ -2720,6 +2746,7 @@ func (r *CompanySalesOrderLinesCollectionRequest) Paging(ctx context.Context, me
value []SalesOrderLine
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2807,9 +2834,9 @@ func (r *CompanySalesOrdersCollectionRequest) Paging(ctx context.Context, method
}
var values []SalesOrder
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 {
@@ -2822,6 +2849,7 @@ func (r *CompanySalesOrdersCollectionRequest) Paging(ctx context.Context, method
value []SalesOrder
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2909,9 +2937,9 @@ func (r *CompanySalesQuoteLinesCollectionRequest) Paging(ctx context.Context, me
}
var values []SalesQuoteLine
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 {
@@ -2924,6 +2952,7 @@ func (r *CompanySalesQuoteLinesCollectionRequest) Paging(ctx context.Context, me
value []SalesQuoteLine
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -3011,9 +3040,9 @@ func (r *CompanySalesQuotesCollectionRequest) Paging(ctx context.Context, method
}
var values []SalesQuote
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 {
@@ -3026,6 +3055,7 @@ func (r *CompanySalesQuotesCollectionRequest) Paging(ctx context.Context, method
value []SalesQuote
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -3113,9 +3143,9 @@ func (r *CompanyShipmentMethodsCollectionRequest) Paging(ctx context.Context, me
}
var values []ShipmentMethod
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 {
@@ -3128,6 +3158,7 @@ func (r *CompanyShipmentMethodsCollectionRequest) Paging(ctx context.Context, me
value []ShipmentMethod
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -3215,9 +3246,9 @@ func (r *CompanyTaxAreasCollectionRequest) Paging(ctx context.Context, method, p
}
var values []TaxArea
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 {
@@ -3230,6 +3261,7 @@ func (r *CompanyTaxAreasCollectionRequest) Paging(ctx context.Context, method, p
value []TaxArea
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -3317,9 +3349,9 @@ func (r *CompanyTaxGroupsCollectionRequest) Paging(ctx context.Context, method,
}
var values []TaxGroup
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 {
@@ -3332,6 +3364,7 @@ func (r *CompanyTaxGroupsCollectionRequest) Paging(ctx context.Context, method,
value []TaxGroup
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -3419,9 +3452,9 @@ func (r *CompanyUnitsOfMeasureCollectionRequest) Paging(ctx context.Context, met
}
var values []UnitOfMeasure
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 {
@@ -3434,6 +3467,7 @@ func (r *CompanyUnitsOfMeasureCollectionRequest) Paging(ctx context.Context, met
value []UnitOfMeasure
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -3521,9 +3555,9 @@ func (r *CompanyVendorsCollectionRequest) Paging(ctx context.Context, method, pa
}
var values []Vendor
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 {
@@ -3536,6 +3570,7 @@ func (r *CompanyVendorsCollectionRequest) Paging(ctx context.Context, method, pa
value []Vendor
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *ConditionalAccessRootNamedLocationsCollectionRequest) Paging(ctx contex
}
var values []NamedLocation
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 {
@@ -68,6 +68,7 @@ func (r *ConditionalAccessRootNamedLocationsCollectionRequest) Paging(ctx contex
value []NamedLocation
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -155,9 +156,9 @@ func (r *ConditionalAccessRootPoliciesCollectionRequest) Paging(ctx context.Cont
}
var values []ConditionalAccessPolicy
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 {
@@ -170,6 +171,7 @@ func (r *ConditionalAccessRootPoliciesCollectionRequest) Paging(ctx context.Cont
value []ConditionalAccessPolicy
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *ContactExtensionsCollectionRequest) Paging(ctx context.Context, method,
}
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 {
@@ -68,6 +68,7 @@ func (r *ContactExtensionsCollectionRequest) Paging(ctx context.Context, method,
value []Extension
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -155,9 +156,9 @@ func (r *ContactMultiValueExtendedPropertiesCollectionRequest) Paging(ctx contex
}
var values []MultiValueLegacyExtendedProperty
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 {
@@ -170,6 +171,7 @@ func (r *ContactMultiValueExtendedPropertiesCollectionRequest) Paging(ctx contex
value []MultiValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -264,9 +266,9 @@ func (r *ContactSingleValueExtendedPropertiesCollectionRequest) Paging(ctx conte
}
var values []SingleValueLegacyExtendedProperty
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 {
@@ -279,6 +281,7 @@ func (r *ContactSingleValueExtendedPropertiesCollectionRequest) Paging(ctx conte
value []SingleValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -366,9 +369,9 @@ func (r *ContactFolderChildFoldersCollectionRequest) Paging(ctx context.Context,
}
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 {
@@ -381,6 +384,7 @@ func (r *ContactFolderChildFoldersCollectionRequest) Paging(ctx context.Context,
value []ContactFolder
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -468,9 +472,9 @@ func (r *ContactFolderContactsCollectionRequest) Paging(ctx context.Context, met
}
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 {
@@ -483,6 +487,7 @@ func (r *ContactFolderContactsCollectionRequest) Paging(ctx context.Context, met
value []Contact
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -570,9 +575,9 @@ func (r *ContactFolderMultiValueExtendedPropertiesCollectionRequest) Paging(ctx
}
var values []MultiValueLegacyExtendedProperty
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 {
@@ -585,6 +590,7 @@ func (r *ContactFolderMultiValueExtendedPropertiesCollectionRequest) Paging(ctx
value []MultiValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -672,9 +678,9 @@ func (r *ContactFolderSingleValueExtendedPropertiesCollectionRequest) Paging(ctx
}
var values []SingleValueLegacyExtendedProperty
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 {
@@ -687,6 +693,7 @@ func (r *ContactFolderSingleValueExtendedPropertiesCollectionRequest) Paging(ctx
value []SingleValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *ContentTypeColumnLinksCollectionRequest) Paging(ctx context.Context, me
}
var values []ColumnLink
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 {
@@ -68,6 +68,7 @@ func (r *ContentTypeColumnLinksCollectionRequest) Paging(ctx context.Context, me
value []ColumnLink
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -59,9 +59,9 @@ func (r *ConversationThreadsCollectionRequest) Paging(ctx context.Context, metho
}
var values []ConversationThread
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 {
@@ -74,6 +74,7 @@ func (r *ConversationThreadsCollectionRequest) Paging(ctx context.Context, metho
value []ConversationThread
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -161,9 +162,9 @@ func (r *ConversationThreadPostsCollectionRequest) Paging(ctx context.Context, m
}
var values []Post
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 {
@@ -176,6 +177,7 @@ func (r *ConversationThreadPostsCollectionRequest) Paging(ctx context.Context, m
value []Post
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -74,9 +74,9 @@ func (r *CustomerPictureCollectionRequest) Paging(ctx context.Context, method, p
}
var values []Picture
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 {
@@ -89,6 +89,7 @@ func (r *CustomerPictureCollectionRequest) Paging(ctx context.Context, method, p
value []Picture
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -197,9 +198,9 @@ func (r *CustomerPaymentJournalCustomerPaymentsCollectionRequest) Paging(ctx con
}
var values []CustomerPayment
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 {
@@ -212,6 +213,7 @@ func (r *CustomerPaymentJournalCustomerPaymentsCollectionRequest) Paging(ctx con
value []CustomerPayment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -67,9 +67,9 @@ func (r *DataClassificationServiceClassifyFileCollectionRequest) Paging(ctx cont
}
var values []FileClassificationRequestObject
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 {
@@ -82,6 +82,7 @@ func (r *DataClassificationServiceClassifyFileCollectionRequest) Paging(ctx cont
value []FileClassificationRequestObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -169,9 +170,9 @@ func (r *DataClassificationServiceClassifyFileJobsCollectionRequest) Paging(ctx
}
var values []JobResponseBase
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 {
@@ -184,6 +185,7 @@ func (r *DataClassificationServiceClassifyFileJobsCollectionRequest) Paging(ctx
value []JobResponseBase
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -271,9 +273,9 @@ func (r *DataClassificationServiceClassifyTextCollectionRequest) Paging(ctx cont
}
var values []TextClassificationRequestObject
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 {
@@ -286,6 +288,7 @@ func (r *DataClassificationServiceClassifyTextCollectionRequest) Paging(ctx cont
value []TextClassificationRequestObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -373,9 +376,9 @@ func (r *DataClassificationServiceClassifyTextJobsCollectionRequest) Paging(ctx
}
var values []JobResponseBase
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 {
@@ -388,6 +391,7 @@ func (r *DataClassificationServiceClassifyTextJobsCollectionRequest) Paging(ctx
value []JobResponseBase
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -475,9 +479,9 @@ func (r *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest) Pagi
}
var values []JobResponseBase
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 {
@@ -490,6 +494,7 @@ func (r *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest) Pagi
value []JobResponseBase
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -577,9 +582,9 @@ func (r *DataClassificationServiceEvaluateLabelJobsCollectionRequest) Paging(ctx
}
var values []JobResponseBase
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 {
@@ -592,6 +597,7 @@ func (r *DataClassificationServiceEvaluateLabelJobsCollectionRequest) Paging(ctx
value []JobResponseBase
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -679,9 +685,9 @@ func (r *DataClassificationServiceExactMatchDataStoresCollectionRequest) Paging(
}
var values []ExactMatchDataStore
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 {
@@ -694,6 +700,7 @@ func (r *DataClassificationServiceExactMatchDataStoresCollectionRequest) Paging(
value []ExactMatchDataStore
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -781,9 +788,9 @@ func (r *DataClassificationServiceExactMatchUploadAgentsCollectionRequest) Pagin
}
var values []ExactMatchUploadAgent
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 {
@@ -796,6 +803,7 @@ func (r *DataClassificationServiceExactMatchUploadAgentsCollectionRequest) Pagin
value []ExactMatchUploadAgent
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -883,9 +891,9 @@ func (r *DataClassificationServiceJobsCollectionRequest) Paging(ctx context.Cont
}
var values []JobResponseBase
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 {
@@ -898,6 +906,7 @@ func (r *DataClassificationServiceJobsCollectionRequest) Paging(ctx context.Cont
value []JobResponseBase
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -985,9 +994,9 @@ func (r *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionReque
}
var values []JobResponseBase
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 {
@@ -1000,6 +1009,7 @@ func (r *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionReque
value []JobResponseBase
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1087,9 +1097,9 @@ func (r *DataClassificationServiceSensitiveTypesCollectionRequest) Paging(ctx co
}
var values []SensitiveType
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 {
@@ -1102,6 +1112,7 @@ func (r *DataClassificationServiceSensitiveTypesCollectionRequest) Paging(ctx co
value []SensitiveType
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1189,9 +1200,9 @@ func (r *DataClassificationServiceSensitivityLabelsCollectionRequest) Paging(ctx
}
var values []SensitivityLabel
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 {
@@ -1204,6 +1215,7 @@ func (r *DataClassificationServiceSensitivityLabelsCollectionRequest) Paging(ctx
value []SensitivityLabel
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *DefaultManagedAppProtectionAppsCollectionRequest) Paging(ctx context.Co
}
var values []ManagedMobileApp
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 {
@@ -68,6 +68,7 @@ func (r *DefaultManagedAppProtectionAppsCollectionRequest) Paging(ctx context.Co
value []ManagedMobileApp
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -87,9 +87,9 @@ func (r *DepOnboardingSettingEnrollmentProfilesCollectionRequest) Paging(ctx con
}
var values []EnrollmentProfile
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 {
@@ -102,6 +102,7 @@ func (r *DepOnboardingSettingEnrollmentProfilesCollectionRequest) Paging(ctx con
value []EnrollmentProfile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -189,9 +190,9 @@ func (r *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest) Pag
}
var values []ImportedAppleDeviceIdentity
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 {
@@ -204,6 +205,7 @@ func (r *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest) Pag
value []ImportedAppleDeviceIdentity
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *DetectedAppManagedDevicesCollectionRequest) Paging(ctx context.Context,
}
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 {
@@ -68,6 +68,7 @@ func (r *DetectedAppManagedDevicesCollectionRequest) Paging(ctx context.Context,
value []ManagedDevice
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *DimensionDimensionValuesCollectionRequest) Paging(ctx context.Context,
}
var values []DimensionValue
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 {
@@ -68,6 +68,7 @@ func (r *DimensionDimensionValuesCollectionRequest) Paging(ctx context.Context,
value []DimensionValue
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -113,9 +113,9 @@ func (r *DirectoryDeletedItemsCollectionRequest) 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 {
@@ -128,6 +128,7 @@ func (r *DirectoryDeletedItemsCollectionRequest) Paging(ctx context.Context, met
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -215,9 +216,9 @@ func (r *DirectoryFeatureRolloutPoliciesCollectionRequest) Paging(ctx context.Co
}
var values []FeatureRolloutPolicy
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 {
@@ -230,6 +231,7 @@ func (r *DirectoryFeatureRolloutPoliciesCollectionRequest) Paging(ctx context.Co
value []FeatureRolloutPolicy
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -317,9 +319,9 @@ func (r *DirectoryRoleMembersCollectionRequest) Paging(ctx context.Context, meth
}
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 {
@@ -332,6 +334,7 @@ func (r *DirectoryRoleMembersCollectionRequest) Paging(ctx context.Context, meth
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -419,9 +422,9 @@ func (r *DirectoryRoleScopedMembersCollectionRequest) Paging(ctx context.Context
}
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 {
@@ -434,6 +437,7 @@ func (r *DirectoryRoleScopedMembersCollectionRequest) Paging(ctx context.Context
value []ScopedRoleMembership
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *DocumentCommentsCollectionRequest) Paging(ctx context.Context, method,
}
var values []DocumentComment
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 {
@@ -68,6 +68,7 @@ func (r *DocumentCommentsCollectionRequest) Paging(ctx context.Context, method,
value []DocumentComment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -155,9 +156,9 @@ func (r *DocumentCommentRepliesCollectionRequest) Paging(ctx context.Context, me
}
var values []DocumentCommentReply
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 {
@@ -170,6 +171,7 @@ func (r *DocumentCommentRepliesCollectionRequest) Paging(ctx context.Context, me
value []DocumentCommentReply
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -63,9 +63,9 @@ func (r *DomainDomainNameReferencesCollectionRequest) Paging(ctx context.Context
}
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 {
@@ -78,6 +78,7 @@ func (r *DomainDomainNameReferencesCollectionRequest) Paging(ctx context.Context
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -165,9 +166,9 @@ func (r *DomainServiceConfigurationRecordsCollectionRequest) Paging(ctx context.
}
var values []DomainDNSRecord
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 {
@@ -180,6 +181,7 @@ func (r *DomainServiceConfigurationRecordsCollectionRequest) Paging(ctx context.
value []DomainDNSRecord
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -267,9 +269,9 @@ func (r *DomainVerificationDNSRecordsCollectionRequest) Paging(ctx context.Conte
}
var values []DomainDNSRecord
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 {
@@ -282,6 +284,7 @@ func (r *DomainVerificationDNSRecordsCollectionRequest) Paging(ctx context.Conte
value []DomainDNSRecord
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -158,9 +158,9 @@ func (r *DriveActivitiesCollectionRequest) Paging(ctx context.Context, method, p
}
var values []ItemActivityOLD
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 {
@@ -173,6 +173,7 @@ func (r *DriveActivitiesCollectionRequest) Paging(ctx context.Context, method, p
value []ItemActivityOLD
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -260,9 +261,9 @@ func (r *DriveBundlesCollectionRequest) Paging(ctx context.Context, method, path
}
var values []DriveItem
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 {
@@ -275,6 +276,7 @@ func (r *DriveBundlesCollectionRequest) Paging(ctx context.Context, method, path
value []DriveItem
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -362,9 +364,9 @@ func (r *DriveFollowingCollectionRequest) Paging(ctx context.Context, method, pa
}
var values []DriveItem
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 {
@@ -377,6 +379,7 @@ func (r *DriveFollowingCollectionRequest) Paging(ctx context.Context, method, pa
value []DriveItem
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -464,9 +467,9 @@ func (r *DriveItemsCollectionRequest) Paging(ctx context.Context, method, path s
}
var values []DriveItem
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 {
@@ -479,6 +482,7 @@ func (r *DriveItemsCollectionRequest) Paging(ctx context.Context, method, path s
value []DriveItem
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -580,9 +584,9 @@ func (r *DriveSpecialCollectionRequest) Paging(ctx context.Context, method, path
}
var values []DriveItem
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 {
@@ -595,6 +599,7 @@ func (r *DriveSpecialCollectionRequest) Paging(ctx context.Context, method, path
value []DriveItem
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -682,9 +687,9 @@ func (r *DriveItemActivitiesCollectionRequest) Paging(ctx context.Context, metho
}
var values []ItemActivityOLD
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 {
@@ -697,6 +702,7 @@ func (r *DriveItemActivitiesCollectionRequest) Paging(ctx context.Context, metho
value []ItemActivityOLD
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -791,9 +797,9 @@ func (r *DriveItemChildrenCollectionRequest) Paging(ctx context.Context, method,
}
var values []DriveItem
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 {
@@ -806,6 +812,7 @@ func (r *DriveItemChildrenCollectionRequest) Paging(ctx context.Context, method,
value []DriveItem
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -907,9 +914,9 @@ func (r *DriveItemPermissionsCollectionRequest) Paging(ctx context.Context, meth
}
var values []Permission
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 {
@@ -922,6 +929,7 @@ func (r *DriveItemPermissionsCollectionRequest) Paging(ctx context.Context, meth
value []Permission
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1009,9 +1017,9 @@ func (r *DriveItemSubscriptionsCollectionRequest) Paging(ctx context.Context, me
}
var values []Subscription
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 {
@@ -1024,6 +1032,7 @@ func (r *DriveItemSubscriptionsCollectionRequest) Paging(ctx context.Context, me
value []Subscription
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1111,9 +1120,9 @@ func (r *DriveItemThumbnailsCollectionRequest) Paging(ctx context.Context, metho
}
var values []ThumbnailSet
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 {
@@ -1126,6 +1135,7 @@ func (r *DriveItemThumbnailsCollectionRequest) Paging(ctx context.Context, metho
value []ThumbnailSet
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1213,9 +1223,9 @@ func (r *DriveItemVersionsCollectionRequest) Paging(ctx context.Context, method,
}
var values []DriveItemVersion
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 {
@@ -1228,6 +1238,7 @@ func (r *DriveItemVersionsCollectionRequest) Paging(ctx context.Context, method,
value []DriveItemVersion
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -85,9 +85,9 @@ func (r *EducationAssignmentCategoriesCollectionRequest) Paging(ctx context.Cont
}
var values []EducationCategory
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 {
@@ -100,6 +100,7 @@ func (r *EducationAssignmentCategoriesCollectionRequest) Paging(ctx context.Cont
value []EducationCategory
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -187,9 +188,9 @@ func (r *EducationAssignmentResourcesCollectionRequest) Paging(ctx context.Conte
}
var values []EducationAssignmentResource
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 {
@@ -202,6 +203,7 @@ func (r *EducationAssignmentResourcesCollectionRequest) Paging(ctx context.Conte
value []EducationAssignmentResource
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -296,9 +298,9 @@ func (r *EducationAssignmentSubmissionsCollectionRequest) Paging(ctx context.Con
}
var values []EducationSubmission
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 {
@@ -311,6 +313,7 @@ func (r *EducationAssignmentSubmissionsCollectionRequest) Paging(ctx context.Con
value []EducationSubmission
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -398,9 +401,9 @@ func (r *EducationClassAssignmentCategoriesCollectionRequest) Paging(ctx context
}
var values []EducationCategory
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 {
@@ -413,6 +416,7 @@ func (r *EducationClassAssignmentCategoriesCollectionRequest) Paging(ctx context
value []EducationCategory
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -500,9 +504,9 @@ func (r *EducationClassAssignmentsCollectionRequest) Paging(ctx context.Context,
}
var values []EducationAssignment
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 {
@@ -515,6 +519,7 @@ func (r *EducationClassAssignmentsCollectionRequest) Paging(ctx context.Context,
value []EducationAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -609,9 +614,9 @@ func (r *EducationClassMembersCollectionRequest) Paging(ctx context.Context, met
}
var values []EducationUser
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 {
@@ -624,6 +629,7 @@ func (r *EducationClassMembersCollectionRequest) Paging(ctx context.Context, met
value []EducationUser
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -711,9 +717,9 @@ func (r *EducationClassSchoolsCollectionRequest) Paging(ctx context.Context, met
}
var values []EducationSchool
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 {
@@ -726,6 +732,7 @@ func (r *EducationClassSchoolsCollectionRequest) Paging(ctx context.Context, met
value []EducationSchool
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -813,9 +820,9 @@ func (r *EducationClassTeachersCollectionRequest) Paging(ctx context.Context, me
}
var values []EducationUser
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 {
@@ -828,6 +835,7 @@ func (r *EducationClassTeachersCollectionRequest) Paging(ctx context.Context, me
value []EducationUser
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -915,9 +923,9 @@ func (r *EducationRootClassesCollectionRequest) Paging(ctx context.Context, meth
}
var values []EducationClass
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 {
@@ -930,6 +938,7 @@ func (r *EducationRootClassesCollectionRequest) Paging(ctx context.Context, meth
value []EducationClass
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1024,9 +1033,9 @@ func (r *EducationRootSchoolsCollectionRequest) Paging(ctx context.Context, meth
}
var values []EducationSchool
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 {
@@ -1039,6 +1048,7 @@ func (r *EducationRootSchoolsCollectionRequest) Paging(ctx context.Context, meth
value []EducationSchool
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1126,9 +1136,9 @@ func (r *EducationRootSynchronizationProfilesCollectionRequest) Paging(ctx conte
}
var values []EducationSynchronizationProfile
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 {
@@ -1141,6 +1151,7 @@ func (r *EducationRootSynchronizationProfilesCollectionRequest) Paging(ctx conte
value []EducationSynchronizationProfile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1228,9 +1239,9 @@ func (r *EducationRootUsersCollectionRequest) Paging(ctx context.Context, method
}
var values []EducationUser
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 {
@@ -1243,6 +1254,7 @@ func (r *EducationRootUsersCollectionRequest) Paging(ctx context.Context, method
value []EducationUser
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1337,9 +1349,9 @@ func (r *EducationSchoolClassesCollectionRequest) Paging(ctx context.Context, me
}
var values []EducationClass
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 {
@@ -1352,6 +1364,7 @@ func (r *EducationSchoolClassesCollectionRequest) Paging(ctx context.Context, me
value []EducationClass
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1439,9 +1452,9 @@ func (r *EducationSchoolUsersCollectionRequest) Paging(ctx context.Context, meth
}
var values []EducationUser
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 {
@@ -1454,6 +1467,7 @@ func (r *EducationSchoolUsersCollectionRequest) Paging(ctx context.Context, meth
value []EducationUser
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1541,9 +1555,9 @@ func (r *EducationSubmissionOutcomesCollectionRequest) Paging(ctx context.Contex
}
var values []EducationOutcome
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 {
@@ -1556,6 +1570,7 @@ func (r *EducationSubmissionOutcomesCollectionRequest) Paging(ctx context.Contex
value []EducationOutcome
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1643,9 +1658,9 @@ func (r *EducationSubmissionResourcesCollectionRequest) Paging(ctx context.Conte
}
var values []EducationSubmissionResource
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 {
@@ -1658,6 +1673,7 @@ func (r *EducationSubmissionResourcesCollectionRequest) Paging(ctx context.Conte
value []EducationSubmissionResource
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1745,9 +1761,9 @@ func (r *EducationSubmissionSubmittedResourcesCollectionRequest) Paging(ctx cont
}
var values []EducationSubmissionResource
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 {
@@ -1760,6 +1776,7 @@ func (r *EducationSubmissionSubmittedResourcesCollectionRequest) Paging(ctx cont
value []EducationSubmissionResource
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1847,9 +1864,9 @@ func (r *EducationSynchronizationProfileErrorsCollectionRequest) Paging(ctx cont
}
var values []EducationSynchronizationError
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 {
@@ -1862,6 +1879,7 @@ func (r *EducationSynchronizationProfileErrorsCollectionRequest) Paging(ctx cont
value []EducationSynchronizationError
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1956,9 +1974,9 @@ func (r *EducationUserAssignmentsCollectionRequest) Paging(ctx context.Context,
}
var values []EducationAssignment
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 {
@@ -1971,6 +1989,7 @@ func (r *EducationUserAssignmentsCollectionRequest) Paging(ctx context.Context,
value []EducationAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2058,9 +2077,9 @@ func (r *EducationUserClassesCollectionRequest) Paging(ctx context.Context, meth
}
var values []EducationClass
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 {
@@ -2073,6 +2092,7 @@ func (r *EducationUserClassesCollectionRequest) Paging(ctx context.Context, meth
value []EducationClass
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2160,9 +2180,9 @@ func (r *EducationUserRubricsCollectionRequest) Paging(ctx context.Context, meth
}
var values []EducationRubric
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 {
@@ -2175,6 +2195,7 @@ func (r *EducationUserRubricsCollectionRequest) Paging(ctx context.Context, meth
value []EducationRubric
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2262,9 +2283,9 @@ func (r *EducationUserSchoolsCollectionRequest) Paging(ctx context.Context, meth
}
var values []EducationSchool
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 {
@@ -2277,6 +2298,7 @@ func (r *EducationUserSchoolsCollectionRequest) Paging(ctx context.Context, meth
value []EducationSchool
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2364,9 +2386,9 @@ func (r *EducationUserTaughtClassesCollectionRequest) Paging(ctx context.Context
}
var values []EducationClass
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 {
@@ -2379,6 +2401,7 @@ func (r *EducationUserTaughtClassesCollectionRequest) Paging(ctx context.Context
value []EducationClass
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -59,9 +59,9 @@ func (r *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest) Paging(ctx c
}
var values []EmbeddedSIMActivationCodePoolAssignment
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 {
@@ -74,6 +74,7 @@ func (r *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest) Paging(ctx c
value []EmbeddedSIMActivationCodePoolAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -161,9 +162,9 @@ func (r *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest) Paging(ctx
}
var values []EmbeddedSIMDeviceState
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 {
@@ -176,6 +177,7 @@ func (r *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest) Paging(ctx
value []EmbeddedSIMDeviceState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *EmployeePictureCollectionRequest) Paging(ctx context.Context, method, p
}
var values []Picture
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 {
@@ -68,6 +68,7 @@ func (r *EmployeePictureCollectionRequest) Paging(ctx context.Context, method, p
value []Picture
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest)
}
var values []AccessPackageAssignmentPolicy
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 {
@@ -68,6 +68,7 @@ func (r *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest)
value []AccessPackageAssignmentPolicy
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -155,9 +156,9 @@ func (r *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest)
}
var values []AccessPackageAssignmentRequestObject
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 {
@@ -170,6 +171,7 @@ func (r *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest)
value []AccessPackageAssignmentRequestObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -257,9 +259,9 @@ func (r *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequ
}
var values []AccessPackageAssignmentResourceRole
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 {
@@ -272,6 +274,7 @@ func (r *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequ
value []AccessPackageAssignmentResourceRole
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -359,9 +362,9 @@ func (r *EntitlementManagementAccessPackageAssignmentsCollectionRequest) Paging(
}
var values []AccessPackageAssignment
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 {
@@ -374,6 +377,7 @@ func (r *EntitlementManagementAccessPackageAssignmentsCollectionRequest) Paging(
value []AccessPackageAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -461,9 +465,9 @@ func (r *EntitlementManagementAccessPackageCatalogsCollectionRequest) Paging(ctx
}
var values []AccessPackageCatalog
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 {
@@ -476,6 +480,7 @@ func (r *EntitlementManagementAccessPackageCatalogsCollectionRequest) Paging(ctx
value []AccessPackageCatalog
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -563,9 +568,9 @@ func (r *EntitlementManagementAccessPackageResourceRequestsCollectionRequest) Pa
}
var values []AccessPackageResourceRequestObject
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 {
@@ -578,6 +583,7 @@ func (r *EntitlementManagementAccessPackageResourceRequestsCollectionRequest) Pa
value []AccessPackageResourceRequestObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -665,9 +671,9 @@ func (r *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest)
}
var values []AccessPackageResourceRoleScope
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 {
@@ -680,6 +686,7 @@ func (r *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest)
value []AccessPackageResourceRoleScope
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -767,9 +774,9 @@ func (r *EntitlementManagementAccessPackageResourcesCollectionRequest) Paging(ct
}
var values []AccessPackageResource
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 {
@@ -782,6 +789,7 @@ func (r *EntitlementManagementAccessPackageResourcesCollectionRequest) Paging(ct
value []AccessPackageResource
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -869,9 +877,9 @@ func (r *EntitlementManagementAccessPackagesCollectionRequest) Paging(ctx contex
}
var values []AccessPackage
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 {
@@ -884,6 +892,7 @@ func (r *EntitlementManagementAccessPackagesCollectionRequest) Paging(ctx contex
value []AccessPackage
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -133,9 +133,9 @@ func (r *EventAttachmentsCollectionRequest) Paging(ctx context.Context, method,
}
var values []Attachment
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 {
@@ -148,6 +148,7 @@ func (r *EventAttachmentsCollectionRequest) Paging(ctx context.Context, method,
value []Attachment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -242,9 +243,9 @@ func (r *EventExtensionsCollectionRequest) Paging(ctx context.Context, method, p
}
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 {
@@ -257,6 +258,7 @@ func (r *EventExtensionsCollectionRequest) Paging(ctx context.Context, method, p
value []Extension
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -344,9 +346,9 @@ func (r *EventInstancesCollectionRequest) Paging(ctx context.Context, method, pa
}
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 {
@@ -359,6 +361,7 @@ func (r *EventInstancesCollectionRequest) Paging(ctx context.Context, method, pa
value []Event
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -446,9 +449,9 @@ func (r *EventMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.
}
var values []MultiValueLegacyExtendedProperty
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 {
@@ -461,6 +464,7 @@ func (r *EventMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.
value []MultiValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -548,9 +552,9 @@ func (r *EventSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context
}
var values []SingleValueLegacyExtendedProperty
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 {
@@ -563,6 +567,7 @@ func (r *EventSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context
value []SingleValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -75,9 +75,9 @@ func (r *ExactMatchDataStoreSessionsCollectionRequest) Paging(ctx context.Contex
}
var values []ExactMatchSession
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 {
@@ -90,6 +90,7 @@ func (r *ExactMatchDataStoreSessionsCollectionRequest) Paging(ctx context.Contex
value []ExactMatchSession
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -177,9 +178,9 @@ func (r *ExactMatchLookupJobMatchingRowsCollectionRequest) Paging(ctx context.Co
}
var values []LookupResultRow
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 {
@@ -192,6 +193,7 @@ func (r *ExactMatchLookupJobMatchingRowsCollectionRequest) Paging(ctx context.Co
value []LookupResultRow
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *ExternalConnectionsCollectionRequest) Paging(ctx context.Context, metho
}
var values []ExternalConnection
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 {
@@ -68,6 +68,7 @@ func (r *ExternalConnectionsCollectionRequest) Paging(ctx context.Context, metho
value []ExternalConnection
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -155,9 +156,9 @@ func (r *ExternalConnectionItemsCollectionRequest) Paging(ctx context.Context, m
}
var values []ExternalItem
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 {
@@ -170,6 +171,7 @@ func (r *ExternalConnectionItemsCollectionRequest) Paging(ctx context.Context, m
value []ExternalItem
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -257,9 +259,9 @@ func (r *ExternalConnectionOperationsCollectionRequest) Paging(ctx context.Conte
}
var values []ConnectionOperation
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 {
@@ -272,6 +274,7 @@ func (r *ExternalConnectionOperationsCollectionRequest) Paging(ctx context.Conte
value []ConnectionOperation
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *FeatureRolloutPolicyAppliesToCollectionRequest) Paging(ctx context.Cont
}
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 {
@@ -68,6 +68,7 @@ func (r *FeatureRolloutPolicyAppliesToCollectionRequest) Paging(ctx context.Cont
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *FinancialsCompaniesCollectionRequest) Paging(ctx context.Context, metho
}
var values []Company
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 {
@@ -68,6 +68,7 @@ func (r *FinancialsCompaniesCollectionRequest) Paging(ctx context.Context, metho
value []Company
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -82,9 +82,9 @@ func (r *GovernanceResourceRoleAssignmentRequestsCollectionRequest) Paging(ctx c
}
var values []GovernanceRoleAssignmentRequestObject
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 {
@@ -97,6 +97,7 @@ func (r *GovernanceResourceRoleAssignmentRequestsCollectionRequest) Paging(ctx c
value []GovernanceRoleAssignmentRequestObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -184,9 +185,9 @@ func (r *GovernanceResourceRoleAssignmentsCollectionRequest) Paging(ctx context.
}
var values []GovernanceRoleAssignment
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 {
@@ -199,6 +200,7 @@ func (r *GovernanceResourceRoleAssignmentsCollectionRequest) Paging(ctx context.
value []GovernanceRoleAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -286,9 +288,9 @@ func (r *GovernanceResourceRoleDefinitionsCollectionRequest) Paging(ctx context.
}
var values []GovernanceRoleDefinition
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 {
@@ -301,6 +303,7 @@ func (r *GovernanceResourceRoleDefinitionsCollectionRequest) Paging(ctx context.
value []GovernanceRoleDefinition
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -388,9 +391,9 @@ func (r *GovernanceResourceRoleSettingsCollectionRequest) Paging(ctx context.Con
}
var values []GovernanceRoleSetting
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 {
@@ -403,6 +406,7 @@ func (r *GovernanceResourceRoleSettingsCollectionRequest) Paging(ctx context.Con
value []GovernanceRoleSetting
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -153,9 +153,9 @@ func (r *GroupAcceptedSendersCollectionRequest) Paging(ctx context.Context, meth
}
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 {
@@ -168,6 +168,7 @@ func (r *GroupAcceptedSendersCollectionRequest) Paging(ctx context.Context, meth
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -255,9 +256,9 @@ func (r *GroupAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, m
}
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 {
@@ -270,6 +271,7 @@ func (r *GroupAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, m
value []AppRoleAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -364,9 +366,9 @@ func (r *GroupCalendarViewCollectionRequest) 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 {
@@ -379,6 +381,7 @@ func (r *GroupCalendarViewCollectionRequest) Paging(ctx context.Context, method,
value []Event
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -466,9 +469,9 @@ func (r *GroupConversationsCollectionRequest) Paging(ctx context.Context, method
}
var values []Conversation
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 {
@@ -481,6 +484,7 @@ func (r *GroupConversationsCollectionRequest) Paging(ctx context.Context, method
value []Conversation
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -582,9 +586,9 @@ func (r *GroupDrivesCollectionRequest) Paging(ctx context.Context, method, path
}
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 {
@@ -597,6 +601,7 @@ func (r *GroupDrivesCollectionRequest) Paging(ctx context.Context, method, path
value []Drive
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -684,9 +689,9 @@ func (r *GroupEndpointsCollectionRequest) Paging(ctx context.Context, method, pa
}
var values []Endpoint
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 {
@@ -699,6 +704,7 @@ func (r *GroupEndpointsCollectionRequest) Paging(ctx context.Context, method, pa
value []Endpoint
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -786,9 +792,9 @@ func (r *GroupEventsCollectionRequest) Paging(ctx context.Context, method, path
}
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 {
@@ -801,6 +807,7 @@ func (r *GroupEventsCollectionRequest) Paging(ctx context.Context, method, path
value []Event
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -888,9 +895,9 @@ func (r *GroupExtensionsCollectionRequest) Paging(ctx context.Context, method, p
}
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 {
@@ -903,6 +910,7 @@ func (r *GroupExtensionsCollectionRequest) Paging(ctx context.Context, method, p
value []Extension
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -990,9 +998,9 @@ func (r *GroupGroupLifecyclePoliciesCollectionRequest) Paging(ctx context.Contex
}
var values []GroupLifecyclePolicy
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 {
@@ -1005,6 +1013,7 @@ func (r *GroupGroupLifecyclePoliciesCollectionRequest) Paging(ctx context.Contex
value []GroupLifecyclePolicy
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1092,9 +1101,9 @@ func (r *GroupMemberOfCollectionRequest) Paging(ctx context.Context, method, pat
}
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 {
@@ -1107,6 +1116,7 @@ func (r *GroupMemberOfCollectionRequest) Paging(ctx context.Context, method, pat
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1194,9 +1204,9 @@ func (r *GroupMembersCollectionRequest) 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 {
@@ -1209,6 +1219,7 @@ func (r *GroupMembersCollectionRequest) Paging(ctx context.Context, method, path
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1296,9 +1307,9 @@ func (r *GroupMembersWithLicenseErrorsCollectionRequest) Paging(ctx context.Cont
}
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 {
@@ -1311,6 +1322,7 @@ func (r *GroupMembersWithLicenseErrorsCollectionRequest) Paging(ctx context.Cont
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1405,9 +1417,9 @@ func (r *GroupOwnersCollectionRequest) 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 {
@@ -1420,6 +1432,7 @@ func (r *GroupOwnersCollectionRequest) Paging(ctx context.Context, method, path
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1507,9 +1520,9 @@ func (r *GroupPermissionGrantsCollectionRequest) Paging(ctx context.Context, met
}
var values []ResourceSpecificPermissionGrant
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 {
@@ -1522,6 +1535,7 @@ func (r *GroupPermissionGrantsCollectionRequest) Paging(ctx context.Context, met
value []ResourceSpecificPermissionGrant
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1616,9 +1630,9 @@ func (r *GroupPhotosCollectionRequest) Paging(ctx context.Context, method, path
}
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 {
@@ -1631,6 +1645,7 @@ func (r *GroupPhotosCollectionRequest) Paging(ctx context.Context, method, path
value []ProfilePhoto
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1725,9 +1740,9 @@ func (r *GroupRejectedSendersCollectionRequest) Paging(ctx context.Context, meth
}
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 {
@@ -1740,6 +1755,7 @@ func (r *GroupRejectedSendersCollectionRequest) Paging(ctx context.Context, meth
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1827,9 +1843,9 @@ func (r *GroupSettingsCollectionRequest) Paging(ctx context.Context, method, pat
}
var values []DirectorySetting
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 {
@@ -1842,6 +1858,7 @@ func (r *GroupSettingsCollectionRequest) Paging(ctx context.Context, method, pat
value []DirectorySetting
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1929,9 +1946,9 @@ func (r *GroupSitesCollectionRequest) Paging(ctx context.Context, method, path s
}
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 {
@@ -1944,6 +1961,7 @@ func (r *GroupSitesCollectionRequest) Paging(ctx context.Context, method, path s
value []Site
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2038,9 +2056,9 @@ func (r *GroupThreadsCollectionRequest) Paging(ctx context.Context, method, path
}
var values []ConversationThread
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 {
@@ -2053,6 +2071,7 @@ func (r *GroupThreadsCollectionRequest) Paging(ctx context.Context, method, path
value []ConversationThread
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2140,9 +2159,9 @@ func (r *GroupTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, m
}
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 {
@@ -2155,6 +2174,7 @@ func (r *GroupTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, m
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2242,9 +2262,9 @@ func (r *GroupTransitiveMembersCollectionRequest) 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 {
@@ -2257,6 +2277,7 @@ func (r *GroupTransitiveMembersCollectionRequest) Paging(ctx context.Context, me
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2344,9 +2365,9 @@ func (r *GroupPolicyConfigurationAssignmentsCollectionRequest) Paging(ctx contex
}
var values []GroupPolicyConfigurationAssignment
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 {
@@ -2359,6 +2380,7 @@ func (r *GroupPolicyConfigurationAssignmentsCollectionRequest) Paging(ctx contex
value []GroupPolicyConfigurationAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2446,9 +2468,9 @@ func (r *GroupPolicyConfigurationDefinitionValuesCollectionRequest) Paging(ctx c
}
var values []GroupPolicyDefinitionValue
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 {
@@ -2461,6 +2483,7 @@ func (r *GroupPolicyConfigurationDefinitionValuesCollectionRequest) Paging(ctx c
value []GroupPolicyDefinitionValue
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2555,9 +2578,9 @@ func (r *GroupPolicyDefinitionPresentationsCollectionRequest) Paging(ctx context
}
var values []GroupPolicyPresentation
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 {
@@ -2570,6 +2593,7 @@ func (r *GroupPolicyDefinitionPresentationsCollectionRequest) Paging(ctx context
value []GroupPolicyPresentation
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2657,9 +2681,9 @@ func (r *GroupPolicyDefinitionFileDefinitionsCollectionRequest) Paging(ctx conte
}
var values []GroupPolicyDefinition
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 {
@@ -2672,6 +2696,7 @@ func (r *GroupPolicyDefinitionFileDefinitionsCollectionRequest) Paging(ctx conte
value []GroupPolicyDefinition
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2766,9 +2791,9 @@ func (r *GroupPolicyDefinitionValuePresentationValuesCollectionRequest) Paging(c
}
var values []GroupPolicyPresentationValue
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 {
@@ -2781,6 +2806,7 @@ func (r *GroupPolicyDefinitionValuePresentationValuesCollectionRequest) Paging(c
value []GroupPolicyPresentationValue
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -2868,9 +2894,9 @@ func (r *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest)
}
var values []GroupPolicySettingMapping
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 {
@@ -2883,6 +2909,7 @@ func (r *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest)
value []GroupPolicySettingMapping
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -158,9 +158,9 @@ func (r *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollec
}
var values []IOSTrustedRootCertificate
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 {
@@ -173,6 +173,7 @@ func (r *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollec
value []IOSTrustedRootCertificate
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -260,9 +261,9 @@ func (r *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectio
}
var values []ManagedDeviceCertificateState
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 {
@@ -275,6 +276,7 @@ func (r *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectio
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -362,9 +364,9 @@ func (r *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest) Paging(
}
var values []IOSLobAppProvisioningConfigurationAssignment
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 {
@@ -377,6 +379,7 @@ func (r *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest) Paging(
value []IOSLobAppProvisioningConfigurationAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -464,9 +467,9 @@ func (r *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest) Pagi
}
var values []ManagedDeviceMobileAppConfigurationDeviceStatus
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 {
@@ -479,6 +482,7 @@ func (r *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest) Pagi
value []ManagedDeviceMobileAppConfigurationDeviceStatus
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -566,9 +570,9 @@ func (r *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest) Pa
}
var values []MobileAppProvisioningConfigGroupAssignment
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 {
@@ -581,6 +585,7 @@ func (r *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest) Pa
value []MobileAppProvisioningConfigGroupAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -668,9 +673,9 @@ func (r *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest) Paging
}
var values []ManagedDeviceMobileAppConfigurationUserStatus
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 {
@@ -683,6 +688,7 @@ func (r *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest) Paging
value []ManagedDeviceMobileAppConfigurationUserStatus
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -770,9 +776,9 @@ func (r *IOSManagedAppProtectionAppsCollectionRequest) Paging(ctx context.Contex
}
var values []ManagedMobileApp
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 {
@@ -785,6 +791,7 @@ func (r *IOSManagedAppProtectionAppsCollectionRequest) Paging(ctx context.Contex
value []ManagedMobileApp
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -879,9 +886,9 @@ func (r *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionReques
}
var values []ManagedDeviceCertificateState
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 {
@@ -894,6 +901,7 @@ func (r *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionReques
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -981,9 +989,9 @@ func (r *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionReques
}
var values []ManagedDeviceCertificateState
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 {
@@ -996,6 +1004,7 @@ func (r *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionReques
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1104,9 +1113,9 @@ func (r *IOSVPPAppAssignedLicensesCollectionRequest) Paging(ctx context.Context,
}
var values []IOSVPPAppAssignedLicense
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 {
@@ -1119,6 +1128,7 @@ func (r *IOSVPPAppAssignedLicensesCollectionRequest) Paging(ctx context.Context,
value []IOSVPPAppAssignedLicense
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *IdentityContainerUserFlowsCollectionRequest) Paging(ctx context.Context
}
var values []IdentityUserFlow
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 {
@@ -68,6 +68,7 @@ func (r *IdentityContainerUserFlowsCollectionRequest) Paging(ctx context.Context
value []IdentityUserFlow
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -81,9 +81,9 @@ func (r *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionR
}
var values []ImportedWindowsAutopilotDeviceIdentity
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 {
@@ -96,6 +96,7 @@ func (r *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionR
value []ImportedWindowsAutopilotDeviceIdentity
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *InferenceClassificationOverridesCollectionRequest) Paging(ctx context.C
}
var values []InferenceClassificationOverride
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 {
@@ -68,6 +68,7 @@ func (r *InferenceClassificationOverridesCollectionRequest) Paging(ctx context.C
value []InferenceClassificationOverride
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -93,9 +93,9 @@ func (r *InformationProtectionDataLossPreventionPoliciesCollectionRequest) Pagin
}
var values []DataLossPreventionPolicy
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 {
@@ -108,6 +108,7 @@ func (r *InformationProtectionDataLossPreventionPoliciesCollectionRequest) Pagin
value []DataLossPreventionPolicy
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -202,9 +203,9 @@ func (r *InformationProtectionSensitivityLabelsCollectionRequest) Paging(ctx con
}
var values []SensitivityLabel
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 {
@@ -217,6 +218,7 @@ func (r *InformationProtectionSensitivityLabelsCollectionRequest) Paging(ctx con
value []SensitivityLabel
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -311,9 +313,9 @@ func (r *InformationProtectionThreatAssessmentRequestsCollectionRequest) Paging(
}
var values []ThreatAssessmentRequestObject
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 {
@@ -326,6 +328,7 @@ func (r *InformationProtectionThreatAssessmentRequestsCollectionRequest) Paging(
value []ThreatAssessmentRequestObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -413,9 +416,9 @@ func (r *InformationProtectionPolicyLabelsCollectionRequest) Paging(ctx context.
}
var values []InformationProtectionLabel
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 {
@@ -428,6 +431,7 @@ func (r *InformationProtectionPolicyLabelsCollectionRequest) Paging(ctx context.
value []InformationProtectionLabel
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -59,9 +59,9 @@ func (r *IntuneBrandingProfileAssignmentsCollectionRequest) Paging(ctx context.C
}
var values []IntuneBrandingProfileAssignment
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 {
@@ -74,6 +74,7 @@ func (r *IntuneBrandingProfileAssignmentsCollectionRequest) Paging(ctx context.C
value []IntuneBrandingProfileAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -60,9 +60,9 @@ func (r *ItemPictureCollectionRequest) Paging(ctx context.Context, method, path
}
var values []Picture
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 {
@@ -75,6 +75,7 @@ func (r *ItemPictureCollectionRequest) Paging(ctx context.Context, method, path
value []Picture
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -183,9 +184,9 @@ func (r *ItemActivityStatActivitiesCollectionRequest) Paging(ctx context.Context
}
var values []ItemActivity
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 {
@@ -198,6 +199,7 @@ func (r *ItemActivityStatActivitiesCollectionRequest) Paging(ctx context.Context
value []ItemActivity
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -292,9 +294,9 @@ func (r *ItemAnalyticsItemActivityStatsCollectionRequest) Paging(ctx context.Con
}
var values []ItemActivityStat
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 {
@@ -307,6 +309,7 @@ func (r *ItemAnalyticsItemActivityStatsCollectionRequest) Paging(ctx context.Con
value []ItemActivityStat
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -64,9 +64,9 @@ func (r *JournalJournalLinesCollectionRequest) Paging(ctx context.Context, metho
}
var values []JournalLine
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 {
@@ -79,6 +79,7 @@ func (r *JournalJournalLinesCollectionRequest) Paging(ctx context.Context, metho
value []JournalLine
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -57,9 +57,9 @@ func (r *ListActivitiesCollectionRequest) Paging(ctx context.Context, method, pa
}
var values []ItemActivityOLD
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 {
@@ -72,6 +72,7 @@ func (r *ListActivitiesCollectionRequest) Paging(ctx context.Context, method, pa
value []ItemActivityOLD
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -159,9 +160,9 @@ func (r *ListColumnsCollectionRequest) Paging(ctx context.Context, method, path
}
var values []ColumnDefinition
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 {
@@ -174,6 +175,7 @@ func (r *ListColumnsCollectionRequest) Paging(ctx context.Context, method, path
value []ColumnDefinition
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -261,9 +263,9 @@ func (r *ListContentTypesCollectionRequest) Paging(ctx context.Context, method,
}
var values []ContentType
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 {
@@ -276,6 +278,7 @@ func (r *ListContentTypesCollectionRequest) Paging(ctx context.Context, method,
value []ContentType
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -370,9 +373,9 @@ func (r *ListItemsCollectionRequest) Paging(ctx context.Context, method, path st
}
var values []ListItem
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 {
@@ -385,6 +388,7 @@ func (r *ListItemsCollectionRequest) Paging(ctx context.Context, method, path st
value []ListItem
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -472,9 +476,9 @@ func (r *ListSubscriptionsCollectionRequest) Paging(ctx context.Context, method,
}
var values []Subscription
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 {
@@ -487,6 +491,7 @@ func (r *ListSubscriptionsCollectionRequest) Paging(ctx context.Context, method,
value []Subscription
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -574,9 +579,9 @@ func (r *ListItemActivitiesCollectionRequest) Paging(ctx context.Context, method
}
var values []ItemActivityOLD
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 {
@@ -589,6 +594,7 @@ func (r *ListItemActivitiesCollectionRequest) Paging(ctx context.Context, method
value []ItemActivityOLD
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -697,9 +703,9 @@ func (r *ListItemVersionsCollectionRequest) Paging(ctx context.Context, method,
}
var values []ListItemVersion
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 {
@@ -712,6 +718,7 @@ func (r *ListItemVersionsCollectionRequest) Paging(ctx context.Context, method,
value []ListItemVersion
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -80,9 +80,9 @@ func (r *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollect
}
var values []ManagedDeviceCertificateState
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 {
@@ -95,6 +95,7 @@ func (r *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollect
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -182,9 +183,9 @@ func (r *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequ
}
var values []ManagedDeviceCertificateState
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 {
@@ -197,6 +198,7 @@ func (r *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequ
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -284,9 +286,9 @@ func (r *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequ
}
var values []ManagedDeviceCertificateState
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 {
@@ -299,6 +301,7 @@ func (r *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequ
value []ManagedDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -414,9 +417,9 @@ func (r *MacOsVPPAppAssignedLicensesCollectionRequest) Paging(ctx context.Contex
}
var values []MacOsVPPAppAssignedLicense
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 {
@@ -429,6 +432,7 @@ func (r *MacOsVPPAppAssignedLicensesCollectionRequest) Paging(ctx context.Contex
value []MacOsVPPAppAssignedLicense
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -65,9 +65,9 @@ func (r *MailFolderChildFoldersCollectionRequest) Paging(ctx context.Context, me
}
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 {
@@ -80,6 +80,7 @@ func (r *MailFolderChildFoldersCollectionRequest) Paging(ctx context.Context, me
value []MailFolder
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -167,9 +168,9 @@ func (r *MailFolderMessageRulesCollectionRequest) Paging(ctx context.Context, me
}
var values []MessageRule
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 {
@@ -182,6 +183,7 @@ func (r *MailFolderMessageRulesCollectionRequest) Paging(ctx context.Context, me
value []MessageRule
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -269,9 +271,9 @@ func (r *MailFolderMessagesCollectionRequest) Paging(ctx context.Context, method
}
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 {
@@ -284,6 +286,7 @@ func (r *MailFolderMessagesCollectionRequest) Paging(ctx context.Context, method
value []Message
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -371,9 +374,9 @@ func (r *MailFolderMultiValueExtendedPropertiesCollectionRequest) Paging(ctx con
}
var values []MultiValueLegacyExtendedProperty
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 {
@@ -386,6 +389,7 @@ func (r *MailFolderMultiValueExtendedPropertiesCollectionRequest) Paging(ctx con
value []MultiValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -473,9 +477,9 @@ func (r *MailFolderSingleValueExtendedPropertiesCollectionRequest) Paging(ctx co
}
var values []SingleValueLegacyExtendedProperty
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 {
@@ -488,6 +492,7 @@ func (r *MailFolderSingleValueExtendedPropertiesCollectionRequest) Paging(ctx co
value []SingleValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -575,9 +580,9 @@ func (r *MailFolderUserConfigurationsCollectionRequest) Paging(ctx context.Conte
}
var values []UserConfiguration
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 {
@@ -590,6 +595,7 @@ func (r *MailFolderUserConfigurationsCollectionRequest) Paging(ctx context.Conte
value []UserConfiguration
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -235,9 +235,9 @@ func (r *ManagedAppRegistrationAppliedPoliciesCollectionRequest) Paging(ctx cont
}
var values []ManagedAppPolicy
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 {
@@ -250,6 +250,7 @@ func (r *ManagedAppRegistrationAppliedPoliciesCollectionRequest) Paging(ctx cont
value []ManagedAppPolicy
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -337,9 +338,9 @@ func (r *ManagedAppRegistrationIntendedPoliciesCollectionRequest) Paging(ctx con
}
var values []ManagedAppPolicy
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 {
@@ -352,6 +353,7 @@ func (r *ManagedAppRegistrationIntendedPoliciesCollectionRequest) Paging(ctx con
value []ManagedAppPolicy
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -439,9 +441,9 @@ func (r *ManagedAppRegistrationOperationsCollectionRequest) Paging(ctx context.C
}
var values []ManagedAppOperation
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 {
@@ -454,6 +456,7 @@ func (r *ManagedAppRegistrationOperationsCollectionRequest) Paging(ctx context.C
value []ManagedAppOperation
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -541,9 +544,9 @@ func (r *ManagedDeviceDetectedAppsCollectionRequest) Paging(ctx context.Context,
}
var values []DetectedApp
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 {
@@ -556,6 +559,7 @@ func (r *ManagedDeviceDetectedAppsCollectionRequest) Paging(ctx context.Context,
value []DetectedApp
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -650,9 +654,9 @@ func (r *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest) Paging(ctx
}
var values []DeviceCompliancePolicyState
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 {
@@ -665,6 +669,7 @@ func (r *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest) Paging(ctx
value []DeviceCompliancePolicyState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -752,9 +757,9 @@ func (r *ManagedDeviceDeviceConfigurationStatesCollectionRequest) Paging(ctx con
}
var values []DeviceConfigurationState
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 {
@@ -767,6 +772,7 @@ func (r *ManagedDeviceDeviceConfigurationStatesCollectionRequest) Paging(ctx con
value []DeviceConfigurationState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -854,9 +860,9 @@ func (r *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest
}
var values []ManagedDeviceMobileAppConfigurationState
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 {
@@ -869,6 +875,7 @@ func (r *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest
value []ManagedDeviceMobileAppConfigurationState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -956,9 +963,9 @@ func (r *ManagedDeviceSecurityBaselineStatesCollectionRequest) Paging(ctx contex
}
var values []SecurityBaselineState
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 {
@@ -971,6 +978,7 @@ func (r *ManagedDeviceSecurityBaselineStatesCollectionRequest) Paging(ctx contex
value []SecurityBaselineState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1058,9 +1066,9 @@ func (r *ManagedDeviceUsersCollectionRequest) Paging(ctx context.Context, method
}
var values []User
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 {
@@ -1073,6 +1081,7 @@ func (r *ManagedDeviceUsersCollectionRequest) Paging(ctx context.Context, method
value []User
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1167,9 +1176,9 @@ func (r *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest) Paging
}
var values []ManagedDeviceMobileAppConfigurationAssignment
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 {
@@ -1182,6 +1191,7 @@ func (r *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest) Paging
value []ManagedDeviceMobileAppConfigurationAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1276,9 +1286,9 @@ func (r *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest) Pag
}
var values []ManagedDeviceMobileAppConfigurationDeviceStatus
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 {
@@ -1291,6 +1301,7 @@ func (r *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest) Pag
value []ManagedDeviceMobileAppConfigurationDeviceStatus
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1385,9 +1396,9 @@ func (r *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest) Pagin
}
var values []ManagedDeviceMobileAppConfigurationUserStatus
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 {
@@ -1400,6 +1411,7 @@ func (r *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest) Pagin
value []ManagedDeviceMobileAppConfigurationUserStatus
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1487,9 +1499,9 @@ func (r *ManagedEBookAssignmentsCollectionRequest) Paging(ctx context.Context, m
}
var values []ManagedEBookAssignment
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 {
@@ -1502,6 +1514,7 @@ func (r *ManagedEBookAssignmentsCollectionRequest) Paging(ctx context.Context, m
value []ManagedEBookAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1589,9 +1602,9 @@ func (r *ManagedEBookCategoriesCollectionRequest) Paging(ctx context.Context, me
}
var values []ManagedEBookCategory
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 {
@@ -1604,6 +1617,7 @@ func (r *ManagedEBookCategoriesCollectionRequest) Paging(ctx context.Context, me
value []ManagedEBookCategory
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1691,9 +1705,9 @@ func (r *ManagedEBookDeviceStatesCollectionRequest) Paging(ctx context.Context,
}
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 {
@@ -1706,6 +1720,7 @@ func (r *ManagedEBookDeviceStatesCollectionRequest) Paging(ctx context.Context,
value []DeviceInstallState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1800,9 +1815,9 @@ func (r *ManagedEBookUserStateSummaryCollectionRequest) Paging(ctx context.Conte
}
var values []UserInstallStateSummary
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 {
@@ -1815,6 +1830,7 @@ func (r *ManagedEBookUserStateSummaryCollectionRequest) Paging(ctx context.Conte
value []UserInstallStateSummary
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1902,9 +1918,9 @@ func (r *ManagedMobileLobAppContentVersionsCollectionRequest) Paging(ctx context
}
var values []MobileAppContent
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 {
@@ -1917,6 +1933,7 @@ func (r *ManagedMobileLobAppContentVersionsCollectionRequest) Paging(ctx context
value []MobileAppContent
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *ManagementConditionManagementConditionStatementsCollectionRequest) Pagi
}
var values []ManagementConditionStatement
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 {
@@ -68,6 +68,7 @@ func (r *ManagementConditionManagementConditionStatementsCollectionRequest) Pagi
value []ManagementConditionStatement
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -155,9 +156,9 @@ func (r *ManagementConditionStatementManagementConditionsCollectionRequest) Pagi
}
var values []ManagementCondition
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 {
@@ -170,6 +171,7 @@ func (r *ManagementConditionStatementManagementConditionsCollectionRequest) Pagi
value []ManagementCondition
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -125,9 +125,9 @@ func (r *MessageAttachmentsCollectionRequest) Paging(ctx context.Context, method
}
var values []Attachment
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 {
@@ -140,6 +140,7 @@ func (r *MessageAttachmentsCollectionRequest) Paging(ctx context.Context, method
value []Attachment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -227,9 +228,9 @@ func (r *MessageExtensionsCollectionRequest) Paging(ctx context.Context, method,
}
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 {
@@ -242,6 +243,7 @@ func (r *MessageExtensionsCollectionRequest) Paging(ctx context.Context, method,
value []Extension
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -329,9 +331,9 @@ func (r *MessageMentionsCollectionRequest) Paging(ctx context.Context, method, p
}
var values []Mention
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 {
@@ -344,6 +346,7 @@ func (r *MessageMentionsCollectionRequest) Paging(ctx context.Context, method, p
value []Mention
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -431,9 +434,9 @@ func (r *MessageMultiValueExtendedPropertiesCollectionRequest) Paging(ctx contex
}
var values []MultiValueLegacyExtendedProperty
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 {
@@ -446,6 +449,7 @@ func (r *MessageMultiValueExtendedPropertiesCollectionRequest) Paging(ctx contex
value []MultiValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -533,9 +537,9 @@ func (r *MessageSingleValueExtendedPropertiesCollectionRequest) Paging(ctx conte
}
var values []SingleValueLegacyExtendedProperty
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 {
@@ -548,6 +552,7 @@ func (r *MessageSingleValueExtendedPropertiesCollectionRequest) Paging(ctx conte
value []SingleValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *MicrosoftStoreForBusinessAppContainedAppsCollectionRequest) Paging(ctx
}
var values []MobileContainedApp
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 {
@@ -68,6 +68,7 @@ func (r *MicrosoftStoreForBusinessAppContainedAppsCollectionRequest) Paging(ctx
value []MobileContainedApp
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -81,9 +81,9 @@ func (r *MobileAppAssignmentsCollectionRequest) Paging(ctx context.Context, meth
}
var values []MobileAppAssignment
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 {
@@ -96,6 +96,7 @@ func (r *MobileAppAssignmentsCollectionRequest) Paging(ctx context.Context, meth
value []MobileAppAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -183,9 +184,9 @@ func (r *MobileAppCategoriesCollectionRequest) Paging(ctx context.Context, metho
}
var values []MobileAppCategory
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 {
@@ -198,6 +199,7 @@ func (r *MobileAppCategoriesCollectionRequest) Paging(ctx context.Context, metho
value []MobileAppCategory
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -285,9 +287,9 @@ func (r *MobileAppDeviceStatusesCollectionRequest) Paging(ctx context.Context, m
}
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 {
@@ -300,6 +302,7 @@ func (r *MobileAppDeviceStatusesCollectionRequest) Paging(ctx context.Context, m
value []MobileAppInstallStatus
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -394,9 +397,9 @@ func (r *MobileAppRelationshipsCollectionRequest) Paging(ctx context.Context, me
}
var values []MobileAppRelationship
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 {
@@ -409,6 +412,7 @@ func (r *MobileAppRelationshipsCollectionRequest) Paging(ctx context.Context, me
value []MobileAppRelationship
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -496,9 +500,9 @@ func (r *MobileAppUserStatusesCollectionRequest) Paging(ctx context.Context, met
}
var values []UserAppInstallStatus
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 {
@@ -511,6 +515,7 @@ func (r *MobileAppUserStatusesCollectionRequest) Paging(ctx context.Context, met
value []UserAppInstallStatus
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -598,9 +603,9 @@ func (r *MobileAppContentContainedAppsCollectionRequest) Paging(ctx context.Cont
}
var values []MobileContainedApp
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 {
@@ -613,6 +618,7 @@ func (r *MobileAppContentContainedAppsCollectionRequest) Paging(ctx context.Cont
value []MobileContainedApp
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -700,9 +706,9 @@ func (r *MobileAppContentFilesCollectionRequest) Paging(ctx context.Context, met
}
var values []MobileAppContentFile
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 {
@@ -715,6 +721,7 @@ func (r *MobileAppContentFilesCollectionRequest) Paging(ctx context.Context, met
value []MobileAppContentFile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -809,9 +816,9 @@ func (r *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest)
}
var values []AppLogCollectionRequestObject
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 {
@@ -824,6 +831,7 @@ func (r *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest)
value []AppLogCollectionRequestObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -911,9 +919,9 @@ func (r *MobileLobAppContentVersionsCollectionRequest) Paging(ctx context.Contex
}
var values []MobileAppContent
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 {
@@ -926,6 +934,7 @@ func (r *MobileLobAppContentVersionsCollectionRequest) Paging(ctx context.Contex
value []MobileAppContent
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -73,9 +73,9 @@ func (r *NotebookSectionGroupsCollectionRequest) Paging(ctx context.Context, met
}
var values []SectionGroup
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 {
@@ -88,6 +88,7 @@ func (r *NotebookSectionGroupsCollectionRequest) Paging(ctx context.Context, met
value []SectionGroup
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -175,9 +176,9 @@ func (r *NotebookSectionsCollectionRequest) Paging(ctx context.Context, method,
}
var values []OnenoteSection
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 {
@@ -190,6 +191,7 @@ func (r *NotebookSectionsCollectionRequest) Paging(ctx context.Context, method,
value []OnenoteSection
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -57,9 +57,9 @@ func (r *NotificationMessageTemplateLocalizedNotificationMessagesCollectionReque
}
var values []LocalizedNotificationMessage
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 {
@@ -72,6 +72,7 @@ func (r *NotificationMessageTemplateLocalizedNotificationMessagesCollectionReque
value []LocalizedNotificationMessage
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -67,9 +67,9 @@ func (r *OfficeClientConfigurationAssignmentsCollectionRequest) Paging(ctx conte
}
var values []OfficeClientConfigurationAssignment
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 {
@@ -82,6 +82,7 @@ func (r *OfficeClientConfigurationAssignmentsCollectionRequest) Paging(ctx conte
value []OfficeClientConfigurationAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -169,9 +170,9 @@ func (r *OfficeConfigurationClientConfigurationsCollectionRequest) Paging(ctx co
}
var values []OfficeClientConfiguration
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 {
@@ -184,6 +185,7 @@ func (r *OfficeConfigurationClientConfigurationsCollectionRequest) Paging(ctx co
value []OfficeClientConfiguration
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -271,9 +273,9 @@ func (r *OfficeGraphInsightsSharedCollectionRequest) Paging(ctx context.Context,
}
var values []SharedInsight
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 {
@@ -286,6 +288,7 @@ func (r *OfficeGraphInsightsSharedCollectionRequest) Paging(ctx context.Context,
value []SharedInsight
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -373,9 +376,9 @@ func (r *OfficeGraphInsightsTrendingCollectionRequest) Paging(ctx context.Contex
}
var values []Trending
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 {
@@ -388,6 +391,7 @@ func (r *OfficeGraphInsightsTrendingCollectionRequest) Paging(ctx context.Contex
value []Trending
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -475,9 +479,9 @@ func (r *OfficeGraphInsightsUsedCollectionRequest) Paging(ctx context.Context, m
}
var values []UsedInsight
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 {
@@ -490,6 +494,7 @@ func (r *OfficeGraphInsightsUsedCollectionRequest) Paging(ctx context.Context, m
value []UsedInsight
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *OnPremisesAgentAgentGroupsCollectionRequest) Paging(ctx context.Context
}
var values []OnPremisesAgentGroup
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 {
@@ -68,6 +68,7 @@ func (r *OnPremisesAgentAgentGroupsCollectionRequest) Paging(ctx context.Context
value []OnPremisesAgentGroup
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -155,9 +156,9 @@ func (r *OnPremisesAgentGroupAgentsCollectionRequest) Paging(ctx context.Context
}
var values []OnPremisesAgent
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 {
@@ -170,6 +171,7 @@ func (r *OnPremisesAgentGroupAgentsCollectionRequest) Paging(ctx context.Context
value []OnPremisesAgent
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -257,9 +259,9 @@ func (r *OnPremisesAgentGroupPublishedResourcesCollectionRequest) Paging(ctx con
}
var values []PublishedResource
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 {
@@ -272,6 +274,7 @@ func (r *OnPremisesAgentGroupPublishedResourcesCollectionRequest) Paging(ctx con
value []PublishedResource
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -359,9 +362,9 @@ func (r *OnPremisesPublishingProfileAgentGroupsCollectionRequest) Paging(ctx con
}
var values []OnPremisesAgentGroup
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 {
@@ -374,6 +377,7 @@ func (r *OnPremisesPublishingProfileAgentGroupsCollectionRequest) Paging(ctx con
value []OnPremisesAgentGroup
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -461,9 +465,9 @@ func (r *OnPremisesPublishingProfileAgentsCollectionRequest) Paging(ctx context.
}
var values []OnPremisesAgent
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 {
@@ -476,6 +480,7 @@ func (r *OnPremisesPublishingProfileAgentsCollectionRequest) Paging(ctx context.
value []OnPremisesAgent
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -563,9 +568,9 @@ func (r *OnPremisesPublishingProfilePublishedResourcesCollectionRequest) Paging(
}
var values []PublishedResource
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 {
@@ -578,6 +583,7 @@ func (r *OnPremisesPublishingProfilePublishedResourcesCollectionRequest) Paging(
value []PublishedResource
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -99,9 +99,9 @@ func (r *OnenoteNotebooksCollectionRequest) Paging(ctx context.Context, method,
}
var values []Notebook
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 {
@@ -114,6 +114,7 @@ func (r *OnenoteNotebooksCollectionRequest) Paging(ctx context.Context, method,
value []Notebook
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -201,9 +202,9 @@ func (r *OnenoteOperationsCollectionRequest) Paging(ctx context.Context, method,
}
var values []OnenoteOperation
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 {
@@ -216,6 +217,7 @@ func (r *OnenoteOperationsCollectionRequest) Paging(ctx context.Context, method,
value []OnenoteOperation
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -303,9 +305,9 @@ func (r *OnenotePagesCollectionRequest) Paging(ctx context.Context, method, path
}
var values []OnenotePage
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 {
@@ -318,6 +320,7 @@ func (r *OnenotePagesCollectionRequest) Paging(ctx context.Context, method, path
value []OnenotePage
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -405,9 +408,9 @@ func (r *OnenoteResourcesCollectionRequest) Paging(ctx context.Context, method,
}
var values []OnenoteResource
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 {
@@ -420,6 +423,7 @@ func (r *OnenoteResourcesCollectionRequest) Paging(ctx context.Context, method,
value []OnenoteResource
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -507,9 +511,9 @@ func (r *OnenoteSectionGroupsCollectionRequest) Paging(ctx context.Context, meth
}
var values []SectionGroup
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 {
@@ -522,6 +526,7 @@ func (r *OnenoteSectionGroupsCollectionRequest) Paging(ctx context.Context, meth
value []SectionGroup
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -609,9 +614,9 @@ func (r *OnenoteSectionsCollectionRequest) Paging(ctx context.Context, method, p
}
var values []OnenoteSection
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 {
@@ -624,6 +629,7 @@ func (r *OnenoteSectionsCollectionRequest) Paging(ctx context.Context, method, p
value []OnenoteSection
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -725,9 +731,9 @@ func (r *OnenoteSectionPagesCollectionRequest) Paging(ctx context.Context, metho
}
var values []OnenotePage
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 {
@@ -740,6 +746,7 @@ func (r *OnenoteSectionPagesCollectionRequest) Paging(ctx context.Context, metho
value []OnenotePage
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *OrgContactDirectReportsCollectionRequest) Paging(ctx context.Context, m
}
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 {
@@ -68,6 +68,7 @@ func (r *OrgContactDirectReportsCollectionRequest) Paging(ctx context.Context, m
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -162,9 +163,9 @@ func (r *OrgContactMemberOfCollectionRequest) 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 {
@@ -177,6 +178,7 @@ func (r *OrgContactMemberOfCollectionRequest) Paging(ctx context.Context, method
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -264,9 +266,9 @@ func (r *OrgContactTransitiveMemberOfCollectionRequest) Paging(ctx context.Conte
}
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 {
@@ -279,6 +281,7 @@ func (r *OrgContactTransitiveMemberOfCollectionRequest) Paging(ctx context.Conte
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -57,9 +57,9 @@ func (r *OrganizationBrandingsCollectionRequest) Paging(ctx context.Context, met
}
var values []OrganizationalBranding
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 {
@@ -72,6 +72,7 @@ func (r *OrganizationBrandingsCollectionRequest) Paging(ctx context.Context, met
value []OrganizationalBranding
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -159,9 +160,9 @@ func (r *OrganizationCertificateBasedAuthConfigurationCollectionRequest) Paging(
}
var values []CertificateBasedAuthConfiguration
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 {
@@ -174,6 +175,7 @@ func (r *OrganizationCertificateBasedAuthConfigurationCollectionRequest) Paging(
value []CertificateBasedAuthConfiguration
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -261,9 +263,9 @@ func (r *OrganizationExtensionsCollectionRequest) Paging(ctx context.Context, me
}
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 {
@@ -276,6 +278,7 @@ func (r *OrganizationExtensionsCollectionRequest) Paging(ctx context.Context, me
value []Extension
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -57,9 +57,9 @@ func (r *OutlookTaskAttachmentsCollectionRequest) Paging(ctx context.Context, me
}
var values []Attachment
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 {
@@ -72,6 +72,7 @@ func (r *OutlookTaskAttachmentsCollectionRequest) Paging(ctx context.Context, me
value []Attachment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -159,9 +160,9 @@ func (r *OutlookTaskMultiValueExtendedPropertiesCollectionRequest) Paging(ctx co
}
var values []MultiValueLegacyExtendedProperty
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 {
@@ -174,6 +175,7 @@ func (r *OutlookTaskMultiValueExtendedPropertiesCollectionRequest) Paging(ctx co
value []MultiValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -261,9 +263,9 @@ func (r *OutlookTaskSingleValueExtendedPropertiesCollectionRequest) Paging(ctx c
}
var values []SingleValueLegacyExtendedProperty
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 {
@@ -276,6 +278,7 @@ func (r *OutlookTaskSingleValueExtendedPropertiesCollectionRequest) Paging(ctx c
value []SingleValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -363,9 +366,9 @@ func (r *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest) Paging(
}
var values []MultiValueLegacyExtendedProperty
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 {
@@ -378,6 +381,7 @@ func (r *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest) Paging(
value []MultiValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -465,9 +469,9 @@ func (r *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest) Paging
}
var values []SingleValueLegacyExtendedProperty
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 {
@@ -480,6 +484,7 @@ func (r *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest) Paging
value []SingleValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -567,9 +572,9 @@ func (r *OutlookTaskFolderTasksCollectionRequest) Paging(ctx context.Context, me
}
var values []OutlookTask
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 {
@@ -582,6 +587,7 @@ func (r *OutlookTaskFolderTasksCollectionRequest) Paging(ctx context.Context, me
value []OutlookTask
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -669,9 +675,9 @@ func (r *OutlookTaskGroupTaskFoldersCollectionRequest) Paging(ctx context.Contex
}
var values []OutlookTaskFolder
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 {
@@ -684,6 +690,7 @@ func (r *OutlookTaskGroupTaskFoldersCollectionRequest) Paging(ctx context.Contex
value []OutlookTaskFolder
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -771,9 +778,9 @@ func (r *OutlookUserMasterCategoriesCollectionRequest) Paging(ctx context.Contex
}
var values []OutlookCategory
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 {
@@ -786,6 +793,7 @@ func (r *OutlookUserMasterCategoriesCollectionRequest) Paging(ctx context.Contex
value []OutlookCategory
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -873,9 +881,9 @@ func (r *OutlookUserTaskFoldersCollectionRequest) Paging(ctx context.Context, me
}
var values []OutlookTaskFolder
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 {
@@ -888,6 +896,7 @@ func (r *OutlookUserTaskFoldersCollectionRequest) Paging(ctx context.Context, me
value []OutlookTaskFolder
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -975,9 +984,9 @@ func (r *OutlookUserTaskGroupsCollectionRequest) Paging(ctx context.Context, met
}
var values []OutlookTaskGroup
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 {
@@ -990,6 +999,7 @@ func (r *OutlookUserTaskGroupsCollectionRequest) Paging(ctx context.Context, met
value []OutlookTaskGroup
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1077,9 +1087,9 @@ func (r *OutlookUserTasksCollectionRequest) Paging(ctx context.Context, method,
}
var values []OutlookTask
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 {
@@ -1092,6 +1102,7 @@ func (r *OutlookUserTasksCollectionRequest) Paging(ctx context.Context, method,
value []OutlookTask
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *PlannerBucketsCollectionRequest) Paging(ctx context.Context, method, pa
}
var values []PlannerBucket
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 {
@@ -68,6 +68,7 @@ func (r *PlannerBucketsCollectionRequest) Paging(ctx context.Context, method, pa
value []PlannerBucket
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -155,9 +156,9 @@ func (r *PlannerPlansCollectionRequest) Paging(ctx context.Context, method, path
}
var values []PlannerPlan
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 {
@@ -170,6 +171,7 @@ func (r *PlannerPlansCollectionRequest) Paging(ctx context.Context, method, path
value []PlannerPlan
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -257,9 +259,9 @@ func (r *PlannerTasksCollectionRequest) Paging(ctx context.Context, method, path
}
var values []PlannerTask
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 {
@@ -272,6 +274,7 @@ func (r *PlannerTasksCollectionRequest) Paging(ctx context.Context, method, path
value []PlannerTask
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -359,9 +362,9 @@ func (r *PlannerBucketTasksCollectionRequest) Paging(ctx context.Context, method
}
var values []PlannerTask
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 {
@@ -374,6 +377,7 @@ func (r *PlannerBucketTasksCollectionRequest) Paging(ctx context.Context, method
value []PlannerTask
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -461,9 +465,9 @@ func (r *PlannerGroupPlansCollectionRequest) Paging(ctx context.Context, method,
}
var values []PlannerPlan
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 {
@@ -476,6 +480,7 @@ func (r *PlannerGroupPlansCollectionRequest) Paging(ctx context.Context, method,
value []PlannerPlan
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -563,9 +568,9 @@ func (r *PlannerPlanBucketsCollectionRequest) Paging(ctx context.Context, method
}
var values []PlannerBucket
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 {
@@ -578,6 +583,7 @@ func (r *PlannerPlanBucketsCollectionRequest) Paging(ctx context.Context, method
value []PlannerBucket
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -672,9 +678,9 @@ func (r *PlannerPlanTasksCollectionRequest) Paging(ctx context.Context, method,
}
var values []PlannerTask
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 {
@@ -687,6 +693,7 @@ func (r *PlannerPlanTasksCollectionRequest) Paging(ctx context.Context, method,
value []PlannerTask
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -802,9 +809,9 @@ func (r *PlannerUserAllCollectionRequest) Paging(ctx context.Context, method, pa
}
var values []PlannerDelta
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 {
@@ -817,6 +824,7 @@ func (r *PlannerUserAllCollectionRequest) Paging(ctx context.Context, method, pa
value []PlannerDelta
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -904,9 +912,9 @@ func (r *PlannerUserFavoritePlansCollectionRequest) Paging(ctx context.Context,
}
var values []PlannerPlan
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 {
@@ -919,6 +927,7 @@ func (r *PlannerUserFavoritePlansCollectionRequest) Paging(ctx context.Context,
value []PlannerPlan
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1006,9 +1015,9 @@ func (r *PlannerUserPlansCollectionRequest) Paging(ctx context.Context, method,
}
var values []PlannerPlan
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 {
@@ -1021,6 +1030,7 @@ func (r *PlannerUserPlansCollectionRequest) Paging(ctx context.Context, method,
value []PlannerPlan
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1108,9 +1118,9 @@ func (r *PlannerUserRecentPlansCollectionRequest) Paging(ctx context.Context, me
}
var values []PlannerPlan
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 {
@@ -1123,6 +1133,7 @@ func (r *PlannerUserRecentPlansCollectionRequest) Paging(ctx context.Context, me
value []PlannerPlan
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1210,9 +1221,9 @@ func (r *PlannerUserTasksCollectionRequest) Paging(ctx context.Context, method,
}
var values []PlannerTask
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 {
@@ -1225,6 +1236,7 @@ func (r *PlannerUserTasksCollectionRequest) Paging(ctx context.Context, method,
value []PlannerTask
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -71,9 +71,9 @@ func (r *PolicyAppliesToCollectionRequest) Paging(ctx context.Context, method, p
}
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 {
@@ -86,6 +86,7 @@ func (r *PolicyAppliesToCollectionRequest) Paging(ctx context.Context, method, p
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -173,9 +174,9 @@ func (r *PolicySetAssignmentsCollectionRequest) Paging(ctx context.Context, meth
}
var values []PolicySetAssignment
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 {
@@ -188,6 +189,7 @@ func (r *PolicySetAssignmentsCollectionRequest) Paging(ctx context.Context, meth
value []PolicySetAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -275,9 +277,9 @@ func (r *PolicySetItemsCollectionRequest) Paging(ctx context.Context, method, pa
}
var values []PolicySetItem
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 {
@@ -290,6 +292,7 @@ func (r *PolicySetItemsCollectionRequest) Paging(ctx context.Context, method, pa
value []PolicySetItem
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -67,9 +67,9 @@ func (r *PostAttachmentsCollectionRequest) Paging(ctx context.Context, method, p
}
var values []Attachment
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 {
@@ -82,6 +82,7 @@ func (r *PostAttachmentsCollectionRequest) Paging(ctx context.Context, method, p
value []Attachment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -169,9 +170,9 @@ func (r *PostExtensionsCollectionRequest) 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 {
@@ -184,6 +185,7 @@ func (r *PostExtensionsCollectionRequest) Paging(ctx context.Context, method, pa
value []Extension
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -278,9 +280,9 @@ func (r *PostMentionsCollectionRequest) Paging(ctx context.Context, method, path
}
var values []Mention
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 {
@@ -293,6 +295,7 @@ func (r *PostMentionsCollectionRequest) Paging(ctx context.Context, method, path
value []Mention
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -380,9 +383,9 @@ func (r *PostMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.C
}
var values []MultiValueLegacyExtendedProperty
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 {
@@ -395,6 +398,7 @@ func (r *PostMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.C
value []MultiValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -482,9 +486,9 @@ func (r *PostSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.
}
var values []SingleValueLegacyExtendedProperty
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 {
@@ -497,6 +501,7 @@ func (r *PostSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.
value []SingleValueLegacyExtendedProperty
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -97,9 +97,9 @@ func (r *PrivilegedAccessResourcesCollectionRequest) Paging(ctx context.Context,
}
var values []GovernanceResource
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 {
@@ -112,6 +112,7 @@ func (r *PrivilegedAccessResourcesCollectionRequest) Paging(ctx context.Context,
value []GovernanceResource
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -199,9 +200,9 @@ func (r *PrivilegedAccessRoleAssignmentRequestsCollectionRequest) Paging(ctx con
}
var values []GovernanceRoleAssignmentRequestObject
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 {
@@ -214,6 +215,7 @@ func (r *PrivilegedAccessRoleAssignmentRequestsCollectionRequest) Paging(ctx con
value []GovernanceRoleAssignmentRequestObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -301,9 +303,9 @@ func (r *PrivilegedAccessRoleAssignmentsCollectionRequest) Paging(ctx context.Co
}
var values []GovernanceRoleAssignment
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 {
@@ -316,6 +318,7 @@ func (r *PrivilegedAccessRoleAssignmentsCollectionRequest) Paging(ctx context.Co
value []GovernanceRoleAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -403,9 +406,9 @@ func (r *PrivilegedAccessRoleDefinitionsCollectionRequest) Paging(ctx context.Co
}
var values []GovernanceRoleDefinition
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 {
@@ -418,6 +421,7 @@ func (r *PrivilegedAccessRoleDefinitionsCollectionRequest) Paging(ctx context.Co
value []GovernanceRoleDefinition
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -505,9 +509,9 @@ func (r *PrivilegedAccessRoleSettingsCollectionRequest) Paging(ctx context.Conte
}
var values []GovernanceRoleSetting
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 {
@@ -520,6 +524,7 @@ func (r *PrivilegedAccessRoleSettingsCollectionRequest) Paging(ctx context.Conte
value []GovernanceRoleSetting
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -621,9 +626,9 @@ func (r *PrivilegedRoleAssignmentsCollectionRequest) Paging(ctx context.Context,
}
var values []PrivilegedRoleAssignment
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 {
@@ -636,6 +641,7 @@ func (r *PrivilegedRoleAssignmentsCollectionRequest) Paging(ctx context.Context,
value []PrivilegedRoleAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *ProfileAccountCollectionRequest) Paging(ctx context.Context, method, pa
}
var values []UserAccountInformation
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 {
@@ -68,6 +68,7 @@ func (r *ProfileAccountCollectionRequest) Paging(ctx context.Context, method, pa
value []UserAccountInformation
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -155,9 +156,9 @@ func (r *ProfileAnniversariesCollectionRequest) Paging(ctx context.Context, meth
}
var values []PersonAnniversary
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 {
@@ -170,6 +171,7 @@ func (r *ProfileAnniversariesCollectionRequest) Paging(ctx context.Context, meth
value []PersonAnniversary
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -257,9 +259,9 @@ func (r *ProfileEducationalActivitiesCollectionRequest) Paging(ctx context.Conte
}
var values []EducationalActivity
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 {
@@ -272,6 +274,7 @@ func (r *ProfileEducationalActivitiesCollectionRequest) Paging(ctx context.Conte
value []EducationalActivity
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -359,9 +362,9 @@ func (r *ProfileEmailsCollectionRequest) Paging(ctx context.Context, method, pat
}
var values []ItemEmail
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 {
@@ -374,6 +377,7 @@ func (r *ProfileEmailsCollectionRequest) Paging(ctx context.Context, method, pat
value []ItemEmail
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -461,9 +465,9 @@ func (r *ProfileInterestsCollectionRequest) Paging(ctx context.Context, method,
}
var values []PersonInterest
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 {
@@ -476,6 +480,7 @@ func (r *ProfileInterestsCollectionRequest) Paging(ctx context.Context, method,
value []PersonInterest
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -563,9 +568,9 @@ func (r *ProfileLanguagesCollectionRequest) Paging(ctx context.Context, method,
}
var values []LanguageProficiency
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 {
@@ -578,6 +583,7 @@ func (r *ProfileLanguagesCollectionRequest) Paging(ctx context.Context, method,
value []LanguageProficiency
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -665,9 +671,9 @@ func (r *ProfileNamesCollectionRequest) Paging(ctx context.Context, method, path
}
var values []PersonName
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 {
@@ -680,6 +686,7 @@ func (r *ProfileNamesCollectionRequest) Paging(ctx context.Context, method, path
value []PersonName
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -767,9 +774,9 @@ func (r *ProfilePhonesCollectionRequest) Paging(ctx context.Context, method, pat
}
var values []ItemPhone
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 {
@@ -782,6 +789,7 @@ func (r *ProfilePhonesCollectionRequest) Paging(ctx context.Context, method, pat
value []ItemPhone
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -869,9 +877,9 @@ func (r *ProfilePositionsCollectionRequest) Paging(ctx context.Context, method,
}
var values []WorkPosition
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 {
@@ -884,6 +892,7 @@ func (r *ProfilePositionsCollectionRequest) Paging(ctx context.Context, method,
value []WorkPosition
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -971,9 +980,9 @@ func (r *ProfileProjectsCollectionRequest) Paging(ctx context.Context, method, p
}
var values []ProjectParticipation
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 {
@@ -986,6 +995,7 @@ func (r *ProfileProjectsCollectionRequest) Paging(ctx context.Context, method, p
value []ProjectParticipation
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1073,9 +1083,9 @@ func (r *ProfileSkillsCollectionRequest) Paging(ctx context.Context, method, pat
}
var values []SkillProficiency
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 {
@@ -1088,6 +1098,7 @@ func (r *ProfileSkillsCollectionRequest) Paging(ctx context.Context, method, pat
value []SkillProficiency
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1175,9 +1186,9 @@ func (r *ProfileWebAccountsCollectionRequest) Paging(ctx context.Context, method
}
var values []WebAccount
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 {
@@ -1190,6 +1201,7 @@ func (r *ProfileWebAccountsCollectionRequest) Paging(ctx context.Context, method
value []WebAccount
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -1277,9 +1289,9 @@ func (r *ProfileWebsitesCollectionRequest) Paging(ctx context.Context, method, p
}
var values []PersonWebsite
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 {
@@ -1292,6 +1304,7 @@ func (r *ProfileWebsitesCollectionRequest) Paging(ctx context.Context, method, p
value []PersonWebsite
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *ProgramControlsCollectionRequest) Paging(ctx context.Context, method, p
}
var values []ProgramControl
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 {
@@ -68,6 +68,7 @@ func (r *ProgramControlsCollectionRequest) Paging(ctx context.Context, method, p
value []ProgramControl
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *PublishedResourceAgentGroupsCollectionRequest) Paging(ctx context.Conte
}
var values []OnPremisesAgentGroup
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 {
@@ -68,6 +68,7 @@ func (r *PublishedResourceAgentGroupsCollectionRequest) Paging(ctx context.Conte
value []OnPremisesAgentGroup
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -64,9 +64,9 @@ func (r *PurchaseInvoicePurchaseInvoiceLinesCollectionRequest) Paging(ctx contex
}
var values []PurchaseInvoiceLine
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 {
@@ -79,6 +79,7 @@ func (r *PurchaseInvoicePurchaseInvoiceLinesCollectionRequest) Paging(ctx contex
value []PurchaseInvoiceLine
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *RbacApplicationRoleAssignmentsCollectionRequest) Paging(ctx context.Con
}
var values []UnifiedRoleAssignment
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 {
@@ -68,6 +68,7 @@ func (r *RbacApplicationRoleAssignmentsCollectionRequest) Paging(ctx context.Con
value []UnifiedRoleAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -155,9 +156,9 @@ func (r *RbacApplicationRoleDefinitionsCollectionRequest) Paging(ctx context.Con
}
var values []UnifiedRoleDefinition
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 {
@@ -170,6 +171,7 @@ func (r *RbacApplicationRoleDefinitionsCollectionRequest) Paging(ctx context.Con
value []UnifiedRoleDefinition
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *ReportRootApplicationSignInDetailedSummaryCollectionRequest) Paging(ctx
}
var values []ApplicationSignInDetailedSummary
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 {
@@ -68,6 +68,7 @@ func (r *ReportRootApplicationSignInDetailedSummaryCollectionRequest) Paging(ctx
value []ApplicationSignInDetailedSummary
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -155,9 +156,9 @@ func (r *ReportRootCredentialUserRegistrationDetailsCollectionRequest) Paging(ct
}
var values []CredentialUserRegistrationDetails
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 {
@@ -170,6 +171,7 @@ func (r *ReportRootCredentialUserRegistrationDetailsCollectionRequest) Paging(ct
value []CredentialUserRegistrationDetails
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -257,9 +259,9 @@ func (r *ReportRootUserCredentialUsageDetailsCollectionRequest) Paging(ctx conte
}
var values []UserCredentialUsageDetails
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 {
@@ -272,6 +274,7 @@ func (r *ReportRootUserCredentialUsageDetailsCollectionRequest) Paging(ctx conte
value []UserCredentialUsageDetails
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -65,9 +65,9 @@ func (r *RequestObjectDecisionsCollectionRequest) Paging(ctx context.Context, me
}
var values []AccessReviewDecision
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 {
@@ -80,6 +80,7 @@ func (r *RequestObjectDecisionsCollectionRequest) Paging(ctx context.Context, me
value []AccessReviewDecision
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -167,9 +168,9 @@ func (r *RequestObjectMyDecisionsCollectionRequest) Paging(ctx context.Context,
}
var values []AccessReviewDecision
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 {
@@ -182,6 +183,7 @@ func (r *RequestObjectMyDecisionsCollectionRequest) Paging(ctx context.Context,
value []AccessReviewDecision
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -65,9 +65,9 @@ func (r *RiskyUserHistoryCollectionRequest) Paging(ctx context.Context, method,
}
var values []RiskyUserHistoryItem
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 {
@@ -80,6 +80,7 @@ func (r *RiskyUserHistoryCollectionRequest) Paging(ctx context.Context, method,
value []RiskyUserHistoryItem
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -72,9 +72,9 @@ func (r *RoleDefinitionRoleAssignmentsCollectionRequest) Paging(ctx context.Cont
}
var values []RoleAssignment
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 {
@@ -87,6 +87,7 @@ func (r *RoleDefinitionRoleAssignmentsCollectionRequest) Paging(ctx context.Cont
value []RoleAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -181,9 +182,9 @@ func (r *RoleScopeTagAssignmentsCollectionRequest) Paging(ctx context.Context, m
}
var values []RoleScopeTagAutoAssignment
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 {
@@ -196,6 +197,7 @@ func (r *RoleScopeTagAssignmentsCollectionRequest) Paging(ctx context.Context, m
value []RoleScopeTagAutoAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -53,9 +53,9 @@ func (r *RoomListRoomsCollectionRequest) Paging(ctx context.Context, method, pat
}
var values []Room
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 {
@@ -68,6 +68,7 @@ func (r *RoomListRoomsCollectionRequest) Paging(ctx context.Context, method, pat
value []Room
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -102,9 +102,9 @@ func (r *SalesCreditMemoSalesCreditMemoLinesCollectionRequest) Paging(ctx contex
}
var values []SalesCreditMemoLine
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 {
@@ -117,6 +117,7 @@ func (r *SalesCreditMemoSalesCreditMemoLinesCollectionRequest) Paging(ctx contex
value []SalesCreditMemoLine
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -239,9 +240,9 @@ func (r *SalesInvoiceSalesInvoiceLinesCollectionRequest) Paging(ctx context.Cont
}
var values []SalesInvoiceLine
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 {
@@ -254,6 +255,7 @@ func (r *SalesInvoiceSalesInvoiceLinesCollectionRequest) Paging(ctx context.Cont
value []SalesInvoiceLine
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -383,9 +385,9 @@ func (r *SalesOrderSalesOrderLinesCollectionRequest) Paging(ctx context.Context,
}
var values []SalesOrderLine
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 {
@@ -398,6 +400,7 @@ func (r *SalesOrderSalesOrderLinesCollectionRequest) Paging(ctx context.Context,
value []SalesOrderLine
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -520,9 +523,9 @@ func (r *SalesQuoteSalesQuoteLinesCollectionRequest) Paging(ctx context.Context,
}
var values []SalesQuoteLine
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 {
@@ -535,6 +538,7 @@ func (r *SalesQuoteSalesQuoteLinesCollectionRequest) Paging(ctx context.Context,
value []SalesQuoteLine
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -76,9 +76,9 @@ func (r *ScheduleOpenShiftChangeRequestsCollectionRequest) Paging(ctx context.Co
}
var values []OpenShiftChangeRequestObject
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 {
@@ -91,6 +91,7 @@ func (r *ScheduleOpenShiftChangeRequestsCollectionRequest) Paging(ctx context.Co
value []OpenShiftChangeRequestObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -178,9 +179,9 @@ func (r *ScheduleOpenShiftsCollectionRequest) Paging(ctx context.Context, method
}
var values []OpenShift
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 {
@@ -193,6 +194,7 @@ func (r *ScheduleOpenShiftsCollectionRequest) Paging(ctx context.Context, method
value []OpenShift
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -280,9 +282,9 @@ func (r *ScheduleSchedulingGroupsCollectionRequest) Paging(ctx context.Context,
}
var values []SchedulingGroup
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 {
@@ -295,6 +297,7 @@ func (r *ScheduleSchedulingGroupsCollectionRequest) Paging(ctx context.Context,
value []SchedulingGroup
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -382,9 +385,9 @@ func (r *ScheduleShiftsCollectionRequest) Paging(ctx context.Context, method, pa
}
var values []Shift
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 {
@@ -397,6 +400,7 @@ func (r *ScheduleShiftsCollectionRequest) Paging(ctx context.Context, method, pa
value []Shift
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -484,9 +488,9 @@ func (r *ScheduleSwapShiftsChangeRequestsCollectionRequest) Paging(ctx context.C
}
var values []SwapShiftsChangeRequestObject
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 {
@@ -499,6 +503,7 @@ func (r *ScheduleSwapShiftsChangeRequestsCollectionRequest) Paging(ctx context.C
value []SwapShiftsChangeRequestObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -586,9 +591,9 @@ func (r *ScheduleTimeOffReasonsCollectionRequest) Paging(ctx context.Context, me
}
var values []TimeOffReason
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 {
@@ -601,6 +606,7 @@ func (r *ScheduleTimeOffReasonsCollectionRequest) Paging(ctx context.Context, me
value []TimeOffReason
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -688,9 +694,9 @@ func (r *ScheduleTimeOffRequestsCollectionRequest) Paging(ctx context.Context, m
}
var values []TimeOffRequestObject
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 {
@@ -703,6 +709,7 @@ func (r *ScheduleTimeOffRequestsCollectionRequest) Paging(ctx context.Context, m
value []TimeOffRequestObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}
@@ -790,9 +797,9 @@ func (r *ScheduleTimesOffCollectionRequest) Paging(ctx context.Context, method,
}
var values []TimeOff
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 {
@@ -805,6 +812,7 @@ func (r *ScheduleTimesOffCollectionRequest) Paging(ctx context.Context, method,
value []TimeOff
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
res.Body.Close()
if err != nil {
return nil, err
}

View File

@@ -1,4 +1,4 @@
// Code generated by msgraph-generate.go DO NOT EDIT.
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph

Some files were not shown because too many files have changed in this diff Show More