// Code generated by msgraph.go/gen DO NOT EDIT.

package msgraph

import "context"

//
type WorkbookFunctionsDateRequestBuilder struct{ BaseRequestBuilder }

// Date action undocumented
func (b *WorkbookFunctionsRequestBuilder) Date(reqObj *WorkbookFunctionsDateRequestParameter) *WorkbookFunctionsDateRequestBuilder {
	bb := &WorkbookFunctionsDateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
	bb.BaseRequestBuilder.baseURL += "/date"
	bb.BaseRequestBuilder.requestObject = reqObj
	return bb
}

//
type WorkbookFunctionsDateRequest struct{ BaseRequest }

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

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