diff options
Diffstat (limited to 'vendor/github.com/yaegashi/msgraph.go/beta/ActionMail.go')
-rw-r--r-- | vendor/github.com/yaegashi/msgraph.go/beta/ActionMail.go | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionMail.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMail.go index de4a460b..8b03c05d 100644 --- a/vendor/github.com/yaegashi/msgraph.go/beta/ActionMail.go +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMail.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 @@ -65,9 +65,9 @@ func (r *MailFolderChildFoldersCollectionRequest) Paging(ctx context.Context, me } var values []MailFolder 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 { @@ -80,6 +80,7 @@ func (r *MailFolderChildFoldersCollectionRequest) Paging(ctx context.Context, me value []MailFolder ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -167,9 +168,9 @@ func (r *MailFolderMessageRulesCollectionRequest) Paging(ctx context.Context, me } var values []MessageRule 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 { @@ -182,6 +183,7 @@ func (r *MailFolderMessageRulesCollectionRequest) Paging(ctx context.Context, me value []MessageRule ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -269,9 +271,9 @@ func (r *MailFolderMessagesCollectionRequest) Paging(ctx context.Context, method } var values []Message 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 { @@ -284,6 +286,7 @@ func (r *MailFolderMessagesCollectionRequest) Paging(ctx context.Context, method value []Message ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -371,9 +374,9 @@ func (r *MailFolderMultiValueExtendedPropertiesCollectionRequest) Paging(ctx con } var values []MultiValueLegacyExtendedProperty 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 { @@ -386,6 +389,7 @@ func (r *MailFolderMultiValueExtendedPropertiesCollectionRequest) Paging(ctx con value []MultiValueLegacyExtendedProperty ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -473,9 +477,9 @@ func (r *MailFolderSingleValueExtendedPropertiesCollectionRequest) Paging(ctx co } var values []SingleValueLegacyExtendedProperty 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 { @@ -488,6 +492,7 @@ func (r *MailFolderSingleValueExtendedPropertiesCollectionRequest) Paging(ctx co value []SingleValueLegacyExtendedProperty ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -575,9 +580,9 @@ func (r *MailFolderUserConfigurationsCollectionRequest) Paging(ctx context.Conte } var values []UserConfiguration 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 { @@ -590,6 +595,7 @@ func (r *MailFolderUserConfigurationsCollectionRequest) Paging(ctx context.Conte value []UserConfiguration ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } |