summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/yaegashi/msgraph.go/beta/ActionDevice.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2020-09-04 23:29:13 +0200
committerGitHub <noreply@github.com>2020-09-04 23:29:13 +0200
commit2f59abdda7a1072036ea1fdb4c859cccbb56efa6 (patch)
treee35393f23d12783ae92f0469085efc7dec953f82 /vendor/github.com/yaegashi/msgraph.go/beta/ActionDevice.go
parent17747a5c8893fd47ba8eb61dd10477170640caf6 (diff)
downloadmatterbridge-msglm-2f59abdda7a1072036ea1fdb4c859cccbb56efa6.tar.gz
matterbridge-msglm-2f59abdda7a1072036ea1fdb4c859cccbb56efa6.tar.bz2
matterbridge-msglm-2f59abdda7a1072036ea1fdb4c859cccbb56efa6.zip
Update vendor (#1228)
Diffstat (limited to 'vendor/github.com/yaegashi/msgraph.go/beta/ActionDevice.go')
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionDevice.go410
1 files changed, 273 insertions, 137 deletions
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDevice.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDevice.go
index 83454394..b7bdef6d 100644
--- a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDevice.go
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDevice.go
@@ -1,4 +1,4 @@
-// Code generated by msgraph-generate.go DO NOT EDIT.
+// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
@@ -317,9 +317,9 @@ func (r *DeviceCommandsCollectionRequest) Paging(ctx context.Context, method, pa
}
var values []Command
for {
- defer res.Body.Close()
if 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 +332,7 @@ func (r *DeviceCommandsCollectionRequest) Paging(ctx context.Context, method, pa
value []Command
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -419,9 +420,9 @@ func (r *DeviceExtensionsCollectionRequest) 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 {
@@ -434,6 +435,7 @@ func (r *DeviceExtensionsCollectionRequest) Paging(ctx context.Context, method,
value []Extension
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -521,9 +523,9 @@ func (r *DeviceMemberOfCollectionRequest) Paging(ctx context.Context, method, pa
}
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 {
@@ -536,6 +538,7 @@ func (r *DeviceMemberOfCollectionRequest) Paging(ctx context.Context, method, pa
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -623,9 +626,9 @@ func (r *DeviceRegisteredOwnersCollectionRequest) 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 {
@@ -638,6 +641,7 @@ func (r *DeviceRegisteredOwnersCollectionRequest) Paging(ctx context.Context, me
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -725,9 +729,9 @@ func (r *DeviceRegisteredUsersCollectionRequest) 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 {
@@ -740,6 +744,7 @@ func (r *DeviceRegisteredUsersCollectionRequest) Paging(ctx context.Context, met
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -827,9 +832,9 @@ func (r *DeviceTransitiveMemberOfCollectionRequest) 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 {
@@ -842,6 +847,7 @@ func (r *DeviceTransitiveMemberOfCollectionRequest) Paging(ctx context.Context,
value []DirectoryObject
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -929,9 +935,9 @@ func (r *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest) Pag
}
var values []RoleScopeTag
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -944,6 +950,7 @@ func (r *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest) Pag
value []RoleScopeTag
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1031,9 +1038,9 @@ func (r *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest) Pagin
}
var values []AndroidManagedAppProtection
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -1046,6 +1053,7 @@ func (r *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest) Pagin
value []AndroidManagedAppProtection
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1133,9 +1141,9 @@ func (r *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest) Pagin
}
var values []DefaultManagedAppProtection
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -1148,6 +1156,7 @@ func (r *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest) Pagin
value []DefaultManagedAppProtection
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1235,9 +1244,9 @@ func (r *DeviceAppManagementDeviceAppManagementTasksCollectionRequest) Paging(ct
}
var values []DeviceAppManagementTask
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -1250,6 +1259,7 @@ func (r *DeviceAppManagementDeviceAppManagementTasksCollectionRequest) Paging(ct
value []DeviceAppManagementTask
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1337,9 +1347,9 @@ func (r *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest)
}
var values []EnterpriseCodeSigningCertificate
for {
- defer res.Body.Close()
if 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 +1362,7 @@ func (r *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest)
value []EnterpriseCodeSigningCertificate
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1439,9 +1450,9 @@ func (r *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest
}
var values []IOSLobAppProvisioningConfiguration
for {
- defer res.Body.Close()
if 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 +1465,7 @@ func (r *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest
value []IOSLobAppProvisioningConfiguration
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1541,9 +1553,9 @@ func (r *DeviceAppManagementIOSManagedAppProtectionsCollectionRequest) Paging(ct
}
var values []IOSManagedAppProtection
for {
- defer res.Body.Close()
if 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 +1568,7 @@ func (r *DeviceAppManagementIOSManagedAppProtectionsCollectionRequest) Paging(ct
value []IOSManagedAppProtection
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1643,9 +1656,9 @@ func (r *DeviceAppManagementManagedAppPoliciesCollectionRequest) 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 {
@@ -1658,6 +1671,7 @@ func (r *DeviceAppManagementManagedAppPoliciesCollectionRequest) Paging(ctx cont
value []ManagedAppPolicy
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1745,9 +1759,9 @@ func (r *DeviceAppManagementManagedAppRegistrationsCollectionRequest) Paging(ctx
}
var values []ManagedAppRegistration
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -1760,6 +1774,7 @@ func (r *DeviceAppManagementManagedAppRegistrationsCollectionRequest) Paging(ctx
value []ManagedAppRegistration
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1847,9 +1862,9 @@ func (r *DeviceAppManagementManagedAppStatusesCollectionRequest) Paging(ctx cont
}
var values []ManagedAppStatus
for {
- defer res.Body.Close()
if 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 +1877,7 @@ func (r *DeviceAppManagementManagedAppStatusesCollectionRequest) Paging(ctx cont
value []ManagedAppStatus
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -1949,9 +1965,9 @@ func (r *DeviceAppManagementManagedEBookCategoriesCollectionRequest) Paging(ctx
}
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 {
@@ -1964,6 +1980,7 @@ func (r *DeviceAppManagementManagedEBookCategoriesCollectionRequest) Paging(ctx
value []ManagedEBookCategory
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2051,9 +2068,9 @@ func (r *DeviceAppManagementManagedEBooksCollectionRequest) Paging(ctx context.C
}
var values []ManagedEBook
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2066,6 +2083,7 @@ func (r *DeviceAppManagementManagedEBooksCollectionRequest) Paging(ctx context.C
value []ManagedEBook
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2153,9 +2171,9 @@ func (r *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionReq
}
var values []MDMWindowsInformationProtectionPolicy
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2168,6 +2186,7 @@ func (r *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionReq
value []MDMWindowsInformationProtectionPolicy
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2255,9 +2274,9 @@ func (r *DeviceAppManagementMobileAppCategoriesCollectionRequest) Paging(ctx con
}
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 {
@@ -2270,6 +2289,7 @@ func (r *DeviceAppManagementMobileAppCategoriesCollectionRequest) Paging(ctx con
value []MobileAppCategory
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2357,9 +2377,9 @@ func (r *DeviceAppManagementMobileAppConfigurationsCollectionRequest) Paging(ctx
}
var values []ManagedDeviceMobileAppConfiguration
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2372,6 +2392,7 @@ func (r *DeviceAppManagementMobileAppConfigurationsCollectionRequest) Paging(ctx
value []ManagedDeviceMobileAppConfiguration
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2459,9 +2480,9 @@ func (r *DeviceAppManagementMobileAppsCollectionRequest) Paging(ctx context.Cont
}
var values []MobileApp
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2474,6 +2495,7 @@ func (r *DeviceAppManagementMobileAppsCollectionRequest) Paging(ctx context.Cont
value []MobileApp
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2561,9 +2583,9 @@ func (r *DeviceAppManagementPolicySetsCollectionRequest) Paging(ctx context.Cont
}
var values []PolicySet
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2576,6 +2598,7 @@ func (r *DeviceAppManagementPolicySetsCollectionRequest) Paging(ctx context.Cont
value []PolicySet
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2663,9 +2686,9 @@ func (r *DeviceAppManagementSideLoadingKeysCollectionRequest) Paging(ctx context
}
var values []SideLoadingKey
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2678,6 +2701,7 @@ func (r *DeviceAppManagementSideLoadingKeysCollectionRequest) Paging(ctx context
value []SideLoadingKey
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2772,9 +2796,9 @@ func (r *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest) P
}
var values []TargetedManagedAppConfiguration
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2787,6 +2811,7 @@ func (r *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest) P
value []TargetedManagedAppConfiguration
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2874,9 +2899,9 @@ func (r *DeviceAppManagementVPPTokensCollectionRequest) Paging(ctx context.Conte
}
var values []VPPToken
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2889,6 +2914,7 @@ func (r *DeviceAppManagementVPPTokensCollectionRequest) Paging(ctx context.Conte
value []VPPToken
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -2976,9 +3002,9 @@ func (r *DeviceAppManagementWdacSupplementalPoliciesCollectionRequest) Paging(ct
}
var values []WindowsDefenderApplicationControlSupplementalPolicy
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -2991,6 +3017,7 @@ func (r *DeviceAppManagementWdacSupplementalPoliciesCollectionRequest) Paging(ct
value []WindowsDefenderApplicationControlSupplementalPolicy
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3078,9 +3105,9 @@ func (r *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsColle
}
var values []WindowsInformationProtectionDeviceRegistration
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3093,6 +3120,7 @@ func (r *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsColle
value []WindowsInformationProtectionDeviceRegistration
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3180,9 +3208,9 @@ func (r *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionReques
}
var values []WindowsInformationProtectionPolicy
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3195,6 +3223,7 @@ func (r *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionReques
value []WindowsInformationProtectionPolicy
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3282,9 +3311,9 @@ func (r *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionReq
}
var values []WindowsInformationProtectionWipeAction
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3297,6 +3326,7 @@ func (r *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionReq
value []WindowsInformationProtectionWipeAction
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3391,9 +3421,9 @@ func (r *DeviceCompliancePolicyAssignmentsCollectionRequest) Paging(ctx context.
}
var values []DeviceCompliancePolicyAssignment
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3406,6 +3436,7 @@ func (r *DeviceCompliancePolicyAssignmentsCollectionRequest) Paging(ctx context.
value []DeviceCompliancePolicyAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3493,9 +3524,9 @@ func (r *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest) Pag
}
var values []SettingStateDeviceSummary
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3508,6 +3539,7 @@ func (r *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest) Pag
value []SettingStateDeviceSummary
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3602,9 +3634,9 @@ func (r *DeviceCompliancePolicyDeviceStatusesCollectionRequest) Paging(ctx conte
}
var values []DeviceComplianceDeviceStatus
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3617,6 +3649,7 @@ func (r *DeviceCompliancePolicyDeviceStatusesCollectionRequest) Paging(ctx conte
value []DeviceComplianceDeviceStatus
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3704,9 +3737,9 @@ func (r *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest) Paging(
}
var values []DeviceComplianceScheduledActionForRule
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3719,6 +3752,7 @@ func (r *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest) Paging(
value []DeviceComplianceScheduledActionForRule
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3813,9 +3847,9 @@ func (r *DeviceCompliancePolicyUserStatusesCollectionRequest) Paging(ctx context
}
var values []DeviceComplianceUserStatus
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3828,6 +3862,7 @@ func (r *DeviceCompliancePolicyUserStatusesCollectionRequest) Paging(ctx context
value []DeviceComplianceUserStatus
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -3922,9 +3957,9 @@ func (r *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesC
}
var values []DeviceComplianceSettingState
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -3937,6 +3972,7 @@ func (r *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesC
value []DeviceComplianceSettingState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4024,9 +4060,9 @@ func (r *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsColl
}
var values []DeviceComplianceActionItem
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4039,6 +4075,7 @@ func (r *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsColl
value []DeviceComplianceActionItem
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4126,9 +4163,9 @@ func (r *DeviceConfigurationAssignmentsCollectionRequest) Paging(ctx context.Con
}
var values []DeviceConfigurationAssignment
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4141,6 +4178,7 @@ func (r *DeviceConfigurationAssignmentsCollectionRequest) Paging(ctx context.Con
value []DeviceConfigurationAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4228,9 +4266,9 @@ func (r *DeviceConfigurationDeviceSettingStateSummariesCollectionRequest) Paging
}
var values []SettingStateDeviceSummary
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4243,6 +4281,7 @@ func (r *DeviceConfigurationDeviceSettingStateSummariesCollectionRequest) Paging
value []SettingStateDeviceSummary
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4337,9 +4376,9 @@ func (r *DeviceConfigurationDeviceStatusesCollectionRequest) Paging(ctx context.
}
var values []DeviceConfigurationDeviceStatus
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4352,6 +4391,7 @@ func (r *DeviceConfigurationDeviceStatusesCollectionRequest) Paging(ctx context.
value []DeviceConfigurationDeviceStatus
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4439,9 +4479,9 @@ func (r *DeviceConfigurationGroupAssignmentsCollectionRequest) Paging(ctx contex
}
var values []DeviceConfigurationGroupAssignment
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4454,6 +4494,7 @@ func (r *DeviceConfigurationGroupAssignmentsCollectionRequest) Paging(ctx contex
value []DeviceConfigurationGroupAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4548,9 +4589,9 @@ func (r *DeviceConfigurationUserStatusesCollectionRequest) Paging(ctx context.Co
}
var values []DeviceConfigurationUserStatus
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4563,6 +4604,7 @@ func (r *DeviceConfigurationUserStatusesCollectionRequest) Paging(ctx context.Co
value []DeviceConfigurationUserStatus
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4657,9 +4699,9 @@ func (r *DeviceEnrollmentConfigurationAssignmentsCollectionRequest) Paging(ctx c
}
var values []EnrollmentConfigurationAssignment
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4672,6 +4714,7 @@ func (r *DeviceEnrollmentConfigurationAssignmentsCollectionRequest) Paging(ctx c
value []EnrollmentConfigurationAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4759,9 +4802,9 @@ func (r *DeviceHealthScriptAssignmentsCollectionRequest) Paging(ctx context.Cont
}
var values []DeviceHealthScriptAssignment
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4774,6 +4817,7 @@ func (r *DeviceHealthScriptAssignmentsCollectionRequest) Paging(ctx context.Cont
value []DeviceHealthScriptAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4861,9 +4905,9 @@ func (r *DeviceHealthScriptDeviceRunStatesCollectionRequest) Paging(ctx context.
}
var values []DeviceHealthScriptDeviceState
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4876,6 +4920,7 @@ func (r *DeviceHealthScriptDeviceRunStatesCollectionRequest) Paging(ctx context.
value []DeviceHealthScriptDeviceState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -4984,9 +5029,9 @@ func (r *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest)
}
var values []AndroidDeviceOwnerEnrollmentProfile
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -4999,6 +5044,7 @@ func (r *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest)
value []AndroidDeviceOwnerEnrollmentProfile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -5086,9 +5132,9 @@ func (r *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest)
}
var values []AndroidForWorkAppConfigurationSchema
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -5101,6 +5147,7 @@ func (r *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest)
value []AndroidForWorkAppConfigurationSchema
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -5188,9 +5235,9 @@ func (r *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest) Pagi
}
var values []AndroidForWorkEnrollmentProfile
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -5203,6 +5250,7 @@ func (r *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest) Pagi
value []AndroidForWorkEnrollmentProfile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -5304,9 +5352,9 @@ func (r *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionReq
}
var values []AndroidManagedStoreAppConfigurationSchema
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -5319,6 +5367,7 @@ func (r *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionReq
value []AndroidManagedStoreAppConfigurationSchema
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -5413,9 +5462,9 @@ func (r *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest)
}
var values []AppleUserInitiatedEnrollmentProfile
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -5428,6 +5477,7 @@ func (r *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest)
value []AppleUserInitiatedEnrollmentProfile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -5515,9 +5565,9 @@ func (r *DeviceManagementAuditEventsCollectionRequest) Paging(ctx context.Contex
}
var values []AuditEvent
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -5530,6 +5580,7 @@ func (r *DeviceManagementAuditEventsCollectionRequest) Paging(ctx context.Contex
value []AuditEvent
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -5617,9 +5668,9 @@ func (r *DeviceManagementAutopilotEventsCollectionRequest) Paging(ctx context.Co
}
var values []DeviceManagementAutopilotEvent
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -5632,6 +5683,7 @@ func (r *DeviceManagementAutopilotEventsCollectionRequest) Paging(ctx context.Co
value []DeviceManagementAutopilotEvent
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -5719,9 +5771,9 @@ func (r *DeviceManagementCartToClassAssociationsCollectionRequest) Paging(ctx co
}
var values []CartToClassAssociation
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -5734,6 +5786,7 @@ func (r *DeviceManagementCartToClassAssociationsCollectionRequest) Paging(ctx co
value []CartToClassAssociation
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -5821,9 +5874,9 @@ func (r *DeviceManagementCategoriesCollectionRequest) Paging(ctx context.Context
}
var values []DeviceManagementSettingCategory
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -5836,6 +5889,7 @@ func (r *DeviceManagementCategoriesCollectionRequest) Paging(ctx context.Context
value []DeviceManagementSettingCategory
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -5923,9 +5977,9 @@ func (r *DeviceManagementComplianceManagementPartnersCollectionRequest) Paging(c
}
var values []ComplianceManagementPartner
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -5938,6 +5992,7 @@ func (r *DeviceManagementComplianceManagementPartnersCollectionRequest) Paging(c
value []ComplianceManagementPartner
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -6032,9 +6087,9 @@ func (r *DeviceManagementDataSharingConsentsCollectionRequest) Paging(ctx contex
}
var values []DataSharingConsent
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -6047,6 +6102,7 @@ func (r *DeviceManagementDataSharingConsentsCollectionRequest) Paging(ctx contex
value []DataSharingConsent
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -6134,9 +6190,9 @@ func (r *DeviceManagementDepOnboardingSettingsCollectionRequest) Paging(ctx cont
}
var values []DepOnboardingSetting
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -6149,6 +6205,7 @@ func (r *DeviceManagementDepOnboardingSettingsCollectionRequest) Paging(ctx cont
value []DepOnboardingSetting
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -6236,9 +6293,9 @@ func (r *DeviceManagementDerivedCredentialsCollectionRequest) Paging(ctx context
}
var values []DeviceManagementDerivedCredentialSettings
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -6251,6 +6308,7 @@ func (r *DeviceManagementDerivedCredentialsCollectionRequest) Paging(ctx context
value []DeviceManagementDerivedCredentialSettings
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -6338,9 +6396,9 @@ func (r *DeviceManagementDetectedAppsCollectionRequest) Paging(ctx context.Conte
}
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 {
@@ -6353,6 +6411,7 @@ func (r *DeviceManagementDetectedAppsCollectionRequest) Paging(ctx context.Conte
value []DetectedApp
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -6440,9 +6499,9 @@ func (r *DeviceManagementDeviceCategoriesCollectionRequest) Paging(ctx context.C
}
var values []DeviceCategory
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -6455,6 +6514,7 @@ func (r *DeviceManagementDeviceCategoriesCollectionRequest) Paging(ctx context.C
value []DeviceCategory
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -6542,9 +6602,9 @@ func (r *DeviceManagementDeviceCompliancePoliciesCollectionRequest) Paging(ctx c
}
var values []DeviceCompliancePolicy
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -6557,6 +6617,7 @@ func (r *DeviceManagementDeviceCompliancePoliciesCollectionRequest) Paging(ctx c
value []DeviceCompliancePolicy
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -6651,9 +6712,9 @@ func (r *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRe
}
var values []DeviceCompliancePolicySettingStateSummary
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -6666,6 +6727,7 @@ func (r *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRe
value []DeviceCompliancePolicySettingStateSummary
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -6753,9 +6815,9 @@ func (r *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest) Pa
}
var values []DeviceConfigurationConflictSummary
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -6768,6 +6830,7 @@ func (r *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest) Pa
value []DeviceConfigurationConflictSummary
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -6862,9 +6925,9 @@ func (r *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRe
}
var values []RestrictedAppsViolation
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -6877,6 +6940,7 @@ func (r *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRe
value []RestrictedAppsViolation
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -6971,9 +7035,9 @@ func (r *DeviceManagementDeviceConfigurationsCollectionRequest) Paging(ctx conte
}
var values []DeviceConfiguration
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -6986,6 +7050,7 @@ func (r *DeviceManagementDeviceConfigurationsCollectionRequest) Paging(ctx conte
value []DeviceConfiguration
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -7073,9 +7138,9 @@ func (r *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCo
}
var values []ManagedAllDeviceCertificateState
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -7088,6 +7153,7 @@ func (r *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCo
value []ManagedAllDeviceCertificateState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -7175,9 +7241,9 @@ func (r *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest) Paging
}
var values []DeviceEnrollmentConfiguration
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -7190,6 +7256,7 @@ func (r *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest) Paging
value []DeviceEnrollmentConfiguration
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -7277,9 +7344,9 @@ func (r *DeviceManagementDeviceHealthScriptsCollectionRequest) Paging(ctx contex
}
var values []DeviceHealthScript
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -7292,6 +7359,7 @@ func (r *DeviceManagementDeviceHealthScriptsCollectionRequest) Paging(ctx contex
value []DeviceHealthScript
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -7379,9 +7447,9 @@ func (r *DeviceManagementDeviceManagementPartnersCollectionRequest) Paging(ctx c
}
var values []DeviceManagementPartner
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -7394,6 +7462,7 @@ func (r *DeviceManagementDeviceManagementPartnersCollectionRequest) Paging(ctx c
value []DeviceManagementPartner
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -7481,9 +7550,9 @@ func (r *DeviceManagementDeviceManagementScriptsCollectionRequest) Paging(ctx co
}
var values []DeviceManagementScript
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -7496,6 +7565,7 @@ func (r *DeviceManagementDeviceManagementScriptsCollectionRequest) Paging(ctx co
value []DeviceManagementScript
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -7583,9 +7653,9 @@ func (r *DeviceManagementDomainJoinConnectorsCollectionRequest) Paging(ctx conte
}
var values []DeviceManagementDomainJoinConnector
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -7598,6 +7668,7 @@ func (r *DeviceManagementDomainJoinConnectorsCollectionRequest) Paging(ctx conte
value []DeviceManagementDomainJoinConnector
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -7685,9 +7756,9 @@ func (r *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest) Paging
}
var values []EmbeddedSIMActivationCodePool
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -7700,6 +7771,7 @@ func (r *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest) Paging
value []EmbeddedSIMActivationCodePool
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -7787,9 +7859,9 @@ func (r *DeviceManagementExchangeConnectorsCollectionRequest) Paging(ctx context
}
var values []DeviceManagementExchangeConnector
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -7802,6 +7874,7 @@ func (r *DeviceManagementExchangeConnectorsCollectionRequest) Paging(ctx context
value []DeviceManagementExchangeConnector
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -7889,9 +7962,9 @@ func (r *DeviceManagementExchangeOnPremisesPoliciesCollectionRequest) Paging(ctx
}
var values []DeviceManagementExchangeOnPremisesPolicy
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -7904,6 +7977,7 @@ func (r *DeviceManagementExchangeOnPremisesPoliciesCollectionRequest) Paging(ctx
value []DeviceManagementExchangeOnPremisesPolicy
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -7998,9 +8072,9 @@ func (r *DeviceManagementGroupPolicyConfigurationsCollectionRequest) Paging(ctx
}
var values []GroupPolicyConfiguration
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -8013,6 +8087,7 @@ func (r *DeviceManagementGroupPolicyConfigurationsCollectionRequest) Paging(ctx
value []GroupPolicyConfiguration
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -8100,9 +8175,9 @@ func (r *DeviceManagementGroupPolicyDefinitionFilesCollectionRequest) Paging(ctx
}
var values []GroupPolicyDefinitionFile
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -8115,6 +8190,7 @@ func (r *DeviceManagementGroupPolicyDefinitionFilesCollectionRequest) Paging(ctx
value []GroupPolicyDefinitionFile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -8202,9 +8278,9 @@ func (r *DeviceManagementGroupPolicyDefinitionsCollectionRequest) Paging(ctx con
}
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 {
@@ -8217,6 +8293,7 @@ func (r *DeviceManagementGroupPolicyDefinitionsCollectionRequest) Paging(ctx con
value []GroupPolicyDefinition
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -8304,9 +8381,9 @@ func (r *DeviceManagementGroupPolicyMigrationReportsCollectionRequest) Paging(ct
}
var values []GroupPolicyMigrationReport
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -8319,6 +8396,7 @@ func (r *DeviceManagementGroupPolicyMigrationReportsCollectionRequest) Paging(ct
value []GroupPolicyMigrationReport
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -8406,9 +8484,9 @@ func (r *DeviceManagementImportedDeviceIdentitiesCollectionRequest) Paging(ctx c
}
var values []ImportedDeviceIdentity
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -8421,6 +8499,7 @@ func (r *DeviceManagementImportedDeviceIdentitiesCollectionRequest) Paging(ctx c
value []ImportedDeviceIdentity
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -8508,9 +8587,9 @@ func (r *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionReque
}
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 {
@@ -8523,6 +8602,7 @@ func (r *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionReque
value []ImportedWindowsAutopilotDeviceIdentity
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -8610,9 +8690,9 @@ func (r *DeviceManagementIntentsCollectionRequest) Paging(ctx context.Context, m
}
var values []DeviceManagementIntent
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -8625,6 +8705,7 @@ func (r *DeviceManagementIntentsCollectionRequest) Paging(ctx context.Context, m
value []DeviceManagementIntent
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -8712,9 +8793,9 @@ func (r *DeviceManagementIntuneBrandingProfilesCollectionRequest) Paging(ctx con
}
var values []IntuneBrandingProfile
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -8727,6 +8808,7 @@ func (r *DeviceManagementIntuneBrandingProfilesCollectionRequest) Paging(ctx con
value []IntuneBrandingProfile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -8814,9 +8896,9 @@ func (r *DeviceManagementIOSUpdateStatusesCollectionRequest) Paging(ctx context.
}
var values []IOSUpdateDeviceStatus
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -8829,6 +8911,7 @@ func (r *DeviceManagementIOSUpdateStatusesCollectionRequest) Paging(ctx context.
value []IOSUpdateDeviceStatus
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -8916,9 +8999,9 @@ func (r *DeviceManagementManagedDeviceEncryptionStatesCollectionRequest) Paging(
}
var values []ManagedDeviceEncryptionState
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -8931,6 +9014,7 @@ func (r *DeviceManagementManagedDeviceEncryptionStatesCollectionRequest) Paging(
value []ManagedDeviceEncryptionState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -9025,9 +9109,9 @@ func (r *DeviceManagementManagedDevicesCollectionRequest) Paging(ctx context.Con
}
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 {
@@ -9040,6 +9124,7 @@ func (r *DeviceManagementManagedDevicesCollectionRequest) Paging(ctx context.Con
value []ManagedDevice
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -9127,9 +9212,9 @@ func (r *DeviceManagementManagementConditionStatementsCollectionRequest) Paging(
}
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 {
@@ -9142,6 +9227,7 @@ func (r *DeviceManagementManagementConditionStatementsCollectionRequest) Paging(
value []ManagementConditionStatement
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -9229,9 +9315,9 @@ func (r *DeviceManagementManagementConditionsCollectionRequest) Paging(ctx conte
}
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 {
@@ -9244,6 +9330,7 @@ func (r *DeviceManagementManagementConditionsCollectionRequest) Paging(ctx conte
value []ManagementCondition
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -9331,9 +9418,9 @@ func (r *DeviceManagementMobileAppTroubleshootingEventsCollectionRequest) Paging
}
var values []MobileAppTroubleshootingEvent
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -9346,6 +9433,7 @@ func (r *DeviceManagementMobileAppTroubleshootingEventsCollectionRequest) Paging
value []MobileAppTroubleshootingEvent
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -9433,9 +9521,9 @@ func (r *DeviceManagementMobileThreatDefenseConnectorsCollectionRequest) Paging(
}
var values []MobileThreatDefenseConnector
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -9448,6 +9536,7 @@ func (r *DeviceManagementMobileThreatDefenseConnectorsCollectionRequest) Paging(
value []MobileThreatDefenseConnector
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -9535,9 +9624,9 @@ func (r *DeviceManagementNDESConnectorsCollectionRequest) Paging(ctx context.Con
}
var values []NDESConnector
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -9550,6 +9639,7 @@ func (r *DeviceManagementNDESConnectorsCollectionRequest) Paging(ctx context.Con
value []NDESConnector
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -9637,9 +9727,9 @@ func (r *DeviceManagementNotificationMessageTemplatesCollectionRequest) Paging(c
}
var values []NotificationMessageTemplate
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -9652,6 +9742,7 @@ func (r *DeviceManagementNotificationMessageTemplatesCollectionRequest) Paging(c
value []NotificationMessageTemplate
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -9739,9 +9830,9 @@ func (r *DeviceManagementRemoteActionAuditsCollectionRequest) Paging(ctx context
}
var values []RemoteActionAudit
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -9754,6 +9845,7 @@ func (r *DeviceManagementRemoteActionAuditsCollectionRequest) Paging(ctx context
value []RemoteActionAudit
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -9841,9 +9933,9 @@ func (r *DeviceManagementRemoteAssistancePartnersCollectionRequest) Paging(ctx c
}
var values []RemoteAssistancePartner
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -9856,6 +9948,7 @@ func (r *DeviceManagementRemoteAssistancePartnersCollectionRequest) Paging(ctx c
value []RemoteAssistancePartner
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -9950,9 +10043,9 @@ func (r *DeviceManagementResourceOperationsCollectionRequest) Paging(ctx context
}
var values []ResourceOperation
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -9965,6 +10058,7 @@ func (r *DeviceManagementResourceOperationsCollectionRequest) Paging(ctx context
value []ResourceOperation
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -10052,9 +10146,9 @@ func (r *DeviceManagementRoleAssignmentsCollectionRequest) Paging(ctx context.Co
}
var values []DeviceAndAppManagementRoleAssignment
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -10067,6 +10161,7 @@ func (r *DeviceManagementRoleAssignmentsCollectionRequest) Paging(ctx context.Co
value []DeviceAndAppManagementRoleAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -10154,9 +10249,9 @@ func (r *DeviceManagementRoleDefinitionsCollectionRequest) Paging(ctx context.Co
}
var values []RoleDefinition
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -10169,6 +10264,7 @@ func (r *DeviceManagementRoleDefinitionsCollectionRequest) Paging(ctx context.Co
value []RoleDefinition
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -10256,9 +10352,9 @@ func (r *DeviceManagementRoleScopeTagsCollectionRequest) Paging(ctx context.Cont
}
var values []RoleScopeTag
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -10271,6 +10367,7 @@ func (r *DeviceManagementRoleScopeTagsCollectionRequest) Paging(ctx context.Cont
value []RoleScopeTag
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -10358,9 +10455,9 @@ func (r *DeviceManagementSettingDefinitionsCollectionRequest) Paging(ctx context
}
var values []DeviceManagementSettingDefinition
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -10373,6 +10470,7 @@ func (r *DeviceManagementSettingDefinitionsCollectionRequest) Paging(ctx context
value []DeviceManagementSettingDefinition
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -10467,9 +10565,9 @@ func (r *DeviceManagementTelecomExpenseManagementPartnersCollectionRequest) Pagi
}
var values []TelecomExpenseManagementPartner
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -10482,6 +10580,7 @@ func (r *DeviceManagementTelecomExpenseManagementPartnersCollectionRequest) Pagi
value []TelecomExpenseManagementPartner
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -10569,9 +10668,9 @@ func (r *DeviceManagementTemplatesCollectionRequest) Paging(ctx context.Context,
}
var values []DeviceManagementTemplate
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -10584,6 +10683,7 @@ func (r *DeviceManagementTemplatesCollectionRequest) Paging(ctx context.Context,
value []DeviceManagementTemplate
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -10671,9 +10771,9 @@ func (r *DeviceManagementTermsAndConditionsCollectionRequest) Paging(ctx context
}
var values []TermsAndConditions
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -10686,6 +10786,7 @@ func (r *DeviceManagementTermsAndConditionsCollectionRequest) Paging(ctx context
value []TermsAndConditions
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -10773,9 +10874,9 @@ func (r *DeviceManagementTroubleshootingEventsCollectionRequest) Paging(ctx cont
}
var values []DeviceManagementTroubleshootingEvent
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -10788,6 +10889,7 @@ func (r *DeviceManagementTroubleshootingEventsCollectionRequest) Paging(ctx cont
value []DeviceManagementTroubleshootingEvent
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -10875,9 +10977,9 @@ func (r *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest) Pagi
}
var values []UserExperienceAnalyticsBaseline
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -10890,6 +10992,7 @@ func (r *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest) Pagi
value []UserExperienceAnalyticsBaseline
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -10977,9 +11080,9 @@ func (r *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest) Pag
}
var values []UserExperienceAnalyticsCategory
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -10992,6 +11095,7 @@ func (r *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest) Pag
value []UserExperienceAnalyticsCategory
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -11079,9 +11183,9 @@ func (r *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionReque
}
var values []UserExperienceAnalyticsDevicePerformance
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -11094,6 +11198,7 @@ func (r *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionReque
value []UserExperienceAnalyticsDevicePerformance
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -11181,9 +11286,9 @@ func (r *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRe
}
var values []UserExperienceAnalyticsDeviceStartupHistory
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -11196,6 +11301,7 @@ func (r *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRe
value []UserExperienceAnalyticsDeviceStartupHistory
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -11297,9 +11403,9 @@ func (r *DeviceManagementUserPfxCertificatesCollectionRequest) Paging(ctx contex
}
var values []UserPFXCertificate
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -11312,6 +11418,7 @@ func (r *DeviceManagementUserPfxCertificatesCollectionRequest) Paging(ctx contex
value []UserPFXCertificate
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -11399,9 +11506,9 @@ func (r *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest) Pa
}
var values []WindowsAutopilotDeploymentProfile
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -11414,6 +11521,7 @@ func (r *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest) Pa
value []WindowsAutopilotDeploymentProfile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -11501,9 +11609,9 @@ func (r *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest) Pagi
}
var values []WindowsAutopilotDeviceIdentity
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -11516,6 +11624,7 @@ func (r *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest) Pagi
value []WindowsAutopilotDeviceIdentity
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -11610,9 +11719,9 @@ func (r *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest) Paging(c
}
var values []WindowsFeatureUpdateProfile
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -11625,6 +11734,7 @@ func (r *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest) Paging(c
value []WindowsFeatureUpdateProfile
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -11712,9 +11822,9 @@ func (r *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollect
}
var values []WindowsInformationProtectionAppLearningSummary
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -11727,6 +11837,7 @@ func (r *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollect
value []WindowsInformationProtectionAppLearningSummary
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -11814,9 +11925,9 @@ func (r *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCol
}
var values []WindowsInformationProtectionNetworkLearningSummary
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -11829,6 +11940,7 @@ func (r *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCol
value []WindowsInformationProtectionNetworkLearningSummary
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -11916,9 +12028,9 @@ func (r *DeviceManagementWindowsMalwareInformationCollectionRequest) Paging(ctx
}
var values []WindowsMalwareInformation
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -11931,6 +12043,7 @@ func (r *DeviceManagementWindowsMalwareInformationCollectionRequest) Paging(ctx
value []WindowsMalwareInformation
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -12018,9 +12131,9 @@ func (r *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest) P
}
var values []DeviceManagementSettingInstance
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -12033,6 +12146,7 @@ func (r *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest) P
value []DeviceManagementSettingInstance
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -12120,9 +12234,9 @@ func (r *DeviceManagementCollectionSettingInstanceValueCollectionRequest) Paging
}
var values []DeviceManagementSettingInstance
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -12135,6 +12249,7 @@ func (r *DeviceManagementCollectionSettingInstanceValueCollectionRequest) Paging
value []DeviceManagementSettingInstance
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -12222,9 +12337,9 @@ func (r *DeviceManagementComplexSettingInstanceValueCollectionRequest) Paging(ct
}
var values []DeviceManagementSettingInstance
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -12237,6 +12352,7 @@ func (r *DeviceManagementComplexSettingInstanceValueCollectionRequest) Paging(ct
value []DeviceManagementSettingInstance
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -12331,9 +12447,9 @@ func (r *DeviceManagementIntentAssignmentsCollectionRequest) Paging(ctx context.
}
var values []DeviceManagementIntentAssignment
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -12346,6 +12462,7 @@ func (r *DeviceManagementIntentAssignmentsCollectionRequest) Paging(ctx context.
value []DeviceManagementIntentAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -12433,9 +12550,9 @@ func (r *DeviceManagementIntentCategoriesCollectionRequest) Paging(ctx context.C
}
var values []DeviceManagementIntentSettingCategory
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -12448,6 +12565,7 @@ func (r *DeviceManagementIntentCategoriesCollectionRequest) Paging(ctx context.C
value []DeviceManagementIntentSettingCategory
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -12535,9 +12653,9 @@ func (r *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest) Pag
}
var values []DeviceManagementIntentDeviceSettingStateSummary
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -12550,6 +12668,7 @@ func (r *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest) Pag
value []DeviceManagementIntentDeviceSettingStateSummary
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -12644,9 +12763,9 @@ func (r *DeviceManagementIntentDeviceStatesCollectionRequest) Paging(ctx context
}
var values []DeviceManagementIntentDeviceState
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -12659,6 +12778,7 @@ func (r *DeviceManagementIntentDeviceStatesCollectionRequest) Paging(ctx context
value []DeviceManagementIntentDeviceState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -12746,9 +12866,9 @@ func (r *DeviceManagementIntentSettingsCollectionRequest) Paging(ctx context.Con
}
var values []DeviceManagementSettingInstance
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -12761,6 +12881,7 @@ func (r *DeviceManagementIntentSettingsCollectionRequest) Paging(ctx context.Con
value []DeviceManagementSettingInstance
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -12855,9 +12976,9 @@ func (r *DeviceManagementIntentUserStatesCollectionRequest) Paging(ctx context.C
}
var values []DeviceManagementIntentUserState
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -12870,6 +12991,7 @@ func (r *DeviceManagementIntentUserStatesCollectionRequest) Paging(ctx context.C
value []DeviceManagementIntentUserState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -12957,9 +13079,9 @@ func (r *DeviceManagementIntentSettingCategorySettingsCollectionRequest) Paging(
}
var values []DeviceManagementSettingInstance
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -12972,6 +13094,7 @@ func (r *DeviceManagementIntentSettingCategorySettingsCollectionRequest) Paging(
value []DeviceManagementSettingInstance
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -13059,9 +13182,9 @@ func (r *DeviceManagementReportsCachedReportConfigurationsCollectionRequest) Pag
}
var values []DeviceManagementCachedReportConfiguration
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -13074,6 +13197,7 @@ func (r *DeviceManagementReportsCachedReportConfigurationsCollectionRequest) Pag
value []DeviceManagementCachedReportConfiguration
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -13161,9 +13285,9 @@ func (r *DeviceManagementReportsExportJobsCollectionRequest) Paging(ctx context.
}
var values []DeviceManagementExportJob
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -13176,6 +13300,7 @@ func (r *DeviceManagementReportsExportJobsCollectionRequest) Paging(ctx context.
value []DeviceManagementExportJob
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -13263,9 +13388,9 @@ func (r *DeviceManagementReportsReportSchedulesCollectionRequest) Paging(ctx con
}
var values []DeviceManagementReportSchedule
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -13278,6 +13403,7 @@ func (r *DeviceManagementReportsReportSchedulesCollectionRequest) Paging(ctx con
value []DeviceManagementReportSchedule
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -13365,9 +13491,9 @@ func (r *DeviceManagementScriptAssignmentsCollectionRequest) Paging(ctx context.
}
var values []DeviceManagementScriptAssignment
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -13380,6 +13506,7 @@ func (r *DeviceManagementScriptAssignmentsCollectionRequest) Paging(ctx context.
value []DeviceManagementScriptAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -13467,9 +13594,9 @@ func (r *DeviceManagementScriptDeviceRunStatesCollectionRequest) Paging(ctx cont
}
var values []DeviceManagementScriptDeviceState
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -13482,6 +13609,7 @@ func (r *DeviceManagementScriptDeviceRunStatesCollectionRequest) Paging(ctx cont
value []DeviceManagementScriptDeviceState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -13569,9 +13697,9 @@ func (r *DeviceManagementScriptGroupAssignmentsCollectionRequest) Paging(ctx con
}
var values []DeviceManagementScriptGroupAssignment
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -13584,6 +13712,7 @@ func (r *DeviceManagementScriptGroupAssignmentsCollectionRequest) Paging(ctx con
value []DeviceManagementScriptGroupAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -13678,9 +13807,9 @@ func (r *DeviceManagementScriptUserRunStatesCollectionRequest) Paging(ctx contex
}
var values []DeviceManagementScriptUserState
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -13693,6 +13822,7 @@ func (r *DeviceManagementScriptUserRunStatesCollectionRequest) Paging(ctx contex
value []DeviceManagementScriptUserState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -13787,9 +13917,9 @@ func (r *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest) Paging
}
var values []DeviceManagementScriptDeviceState
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -13802,6 +13932,7 @@ func (r *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest) Paging
value []DeviceManagementScriptDeviceState
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -13889,9 +14020,9 @@ func (r *DeviceManagementSettingCategorySettingDefinitionsCollectionRequest) Pag
}
var values []DeviceManagementSettingDefinition
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -13904,6 +14035,7 @@ func (r *DeviceManagementSettingCategorySettingDefinitionsCollectionRequest) Pag
value []DeviceManagementSettingDefinition
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -13991,9 +14123,9 @@ func (r *DeviceManagementTemplateCategoriesCollectionRequest) Paging(ctx context
}
var values []DeviceManagementTemplateSettingCategory
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -14006,6 +14138,7 @@ func (r *DeviceManagementTemplateCategoriesCollectionRequest) Paging(ctx context
value []DeviceManagementTemplateSettingCategory
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -14093,9 +14226,9 @@ func (r *DeviceManagementTemplateMigratableToCollectionRequest) Paging(ctx conte
}
var values []DeviceManagementTemplate
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -14108,6 +14241,7 @@ func (r *DeviceManagementTemplateMigratableToCollectionRequest) Paging(ctx conte
value []DeviceManagementTemplate
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -14195,9 +14329,9 @@ func (r *DeviceManagementTemplateSettingsCollectionRequest) Paging(ctx context.C
}
var values []DeviceManagementSettingInstance
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -14210,6 +14344,7 @@ func (r *DeviceManagementTemplateSettingsCollectionRequest) Paging(ctx context.C
value []DeviceManagementSettingInstance
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -14297,9 +14432,9 @@ func (r *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionReq
}
var values []DeviceManagementSettingInstance
for {
- defer res.Body.Close()
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
+ res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := jsonx.Unmarshal(b, errRes)
if err != nil {
@@ -14312,6 +14447,7 @@ func (r *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionReq
value []DeviceManagementSettingInstance
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}