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/ActionSite.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/ActionSite.go')
-rw-r--r-- | vendor/github.com/yaegashi/msgraph.go/beta/ActionSite.go | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSite.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSite.go index 31140197..1eb84437 100644 --- a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSite.go +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSite.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 *SiteColumnsCollectionRequest) Paging(ctx context.Context, method, path } var values []ColumnDefinition 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 *SiteColumnsCollectionRequest) Paging(ctx context.Context, method, path value []ColumnDefinition ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -178,9 +179,9 @@ func (r *SiteContentTypesCollectionRequest) Paging(ctx context.Context, method, } var values []ContentType 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 *SiteContentTypesCollectionRequest) Paging(ctx context.Context, method, value []ContentType ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -287,9 +289,9 @@ func (r *SiteDrivesCollectionRequest) Paging(ctx context.Context, method, path s } var values []Drive 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 { @@ -302,6 +304,7 @@ func (r *SiteDrivesCollectionRequest) Paging(ctx context.Context, method, path s value []Drive ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -389,9 +392,9 @@ func (r *SiteItemsCollectionRequest) Paging(ctx context.Context, method, path st } var values []BaseItem 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 { @@ -404,6 +407,7 @@ func (r *SiteItemsCollectionRequest) Paging(ctx context.Context, method, path st value []BaseItem ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -491,9 +495,9 @@ func (r *SiteListsCollectionRequest) Paging(ctx context.Context, method, path st } var values []List 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 { @@ -506,6 +510,7 @@ func (r *SiteListsCollectionRequest) Paging(ctx context.Context, method, path st value []List ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -600,9 +605,9 @@ func (r *SitePagesCollectionRequest) Paging(ctx context.Context, method, path st } var values []SitePage 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 { @@ -615,6 +620,7 @@ func (r *SitePagesCollectionRequest) Paging(ctx context.Context, method, path st value []SitePage ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -702,9 +708,9 @@ func (r *SiteSitesCollectionRequest) Paging(ctx context.Context, method, path st } var values []Site 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 { @@ -717,6 +723,7 @@ func (r *SiteSitesCollectionRequest) Paging(ctx context.Context, method, path st value []Site ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } |