Class GenericApi

java.lang.Object
com.w3asel.inventree.api.GenericApi

public class GenericApi extends Object
  • Constructor Details

    • GenericApi

      public GenericApi()
    • GenericApi

      public GenericApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • genericStatusCustomCreateCall

      public okhttp3.Call genericStatusCustomCreateCall(@Nonnull CustomState customState, ApiCallback _callback) throws ApiException
      Build call for genericStatusCustomCreate
      Parameters:
      customState - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      201 -
    • genericStatusCustomCreate

      public CustomState genericStatusCustomCreate(@Nonnull CustomState customState) throws ApiException
      List view for all custom states.
      Parameters:
      customState - (required)
      Returns:
      CustomState
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      201 -
    • genericStatusCustomCreateWithHttpInfo

      public ApiResponse<CustomState> genericStatusCustomCreateWithHttpInfo(@Nonnull CustomState customState) throws ApiException
      List view for all custom states.
      Parameters:
      customState - (required)
      Returns:
      ApiResponse<CustomState>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      201 -
    • genericStatusCustomCreateAsync

      public okhttp3.Call genericStatusCustomCreateAsync(@Nonnull CustomState customState, ApiCallback<CustomState> _callback) throws ApiException
      (asynchronously) List view for all custom states.
      Parameters:
      customState - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      201 -
    • genericStatusCustomDestroyCall

      public okhttp3.Call genericStatusCustomDestroyCall(@Nonnull Integer id, ApiCallback _callback) throws ApiException
      Build call for genericStatusCustomDestroy
      Parameters:
      id - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      204 No response body -
    • genericStatusCustomDestroy

      public void genericStatusCustomDestroy(@Nonnull Integer id) throws ApiException
      Detail view for a particular custom states.
      Parameters:
      id - (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      204 No response body -
    • genericStatusCustomDestroyWithHttpInfo

      public ApiResponse<Void> genericStatusCustomDestroyWithHttpInfo(@Nonnull Integer id) throws ApiException
      Detail view for a particular custom states.
      Parameters:
      id - (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      204 No response body -
    • genericStatusCustomDestroyAsync

      public okhttp3.Call genericStatusCustomDestroyAsync(@Nonnull Integer id, ApiCallback<Void> _callback) throws ApiException
      (asynchronously) Detail view for a particular custom states.
      Parameters:
      id - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      204 No response body -
    • genericStatusCustomListCall

      public okhttp3.Call genericStatusCustomListCall(@Nonnull Integer limit, @Nullable Integer model, @Nullable Integer offset, @Nullable String ordering, @Nullable String referenceStatus, @Nullable String search, ApiCallback _callback) throws ApiException
      Build call for genericStatusCustomList
      Parameters:
      limit - Number of results to return per page. (required)
      model - (optional)
      offset - The initial index from which to return the results. (optional)
      ordering - Which field to use when ordering the results. Possible fields: key. (optional)
      referenceStatus - (optional)
      search - A search term. Searched fields: key, label, name, reference_status. (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • genericStatusCustomList

      public PaginatedCustomStateList genericStatusCustomList(@Nonnull Integer limit, @Nullable Integer model, @Nullable Integer offset, @Nullable String ordering, @Nullable String referenceStatus, @Nullable String search) throws ApiException
      Override the GET method to determine export options.
      Parameters:
      limit - Number of results to return per page. (required)
      model - (optional)
      offset - The initial index from which to return the results. (optional)
      ordering - Which field to use when ordering the results. Possible fields: key. (optional)
      referenceStatus - (optional)
      search - A search term. Searched fields: key, label, name, reference_status. (optional)
      Returns:
      PaginatedCustomStateList
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • genericStatusCustomListWithHttpInfo

      public ApiResponse<PaginatedCustomStateList> genericStatusCustomListWithHttpInfo(@Nonnull Integer limit, @Nullable Integer model, @Nullable Integer offset, @Nullable String ordering, @Nullable String referenceStatus, @Nullable String search) throws ApiException
      Override the GET method to determine export options.
      Parameters:
      limit - Number of results to return per page. (required)
      model - (optional)
      offset - The initial index from which to return the results. (optional)
      ordering - Which field to use when ordering the results. Possible fields: key. (optional)
      referenceStatus - (optional)
      search - A search term. Searched fields: key, label, name, reference_status. (optional)
      Returns:
      ApiResponse<PaginatedCustomStateList>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • genericStatusCustomListAsync

      public okhttp3.Call genericStatusCustomListAsync(@Nonnull Integer limit, @Nullable Integer model, @Nullable Integer offset, @Nullable String ordering, @Nullable String referenceStatus, @Nullable String search, ApiCallback<PaginatedCustomStateList> _callback) throws ApiException
      (asynchronously) Override the GET method to determine export options.
      Parameters:
      limit - Number of results to return per page. (required)
      model - (optional)
      offset - The initial index from which to return the results. (optional)
      ordering - Which field to use when ordering the results. Possible fields: key. (optional)
      referenceStatus - (optional)
      search - A search term. Searched fields: key, label, name, reference_status. (optional)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • genericStatusCustomPartialUpdateCall

      public okhttp3.Call genericStatusCustomPartialUpdateCall(@Nonnull Integer id, @Nullable PatchedCustomState patchedCustomState, ApiCallback _callback) throws ApiException
      Build call for genericStatusCustomPartialUpdate
      Parameters:
      id - (required)
      patchedCustomState - (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • genericStatusCustomPartialUpdate

      public CustomState genericStatusCustomPartialUpdate(@Nonnull Integer id, @Nullable PatchedCustomState patchedCustomState) throws ApiException
      Detail view for a particular custom states.
      Parameters:
      id - (required)
      patchedCustomState - (optional)
      Returns:
      CustomState
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • genericStatusCustomPartialUpdateWithHttpInfo

      public ApiResponse<CustomState> genericStatusCustomPartialUpdateWithHttpInfo(@Nonnull Integer id, @Nullable PatchedCustomState patchedCustomState) throws ApiException
      Detail view for a particular custom states.
      Parameters:
      id - (required)
      patchedCustomState - (optional)
      Returns:
      ApiResponse<CustomState>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • genericStatusCustomPartialUpdateAsync

      public okhttp3.Call genericStatusCustomPartialUpdateAsync(@Nonnull Integer id, @Nullable PatchedCustomState patchedCustomState, ApiCallback<CustomState> _callback) throws ApiException
      (asynchronously) Detail view for a particular custom states.
      Parameters:
      id - (required)
      patchedCustomState - (optional)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • genericStatusCustomRetrieveCall

      public okhttp3.Call genericStatusCustomRetrieveCall(@Nonnull Integer id, ApiCallback _callback) throws ApiException
      Build call for genericStatusCustomRetrieve
      Parameters:
      id - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • genericStatusCustomRetrieve

      public CustomState genericStatusCustomRetrieve(@Nonnull Integer id) throws ApiException
      Detail view for a particular custom states.
      Parameters:
      id - (required)
      Returns:
      CustomState
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • genericStatusCustomRetrieveWithHttpInfo

      public ApiResponse<CustomState> genericStatusCustomRetrieveWithHttpInfo(@Nonnull Integer id) throws ApiException
      Detail view for a particular custom states.
      Parameters:
      id - (required)
      Returns:
      ApiResponse<CustomState>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • genericStatusCustomRetrieveAsync

      public okhttp3.Call genericStatusCustomRetrieveAsync(@Nonnull Integer id, ApiCallback<CustomState> _callback) throws ApiException
      (asynchronously) Detail view for a particular custom states.
      Parameters:
      id - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • genericStatusCustomUpdateCall

      public okhttp3.Call genericStatusCustomUpdateCall(@Nonnull Integer id, @Nonnull CustomState customState, ApiCallback _callback) throws ApiException
      Build call for genericStatusCustomUpdate
      Parameters:
      id - (required)
      customState - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • genericStatusCustomUpdate

      public CustomState genericStatusCustomUpdate(@Nonnull Integer id, @Nonnull CustomState customState) throws ApiException
      Detail view for a particular custom states.
      Parameters:
      id - (required)
      customState - (required)
      Returns:
      CustomState
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • genericStatusCustomUpdateWithHttpInfo

      public ApiResponse<CustomState> genericStatusCustomUpdateWithHttpInfo(@Nonnull Integer id, @Nonnull CustomState customState) throws ApiException
      Detail view for a particular custom states.
      Parameters:
      id - (required)
      customState - (required)
      Returns:
      ApiResponse<CustomState>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • genericStatusCustomUpdateAsync

      public okhttp3.Call genericStatusCustomUpdateAsync(@Nonnull Integer id, @Nonnull CustomState customState, ApiCallback<CustomState> _callback) throws ApiException
      (asynchronously) Detail view for a particular custom states.
      Parameters:
      id - (required)
      customState - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
    • genericStatusRetrieveCall

      public okhttp3.Call genericStatusRetrieveCall(@Nonnull String statusmodel, ApiCallback _callback) throws ApiException
      Build call for genericStatusRetrieve
      Parameters:
      statusmodel - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
      400 Invalid request -
    • genericStatusRetrieve

      public GenericStateClass genericStatusRetrieve(@Nonnull String statusmodel) throws ApiException
      Retrieve information about a specific status code
      Parameters:
      statusmodel - (required)
      Returns:
      GenericStateClass
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
      400 Invalid request -
    • genericStatusRetrieveWithHttpInfo

      public ApiResponse<GenericStateClass> genericStatusRetrieveWithHttpInfo(@Nonnull String statusmodel) throws ApiException
      Retrieve information about a specific status code
      Parameters:
      statusmodel - (required)
      Returns:
      ApiResponse<GenericStateClass>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
      400 Invalid request -
    • genericStatusRetrieveAsync

      public okhttp3.Call genericStatusRetrieveAsync(@Nonnull String statusmodel, ApiCallback<GenericStateClass> _callback) throws ApiException
      (asynchronously) Retrieve information about a specific status code
      Parameters:
      statusmodel - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 -
      400 Invalid request -
    • genericStatusRetrieveAllCall

      public okhttp3.Call genericStatusRetrieveAllCall(ApiCallback _callback) throws ApiException
      Build call for genericStatusRetrieveAll
      Parameters:
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 No response body -
    • genericStatusRetrieveAll

      public void genericStatusRetrieveAll() throws ApiException
      Perform a GET request to learn information about status codes.
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 No response body -
    • genericStatusRetrieveAllWithHttpInfo

      public ApiResponse<Void> genericStatusRetrieveAllWithHttpInfo() throws ApiException
      Perform a GET request to learn information about status codes.
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 No response body -
    • genericStatusRetrieveAllAsync

      public okhttp3.Call genericStatusRetrieveAllAsync(ApiCallback<Void> _callback) throws ApiException
      (asynchronously) Perform a GET request to learn information about status codes.
      Parameters:
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 No response body -