summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/yaegashi/msgraph.go/beta/ActionOffice.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/yaegashi/msgraph.go/beta/ActionOffice.go')
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionOffice.go17
1 files changed, 11 insertions, 6 deletions
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionOffice.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOffice.go
index a2fdcd2d..32a0b42e 100644
--- a/vendor/github.com/yaegashi/msgraph.go/beta/ActionOffice.go
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOffice.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
@@ -67,9 +67,9 @@ func (r *OfficeClientConfigurationAssignmentsCollectionRequest) Paging(ctx conte
}
var values []OfficeClientConfigurationAssignment
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 {
@@ -82,6 +82,7 @@ func (r *OfficeClientConfigurationAssignmentsCollectionRequest) Paging(ctx conte
value []OfficeClientConfigurationAssignment
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -169,9 +170,9 @@ func (r *OfficeConfigurationClientConfigurationsCollectionRequest) Paging(ctx co
}
var values []OfficeClientConfiguration
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 {
@@ -184,6 +185,7 @@ func (r *OfficeConfigurationClientConfigurationsCollectionRequest) Paging(ctx co
value []OfficeClientConfiguration
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -271,9 +273,9 @@ func (r *OfficeGraphInsightsSharedCollectionRequest) Paging(ctx context.Context,
}
var values []SharedInsight
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 {
@@ -286,6 +288,7 @@ func (r *OfficeGraphInsightsSharedCollectionRequest) Paging(ctx context.Context,
value []SharedInsight
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -373,9 +376,9 @@ func (r *OfficeGraphInsightsTrendingCollectionRequest) Paging(ctx context.Contex
}
var values []Trending
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 {
@@ -388,6 +391,7 @@ func (r *OfficeGraphInsightsTrendingCollectionRequest) Paging(ctx context.Contex
value []Trending
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}
@@ -475,9 +479,9 @@ func (r *OfficeGraphInsightsUsedCollectionRequest) Paging(ctx context.Context, m
}
var values []UsedInsight
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 {
@@ -490,6 +494,7 @@ func (r *OfficeGraphInsightsUsedCollectionRequest) Paging(ctx context.Context, m
value []UsedInsight
)
err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ res.Body.Close()
if err != nil {
return nil, err
}