From 2f59abdda7a1072036ea1fdb4c859cccbb56efa6 Mon Sep 17 00:00:00 2001 From: Wim Date: Fri, 4 Sep 2020 23:29:13 +0200 Subject: Update vendor (#1228) --- .../yaegashi/msgraph.go/beta/ActionManaged.go | 53 ++++++++++++++-------- 1 file changed, 35 insertions(+), 18 deletions(-) (limited to 'vendor/github.com/yaegashi/msgraph.go/beta/ActionManaged.go') diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionManaged.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionManaged.go index 4bd06143..562942fc 100644 --- a/vendor/github.com/yaegashi/msgraph.go/beta/ActionManaged.go +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionManaged.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 @@ -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 } -- cgit v1.2.3