// Code generated by msgraph-generate.go DO NOT EDIT.

package msgraph

import "context"

//
type WorkbookFunctionsComplexRequestBuilder struct{ BaseRequestBuilder }

// Complex action undocumented
func (b *WorkbookFunctionsRequestBuilder) Complex(reqObj *WorkbookFunctionsComplexRequestParameter) *WorkbookFunctionsComplexRequestBuilder {
	bb := &WorkbookFunctionsComplexRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
	bb.BaseRequestBuilder.baseURL += "/complex"
	bb.BaseRequestBuilder.requestObject = reqObj
	return bb
}

//
type WorkbookFunctionsComplexRequest struct{ BaseRequest }

//
func (b *WorkbookFunctionsComplexRequestBuilder) Request() *WorkbookFunctionsComplexRequest {
	return &WorkbookFunctionsComplexRequest{
		BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
	}
}

//
func (r *WorkbookFunctionsComplexRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
	err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
	return
}
