diff options
author | Wim <wim@42.be> | 2020-09-04 23:29:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 23:29:13 +0200 |
commit | 2f59abdda7a1072036ea1fdb4c859cccbb56efa6 (patch) | |
tree | e35393f23d12783ae92f0469085efc7dec953f82 /vendor/github.com/yaegashi/msgraph.go/beta/ActionSchedule.go | |
parent | 17747a5c8893fd47ba8eb61dd10477170640caf6 (diff) | |
download | matterbridge-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/ActionSchedule.go')
-rw-r--r-- | vendor/github.com/yaegashi/msgraph.go/beta/ActionSchedule.go | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSchedule.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSchedule.go index 618e8f93..24f13393 100644 --- a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSchedule.go +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSchedule.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 @@ -76,9 +76,9 @@ func (r *ScheduleOpenShiftChangeRequestsCollectionRequest) Paging(ctx context.Co } var values []OpenShiftChangeRequestObject for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -91,6 +91,7 @@ func (r *ScheduleOpenShiftChangeRequestsCollectionRequest) Paging(ctx context.Co value []OpenShiftChangeRequestObject ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -178,9 +179,9 @@ func (r *ScheduleOpenShiftsCollectionRequest) Paging(ctx context.Context, method } var values []OpenShift for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -193,6 +194,7 @@ func (r *ScheduleOpenShiftsCollectionRequest) Paging(ctx context.Context, method value []OpenShift ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -280,9 +282,9 @@ func (r *ScheduleSchedulingGroupsCollectionRequest) Paging(ctx context.Context, } var values []SchedulingGroup for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -295,6 +297,7 @@ func (r *ScheduleSchedulingGroupsCollectionRequest) Paging(ctx context.Context, value []SchedulingGroup ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -382,9 +385,9 @@ func (r *ScheduleShiftsCollectionRequest) Paging(ctx context.Context, method, pa } var values []Shift for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -397,6 +400,7 @@ func (r *ScheduleShiftsCollectionRequest) Paging(ctx context.Context, method, pa value []Shift ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -484,9 +488,9 @@ func (r *ScheduleSwapShiftsChangeRequestsCollectionRequest) Paging(ctx context.C } var values []SwapShiftsChangeRequestObject for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -499,6 +503,7 @@ func (r *ScheduleSwapShiftsChangeRequestsCollectionRequest) Paging(ctx context.C value []SwapShiftsChangeRequestObject ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -586,9 +591,9 @@ func (r *ScheduleTimeOffReasonsCollectionRequest) Paging(ctx context.Context, me } var values []TimeOffReason for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -601,6 +606,7 @@ func (r *ScheduleTimeOffReasonsCollectionRequest) Paging(ctx context.Context, me value []TimeOffReason ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -688,9 +694,9 @@ func (r *ScheduleTimeOffRequestsCollectionRequest) Paging(ctx context.Context, m } var values []TimeOffRequestObject for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -703,6 +709,7 @@ func (r *ScheduleTimeOffRequestsCollectionRequest) Paging(ctx context.Context, m value []TimeOffRequestObject ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -790,9 +797,9 @@ func (r *ScheduleTimesOffCollectionRequest) Paging(ctx context.Context, method, } var values []TimeOff for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -805,6 +812,7 @@ func (r *ScheduleTimesOffCollectionRequest) Paging(ctx context.Context, method, value []TimeOff ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } |