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

com.oracle.bmc.logging.LoggingManagementAsync Maven / Gradle / Ivy

There is a newer version: 3.49.0
Show newest version
/**
 * Copyright (c) 2016, 2021, 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.logging;

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

/**
 * Use the Logging Management API to create, read, list, update, and delete log groups, log objects, and agent configurations.
 */
@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200531")
public interface LoggingManagementAsync extends AutoCloseable {

    /**
     * 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); /** * Moves a log group into a different compartment within the same tenancy. When provided, the If-Match is checked against the resource ETag values. * For information about moving resources between compartments, see [Moving Resources Between Compartments](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * * * @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 changeLogGroupCompartment( ChangeLogGroupCompartmentRequest request, com.oracle.bmc.responses.AsyncHandler< ChangeLogGroupCompartmentRequest, ChangeLogGroupCompartmentResponse> handler); /** * Moves a log into a different log group within the same tenancy. When provided, the If-Match is checked against the ETag values of the resource. * * * @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 changeLogLogGroup( ChangeLogLogGroupRequest request, com.oracle.bmc.responses.AsyncHandler< ChangeLogLogGroupRequest, ChangeLogLogGroupResponse> handler); /** * Moves a saved search into a different compartment within the same tenancy. For information about moving * resources between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * * * @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 changeLogSavedSearchCompartment( ChangeLogSavedSearchCompartmentRequest request, com.oracle.bmc.responses.AsyncHandler< ChangeLogSavedSearchCompartmentRequest, ChangeLogSavedSearchCompartmentResponse> handler); /** * Moves the unified agent configuration into a different compartment within the same tenancy. When provided, the If-Match is checked against the ETag values of the resource. * For information about moving resources between compartments, see [Moving Resources Between Compartments](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * * * @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 changeUnifiedAgentConfigurationCompartment( ChangeUnifiedAgentConfigurationCompartmentRequest request, com.oracle.bmc.responses.AsyncHandler< ChangeUnifiedAgentConfigurationCompartmentRequest, ChangeUnifiedAgentConfigurationCompartmentResponse> handler); /** * Creates a log within the specified log group. This call fails if a log group has already been created * with the same displayName or (service, resource, category) triplet. * * * @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 createLog( CreateLogRequest request, com.oracle.bmc.responses.AsyncHandler handler); /** * Create a new log group with a unique display name. This call fails * if the log group is already created with the same displayName in the 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 createLogGroup( CreateLogGroupRequest request, com.oracle.bmc.responses.AsyncHandler handler); /** * Creates a new LogSavedSearch. * * * @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 createLogSavedSearch( CreateLogSavedSearchRequest request, com.oracle.bmc.responses.AsyncHandler< CreateLogSavedSearchRequest, CreateLogSavedSearchResponse> handler); /** * Create unified agent configuration registration. * * @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 createUnifiedAgentConfiguration( CreateUnifiedAgentConfigurationRequest request, com.oracle.bmc.responses.AsyncHandler< CreateUnifiedAgentConfigurationRequest, CreateUnifiedAgentConfigurationResponse> handler); /** * Deletes the log object in a log group. * * @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 deleteLog( DeleteLogRequest request, com.oracle.bmc.responses.AsyncHandler handler); /** * Deletes the specified log group. * * @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 deleteLogGroup( DeleteLogGroupRequest request, com.oracle.bmc.responses.AsyncHandler handler); /** * Deletes the specified log saved search. * * @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 deleteLogSavedSearch( DeleteLogSavedSearchRequest request, com.oracle.bmc.responses.AsyncHandler< DeleteLogSavedSearchRequest, DeleteLogSavedSearchResponse> handler); /** * Delete unified agent configuration. * * @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 deleteUnifiedAgentConfiguration( DeleteUnifiedAgentConfigurationRequest request, com.oracle.bmc.responses.AsyncHandler< DeleteUnifiedAgentConfigurationRequest, DeleteUnifiedAgentConfigurationResponse> handler); /** * Cancel a work request that has not started yet. * * * @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 deleteWorkRequest( DeleteWorkRequestRequest request, com.oracle.bmc.responses.AsyncHandler< DeleteWorkRequestRequest, DeleteWorkRequestResponse> handler); /** * Gets the log object configuration for the log object OCID. * * * @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 getLog( GetLogRequest request, com.oracle.bmc.responses.AsyncHandler handler); /** * Get the specified log group's information. * * @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 getLogGroup( GetLogGroupRequest request, com.oracle.bmc.responses.AsyncHandler handler); /** * Retrieves a LogIncludedSearch. * * @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 getLogIncludedSearch( GetLogIncludedSearchRequest request, com.oracle.bmc.responses.AsyncHandler< GetLogIncludedSearchRequest, GetLogIncludedSearchResponse> handler); /** * Retrieves a log saved search. * * @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 getLogSavedSearch( GetLogSavedSearchRequest request, com.oracle.bmc.responses.AsyncHandler< GetLogSavedSearchRequest, GetLogSavedSearchResponse> handler); /** * Get the unified agent configuration for an 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 getUnifiedAgentConfiguration( GetUnifiedAgentConfigurationRequest request, com.oracle.bmc.responses.AsyncHandler< GetUnifiedAgentConfigurationRequest, GetUnifiedAgentConfigurationResponse> handler); /** * Gets the details 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); /** * Lists all log groups for the specified compartment or tenancy. * * @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 listLogGroups( ListLogGroupsRequest request, com.oracle.bmc.responses.AsyncHandler handler); /** * Lists Logging Included Searches for this 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 listLogIncludedSearches( ListLogIncludedSearchesRequest request, com.oracle.bmc.responses.AsyncHandler< ListLogIncludedSearchesRequest, ListLogIncludedSearchesResponse> handler); /** * Lists Logging Saved Searches for this 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 listLogSavedSearches( ListLogSavedSearchesRequest request, com.oracle.bmc.responses.AsyncHandler< ListLogSavedSearchesRequest, ListLogSavedSearchesResponse> handler); /** * Lists the specified log group's log objects. * * @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 listLogs( ListLogsRequest request, com.oracle.bmc.responses.AsyncHandler handler); /** * Lists all services that support logging. * * @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 listServices( ListServicesRequest request, com.oracle.bmc.responses.AsyncHandler handler); /** * Lists all unified agent configurations in the specified 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 listUnifiedAgentConfigurations( ListUnifiedAgentConfigurationsRequest request, com.oracle.bmc.responses.AsyncHandler< ListUnifiedAgentConfigurationsRequest, ListUnifiedAgentConfigurationsResponse> handler); /** * Return a 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 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 the existing log object with the associated configuration. This call * fails if the log object does not exist. * * * @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 updateLog( UpdateLogRequest request, com.oracle.bmc.responses.AsyncHandler handler); /** * Updates the existing log group with the associated configuration. This call * fails if the log group does not exist. * * * @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 updateLogGroup( UpdateLogGroupRequest request, com.oracle.bmc.responses.AsyncHandler handler); /** * Updates an existing log saved search. * * * @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 updateLogSavedSearch( UpdateLogSavedSearchRequest request, com.oracle.bmc.responses.AsyncHandler< UpdateLogSavedSearchRequest, UpdateLogSavedSearchResponse> handler); /** * Update an existing unified agent configuration. This call * fails if the log group does not exist. * * * @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 updateUnifiedAgentConfiguration( UpdateUnifiedAgentConfigurationRequest request, com.oracle.bmc.responses.AsyncHandler< UpdateUnifiedAgentConfigurationRequest, UpdateUnifiedAgentConfigurationResponse> handler); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy