github.com/yaegashi/msgraph.go@v0.1.4/beta/RequestWorkbookFunctionsHour.go (about) 1 // Code generated by msgraph.go/gen DO NOT EDIT. 2 3 package msgraph 4 5 import "context" 6 7 // 8 type WorkbookFunctionsHourRequestBuilder struct{ BaseRequestBuilder } 9 10 // Hour action undocumented 11 func (b *WorkbookFunctionsRequestBuilder) Hour(reqObj *WorkbookFunctionsHourRequestParameter) *WorkbookFunctionsHourRequestBuilder { 12 bb := &WorkbookFunctionsHourRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} 13 bb.BaseRequestBuilder.baseURL += "/hour" 14 bb.BaseRequestBuilder.requestObject = reqObj 15 return bb 16 } 17 18 // 19 type WorkbookFunctionsHourRequest struct{ BaseRequest } 20 21 // 22 func (b *WorkbookFunctionsHourRequestBuilder) Request() *WorkbookFunctionsHourRequest { 23 return &WorkbookFunctionsHourRequest{ 24 BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, 25 } 26 } 27 28 // 29 func (r *WorkbookFunctionsHourRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { 30 err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) 31 return 32 }