diff options
Diffstat (limited to 'vendor/github.com/yaegashi/msgraph.go/beta/ActionCalendar.go')
-rw-r--r-- | vendor/github.com/yaegashi/msgraph.go/beta/ActionCalendar.go | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionCalendar.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCalendar.go index 231c6b74..e3f345af 100644 --- a/vendor/github.com/yaegashi/msgraph.go/beta/ActionCalendar.go +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCalendar.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 @@ -69,9 +69,9 @@ func (r *CalendarCalendarPermissionsCollectionRequest) Paging(ctx context.Contex } var values []CalendarPermission 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 { @@ -84,6 +84,7 @@ func (r *CalendarCalendarPermissionsCollectionRequest) Paging(ctx context.Contex value []CalendarPermission ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -171,9 +172,9 @@ func (r *CalendarCalendarViewCollectionRequest) Paging(ctx context.Context, meth } var values []Event 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 { @@ -186,6 +187,7 @@ func (r *CalendarCalendarViewCollectionRequest) Paging(ctx context.Context, meth value []Event ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -273,9 +275,9 @@ func (r *CalendarEventsCollectionRequest) Paging(ctx context.Context, method, pa } var values []Event 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 { @@ -288,6 +290,7 @@ func (r *CalendarEventsCollectionRequest) Paging(ctx context.Context, method, pa value []Event ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -375,9 +378,9 @@ func (r *CalendarMultiValueExtendedPropertiesCollectionRequest) Paging(ctx conte } 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 { @@ -390,6 +393,7 @@ func (r *CalendarMultiValueExtendedPropertiesCollectionRequest) Paging(ctx conte value []MultiValueLegacyExtendedProperty ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -477,9 +481,9 @@ func (r *CalendarSingleValueExtendedPropertiesCollectionRequest) Paging(ctx cont } 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 { @@ -492,6 +496,7 @@ func (r *CalendarSingleValueExtendedPropertiesCollectionRequest) Paging(ctx cont value []SingleValueLegacyExtendedProperty ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -579,9 +584,9 @@ func (r *CalendarGroupCalendarsCollectionRequest) Paging(ctx context.Context, me } var values []Calendar 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 { @@ -594,6 +599,7 @@ func (r *CalendarGroupCalendarsCollectionRequest) Paging(ctx context.Context, me value []Calendar ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } |