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

com.blazebit.query.connector.kandji.api.NotesApi Maven / Gradle / Ivy

The newest version!
package com.blazebit.query.connector.kandji.api;

import com.blazebit.query.connector.kandji.invoker.ApiException;
import com.blazebit.query.connector.kandji.invoker.ApiClient;
import com.blazebit.query.connector.kandji.invoker.ApiResponse;
import com.blazebit.query.connector.kandji.invoker.Configuration;
import com.blazebit.query.connector.kandji.invoker.Pair;

import jakarta.ws.rs.core.GenericType;

import com.blazebit.query.connector.kandji.model.CreateDeviceNote201Response;
import com.blazebit.query.connector.kandji.model.CreateDeviceNoteRequest;
import com.blazebit.query.connector.kandji.model.DeleteDeviceNote200Response;
import com.blazebit.query.connector.kandji.model.GetDeviceNotes200ResponseInner;
import com.blazebit.query.connector.kandji.model.RetrieveDeviceNote200Response;
import com.blazebit.query.connector.kandji.model.UpdateDeviceNote200Response;
import com.blazebit.query.connector.kandji.model.UpdateDeviceNoteRequest;

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 = "2025-04-30T07:19:31.168100307Z[Etc/UTC]", comments = "Generator version: 7.10.0")
public class NotesApi {
  private ApiClient apiClient;

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

  public NotesApi(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;
  }

  /**
   * Create Device Note
   * This request creates a note for the specified device ID.
   * @param deviceId  (required)
   * @param createDeviceNoteRequest  (optional)
   * @return CreateDeviceNote201Response
   * @throws ApiException if fails to make API call
   * @http.response.details
     
Response Details
Status Code Description Response Headers
201 Create Device Note * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ public CreateDeviceNote201Response createDeviceNote(String deviceId, CreateDeviceNoteRequest createDeviceNoteRequest) throws ApiException { return createDeviceNoteWithHttpInfo(deviceId, createDeviceNoteRequest).getData(); } /** * Create Device Note * This request creates a note for the specified device ID. * @param deviceId (required) * @param createDeviceNoteRequest (optional) * @return ApiResponse<CreateDeviceNote201Response> * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
201 Create Device Note * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ public ApiResponse createDeviceNoteWithHttpInfo(String deviceId, CreateDeviceNoteRequest createDeviceNoteRequest) throws ApiException { // Check required parameters if (deviceId == null) { throw new ApiException(400, "Missing the required parameter 'deviceId' when calling createDeviceNote"); } // Path parameters String localVarPath = "/api/v1/devices/{device_id}/notes" .replaceAll("\\{device_id}", apiClient.escapeString(deviceId.toString())); String localVarAccept = apiClient.selectHeaderAccept("application/json"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); String[] localVarAuthNames = new String[] {"bearerAuth"}; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotesApi.createDeviceNote", localVarPath, "POST", new ArrayList<>(), createDeviceNoteRequest, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } /** * Delete Device Note * This request deletes a specified note (Note ID) for the specified Device ID. * @param deviceId (required) * @param noteId (required) * @return DeleteDeviceNote200Response * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Delete Device Note * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ public DeleteDeviceNote200Response deleteDeviceNote(String deviceId, String noteId) throws ApiException { return deleteDeviceNoteWithHttpInfo(deviceId, noteId).getData(); } /** * Delete Device Note * This request deletes a specified note (Note ID) for the specified Device ID. * @param deviceId (required) * @param noteId (required) * @return ApiResponse<DeleteDeviceNote200Response> * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Delete Device Note * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ public ApiResponse deleteDeviceNoteWithHttpInfo(String deviceId, String noteId) throws ApiException { // Check required parameters if (deviceId == null) { throw new ApiException(400, "Missing the required parameter 'deviceId' when calling deleteDeviceNote"); } if (noteId == null) { throw new ApiException(400, "Missing the required parameter 'noteId' when calling deleteDeviceNote"); } // Path parameters String localVarPath = "/api/v1/devices/{device_id}/notes/{note_id}" .replaceAll("\\{device_id}", apiClient.escapeString(deviceId.toString())) .replaceAll("\\{note_id}", apiClient.escapeString(noteId.toString())); String localVarAccept = apiClient.selectHeaderAccept("application/json"); String localVarContentType = apiClient.selectHeaderContentType(); String[] localVarAuthNames = new String[] {"bearerAuth"}; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotesApi.deleteDeviceNote", localVarPath, "DELETE", new ArrayList<>(), null, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } /** * Get Device Notes * This request gets all notes for the specified Device ID. * @param deviceId (required) * @return List<GetDeviceNotes200ResponseInner> * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Get All Device Notes * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Link -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-Total-Count -
* X-Total-Pages -
* X-XSS-Protection -
*/ public List getDeviceNotes(String deviceId) throws ApiException { return getDeviceNotesWithHttpInfo(deviceId).getData(); } /** * Get Device Notes * This request gets all notes for the specified Device ID. * @param deviceId (required) * @return ApiResponse<List<GetDeviceNotes200ResponseInner>> * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Get All Device Notes * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Link -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-Total-Count -
* X-Total-Pages -
* X-XSS-Protection -
*/ public ApiResponse> getDeviceNotesWithHttpInfo(String deviceId) throws ApiException { // Check required parameters if (deviceId == null) { throw new ApiException(400, "Missing the required parameter 'deviceId' when calling getDeviceNotes"); } // Path parameters String localVarPath = "/api/v1/devices/{device_id}/notes" .replaceAll("\\{device_id}", apiClient.escapeString(deviceId.toString())); String localVarAccept = apiClient.selectHeaderAccept("application/json"); String localVarContentType = apiClient.selectHeaderContentType(); String[] localVarAuthNames = new String[] {"bearerAuth"}; GenericType> localVarReturnType = new GenericType>() {}; return apiClient.invokeAPI("NotesApi.getDeviceNotes", localVarPath, "GET", new ArrayList<>(), null, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } /** * Retrieve Device Note * This request retrieves a specified note (Note ID) for the specified Device ID. * @param deviceId (required) * @param noteId (required) * @return RetrieveDeviceNote200Response * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Retrieve Device Note * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ public RetrieveDeviceNote200Response retrieveDeviceNote(String deviceId, String noteId) throws ApiException { return retrieveDeviceNoteWithHttpInfo(deviceId, noteId).getData(); } /** * Retrieve Device Note * This request retrieves a specified note (Note ID) for the specified Device ID. * @param deviceId (required) * @param noteId (required) * @return ApiResponse<RetrieveDeviceNote200Response> * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Retrieve Device Note * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ public ApiResponse retrieveDeviceNoteWithHttpInfo(String deviceId, String noteId) throws ApiException { // Check required parameters if (deviceId == null) { throw new ApiException(400, "Missing the required parameter 'deviceId' when calling retrieveDeviceNote"); } if (noteId == null) { throw new ApiException(400, "Missing the required parameter 'noteId' when calling retrieveDeviceNote"); } // Path parameters String localVarPath = "/api/v1/devices/{device_id}/notes/{note_id}" .replaceAll("\\{device_id}", apiClient.escapeString(deviceId.toString())) .replaceAll("\\{note_id}", apiClient.escapeString(noteId.toString())); String localVarAccept = apiClient.selectHeaderAccept("application/json"); String localVarContentType = apiClient.selectHeaderContentType(); String[] localVarAuthNames = new String[] {"bearerAuth"}; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotesApi.retrieveDeviceNote", localVarPath, "GET", new ArrayList<>(), null, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } /** * Update Device Note * This request patches a specified note (Note ID) for the specified Device ID. * @param deviceId (required) * @param noteId (required) * @param updateDeviceNoteRequest (optional) * @return UpdateDeviceNote200Response * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Update Device Note * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ public UpdateDeviceNote200Response updateDeviceNote(String deviceId, String noteId, UpdateDeviceNoteRequest updateDeviceNoteRequest) throws ApiException { return updateDeviceNoteWithHttpInfo(deviceId, noteId, updateDeviceNoteRequest).getData(); } /** * Update Device Note * This request patches a specified note (Note ID) for the specified Device ID. * @param deviceId (required) * @param noteId (required) * @param updateDeviceNoteRequest (optional) * @return ApiResponse<UpdateDeviceNote200Response> * @throws ApiException if fails to make API call * @http.response.details
Response Details
Status Code Description Response Headers
200 Update Device Note * Allow -
* Connection -
* Content-Length -
* Content-Security-Policy -
* Date -
* Feature-Policy -
* Referrer-Policy -
* Server -
* Strict-Transport-Security -
* Vary -
* X-Content-Type-Options -
* X-Frame-Options -
* X-XSS-Protection -
*/ public ApiResponse updateDeviceNoteWithHttpInfo(String deviceId, String noteId, UpdateDeviceNoteRequest updateDeviceNoteRequest) throws ApiException { // Check required parameters if (deviceId == null) { throw new ApiException(400, "Missing the required parameter 'deviceId' when calling updateDeviceNote"); } if (noteId == null) { throw new ApiException(400, "Missing the required parameter 'noteId' when calling updateDeviceNote"); } // Path parameters String localVarPath = "/api/v1/devices/{device_id}/notes/{note_id}" .replaceAll("\\{device_id}", apiClient.escapeString(deviceId.toString())) .replaceAll("\\{note_id}", apiClient.escapeString(noteId.toString())); String localVarAccept = apiClient.selectHeaderAccept("application/json"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); String[] localVarAuthNames = new String[] {"bearerAuth"}; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotesApi.updateDeviceNote", localVarPath, "PATCH", new ArrayList<>(), updateDeviceNoteRequest, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy