diff options
Diffstat (limited to 'vendor/github.com/yaegashi/msgraph.go/beta/ActionWorkbook.go')
-rw-r--r-- | vendor/github.com/yaegashi/msgraph.go/beta/ActionWorkbook.go | 47 |
1 files changed, 31 insertions, 16 deletions
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionWorkbook.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWorkbook.go index 296dffc8..47f2c4ee 100644 --- a/vendor/github.com/yaegashi/msgraph.go/beta/ActionWorkbook.go +++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWorkbook.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 @@ -3443,9 +3443,9 @@ func (r *WorkbookCommentsCollectionRequest) Paging(ctx context.Context, method, } var values []WorkbookComment 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 { @@ -3458,6 +3458,7 @@ func (r *WorkbookCommentsCollectionRequest) Paging(ctx context.Context, method, value []WorkbookComment ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -3552,9 +3553,9 @@ func (r *WorkbookNamesCollectionRequest) Paging(ctx context.Context, method, pat } var values []WorkbookNamedItem 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 { @@ -3567,6 +3568,7 @@ func (r *WorkbookNamesCollectionRequest) Paging(ctx context.Context, method, pat value []WorkbookNamedItem ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -3654,9 +3656,9 @@ func (r *WorkbookTablesCollectionRequest) Paging(ctx context.Context, method, pa } var values []WorkbookTable 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 { @@ -3669,6 +3671,7 @@ func (r *WorkbookTablesCollectionRequest) Paging(ctx context.Context, method, pa value []WorkbookTable ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -3756,9 +3759,9 @@ func (r *WorkbookWorksheetsCollectionRequest) Paging(ctx context.Context, method } var values []WorkbookWorksheet 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 { @@ -3771,6 +3774,7 @@ func (r *WorkbookWorksheetsCollectionRequest) Paging(ctx context.Context, method value []WorkbookWorksheet ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -3886,9 +3890,9 @@ func (r *WorkbookChartSeriesCollectionRequest) Paging(ctx context.Context, metho } var values []WorkbookChartSeries 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 { @@ -3901,6 +3905,7 @@ func (r *WorkbookChartSeriesCollectionRequest) Paging(ctx context.Context, metho value []WorkbookChartSeries ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -4170,9 +4175,9 @@ func (r *WorkbookChartSeriesPointsCollectionRequest) Paging(ctx context.Context, } var values []WorkbookChartPoint 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 { @@ -4185,6 +4190,7 @@ func (r *WorkbookChartSeriesPointsCollectionRequest) Paging(ctx context.Context, value []WorkbookChartPoint ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -4307,9 +4313,9 @@ func (r *WorkbookCommentRepliesCollectionRequest) Paging(ctx context.Context, me } var values []WorkbookCommentReply 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 { @@ -4322,6 +4328,7 @@ func (r *WorkbookCommentRepliesCollectionRequest) Paging(ctx context.Context, me value []WorkbookCommentReply ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -4444,9 +4451,9 @@ func (r *WorkbookRangeFormatBordersCollectionRequest) Paging(ctx context.Context } var values []WorkbookRangeBorder 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 { @@ -4459,6 +4466,7 @@ func (r *WorkbookRangeFormatBordersCollectionRequest) Paging(ctx context.Context value []WorkbookRangeBorder ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -4567,9 +4575,9 @@ func (r *WorkbookRangeViewRowsCollectionRequest) Paging(ctx context.Context, met } var values []WorkbookRangeView 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 { @@ -4582,6 +4590,7 @@ func (r *WorkbookRangeViewRowsCollectionRequest) Paging(ctx context.Context, met value []WorkbookRangeView ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -4669,9 +4678,9 @@ func (r *WorkbookTableColumnsCollectionRequest) Paging(ctx context.Context, meth } var values []WorkbookTableColumn 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 { @@ -4684,6 +4693,7 @@ func (r *WorkbookTableColumnsCollectionRequest) Paging(ctx context.Context, meth value []WorkbookTableColumn ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -4771,9 +4781,9 @@ func (r *WorkbookTableRowsCollectionRequest) Paging(ctx context.Context, method, } var values []WorkbookTableRow 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 { @@ -4786,6 +4796,7 @@ func (r *WorkbookTableRowsCollectionRequest) Paging(ctx context.Context, method, value []WorkbookTableRow ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -4894,9 +4905,9 @@ func (r *WorkbookWorksheetChartsCollectionRequest) Paging(ctx context.Context, m } var values []WorkbookChart 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 { @@ -4909,6 +4920,7 @@ func (r *WorkbookWorksheetChartsCollectionRequest) Paging(ctx context.Context, m value []WorkbookChart ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -4996,9 +5008,9 @@ func (r *WorkbookWorksheetNamesCollectionRequest) Paging(ctx context.Context, me } var values []WorkbookNamedItem 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 { @@ -5011,6 +5023,7 @@ func (r *WorkbookWorksheetNamesCollectionRequest) Paging(ctx context.Context, me value []WorkbookNamedItem ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -5098,9 +5111,9 @@ func (r *WorkbookWorksheetPivotTablesCollectionRequest) Paging(ctx context.Conte } var values []WorkbookPivotTable 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 { @@ -5113,6 +5126,7 @@ func (r *WorkbookWorksheetPivotTablesCollectionRequest) Paging(ctx context.Conte value []WorkbookPivotTable ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } @@ -5207,9 +5221,9 @@ func (r *WorkbookWorksheetTablesCollectionRequest) Paging(ctx context.Context, m } var values []WorkbookTable 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 { @@ -5222,6 +5236,7 @@ func (r *WorkbookWorksheetTablesCollectionRequest) Paging(ctx context.Context, m value []WorkbookTable ) err := jsonx.NewDecoder(res.Body).Decode(&paging) + res.Body.Close() if err != nil { return nil, err } |