// Code generated by msgraph-generate.go DO NOT EDIT. package msgraph import "context" // OutlookCategoryRequestBuilder is request builder for OutlookCategory type OutlookCategoryRequestBuilder struct{ BaseRequestBuilder } // Request returns OutlookCategoryRequest func (b *OutlookCategoryRequestBuilder) Request() *OutlookCategoryRequest { return &OutlookCategoryRequest{ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, } } // OutlookCategoryRequest is request for OutlookCategory type OutlookCategoryRequest struct{ BaseRequest } // Get performs GET request for OutlookCategory func (r *OutlookCategoryRequest) Get(ctx context.Context) (resObj *OutlookCategory, err error) { var query string if r.query != nil { query = "?" + r.query.Encode() } err = r.JSONRequest(ctx, "GET", query, nil, &resObj) return } // Update performs PATCH request for OutlookCategory func (r *OutlookCategoryRequest) Update(ctx context.Context, reqObj *OutlookCategory) error { return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) } // Delete performs DELETE request for OutlookCategory func (r *OutlookCategoryRequest) Delete(ctx context.Context) error { return r.JSONRequest(ctx, "DELETE", "", nil, nil) }