github.com/yaegashi/msgraph.go@v0.1.4/v1.0/RequestWorkbookFunctionsFact.go (about) 1 // Code generated by msgraph.go/gen DO NOT EDIT. 2 3 package msgraph 4 5 import "context" 6 7 // 8 type WorkbookFunctionsFactRequestBuilder struct{ BaseRequestBuilder } 9 10 // Fact action undocumented 11 func (b *WorkbookFunctionsRequestBuilder) Fact(reqObj *WorkbookFunctionsFactRequestParameter) *WorkbookFunctionsFactRequestBuilder { 12 bb := &WorkbookFunctionsFactRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} 13 bb.BaseRequestBuilder.baseURL += "/fact" 14 bb.BaseRequestBuilder.requestObject = reqObj 15 return bb 16 } 17 18 // 19 type WorkbookFunctionsFactRequest struct{ BaseRequest } 20 21 // 22 func (b *WorkbookFunctionsFactRequestBuilder) Request() *WorkbookFunctionsFactRequest { 23 return &WorkbookFunctionsFactRequest{ 24 BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, 25 } 26 } 27 28 // 29 func (r *WorkbookFunctionsFactRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { 30 err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) 31 return 32 } 33 34 // 35 type WorkbookFunctionsFactDoubleRequestBuilder struct{ BaseRequestBuilder } 36 37 // FactDouble action undocumented 38 func (b *WorkbookFunctionsRequestBuilder) FactDouble(reqObj *WorkbookFunctionsFactDoubleRequestParameter) *WorkbookFunctionsFactDoubleRequestBuilder { 39 bb := &WorkbookFunctionsFactDoubleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} 40 bb.BaseRequestBuilder.baseURL += "/factDouble" 41 bb.BaseRequestBuilder.requestObject = reqObj 42 return bb 43 } 44 45 // 46 type WorkbookFunctionsFactDoubleRequest struct{ BaseRequest } 47 48 // 49 func (b *WorkbookFunctionsFactDoubleRequestBuilder) Request() *WorkbookFunctionsFactDoubleRequest { 50 return &WorkbookFunctionsFactDoubleRequest{ 51 BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, 52 } 53 } 54 55 // 56 func (r *WorkbookFunctionsFactDoubleRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) { 57 err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj) 58 return 59 }