diff options
Diffstat (limited to 'vendor/github.com/yaegashi/msgraph.go/beta/ActionDrive.go')
-rw-r--r-- | vendor/github.com/yaegashi/msgraph.go/beta/ActionDrive.go | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDrive.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDrive.go index 6d1d455f..1442937c 100644 --- a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDrive.go +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDrive.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 @@ -158,9 +158,9 @@ func (r *DriveActivitiesCollectionRequest) Paging(ctx context.Context, method, p } var values []ItemActivityOLD for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -173,6 +173,7 @@ func (r *DriveActivitiesCollectionRequest) Paging(ctx context.Context, method, p value []ItemActivityOLD ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -260,9 +261,9 @@ func (r *DriveBundlesCollectionRequest) Paging(ctx context.Context, method, path } var values []DriveItem for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -275,6 +276,7 @@ func (r *DriveBundlesCollectionRequest) Paging(ctx context.Context, method, path value []DriveItem ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -362,9 +364,9 @@ func (r *DriveFollowingCollectionRequest) Paging(ctx context.Context, method, pa } var values []DriveItem for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -377,6 +379,7 @@ func (r *DriveFollowingCollectionRequest) Paging(ctx context.Context, method, pa value []DriveItem ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -464,9 +467,9 @@ func (r *DriveItemsCollectionRequest) Paging(ctx context.Context, method, path s } var values []DriveItem for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -479,6 +482,7 @@ func (r *DriveItemsCollectionRequest) Paging(ctx context.Context, method, path s value []DriveItem ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -580,9 +584,9 @@ func (r *DriveSpecialCollectionRequest) Paging(ctx context.Context, method, path } var values []DriveItem for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -595,6 +599,7 @@ func (r *DriveSpecialCollectionRequest) Paging(ctx context.Context, method, path value []DriveItem ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -682,9 +687,9 @@ func (r *DriveItemActivitiesCollectionRequest) Paging(ctx context.Context, metho } var values []ItemActivityOLD for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -697,6 +702,7 @@ func (r *DriveItemActivitiesCollectionRequest) Paging(ctx context.Context, metho value []ItemActivityOLD ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -791,9 +797,9 @@ func (r *DriveItemChildrenCollectionRequest) Paging(ctx context.Context, method, } var values []DriveItem for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -806,6 +812,7 @@ func (r *DriveItemChildrenCollectionRequest) Paging(ctx context.Context, method, value []DriveItem ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -907,9 +914,9 @@ func (r *DriveItemPermissionsCollectionRequest) Paging(ctx context.Context, meth } var values []Permission for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -922,6 +929,7 @@ func (r *DriveItemPermissionsCollectionRequest) Paging(ctx context.Context, meth value []Permission ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -1009,9 +1017,9 @@ func (r *DriveItemSubscriptionsCollectionRequest) Paging(ctx context.Context, me } var values []Subscription for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -1024,6 +1032,7 @@ func (r *DriveItemSubscriptionsCollectionRequest) Paging(ctx context.Context, me value []Subscription ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -1111,9 +1120,9 @@ func (r *DriveItemThumbnailsCollectionRequest) Paging(ctx context.Context, metho } var values []ThumbnailSet for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -1126,6 +1135,7 @@ func (r *DriveItemThumbnailsCollectionRequest) Paging(ctx context.Context, metho value []ThumbnailSet ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -1213,9 +1223,9 @@ func (r *DriveItemVersionsCollectionRequest) Paging(ctx context.Context, method, } var values []DriveItemVersion for { - defer res.Body.Close() if res.StatusCode != http.StatusOK { b, _ := ioutil.ReadAll(res.Body) + res.Body.Close() errRes := &ErrorResponse{Response: res} err := jsonx.Unmarshal(b, errRes) if err != nil { @@ -1228,6 +1238,7 @@ func (r *DriveItemVersionsCollectionRequest) Paging(ctx context.Context, method, value []DriveItemVersion ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } |