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/ActionPlanner.go | 38 ++++++++++++++-------- 1 file changed, 25 insertions(+), 13 deletions(-) (limited to 'vendor/github.com/yaegashi/msgraph.go/beta/ActionPlanner.go') diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionPlanner.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPlanner.go index 65002db3..94cb6102 100644 --- a/vendor/github.com/yaegashi/msgraph.go/beta/ActionPlanner.go +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPlanner.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 @@ -53,9 +53,9 @@ func (r *PlannerBucketsCollectionRequest) Paging(ctx context.Context, method, pa } var values []PlannerBucket for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -68,6 +68,7 @@ func (r *PlannerBucketsCollectionRequest) Paging(ctx context.Context, method, pa value []PlannerBucket ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -155,9 +156,9 @@ func (r *PlannerPlansCollectionRequest) Paging(ctx context.Context, method, path } var values []PlannerPlan for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -170,6 +171,7 @@ func (r *PlannerPlansCollectionRequest) Paging(ctx context.Context, method, path value []PlannerPlan ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -257,9 +259,9 @@ func (r *PlannerTasksCollectionRequest) Paging(ctx context.Context, method, path } var values []PlannerTask for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -272,6 +274,7 @@ func (r *PlannerTasksCollectionRequest) Paging(ctx context.Context, method, path value []PlannerTask ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -359,9 +362,9 @@ func (r *PlannerBucketTasksCollectionRequest) Paging(ctx context.Context, method } var values []PlannerTask for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -374,6 +377,7 @@ func (r *PlannerBucketTasksCollectionRequest) Paging(ctx context.Context, method value []PlannerTask ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -461,9 +465,9 @@ func (r *PlannerGroupPlansCollectionRequest) Paging(ctx context.Context, method, } var values []PlannerPlan for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -476,6 +480,7 @@ func (r *PlannerGroupPlansCollectionRequest) Paging(ctx context.Context, method, value []PlannerPlan ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -563,9 +568,9 @@ func (r *PlannerPlanBucketsCollectionRequest) Paging(ctx context.Context, method } var values []PlannerBucket for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -578,6 +583,7 @@ func (r *PlannerPlanBucketsCollectionRequest) Paging(ctx context.Context, method value []PlannerBucket ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -672,9 +678,9 @@ func (r *PlannerPlanTasksCollectionRequest) Paging(ctx context.Context, method, } var values []PlannerTask for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -687,6 +693,7 @@ func (r *PlannerPlanTasksCollectionRequest) Paging(ctx context.Context, method, value []PlannerTask ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -802,9 +809,9 @@ func (r *PlannerUserAllCollectionRequest) Paging(ctx context.Context, method, pa } var values []PlannerDelta for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -817,6 +824,7 @@ func (r *PlannerUserAllCollectionRequest) Paging(ctx context.Context, method, pa value []PlannerDelta ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -904,9 +912,9 @@ func (r *PlannerUserFavoritePlansCollectionRequest) Paging(ctx context.Context, } var values []PlannerPlan for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -919,6 +927,7 @@ func (r *PlannerUserFavoritePlansCollectionRequest) Paging(ctx context.Context, value []PlannerPlan ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -1006,9 +1015,9 @@ func (r *PlannerUserPlansCollectionRequest) Paging(ctx context.Context, method, } var values []PlannerPlan for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -1021,6 +1030,7 @@ func (r *PlannerUserPlansCollectionRequest) Paging(ctx context.Context, method, value []PlannerPlan ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -1108,9 +1118,9 @@ func (r *PlannerUserRecentPlansCollectionRequest) Paging(ctx context.Context, me } var values []PlannerPlan for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -1123,6 +1133,7 @@ func (r *PlannerUserRecentPlansCollectionRequest) Paging(ctx context.Context, me value []PlannerPlan ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -1210,9 +1221,9 @@ func (r *PlannerUserTasksCollectionRequest) Paging(ctx context.Context, method, } var values []PlannerTask for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -1225,6 +1236,7 @@ func (r *PlannerUserTasksCollectionRequest) Paging(ctx context.Context, method, value []PlannerTask ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } -- cgit v1.2.3