All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.bmc.adm.ApplicationDependencyManagementAsync Maven / Gradle / Ivy

There is a newer version: 3.49.0
Show newest version
/**
 * Copyright (c) 2016, 2024, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */
package com.oracle.bmc.adm;

import com.oracle.bmc.adm.requests.*;
import com.oracle.bmc.adm.responses.*;

/**
 * Use the Application Dependency Management API to create knowledge bases and vulnerability audits.
 * For more information, see
 * [ADM](https://docs.cloud.oracle.com/Content/application-dependency-management/home.htm).
 */
@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220421")
public interface ApplicationDependencyManagementAsync extends AutoCloseable {

    /** Rebuilds the client from scratch. Useful to refresh certificates. */
    void refreshClient();

    /**
     * Sets the endpoint to call (ex, https://www.example.com).
     *
     * @param endpoint The endpoint of the serice.
     */
    void setEndpoint(String endpoint);

    /** Gets the set endpoint for REST call (ex, https://www.example.com) */
    String getEndpoint();

    /**
     * Sets the region to call (ex, Region.US_PHOENIX_1).
     *
     * 

Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the * endpoint. If the service is not available in this region, however, an * IllegalArgumentException will be raised. * * @param region The region of the service. */ void setRegion(com.oracle.bmc.Region region); /** * 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 {@link * #setRegion(Region) setRegion}. * *

If no known Region could be determined, it will create an endpoint based on the default * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} * and then call {@link #setEndpoint(String) setEndpoint}. * * @param regionId The public region ID. */ void setRegion(String regionId); /** * 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" * * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint * template */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** * Activates the specified Remediation Recipe. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future activateRemediationRecipe( ActivateRemediationRecipeRequest request, com.oracle.bmc.responses.AsyncHandler< ActivateRemediationRecipeRequest, ActivateRemediationRecipeResponse> handler); /** * Cancels the specified remediation run. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future cancelRemediationRun( CancelRemediationRunRequest request, com.oracle.bmc.responses.AsyncHandler< CancelRemediationRunRequest, CancelRemediationRunResponse> handler); /** * Cancel work request with the given ID. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future cancelWorkRequest( CancelWorkRequestRequest request, com.oracle.bmc.responses.AsyncHandler< CancelWorkRequestRequest, CancelWorkRequestResponse> handler); /** * Moves a Knowledge Base from one compartment to another. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future changeKnowledgeBaseCompartment( ChangeKnowledgeBaseCompartmentRequest request, com.oracle.bmc.responses.AsyncHandler< ChangeKnowledgeBaseCompartmentRequest, ChangeKnowledgeBaseCompartmentResponse> handler); /** * Moves a Remediation Recipe from one compartment to another. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future changeRemediationRecipeCompartment( ChangeRemediationRecipeCompartmentRequest request, com.oracle.bmc.responses.AsyncHandler< ChangeRemediationRecipeCompartmentRequest, ChangeRemediationRecipeCompartmentResponse> handler); /** * Moves a remediation run from one compartment to another. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future changeRemediationRunCompartment( ChangeRemediationRunCompartmentRequest request, com.oracle.bmc.responses.AsyncHandler< ChangeRemediationRunCompartmentRequest, ChangeRemediationRunCompartmentResponse> handler); /** * Moves a Vulnerability Audit from one compartment to another. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future changeVulnerabilityAuditCompartment( ChangeVulnerabilityAuditCompartmentRequest request, com.oracle.bmc.responses.AsyncHandler< ChangeVulnerabilityAuditCompartmentRequest, ChangeVulnerabilityAuditCompartmentResponse> handler); /** * Creates a new Knowledge Base. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future createKnowledgeBase( CreateKnowledgeBaseRequest request, com.oracle.bmc.responses.AsyncHandler< CreateKnowledgeBaseRequest, CreateKnowledgeBaseResponse> handler); /** * Creates a new Remediation Recipe. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future createRemediationRecipe( CreateRemediationRecipeRequest request, com.oracle.bmc.responses.AsyncHandler< CreateRemediationRecipeRequest, CreateRemediationRecipeResponse> handler); /** * Creates a new remediation run. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future createRemediationRun( CreateRemediationRunRequest request, com.oracle.bmc.responses.AsyncHandler< CreateRemediationRunRequest, CreateRemediationRunResponse> handler); /** * Creates a new Vulnerability Audit by providing a tree of Application Dependencies. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future createVulnerabilityAudit( CreateVulnerabilityAuditRequest request, com.oracle.bmc.responses.AsyncHandler< CreateVulnerabilityAuditRequest, CreateVulnerabilityAuditResponse> handler); /** * Deactivates the specified Remediation Recipe. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future deactivateRemediationRecipe( DeactivateRemediationRecipeRequest request, com.oracle.bmc.responses.AsyncHandler< DeactivateRemediationRecipeRequest, DeactivateRemediationRecipeResponse> handler); /** * Deletes the specified Knowledge Base. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future deleteKnowledgeBase( DeleteKnowledgeBaseRequest request, com.oracle.bmc.responses.AsyncHandler< DeleteKnowledgeBaseRequest, DeleteKnowledgeBaseResponse> handler); /** * Deletes the specified Remediation Recipe. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future deleteRemediationRecipe( DeleteRemediationRecipeRequest request, com.oracle.bmc.responses.AsyncHandler< DeleteRemediationRecipeRequest, DeleteRemediationRecipeResponse> handler); /** * Deletes the specified remediation run. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future deleteRemediationRun( DeleteRemediationRunRequest request, com.oracle.bmc.responses.AsyncHandler< DeleteRemediationRunRequest, DeleteRemediationRunResponse> handler); /** * Deletes the specified Vulnerability Audit. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future deleteVulnerabilityAudit( DeleteVulnerabilityAuditRequest request, com.oracle.bmc.responses.AsyncHandler< DeleteVulnerabilityAuditRequest, DeleteVulnerabilityAuditResponse> handler); /** * Returns the details of the specified Knowledge Base. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future getKnowledgeBase( GetKnowledgeBaseRequest request, com.oracle.bmc.responses.AsyncHandler handler); /** * Returns the details of the specified RemediationRecipe. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future getRemediationRecipe( GetRemediationRecipeRequest request, com.oracle.bmc.responses.AsyncHandler< GetRemediationRecipeRequest, GetRemediationRecipeResponse> handler); /** * Returns the details of the specified remediation run. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future getRemediationRun( GetRemediationRunRequest request, com.oracle.bmc.responses.AsyncHandler< GetRemediationRunRequest, GetRemediationRunResponse> handler); /** * Returns the details of the specified Remediation Run Stage. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future getStage( GetStageRequest request, com.oracle.bmc.responses.AsyncHandler handler); /** * Returns the details of the specified Vulnerability Audit. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future getVulnerabilityAudit( GetVulnerabilityAuditRequest request, com.oracle.bmc.responses.AsyncHandler< GetVulnerabilityAuditRequest, GetVulnerabilityAuditResponse> handler); /** * Gets the status of the work request with the given ID. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future getWorkRequest( GetWorkRequestRequest request, com.oracle.bmc.responses.AsyncHandler handler); /** * Returns a list of application dependency with their associated recommendations. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future listApplicationDependencyRecommendations( ListApplicationDependencyRecommendationsRequest request, com.oracle.bmc.responses.AsyncHandler< ListApplicationDependencyRecommendationsRequest, ListApplicationDependencyRecommendationsResponse> handler); /** * Returns a list of Application Dependencies with their associated vulnerabilities. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future listApplicationDependencyVulnerabilities( ListApplicationDependencyVulnerabilitiesRequest request, com.oracle.bmc.responses.AsyncHandler< ListApplicationDependencyVulnerabilitiesRequest, ListApplicationDependencyVulnerabilitiesResponse> handler); /** * Returns a list of KnowledgeBases based on the specified query parameters. At least id or * compartmentId query parameter must be provided. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future listKnowledgeBases( ListKnowledgeBasesRequest request, com.oracle.bmc.responses.AsyncHandler< ListKnowledgeBasesRequest, ListKnowledgeBasesResponse> handler); /** * Returns a list of Remediation Recipes based on the specified query parameters. The query * parameters `compartmentId` or `id` must be provided. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future listRemediationRecipes( ListRemediationRecipesRequest request, com.oracle.bmc.responses.AsyncHandler< ListRemediationRecipesRequest, ListRemediationRecipesResponse> handler); /** * Returns a list of remediation runs contained by a compartment. The query parameter * `compartmentId` is required unless the query parameter `id` is specified. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future listRemediationRuns( ListRemediationRunsRequest request, com.oracle.bmc.responses.AsyncHandler< ListRemediationRunsRequest, ListRemediationRunsResponse> handler); /** * Returns a list of Remediation Run Stages based on the specified query parameters and * Remediation Run identifier. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future listStages( ListStagesRequest request, com.oracle.bmc.responses.AsyncHandler handler); /** * Returns a list of Vulnerability Audits based on the specified query parameters. At least one * of id, compartmentId query parameter must be provided. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future listVulnerabilityAudits( ListVulnerabilityAuditsRequest request, com.oracle.bmc.responses.AsyncHandler< ListVulnerabilityAuditsRequest, ListVulnerabilityAuditsResponse> handler); /** * Return a (paginated) list of errors for a given work request. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future listWorkRequestErrors( ListWorkRequestErrorsRequest request, com.oracle.bmc.responses.AsyncHandler< ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> handler); /** * Return a (paginated) list of logs for a given work request. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future listWorkRequestLogs( ListWorkRequestLogsRequest request, com.oracle.bmc.responses.AsyncHandler< ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> handler); /** * Lists the work requests in a compartment. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future listWorkRequests( ListWorkRequestsRequest request, com.oracle.bmc.responses.AsyncHandler handler); /** * Updates one or more attributes of the specified Knowledge Base. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future updateKnowledgeBase( UpdateKnowledgeBaseRequest request, com.oracle.bmc.responses.AsyncHandler< UpdateKnowledgeBaseRequest, UpdateKnowledgeBaseResponse> handler); /** * Updates one or more attributes of the specified Remediation Recipe. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future updateRemediationRecipe( UpdateRemediationRecipeRequest request, com.oracle.bmc.responses.AsyncHandler< UpdateRemediationRecipeRequest, UpdateRemediationRecipeResponse> handler); /** * Updates by identifier one or more attributes of the specified remediation run. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future updateRemediationRun( UpdateRemediationRunRequest request, com.oracle.bmc.responses.AsyncHandler< UpdateRemediationRunRequest, UpdateRemediationRunResponse> handler); /** * Updates one or more attributes of the specified Vulnerability Audit. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, * if you provide an AsyncHandler and use the Future, some types of responses (like * java.io.InputStream) may not be able to be read in both places as the underlying stream * may only be consumed once. */ java.util.concurrent.Future updateVulnerabilityAudit( UpdateVulnerabilityAuditRequest request, com.oracle.bmc.responses.AsyncHandler< UpdateVulnerabilityAuditRequest, UpdateVulnerabilityAuditResponse> handler); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy