All URIs are relative to https://api.reveng.ai
| Method | HTTP request | Description |
|---|---|---|
| BatchRenameFunction | Post /v2/functions/rename/batch | Batch Rename Functions |
| BatchRenameFunctions | Post /v3/functions/rename | Batch rename functions |
| GetFunctionHistory | Get /v3/functions/{function_id}/history | Get function name history |
| GetFunctionNameHistory | Get /v2/functions/history/{function_id} | Get Function Name History |
| RenameFunction | Post /v3/functions/{function_id}/rename | Rename a function |
| RenameFunctionId | Post /v2/functions/rename/{function_id} | Rename Function |
| RevertFunctionName | Post /v2/functions/history/{function_id}/{history_id} | Revert the function name |
| RevertFunctionName_0 | Post /v3/functions/{function_id}/history/{history_id}/revert | Revert function name |
BaseResponse BatchRenameFunction(ctx).FunctionsListRename(functionsListRename).Execute()
Batch Rename Functions
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionsListRename := *revengai.NewFunctionsListRename([]revengai.FunctionRenameMap{*revengai.NewFunctionRenameMap(int64(123), "NewName_example", "NewMangledName_example")}) // FunctionsListRename |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsRenamingHistoryAPI.BatchRenameFunction(context.Background()).FunctionsListRename(functionsListRename).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsRenamingHistoryAPI.BatchRenameFunction``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BatchRenameFunction`: BaseResponse
fmt.Fprintf(os.Stdout, "Response from `FunctionsRenamingHistoryAPI.BatchRenameFunction`: %v\n", resp)
}Other parameters are passed through a pointer to a apiBatchRenameFunctionRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| functionsListRename | FunctionsListRename |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BatchRenameOutputBody BatchRenameFunctions(ctx).BatchRenameInputBody(batchRenameInputBody).Execute()
Batch rename functions
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
batchRenameInputBody := *revengai.NewBatchRenameInputBody([]revengai.BatchRenameItem{*revengai.NewBatchRenameItem(int64(123), "NewName_example")}) // BatchRenameInputBody |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsRenamingHistoryAPI.BatchRenameFunctions(context.Background()).BatchRenameInputBody(batchRenameInputBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsRenamingHistoryAPI.BatchRenameFunctions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BatchRenameFunctions`: BatchRenameOutputBody
fmt.Fprintf(os.Stdout, "Response from `FunctionsRenamingHistoryAPI.BatchRenameFunctions`: %v\n", resp)
}Other parameters are passed through a pointer to a apiBatchRenameFunctionsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| batchRenameInputBody | BatchRenameInputBody |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]HistoryEntry GetFunctionHistory(ctx, functionId).Execute()
Get function name history
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | Function ID
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsRenamingHistoryAPI.GetFunctionHistory(context.Background(), functionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsRenamingHistoryAPI.GetFunctionHistory``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetFunctionHistory`: []HistoryEntry
fmt.Fprintf(os.Stdout, "Response from `FunctionsRenamingHistoryAPI.GetFunctionHistory`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | Function ID |
Other parameters are passed through a pointer to a apiGetFunctionHistoryRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseListFunctionNameHistory GetFunctionNameHistory(ctx, functionId).Execute()
Get Function Name History
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int32(56) // int32 |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsRenamingHistoryAPI.GetFunctionNameHistory(context.Background(), functionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsRenamingHistoryAPI.GetFunctionNameHistory``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetFunctionNameHistory`: BaseResponseListFunctionNameHistory
fmt.Fprintf(os.Stdout, "Response from `FunctionsRenamingHistoryAPI.GetFunctionNameHistory`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int32 |
Other parameters are passed through a pointer to a apiGetFunctionNameHistoryRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
BaseResponseListFunctionNameHistory
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RenameOutputBody RenameFunction(ctx, functionId).RenameInputBody(renameInputBody).Execute()
Rename a function
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | Function ID
renameInputBody := *revengai.NewRenameInputBody("NewName_example") // RenameInputBody |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsRenamingHistoryAPI.RenameFunction(context.Background(), functionId).RenameInputBody(renameInputBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsRenamingHistoryAPI.RenameFunction``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RenameFunction`: RenameOutputBody
fmt.Fprintf(os.Stdout, "Response from `FunctionsRenamingHistoryAPI.RenameFunction`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | Function ID |
Other parameters are passed through a pointer to a apiRenameFunctionRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
renameInputBody | RenameInputBody | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponse RenameFunctionId(ctx, functionId).FunctionRename(functionRename).Execute()
Rename Function
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int32(56) // int32 |
functionRename := *revengai.NewFunctionRename("NewName_example", "NewMangledName_example") // FunctionRename |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsRenamingHistoryAPI.RenameFunctionId(context.Background(), functionId).FunctionRename(functionRename).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsRenamingHistoryAPI.RenameFunctionId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RenameFunctionId`: BaseResponse
fmt.Fprintf(os.Stdout, "Response from `FunctionsRenamingHistoryAPI.RenameFunctionId`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int32 |
Other parameters are passed through a pointer to a apiRenameFunctionIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
functionRename | FunctionRename | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponse RevertFunctionName(ctx, functionId, historyId).Execute()
Revert the function name
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int32(56) // int32 |
historyId := int32(56) // int32 |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsRenamingHistoryAPI.RevertFunctionName(context.Background(), functionId, historyId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsRenamingHistoryAPI.RevertFunctionName``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RevertFunctionName`: BaseResponse
fmt.Fprintf(os.Stdout, "Response from `FunctionsRenamingHistoryAPI.RevertFunctionName`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int32 | ||
| historyId | int32 |
Other parameters are passed through a pointer to a apiRevertFunctionNameRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} RevertFunctionName_0(ctx, functionId, historyId).Execute()
Revert function name
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | Function ID
historyId := int64(789) // int64 | History ID to revert to
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsRenamingHistoryAPI.RevertFunctionName_0(context.Background(), functionId, historyId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsRenamingHistoryAPI.RevertFunctionName_0``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RevertFunctionName_0`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `FunctionsRenamingHistoryAPI.RevertFunctionName_0`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | Function ID | |
| historyId | int64 | History ID to revert to |
Other parameters are passed through a pointer to a apiRevertFunctionName_1Request struct via the builder pattern
| Name | Type | Description | Notes |
|---|
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]