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

com.hpe.caf.services.audit.client.api.AuditEventsApi Maven / Gradle / Ivy

The newest version!
package com.hpe.caf.services.audit.client.api;

import com.hpe.caf.services.audit.client.ApiException;
import com.hpe.caf.services.audit.client.ApiClient;
import com.hpe.caf.services.audit.client.ApiResponse;
import com.hpe.caf.services.audit.client.Configuration;
import com.hpe.caf.services.audit.client.Pair;

import jakarta.ws.rs.core.GenericType;

import com.hpe.caf.services.audit.client.model.NewAuditEvent;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-23T11:21:10.586433281Z[Etc/UTC]")
public class AuditEventsApi {
  private ApiClient apiClient;

  public AuditEventsApi() {
    this(Configuration.getDefaultApiClient());
  }

  public AuditEventsApi(ApiClient apiClient) {
    this.apiClient = apiClient;
  }

  /**
   * Get the API client
   *
   * @return API client
   */
  public ApiClient getApiClient() {
    return apiClient;
  }

  /**
   * Set the API client
   *
   * @param apiClient an instance of API client
   */
  public void setApiClient(ApiClient apiClient) {
    this.apiClient = apiClient;
  }

  /**
   * Indexes a new audit event message into Elasticsearch.
   * Indexes the specified audit event message into Elasticsearch. 
   * @param newAuditEvent The definition of the audit event message to index. (required)
   * @throws ApiException if fails to make API call
   * @http.response.details
     
Status Code Description Response Headers
204 The audit event message was successfully indexed into Elasticsearch. -
400 The audit event message definition is incomplete or contains invalid data. -
*/ public void auditeventsPost(NewAuditEvent newAuditEvent) throws ApiException { auditeventsPostWithHttpInfo(newAuditEvent); } /** * Indexes a new audit event message into Elasticsearch. * Indexes the specified audit event message into Elasticsearch. * @param newAuditEvent The definition of the audit event message to index. (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
204 The audit event message was successfully indexed into Elasticsearch. -
400 The audit event message definition is incomplete or contains invalid data. -
*/ public ApiResponse auditeventsPostWithHttpInfo(NewAuditEvent newAuditEvent) throws ApiException { // Check required parameters if (newAuditEvent == null) { throw new ApiException(400, "Missing the required parameter 'newAuditEvent' when calling auditeventsPost"); } String localVarAccept = apiClient.selectHeaderAccept(); String localVarContentType = apiClient.selectHeaderContentType("application/json"); return apiClient.invokeAPI("AuditEventsApi.auditeventsPost", "/auditevents", "POST", new ArrayList<>(), newAuditEvent, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, null, null, false); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy