@Generated(value="OracleSDKGenerator", comments="API Version: 20220421") public interface ApplicationDependencyManagementAsync extends AutoCloseable
Use the Application Dependency Management API to create knowledge bases and vulnerability audits. For more information, see ADM.
close
void refreshClient()
Rebuilds the client from scratch. Useful to refresh certificates.
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
void setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint
after resolving the
endpoint. If the service is not available in this region, however, an
IllegalArgumentException will be raised.
region
- The region of the service.void setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call setRegion
.
If no known Region could be determined, it will create an endpoint based on the default
endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint
.
regionId
- The public region ID.void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)
Determines whether realm specific endpoint should be used or not. Set realmSpecificEndpointTemplateEnabled to “true” if the user wants to enable use of realm specific endpoint template, otherwise set it to “false”
realmSpecificEndpointTemplateEnabled
- flag to enable the use of realm specific endpoint
templateFuture<ActivateRemediationRecipeResponse> activateRemediationRecipe(ActivateRemediationRecipeRequest request, AsyncHandler<ActivateRemediationRecipeRequest,ActivateRemediationRecipeResponse> handler)
Activates the specified Remediation Recipe.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CancelRemediationRunResponse> cancelRemediationRun(CancelRemediationRunRequest request, AsyncHandler<CancelRemediationRunRequest,CancelRemediationRunResponse> handler)
Cancels the specified remediation run.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CancelWorkRequestResponse> cancelWorkRequest(CancelWorkRequestRequest request, AsyncHandler<CancelWorkRequestRequest,CancelWorkRequestResponse> handler)
Cancel work request with the given ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeKnowledgeBaseCompartmentResponse> changeKnowledgeBaseCompartment(ChangeKnowledgeBaseCompartmentRequest request, AsyncHandler<ChangeKnowledgeBaseCompartmentRequest,ChangeKnowledgeBaseCompartmentResponse> handler)
Moves a Knowledge Base from one compartment to another.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeRemediationRecipeCompartmentResponse> changeRemediationRecipeCompartment(ChangeRemediationRecipeCompartmentRequest request, AsyncHandler<ChangeRemediationRecipeCompartmentRequest,ChangeRemediationRecipeCompartmentResponse> handler)
Moves a Remediation Recipe from one compartment to another.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeRemediationRunCompartmentResponse> changeRemediationRunCompartment(ChangeRemediationRunCompartmentRequest request, AsyncHandler<ChangeRemediationRunCompartmentRequest,ChangeRemediationRunCompartmentResponse> handler)
Moves a remediation run from one compartment to another.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeVulnerabilityAuditCompartmentResponse> changeVulnerabilityAuditCompartment(ChangeVulnerabilityAuditCompartmentRequest request, AsyncHandler<ChangeVulnerabilityAuditCompartmentRequest,ChangeVulnerabilityAuditCompartmentResponse> handler)
Moves a Vulnerability Audit from one compartment to another.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateKnowledgeBaseResponse> createKnowledgeBase(CreateKnowledgeBaseRequest request, AsyncHandler<CreateKnowledgeBaseRequest,CreateKnowledgeBaseResponse> handler)
Creates a new Knowledge Base.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateRemediationRecipeResponse> createRemediationRecipe(CreateRemediationRecipeRequest request, AsyncHandler<CreateRemediationRecipeRequest,CreateRemediationRecipeResponse> handler)
Creates a new Remediation Recipe.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateRemediationRunResponse> createRemediationRun(CreateRemediationRunRequest request, AsyncHandler<CreateRemediationRunRequest,CreateRemediationRunResponse> handler)
Creates a new remediation run.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateVulnerabilityAuditResponse> createVulnerabilityAudit(CreateVulnerabilityAuditRequest request, AsyncHandler<CreateVulnerabilityAuditRequest,CreateVulnerabilityAuditResponse> handler)
Creates a new Vulnerability Audit by providing a tree of Application Dependencies.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeactivateRemediationRecipeResponse> deactivateRemediationRecipe(DeactivateRemediationRecipeRequest request, AsyncHandler<DeactivateRemediationRecipeRequest,DeactivateRemediationRecipeResponse> handler)
Deactivates the specified Remediation Recipe.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteKnowledgeBaseResponse> deleteKnowledgeBase(DeleteKnowledgeBaseRequest request, AsyncHandler<DeleteKnowledgeBaseRequest,DeleteKnowledgeBaseResponse> handler)
Deletes the specified Knowledge Base.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteRemediationRecipeResponse> deleteRemediationRecipe(DeleteRemediationRecipeRequest request, AsyncHandler<DeleteRemediationRecipeRequest,DeleteRemediationRecipeResponse> handler)
Deletes the specified Remediation Recipe.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteRemediationRunResponse> deleteRemediationRun(DeleteRemediationRunRequest request, AsyncHandler<DeleteRemediationRunRequest,DeleteRemediationRunResponse> handler)
Deletes the specified remediation run.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteVulnerabilityAuditResponse> deleteVulnerabilityAudit(DeleteVulnerabilityAuditRequest request, AsyncHandler<DeleteVulnerabilityAuditRequest,DeleteVulnerabilityAuditResponse> handler)
Deletes the specified Vulnerability Audit.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetKnowledgeBaseResponse> getKnowledgeBase(GetKnowledgeBaseRequest request, AsyncHandler<GetKnowledgeBaseRequest,GetKnowledgeBaseResponse> handler)
Returns the details of the specified Knowledge Base.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetRemediationRecipeResponse> getRemediationRecipe(GetRemediationRecipeRequest request, AsyncHandler<GetRemediationRecipeRequest,GetRemediationRecipeResponse> handler)
Returns the details of the specified RemediationRecipe.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetRemediationRunResponse> getRemediationRun(GetRemediationRunRequest request, AsyncHandler<GetRemediationRunRequest,GetRemediationRunResponse> handler)
Returns the details of the specified remediation run.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetStageResponse> getStage(GetStageRequest request, AsyncHandler<GetStageRequest,GetStageResponse> handler)
Returns the details of the specified Remediation Run Stage.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetVulnerabilityAuditResponse> getVulnerabilityAudit(GetVulnerabilityAuditRequest request, AsyncHandler<GetVulnerabilityAuditRequest,GetVulnerabilityAuditResponse> handler)
Returns the details of the specified Vulnerability Audit.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
Gets the status of the work request with the given ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListApplicationDependencyRecommendationsResponse> listApplicationDependencyRecommendations(ListApplicationDependencyRecommendationsRequest request, AsyncHandler<ListApplicationDependencyRecommendationsRequest,ListApplicationDependencyRecommendationsResponse> handler)
Returns a list of application dependency with their associated recommendations.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListApplicationDependencyVulnerabilitiesResponse> listApplicationDependencyVulnerabilities(ListApplicationDependencyVulnerabilitiesRequest request, AsyncHandler<ListApplicationDependencyVulnerabilitiesRequest,ListApplicationDependencyVulnerabilitiesResponse> handler)
Returns a list of Application Dependencies with their associated vulnerabilities.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListKnowledgeBasesResponse> listKnowledgeBases(ListKnowledgeBasesRequest request, AsyncHandler<ListKnowledgeBasesRequest,ListKnowledgeBasesResponse> handler)
Returns a list of KnowledgeBases based on the specified query parameters. At least id or compartmentId query parameter must be provided.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListRemediationRecipesResponse> listRemediationRecipes(ListRemediationRecipesRequest request, AsyncHandler<ListRemediationRecipesRequest,ListRemediationRecipesResponse> handler)
Returns a list of Remediation Recipes based on the specified query parameters. The query
parameters compartmentId
or id
must be provided.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListRemediationRunsResponse> listRemediationRuns(ListRemediationRunsRequest request, AsyncHandler<ListRemediationRunsRequest,ListRemediationRunsResponse> handler)
Returns a list of remediation runs contained by a compartment. The query parameter
compartmentId
is required unless the query parameter id
is specified.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListStagesResponse> listStages(ListStagesRequest request, AsyncHandler<ListStagesRequest,ListStagesResponse> handler)
Returns a list of Remediation Run Stages based on the specified query parameters and Remediation Run identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListVulnerabilityAuditsResponse> listVulnerabilityAudits(ListVulnerabilityAuditsRequest request, AsyncHandler<ListVulnerabilityAuditsRequest,ListVulnerabilityAuditsResponse> handler)
Returns a list of Vulnerability Audits based on the specified query parameters. At least one of id, compartmentId query parameter must be provided.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
Return a (paginated) list of errors for a given work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
Return a (paginated) list of logs for a given work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
Lists the work requests in a compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateKnowledgeBaseResponse> updateKnowledgeBase(UpdateKnowledgeBaseRequest request, AsyncHandler<UpdateKnowledgeBaseRequest,UpdateKnowledgeBaseResponse> handler)
Updates one or more attributes of the specified Knowledge Base.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateRemediationRecipeResponse> updateRemediationRecipe(UpdateRemediationRecipeRequest request, AsyncHandler<UpdateRemediationRecipeRequest,UpdateRemediationRecipeResponse> handler)
Updates one or more attributes of the specified Remediation Recipe.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateRemediationRunResponse> updateRemediationRun(UpdateRemediationRunRequest request, AsyncHandler<UpdateRemediationRunRequest,UpdateRemediationRunResponse> handler)
Updates by identifier one or more attributes of the specified remediation run.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateVulnerabilityAuditResponse> updateVulnerabilityAudit(UpdateVulnerabilityAuditRequest request, AsyncHandler<UpdateVulnerabilityAuditRequest,UpdateVulnerabilityAuditResponse> handler)
Updates one or more attributes of the specified Vulnerability Audit.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2024. All rights reserved.