From 5ddb40bfccb98efd7b5e2aa5849897ecc4799d79 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 14 Jul 2026 05:05:20 +0000 Subject: [PATCH] Update SDK to version v3.116.0 - Generated from OpenAPI spec version v3.116.0 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- README.md | 17 - docs/AiUnstripRequest.md | 56 -- docs/AnalysesCoreAPI.md | 6 +- docs/AnalysisFunctionMatchingRequest.md | 248 ------ docs/AutoUnstripRequest.md | 212 ----- docs/AutoUnstripResponse.md | 236 ----- docs/DynamicExecutionStatusResponse.md | 2 +- docs/FunctionMatchingFilters.md | 160 ---- docs/FunctionMatchingRequest.md | 290 ------- docs/FunctionMatchingResponse.md | 380 -------- docs/FunctionsCoreAPI.md | 428 --------- docs/GetAnalysisStringsStatusOutputBody.md | 2 +- docs/MatchedFunctionSuggestion.md | 129 --- docs/V2FunctionMatch.md | 108 --- docs/V2MatchedFunction.md | 291 ------- docs/V2NameConfidence.md | 72 -- v3/api_analyses_core.go | 14 + v3/api_functions_core.go | 820 ------------------ v3/client.go | 2 +- v3/configuration.go | 2 +- v3/model_ai_unstrip_request.go | 159 ---- ...odel_analysis_function_matching_request.go | 470 ---------- v3/model_auto_unstrip_request.go | 435 ---------- v3/model_auto_unstrip_response.go | 389 --------- v3/model_dynamic_execution_status_response.go | 2 +- v3/model_function_matching_filters.go | 307 ------- v3/model_function_matching_request.go | 551 ------------ v3/model_function_matching_response.go | 573 ------------ ...get_analysis_strings_status_output_body.go | 1 + v3/model_matched_function_suggestion.go | 275 ------ v3/model_v2_function_match.go | 235 ----- v3/model_v2_matched_function.go | 494 ----------- v3/model_v2_name_confidence.go | 198 ----- 34 files changed, 25 insertions(+), 7541 deletions(-) delete mode 100644 docs/AiUnstripRequest.md delete mode 100644 docs/AnalysisFunctionMatchingRequest.md delete mode 100644 docs/AutoUnstripRequest.md delete mode 100644 docs/AutoUnstripResponse.md delete mode 100644 docs/FunctionMatchingFilters.md delete mode 100644 docs/FunctionMatchingRequest.md delete mode 100644 docs/FunctionMatchingResponse.md delete mode 100644 docs/MatchedFunctionSuggestion.md delete mode 100644 docs/V2FunctionMatch.md delete mode 100644 docs/V2MatchedFunction.md delete mode 100644 docs/V2NameConfidence.md delete mode 100644 v3/model_ai_unstrip_request.go delete mode 100644 v3/model_analysis_function_matching_request.go delete mode 100644 v3/model_auto_unstrip_request.go delete mode 100644 v3/model_auto_unstrip_response.go delete mode 100644 v3/model_function_matching_filters.go delete mode 100644 v3/model_function_matching_request.go delete mode 100644 v3/model_function_matching_response.go delete mode 100644 v3/model_matched_function_suggestion.go delete mode 100644 v3/model_v2_function_match.go delete mode 100644 v3/model_v2_matched_function.go delete mode 100644 v3/model_v2_name_confidence.go diff --git a/.sdk-version b/.sdk-version index 4ba1813..29fc955 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.114.2 +v3.116.0 diff --git a/README.md b/README.md index 91924cb..f121d58 100644 --- a/README.md +++ b/README.md @@ -179,12 +179,6 @@ Class | Method | HTTP request | Description *FunctionsAIDecompilationAPI* | [**UpsertAiDecompilationRating**](docs/FunctionsAIDecompilationAPI.md#upsertaidecompilationrating) | **Patch** /v2/functions/{function_id}/ai-decompilation/rating | Upsert rating for AI decompilation *FunctionsCoreAPI* | [**AddFunctionCallee**](docs/FunctionsCoreAPI.md#addfunctioncallee) | **Post** /v3/functions/{function_id}/callees | Add a callee to a function *FunctionsCoreAPI* | [**AddUserStringToFunction**](docs/FunctionsCoreAPI.md#adduserstringtofunction) | **Post** /v3/functions/{function_id}/user-provided-strings | Add a user-provided string to a function. -*FunctionsCoreAPI* | [**AiUnstrip**](docs/FunctionsCoreAPI.md#aiunstrip) | **Post** /v2/analyses/{analysis_id}/functions/ai-unstrip | Performs matching and auto-unstrip for an analysis and its functions -*FunctionsCoreAPI* | [**AnalysisFunctionMatching**](docs/FunctionsCoreAPI.md#analysisfunctionmatching) | **Post** /v2/analyses/{analysis_id}/functions/matches | Perform matching for the functions of an analysis -*FunctionsCoreAPI* | [**AutoUnstrip**](docs/FunctionsCoreAPI.md#autounstrip) | **Post** /v2/analyses/{analysis_id}/functions/auto-unstrip | Performs matching and auto-unstrip for an analysis and its functions -*FunctionsCoreAPI* | [**BatchFunctionMatching**](docs/FunctionsCoreAPI.md#batchfunctionmatching) | **Post** /v2/functions/matches | Perform function matching for an arbitrary batch of functions, binaries or collections -*FunctionsCoreAPI* | [**CancelAiUnstrip**](docs/FunctionsCoreAPI.md#cancelaiunstrip) | **Delete** /v2/analyses/{analysis_id}/functions/ai-unstrip/cancel | Cancels a running ai-unstrip -*FunctionsCoreAPI* | [**CancelAutoUnstrip**](docs/FunctionsCoreAPI.md#cancelautounstrip) | **Delete** /v2/analyses/{analysis_id}/functions/unstrip/cancel | Cancels a running auto-unstrip *FunctionsCoreAPI* | [**GetAnalysisStrings**](docs/FunctionsCoreAPI.md#getanalysisstrings) | **Get** /v2/analyses/{analysis_id}/functions/strings | Get string information found in the Analysis *FunctionsCoreAPI* | [**GetAnalysisStringsStatus**](docs/FunctionsCoreAPI.md#getanalysisstringsstatus) | **Get** /v2/analyses/{analysis_id}/functions/strings/status | Get string processing state for the Analysis *FunctionsCoreAPI* | [**GetFunctionBlocks**](docs/FunctionsCoreAPI.md#getfunctionblocks) | **Get** /v2/functions/{function_id}/blocks | Get disassembly blocks related to the function @@ -250,7 +244,6 @@ Class | Method | HTTP request | Description - [AddUserStringToFunctionInputBody](docs/AddUserStringToFunctionInputBody.md) - [AdditionalDetailsStatusResponse](docs/AdditionalDetailsStatusResponse.md) - [AiDecompilationRating](docs/AiDecompilationRating.md) - - [AiUnstripRequest](docs/AiUnstripRequest.md) - [AnalysisAccessInfo](docs/AnalysisAccessInfo.md) - [AnalysisBasicInfoOutputBody](docs/AnalysisBasicInfoOutputBody.md) - [AnalysisBulkAddTagsRequest](docs/AnalysisBulkAddTagsRequest.md) @@ -263,7 +256,6 @@ Class | Method | HTTP request | Description - [AnalysisDetailResponse](docs/AnalysisDetailResponse.md) - [AnalysisFunctionEntry](docs/AnalysisFunctionEntry.md) - [AnalysisFunctionMapping](docs/AnalysisFunctionMapping.md) - - [AnalysisFunctionMatchingRequest](docs/AnalysisFunctionMatchingRequest.md) - [AnalysisFunctions](docs/AnalysisFunctions.md) - [AnalysisFunctionsList](docs/AnalysisFunctionsList.md) - [AnalysisLogMessage](docs/AnalysisLogMessage.md) @@ -295,8 +287,6 @@ Class | Method | HTTP request | Description - [AttemptFailedEvent](docs/AttemptFailedEvent.md) - [AttemptStartedEvent](docs/AttemptStartedEvent.md) - [AutoRunAgents](docs/AutoRunAgents.md) - - [AutoUnstripRequest](docs/AutoUnstripRequest.md) - - [AutoUnstripResponse](docs/AutoUnstripResponse.md) - [AutoUnstripStatusOutputBody](docs/AutoUnstripStatusOutputBody.md) - [BaseResponse](docs/BaseResponse.md) - [BaseResponseAdditionalDetailsStatusResponse](docs/BaseResponseAdditionalDetailsStatusResponse.md) @@ -521,9 +511,6 @@ Class | Method | HTTP request | Description - [FunctionLocalVariableResponse](docs/FunctionLocalVariableResponse.md) - [FunctionMapping](docs/FunctionMapping.md) - [FunctionMatch](docs/FunctionMatch.md) - - [FunctionMatchingFilters](docs/FunctionMatchingFilters.md) - - [FunctionMatchingRequest](docs/FunctionMatchingRequest.md) - - [FunctionMatchingResponse](docs/FunctionMatchingResponse.md) - [FunctionNameHistory](docs/FunctionNameHistory.md) - [FunctionParamResponse](docs/FunctionParamResponse.md) - [FunctionRename](docs/FunctionRename.md) @@ -585,7 +572,6 @@ Class | Method | HTTP request | Description - [MITRETechnique](docs/MITRETechnique.md) - [MatchFilters](docs/MatchFilters.md) - [MatchedFunction](docs/MatchedFunction.md) - - [MatchedFunctionSuggestion](docs/MatchedFunctionSuggestion.md) - [MemdumpEntry](docs/MemdumpEntry.md) - [MessageBody](docs/MessageBody.md) - [MetaModel](docs/MetaModel.md) @@ -743,10 +729,7 @@ Class | Method | HTTP request | Description - [UserProfile](docs/UserProfile.md) - [V2FunctionHeader](docs/V2FunctionHeader.md) - [V2FunctionInfo](docs/V2FunctionInfo.md) - - [V2FunctionMatch](docs/V2FunctionMatch.md) - [V2FunctionType](docs/V2FunctionType.md) - - [V2MatchedFunction](docs/V2MatchedFunction.md) - - [V2NameConfidence](docs/V2NameConfidence.md) - [Vulnerabilities](docs/Vulnerabilities.md) - [Vulnerability](docs/Vulnerability.md) - [WarningEvent](docs/WarningEvent.md) diff --git a/docs/AiUnstripRequest.md b/docs/AiUnstripRequest.md deleted file mode 100644 index 40ad216..0000000 --- a/docs/AiUnstripRequest.md +++ /dev/null @@ -1,56 +0,0 @@ -# AiUnstripRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Apply** | Pointer to **bool** | Whether to apply the suggested function names to the target functions, default is False | [optional] [default to false] - -## Methods - -### NewAiUnstripRequest - -`func NewAiUnstripRequest() *AiUnstripRequest` - -NewAiUnstripRequest instantiates a new AiUnstripRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAiUnstripRequestWithDefaults - -`func NewAiUnstripRequestWithDefaults() *AiUnstripRequest` - -NewAiUnstripRequestWithDefaults instantiates a new AiUnstripRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetApply - -`func (o *AiUnstripRequest) GetApply() bool` - -GetApply returns the Apply field if non-nil, zero value otherwise. - -### GetApplyOk - -`func (o *AiUnstripRequest) GetApplyOk() (*bool, bool)` - -GetApplyOk returns a tuple with the Apply field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetApply - -`func (o *AiUnstripRequest) SetApply(v bool)` - -SetApply sets Apply field to given value. - -### HasApply - -`func (o *AiUnstripRequest) HasApply() bool` - -HasApply returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AnalysesCoreAPI.md b/docs/AnalysesCoreAPI.md index 91856d7..97de422 100644 --- a/docs/AnalysesCoreAPI.md +++ b/docs/AnalysesCoreAPI.md @@ -1751,7 +1751,7 @@ Name | Type | Description | Notes ## V3GetAnalysisStrings -> ListAnalysisStringsOutputBody V3GetAnalysisStrings(ctx, analysisId).Page(page).PageSize(pageSize).Search(search).FunctionSearch(functionSearch).OrderBy(orderBy).SortOrder(sortOrder).Execute() +> ListAnalysisStringsOutputBody V3GetAnalysisStrings(ctx, analysisId).Page(page).PageSize(pageSize).Search(search).SearchOperator(searchOperator).FunctionSearch(functionSearch).OrderBy(orderBy).SortOrder(sortOrder).Execute() List strings for an analysis. @@ -1774,13 +1774,14 @@ func main() { page := int64(789) // int64 | Page number (1-indexed). (optional) (default to 1) pageSize := int64(789) // int64 | Number of results per page. (optional) (default to 100) search := "search_example" // string | Filter by string value (case-insensitive substring match). (optional) + searchOperator := "searchOperator_example" // string | How the search term matches string values. (optional) (default to "CONTAINS") functionSearch := "functionSearch_example" // string | Filter by function name (case-insensitive substring match). (optional) orderBy := "orderBy_example" // string | Field to order results by. (optional) (default to "value") sortOrder := "sortOrder_example" // string | Sort direction. (optional) (default to "ASC") configuration := revengai.NewConfiguration() apiClient := revengai.NewAPIClient(configuration) - resp, r, err := apiClient.AnalysesCoreAPI.V3GetAnalysisStrings(context.Background(), analysisId).Page(page).PageSize(pageSize).Search(search).FunctionSearch(functionSearch).OrderBy(orderBy).SortOrder(sortOrder).Execute() + resp, r, err := apiClient.AnalysesCoreAPI.V3GetAnalysisStrings(context.Background(), analysisId).Page(page).PageSize(pageSize).Search(search).SearchOperator(searchOperator).FunctionSearch(functionSearch).OrderBy(orderBy).SortOrder(sortOrder).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.V3GetAnalysisStrings``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1809,6 +1810,7 @@ Name | Type | Description | Notes **page** | **int64** | Page number (1-indexed). | [default to 1] **pageSize** | **int64** | Number of results per page. | [default to 100] **search** | **string** | Filter by string value (case-insensitive substring match). | + **searchOperator** | **string** | How the search term matches string values. | [default to "CONTAINS"] **functionSearch** | **string** | Filter by function name (case-insensitive substring match). | **orderBy** | **string** | Field to order results by. | [default to "value"] **sortOrder** | **string** | Sort direction. | [default to "ASC"] diff --git a/docs/AnalysisFunctionMatchingRequest.md b/docs/AnalysisFunctionMatchingRequest.md deleted file mode 100644 index 6055353..0000000 --- a/docs/AnalysisFunctionMatchingRequest.md +++ /dev/null @@ -1,248 +0,0 @@ -# AnalysisFunctionMatchingRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MinSimilarity** | Pointer to **float32** | Minimum similarity expected for a match as a percentage, default is 90 | [optional] [default to 90] -**Filters** | Pointer to [**NullableFunctionMatchingFilters**](FunctionMatchingFilters.md) | | [optional] -**ResultsPerFunction** | Pointer to **int32** | Maximum number of matches to return per function, default is 1, max is 30 | [optional] [default to 1] -**Page** | Pointer to **int32** | Page number for paginated results, default is 1 (first page) | [optional] [default to 1] -**PageSize** | Pointer to **int32** | Number of functions to return per page, default is 0 (all functions), max is 1000 | [optional] [default to 0] -**StatusOnly** | Pointer to **bool** | If set to true, only returns the status of the matching operation without the actual results | [optional] [default to false] -**NoCache** | Pointer to **bool** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] [default to false] -**UseCanonicalNames** | Pointer to **bool** | Whether to use canonical function names during function matching for confidence results, default is False | [optional] [default to false] - -## Methods - -### NewAnalysisFunctionMatchingRequest - -`func NewAnalysisFunctionMatchingRequest() *AnalysisFunctionMatchingRequest` - -NewAnalysisFunctionMatchingRequest instantiates a new AnalysisFunctionMatchingRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAnalysisFunctionMatchingRequestWithDefaults - -`func NewAnalysisFunctionMatchingRequestWithDefaults() *AnalysisFunctionMatchingRequest` - -NewAnalysisFunctionMatchingRequestWithDefaults instantiates a new AnalysisFunctionMatchingRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMinSimilarity - -`func (o *AnalysisFunctionMatchingRequest) GetMinSimilarity() float32` - -GetMinSimilarity returns the MinSimilarity field if non-nil, zero value otherwise. - -### GetMinSimilarityOk - -`func (o *AnalysisFunctionMatchingRequest) GetMinSimilarityOk() (*float32, bool)` - -GetMinSimilarityOk returns a tuple with the MinSimilarity field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinSimilarity - -`func (o *AnalysisFunctionMatchingRequest) SetMinSimilarity(v float32)` - -SetMinSimilarity sets MinSimilarity field to given value. - -### HasMinSimilarity - -`func (o *AnalysisFunctionMatchingRequest) HasMinSimilarity() bool` - -HasMinSimilarity returns a boolean if a field has been set. - -### GetFilters - -`func (o *AnalysisFunctionMatchingRequest) GetFilters() FunctionMatchingFilters` - -GetFilters returns the Filters field if non-nil, zero value otherwise. - -### GetFiltersOk - -`func (o *AnalysisFunctionMatchingRequest) GetFiltersOk() (*FunctionMatchingFilters, bool)` - -GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFilters - -`func (o *AnalysisFunctionMatchingRequest) SetFilters(v FunctionMatchingFilters)` - -SetFilters sets Filters field to given value. - -### HasFilters - -`func (o *AnalysisFunctionMatchingRequest) HasFilters() bool` - -HasFilters returns a boolean if a field has been set. - -### SetFiltersNil - -`func (o *AnalysisFunctionMatchingRequest) SetFiltersNil(b bool)` - - SetFiltersNil sets the value for Filters to be an explicit nil - -### UnsetFilters -`func (o *AnalysisFunctionMatchingRequest) UnsetFilters()` - -UnsetFilters ensures that no value is present for Filters, not even an explicit nil -### GetResultsPerFunction - -`func (o *AnalysisFunctionMatchingRequest) GetResultsPerFunction() int32` - -GetResultsPerFunction returns the ResultsPerFunction field if non-nil, zero value otherwise. - -### GetResultsPerFunctionOk - -`func (o *AnalysisFunctionMatchingRequest) GetResultsPerFunctionOk() (*int32, bool)` - -GetResultsPerFunctionOk returns a tuple with the ResultsPerFunction field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultsPerFunction - -`func (o *AnalysisFunctionMatchingRequest) SetResultsPerFunction(v int32)` - -SetResultsPerFunction sets ResultsPerFunction field to given value. - -### HasResultsPerFunction - -`func (o *AnalysisFunctionMatchingRequest) HasResultsPerFunction() bool` - -HasResultsPerFunction returns a boolean if a field has been set. - -### GetPage - -`func (o *AnalysisFunctionMatchingRequest) GetPage() int32` - -GetPage returns the Page field if non-nil, zero value otherwise. - -### GetPageOk - -`func (o *AnalysisFunctionMatchingRequest) GetPageOk() (*int32, bool)` - -GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPage - -`func (o *AnalysisFunctionMatchingRequest) SetPage(v int32)` - -SetPage sets Page field to given value. - -### HasPage - -`func (o *AnalysisFunctionMatchingRequest) HasPage() bool` - -HasPage returns a boolean if a field has been set. - -### GetPageSize - -`func (o *AnalysisFunctionMatchingRequest) GetPageSize() int32` - -GetPageSize returns the PageSize field if non-nil, zero value otherwise. - -### GetPageSizeOk - -`func (o *AnalysisFunctionMatchingRequest) GetPageSizeOk() (*int32, bool)` - -GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageSize - -`func (o *AnalysisFunctionMatchingRequest) SetPageSize(v int32)` - -SetPageSize sets PageSize field to given value. - -### HasPageSize - -`func (o *AnalysisFunctionMatchingRequest) HasPageSize() bool` - -HasPageSize returns a boolean if a field has been set. - -### GetStatusOnly - -`func (o *AnalysisFunctionMatchingRequest) GetStatusOnly() bool` - -GetStatusOnly returns the StatusOnly field if non-nil, zero value otherwise. - -### GetStatusOnlyOk - -`func (o *AnalysisFunctionMatchingRequest) GetStatusOnlyOk() (*bool, bool)` - -GetStatusOnlyOk returns a tuple with the StatusOnly field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatusOnly - -`func (o *AnalysisFunctionMatchingRequest) SetStatusOnly(v bool)` - -SetStatusOnly sets StatusOnly field to given value. - -### HasStatusOnly - -`func (o *AnalysisFunctionMatchingRequest) HasStatusOnly() bool` - -HasStatusOnly returns a boolean if a field has been set. - -### GetNoCache - -`func (o *AnalysisFunctionMatchingRequest) GetNoCache() bool` - -GetNoCache returns the NoCache field if non-nil, zero value otherwise. - -### GetNoCacheOk - -`func (o *AnalysisFunctionMatchingRequest) GetNoCacheOk() (*bool, bool)` - -GetNoCacheOk returns a tuple with the NoCache field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNoCache - -`func (o *AnalysisFunctionMatchingRequest) SetNoCache(v bool)` - -SetNoCache sets NoCache field to given value. - -### HasNoCache - -`func (o *AnalysisFunctionMatchingRequest) HasNoCache() bool` - -HasNoCache returns a boolean if a field has been set. - -### GetUseCanonicalNames - -`func (o *AnalysisFunctionMatchingRequest) GetUseCanonicalNames() bool` - -GetUseCanonicalNames returns the UseCanonicalNames field if non-nil, zero value otherwise. - -### GetUseCanonicalNamesOk - -`func (o *AnalysisFunctionMatchingRequest) GetUseCanonicalNamesOk() (*bool, bool)` - -GetUseCanonicalNamesOk returns a tuple with the UseCanonicalNames field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUseCanonicalNames - -`func (o *AnalysisFunctionMatchingRequest) SetUseCanonicalNames(v bool)` - -SetUseCanonicalNames sets UseCanonicalNames field to given value. - -### HasUseCanonicalNames - -`func (o *AnalysisFunctionMatchingRequest) HasUseCanonicalNames() bool` - -HasUseCanonicalNames returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AutoUnstripRequest.md b/docs/AutoUnstripRequest.md deleted file mode 100644 index 40ec904..0000000 --- a/docs/AutoUnstripRequest.md +++ /dev/null @@ -1,212 +0,0 @@ -# AutoUnstripRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MinSimilarity** | Pointer to **float32** | Minimum similarity expected for a match as a percentage, default is 90 | [optional] [default to 90] -**Apply** | Pointer to **bool** | Whether to apply the matched function names to the target binary, default is False | [optional] [default to false] -**ConfidenceThreshold** | Pointer to **float32** | Confidence threshold for applying function names as a percentage, default is 90 | [optional] [default to 90] -**MinGroupSize** | Pointer to **int32** | Minimum number of matching functions required to consider for a match, default is 10 | [optional] [default to 10] -**StatusOnly** | Pointer to **bool** | If set to true, only returns the status of the auto-unstrip operation without the actual results | [optional] [default to false] -**NoCache** | Pointer to **bool** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] [default to false] -**UseCanonicalNames** | Pointer to **bool** | Whether to use canonical function names during matching for auto-unstrip, default is False | [optional] [default to false] - -## Methods - -### NewAutoUnstripRequest - -`func NewAutoUnstripRequest() *AutoUnstripRequest` - -NewAutoUnstripRequest instantiates a new AutoUnstripRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAutoUnstripRequestWithDefaults - -`func NewAutoUnstripRequestWithDefaults() *AutoUnstripRequest` - -NewAutoUnstripRequestWithDefaults instantiates a new AutoUnstripRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMinSimilarity - -`func (o *AutoUnstripRequest) GetMinSimilarity() float32` - -GetMinSimilarity returns the MinSimilarity field if non-nil, zero value otherwise. - -### GetMinSimilarityOk - -`func (o *AutoUnstripRequest) GetMinSimilarityOk() (*float32, bool)` - -GetMinSimilarityOk returns a tuple with the MinSimilarity field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinSimilarity - -`func (o *AutoUnstripRequest) SetMinSimilarity(v float32)` - -SetMinSimilarity sets MinSimilarity field to given value. - -### HasMinSimilarity - -`func (o *AutoUnstripRequest) HasMinSimilarity() bool` - -HasMinSimilarity returns a boolean if a field has been set. - -### GetApply - -`func (o *AutoUnstripRequest) GetApply() bool` - -GetApply returns the Apply field if non-nil, zero value otherwise. - -### GetApplyOk - -`func (o *AutoUnstripRequest) GetApplyOk() (*bool, bool)` - -GetApplyOk returns a tuple with the Apply field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetApply - -`func (o *AutoUnstripRequest) SetApply(v bool)` - -SetApply sets Apply field to given value. - -### HasApply - -`func (o *AutoUnstripRequest) HasApply() bool` - -HasApply returns a boolean if a field has been set. - -### GetConfidenceThreshold - -`func (o *AutoUnstripRequest) GetConfidenceThreshold() float32` - -GetConfidenceThreshold returns the ConfidenceThreshold field if non-nil, zero value otherwise. - -### GetConfidenceThresholdOk - -`func (o *AutoUnstripRequest) GetConfidenceThresholdOk() (*float32, bool)` - -GetConfidenceThresholdOk returns a tuple with the ConfidenceThreshold field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConfidenceThreshold - -`func (o *AutoUnstripRequest) SetConfidenceThreshold(v float32)` - -SetConfidenceThreshold sets ConfidenceThreshold field to given value. - -### HasConfidenceThreshold - -`func (o *AutoUnstripRequest) HasConfidenceThreshold() bool` - -HasConfidenceThreshold returns a boolean if a field has been set. - -### GetMinGroupSize - -`func (o *AutoUnstripRequest) GetMinGroupSize() int32` - -GetMinGroupSize returns the MinGroupSize field if non-nil, zero value otherwise. - -### GetMinGroupSizeOk - -`func (o *AutoUnstripRequest) GetMinGroupSizeOk() (*int32, bool)` - -GetMinGroupSizeOk returns a tuple with the MinGroupSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinGroupSize - -`func (o *AutoUnstripRequest) SetMinGroupSize(v int32)` - -SetMinGroupSize sets MinGroupSize field to given value. - -### HasMinGroupSize - -`func (o *AutoUnstripRequest) HasMinGroupSize() bool` - -HasMinGroupSize returns a boolean if a field has been set. - -### GetStatusOnly - -`func (o *AutoUnstripRequest) GetStatusOnly() bool` - -GetStatusOnly returns the StatusOnly field if non-nil, zero value otherwise. - -### GetStatusOnlyOk - -`func (o *AutoUnstripRequest) GetStatusOnlyOk() (*bool, bool)` - -GetStatusOnlyOk returns a tuple with the StatusOnly field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatusOnly - -`func (o *AutoUnstripRequest) SetStatusOnly(v bool)` - -SetStatusOnly sets StatusOnly field to given value. - -### HasStatusOnly - -`func (o *AutoUnstripRequest) HasStatusOnly() bool` - -HasStatusOnly returns a boolean if a field has been set. - -### GetNoCache - -`func (o *AutoUnstripRequest) GetNoCache() bool` - -GetNoCache returns the NoCache field if non-nil, zero value otherwise. - -### GetNoCacheOk - -`func (o *AutoUnstripRequest) GetNoCacheOk() (*bool, bool)` - -GetNoCacheOk returns a tuple with the NoCache field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNoCache - -`func (o *AutoUnstripRequest) SetNoCache(v bool)` - -SetNoCache sets NoCache field to given value. - -### HasNoCache - -`func (o *AutoUnstripRequest) HasNoCache() bool` - -HasNoCache returns a boolean if a field has been set. - -### GetUseCanonicalNames - -`func (o *AutoUnstripRequest) GetUseCanonicalNames() bool` - -GetUseCanonicalNames returns the UseCanonicalNames field if non-nil, zero value otherwise. - -### GetUseCanonicalNamesOk - -`func (o *AutoUnstripRequest) GetUseCanonicalNamesOk() (*bool, bool)` - -GetUseCanonicalNamesOk returns a tuple with the UseCanonicalNames field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUseCanonicalNames - -`func (o *AutoUnstripRequest) SetUseCanonicalNames(v bool)` - -SetUseCanonicalNames sets UseCanonicalNames field to given value. - -### HasUseCanonicalNames - -`func (o *AutoUnstripRequest) HasUseCanonicalNames() bool` - -HasUseCanonicalNames returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AutoUnstripResponse.md b/docs/AutoUnstripResponse.md deleted file mode 100644 index ec74d06..0000000 --- a/docs/AutoUnstripResponse.md +++ /dev/null @@ -1,236 +0,0 @@ -# AutoUnstripResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Progress** | Pointer to **int32** | Progress of the auto-unstrip operation, represented as a percentage | [optional] [default to 0] -**Status** | Pointer to **NullableString** | | [optional] -**TotalTime** | Pointer to **NullableInt32** | | [optional] -**Matches** | Pointer to [**[]MatchedFunctionSuggestion**](MatchedFunctionSuggestion.md) | | [optional] -**Applied** | Pointer to **NullableBool** | | [optional] -**ErrorMessage** | Pointer to **NullableString** | | [optional] - -## Methods - -### NewAutoUnstripResponse - -`func NewAutoUnstripResponse() *AutoUnstripResponse` - -NewAutoUnstripResponse instantiates a new AutoUnstripResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAutoUnstripResponseWithDefaults - -`func NewAutoUnstripResponseWithDefaults() *AutoUnstripResponse` - -NewAutoUnstripResponseWithDefaults instantiates a new AutoUnstripResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetProgress - -`func (o *AutoUnstripResponse) GetProgress() int32` - -GetProgress returns the Progress field if non-nil, zero value otherwise. - -### GetProgressOk - -`func (o *AutoUnstripResponse) GetProgressOk() (*int32, bool)` - -GetProgressOk returns a tuple with the Progress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProgress - -`func (o *AutoUnstripResponse) SetProgress(v int32)` - -SetProgress sets Progress field to given value. - -### HasProgress - -`func (o *AutoUnstripResponse) HasProgress() bool` - -HasProgress returns a boolean if a field has been set. - -### GetStatus - -`func (o *AutoUnstripResponse) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *AutoUnstripResponse) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *AutoUnstripResponse) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *AutoUnstripResponse) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### SetStatusNil - -`func (o *AutoUnstripResponse) SetStatusNil(b bool)` - - SetStatusNil sets the value for Status to be an explicit nil - -### UnsetStatus -`func (o *AutoUnstripResponse) UnsetStatus()` - -UnsetStatus ensures that no value is present for Status, not even an explicit nil -### GetTotalTime - -`func (o *AutoUnstripResponse) GetTotalTime() int32` - -GetTotalTime returns the TotalTime field if non-nil, zero value otherwise. - -### GetTotalTimeOk - -`func (o *AutoUnstripResponse) GetTotalTimeOk() (*int32, bool)` - -GetTotalTimeOk returns a tuple with the TotalTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalTime - -`func (o *AutoUnstripResponse) SetTotalTime(v int32)` - -SetTotalTime sets TotalTime field to given value. - -### HasTotalTime - -`func (o *AutoUnstripResponse) HasTotalTime() bool` - -HasTotalTime returns a boolean if a field has been set. - -### SetTotalTimeNil - -`func (o *AutoUnstripResponse) SetTotalTimeNil(b bool)` - - SetTotalTimeNil sets the value for TotalTime to be an explicit nil - -### UnsetTotalTime -`func (o *AutoUnstripResponse) UnsetTotalTime()` - -UnsetTotalTime ensures that no value is present for TotalTime, not even an explicit nil -### GetMatches - -`func (o *AutoUnstripResponse) GetMatches() []MatchedFunctionSuggestion` - -GetMatches returns the Matches field if non-nil, zero value otherwise. - -### GetMatchesOk - -`func (o *AutoUnstripResponse) GetMatchesOk() (*[]MatchedFunctionSuggestion, bool)` - -GetMatchesOk returns a tuple with the Matches field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMatches - -`func (o *AutoUnstripResponse) SetMatches(v []MatchedFunctionSuggestion)` - -SetMatches sets Matches field to given value. - -### HasMatches - -`func (o *AutoUnstripResponse) HasMatches() bool` - -HasMatches returns a boolean if a field has been set. - -### SetMatchesNil - -`func (o *AutoUnstripResponse) SetMatchesNil(b bool)` - - SetMatchesNil sets the value for Matches to be an explicit nil - -### UnsetMatches -`func (o *AutoUnstripResponse) UnsetMatches()` - -UnsetMatches ensures that no value is present for Matches, not even an explicit nil -### GetApplied - -`func (o *AutoUnstripResponse) GetApplied() bool` - -GetApplied returns the Applied field if non-nil, zero value otherwise. - -### GetAppliedOk - -`func (o *AutoUnstripResponse) GetAppliedOk() (*bool, bool)` - -GetAppliedOk returns a tuple with the Applied field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetApplied - -`func (o *AutoUnstripResponse) SetApplied(v bool)` - -SetApplied sets Applied field to given value. - -### HasApplied - -`func (o *AutoUnstripResponse) HasApplied() bool` - -HasApplied returns a boolean if a field has been set. - -### SetAppliedNil - -`func (o *AutoUnstripResponse) SetAppliedNil(b bool)` - - SetAppliedNil sets the value for Applied to be an explicit nil - -### UnsetApplied -`func (o *AutoUnstripResponse) UnsetApplied()` - -UnsetApplied ensures that no value is present for Applied, not even an explicit nil -### GetErrorMessage - -`func (o *AutoUnstripResponse) GetErrorMessage() string` - -GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. - -### GetErrorMessageOk - -`func (o *AutoUnstripResponse) GetErrorMessageOk() (*string, bool)` - -GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetErrorMessage - -`func (o *AutoUnstripResponse) SetErrorMessage(v string)` - -SetErrorMessage sets ErrorMessage field to given value. - -### HasErrorMessage - -`func (o *AutoUnstripResponse) HasErrorMessage() bool` - -HasErrorMessage returns a boolean if a field has been set. - -### SetErrorMessageNil - -`func (o *AutoUnstripResponse) SetErrorMessageNil(b bool)` - - SetErrorMessageNil sets the value for ErrorMessage to be an explicit nil - -### UnsetErrorMessage -`func (o *AutoUnstripResponse) UnsetErrorMessage()` - -UnsetErrorMessage ensures that no value is present for ErrorMessage, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DynamicExecutionStatusResponse.md b/docs/DynamicExecutionStatusResponse.md index 0d13511..06362f6 100644 --- a/docs/DynamicExecutionStatusResponse.md +++ b/docs/DynamicExecutionStatusResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ErrorMessage** | Pointer to **string** | Error detail, set when status is FAILED | [optional] **Logs** | [**AnalysisLogs**](AnalysisLogs.md) | Sandbox status log messages captured during the run. Contains a single \"No logs available\" message when none have been captured yet. | -**Status** | **string** | Task status: UNINITIALISED, PENDING, RUNNING, COMPLETED, or FAILED | +**Status** | **string** | Task status | ## Methods diff --git a/docs/FunctionMatchingFilters.md b/docs/FunctionMatchingFilters.md deleted file mode 100644 index ce18c6d..0000000 --- a/docs/FunctionMatchingFilters.md +++ /dev/null @@ -1,160 +0,0 @@ -# FunctionMatchingFilters - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BinaryIds** | Pointer to **[]int32** | ID's of binaries to limit the search to, if empty, search all scoped binaries | [optional] [default to {}] -**CollectionIds** | Pointer to **[]int32** | ID's of collections to limit the search to, if empty, search all scoped collections | [optional] [default to {}] -**FunctionIds** | Pointer to **[]int64** | ID's of functions to limit the search to, if empty, search all scoped functions | [optional] [default to {}] -**UserIds** | Pointer to **[]int32** | ID's of users to limit the search to, if empty, search all scoped users | [optional] [default to {}] -**DebugTypes** | Pointer to **[]string** | Limit the search to specific debug types, if empty, search all scoped debug & non-debug functions | [optional] [default to {}] - -## Methods - -### NewFunctionMatchingFilters - -`func NewFunctionMatchingFilters() *FunctionMatchingFilters` - -NewFunctionMatchingFilters instantiates a new FunctionMatchingFilters object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewFunctionMatchingFiltersWithDefaults - -`func NewFunctionMatchingFiltersWithDefaults() *FunctionMatchingFilters` - -NewFunctionMatchingFiltersWithDefaults instantiates a new FunctionMatchingFilters object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBinaryIds - -`func (o *FunctionMatchingFilters) GetBinaryIds() []int32` - -GetBinaryIds returns the BinaryIds field if non-nil, zero value otherwise. - -### GetBinaryIdsOk - -`func (o *FunctionMatchingFilters) GetBinaryIdsOk() (*[]int32, bool)` - -GetBinaryIdsOk returns a tuple with the BinaryIds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBinaryIds - -`func (o *FunctionMatchingFilters) SetBinaryIds(v []int32)` - -SetBinaryIds sets BinaryIds field to given value. - -### HasBinaryIds - -`func (o *FunctionMatchingFilters) HasBinaryIds() bool` - -HasBinaryIds returns a boolean if a field has been set. - -### GetCollectionIds - -`func (o *FunctionMatchingFilters) GetCollectionIds() []int32` - -GetCollectionIds returns the CollectionIds field if non-nil, zero value otherwise. - -### GetCollectionIdsOk - -`func (o *FunctionMatchingFilters) GetCollectionIdsOk() (*[]int32, bool)` - -GetCollectionIdsOk returns a tuple with the CollectionIds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCollectionIds - -`func (o *FunctionMatchingFilters) SetCollectionIds(v []int32)` - -SetCollectionIds sets CollectionIds field to given value. - -### HasCollectionIds - -`func (o *FunctionMatchingFilters) HasCollectionIds() bool` - -HasCollectionIds returns a boolean if a field has been set. - -### GetFunctionIds - -`func (o *FunctionMatchingFilters) GetFunctionIds() []int64` - -GetFunctionIds returns the FunctionIds field if non-nil, zero value otherwise. - -### GetFunctionIdsOk - -`func (o *FunctionMatchingFilters) GetFunctionIdsOk() (*[]int64, bool)` - -GetFunctionIdsOk returns a tuple with the FunctionIds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFunctionIds - -`func (o *FunctionMatchingFilters) SetFunctionIds(v []int64)` - -SetFunctionIds sets FunctionIds field to given value. - -### HasFunctionIds - -`func (o *FunctionMatchingFilters) HasFunctionIds() bool` - -HasFunctionIds returns a boolean if a field has been set. - -### GetUserIds - -`func (o *FunctionMatchingFilters) GetUserIds() []int32` - -GetUserIds returns the UserIds field if non-nil, zero value otherwise. - -### GetUserIdsOk - -`func (o *FunctionMatchingFilters) GetUserIdsOk() (*[]int32, bool)` - -GetUserIdsOk returns a tuple with the UserIds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserIds - -`func (o *FunctionMatchingFilters) SetUserIds(v []int32)` - -SetUserIds sets UserIds field to given value. - -### HasUserIds - -`func (o *FunctionMatchingFilters) HasUserIds() bool` - -HasUserIds returns a boolean if a field has been set. - -### GetDebugTypes - -`func (o *FunctionMatchingFilters) GetDebugTypes() []string` - -GetDebugTypes returns the DebugTypes field if non-nil, zero value otherwise. - -### GetDebugTypesOk - -`func (o *FunctionMatchingFilters) GetDebugTypesOk() (*[]string, bool)` - -GetDebugTypesOk returns a tuple with the DebugTypes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDebugTypes - -`func (o *FunctionMatchingFilters) SetDebugTypes(v []string)` - -SetDebugTypes sets DebugTypes field to given value. - -### HasDebugTypes - -`func (o *FunctionMatchingFilters) HasDebugTypes() bool` - -HasDebugTypes returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/FunctionMatchingRequest.md b/docs/FunctionMatchingRequest.md deleted file mode 100644 index 5c762a9..0000000 --- a/docs/FunctionMatchingRequest.md +++ /dev/null @@ -1,290 +0,0 @@ -# FunctionMatchingRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ModelId** | **int32** | ID of the model used for function matching, used to determine the embedding model | -**FunctionIds** | **[]int64** | ID's of functions to find matches for, must be at least one function ID | -**MinSimilarity** | Pointer to **float32** | Minimum similarity expected for a match as a percentage, default is 90 | [optional] [default to 90] -**Filters** | Pointer to [**NullableFunctionMatchingFilters**](FunctionMatchingFilters.md) | | [optional] -**ResultsPerFunction** | Pointer to **int32** | Maximum number of matches to return per function, default is 1, max is 50 | [optional] [default to 1] -**Page** | Pointer to **int32** | Page number for paginated results, default is 1 (first page) | [optional] [default to 1] -**PageSize** | Pointer to **int32** | Number of functions to return per page, default is 0 (all functions), max is 1000 | [optional] [default to 0] -**StatusOnly** | Pointer to **bool** | If set to true, only returns the status of the matching operation without the actual results | [optional] [default to false] -**NoCache** | Pointer to **bool** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] [default to false] -**UseCanonicalNames** | Pointer to **bool** | Whether to use canonical function names during function matching for confidence results, default is False | [optional] [default to false] - -## Methods - -### NewFunctionMatchingRequest - -`func NewFunctionMatchingRequest(modelId int32, functionIds []int64, ) *FunctionMatchingRequest` - -NewFunctionMatchingRequest instantiates a new FunctionMatchingRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewFunctionMatchingRequestWithDefaults - -`func NewFunctionMatchingRequestWithDefaults() *FunctionMatchingRequest` - -NewFunctionMatchingRequestWithDefaults instantiates a new FunctionMatchingRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetModelId - -`func (o *FunctionMatchingRequest) GetModelId() int32` - -GetModelId returns the ModelId field if non-nil, zero value otherwise. - -### GetModelIdOk - -`func (o *FunctionMatchingRequest) GetModelIdOk() (*int32, bool)` - -GetModelIdOk returns a tuple with the ModelId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModelId - -`func (o *FunctionMatchingRequest) SetModelId(v int32)` - -SetModelId sets ModelId field to given value. - - -### GetFunctionIds - -`func (o *FunctionMatchingRequest) GetFunctionIds() []int64` - -GetFunctionIds returns the FunctionIds field if non-nil, zero value otherwise. - -### GetFunctionIdsOk - -`func (o *FunctionMatchingRequest) GetFunctionIdsOk() (*[]int64, bool)` - -GetFunctionIdsOk returns a tuple with the FunctionIds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFunctionIds - -`func (o *FunctionMatchingRequest) SetFunctionIds(v []int64)` - -SetFunctionIds sets FunctionIds field to given value. - - -### GetMinSimilarity - -`func (o *FunctionMatchingRequest) GetMinSimilarity() float32` - -GetMinSimilarity returns the MinSimilarity field if non-nil, zero value otherwise. - -### GetMinSimilarityOk - -`func (o *FunctionMatchingRequest) GetMinSimilarityOk() (*float32, bool)` - -GetMinSimilarityOk returns a tuple with the MinSimilarity field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinSimilarity - -`func (o *FunctionMatchingRequest) SetMinSimilarity(v float32)` - -SetMinSimilarity sets MinSimilarity field to given value. - -### HasMinSimilarity - -`func (o *FunctionMatchingRequest) HasMinSimilarity() bool` - -HasMinSimilarity returns a boolean if a field has been set. - -### GetFilters - -`func (o *FunctionMatchingRequest) GetFilters() FunctionMatchingFilters` - -GetFilters returns the Filters field if non-nil, zero value otherwise. - -### GetFiltersOk - -`func (o *FunctionMatchingRequest) GetFiltersOk() (*FunctionMatchingFilters, bool)` - -GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFilters - -`func (o *FunctionMatchingRequest) SetFilters(v FunctionMatchingFilters)` - -SetFilters sets Filters field to given value. - -### HasFilters - -`func (o *FunctionMatchingRequest) HasFilters() bool` - -HasFilters returns a boolean if a field has been set. - -### SetFiltersNil - -`func (o *FunctionMatchingRequest) SetFiltersNil(b bool)` - - SetFiltersNil sets the value for Filters to be an explicit nil - -### UnsetFilters -`func (o *FunctionMatchingRequest) UnsetFilters()` - -UnsetFilters ensures that no value is present for Filters, not even an explicit nil -### GetResultsPerFunction - -`func (o *FunctionMatchingRequest) GetResultsPerFunction() int32` - -GetResultsPerFunction returns the ResultsPerFunction field if non-nil, zero value otherwise. - -### GetResultsPerFunctionOk - -`func (o *FunctionMatchingRequest) GetResultsPerFunctionOk() (*int32, bool)` - -GetResultsPerFunctionOk returns a tuple with the ResultsPerFunction field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResultsPerFunction - -`func (o *FunctionMatchingRequest) SetResultsPerFunction(v int32)` - -SetResultsPerFunction sets ResultsPerFunction field to given value. - -### HasResultsPerFunction - -`func (o *FunctionMatchingRequest) HasResultsPerFunction() bool` - -HasResultsPerFunction returns a boolean if a field has been set. - -### GetPage - -`func (o *FunctionMatchingRequest) GetPage() int32` - -GetPage returns the Page field if non-nil, zero value otherwise. - -### GetPageOk - -`func (o *FunctionMatchingRequest) GetPageOk() (*int32, bool)` - -GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPage - -`func (o *FunctionMatchingRequest) SetPage(v int32)` - -SetPage sets Page field to given value. - -### HasPage - -`func (o *FunctionMatchingRequest) HasPage() bool` - -HasPage returns a boolean if a field has been set. - -### GetPageSize - -`func (o *FunctionMatchingRequest) GetPageSize() int32` - -GetPageSize returns the PageSize field if non-nil, zero value otherwise. - -### GetPageSizeOk - -`func (o *FunctionMatchingRequest) GetPageSizeOk() (*int32, bool)` - -GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageSize - -`func (o *FunctionMatchingRequest) SetPageSize(v int32)` - -SetPageSize sets PageSize field to given value. - -### HasPageSize - -`func (o *FunctionMatchingRequest) HasPageSize() bool` - -HasPageSize returns a boolean if a field has been set. - -### GetStatusOnly - -`func (o *FunctionMatchingRequest) GetStatusOnly() bool` - -GetStatusOnly returns the StatusOnly field if non-nil, zero value otherwise. - -### GetStatusOnlyOk - -`func (o *FunctionMatchingRequest) GetStatusOnlyOk() (*bool, bool)` - -GetStatusOnlyOk returns a tuple with the StatusOnly field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatusOnly - -`func (o *FunctionMatchingRequest) SetStatusOnly(v bool)` - -SetStatusOnly sets StatusOnly field to given value. - -### HasStatusOnly - -`func (o *FunctionMatchingRequest) HasStatusOnly() bool` - -HasStatusOnly returns a boolean if a field has been set. - -### GetNoCache - -`func (o *FunctionMatchingRequest) GetNoCache() bool` - -GetNoCache returns the NoCache field if non-nil, zero value otherwise. - -### GetNoCacheOk - -`func (o *FunctionMatchingRequest) GetNoCacheOk() (*bool, bool)` - -GetNoCacheOk returns a tuple with the NoCache field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNoCache - -`func (o *FunctionMatchingRequest) SetNoCache(v bool)` - -SetNoCache sets NoCache field to given value. - -### HasNoCache - -`func (o *FunctionMatchingRequest) HasNoCache() bool` - -HasNoCache returns a boolean if a field has been set. - -### GetUseCanonicalNames - -`func (o *FunctionMatchingRequest) GetUseCanonicalNames() bool` - -GetUseCanonicalNames returns the UseCanonicalNames field if non-nil, zero value otherwise. - -### GetUseCanonicalNamesOk - -`func (o *FunctionMatchingRequest) GetUseCanonicalNamesOk() (*bool, bool)` - -GetUseCanonicalNamesOk returns a tuple with the UseCanonicalNames field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUseCanonicalNames - -`func (o *FunctionMatchingRequest) SetUseCanonicalNames(v bool)` - -SetUseCanonicalNames sets UseCanonicalNames field to given value. - -### HasUseCanonicalNames - -`func (o *FunctionMatchingRequest) HasUseCanonicalNames() bool` - -HasUseCanonicalNames returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/FunctionMatchingResponse.md b/docs/FunctionMatchingResponse.md deleted file mode 100644 index 674e475..0000000 --- a/docs/FunctionMatchingResponse.md +++ /dev/null @@ -1,380 +0,0 @@ -# FunctionMatchingResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Progress** | Pointer to **int32** | Progress of the matching operation, represented as a percentage | [optional] [default to 0] -**Status** | Pointer to **NullableString** | | [optional] -**TotalTime** | Pointer to **NullableInt32** | | [optional] -**ErrorMessage** | Pointer to **NullableString** | | [optional] -**CurrentPage** | Pointer to **NullableInt32** | | [optional] -**TotalPages** | Pointer to **NullableInt32** | | [optional] -**Matches** | Pointer to [**[]V2FunctionMatch**](V2FunctionMatch.md) | | [optional] -**NumMatches** | Pointer to **NullableInt32** | | [optional] -**NumDebugMatches** | Pointer to **NullableInt32** | | [optional] -**UpdatedAt** | Pointer to **NullableString** | | [optional] - -## Methods - -### NewFunctionMatchingResponse - -`func NewFunctionMatchingResponse() *FunctionMatchingResponse` - -NewFunctionMatchingResponse instantiates a new FunctionMatchingResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewFunctionMatchingResponseWithDefaults - -`func NewFunctionMatchingResponseWithDefaults() *FunctionMatchingResponse` - -NewFunctionMatchingResponseWithDefaults instantiates a new FunctionMatchingResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetProgress - -`func (o *FunctionMatchingResponse) GetProgress() int32` - -GetProgress returns the Progress field if non-nil, zero value otherwise. - -### GetProgressOk - -`func (o *FunctionMatchingResponse) GetProgressOk() (*int32, bool)` - -GetProgressOk returns a tuple with the Progress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProgress - -`func (o *FunctionMatchingResponse) SetProgress(v int32)` - -SetProgress sets Progress field to given value. - -### HasProgress - -`func (o *FunctionMatchingResponse) HasProgress() bool` - -HasProgress returns a boolean if a field has been set. - -### GetStatus - -`func (o *FunctionMatchingResponse) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *FunctionMatchingResponse) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *FunctionMatchingResponse) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *FunctionMatchingResponse) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### SetStatusNil - -`func (o *FunctionMatchingResponse) SetStatusNil(b bool)` - - SetStatusNil sets the value for Status to be an explicit nil - -### UnsetStatus -`func (o *FunctionMatchingResponse) UnsetStatus()` - -UnsetStatus ensures that no value is present for Status, not even an explicit nil -### GetTotalTime - -`func (o *FunctionMatchingResponse) GetTotalTime() int32` - -GetTotalTime returns the TotalTime field if non-nil, zero value otherwise. - -### GetTotalTimeOk - -`func (o *FunctionMatchingResponse) GetTotalTimeOk() (*int32, bool)` - -GetTotalTimeOk returns a tuple with the TotalTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalTime - -`func (o *FunctionMatchingResponse) SetTotalTime(v int32)` - -SetTotalTime sets TotalTime field to given value. - -### HasTotalTime - -`func (o *FunctionMatchingResponse) HasTotalTime() bool` - -HasTotalTime returns a boolean if a field has been set. - -### SetTotalTimeNil - -`func (o *FunctionMatchingResponse) SetTotalTimeNil(b bool)` - - SetTotalTimeNil sets the value for TotalTime to be an explicit nil - -### UnsetTotalTime -`func (o *FunctionMatchingResponse) UnsetTotalTime()` - -UnsetTotalTime ensures that no value is present for TotalTime, not even an explicit nil -### GetErrorMessage - -`func (o *FunctionMatchingResponse) GetErrorMessage() string` - -GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. - -### GetErrorMessageOk - -`func (o *FunctionMatchingResponse) GetErrorMessageOk() (*string, bool)` - -GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetErrorMessage - -`func (o *FunctionMatchingResponse) SetErrorMessage(v string)` - -SetErrorMessage sets ErrorMessage field to given value. - -### HasErrorMessage - -`func (o *FunctionMatchingResponse) HasErrorMessage() bool` - -HasErrorMessage returns a boolean if a field has been set. - -### SetErrorMessageNil - -`func (o *FunctionMatchingResponse) SetErrorMessageNil(b bool)` - - SetErrorMessageNil sets the value for ErrorMessage to be an explicit nil - -### UnsetErrorMessage -`func (o *FunctionMatchingResponse) UnsetErrorMessage()` - -UnsetErrorMessage ensures that no value is present for ErrorMessage, not even an explicit nil -### GetCurrentPage - -`func (o *FunctionMatchingResponse) GetCurrentPage() int32` - -GetCurrentPage returns the CurrentPage field if non-nil, zero value otherwise. - -### GetCurrentPageOk - -`func (o *FunctionMatchingResponse) GetCurrentPageOk() (*int32, bool)` - -GetCurrentPageOk returns a tuple with the CurrentPage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCurrentPage - -`func (o *FunctionMatchingResponse) SetCurrentPage(v int32)` - -SetCurrentPage sets CurrentPage field to given value. - -### HasCurrentPage - -`func (o *FunctionMatchingResponse) HasCurrentPage() bool` - -HasCurrentPage returns a boolean if a field has been set. - -### SetCurrentPageNil - -`func (o *FunctionMatchingResponse) SetCurrentPageNil(b bool)` - - SetCurrentPageNil sets the value for CurrentPage to be an explicit nil - -### UnsetCurrentPage -`func (o *FunctionMatchingResponse) UnsetCurrentPage()` - -UnsetCurrentPage ensures that no value is present for CurrentPage, not even an explicit nil -### GetTotalPages - -`func (o *FunctionMatchingResponse) GetTotalPages() int32` - -GetTotalPages returns the TotalPages field if non-nil, zero value otherwise. - -### GetTotalPagesOk - -`func (o *FunctionMatchingResponse) GetTotalPagesOk() (*int32, bool)` - -GetTotalPagesOk returns a tuple with the TotalPages field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalPages - -`func (o *FunctionMatchingResponse) SetTotalPages(v int32)` - -SetTotalPages sets TotalPages field to given value. - -### HasTotalPages - -`func (o *FunctionMatchingResponse) HasTotalPages() bool` - -HasTotalPages returns a boolean if a field has been set. - -### SetTotalPagesNil - -`func (o *FunctionMatchingResponse) SetTotalPagesNil(b bool)` - - SetTotalPagesNil sets the value for TotalPages to be an explicit nil - -### UnsetTotalPages -`func (o *FunctionMatchingResponse) UnsetTotalPages()` - -UnsetTotalPages ensures that no value is present for TotalPages, not even an explicit nil -### GetMatches - -`func (o *FunctionMatchingResponse) GetMatches() []V2FunctionMatch` - -GetMatches returns the Matches field if non-nil, zero value otherwise. - -### GetMatchesOk - -`func (o *FunctionMatchingResponse) GetMatchesOk() (*[]V2FunctionMatch, bool)` - -GetMatchesOk returns a tuple with the Matches field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMatches - -`func (o *FunctionMatchingResponse) SetMatches(v []V2FunctionMatch)` - -SetMatches sets Matches field to given value. - -### HasMatches - -`func (o *FunctionMatchingResponse) HasMatches() bool` - -HasMatches returns a boolean if a field has been set. - -### SetMatchesNil - -`func (o *FunctionMatchingResponse) SetMatchesNil(b bool)` - - SetMatchesNil sets the value for Matches to be an explicit nil - -### UnsetMatches -`func (o *FunctionMatchingResponse) UnsetMatches()` - -UnsetMatches ensures that no value is present for Matches, not even an explicit nil -### GetNumMatches - -`func (o *FunctionMatchingResponse) GetNumMatches() int32` - -GetNumMatches returns the NumMatches field if non-nil, zero value otherwise. - -### GetNumMatchesOk - -`func (o *FunctionMatchingResponse) GetNumMatchesOk() (*int32, bool)` - -GetNumMatchesOk returns a tuple with the NumMatches field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNumMatches - -`func (o *FunctionMatchingResponse) SetNumMatches(v int32)` - -SetNumMatches sets NumMatches field to given value. - -### HasNumMatches - -`func (o *FunctionMatchingResponse) HasNumMatches() bool` - -HasNumMatches returns a boolean if a field has been set. - -### SetNumMatchesNil - -`func (o *FunctionMatchingResponse) SetNumMatchesNil(b bool)` - - SetNumMatchesNil sets the value for NumMatches to be an explicit nil - -### UnsetNumMatches -`func (o *FunctionMatchingResponse) UnsetNumMatches()` - -UnsetNumMatches ensures that no value is present for NumMatches, not even an explicit nil -### GetNumDebugMatches - -`func (o *FunctionMatchingResponse) GetNumDebugMatches() int32` - -GetNumDebugMatches returns the NumDebugMatches field if non-nil, zero value otherwise. - -### GetNumDebugMatchesOk - -`func (o *FunctionMatchingResponse) GetNumDebugMatchesOk() (*int32, bool)` - -GetNumDebugMatchesOk returns a tuple with the NumDebugMatches field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNumDebugMatches - -`func (o *FunctionMatchingResponse) SetNumDebugMatches(v int32)` - -SetNumDebugMatches sets NumDebugMatches field to given value. - -### HasNumDebugMatches - -`func (o *FunctionMatchingResponse) HasNumDebugMatches() bool` - -HasNumDebugMatches returns a boolean if a field has been set. - -### SetNumDebugMatchesNil - -`func (o *FunctionMatchingResponse) SetNumDebugMatchesNil(b bool)` - - SetNumDebugMatchesNil sets the value for NumDebugMatches to be an explicit nil - -### UnsetNumDebugMatches -`func (o *FunctionMatchingResponse) UnsetNumDebugMatches()` - -UnsetNumDebugMatches ensures that no value is present for NumDebugMatches, not even an explicit nil -### GetUpdatedAt - -`func (o *FunctionMatchingResponse) GetUpdatedAt() string` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *FunctionMatchingResponse) GetUpdatedAtOk() (*string, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *FunctionMatchingResponse) SetUpdatedAt(v string)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *FunctionMatchingResponse) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - -### SetUpdatedAtNil - -`func (o *FunctionMatchingResponse) SetUpdatedAtNil(b bool)` - - SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil - -### UnsetUpdatedAt -`func (o *FunctionMatchingResponse) UnsetUpdatedAt()` - -UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/FunctionsCoreAPI.md b/docs/FunctionsCoreAPI.md index 0096fc1..163a5ca 100644 --- a/docs/FunctionsCoreAPI.md +++ b/docs/FunctionsCoreAPI.md @@ -6,12 +6,6 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**AddFunctionCallee**](FunctionsCoreAPI.md#AddFunctionCallee) | **Post** /v3/functions/{function_id}/callees | Add a callee to a function [**AddUserStringToFunction**](FunctionsCoreAPI.md#AddUserStringToFunction) | **Post** /v3/functions/{function_id}/user-provided-strings | Add a user-provided string to a function. -[**AiUnstrip**](FunctionsCoreAPI.md#AiUnstrip) | **Post** /v2/analyses/{analysis_id}/functions/ai-unstrip | Performs matching and auto-unstrip for an analysis and its functions -[**AnalysisFunctionMatching**](FunctionsCoreAPI.md#AnalysisFunctionMatching) | **Post** /v2/analyses/{analysis_id}/functions/matches | Perform matching for the functions of an analysis -[**AutoUnstrip**](FunctionsCoreAPI.md#AutoUnstrip) | **Post** /v2/analyses/{analysis_id}/functions/auto-unstrip | Performs matching and auto-unstrip for an analysis and its functions -[**BatchFunctionMatching**](FunctionsCoreAPI.md#BatchFunctionMatching) | **Post** /v2/functions/matches | Perform function matching for an arbitrary batch of functions, binaries or collections -[**CancelAiUnstrip**](FunctionsCoreAPI.md#CancelAiUnstrip) | **Delete** /v2/analyses/{analysis_id}/functions/ai-unstrip/cancel | Cancels a running ai-unstrip -[**CancelAutoUnstrip**](FunctionsCoreAPI.md#CancelAutoUnstrip) | **Delete** /v2/analyses/{analysis_id}/functions/unstrip/cancel | Cancels a running auto-unstrip [**GetAnalysisStrings**](FunctionsCoreAPI.md#GetAnalysisStrings) | **Get** /v2/analyses/{analysis_id}/functions/strings | Get string information found in the Analysis [**GetAnalysisStringsStatus**](FunctionsCoreAPI.md#GetAnalysisStringsStatus) | **Get** /v2/analyses/{analysis_id}/functions/strings/status | Get string processing state for the Analysis [**GetFunctionBlocks**](FunctionsCoreAPI.md#GetFunctionBlocks) | **Get** /v2/functions/{function_id}/blocks | Get disassembly blocks related to the function @@ -181,428 +175,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## AiUnstrip - -> AutoUnstripResponse AiUnstrip(ctx, analysisId).AiUnstripRequest(aiUnstripRequest).Execute() - -Performs matching and auto-unstrip for an analysis and its functions - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - revengai "github.com/RevEngAI/sdk-go/v3" -) - -func main() { - analysisId := int32(56) // int32 | - aiUnstripRequest := *revengai.NewAiUnstripRequest() // AiUnstripRequest | - - configuration := revengai.NewConfiguration() - apiClient := revengai.NewAPIClient(configuration) - resp, r, err := apiClient.FunctionsCoreAPI.AiUnstrip(context.Background(), analysisId).AiUnstripRequest(aiUnstripRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `FunctionsCoreAPI.AiUnstrip``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AiUnstrip`: AutoUnstripResponse - fmt.Fprintf(os.Stdout, "Response from `FunctionsCoreAPI.AiUnstrip`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**analysisId** | **int32** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiAiUnstripRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **aiUnstripRequest** | [**AiUnstripRequest**](AiUnstripRequest.md) | | - -### Return type - -[**AutoUnstripResponse**](AutoUnstripResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## AnalysisFunctionMatching - -> FunctionMatchingResponse AnalysisFunctionMatching(ctx, analysisId).AnalysisFunctionMatchingRequest(analysisFunctionMatchingRequest).Execute() - -Perform matching for the functions of an analysis - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - revengai "github.com/RevEngAI/sdk-go/v3" -) - -func main() { - analysisId := int32(56) // int32 | - analysisFunctionMatchingRequest := *revengai.NewAnalysisFunctionMatchingRequest() // AnalysisFunctionMatchingRequest | - - configuration := revengai.NewConfiguration() - apiClient := revengai.NewAPIClient(configuration) - resp, r, err := apiClient.FunctionsCoreAPI.AnalysisFunctionMatching(context.Background(), analysisId).AnalysisFunctionMatchingRequest(analysisFunctionMatchingRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `FunctionsCoreAPI.AnalysisFunctionMatching``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AnalysisFunctionMatching`: FunctionMatchingResponse - fmt.Fprintf(os.Stdout, "Response from `FunctionsCoreAPI.AnalysisFunctionMatching`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**analysisId** | **int32** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiAnalysisFunctionMatchingRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **analysisFunctionMatchingRequest** | [**AnalysisFunctionMatchingRequest**](AnalysisFunctionMatchingRequest.md) | | - -### Return type - -[**FunctionMatchingResponse**](FunctionMatchingResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## AutoUnstrip - -> AutoUnstripResponse AutoUnstrip(ctx, analysisId).AutoUnstripRequest(autoUnstripRequest).Execute() - -Performs matching and auto-unstrip for an analysis and its functions - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - revengai "github.com/RevEngAI/sdk-go/v3" -) - -func main() { - analysisId := int32(56) // int32 | - autoUnstripRequest := *revengai.NewAutoUnstripRequest() // AutoUnstripRequest | - - configuration := revengai.NewConfiguration() - apiClient := revengai.NewAPIClient(configuration) - resp, r, err := apiClient.FunctionsCoreAPI.AutoUnstrip(context.Background(), analysisId).AutoUnstripRequest(autoUnstripRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `FunctionsCoreAPI.AutoUnstrip``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AutoUnstrip`: AutoUnstripResponse - fmt.Fprintf(os.Stdout, "Response from `FunctionsCoreAPI.AutoUnstrip`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**analysisId** | **int32** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiAutoUnstripRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **autoUnstripRequest** | [**AutoUnstripRequest**](AutoUnstripRequest.md) | | - -### Return type - -[**AutoUnstripResponse**](AutoUnstripResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## BatchFunctionMatching - -> FunctionMatchingResponse BatchFunctionMatching(ctx).FunctionMatchingRequest(functionMatchingRequest).Execute() - -Perform function matching for an arbitrary batch of functions, binaries or collections - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - revengai "github.com/RevEngAI/sdk-go/v3" -) - -func main() { - functionMatchingRequest := *revengai.NewFunctionMatchingRequest(int32(123), []int64{int64(123)}) // FunctionMatchingRequest | - - configuration := revengai.NewConfiguration() - apiClient := revengai.NewAPIClient(configuration) - resp, r, err := apiClient.FunctionsCoreAPI.BatchFunctionMatching(context.Background()).FunctionMatchingRequest(functionMatchingRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `FunctionsCoreAPI.BatchFunctionMatching``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `BatchFunctionMatching`: FunctionMatchingResponse - fmt.Fprintf(os.Stdout, "Response from `FunctionsCoreAPI.BatchFunctionMatching`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiBatchFunctionMatchingRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **functionMatchingRequest** | [**FunctionMatchingRequest**](FunctionMatchingRequest.md) | | - -### Return type - -[**FunctionMatchingResponse**](FunctionMatchingResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CancelAiUnstrip - -> AutoUnstripResponse CancelAiUnstrip(ctx, analysisId).Execute() - -Cancels a running ai-unstrip - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - revengai "github.com/RevEngAI/sdk-go/v3" -) - -func main() { - analysisId := int32(56) // int32 | - - configuration := revengai.NewConfiguration() - apiClient := revengai.NewAPIClient(configuration) - resp, r, err := apiClient.FunctionsCoreAPI.CancelAiUnstrip(context.Background(), analysisId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `FunctionsCoreAPI.CancelAiUnstrip``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CancelAiUnstrip`: AutoUnstripResponse - fmt.Fprintf(os.Stdout, "Response from `FunctionsCoreAPI.CancelAiUnstrip`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**analysisId** | **int32** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiCancelAiUnstripRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**AutoUnstripResponse**](AutoUnstripResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CancelAutoUnstrip - -> AutoUnstripResponse CancelAutoUnstrip(ctx, analysisId).Execute() - -Cancels a running auto-unstrip - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - revengai "github.com/RevEngAI/sdk-go/v3" -) - -func main() { - analysisId := int32(56) // int32 | - - configuration := revengai.NewConfiguration() - apiClient := revengai.NewAPIClient(configuration) - resp, r, err := apiClient.FunctionsCoreAPI.CancelAutoUnstrip(context.Background(), analysisId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `FunctionsCoreAPI.CancelAutoUnstrip``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CancelAutoUnstrip`: AutoUnstripResponse - fmt.Fprintf(os.Stdout, "Response from `FunctionsCoreAPI.CancelAutoUnstrip`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**analysisId** | **int32** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiCancelAutoUnstripRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**AutoUnstripResponse**](AutoUnstripResponse.md) - -### Authorization - -[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## GetAnalysisStrings > BaseResponseAnalysisStringsResponse GetAnalysisStrings(ctx, analysisId).Page(page).PageSize(pageSize).Search(search).FunctionSearch(functionSearch).OrderBy(orderBy).SortOrder(sortOrder).Execute() diff --git a/docs/GetAnalysisStringsStatusOutputBody.md b/docs/GetAnalysisStringsStatusOutputBody.md index bd5d762..593a920 100644 --- a/docs/GetAnalysisStringsStatusOutputBody.md +++ b/docs/GetAnalysisStringsStatusOutputBody.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | **string** | | +**Status** | **string** | String-extraction task status | ## Methods diff --git a/docs/MatchedFunctionSuggestion.md b/docs/MatchedFunctionSuggestion.md deleted file mode 100644 index 5c24657..0000000 --- a/docs/MatchedFunctionSuggestion.md +++ /dev/null @@ -1,129 +0,0 @@ -# MatchedFunctionSuggestion - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FunctionId** | **int64** | Unique identifier of the matched function | -**FunctionVaddr** | **int64** | Virtual address of the matched function | -**SuggestedName** | Pointer to **NullableString** | | [optional] -**SuggestedDemangledName** | **string** | De-mangled name of the function group that contains the matched functions | - -## Methods - -### NewMatchedFunctionSuggestion - -`func NewMatchedFunctionSuggestion(functionId int64, functionVaddr int64, suggestedDemangledName string, ) *MatchedFunctionSuggestion` - -NewMatchedFunctionSuggestion instantiates a new MatchedFunctionSuggestion object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMatchedFunctionSuggestionWithDefaults - -`func NewMatchedFunctionSuggestionWithDefaults() *MatchedFunctionSuggestion` - -NewMatchedFunctionSuggestionWithDefaults instantiates a new MatchedFunctionSuggestion object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetFunctionId - -`func (o *MatchedFunctionSuggestion) GetFunctionId() int64` - -GetFunctionId returns the FunctionId field if non-nil, zero value otherwise. - -### GetFunctionIdOk - -`func (o *MatchedFunctionSuggestion) GetFunctionIdOk() (*int64, bool)` - -GetFunctionIdOk returns a tuple with the FunctionId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFunctionId - -`func (o *MatchedFunctionSuggestion) SetFunctionId(v int64)` - -SetFunctionId sets FunctionId field to given value. - - -### GetFunctionVaddr - -`func (o *MatchedFunctionSuggestion) GetFunctionVaddr() int64` - -GetFunctionVaddr returns the FunctionVaddr field if non-nil, zero value otherwise. - -### GetFunctionVaddrOk - -`func (o *MatchedFunctionSuggestion) GetFunctionVaddrOk() (*int64, bool)` - -GetFunctionVaddrOk returns a tuple with the FunctionVaddr field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFunctionVaddr - -`func (o *MatchedFunctionSuggestion) SetFunctionVaddr(v int64)` - -SetFunctionVaddr sets FunctionVaddr field to given value. - - -### GetSuggestedName - -`func (o *MatchedFunctionSuggestion) GetSuggestedName() string` - -GetSuggestedName returns the SuggestedName field if non-nil, zero value otherwise. - -### GetSuggestedNameOk - -`func (o *MatchedFunctionSuggestion) GetSuggestedNameOk() (*string, bool)` - -GetSuggestedNameOk returns a tuple with the SuggestedName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSuggestedName - -`func (o *MatchedFunctionSuggestion) SetSuggestedName(v string)` - -SetSuggestedName sets SuggestedName field to given value. - -### HasSuggestedName - -`func (o *MatchedFunctionSuggestion) HasSuggestedName() bool` - -HasSuggestedName returns a boolean if a field has been set. - -### SetSuggestedNameNil - -`func (o *MatchedFunctionSuggestion) SetSuggestedNameNil(b bool)` - - SetSuggestedNameNil sets the value for SuggestedName to be an explicit nil - -### UnsetSuggestedName -`func (o *MatchedFunctionSuggestion) UnsetSuggestedName()` - -UnsetSuggestedName ensures that no value is present for SuggestedName, not even an explicit nil -### GetSuggestedDemangledName - -`func (o *MatchedFunctionSuggestion) GetSuggestedDemangledName() string` - -GetSuggestedDemangledName returns the SuggestedDemangledName field if non-nil, zero value otherwise. - -### GetSuggestedDemangledNameOk - -`func (o *MatchedFunctionSuggestion) GetSuggestedDemangledNameOk() (*string, bool)` - -GetSuggestedDemangledNameOk returns a tuple with the SuggestedDemangledName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSuggestedDemangledName - -`func (o *MatchedFunctionSuggestion) SetSuggestedDemangledName(v string)` - -SetSuggestedDemangledName sets SuggestedDemangledName field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2FunctionMatch.md b/docs/V2FunctionMatch.md deleted file mode 100644 index 6b4bdc8..0000000 --- a/docs/V2FunctionMatch.md +++ /dev/null @@ -1,108 +0,0 @@ -# V2FunctionMatch - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FunctionId** | **int64** | Unique identifier of the function | -**MatchedFunctions** | [**[]V2MatchedFunction**](V2MatchedFunction.md) | | -**Confidences** | Pointer to [**[]V2NameConfidence**](V2NameConfidence.md) | | [optional] - -## Methods - -### NewV2FunctionMatch - -`func NewV2FunctionMatch(functionId int64, matchedFunctions []V2MatchedFunction, ) *V2FunctionMatch` - -NewV2FunctionMatch instantiates a new V2FunctionMatch object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewV2FunctionMatchWithDefaults - -`func NewV2FunctionMatchWithDefaults() *V2FunctionMatch` - -NewV2FunctionMatchWithDefaults instantiates a new V2FunctionMatch object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetFunctionId - -`func (o *V2FunctionMatch) GetFunctionId() int64` - -GetFunctionId returns the FunctionId field if non-nil, zero value otherwise. - -### GetFunctionIdOk - -`func (o *V2FunctionMatch) GetFunctionIdOk() (*int64, bool)` - -GetFunctionIdOk returns a tuple with the FunctionId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFunctionId - -`func (o *V2FunctionMatch) SetFunctionId(v int64)` - -SetFunctionId sets FunctionId field to given value. - - -### GetMatchedFunctions - -`func (o *V2FunctionMatch) GetMatchedFunctions() []V2MatchedFunction` - -GetMatchedFunctions returns the MatchedFunctions field if non-nil, zero value otherwise. - -### GetMatchedFunctionsOk - -`func (o *V2FunctionMatch) GetMatchedFunctionsOk() (*[]V2MatchedFunction, bool)` - -GetMatchedFunctionsOk returns a tuple with the MatchedFunctions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMatchedFunctions - -`func (o *V2FunctionMatch) SetMatchedFunctions(v []V2MatchedFunction)` - -SetMatchedFunctions sets MatchedFunctions field to given value. - - -### GetConfidences - -`func (o *V2FunctionMatch) GetConfidences() []V2NameConfidence` - -GetConfidences returns the Confidences field if non-nil, zero value otherwise. - -### GetConfidencesOk - -`func (o *V2FunctionMatch) GetConfidencesOk() (*[]V2NameConfidence, bool)` - -GetConfidencesOk returns a tuple with the Confidences field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConfidences - -`func (o *V2FunctionMatch) SetConfidences(v []V2NameConfidence)` - -SetConfidences sets Confidences field to given value. - -### HasConfidences - -`func (o *V2FunctionMatch) HasConfidences() bool` - -HasConfidences returns a boolean if a field has been set. - -### SetConfidencesNil - -`func (o *V2FunctionMatch) SetConfidencesNil(b bool)` - - SetConfidencesNil sets the value for Confidences to be an explicit nil - -### UnsetConfidences -`func (o *V2FunctionMatch) UnsetConfidences()` - -UnsetConfidences ensures that no value is present for Confidences, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2MatchedFunction.md b/docs/V2MatchedFunction.md deleted file mode 100644 index 4be8bb1..0000000 --- a/docs/V2MatchedFunction.md +++ /dev/null @@ -1,291 +0,0 @@ -# V2MatchedFunction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FunctionId** | **int64** | Unique identifier of the matched function | -**BinaryId** | **int32** | | -**FunctionName** | **string** | | -**FunctionVaddr** | **int64** | | -**MangledName** | **string** | | -**Debug** | **bool** | | -**BinaryName** | **string** | | -**Sha256Hash** | **string** | | -**AnalysisId** | **int32** | | -**Similarity** | Pointer to **NullableFloat32** | | [optional] -**Confidence** | Pointer to **NullableFloat32** | | [optional] - -## Methods - -### NewV2MatchedFunction - -`func NewV2MatchedFunction(functionId int64, binaryId int32, functionName string, functionVaddr int64, mangledName string, debug bool, binaryName string, sha256Hash string, analysisId int32, ) *V2MatchedFunction` - -NewV2MatchedFunction instantiates a new V2MatchedFunction object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewV2MatchedFunctionWithDefaults - -`func NewV2MatchedFunctionWithDefaults() *V2MatchedFunction` - -NewV2MatchedFunctionWithDefaults instantiates a new V2MatchedFunction object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetFunctionId - -`func (o *V2MatchedFunction) GetFunctionId() int64` - -GetFunctionId returns the FunctionId field if non-nil, zero value otherwise. - -### GetFunctionIdOk - -`func (o *V2MatchedFunction) GetFunctionIdOk() (*int64, bool)` - -GetFunctionIdOk returns a tuple with the FunctionId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFunctionId - -`func (o *V2MatchedFunction) SetFunctionId(v int64)` - -SetFunctionId sets FunctionId field to given value. - - -### GetBinaryId - -`func (o *V2MatchedFunction) GetBinaryId() int32` - -GetBinaryId returns the BinaryId field if non-nil, zero value otherwise. - -### GetBinaryIdOk - -`func (o *V2MatchedFunction) GetBinaryIdOk() (*int32, bool)` - -GetBinaryIdOk returns a tuple with the BinaryId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBinaryId - -`func (o *V2MatchedFunction) SetBinaryId(v int32)` - -SetBinaryId sets BinaryId field to given value. - - -### GetFunctionName - -`func (o *V2MatchedFunction) GetFunctionName() string` - -GetFunctionName returns the FunctionName field if non-nil, zero value otherwise. - -### GetFunctionNameOk - -`func (o *V2MatchedFunction) GetFunctionNameOk() (*string, bool)` - -GetFunctionNameOk returns a tuple with the FunctionName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFunctionName - -`func (o *V2MatchedFunction) SetFunctionName(v string)` - -SetFunctionName sets FunctionName field to given value. - - -### GetFunctionVaddr - -`func (o *V2MatchedFunction) GetFunctionVaddr() int64` - -GetFunctionVaddr returns the FunctionVaddr field if non-nil, zero value otherwise. - -### GetFunctionVaddrOk - -`func (o *V2MatchedFunction) GetFunctionVaddrOk() (*int64, bool)` - -GetFunctionVaddrOk returns a tuple with the FunctionVaddr field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFunctionVaddr - -`func (o *V2MatchedFunction) SetFunctionVaddr(v int64)` - -SetFunctionVaddr sets FunctionVaddr field to given value. - - -### GetMangledName - -`func (o *V2MatchedFunction) GetMangledName() string` - -GetMangledName returns the MangledName field if non-nil, zero value otherwise. - -### GetMangledNameOk - -`func (o *V2MatchedFunction) GetMangledNameOk() (*string, bool)` - -GetMangledNameOk returns a tuple with the MangledName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMangledName - -`func (o *V2MatchedFunction) SetMangledName(v string)` - -SetMangledName sets MangledName field to given value. - - -### GetDebug - -`func (o *V2MatchedFunction) GetDebug() bool` - -GetDebug returns the Debug field if non-nil, zero value otherwise. - -### GetDebugOk - -`func (o *V2MatchedFunction) GetDebugOk() (*bool, bool)` - -GetDebugOk returns a tuple with the Debug field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDebug - -`func (o *V2MatchedFunction) SetDebug(v bool)` - -SetDebug sets Debug field to given value. - - -### GetBinaryName - -`func (o *V2MatchedFunction) GetBinaryName() string` - -GetBinaryName returns the BinaryName field if non-nil, zero value otherwise. - -### GetBinaryNameOk - -`func (o *V2MatchedFunction) GetBinaryNameOk() (*string, bool)` - -GetBinaryNameOk returns a tuple with the BinaryName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBinaryName - -`func (o *V2MatchedFunction) SetBinaryName(v string)` - -SetBinaryName sets BinaryName field to given value. - - -### GetSha256Hash - -`func (o *V2MatchedFunction) GetSha256Hash() string` - -GetSha256Hash returns the Sha256Hash field if non-nil, zero value otherwise. - -### GetSha256HashOk - -`func (o *V2MatchedFunction) GetSha256HashOk() (*string, bool)` - -GetSha256HashOk returns a tuple with the Sha256Hash field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSha256Hash - -`func (o *V2MatchedFunction) SetSha256Hash(v string)` - -SetSha256Hash sets Sha256Hash field to given value. - - -### GetAnalysisId - -`func (o *V2MatchedFunction) GetAnalysisId() int32` - -GetAnalysisId returns the AnalysisId field if non-nil, zero value otherwise. - -### GetAnalysisIdOk - -`func (o *V2MatchedFunction) GetAnalysisIdOk() (*int32, bool)` - -GetAnalysisIdOk returns a tuple with the AnalysisId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAnalysisId - -`func (o *V2MatchedFunction) SetAnalysisId(v int32)` - -SetAnalysisId sets AnalysisId field to given value. - - -### GetSimilarity - -`func (o *V2MatchedFunction) GetSimilarity() float32` - -GetSimilarity returns the Similarity field if non-nil, zero value otherwise. - -### GetSimilarityOk - -`func (o *V2MatchedFunction) GetSimilarityOk() (*float32, bool)` - -GetSimilarityOk returns a tuple with the Similarity field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSimilarity - -`func (o *V2MatchedFunction) SetSimilarity(v float32)` - -SetSimilarity sets Similarity field to given value. - -### HasSimilarity - -`func (o *V2MatchedFunction) HasSimilarity() bool` - -HasSimilarity returns a boolean if a field has been set. - -### SetSimilarityNil - -`func (o *V2MatchedFunction) SetSimilarityNil(b bool)` - - SetSimilarityNil sets the value for Similarity to be an explicit nil - -### UnsetSimilarity -`func (o *V2MatchedFunction) UnsetSimilarity()` - -UnsetSimilarity ensures that no value is present for Similarity, not even an explicit nil -### GetConfidence - -`func (o *V2MatchedFunction) GetConfidence() float32` - -GetConfidence returns the Confidence field if non-nil, zero value otherwise. - -### GetConfidenceOk - -`func (o *V2MatchedFunction) GetConfidenceOk() (*float32, bool)` - -GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConfidence - -`func (o *V2MatchedFunction) SetConfidence(v float32)` - -SetConfidence sets Confidence field to given value. - -### HasConfidence - -`func (o *V2MatchedFunction) HasConfidence() bool` - -HasConfidence returns a boolean if a field has been set. - -### SetConfidenceNil - -`func (o *V2MatchedFunction) SetConfidenceNil(b bool)` - - SetConfidenceNil sets the value for Confidence to be an explicit nil - -### UnsetConfidence -`func (o *V2MatchedFunction) UnsetConfidence()` - -UnsetConfidence ensures that no value is present for Confidence, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2NameConfidence.md b/docs/V2NameConfidence.md deleted file mode 100644 index e46dbc6..0000000 --- a/docs/V2NameConfidence.md +++ /dev/null @@ -1,72 +0,0 @@ -# V2NameConfidence - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | The suggested function name | -**Confidence** | **float32** | Confidence score as a percentage | - -## Methods - -### NewV2NameConfidence - -`func NewV2NameConfidence(name string, confidence float32, ) *V2NameConfidence` - -NewV2NameConfidence instantiates a new V2NameConfidence object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewV2NameConfidenceWithDefaults - -`func NewV2NameConfidenceWithDefaults() *V2NameConfidence` - -NewV2NameConfidenceWithDefaults instantiates a new V2NameConfidence object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetName - -`func (o *V2NameConfidence) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *V2NameConfidence) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *V2NameConfidence) SetName(v string)` - -SetName sets Name field to given value. - - -### GetConfidence - -`func (o *V2NameConfidence) GetConfidence() float32` - -GetConfidence returns the Confidence field if non-nil, zero value otherwise. - -### GetConfidenceOk - -`func (o *V2NameConfidence) GetConfidenceOk() (*float32, bool)` - -GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConfidence - -`func (o *V2NameConfidence) SetConfidence(v float32)` - -SetConfidence sets Confidence field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/v3/api_analyses_core.go b/v3/api_analyses_core.go index ab3aab7..5cd8b95 100644 --- a/v3/api_analyses_core.go +++ b/v3/api_analyses_core.go @@ -3875,6 +3875,7 @@ type ApiV3GetAnalysisStringsRequest struct { page *int64 pageSize *int64 search *string + searchOperator *string functionSearch *string orderBy *string sortOrder *string @@ -3898,6 +3899,12 @@ func (r ApiV3GetAnalysisStringsRequest) Search(search string) ApiV3GetAnalysisSt return r } +// How the search term matches string values. +func (r ApiV3GetAnalysisStringsRequest) SearchOperator(searchOperator string) ApiV3GetAnalysisStringsRequest { + r.searchOperator = &searchOperator + return r +} + // Filter by function name (case-insensitive substring match). func (r ApiV3GetAnalysisStringsRequest) FunctionSearch(functionSearch string) ApiV3GetAnalysisStringsRequest { r.functionSearch = &functionSearch @@ -3983,6 +3990,13 @@ func (a *AnalysesCoreAPIService) V3GetAnalysisStringsExecute(r ApiV3GetAnalysisS if r.search != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") } + if r.searchOperator != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search_operator", r.searchOperator, "form", "") + } else { + var defaultValue string = "CONTAINS" + parameterAddToHeaderOrQuery(localVarQueryParams, "search_operator", defaultValue, "form", "") + r.searchOperator = &defaultValue + } if r.functionSearch != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "function_search", r.functionSearch, "form", "") } diff --git a/v3/api_functions_core.go b/v3/api_functions_core.go index 82f9cc1..de1a607 100644 --- a/v3/api_functions_core.go +++ b/v3/api_functions_core.go @@ -391,826 +391,6 @@ func (a *FunctionsCoreAPIService) AddUserStringToFunctionExecute(r ApiAddUserStr return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAiUnstripRequest struct { - ctx context.Context - ApiService *FunctionsCoreAPIService - analysisId int32 - aiUnstripRequest *AiUnstripRequest -} - -func (r ApiAiUnstripRequest) AiUnstripRequest(aiUnstripRequest AiUnstripRequest) ApiAiUnstripRequest { - r.aiUnstripRequest = &aiUnstripRequest - return r -} - -func (r ApiAiUnstripRequest) Execute() (*AutoUnstripResponse, *http.Response, error) { - return r.ApiService.AiUnstripExecute(r) -} - -/* -AiUnstrip Performs matching and auto-unstrip for an analysis and its functions - -Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param analysisId - @return ApiAiUnstripRequest - -Deprecated -*/ -func (a *FunctionsCoreAPIService) AiUnstrip(ctx context.Context, analysisId int32) ApiAiUnstripRequest { - return ApiAiUnstripRequest{ - ApiService: a, - ctx: ctx, - analysisId: analysisId, - } -} - -// Execute executes the request -// @return AutoUnstripResponse -// Deprecated -func (a *FunctionsCoreAPIService) AiUnstripExecute(r ApiAiUnstripRequest) (*AutoUnstripResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AutoUnstripResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FunctionsCoreAPIService.AiUnstrip") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/v2/analyses/{analysis_id}/functions/ai-unstrip" - localVarPath = strings.Replace(localVarPath, "{"+"analysis_id"+"}", url.PathEscape(parameterValueToString(r.analysisId, "analysisId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.aiUnstripRequest == nil { - return localVarReturnValue, nil, reportError("aiUnstripRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.aiUnstripRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v BaseResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiAnalysisFunctionMatchingRequest struct { - ctx context.Context - ApiService *FunctionsCoreAPIService - analysisId int32 - analysisFunctionMatchingRequest *AnalysisFunctionMatchingRequest -} - -func (r ApiAnalysisFunctionMatchingRequest) AnalysisFunctionMatchingRequest(analysisFunctionMatchingRequest AnalysisFunctionMatchingRequest) ApiAnalysisFunctionMatchingRequest { - r.analysisFunctionMatchingRequest = &analysisFunctionMatchingRequest - return r -} - -func (r ApiAnalysisFunctionMatchingRequest) Execute() (*FunctionMatchingResponse, *http.Response, error) { - return r.ApiService.AnalysisFunctionMatchingExecute(r) -} - -/* -AnalysisFunctionMatching Perform matching for the functions of an analysis - -Takes in an analysis id and settings and matches the nearest functions to the ones associated with it. Results can optionally be filtered by collection, binary, debug type or (other) function ids - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param analysisId - @return ApiAnalysisFunctionMatchingRequest - -Deprecated -*/ -func (a *FunctionsCoreAPIService) AnalysisFunctionMatching(ctx context.Context, analysisId int32) ApiAnalysisFunctionMatchingRequest { - return ApiAnalysisFunctionMatchingRequest{ - ApiService: a, - ctx: ctx, - analysisId: analysisId, - } -} - -// Execute executes the request -// @return FunctionMatchingResponse -// Deprecated -func (a *FunctionsCoreAPIService) AnalysisFunctionMatchingExecute(r ApiAnalysisFunctionMatchingRequest) (*FunctionMatchingResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FunctionMatchingResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FunctionsCoreAPIService.AnalysisFunctionMatching") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/v2/analyses/{analysis_id}/functions/matches" - localVarPath = strings.Replace(localVarPath, "{"+"analysis_id"+"}", url.PathEscape(parameterValueToString(r.analysisId, "analysisId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.analysisFunctionMatchingRequest == nil { - return localVarReturnValue, nil, reportError("analysisFunctionMatchingRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.analysisFunctionMatchingRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v BaseResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiAutoUnstripRequest struct { - ctx context.Context - ApiService *FunctionsCoreAPIService - analysisId int32 - autoUnstripRequest *AutoUnstripRequest -} - -func (r ApiAutoUnstripRequest) AutoUnstripRequest(autoUnstripRequest AutoUnstripRequest) ApiAutoUnstripRequest { - r.autoUnstripRequest = &autoUnstripRequest - return r -} - -func (r ApiAutoUnstripRequest) Execute() (*AutoUnstripResponse, *http.Response, error) { - return r.ApiService.AutoUnstripExecute(r) -} - -/* -AutoUnstrip Performs matching and auto-unstrip for an analysis and its functions - -Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function for each function that's within the system - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param analysisId - @return ApiAutoUnstripRequest - -Deprecated -*/ -func (a *FunctionsCoreAPIService) AutoUnstrip(ctx context.Context, analysisId int32) ApiAutoUnstripRequest { - return ApiAutoUnstripRequest{ - ApiService: a, - ctx: ctx, - analysisId: analysisId, - } -} - -// Execute executes the request -// @return AutoUnstripResponse -// Deprecated -func (a *FunctionsCoreAPIService) AutoUnstripExecute(r ApiAutoUnstripRequest) (*AutoUnstripResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AutoUnstripResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FunctionsCoreAPIService.AutoUnstrip") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/v2/analyses/{analysis_id}/functions/auto-unstrip" - localVarPath = strings.Replace(localVarPath, "{"+"analysis_id"+"}", url.PathEscape(parameterValueToString(r.analysisId, "analysisId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.autoUnstripRequest == nil { - return localVarReturnValue, nil, reportError("autoUnstripRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.autoUnstripRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v BaseResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiBatchFunctionMatchingRequest struct { - ctx context.Context - ApiService *FunctionsCoreAPIService - functionMatchingRequest *FunctionMatchingRequest -} - -func (r ApiBatchFunctionMatchingRequest) FunctionMatchingRequest(functionMatchingRequest FunctionMatchingRequest) ApiBatchFunctionMatchingRequest { - r.functionMatchingRequest = &functionMatchingRequest - return r -} - -func (r ApiBatchFunctionMatchingRequest) Execute() (*FunctionMatchingResponse, *http.Response, error) { - return r.ApiService.BatchFunctionMatchingExecute(r) -} - -/* -BatchFunctionMatching Perform function matching for an arbitrary batch of functions, binaries or collections - -Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the system - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiBatchFunctionMatchingRequest - -Deprecated -*/ -func (a *FunctionsCoreAPIService) BatchFunctionMatching(ctx context.Context) ApiBatchFunctionMatchingRequest { - return ApiBatchFunctionMatchingRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return FunctionMatchingResponse -// Deprecated -func (a *FunctionsCoreAPIService) BatchFunctionMatchingExecute(r ApiBatchFunctionMatchingRequest) (*FunctionMatchingResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FunctionMatchingResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FunctionsCoreAPIService.BatchFunctionMatching") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/v2/functions/matches" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.functionMatchingRequest == nil { - return localVarReturnValue, nil, reportError("functionMatchingRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.functionMatchingRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v BaseResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCancelAiUnstripRequest struct { - ctx context.Context - ApiService *FunctionsCoreAPIService - analysisId int32 -} - -func (r ApiCancelAiUnstripRequest) Execute() (*AutoUnstripResponse, *http.Response, error) { - return r.ApiService.CancelAiUnstripExecute(r) -} - -/* -CancelAiUnstrip Cancels a running ai-unstrip - -Takes in the analysis ID and cancels a running ai-unstrip operation - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param analysisId - @return ApiCancelAiUnstripRequest - -Deprecated -*/ -func (a *FunctionsCoreAPIService) CancelAiUnstrip(ctx context.Context, analysisId int32) ApiCancelAiUnstripRequest { - return ApiCancelAiUnstripRequest{ - ApiService: a, - ctx: ctx, - analysisId: analysisId, - } -} - -// Execute executes the request -// @return AutoUnstripResponse -// Deprecated -func (a *FunctionsCoreAPIService) CancelAiUnstripExecute(r ApiCancelAiUnstripRequest) (*AutoUnstripResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AutoUnstripResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FunctionsCoreAPIService.CancelAiUnstrip") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/v2/analyses/{analysis_id}/functions/ai-unstrip/cancel" - localVarPath = strings.Replace(localVarPath, "{"+"analysis_id"+"}", url.PathEscape(parameterValueToString(r.analysisId, "analysisId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v BaseResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCancelAutoUnstripRequest struct { - ctx context.Context - ApiService *FunctionsCoreAPIService - analysisId int32 -} - -func (r ApiCancelAutoUnstripRequest) Execute() (*AutoUnstripResponse, *http.Response, error) { - return r.ApiService.CancelAutoUnstripExecute(r) -} - -/* -CancelAutoUnstrip Cancels a running auto-unstrip - -Takes in the analysis ID and cancels a running auto-unstrip operation - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param analysisId - @return ApiCancelAutoUnstripRequest - -Deprecated -*/ -func (a *FunctionsCoreAPIService) CancelAutoUnstrip(ctx context.Context, analysisId int32) ApiCancelAutoUnstripRequest { - return ApiCancelAutoUnstripRequest{ - ApiService: a, - ctx: ctx, - analysisId: analysisId, - } -} - -// Execute executes the request -// @return AutoUnstripResponse -// Deprecated -func (a *FunctionsCoreAPIService) CancelAutoUnstripExecute(r ApiCancelAutoUnstripRequest) (*AutoUnstripResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AutoUnstripResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FunctionsCoreAPIService.CancelAutoUnstrip") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/v2/analyses/{analysis_id}/functions/unstrip/cancel" - localVarPath = strings.Replace(localVarPath, "{"+"analysis_id"+"}", url.PathEscape(parameterValueToString(r.analysisId, "analysisId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["APIKey"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 422 { - var v BaseResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type ApiGetAnalysisStringsRequest struct { ctx context.Context ApiService *FunctionsCoreAPIService diff --git a/v3/client.go b/v3/client.go index 9e16850..dc4c4f6 100644 --- a/v3/client.go +++ b/v3/client.go @@ -40,7 +40,7 @@ var ( queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) ) -// APIClient manages communication with the RevEng.AI API API vv3.114.2 +// APIClient manages communication with the RevEng.AI API API vv3.116.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/v3/configuration.go b/v3/configuration.go index 84951b3..2cc4332 100644 --- a/v3/configuration.go +++ b/v3/configuration.go @@ -91,7 +91,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/v3.114.2/go", + UserAgent: "OpenAPI-Generator/v3.116.0/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/v3/model_ai_unstrip_request.go b/v3/model_ai_unstrip_request.go deleted file mode 100644 index f583a45..0000000 --- a/v3/model_ai_unstrip_request.go +++ /dev/null @@ -1,159 +0,0 @@ -/* -RevEng.AI API - -RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package sdk - -import ( - "encoding/json" -) - -// checks if the AiUnstripRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AiUnstripRequest{} - -// AiUnstripRequest struct for AiUnstripRequest -type AiUnstripRequest struct { - // Whether to apply the suggested function names to the target functions, default is False - Apply *bool `json:"apply,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _AiUnstripRequest AiUnstripRequest - -// NewAiUnstripRequest instantiates a new AiUnstripRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAiUnstripRequest() *AiUnstripRequest { - this := AiUnstripRequest{} - var apply bool = false - this.Apply = &apply - return &this -} - -// NewAiUnstripRequestWithDefaults instantiates a new AiUnstripRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAiUnstripRequestWithDefaults() *AiUnstripRequest { - this := AiUnstripRequest{} - var apply bool = false - this.Apply = &apply - return &this -} - -// GetApply returns the Apply field value if set, zero value otherwise. -func (o *AiUnstripRequest) GetApply() bool { - if o == nil || IsNil(o.Apply) { - var ret bool - return ret - } - return *o.Apply -} - -// GetApplyOk returns a tuple with the Apply field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AiUnstripRequest) GetApplyOk() (*bool, bool) { - if o == nil || IsNil(o.Apply) { - return nil, false - } - return o.Apply, true -} - -// HasApply returns a boolean if a field has been set. -func (o *AiUnstripRequest) HasApply() bool { - if o != nil && !IsNil(o.Apply) { - return true - } - - return false -} - -// SetApply gets a reference to the given bool and assigns it to the Apply field. -func (o *AiUnstripRequest) SetApply(v bool) { - o.Apply = &v -} - -func (o AiUnstripRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AiUnstripRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Apply) { - toSerialize["apply"] = o.Apply - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *AiUnstripRequest) UnmarshalJSON(data []byte) (err error) { - varAiUnstripRequest := _AiUnstripRequest{} - - err = json.Unmarshal(data, &varAiUnstripRequest) - - if err != nil { - return err - } - - *o = AiUnstripRequest(varAiUnstripRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "apply") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableAiUnstripRequest struct { - value *AiUnstripRequest - isSet bool -} - -func (v NullableAiUnstripRequest) Get() *AiUnstripRequest { - return v.value -} - -func (v *NullableAiUnstripRequest) Set(val *AiUnstripRequest) { - v.value = val - v.isSet = true -} - -func (v NullableAiUnstripRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableAiUnstripRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAiUnstripRequest(val *AiUnstripRequest) *NullableAiUnstripRequest { - return &NullableAiUnstripRequest{value: val, isSet: true} -} - -func (v NullableAiUnstripRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAiUnstripRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/v3/model_analysis_function_matching_request.go b/v3/model_analysis_function_matching_request.go deleted file mode 100644 index cf391cc..0000000 --- a/v3/model_analysis_function_matching_request.go +++ /dev/null @@ -1,470 +0,0 @@ -/* -RevEng.AI API - -RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package sdk - -import ( - "encoding/json" -) - -// checks if the AnalysisFunctionMatchingRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnalysisFunctionMatchingRequest{} - -// AnalysisFunctionMatchingRequest struct for AnalysisFunctionMatchingRequest -type AnalysisFunctionMatchingRequest struct { - // Minimum similarity expected for a match as a percentage, default is 90 - MinSimilarity *float32 `json:"min_similarity,omitempty"` - Filters NullableFunctionMatchingFilters `json:"filters,omitempty"` - // Maximum number of matches to return per function, default is 1, max is 30 - ResultsPerFunction *int32 `json:"results_per_function,omitempty"` - // Page number for paginated results, default is 1 (first page) - // Deprecated - Page *int32 `json:"page,omitempty"` - // Number of functions to return per page, default is 0 (all functions), max is 1000 - // Deprecated - PageSize *int32 `json:"page_size,omitempty"` - // If set to true, only returns the status of the matching operation without the actual results - // Deprecated - StatusOnly *bool `json:"status_only,omitempty"` - // If set to true, forces the system to bypass any cached results and perform a fresh computation - NoCache *bool `json:"no_cache,omitempty"` - // Whether to use canonical function names during function matching for confidence results, default is False - UseCanonicalNames *bool `json:"use_canonical_names,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _AnalysisFunctionMatchingRequest AnalysisFunctionMatchingRequest - -// NewAnalysisFunctionMatchingRequest instantiates a new AnalysisFunctionMatchingRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnalysisFunctionMatchingRequest() *AnalysisFunctionMatchingRequest { - this := AnalysisFunctionMatchingRequest{} - var minSimilarity float32 = 90 - this.MinSimilarity = &minSimilarity - var resultsPerFunction int32 = 1 - this.ResultsPerFunction = &resultsPerFunction - var page int32 = 1 - this.Page = &page - var pageSize int32 = 0 - this.PageSize = &pageSize - var statusOnly bool = false - this.StatusOnly = &statusOnly - var noCache bool = false - this.NoCache = &noCache - var useCanonicalNames bool = false - this.UseCanonicalNames = &useCanonicalNames - return &this -} - -// NewAnalysisFunctionMatchingRequestWithDefaults instantiates a new AnalysisFunctionMatchingRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnalysisFunctionMatchingRequestWithDefaults() *AnalysisFunctionMatchingRequest { - this := AnalysisFunctionMatchingRequest{} - var minSimilarity float32 = 90 - this.MinSimilarity = &minSimilarity - var resultsPerFunction int32 = 1 - this.ResultsPerFunction = &resultsPerFunction - var page int32 = 1 - this.Page = &page - var pageSize int32 = 0 - this.PageSize = &pageSize - var statusOnly bool = false - this.StatusOnly = &statusOnly - var noCache bool = false - this.NoCache = &noCache - var useCanonicalNames bool = false - this.UseCanonicalNames = &useCanonicalNames - return &this -} - -// GetMinSimilarity returns the MinSimilarity field value if set, zero value otherwise. -func (o *AnalysisFunctionMatchingRequest) GetMinSimilarity() float32 { - if o == nil || IsNil(o.MinSimilarity) { - var ret float32 - return ret - } - return *o.MinSimilarity -} - -// GetMinSimilarityOk returns a tuple with the MinSimilarity field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnalysisFunctionMatchingRequest) GetMinSimilarityOk() (*float32, bool) { - if o == nil || IsNil(o.MinSimilarity) { - return nil, false - } - return o.MinSimilarity, true -} - -// HasMinSimilarity returns a boolean if a field has been set. -func (o *AnalysisFunctionMatchingRequest) HasMinSimilarity() bool { - if o != nil && !IsNil(o.MinSimilarity) { - return true - } - - return false -} - -// SetMinSimilarity gets a reference to the given float32 and assigns it to the MinSimilarity field. -func (o *AnalysisFunctionMatchingRequest) SetMinSimilarity(v float32) { - o.MinSimilarity = &v -} - -// GetFilters returns the Filters field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnalysisFunctionMatchingRequest) GetFilters() FunctionMatchingFilters { - if o == nil || IsNil(o.Filters.Get()) { - var ret FunctionMatchingFilters - return ret - } - return *o.Filters.Get() -} - -// GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnalysisFunctionMatchingRequest) GetFiltersOk() (*FunctionMatchingFilters, bool) { - if o == nil { - return nil, false - } - return o.Filters.Get(), o.Filters.IsSet() -} - -// HasFilters returns a boolean if a field has been set. -func (o *AnalysisFunctionMatchingRequest) HasFilters() bool { - if o != nil && o.Filters.IsSet() { - return true - } - - return false -} - -// SetFilters gets a reference to the given NullableFunctionMatchingFilters and assigns it to the Filters field. -func (o *AnalysisFunctionMatchingRequest) SetFilters(v FunctionMatchingFilters) { - o.Filters.Set(&v) -} -// SetFiltersNil sets the value for Filters to be an explicit nil -func (o *AnalysisFunctionMatchingRequest) SetFiltersNil() { - o.Filters.Set(nil) -} - -// UnsetFilters ensures that no value is present for Filters, not even an explicit nil -func (o *AnalysisFunctionMatchingRequest) UnsetFilters() { - o.Filters.Unset() -} - -// GetResultsPerFunction returns the ResultsPerFunction field value if set, zero value otherwise. -func (o *AnalysisFunctionMatchingRequest) GetResultsPerFunction() int32 { - if o == nil || IsNil(o.ResultsPerFunction) { - var ret int32 - return ret - } - return *o.ResultsPerFunction -} - -// GetResultsPerFunctionOk returns a tuple with the ResultsPerFunction field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnalysisFunctionMatchingRequest) GetResultsPerFunctionOk() (*int32, bool) { - if o == nil || IsNil(o.ResultsPerFunction) { - return nil, false - } - return o.ResultsPerFunction, true -} - -// HasResultsPerFunction returns a boolean if a field has been set. -func (o *AnalysisFunctionMatchingRequest) HasResultsPerFunction() bool { - if o != nil && !IsNil(o.ResultsPerFunction) { - return true - } - - return false -} - -// SetResultsPerFunction gets a reference to the given int32 and assigns it to the ResultsPerFunction field. -func (o *AnalysisFunctionMatchingRequest) SetResultsPerFunction(v int32) { - o.ResultsPerFunction = &v -} - -// GetPage returns the Page field value if set, zero value otherwise. -// Deprecated -func (o *AnalysisFunctionMatchingRequest) GetPage() int32 { - if o == nil || IsNil(o.Page) { - var ret int32 - return ret - } - return *o.Page -} - -// GetPageOk returns a tuple with the Page field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *AnalysisFunctionMatchingRequest) GetPageOk() (*int32, bool) { - if o == nil || IsNil(o.Page) { - return nil, false - } - return o.Page, true -} - -// HasPage returns a boolean if a field has been set. -func (o *AnalysisFunctionMatchingRequest) HasPage() bool { - if o != nil && !IsNil(o.Page) { - return true - } - - return false -} - -// SetPage gets a reference to the given int32 and assigns it to the Page field. -// Deprecated -func (o *AnalysisFunctionMatchingRequest) SetPage(v int32) { - o.Page = &v -} - -// GetPageSize returns the PageSize field value if set, zero value otherwise. -// Deprecated -func (o *AnalysisFunctionMatchingRequest) GetPageSize() int32 { - if o == nil || IsNil(o.PageSize) { - var ret int32 - return ret - } - return *o.PageSize -} - -// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *AnalysisFunctionMatchingRequest) GetPageSizeOk() (*int32, bool) { - if o == nil || IsNil(o.PageSize) { - return nil, false - } - return o.PageSize, true -} - -// HasPageSize returns a boolean if a field has been set. -func (o *AnalysisFunctionMatchingRequest) HasPageSize() bool { - if o != nil && !IsNil(o.PageSize) { - return true - } - - return false -} - -// SetPageSize gets a reference to the given int32 and assigns it to the PageSize field. -// Deprecated -func (o *AnalysisFunctionMatchingRequest) SetPageSize(v int32) { - o.PageSize = &v -} - -// GetStatusOnly returns the StatusOnly field value if set, zero value otherwise. -// Deprecated -func (o *AnalysisFunctionMatchingRequest) GetStatusOnly() bool { - if o == nil || IsNil(o.StatusOnly) { - var ret bool - return ret - } - return *o.StatusOnly -} - -// GetStatusOnlyOk returns a tuple with the StatusOnly field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *AnalysisFunctionMatchingRequest) GetStatusOnlyOk() (*bool, bool) { - if o == nil || IsNil(o.StatusOnly) { - return nil, false - } - return o.StatusOnly, true -} - -// HasStatusOnly returns a boolean if a field has been set. -func (o *AnalysisFunctionMatchingRequest) HasStatusOnly() bool { - if o != nil && !IsNil(o.StatusOnly) { - return true - } - - return false -} - -// SetStatusOnly gets a reference to the given bool and assigns it to the StatusOnly field. -// Deprecated -func (o *AnalysisFunctionMatchingRequest) SetStatusOnly(v bool) { - o.StatusOnly = &v -} - -// GetNoCache returns the NoCache field value if set, zero value otherwise. -func (o *AnalysisFunctionMatchingRequest) GetNoCache() bool { - if o == nil || IsNil(o.NoCache) { - var ret bool - return ret - } - return *o.NoCache -} - -// GetNoCacheOk returns a tuple with the NoCache field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnalysisFunctionMatchingRequest) GetNoCacheOk() (*bool, bool) { - if o == nil || IsNil(o.NoCache) { - return nil, false - } - return o.NoCache, true -} - -// HasNoCache returns a boolean if a field has been set. -func (o *AnalysisFunctionMatchingRequest) HasNoCache() bool { - if o != nil && !IsNil(o.NoCache) { - return true - } - - return false -} - -// SetNoCache gets a reference to the given bool and assigns it to the NoCache field. -func (o *AnalysisFunctionMatchingRequest) SetNoCache(v bool) { - o.NoCache = &v -} - -// GetUseCanonicalNames returns the UseCanonicalNames field value if set, zero value otherwise. -func (o *AnalysisFunctionMatchingRequest) GetUseCanonicalNames() bool { - if o == nil || IsNil(o.UseCanonicalNames) { - var ret bool - return ret - } - return *o.UseCanonicalNames -} - -// GetUseCanonicalNamesOk returns a tuple with the UseCanonicalNames field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnalysisFunctionMatchingRequest) GetUseCanonicalNamesOk() (*bool, bool) { - if o == nil || IsNil(o.UseCanonicalNames) { - return nil, false - } - return o.UseCanonicalNames, true -} - -// HasUseCanonicalNames returns a boolean if a field has been set. -func (o *AnalysisFunctionMatchingRequest) HasUseCanonicalNames() bool { - if o != nil && !IsNil(o.UseCanonicalNames) { - return true - } - - return false -} - -// SetUseCanonicalNames gets a reference to the given bool and assigns it to the UseCanonicalNames field. -func (o *AnalysisFunctionMatchingRequest) SetUseCanonicalNames(v bool) { - o.UseCanonicalNames = &v -} - -func (o AnalysisFunctionMatchingRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnalysisFunctionMatchingRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.MinSimilarity) { - toSerialize["min_similarity"] = o.MinSimilarity - } - if o.Filters.IsSet() { - toSerialize["filters"] = o.Filters.Get() - } - if !IsNil(o.ResultsPerFunction) { - toSerialize["results_per_function"] = o.ResultsPerFunction - } - if !IsNil(o.Page) { - toSerialize["page"] = o.Page - } - if !IsNil(o.PageSize) { - toSerialize["page_size"] = o.PageSize - } - if !IsNil(o.StatusOnly) { - toSerialize["status_only"] = o.StatusOnly - } - if !IsNil(o.NoCache) { - toSerialize["no_cache"] = o.NoCache - } - if !IsNil(o.UseCanonicalNames) { - toSerialize["use_canonical_names"] = o.UseCanonicalNames - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *AnalysisFunctionMatchingRequest) UnmarshalJSON(data []byte) (err error) { - varAnalysisFunctionMatchingRequest := _AnalysisFunctionMatchingRequest{} - - err = json.Unmarshal(data, &varAnalysisFunctionMatchingRequest) - - if err != nil { - return err - } - - *o = AnalysisFunctionMatchingRequest(varAnalysisFunctionMatchingRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "min_similarity") - delete(additionalProperties, "filters") - delete(additionalProperties, "results_per_function") - delete(additionalProperties, "page") - delete(additionalProperties, "page_size") - delete(additionalProperties, "status_only") - delete(additionalProperties, "no_cache") - delete(additionalProperties, "use_canonical_names") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableAnalysisFunctionMatchingRequest struct { - value *AnalysisFunctionMatchingRequest - isSet bool -} - -func (v NullableAnalysisFunctionMatchingRequest) Get() *AnalysisFunctionMatchingRequest { - return v.value -} - -func (v *NullableAnalysisFunctionMatchingRequest) Set(val *AnalysisFunctionMatchingRequest) { - v.value = val - v.isSet = true -} - -func (v NullableAnalysisFunctionMatchingRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableAnalysisFunctionMatchingRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnalysisFunctionMatchingRequest(val *AnalysisFunctionMatchingRequest) *NullableAnalysisFunctionMatchingRequest { - return &NullableAnalysisFunctionMatchingRequest{value: val, isSet: true} -} - -func (v NullableAnalysisFunctionMatchingRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnalysisFunctionMatchingRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/v3/model_auto_unstrip_request.go b/v3/model_auto_unstrip_request.go deleted file mode 100644 index 24b7d87..0000000 --- a/v3/model_auto_unstrip_request.go +++ /dev/null @@ -1,435 +0,0 @@ -/* -RevEng.AI API - -RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package sdk - -import ( - "encoding/json" -) - -// checks if the AutoUnstripRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AutoUnstripRequest{} - -// AutoUnstripRequest struct for AutoUnstripRequest -type AutoUnstripRequest struct { - // Minimum similarity expected for a match as a percentage, default is 90 - // Deprecated - MinSimilarity *float32 `json:"min_similarity,omitempty"` - // Whether to apply the matched function names to the target binary, default is False - // Deprecated - Apply *bool `json:"apply,omitempty"` - // Confidence threshold for applying function names as a percentage, default is 90 - // Deprecated - ConfidenceThreshold *float32 `json:"confidence_threshold,omitempty"` - // Minimum number of matching functions required to consider for a match, default is 10 - // Deprecated - MinGroupSize *int32 `json:"min_group_size,omitempty"` - // If set to true, only returns the status of the auto-unstrip operation without the actual results - // Deprecated - StatusOnly *bool `json:"status_only,omitempty"` - // If set to true, forces the system to bypass any cached results and perform a fresh computation - // Deprecated - NoCache *bool `json:"no_cache,omitempty"` - // Whether to use canonical function names during matching for auto-unstrip, default is False - UseCanonicalNames *bool `json:"use_canonical_names,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _AutoUnstripRequest AutoUnstripRequest - -// NewAutoUnstripRequest instantiates a new AutoUnstripRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAutoUnstripRequest() *AutoUnstripRequest { - this := AutoUnstripRequest{} - var minSimilarity float32 = 90 - this.MinSimilarity = &minSimilarity - var apply bool = false - this.Apply = &apply - var confidenceThreshold float32 = 90 - this.ConfidenceThreshold = &confidenceThreshold - var minGroupSize int32 = 10 - this.MinGroupSize = &minGroupSize - var statusOnly bool = false - this.StatusOnly = &statusOnly - var noCache bool = false - this.NoCache = &noCache - var useCanonicalNames bool = false - this.UseCanonicalNames = &useCanonicalNames - return &this -} - -// NewAutoUnstripRequestWithDefaults instantiates a new AutoUnstripRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAutoUnstripRequestWithDefaults() *AutoUnstripRequest { - this := AutoUnstripRequest{} - var minSimilarity float32 = 90 - this.MinSimilarity = &minSimilarity - var apply bool = false - this.Apply = &apply - var confidenceThreshold float32 = 90 - this.ConfidenceThreshold = &confidenceThreshold - var minGroupSize int32 = 10 - this.MinGroupSize = &minGroupSize - var statusOnly bool = false - this.StatusOnly = &statusOnly - var noCache bool = false - this.NoCache = &noCache - var useCanonicalNames bool = false - this.UseCanonicalNames = &useCanonicalNames - return &this -} - -// GetMinSimilarity returns the MinSimilarity field value if set, zero value otherwise. -// Deprecated -func (o *AutoUnstripRequest) GetMinSimilarity() float32 { - if o == nil || IsNil(o.MinSimilarity) { - var ret float32 - return ret - } - return *o.MinSimilarity -} - -// GetMinSimilarityOk returns a tuple with the MinSimilarity field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *AutoUnstripRequest) GetMinSimilarityOk() (*float32, bool) { - if o == nil || IsNil(o.MinSimilarity) { - return nil, false - } - return o.MinSimilarity, true -} - -// HasMinSimilarity returns a boolean if a field has been set. -func (o *AutoUnstripRequest) HasMinSimilarity() bool { - if o != nil && !IsNil(o.MinSimilarity) { - return true - } - - return false -} - -// SetMinSimilarity gets a reference to the given float32 and assigns it to the MinSimilarity field. -// Deprecated -func (o *AutoUnstripRequest) SetMinSimilarity(v float32) { - o.MinSimilarity = &v -} - -// GetApply returns the Apply field value if set, zero value otherwise. -// Deprecated -func (o *AutoUnstripRequest) GetApply() bool { - if o == nil || IsNil(o.Apply) { - var ret bool - return ret - } - return *o.Apply -} - -// GetApplyOk returns a tuple with the Apply field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *AutoUnstripRequest) GetApplyOk() (*bool, bool) { - if o == nil || IsNil(o.Apply) { - return nil, false - } - return o.Apply, true -} - -// HasApply returns a boolean if a field has been set. -func (o *AutoUnstripRequest) HasApply() bool { - if o != nil && !IsNil(o.Apply) { - return true - } - - return false -} - -// SetApply gets a reference to the given bool and assigns it to the Apply field. -// Deprecated -func (o *AutoUnstripRequest) SetApply(v bool) { - o.Apply = &v -} - -// GetConfidenceThreshold returns the ConfidenceThreshold field value if set, zero value otherwise. -// Deprecated -func (o *AutoUnstripRequest) GetConfidenceThreshold() float32 { - if o == nil || IsNil(o.ConfidenceThreshold) { - var ret float32 - return ret - } - return *o.ConfidenceThreshold -} - -// GetConfidenceThresholdOk returns a tuple with the ConfidenceThreshold field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *AutoUnstripRequest) GetConfidenceThresholdOk() (*float32, bool) { - if o == nil || IsNil(o.ConfidenceThreshold) { - return nil, false - } - return o.ConfidenceThreshold, true -} - -// HasConfidenceThreshold returns a boolean if a field has been set. -func (o *AutoUnstripRequest) HasConfidenceThreshold() bool { - if o != nil && !IsNil(o.ConfidenceThreshold) { - return true - } - - return false -} - -// SetConfidenceThreshold gets a reference to the given float32 and assigns it to the ConfidenceThreshold field. -// Deprecated -func (o *AutoUnstripRequest) SetConfidenceThreshold(v float32) { - o.ConfidenceThreshold = &v -} - -// GetMinGroupSize returns the MinGroupSize field value if set, zero value otherwise. -// Deprecated -func (o *AutoUnstripRequest) GetMinGroupSize() int32 { - if o == nil || IsNil(o.MinGroupSize) { - var ret int32 - return ret - } - return *o.MinGroupSize -} - -// GetMinGroupSizeOk returns a tuple with the MinGroupSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *AutoUnstripRequest) GetMinGroupSizeOk() (*int32, bool) { - if o == nil || IsNil(o.MinGroupSize) { - return nil, false - } - return o.MinGroupSize, true -} - -// HasMinGroupSize returns a boolean if a field has been set. -func (o *AutoUnstripRequest) HasMinGroupSize() bool { - if o != nil && !IsNil(o.MinGroupSize) { - return true - } - - return false -} - -// SetMinGroupSize gets a reference to the given int32 and assigns it to the MinGroupSize field. -// Deprecated -func (o *AutoUnstripRequest) SetMinGroupSize(v int32) { - o.MinGroupSize = &v -} - -// GetStatusOnly returns the StatusOnly field value if set, zero value otherwise. -// Deprecated -func (o *AutoUnstripRequest) GetStatusOnly() bool { - if o == nil || IsNil(o.StatusOnly) { - var ret bool - return ret - } - return *o.StatusOnly -} - -// GetStatusOnlyOk returns a tuple with the StatusOnly field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *AutoUnstripRequest) GetStatusOnlyOk() (*bool, bool) { - if o == nil || IsNil(o.StatusOnly) { - return nil, false - } - return o.StatusOnly, true -} - -// HasStatusOnly returns a boolean if a field has been set. -func (o *AutoUnstripRequest) HasStatusOnly() bool { - if o != nil && !IsNil(o.StatusOnly) { - return true - } - - return false -} - -// SetStatusOnly gets a reference to the given bool and assigns it to the StatusOnly field. -// Deprecated -func (o *AutoUnstripRequest) SetStatusOnly(v bool) { - o.StatusOnly = &v -} - -// GetNoCache returns the NoCache field value if set, zero value otherwise. -// Deprecated -func (o *AutoUnstripRequest) GetNoCache() bool { - if o == nil || IsNil(o.NoCache) { - var ret bool - return ret - } - return *o.NoCache -} - -// GetNoCacheOk returns a tuple with the NoCache field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *AutoUnstripRequest) GetNoCacheOk() (*bool, bool) { - if o == nil || IsNil(o.NoCache) { - return nil, false - } - return o.NoCache, true -} - -// HasNoCache returns a boolean if a field has been set. -func (o *AutoUnstripRequest) HasNoCache() bool { - if o != nil && !IsNil(o.NoCache) { - return true - } - - return false -} - -// SetNoCache gets a reference to the given bool and assigns it to the NoCache field. -// Deprecated -func (o *AutoUnstripRequest) SetNoCache(v bool) { - o.NoCache = &v -} - -// GetUseCanonicalNames returns the UseCanonicalNames field value if set, zero value otherwise. -func (o *AutoUnstripRequest) GetUseCanonicalNames() bool { - if o == nil || IsNil(o.UseCanonicalNames) { - var ret bool - return ret - } - return *o.UseCanonicalNames -} - -// GetUseCanonicalNamesOk returns a tuple with the UseCanonicalNames field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AutoUnstripRequest) GetUseCanonicalNamesOk() (*bool, bool) { - if o == nil || IsNil(o.UseCanonicalNames) { - return nil, false - } - return o.UseCanonicalNames, true -} - -// HasUseCanonicalNames returns a boolean if a field has been set. -func (o *AutoUnstripRequest) HasUseCanonicalNames() bool { - if o != nil && !IsNil(o.UseCanonicalNames) { - return true - } - - return false -} - -// SetUseCanonicalNames gets a reference to the given bool and assigns it to the UseCanonicalNames field. -func (o *AutoUnstripRequest) SetUseCanonicalNames(v bool) { - o.UseCanonicalNames = &v -} - -func (o AutoUnstripRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AutoUnstripRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.MinSimilarity) { - toSerialize["min_similarity"] = o.MinSimilarity - } - if !IsNil(o.Apply) { - toSerialize["apply"] = o.Apply - } - if !IsNil(o.ConfidenceThreshold) { - toSerialize["confidence_threshold"] = o.ConfidenceThreshold - } - if !IsNil(o.MinGroupSize) { - toSerialize["min_group_size"] = o.MinGroupSize - } - if !IsNil(o.StatusOnly) { - toSerialize["status_only"] = o.StatusOnly - } - if !IsNil(o.NoCache) { - toSerialize["no_cache"] = o.NoCache - } - if !IsNil(o.UseCanonicalNames) { - toSerialize["use_canonical_names"] = o.UseCanonicalNames - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *AutoUnstripRequest) UnmarshalJSON(data []byte) (err error) { - varAutoUnstripRequest := _AutoUnstripRequest{} - - err = json.Unmarshal(data, &varAutoUnstripRequest) - - if err != nil { - return err - } - - *o = AutoUnstripRequest(varAutoUnstripRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "min_similarity") - delete(additionalProperties, "apply") - delete(additionalProperties, "confidence_threshold") - delete(additionalProperties, "min_group_size") - delete(additionalProperties, "status_only") - delete(additionalProperties, "no_cache") - delete(additionalProperties, "use_canonical_names") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableAutoUnstripRequest struct { - value *AutoUnstripRequest - isSet bool -} - -func (v NullableAutoUnstripRequest) Get() *AutoUnstripRequest { - return v.value -} - -func (v *NullableAutoUnstripRequest) Set(val *AutoUnstripRequest) { - v.value = val - v.isSet = true -} - -func (v NullableAutoUnstripRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableAutoUnstripRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAutoUnstripRequest(val *AutoUnstripRequest) *NullableAutoUnstripRequest { - return &NullableAutoUnstripRequest{value: val, isSet: true} -} - -func (v NullableAutoUnstripRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAutoUnstripRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/v3/model_auto_unstrip_response.go b/v3/model_auto_unstrip_response.go deleted file mode 100644 index 596bfd2..0000000 --- a/v3/model_auto_unstrip_response.go +++ /dev/null @@ -1,389 +0,0 @@ -/* -RevEng.AI API - -RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package sdk - -import ( - "encoding/json" -) - -// checks if the AutoUnstripResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AutoUnstripResponse{} - -// AutoUnstripResponse struct for AutoUnstripResponse -type AutoUnstripResponse struct { - // Progress of the auto-unstrip operation, represented as a percentage - // Deprecated - Progress *int32 `json:"progress,omitempty"` - Status NullableString `json:"status,omitempty"` - TotalTime NullableInt32 `json:"total_time,omitempty"` - Matches []MatchedFunctionSuggestion `json:"matches,omitempty"` - Applied NullableBool `json:"applied,omitempty"` - ErrorMessage NullableString `json:"error_message,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _AutoUnstripResponse AutoUnstripResponse - -// NewAutoUnstripResponse instantiates a new AutoUnstripResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAutoUnstripResponse() *AutoUnstripResponse { - this := AutoUnstripResponse{} - var progress int32 = 0 - this.Progress = &progress - return &this -} - -// NewAutoUnstripResponseWithDefaults instantiates a new AutoUnstripResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAutoUnstripResponseWithDefaults() *AutoUnstripResponse { - this := AutoUnstripResponse{} - var progress int32 = 0 - this.Progress = &progress - return &this -} - -// GetProgress returns the Progress field value if set, zero value otherwise. -// Deprecated -func (o *AutoUnstripResponse) GetProgress() int32 { - if o == nil || IsNil(o.Progress) { - var ret int32 - return ret - } - return *o.Progress -} - -// GetProgressOk returns a tuple with the Progress field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *AutoUnstripResponse) GetProgressOk() (*int32, bool) { - if o == nil || IsNil(o.Progress) { - return nil, false - } - return o.Progress, true -} - -// HasProgress returns a boolean if a field has been set. -func (o *AutoUnstripResponse) HasProgress() bool { - if o != nil && !IsNil(o.Progress) { - return true - } - - return false -} - -// SetProgress gets a reference to the given int32 and assigns it to the Progress field. -// Deprecated -func (o *AutoUnstripResponse) SetProgress(v int32) { - o.Progress = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AutoUnstripResponse) GetStatus() string { - if o == nil || IsNil(o.Status.Get()) { - var ret string - return ret - } - return *o.Status.Get() -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AutoUnstripResponse) GetStatusOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Status.Get(), o.Status.IsSet() -} - -// HasStatus returns a boolean if a field has been set. -func (o *AutoUnstripResponse) HasStatus() bool { - if o != nil && o.Status.IsSet() { - return true - } - - return false -} - -// SetStatus gets a reference to the given NullableString and assigns it to the Status field. -func (o *AutoUnstripResponse) SetStatus(v string) { - o.Status.Set(&v) -} -// SetStatusNil sets the value for Status to be an explicit nil -func (o *AutoUnstripResponse) SetStatusNil() { - o.Status.Set(nil) -} - -// UnsetStatus ensures that no value is present for Status, not even an explicit nil -func (o *AutoUnstripResponse) UnsetStatus() { - o.Status.Unset() -} - -// GetTotalTime returns the TotalTime field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AutoUnstripResponse) GetTotalTime() int32 { - if o == nil || IsNil(o.TotalTime.Get()) { - var ret int32 - return ret - } - return *o.TotalTime.Get() -} - -// GetTotalTimeOk returns a tuple with the TotalTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AutoUnstripResponse) GetTotalTimeOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.TotalTime.Get(), o.TotalTime.IsSet() -} - -// HasTotalTime returns a boolean if a field has been set. -func (o *AutoUnstripResponse) HasTotalTime() bool { - if o != nil && o.TotalTime.IsSet() { - return true - } - - return false -} - -// SetTotalTime gets a reference to the given NullableInt32 and assigns it to the TotalTime field. -func (o *AutoUnstripResponse) SetTotalTime(v int32) { - o.TotalTime.Set(&v) -} -// SetTotalTimeNil sets the value for TotalTime to be an explicit nil -func (o *AutoUnstripResponse) SetTotalTimeNil() { - o.TotalTime.Set(nil) -} - -// UnsetTotalTime ensures that no value is present for TotalTime, not even an explicit nil -func (o *AutoUnstripResponse) UnsetTotalTime() { - o.TotalTime.Unset() -} - -// GetMatches returns the Matches field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AutoUnstripResponse) GetMatches() []MatchedFunctionSuggestion { - if o == nil { - var ret []MatchedFunctionSuggestion - return ret - } - return o.Matches -} - -// GetMatchesOk returns a tuple with the Matches field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AutoUnstripResponse) GetMatchesOk() ([]MatchedFunctionSuggestion, bool) { - if o == nil || IsNil(o.Matches) { - return nil, false - } - return o.Matches, true -} - -// HasMatches returns a boolean if a field has been set. -func (o *AutoUnstripResponse) HasMatches() bool { - if o != nil && !IsNil(o.Matches) { - return true - } - - return false -} - -// SetMatches gets a reference to the given []MatchedFunctionSuggestion and assigns it to the Matches field. -func (o *AutoUnstripResponse) SetMatches(v []MatchedFunctionSuggestion) { - o.Matches = v -} - -// GetApplied returns the Applied field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AutoUnstripResponse) GetApplied() bool { - if o == nil || IsNil(o.Applied.Get()) { - var ret bool - return ret - } - return *o.Applied.Get() -} - -// GetAppliedOk returns a tuple with the Applied field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AutoUnstripResponse) GetAppliedOk() (*bool, bool) { - if o == nil { - return nil, false - } - return o.Applied.Get(), o.Applied.IsSet() -} - -// HasApplied returns a boolean if a field has been set. -func (o *AutoUnstripResponse) HasApplied() bool { - if o != nil && o.Applied.IsSet() { - return true - } - - return false -} - -// SetApplied gets a reference to the given NullableBool and assigns it to the Applied field. -func (o *AutoUnstripResponse) SetApplied(v bool) { - o.Applied.Set(&v) -} -// SetAppliedNil sets the value for Applied to be an explicit nil -func (o *AutoUnstripResponse) SetAppliedNil() { - o.Applied.Set(nil) -} - -// UnsetApplied ensures that no value is present for Applied, not even an explicit nil -func (o *AutoUnstripResponse) UnsetApplied() { - o.Applied.Unset() -} - -// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AutoUnstripResponse) GetErrorMessage() string { - if o == nil || IsNil(o.ErrorMessage.Get()) { - var ret string - return ret - } - return *o.ErrorMessage.Get() -} - -// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AutoUnstripResponse) GetErrorMessageOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.ErrorMessage.Get(), o.ErrorMessage.IsSet() -} - -// HasErrorMessage returns a boolean if a field has been set. -func (o *AutoUnstripResponse) HasErrorMessage() bool { - if o != nil && o.ErrorMessage.IsSet() { - return true - } - - return false -} - -// SetErrorMessage gets a reference to the given NullableString and assigns it to the ErrorMessage field. -func (o *AutoUnstripResponse) SetErrorMessage(v string) { - o.ErrorMessage.Set(&v) -} -// SetErrorMessageNil sets the value for ErrorMessage to be an explicit nil -func (o *AutoUnstripResponse) SetErrorMessageNil() { - o.ErrorMessage.Set(nil) -} - -// UnsetErrorMessage ensures that no value is present for ErrorMessage, not even an explicit nil -func (o *AutoUnstripResponse) UnsetErrorMessage() { - o.ErrorMessage.Unset() -} - -func (o AutoUnstripResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AutoUnstripResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Progress) { - toSerialize["progress"] = o.Progress - } - if o.Status.IsSet() { - toSerialize["status"] = o.Status.Get() - } - if o.TotalTime.IsSet() { - toSerialize["total_time"] = o.TotalTime.Get() - } - if o.Matches != nil { - toSerialize["matches"] = o.Matches - } - if o.Applied.IsSet() { - toSerialize["applied"] = o.Applied.Get() - } - if o.ErrorMessage.IsSet() { - toSerialize["error_message"] = o.ErrorMessage.Get() - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *AutoUnstripResponse) UnmarshalJSON(data []byte) (err error) { - varAutoUnstripResponse := _AutoUnstripResponse{} - - err = json.Unmarshal(data, &varAutoUnstripResponse) - - if err != nil { - return err - } - - *o = AutoUnstripResponse(varAutoUnstripResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "progress") - delete(additionalProperties, "status") - delete(additionalProperties, "total_time") - delete(additionalProperties, "matches") - delete(additionalProperties, "applied") - delete(additionalProperties, "error_message") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableAutoUnstripResponse struct { - value *AutoUnstripResponse - isSet bool -} - -func (v NullableAutoUnstripResponse) Get() *AutoUnstripResponse { - return v.value -} - -func (v *NullableAutoUnstripResponse) Set(val *AutoUnstripResponse) { - v.value = val - v.isSet = true -} - -func (v NullableAutoUnstripResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableAutoUnstripResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAutoUnstripResponse(val *AutoUnstripResponse) *NullableAutoUnstripResponse { - return &NullableAutoUnstripResponse{value: val, isSet: true} -} - -func (v NullableAutoUnstripResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAutoUnstripResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/v3/model_dynamic_execution_status_response.go b/v3/model_dynamic_execution_status_response.go index 9b7e706..5ae18ec 100644 --- a/v3/model_dynamic_execution_status_response.go +++ b/v3/model_dynamic_execution_status_response.go @@ -24,7 +24,7 @@ type DynamicExecutionStatusResponse struct { ErrorMessage *string `json:"error_message,omitempty"` // Sandbox status log messages captured during the run. Contains a single \"No logs available\" message when none have been captured yet. Logs AnalysisLogs `json:"logs"` - // Task status: UNINITIALISED, PENDING, RUNNING, COMPLETED, or FAILED + // Task status Status string `json:"status"` } diff --git a/v3/model_function_matching_filters.go b/v3/model_function_matching_filters.go deleted file mode 100644 index 0b17e2f..0000000 --- a/v3/model_function_matching_filters.go +++ /dev/null @@ -1,307 +0,0 @@ -/* -RevEng.AI API - -RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package sdk - -import ( - "encoding/json" -) - -// checks if the FunctionMatchingFilters type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FunctionMatchingFilters{} - -// FunctionMatchingFilters struct for FunctionMatchingFilters -type FunctionMatchingFilters struct { - // ID's of binaries to limit the search to, if empty, search all scoped binaries - BinaryIds []int32 `json:"binary_ids,omitempty"` - // ID's of collections to limit the search to, if empty, search all scoped collections - CollectionIds []int32 `json:"collection_ids,omitempty"` - // ID's of functions to limit the search to, if empty, search all scoped functions - FunctionIds []int64 `json:"function_ids,omitempty"` - // ID's of users to limit the search to, if empty, search all scoped users - UserIds []int32 `json:"user_ids,omitempty"` - // Limit the search to specific debug types, if empty, search all scoped debug & non-debug functions - DebugTypes []string `json:"debug_types,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _FunctionMatchingFilters FunctionMatchingFilters - -// NewFunctionMatchingFilters instantiates a new FunctionMatchingFilters object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewFunctionMatchingFilters() *FunctionMatchingFilters { - this := FunctionMatchingFilters{} - return &this -} - -// NewFunctionMatchingFiltersWithDefaults instantiates a new FunctionMatchingFilters object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewFunctionMatchingFiltersWithDefaults() *FunctionMatchingFilters { - this := FunctionMatchingFilters{} - return &this -} - -// GetBinaryIds returns the BinaryIds field value if set, zero value otherwise. -func (o *FunctionMatchingFilters) GetBinaryIds() []int32 { - if o == nil || IsNil(o.BinaryIds) { - var ret []int32 - return ret - } - return o.BinaryIds -} - -// GetBinaryIdsOk returns a tuple with the BinaryIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FunctionMatchingFilters) GetBinaryIdsOk() ([]int32, bool) { - if o == nil || IsNil(o.BinaryIds) { - return nil, false - } - return o.BinaryIds, true -} - -// HasBinaryIds returns a boolean if a field has been set. -func (o *FunctionMatchingFilters) HasBinaryIds() bool { - if o != nil && !IsNil(o.BinaryIds) { - return true - } - - return false -} - -// SetBinaryIds gets a reference to the given []int32 and assigns it to the BinaryIds field. -func (o *FunctionMatchingFilters) SetBinaryIds(v []int32) { - o.BinaryIds = v -} - -// GetCollectionIds returns the CollectionIds field value if set, zero value otherwise. -func (o *FunctionMatchingFilters) GetCollectionIds() []int32 { - if o == nil || IsNil(o.CollectionIds) { - var ret []int32 - return ret - } - return o.CollectionIds -} - -// GetCollectionIdsOk returns a tuple with the CollectionIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FunctionMatchingFilters) GetCollectionIdsOk() ([]int32, bool) { - if o == nil || IsNil(o.CollectionIds) { - return nil, false - } - return o.CollectionIds, true -} - -// HasCollectionIds returns a boolean if a field has been set. -func (o *FunctionMatchingFilters) HasCollectionIds() bool { - if o != nil && !IsNil(o.CollectionIds) { - return true - } - - return false -} - -// SetCollectionIds gets a reference to the given []int32 and assigns it to the CollectionIds field. -func (o *FunctionMatchingFilters) SetCollectionIds(v []int32) { - o.CollectionIds = v -} - -// GetFunctionIds returns the FunctionIds field value if set, zero value otherwise. -func (o *FunctionMatchingFilters) GetFunctionIds() []int64 { - if o == nil || IsNil(o.FunctionIds) { - var ret []int64 - return ret - } - return o.FunctionIds -} - -// GetFunctionIdsOk returns a tuple with the FunctionIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FunctionMatchingFilters) GetFunctionIdsOk() ([]int64, bool) { - if o == nil || IsNil(o.FunctionIds) { - return nil, false - } - return o.FunctionIds, true -} - -// HasFunctionIds returns a boolean if a field has been set. -func (o *FunctionMatchingFilters) HasFunctionIds() bool { - if o != nil && !IsNil(o.FunctionIds) { - return true - } - - return false -} - -// SetFunctionIds gets a reference to the given []int64 and assigns it to the FunctionIds field. -func (o *FunctionMatchingFilters) SetFunctionIds(v []int64) { - o.FunctionIds = v -} - -// GetUserIds returns the UserIds field value if set, zero value otherwise. -func (o *FunctionMatchingFilters) GetUserIds() []int32 { - if o == nil || IsNil(o.UserIds) { - var ret []int32 - return ret - } - return o.UserIds -} - -// GetUserIdsOk returns a tuple with the UserIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FunctionMatchingFilters) GetUserIdsOk() ([]int32, bool) { - if o == nil || IsNil(o.UserIds) { - return nil, false - } - return o.UserIds, true -} - -// HasUserIds returns a boolean if a field has been set. -func (o *FunctionMatchingFilters) HasUserIds() bool { - if o != nil && !IsNil(o.UserIds) { - return true - } - - return false -} - -// SetUserIds gets a reference to the given []int32 and assigns it to the UserIds field. -func (o *FunctionMatchingFilters) SetUserIds(v []int32) { - o.UserIds = v -} - -// GetDebugTypes returns the DebugTypes field value if set, zero value otherwise. -func (o *FunctionMatchingFilters) GetDebugTypes() []string { - if o == nil || IsNil(o.DebugTypes) { - var ret []string - return ret - } - return o.DebugTypes -} - -// GetDebugTypesOk returns a tuple with the DebugTypes field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FunctionMatchingFilters) GetDebugTypesOk() ([]string, bool) { - if o == nil || IsNil(o.DebugTypes) { - return nil, false - } - return o.DebugTypes, true -} - -// HasDebugTypes returns a boolean if a field has been set. -func (o *FunctionMatchingFilters) HasDebugTypes() bool { - if o != nil && !IsNil(o.DebugTypes) { - return true - } - - return false -} - -// SetDebugTypes gets a reference to the given []string and assigns it to the DebugTypes field. -func (o *FunctionMatchingFilters) SetDebugTypes(v []string) { - o.DebugTypes = v -} - -func (o FunctionMatchingFilters) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o FunctionMatchingFilters) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.BinaryIds) { - toSerialize["binary_ids"] = o.BinaryIds - } - if !IsNil(o.CollectionIds) { - toSerialize["collection_ids"] = o.CollectionIds - } - if !IsNil(o.FunctionIds) { - toSerialize["function_ids"] = o.FunctionIds - } - if !IsNil(o.UserIds) { - toSerialize["user_ids"] = o.UserIds - } - if !IsNil(o.DebugTypes) { - toSerialize["debug_types"] = o.DebugTypes - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *FunctionMatchingFilters) UnmarshalJSON(data []byte) (err error) { - varFunctionMatchingFilters := _FunctionMatchingFilters{} - - err = json.Unmarshal(data, &varFunctionMatchingFilters) - - if err != nil { - return err - } - - *o = FunctionMatchingFilters(varFunctionMatchingFilters) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "binary_ids") - delete(additionalProperties, "collection_ids") - delete(additionalProperties, "function_ids") - delete(additionalProperties, "user_ids") - delete(additionalProperties, "debug_types") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableFunctionMatchingFilters struct { - value *FunctionMatchingFilters - isSet bool -} - -func (v NullableFunctionMatchingFilters) Get() *FunctionMatchingFilters { - return v.value -} - -func (v *NullableFunctionMatchingFilters) Set(val *FunctionMatchingFilters) { - v.value = val - v.isSet = true -} - -func (v NullableFunctionMatchingFilters) IsSet() bool { - return v.isSet -} - -func (v *NullableFunctionMatchingFilters) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFunctionMatchingFilters(val *FunctionMatchingFilters) *NullableFunctionMatchingFilters { - return &NullableFunctionMatchingFilters{value: val, isSet: true} -} - -func (v NullableFunctionMatchingFilters) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFunctionMatchingFilters) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/v3/model_function_matching_request.go b/v3/model_function_matching_request.go deleted file mode 100644 index cbe8bb2..0000000 --- a/v3/model_function_matching_request.go +++ /dev/null @@ -1,551 +0,0 @@ -/* -RevEng.AI API - -RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package sdk - -import ( - "encoding/json" - "fmt" -) - -// checks if the FunctionMatchingRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FunctionMatchingRequest{} - -// FunctionMatchingRequest struct for FunctionMatchingRequest -type FunctionMatchingRequest struct { - // ID of the model used for function matching, used to determine the embedding model - ModelId int32 `json:"model_id"` - // ID's of functions to find matches for, must be at least one function ID - FunctionIds []int64 `json:"function_ids"` - // Minimum similarity expected for a match as a percentage, default is 90 - MinSimilarity *float32 `json:"min_similarity,omitempty"` - Filters NullableFunctionMatchingFilters `json:"filters,omitempty"` - // Maximum number of matches to return per function, default is 1, max is 50 - ResultsPerFunction *int32 `json:"results_per_function,omitempty"` - // Page number for paginated results, default is 1 (first page) - // Deprecated - Page *int32 `json:"page,omitempty"` - // Number of functions to return per page, default is 0 (all functions), max is 1000 - // Deprecated - PageSize *int32 `json:"page_size,omitempty"` - // If set to true, only returns the status of the matching operation without the actual results - // Deprecated - StatusOnly *bool `json:"status_only,omitempty"` - // If set to true, forces the system to bypass any cached results and perform a fresh computation - NoCache *bool `json:"no_cache,omitempty"` - // Whether to use canonical function names during function matching for confidence results, default is False - UseCanonicalNames *bool `json:"use_canonical_names,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _FunctionMatchingRequest FunctionMatchingRequest - -// NewFunctionMatchingRequest instantiates a new FunctionMatchingRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewFunctionMatchingRequest(modelId int32, functionIds []int64) *FunctionMatchingRequest { - this := FunctionMatchingRequest{} - this.ModelId = modelId - this.FunctionIds = functionIds - var minSimilarity float32 = 90 - this.MinSimilarity = &minSimilarity - var resultsPerFunction int32 = 1 - this.ResultsPerFunction = &resultsPerFunction - var page int32 = 1 - this.Page = &page - var pageSize int32 = 0 - this.PageSize = &pageSize - var statusOnly bool = false - this.StatusOnly = &statusOnly - var noCache bool = false - this.NoCache = &noCache - var useCanonicalNames bool = false - this.UseCanonicalNames = &useCanonicalNames - return &this -} - -// NewFunctionMatchingRequestWithDefaults instantiates a new FunctionMatchingRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewFunctionMatchingRequestWithDefaults() *FunctionMatchingRequest { - this := FunctionMatchingRequest{} - var minSimilarity float32 = 90 - this.MinSimilarity = &minSimilarity - var resultsPerFunction int32 = 1 - this.ResultsPerFunction = &resultsPerFunction - var page int32 = 1 - this.Page = &page - var pageSize int32 = 0 - this.PageSize = &pageSize - var statusOnly bool = false - this.StatusOnly = &statusOnly - var noCache bool = false - this.NoCache = &noCache - var useCanonicalNames bool = false - this.UseCanonicalNames = &useCanonicalNames - return &this -} - -// GetModelId returns the ModelId field value -func (o *FunctionMatchingRequest) GetModelId() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.ModelId -} - -// GetModelIdOk returns a tuple with the ModelId field value -// and a boolean to check if the value has been set. -func (o *FunctionMatchingRequest) GetModelIdOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.ModelId, true -} - -// SetModelId sets field value -func (o *FunctionMatchingRequest) SetModelId(v int32) { - o.ModelId = v -} - -// GetFunctionIds returns the FunctionIds field value -func (o *FunctionMatchingRequest) GetFunctionIds() []int64 { - if o == nil { - var ret []int64 - return ret - } - - return o.FunctionIds -} - -// GetFunctionIdsOk returns a tuple with the FunctionIds field value -// and a boolean to check if the value has been set. -func (o *FunctionMatchingRequest) GetFunctionIdsOk() ([]int64, bool) { - if o == nil { - return nil, false - } - return o.FunctionIds, true -} - -// SetFunctionIds sets field value -func (o *FunctionMatchingRequest) SetFunctionIds(v []int64) { - o.FunctionIds = v -} - -// GetMinSimilarity returns the MinSimilarity field value if set, zero value otherwise. -func (o *FunctionMatchingRequest) GetMinSimilarity() float32 { - if o == nil || IsNil(o.MinSimilarity) { - var ret float32 - return ret - } - return *o.MinSimilarity -} - -// GetMinSimilarityOk returns a tuple with the MinSimilarity field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FunctionMatchingRequest) GetMinSimilarityOk() (*float32, bool) { - if o == nil || IsNil(o.MinSimilarity) { - return nil, false - } - return o.MinSimilarity, true -} - -// HasMinSimilarity returns a boolean if a field has been set. -func (o *FunctionMatchingRequest) HasMinSimilarity() bool { - if o != nil && !IsNil(o.MinSimilarity) { - return true - } - - return false -} - -// SetMinSimilarity gets a reference to the given float32 and assigns it to the MinSimilarity field. -func (o *FunctionMatchingRequest) SetMinSimilarity(v float32) { - o.MinSimilarity = &v -} - -// GetFilters returns the Filters field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FunctionMatchingRequest) GetFilters() FunctionMatchingFilters { - if o == nil || IsNil(o.Filters.Get()) { - var ret FunctionMatchingFilters - return ret - } - return *o.Filters.Get() -} - -// GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FunctionMatchingRequest) GetFiltersOk() (*FunctionMatchingFilters, bool) { - if o == nil { - return nil, false - } - return o.Filters.Get(), o.Filters.IsSet() -} - -// HasFilters returns a boolean if a field has been set. -func (o *FunctionMatchingRequest) HasFilters() bool { - if o != nil && o.Filters.IsSet() { - return true - } - - return false -} - -// SetFilters gets a reference to the given NullableFunctionMatchingFilters and assigns it to the Filters field. -func (o *FunctionMatchingRequest) SetFilters(v FunctionMatchingFilters) { - o.Filters.Set(&v) -} -// SetFiltersNil sets the value for Filters to be an explicit nil -func (o *FunctionMatchingRequest) SetFiltersNil() { - o.Filters.Set(nil) -} - -// UnsetFilters ensures that no value is present for Filters, not even an explicit nil -func (o *FunctionMatchingRequest) UnsetFilters() { - o.Filters.Unset() -} - -// GetResultsPerFunction returns the ResultsPerFunction field value if set, zero value otherwise. -func (o *FunctionMatchingRequest) GetResultsPerFunction() int32 { - if o == nil || IsNil(o.ResultsPerFunction) { - var ret int32 - return ret - } - return *o.ResultsPerFunction -} - -// GetResultsPerFunctionOk returns a tuple with the ResultsPerFunction field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FunctionMatchingRequest) GetResultsPerFunctionOk() (*int32, bool) { - if o == nil || IsNil(o.ResultsPerFunction) { - return nil, false - } - return o.ResultsPerFunction, true -} - -// HasResultsPerFunction returns a boolean if a field has been set. -func (o *FunctionMatchingRequest) HasResultsPerFunction() bool { - if o != nil && !IsNil(o.ResultsPerFunction) { - return true - } - - return false -} - -// SetResultsPerFunction gets a reference to the given int32 and assigns it to the ResultsPerFunction field. -func (o *FunctionMatchingRequest) SetResultsPerFunction(v int32) { - o.ResultsPerFunction = &v -} - -// GetPage returns the Page field value if set, zero value otherwise. -// Deprecated -func (o *FunctionMatchingRequest) GetPage() int32 { - if o == nil || IsNil(o.Page) { - var ret int32 - return ret - } - return *o.Page -} - -// GetPageOk returns a tuple with the Page field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *FunctionMatchingRequest) GetPageOk() (*int32, bool) { - if o == nil || IsNil(o.Page) { - return nil, false - } - return o.Page, true -} - -// HasPage returns a boolean if a field has been set. -func (o *FunctionMatchingRequest) HasPage() bool { - if o != nil && !IsNil(o.Page) { - return true - } - - return false -} - -// SetPage gets a reference to the given int32 and assigns it to the Page field. -// Deprecated -func (o *FunctionMatchingRequest) SetPage(v int32) { - o.Page = &v -} - -// GetPageSize returns the PageSize field value if set, zero value otherwise. -// Deprecated -func (o *FunctionMatchingRequest) GetPageSize() int32 { - if o == nil || IsNil(o.PageSize) { - var ret int32 - return ret - } - return *o.PageSize -} - -// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *FunctionMatchingRequest) GetPageSizeOk() (*int32, bool) { - if o == nil || IsNil(o.PageSize) { - return nil, false - } - return o.PageSize, true -} - -// HasPageSize returns a boolean if a field has been set. -func (o *FunctionMatchingRequest) HasPageSize() bool { - if o != nil && !IsNil(o.PageSize) { - return true - } - - return false -} - -// SetPageSize gets a reference to the given int32 and assigns it to the PageSize field. -// Deprecated -func (o *FunctionMatchingRequest) SetPageSize(v int32) { - o.PageSize = &v -} - -// GetStatusOnly returns the StatusOnly field value if set, zero value otherwise. -// Deprecated -func (o *FunctionMatchingRequest) GetStatusOnly() bool { - if o == nil || IsNil(o.StatusOnly) { - var ret bool - return ret - } - return *o.StatusOnly -} - -// GetStatusOnlyOk returns a tuple with the StatusOnly field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *FunctionMatchingRequest) GetStatusOnlyOk() (*bool, bool) { - if o == nil || IsNil(o.StatusOnly) { - return nil, false - } - return o.StatusOnly, true -} - -// HasStatusOnly returns a boolean if a field has been set. -func (o *FunctionMatchingRequest) HasStatusOnly() bool { - if o != nil && !IsNil(o.StatusOnly) { - return true - } - - return false -} - -// SetStatusOnly gets a reference to the given bool and assigns it to the StatusOnly field. -// Deprecated -func (o *FunctionMatchingRequest) SetStatusOnly(v bool) { - o.StatusOnly = &v -} - -// GetNoCache returns the NoCache field value if set, zero value otherwise. -func (o *FunctionMatchingRequest) GetNoCache() bool { - if o == nil || IsNil(o.NoCache) { - var ret bool - return ret - } - return *o.NoCache -} - -// GetNoCacheOk returns a tuple with the NoCache field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FunctionMatchingRequest) GetNoCacheOk() (*bool, bool) { - if o == nil || IsNil(o.NoCache) { - return nil, false - } - return o.NoCache, true -} - -// HasNoCache returns a boolean if a field has been set. -func (o *FunctionMatchingRequest) HasNoCache() bool { - if o != nil && !IsNil(o.NoCache) { - return true - } - - return false -} - -// SetNoCache gets a reference to the given bool and assigns it to the NoCache field. -func (o *FunctionMatchingRequest) SetNoCache(v bool) { - o.NoCache = &v -} - -// GetUseCanonicalNames returns the UseCanonicalNames field value if set, zero value otherwise. -func (o *FunctionMatchingRequest) GetUseCanonicalNames() bool { - if o == nil || IsNil(o.UseCanonicalNames) { - var ret bool - return ret - } - return *o.UseCanonicalNames -} - -// GetUseCanonicalNamesOk returns a tuple with the UseCanonicalNames field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FunctionMatchingRequest) GetUseCanonicalNamesOk() (*bool, bool) { - if o == nil || IsNil(o.UseCanonicalNames) { - return nil, false - } - return o.UseCanonicalNames, true -} - -// HasUseCanonicalNames returns a boolean if a field has been set. -func (o *FunctionMatchingRequest) HasUseCanonicalNames() bool { - if o != nil && !IsNil(o.UseCanonicalNames) { - return true - } - - return false -} - -// SetUseCanonicalNames gets a reference to the given bool and assigns it to the UseCanonicalNames field. -func (o *FunctionMatchingRequest) SetUseCanonicalNames(v bool) { - o.UseCanonicalNames = &v -} - -func (o FunctionMatchingRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o FunctionMatchingRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["model_id"] = o.ModelId - toSerialize["function_ids"] = o.FunctionIds - if !IsNil(o.MinSimilarity) { - toSerialize["min_similarity"] = o.MinSimilarity - } - if o.Filters.IsSet() { - toSerialize["filters"] = o.Filters.Get() - } - if !IsNil(o.ResultsPerFunction) { - toSerialize["results_per_function"] = o.ResultsPerFunction - } - if !IsNil(o.Page) { - toSerialize["page"] = o.Page - } - if !IsNil(o.PageSize) { - toSerialize["page_size"] = o.PageSize - } - if !IsNil(o.StatusOnly) { - toSerialize["status_only"] = o.StatusOnly - } - if !IsNil(o.NoCache) { - toSerialize["no_cache"] = o.NoCache - } - if !IsNil(o.UseCanonicalNames) { - toSerialize["use_canonical_names"] = o.UseCanonicalNames - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *FunctionMatchingRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "model_id", - "function_ids", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varFunctionMatchingRequest := _FunctionMatchingRequest{} - - err = json.Unmarshal(data, &varFunctionMatchingRequest) - - if err != nil { - return err - } - - *o = FunctionMatchingRequest(varFunctionMatchingRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "model_id") - delete(additionalProperties, "function_ids") - delete(additionalProperties, "min_similarity") - delete(additionalProperties, "filters") - delete(additionalProperties, "results_per_function") - delete(additionalProperties, "page") - delete(additionalProperties, "page_size") - delete(additionalProperties, "status_only") - delete(additionalProperties, "no_cache") - delete(additionalProperties, "use_canonical_names") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableFunctionMatchingRequest struct { - value *FunctionMatchingRequest - isSet bool -} - -func (v NullableFunctionMatchingRequest) Get() *FunctionMatchingRequest { - return v.value -} - -func (v *NullableFunctionMatchingRequest) Set(val *FunctionMatchingRequest) { - v.value = val - v.isSet = true -} - -func (v NullableFunctionMatchingRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableFunctionMatchingRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFunctionMatchingRequest(val *FunctionMatchingRequest) *NullableFunctionMatchingRequest { - return &NullableFunctionMatchingRequest{value: val, isSet: true} -} - -func (v NullableFunctionMatchingRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFunctionMatchingRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/v3/model_function_matching_response.go b/v3/model_function_matching_response.go deleted file mode 100644 index b71caee..0000000 --- a/v3/model_function_matching_response.go +++ /dev/null @@ -1,573 +0,0 @@ -/* -RevEng.AI API - -RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package sdk - -import ( - "encoding/json" -) - -// checks if the FunctionMatchingResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FunctionMatchingResponse{} - -// FunctionMatchingResponse struct for FunctionMatchingResponse -type FunctionMatchingResponse struct { - // Progress of the matching operation, represented as a percentage - Progress *int32 `json:"progress,omitempty"` - Status NullableString `json:"status,omitempty"` - TotalTime NullableInt32 `json:"total_time,omitempty"` - ErrorMessage NullableString `json:"error_message,omitempty"` - CurrentPage NullableInt32 `json:"current_page,omitempty"` - TotalPages NullableInt32 `json:"total_pages,omitempty"` - Matches []V2FunctionMatch `json:"matches,omitempty"` - NumMatches NullableInt32 `json:"num_matches,omitempty"` - NumDebugMatches NullableInt32 `json:"num_debug_matches,omitempty"` - UpdatedAt NullableString `json:"updated_at,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _FunctionMatchingResponse FunctionMatchingResponse - -// NewFunctionMatchingResponse instantiates a new FunctionMatchingResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewFunctionMatchingResponse() *FunctionMatchingResponse { - this := FunctionMatchingResponse{} - var progress int32 = 0 - this.Progress = &progress - return &this -} - -// NewFunctionMatchingResponseWithDefaults instantiates a new FunctionMatchingResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewFunctionMatchingResponseWithDefaults() *FunctionMatchingResponse { - this := FunctionMatchingResponse{} - var progress int32 = 0 - this.Progress = &progress - return &this -} - -// GetProgress returns the Progress field value if set, zero value otherwise. -func (o *FunctionMatchingResponse) GetProgress() int32 { - if o == nil || IsNil(o.Progress) { - var ret int32 - return ret - } - return *o.Progress -} - -// GetProgressOk returns a tuple with the Progress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FunctionMatchingResponse) GetProgressOk() (*int32, bool) { - if o == nil || IsNil(o.Progress) { - return nil, false - } - return o.Progress, true -} - -// HasProgress returns a boolean if a field has been set. -func (o *FunctionMatchingResponse) HasProgress() bool { - if o != nil && !IsNil(o.Progress) { - return true - } - - return false -} - -// SetProgress gets a reference to the given int32 and assigns it to the Progress field. -func (o *FunctionMatchingResponse) SetProgress(v int32) { - o.Progress = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FunctionMatchingResponse) GetStatus() string { - if o == nil || IsNil(o.Status.Get()) { - var ret string - return ret - } - return *o.Status.Get() -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FunctionMatchingResponse) GetStatusOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Status.Get(), o.Status.IsSet() -} - -// HasStatus returns a boolean if a field has been set. -func (o *FunctionMatchingResponse) HasStatus() bool { - if o != nil && o.Status.IsSet() { - return true - } - - return false -} - -// SetStatus gets a reference to the given NullableString and assigns it to the Status field. -func (o *FunctionMatchingResponse) SetStatus(v string) { - o.Status.Set(&v) -} -// SetStatusNil sets the value for Status to be an explicit nil -func (o *FunctionMatchingResponse) SetStatusNil() { - o.Status.Set(nil) -} - -// UnsetStatus ensures that no value is present for Status, not even an explicit nil -func (o *FunctionMatchingResponse) UnsetStatus() { - o.Status.Unset() -} - -// GetTotalTime returns the TotalTime field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FunctionMatchingResponse) GetTotalTime() int32 { - if o == nil || IsNil(o.TotalTime.Get()) { - var ret int32 - return ret - } - return *o.TotalTime.Get() -} - -// GetTotalTimeOk returns a tuple with the TotalTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FunctionMatchingResponse) GetTotalTimeOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.TotalTime.Get(), o.TotalTime.IsSet() -} - -// HasTotalTime returns a boolean if a field has been set. -func (o *FunctionMatchingResponse) HasTotalTime() bool { - if o != nil && o.TotalTime.IsSet() { - return true - } - - return false -} - -// SetTotalTime gets a reference to the given NullableInt32 and assigns it to the TotalTime field. -func (o *FunctionMatchingResponse) SetTotalTime(v int32) { - o.TotalTime.Set(&v) -} -// SetTotalTimeNil sets the value for TotalTime to be an explicit nil -func (o *FunctionMatchingResponse) SetTotalTimeNil() { - o.TotalTime.Set(nil) -} - -// UnsetTotalTime ensures that no value is present for TotalTime, not even an explicit nil -func (o *FunctionMatchingResponse) UnsetTotalTime() { - o.TotalTime.Unset() -} - -// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FunctionMatchingResponse) GetErrorMessage() string { - if o == nil || IsNil(o.ErrorMessage.Get()) { - var ret string - return ret - } - return *o.ErrorMessage.Get() -} - -// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FunctionMatchingResponse) GetErrorMessageOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.ErrorMessage.Get(), o.ErrorMessage.IsSet() -} - -// HasErrorMessage returns a boolean if a field has been set. -func (o *FunctionMatchingResponse) HasErrorMessage() bool { - if o != nil && o.ErrorMessage.IsSet() { - return true - } - - return false -} - -// SetErrorMessage gets a reference to the given NullableString and assigns it to the ErrorMessage field. -func (o *FunctionMatchingResponse) SetErrorMessage(v string) { - o.ErrorMessage.Set(&v) -} -// SetErrorMessageNil sets the value for ErrorMessage to be an explicit nil -func (o *FunctionMatchingResponse) SetErrorMessageNil() { - o.ErrorMessage.Set(nil) -} - -// UnsetErrorMessage ensures that no value is present for ErrorMessage, not even an explicit nil -func (o *FunctionMatchingResponse) UnsetErrorMessage() { - o.ErrorMessage.Unset() -} - -// GetCurrentPage returns the CurrentPage field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FunctionMatchingResponse) GetCurrentPage() int32 { - if o == nil || IsNil(o.CurrentPage.Get()) { - var ret int32 - return ret - } - return *o.CurrentPage.Get() -} - -// GetCurrentPageOk returns a tuple with the CurrentPage field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FunctionMatchingResponse) GetCurrentPageOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.CurrentPage.Get(), o.CurrentPage.IsSet() -} - -// HasCurrentPage returns a boolean if a field has been set. -func (o *FunctionMatchingResponse) HasCurrentPage() bool { - if o != nil && o.CurrentPage.IsSet() { - return true - } - - return false -} - -// SetCurrentPage gets a reference to the given NullableInt32 and assigns it to the CurrentPage field. -func (o *FunctionMatchingResponse) SetCurrentPage(v int32) { - o.CurrentPage.Set(&v) -} -// SetCurrentPageNil sets the value for CurrentPage to be an explicit nil -func (o *FunctionMatchingResponse) SetCurrentPageNil() { - o.CurrentPage.Set(nil) -} - -// UnsetCurrentPage ensures that no value is present for CurrentPage, not even an explicit nil -func (o *FunctionMatchingResponse) UnsetCurrentPage() { - o.CurrentPage.Unset() -} - -// GetTotalPages returns the TotalPages field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FunctionMatchingResponse) GetTotalPages() int32 { - if o == nil || IsNil(o.TotalPages.Get()) { - var ret int32 - return ret - } - return *o.TotalPages.Get() -} - -// GetTotalPagesOk returns a tuple with the TotalPages field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FunctionMatchingResponse) GetTotalPagesOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.TotalPages.Get(), o.TotalPages.IsSet() -} - -// HasTotalPages returns a boolean if a field has been set. -func (o *FunctionMatchingResponse) HasTotalPages() bool { - if o != nil && o.TotalPages.IsSet() { - return true - } - - return false -} - -// SetTotalPages gets a reference to the given NullableInt32 and assigns it to the TotalPages field. -func (o *FunctionMatchingResponse) SetTotalPages(v int32) { - o.TotalPages.Set(&v) -} -// SetTotalPagesNil sets the value for TotalPages to be an explicit nil -func (o *FunctionMatchingResponse) SetTotalPagesNil() { - o.TotalPages.Set(nil) -} - -// UnsetTotalPages ensures that no value is present for TotalPages, not even an explicit nil -func (o *FunctionMatchingResponse) UnsetTotalPages() { - o.TotalPages.Unset() -} - -// GetMatches returns the Matches field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FunctionMatchingResponse) GetMatches() []V2FunctionMatch { - if o == nil { - var ret []V2FunctionMatch - return ret - } - return o.Matches -} - -// GetMatchesOk returns a tuple with the Matches field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FunctionMatchingResponse) GetMatchesOk() ([]V2FunctionMatch, bool) { - if o == nil || IsNil(o.Matches) { - return nil, false - } - return o.Matches, true -} - -// HasMatches returns a boolean if a field has been set. -func (o *FunctionMatchingResponse) HasMatches() bool { - if o != nil && !IsNil(o.Matches) { - return true - } - - return false -} - -// SetMatches gets a reference to the given []V2FunctionMatch and assigns it to the Matches field. -func (o *FunctionMatchingResponse) SetMatches(v []V2FunctionMatch) { - o.Matches = v -} - -// GetNumMatches returns the NumMatches field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FunctionMatchingResponse) GetNumMatches() int32 { - if o == nil || IsNil(o.NumMatches.Get()) { - var ret int32 - return ret - } - return *o.NumMatches.Get() -} - -// GetNumMatchesOk returns a tuple with the NumMatches field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FunctionMatchingResponse) GetNumMatchesOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.NumMatches.Get(), o.NumMatches.IsSet() -} - -// HasNumMatches returns a boolean if a field has been set. -func (o *FunctionMatchingResponse) HasNumMatches() bool { - if o != nil && o.NumMatches.IsSet() { - return true - } - - return false -} - -// SetNumMatches gets a reference to the given NullableInt32 and assigns it to the NumMatches field. -func (o *FunctionMatchingResponse) SetNumMatches(v int32) { - o.NumMatches.Set(&v) -} -// SetNumMatchesNil sets the value for NumMatches to be an explicit nil -func (o *FunctionMatchingResponse) SetNumMatchesNil() { - o.NumMatches.Set(nil) -} - -// UnsetNumMatches ensures that no value is present for NumMatches, not even an explicit nil -func (o *FunctionMatchingResponse) UnsetNumMatches() { - o.NumMatches.Unset() -} - -// GetNumDebugMatches returns the NumDebugMatches field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FunctionMatchingResponse) GetNumDebugMatches() int32 { - if o == nil || IsNil(o.NumDebugMatches.Get()) { - var ret int32 - return ret - } - return *o.NumDebugMatches.Get() -} - -// GetNumDebugMatchesOk returns a tuple with the NumDebugMatches field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FunctionMatchingResponse) GetNumDebugMatchesOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.NumDebugMatches.Get(), o.NumDebugMatches.IsSet() -} - -// HasNumDebugMatches returns a boolean if a field has been set. -func (o *FunctionMatchingResponse) HasNumDebugMatches() bool { - if o != nil && o.NumDebugMatches.IsSet() { - return true - } - - return false -} - -// SetNumDebugMatches gets a reference to the given NullableInt32 and assigns it to the NumDebugMatches field. -func (o *FunctionMatchingResponse) SetNumDebugMatches(v int32) { - o.NumDebugMatches.Set(&v) -} -// SetNumDebugMatchesNil sets the value for NumDebugMatches to be an explicit nil -func (o *FunctionMatchingResponse) SetNumDebugMatchesNil() { - o.NumDebugMatches.Set(nil) -} - -// UnsetNumDebugMatches ensures that no value is present for NumDebugMatches, not even an explicit nil -func (o *FunctionMatchingResponse) UnsetNumDebugMatches() { - o.NumDebugMatches.Unset() -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FunctionMatchingResponse) GetUpdatedAt() string { - if o == nil || IsNil(o.UpdatedAt.Get()) { - var ret string - return ret - } - return *o.UpdatedAt.Get() -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FunctionMatchingResponse) GetUpdatedAtOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.UpdatedAt.Get(), o.UpdatedAt.IsSet() -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *FunctionMatchingResponse) HasUpdatedAt() bool { - if o != nil && o.UpdatedAt.IsSet() { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given NullableString and assigns it to the UpdatedAt field. -func (o *FunctionMatchingResponse) SetUpdatedAt(v string) { - o.UpdatedAt.Set(&v) -} -// SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil -func (o *FunctionMatchingResponse) SetUpdatedAtNil() { - o.UpdatedAt.Set(nil) -} - -// UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil -func (o *FunctionMatchingResponse) UnsetUpdatedAt() { - o.UpdatedAt.Unset() -} - -func (o FunctionMatchingResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o FunctionMatchingResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Progress) { - toSerialize["progress"] = o.Progress - } - if o.Status.IsSet() { - toSerialize["status"] = o.Status.Get() - } - if o.TotalTime.IsSet() { - toSerialize["total_time"] = o.TotalTime.Get() - } - if o.ErrorMessage.IsSet() { - toSerialize["error_message"] = o.ErrorMessage.Get() - } - if o.CurrentPage.IsSet() { - toSerialize["current_page"] = o.CurrentPage.Get() - } - if o.TotalPages.IsSet() { - toSerialize["total_pages"] = o.TotalPages.Get() - } - if o.Matches != nil { - toSerialize["matches"] = o.Matches - } - if o.NumMatches.IsSet() { - toSerialize["num_matches"] = o.NumMatches.Get() - } - if o.NumDebugMatches.IsSet() { - toSerialize["num_debug_matches"] = o.NumDebugMatches.Get() - } - if o.UpdatedAt.IsSet() { - toSerialize["updated_at"] = o.UpdatedAt.Get() - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *FunctionMatchingResponse) UnmarshalJSON(data []byte) (err error) { - varFunctionMatchingResponse := _FunctionMatchingResponse{} - - err = json.Unmarshal(data, &varFunctionMatchingResponse) - - if err != nil { - return err - } - - *o = FunctionMatchingResponse(varFunctionMatchingResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "progress") - delete(additionalProperties, "status") - delete(additionalProperties, "total_time") - delete(additionalProperties, "error_message") - delete(additionalProperties, "current_page") - delete(additionalProperties, "total_pages") - delete(additionalProperties, "matches") - delete(additionalProperties, "num_matches") - delete(additionalProperties, "num_debug_matches") - delete(additionalProperties, "updated_at") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableFunctionMatchingResponse struct { - value *FunctionMatchingResponse - isSet bool -} - -func (v NullableFunctionMatchingResponse) Get() *FunctionMatchingResponse { - return v.value -} - -func (v *NullableFunctionMatchingResponse) Set(val *FunctionMatchingResponse) { - v.value = val - v.isSet = true -} - -func (v NullableFunctionMatchingResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableFunctionMatchingResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFunctionMatchingResponse(val *FunctionMatchingResponse) *NullableFunctionMatchingResponse { - return &NullableFunctionMatchingResponse{value: val, isSet: true} -} - -func (v NullableFunctionMatchingResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFunctionMatchingResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/v3/model_get_analysis_strings_status_output_body.go b/v3/model_get_analysis_strings_status_output_body.go index 5fd6d54..9be667c 100644 --- a/v3/model_get_analysis_strings_status_output_body.go +++ b/v3/model_get_analysis_strings_status_output_body.go @@ -20,6 +20,7 @@ var _ MappedNullable = &GetAnalysisStringsStatusOutputBody{} // GetAnalysisStringsStatusOutputBody struct for GetAnalysisStringsStatusOutputBody type GetAnalysisStringsStatusOutputBody struct { + // String-extraction task status Status string `json:"status"` } diff --git a/v3/model_matched_function_suggestion.go b/v3/model_matched_function_suggestion.go deleted file mode 100644 index 8f77bfe..0000000 --- a/v3/model_matched_function_suggestion.go +++ /dev/null @@ -1,275 +0,0 @@ -/* -RevEng.AI API - -RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package sdk - -import ( - "encoding/json" - "fmt" -) - -// checks if the MatchedFunctionSuggestion type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &MatchedFunctionSuggestion{} - -// MatchedFunctionSuggestion struct for MatchedFunctionSuggestion -type MatchedFunctionSuggestion struct { - // Unique identifier of the matched function - FunctionId int64 `json:"function_id"` - // Virtual address of the matched function - FunctionVaddr int64 `json:"function_vaddr"` - SuggestedName NullableString `json:"suggested_name,omitempty"` - // De-mangled name of the function group that contains the matched functions - SuggestedDemangledName string `json:"suggested_demangled_name"` - AdditionalProperties map[string]interface{} -} - -type _MatchedFunctionSuggestion MatchedFunctionSuggestion - -// NewMatchedFunctionSuggestion instantiates a new MatchedFunctionSuggestion object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMatchedFunctionSuggestion(functionId int64, functionVaddr int64, suggestedDemangledName string) *MatchedFunctionSuggestion { - this := MatchedFunctionSuggestion{} - this.FunctionId = functionId - this.FunctionVaddr = functionVaddr - this.SuggestedDemangledName = suggestedDemangledName - return &this -} - -// NewMatchedFunctionSuggestionWithDefaults instantiates a new MatchedFunctionSuggestion object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMatchedFunctionSuggestionWithDefaults() *MatchedFunctionSuggestion { - this := MatchedFunctionSuggestion{} - return &this -} - -// GetFunctionId returns the FunctionId field value -func (o *MatchedFunctionSuggestion) GetFunctionId() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.FunctionId -} - -// GetFunctionIdOk returns a tuple with the FunctionId field value -// and a boolean to check if the value has been set. -func (o *MatchedFunctionSuggestion) GetFunctionIdOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.FunctionId, true -} - -// SetFunctionId sets field value -func (o *MatchedFunctionSuggestion) SetFunctionId(v int64) { - o.FunctionId = v -} - -// GetFunctionVaddr returns the FunctionVaddr field value -func (o *MatchedFunctionSuggestion) GetFunctionVaddr() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.FunctionVaddr -} - -// GetFunctionVaddrOk returns a tuple with the FunctionVaddr field value -// and a boolean to check if the value has been set. -func (o *MatchedFunctionSuggestion) GetFunctionVaddrOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.FunctionVaddr, true -} - -// SetFunctionVaddr sets field value -func (o *MatchedFunctionSuggestion) SetFunctionVaddr(v int64) { - o.FunctionVaddr = v -} - -// GetSuggestedName returns the SuggestedName field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *MatchedFunctionSuggestion) GetSuggestedName() string { - if o == nil || IsNil(o.SuggestedName.Get()) { - var ret string - return ret - } - return *o.SuggestedName.Get() -} - -// GetSuggestedNameOk returns a tuple with the SuggestedName field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *MatchedFunctionSuggestion) GetSuggestedNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.SuggestedName.Get(), o.SuggestedName.IsSet() -} - -// HasSuggestedName returns a boolean if a field has been set. -func (o *MatchedFunctionSuggestion) HasSuggestedName() bool { - if o != nil && o.SuggestedName.IsSet() { - return true - } - - return false -} - -// SetSuggestedName gets a reference to the given NullableString and assigns it to the SuggestedName field. -func (o *MatchedFunctionSuggestion) SetSuggestedName(v string) { - o.SuggestedName.Set(&v) -} -// SetSuggestedNameNil sets the value for SuggestedName to be an explicit nil -func (o *MatchedFunctionSuggestion) SetSuggestedNameNil() { - o.SuggestedName.Set(nil) -} - -// UnsetSuggestedName ensures that no value is present for SuggestedName, not even an explicit nil -func (o *MatchedFunctionSuggestion) UnsetSuggestedName() { - o.SuggestedName.Unset() -} - -// GetSuggestedDemangledName returns the SuggestedDemangledName field value -func (o *MatchedFunctionSuggestion) GetSuggestedDemangledName() string { - if o == nil { - var ret string - return ret - } - - return o.SuggestedDemangledName -} - -// GetSuggestedDemangledNameOk returns a tuple with the SuggestedDemangledName field value -// and a boolean to check if the value has been set. -func (o *MatchedFunctionSuggestion) GetSuggestedDemangledNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SuggestedDemangledName, true -} - -// SetSuggestedDemangledName sets field value -func (o *MatchedFunctionSuggestion) SetSuggestedDemangledName(v string) { - o.SuggestedDemangledName = v -} - -func (o MatchedFunctionSuggestion) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o MatchedFunctionSuggestion) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["function_id"] = o.FunctionId - toSerialize["function_vaddr"] = o.FunctionVaddr - if o.SuggestedName.IsSet() { - toSerialize["suggested_name"] = o.SuggestedName.Get() - } - toSerialize["suggested_demangled_name"] = o.SuggestedDemangledName - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *MatchedFunctionSuggestion) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "function_id", - "function_vaddr", - "suggested_demangled_name", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varMatchedFunctionSuggestion := _MatchedFunctionSuggestion{} - - err = json.Unmarshal(data, &varMatchedFunctionSuggestion) - - if err != nil { - return err - } - - *o = MatchedFunctionSuggestion(varMatchedFunctionSuggestion) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "function_id") - delete(additionalProperties, "function_vaddr") - delete(additionalProperties, "suggested_name") - delete(additionalProperties, "suggested_demangled_name") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableMatchedFunctionSuggestion struct { - value *MatchedFunctionSuggestion - isSet bool -} - -func (v NullableMatchedFunctionSuggestion) Get() *MatchedFunctionSuggestion { - return v.value -} - -func (v *NullableMatchedFunctionSuggestion) Set(val *MatchedFunctionSuggestion) { - v.value = val - v.isSet = true -} - -func (v NullableMatchedFunctionSuggestion) IsSet() bool { - return v.isSet -} - -func (v *NullableMatchedFunctionSuggestion) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMatchedFunctionSuggestion(val *MatchedFunctionSuggestion) *NullableMatchedFunctionSuggestion { - return &NullableMatchedFunctionSuggestion{value: val, isSet: true} -} - -func (v NullableMatchedFunctionSuggestion) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMatchedFunctionSuggestion) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/v3/model_v2_function_match.go b/v3/model_v2_function_match.go deleted file mode 100644 index dc74bdf..0000000 --- a/v3/model_v2_function_match.go +++ /dev/null @@ -1,235 +0,0 @@ -/* -RevEng.AI API - -RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package sdk - -import ( - "encoding/json" - "fmt" -) - -// checks if the V2FunctionMatch type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &V2FunctionMatch{} - -// V2FunctionMatch struct for V2FunctionMatch -type V2FunctionMatch struct { - // Unique identifier of the function - FunctionId int64 `json:"function_id"` - MatchedFunctions []V2MatchedFunction `json:"matched_functions"` - Confidences []V2NameConfidence `json:"confidences,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _V2FunctionMatch V2FunctionMatch - -// NewV2FunctionMatch instantiates a new V2FunctionMatch object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewV2FunctionMatch(functionId int64, matchedFunctions []V2MatchedFunction) *V2FunctionMatch { - this := V2FunctionMatch{} - this.FunctionId = functionId - this.MatchedFunctions = matchedFunctions - return &this -} - -// NewV2FunctionMatchWithDefaults instantiates a new V2FunctionMatch object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewV2FunctionMatchWithDefaults() *V2FunctionMatch { - this := V2FunctionMatch{} - return &this -} - -// GetFunctionId returns the FunctionId field value -func (o *V2FunctionMatch) GetFunctionId() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.FunctionId -} - -// GetFunctionIdOk returns a tuple with the FunctionId field value -// and a boolean to check if the value has been set. -func (o *V2FunctionMatch) GetFunctionIdOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.FunctionId, true -} - -// SetFunctionId sets field value -func (o *V2FunctionMatch) SetFunctionId(v int64) { - o.FunctionId = v -} - -// GetMatchedFunctions returns the MatchedFunctions field value -func (o *V2FunctionMatch) GetMatchedFunctions() []V2MatchedFunction { - if o == nil { - var ret []V2MatchedFunction - return ret - } - - return o.MatchedFunctions -} - -// GetMatchedFunctionsOk returns a tuple with the MatchedFunctions field value -// and a boolean to check if the value has been set. -func (o *V2FunctionMatch) GetMatchedFunctionsOk() ([]V2MatchedFunction, bool) { - if o == nil { - return nil, false - } - return o.MatchedFunctions, true -} - -// SetMatchedFunctions sets field value -func (o *V2FunctionMatch) SetMatchedFunctions(v []V2MatchedFunction) { - o.MatchedFunctions = v -} - -// GetConfidences returns the Confidences field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *V2FunctionMatch) GetConfidences() []V2NameConfidence { - if o == nil { - var ret []V2NameConfidence - return ret - } - return o.Confidences -} - -// GetConfidencesOk returns a tuple with the Confidences field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *V2FunctionMatch) GetConfidencesOk() ([]V2NameConfidence, bool) { - if o == nil || IsNil(o.Confidences) { - return nil, false - } - return o.Confidences, true -} - -// HasConfidences returns a boolean if a field has been set. -func (o *V2FunctionMatch) HasConfidences() bool { - if o != nil && !IsNil(o.Confidences) { - return true - } - - return false -} - -// SetConfidences gets a reference to the given []V2NameConfidence and assigns it to the Confidences field. -func (o *V2FunctionMatch) SetConfidences(v []V2NameConfidence) { - o.Confidences = v -} - -func (o V2FunctionMatch) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o V2FunctionMatch) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["function_id"] = o.FunctionId - toSerialize["matched_functions"] = o.MatchedFunctions - if o.Confidences != nil { - toSerialize["confidences"] = o.Confidences - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *V2FunctionMatch) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "function_id", - "matched_functions", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varV2FunctionMatch := _V2FunctionMatch{} - - err = json.Unmarshal(data, &varV2FunctionMatch) - - if err != nil { - return err - } - - *o = V2FunctionMatch(varV2FunctionMatch) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "function_id") - delete(additionalProperties, "matched_functions") - delete(additionalProperties, "confidences") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableV2FunctionMatch struct { - value *V2FunctionMatch - isSet bool -} - -func (v NullableV2FunctionMatch) Get() *V2FunctionMatch { - return v.value -} - -func (v *NullableV2FunctionMatch) Set(val *V2FunctionMatch) { - v.value = val - v.isSet = true -} - -func (v NullableV2FunctionMatch) IsSet() bool { - return v.isSet -} - -func (v *NullableV2FunctionMatch) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableV2FunctionMatch(val *V2FunctionMatch) *NullableV2FunctionMatch { - return &NullableV2FunctionMatch{value: val, isSet: true} -} - -func (v NullableV2FunctionMatch) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableV2FunctionMatch) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/v3/model_v2_matched_function.go b/v3/model_v2_matched_function.go deleted file mode 100644 index ed97e21..0000000 --- a/v3/model_v2_matched_function.go +++ /dev/null @@ -1,494 +0,0 @@ -/* -RevEng.AI API - -RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package sdk - -import ( - "encoding/json" - "fmt" -) - -// checks if the V2MatchedFunction type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &V2MatchedFunction{} - -// V2MatchedFunction struct for V2MatchedFunction -type V2MatchedFunction struct { - // Unique identifier of the matched function - FunctionId int64 `json:"function_id"` - BinaryId int32 `json:"binary_id"` - FunctionName string `json:"function_name"` - FunctionVaddr int64 `json:"function_vaddr"` - MangledName string `json:"mangled_name"` - Debug bool `json:"debug"` - BinaryName string `json:"binary_name"` - Sha256Hash string `json:"sha_256_hash"` - AnalysisId int32 `json:"analysis_id"` - Similarity NullableFloat32 `json:"similarity,omitempty"` - Confidence NullableFloat32 `json:"confidence,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _V2MatchedFunction V2MatchedFunction - -// NewV2MatchedFunction instantiates a new V2MatchedFunction object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewV2MatchedFunction(functionId int64, binaryId int32, functionName string, functionVaddr int64, mangledName string, debug bool, binaryName string, sha256Hash string, analysisId int32) *V2MatchedFunction { - this := V2MatchedFunction{} - this.FunctionId = functionId - this.BinaryId = binaryId - this.FunctionName = functionName - this.FunctionVaddr = functionVaddr - this.MangledName = mangledName - this.Debug = debug - this.BinaryName = binaryName - this.Sha256Hash = sha256Hash - this.AnalysisId = analysisId - return &this -} - -// NewV2MatchedFunctionWithDefaults instantiates a new V2MatchedFunction object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewV2MatchedFunctionWithDefaults() *V2MatchedFunction { - this := V2MatchedFunction{} - return &this -} - -// GetFunctionId returns the FunctionId field value -func (o *V2MatchedFunction) GetFunctionId() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.FunctionId -} - -// GetFunctionIdOk returns a tuple with the FunctionId field value -// and a boolean to check if the value has been set. -func (o *V2MatchedFunction) GetFunctionIdOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.FunctionId, true -} - -// SetFunctionId sets field value -func (o *V2MatchedFunction) SetFunctionId(v int64) { - o.FunctionId = v -} - -// GetBinaryId returns the BinaryId field value -func (o *V2MatchedFunction) GetBinaryId() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.BinaryId -} - -// GetBinaryIdOk returns a tuple with the BinaryId field value -// and a boolean to check if the value has been set. -func (o *V2MatchedFunction) GetBinaryIdOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.BinaryId, true -} - -// SetBinaryId sets field value -func (o *V2MatchedFunction) SetBinaryId(v int32) { - o.BinaryId = v -} - -// GetFunctionName returns the FunctionName field value -func (o *V2MatchedFunction) GetFunctionName() string { - if o == nil { - var ret string - return ret - } - - return o.FunctionName -} - -// GetFunctionNameOk returns a tuple with the FunctionName field value -// and a boolean to check if the value has been set. -func (o *V2MatchedFunction) GetFunctionNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.FunctionName, true -} - -// SetFunctionName sets field value -func (o *V2MatchedFunction) SetFunctionName(v string) { - o.FunctionName = v -} - -// GetFunctionVaddr returns the FunctionVaddr field value -func (o *V2MatchedFunction) GetFunctionVaddr() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.FunctionVaddr -} - -// GetFunctionVaddrOk returns a tuple with the FunctionVaddr field value -// and a boolean to check if the value has been set. -func (o *V2MatchedFunction) GetFunctionVaddrOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.FunctionVaddr, true -} - -// SetFunctionVaddr sets field value -func (o *V2MatchedFunction) SetFunctionVaddr(v int64) { - o.FunctionVaddr = v -} - -// GetMangledName returns the MangledName field value -func (o *V2MatchedFunction) GetMangledName() string { - if o == nil { - var ret string - return ret - } - - return o.MangledName -} - -// GetMangledNameOk returns a tuple with the MangledName field value -// and a boolean to check if the value has been set. -func (o *V2MatchedFunction) GetMangledNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.MangledName, true -} - -// SetMangledName sets field value -func (o *V2MatchedFunction) SetMangledName(v string) { - o.MangledName = v -} - -// GetDebug returns the Debug field value -func (o *V2MatchedFunction) GetDebug() bool { - if o == nil { - var ret bool - return ret - } - - return o.Debug -} - -// GetDebugOk returns a tuple with the Debug field value -// and a boolean to check if the value has been set. -func (o *V2MatchedFunction) GetDebugOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Debug, true -} - -// SetDebug sets field value -func (o *V2MatchedFunction) SetDebug(v bool) { - o.Debug = v -} - -// GetBinaryName returns the BinaryName field value -func (o *V2MatchedFunction) GetBinaryName() string { - if o == nil { - var ret string - return ret - } - - return o.BinaryName -} - -// GetBinaryNameOk returns a tuple with the BinaryName field value -// and a boolean to check if the value has been set. -func (o *V2MatchedFunction) GetBinaryNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.BinaryName, true -} - -// SetBinaryName sets field value -func (o *V2MatchedFunction) SetBinaryName(v string) { - o.BinaryName = v -} - -// GetSha256Hash returns the Sha256Hash field value -func (o *V2MatchedFunction) GetSha256Hash() string { - if o == nil { - var ret string - return ret - } - - return o.Sha256Hash -} - -// GetSha256HashOk returns a tuple with the Sha256Hash field value -// and a boolean to check if the value has been set. -func (o *V2MatchedFunction) GetSha256HashOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Sha256Hash, true -} - -// SetSha256Hash sets field value -func (o *V2MatchedFunction) SetSha256Hash(v string) { - o.Sha256Hash = v -} - -// GetAnalysisId returns the AnalysisId field value -func (o *V2MatchedFunction) GetAnalysisId() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.AnalysisId -} - -// GetAnalysisIdOk returns a tuple with the AnalysisId field value -// and a boolean to check if the value has been set. -func (o *V2MatchedFunction) GetAnalysisIdOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.AnalysisId, true -} - -// SetAnalysisId sets field value -func (o *V2MatchedFunction) SetAnalysisId(v int32) { - o.AnalysisId = v -} - -// GetSimilarity returns the Similarity field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *V2MatchedFunction) GetSimilarity() float32 { - if o == nil || IsNil(o.Similarity.Get()) { - var ret float32 - return ret - } - return *o.Similarity.Get() -} - -// GetSimilarityOk returns a tuple with the Similarity field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *V2MatchedFunction) GetSimilarityOk() (*float32, bool) { - if o == nil { - return nil, false - } - return o.Similarity.Get(), o.Similarity.IsSet() -} - -// HasSimilarity returns a boolean if a field has been set. -func (o *V2MatchedFunction) HasSimilarity() bool { - if o != nil && o.Similarity.IsSet() { - return true - } - - return false -} - -// SetSimilarity gets a reference to the given NullableFloat32 and assigns it to the Similarity field. -func (o *V2MatchedFunction) SetSimilarity(v float32) { - o.Similarity.Set(&v) -} -// SetSimilarityNil sets the value for Similarity to be an explicit nil -func (o *V2MatchedFunction) SetSimilarityNil() { - o.Similarity.Set(nil) -} - -// UnsetSimilarity ensures that no value is present for Similarity, not even an explicit nil -func (o *V2MatchedFunction) UnsetSimilarity() { - o.Similarity.Unset() -} - -// GetConfidence returns the Confidence field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *V2MatchedFunction) GetConfidence() float32 { - if o == nil || IsNil(o.Confidence.Get()) { - var ret float32 - return ret - } - return *o.Confidence.Get() -} - -// GetConfidenceOk returns a tuple with the Confidence field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *V2MatchedFunction) GetConfidenceOk() (*float32, bool) { - if o == nil { - return nil, false - } - return o.Confidence.Get(), o.Confidence.IsSet() -} - -// HasConfidence returns a boolean if a field has been set. -func (o *V2MatchedFunction) HasConfidence() bool { - if o != nil && o.Confidence.IsSet() { - return true - } - - return false -} - -// SetConfidence gets a reference to the given NullableFloat32 and assigns it to the Confidence field. -func (o *V2MatchedFunction) SetConfidence(v float32) { - o.Confidence.Set(&v) -} -// SetConfidenceNil sets the value for Confidence to be an explicit nil -func (o *V2MatchedFunction) SetConfidenceNil() { - o.Confidence.Set(nil) -} - -// UnsetConfidence ensures that no value is present for Confidence, not even an explicit nil -func (o *V2MatchedFunction) UnsetConfidence() { - o.Confidence.Unset() -} - -func (o V2MatchedFunction) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o V2MatchedFunction) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["function_id"] = o.FunctionId - toSerialize["binary_id"] = o.BinaryId - toSerialize["function_name"] = o.FunctionName - toSerialize["function_vaddr"] = o.FunctionVaddr - toSerialize["mangled_name"] = o.MangledName - toSerialize["debug"] = o.Debug - toSerialize["binary_name"] = o.BinaryName - toSerialize["sha_256_hash"] = o.Sha256Hash - toSerialize["analysis_id"] = o.AnalysisId - if o.Similarity.IsSet() { - toSerialize["similarity"] = o.Similarity.Get() - } - if o.Confidence.IsSet() { - toSerialize["confidence"] = o.Confidence.Get() - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *V2MatchedFunction) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "function_id", - "binary_id", - "function_name", - "function_vaddr", - "mangled_name", - "debug", - "binary_name", - "sha_256_hash", - "analysis_id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varV2MatchedFunction := _V2MatchedFunction{} - - err = json.Unmarshal(data, &varV2MatchedFunction) - - if err != nil { - return err - } - - *o = V2MatchedFunction(varV2MatchedFunction) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "function_id") - delete(additionalProperties, "binary_id") - delete(additionalProperties, "function_name") - delete(additionalProperties, "function_vaddr") - delete(additionalProperties, "mangled_name") - delete(additionalProperties, "debug") - delete(additionalProperties, "binary_name") - delete(additionalProperties, "sha_256_hash") - delete(additionalProperties, "analysis_id") - delete(additionalProperties, "similarity") - delete(additionalProperties, "confidence") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableV2MatchedFunction struct { - value *V2MatchedFunction - isSet bool -} - -func (v NullableV2MatchedFunction) Get() *V2MatchedFunction { - return v.value -} - -func (v *NullableV2MatchedFunction) Set(val *V2MatchedFunction) { - v.value = val - v.isSet = true -} - -func (v NullableV2MatchedFunction) IsSet() bool { - return v.isSet -} - -func (v *NullableV2MatchedFunction) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableV2MatchedFunction(val *V2MatchedFunction) *NullableV2MatchedFunction { - return &NullableV2MatchedFunction{value: val, isSet: true} -} - -func (v NullableV2MatchedFunction) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableV2MatchedFunction) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/v3/model_v2_name_confidence.go b/v3/model_v2_name_confidence.go deleted file mode 100644 index d8dd407..0000000 --- a/v3/model_v2_name_confidence.go +++ /dev/null @@ -1,198 +0,0 @@ -/* -RevEng.AI API - -RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal. - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package sdk - -import ( - "encoding/json" - "fmt" -) - -// checks if the V2NameConfidence type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &V2NameConfidence{} - -// V2NameConfidence struct for V2NameConfidence -type V2NameConfidence struct { - // The suggested function name - Name string `json:"name"` - // Confidence score as a percentage - Confidence float32 `json:"confidence"` - AdditionalProperties map[string]interface{} -} - -type _V2NameConfidence V2NameConfidence - -// NewV2NameConfidence instantiates a new V2NameConfidence object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewV2NameConfidence(name string, confidence float32) *V2NameConfidence { - this := V2NameConfidence{} - this.Name = name - this.Confidence = confidence - return &this -} - -// NewV2NameConfidenceWithDefaults instantiates a new V2NameConfidence object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewV2NameConfidenceWithDefaults() *V2NameConfidence { - this := V2NameConfidence{} - return &this -} - -// GetName returns the Name field value -func (o *V2NameConfidence) GetName() string { - if o == nil { - var ret string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *V2NameConfidence) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *V2NameConfidence) SetName(v string) { - o.Name = v -} - -// GetConfidence returns the Confidence field value -func (o *V2NameConfidence) GetConfidence() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.Confidence -} - -// GetConfidenceOk returns a tuple with the Confidence field value -// and a boolean to check if the value has been set. -func (o *V2NameConfidence) GetConfidenceOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.Confidence, true -} - -// SetConfidence sets field value -func (o *V2NameConfidence) SetConfidence(v float32) { - o.Confidence = v -} - -func (o V2NameConfidence) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o V2NameConfidence) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["name"] = o.Name - toSerialize["confidence"] = o.Confidence - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *V2NameConfidence) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "name", - "confidence", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varV2NameConfidence := _V2NameConfidence{} - - err = json.Unmarshal(data, &varV2NameConfidence) - - if err != nil { - return err - } - - *o = V2NameConfidence(varV2NameConfidence) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "name") - delete(additionalProperties, "confidence") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableV2NameConfidence struct { - value *V2NameConfidence - isSet bool -} - -func (v NullableV2NameConfidence) Get() *V2NameConfidence { - return v.value -} - -func (v *NullableV2NameConfidence) Set(val *V2NameConfidence) { - v.value = val - v.isSet = true -} - -func (v NullableV2NameConfidence) IsSet() bool { - return v.isSet -} - -func (v *NullableV2NameConfidence) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableV2NameConfidence(val *V2NameConfidence) *NullableV2NameConfidence { - return &NullableV2NameConfidence{value: val, isSet: true} -} - -func (v NullableV2NameConfidence) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableV2NameConfidence) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -