github.com/yaegashi/msgraph.go@v0.1.4/beta/RequestWorkbookFunctionsHex2.go (about)

     1  // Code generated by msgraph.go/gen DO NOT EDIT.
     2  
     3  package msgraph
     4  
     5  import "context"
     6  
     7  //
     8  type WorkbookFunctionsHex2BinRequestBuilder struct{ BaseRequestBuilder }
     9  
    10  // Hex2Bin action undocumented
    11  func (b *WorkbookFunctionsRequestBuilder) Hex2Bin(reqObj *WorkbookFunctionsHex2BinRequestParameter) *WorkbookFunctionsHex2BinRequestBuilder {
    12  	bb := &WorkbookFunctionsHex2BinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
    13  	bb.BaseRequestBuilder.baseURL += "/hex2Bin"
    14  	bb.BaseRequestBuilder.requestObject = reqObj
    15  	return bb
    16  }
    17  
    18  //
    19  type WorkbookFunctionsHex2BinRequest struct{ BaseRequest }
    20  
    21  //
    22  func (b *WorkbookFunctionsHex2BinRequestBuilder) Request() *WorkbookFunctionsHex2BinRequest {
    23  	return &WorkbookFunctionsHex2BinRequest{
    24  		BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
    25  	}
    26  }
    27  
    28  //
    29  func (r *WorkbookFunctionsHex2BinRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
    30  	err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
    31  	return
    32  }
    33  
    34  //
    35  type WorkbookFunctionsHex2DecRequestBuilder struct{ BaseRequestBuilder }
    36  
    37  // Hex2Dec action undocumented
    38  func (b *WorkbookFunctionsRequestBuilder) Hex2Dec(reqObj *WorkbookFunctionsHex2DecRequestParameter) *WorkbookFunctionsHex2DecRequestBuilder {
    39  	bb := &WorkbookFunctionsHex2DecRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
    40  	bb.BaseRequestBuilder.baseURL += "/hex2Dec"
    41  	bb.BaseRequestBuilder.requestObject = reqObj
    42  	return bb
    43  }
    44  
    45  //
    46  type WorkbookFunctionsHex2DecRequest struct{ BaseRequest }
    47  
    48  //
    49  func (b *WorkbookFunctionsHex2DecRequestBuilder) Request() *WorkbookFunctionsHex2DecRequest {
    50  	return &WorkbookFunctionsHex2DecRequest{
    51  		BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
    52  	}
    53  }
    54  
    55  //
    56  func (r *WorkbookFunctionsHex2DecRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
    57  	err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
    58  	return
    59  }
    60  
    61  //
    62  type WorkbookFunctionsHex2OctRequestBuilder struct{ BaseRequestBuilder }
    63  
    64  // Hex2Oct action undocumented
    65  func (b *WorkbookFunctionsRequestBuilder) Hex2Oct(reqObj *WorkbookFunctionsHex2OctRequestParameter) *WorkbookFunctionsHex2OctRequestBuilder {
    66  	bb := &WorkbookFunctionsHex2OctRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
    67  	bb.BaseRequestBuilder.baseURL += "/hex2Oct"
    68  	bb.BaseRequestBuilder.requestObject = reqObj
    69  	return bb
    70  }
    71  
    72  //
    73  type WorkbookFunctionsHex2OctRequest struct{ BaseRequest }
    74  
    75  //
    76  func (b *WorkbookFunctionsHex2OctRequestBuilder) Request() *WorkbookFunctionsHex2OctRequest {
    77  	return &WorkbookFunctionsHex2OctRequest{
    78  		BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
    79  	}
    80  }
    81  
    82  //
    83  func (r *WorkbookFunctionsHex2OctRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
    84  	err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
    85  	return
    86  }