Class ProjectCodeApi

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

public class ProjectCodeApi extends Object
  • Constructor Details

    • ProjectCodeApi

      public ProjectCodeApi()
    • ProjectCodeApi

      public ProjectCodeApi(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)
    • projectCodeCreateCall

      public okhttp3.Call projectCodeCreateCall(@Nonnull ProjectCode projectCode, ApiCallback _callback) throws ApiException
      Build call for projectCodeCreate
      Parameters:
      projectCode - (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 -
    • projectCodeCreate

      public ProjectCode projectCodeCreate(@Nonnull ProjectCode projectCode) throws ApiException
      List view for all project codes.
      Parameters:
      projectCode - (required)
      Returns:
      ProjectCode
      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 -
    • projectCodeCreateWithHttpInfo

      public ApiResponse<ProjectCode> projectCodeCreateWithHttpInfo(@Nonnull ProjectCode projectCode) throws ApiException
      List view for all project codes.
      Parameters:
      projectCode - (required)
      Returns:
      ApiResponse<ProjectCode>
      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 -
    • projectCodeCreateAsync

      public okhttp3.Call projectCodeCreateAsync(@Nonnull ProjectCode projectCode, ApiCallback<ProjectCode> _callback) throws ApiException
      (asynchronously) List view for all project codes.
      Parameters:
      projectCode - (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 -
    • projectCodeDestroyCall

      public okhttp3.Call projectCodeDestroyCall(@Nonnull Integer id, ApiCallback _callback) throws ApiException
      Build call for projectCodeDestroy
      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 -
    • projectCodeDestroy

      public void projectCodeDestroy(@Nonnull Integer id) throws ApiException
      Detail view for a particular project code.
      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 -
    • projectCodeDestroyWithHttpInfo

      public ApiResponse<Void> projectCodeDestroyWithHttpInfo(@Nonnull Integer id) throws ApiException
      Detail view for a particular project code.
      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 -
    • projectCodeDestroyAsync

      public okhttp3.Call projectCodeDestroyAsync(@Nonnull Integer id, ApiCallback<Void> _callback) throws ApiException
      (asynchronously) Detail view for a particular project code.
      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 -
    • projectCodeListCall

      public okhttp3.Call projectCodeListCall(@Nonnull Integer limit, @Nullable Integer offset, @Nullable String ordering, @Nullable String search, ApiCallback _callback) throws ApiException
      Build call for projectCodeList
      Parameters:
      limit - Number of results to return per page. (required)
      offset - The initial index from which to return the results. (optional)
      ordering - Which field to use when ordering the results. Possible fields: code. (optional)
      search - A search term. Searched fields: code, description. (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 -
    • projectCodeList

      public PaginatedProjectCodeList projectCodeList(@Nonnull Integer limit, @Nullable Integer offset, @Nullable String ordering, @Nullable String search) throws ApiException
      Override the GET method to determine export options.
      Parameters:
      limit - Number of results to return per page. (required)
      offset - The initial index from which to return the results. (optional)
      ordering - Which field to use when ordering the results. Possible fields: code. (optional)
      search - A search term. Searched fields: code, description. (optional)
      Returns:
      PaginatedProjectCodeList
      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 -
    • projectCodeListWithHttpInfo

      public ApiResponse<PaginatedProjectCodeList> projectCodeListWithHttpInfo(@Nonnull Integer limit, @Nullable Integer offset, @Nullable String ordering, @Nullable String search) throws ApiException
      Override the GET method to determine export options.
      Parameters:
      limit - Number of results to return per page. (required)
      offset - The initial index from which to return the results. (optional)
      ordering - Which field to use when ordering the results. Possible fields: code. (optional)
      search - A search term. Searched fields: code, description. (optional)
      Returns:
      ApiResponse<PaginatedProjectCodeList>
      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 -
    • projectCodeListAsync

      public okhttp3.Call projectCodeListAsync(@Nonnull Integer limit, @Nullable Integer offset, @Nullable String ordering, @Nullable String search, ApiCallback<PaginatedProjectCodeList> _callback) throws ApiException
      (asynchronously) Override the GET method to determine export options.
      Parameters:
      limit - Number of results to return per page. (required)
      offset - The initial index from which to return the results. (optional)
      ordering - Which field to use when ordering the results. Possible fields: code. (optional)
      search - A search term. Searched fields: code, description. (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 -
    • projectCodeMetadataPartialUpdateCall

      public okhttp3.Call projectCodeMetadataPartialUpdateCall(@Nonnull Integer id, @Nullable PatchedMetadata patchedMetadata, ApiCallback _callback) throws ApiException
      Build call for projectCodeMetadataPartialUpdate
      Parameters:
      id - (required)
      patchedMetadata - (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 -
    • projectCodeMetadataPartialUpdate

      public Metadata projectCodeMetadataPartialUpdate(@Nonnull Integer id, @Nullable PatchedMetadata patchedMetadata) throws ApiException
      Generic API endpoint for reading and editing metadata for a model.
      Parameters:
      id - (required)
      patchedMetadata - (optional)
      Returns:
      Metadata
      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 -
    • projectCodeMetadataPartialUpdateWithHttpInfo

      public ApiResponse<Metadata> projectCodeMetadataPartialUpdateWithHttpInfo(@Nonnull Integer id, @Nullable PatchedMetadata patchedMetadata) throws ApiException
      Generic API endpoint for reading and editing metadata for a model.
      Parameters:
      id - (required)
      patchedMetadata - (optional)
      Returns:
      ApiResponse<Metadata>
      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 -
    • projectCodeMetadataPartialUpdateAsync

      public okhttp3.Call projectCodeMetadataPartialUpdateAsync(@Nonnull Integer id, @Nullable PatchedMetadata patchedMetadata, ApiCallback<Metadata> _callback) throws ApiException
      (asynchronously) Generic API endpoint for reading and editing metadata for a model.
      Parameters:
      id - (required)
      patchedMetadata - (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 -
    • projectCodeMetadataRetrieveCall

      public okhttp3.Call projectCodeMetadataRetrieveCall(@Nonnull Integer id, ApiCallback _callback) throws ApiException
      Build call for projectCodeMetadataRetrieve
      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 -
    • projectCodeMetadataRetrieve

      public Metadata projectCodeMetadataRetrieve(@Nonnull Integer id) throws ApiException
      Generic API endpoint for reading and editing metadata for a model.
      Parameters:
      id - (required)
      Returns:
      Metadata
      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 -
    • projectCodeMetadataRetrieveWithHttpInfo

      public ApiResponse<Metadata> projectCodeMetadataRetrieveWithHttpInfo(@Nonnull Integer id) throws ApiException
      Generic API endpoint for reading and editing metadata for a model.
      Parameters:
      id - (required)
      Returns:
      ApiResponse<Metadata>
      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 -
    • projectCodeMetadataRetrieveAsync

      public okhttp3.Call projectCodeMetadataRetrieveAsync(@Nonnull Integer id, ApiCallback<Metadata> _callback) throws ApiException
      (asynchronously) Generic API endpoint for reading and editing metadata for a model.
      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 -
    • projectCodeMetadataUpdateCall

      public okhttp3.Call projectCodeMetadataUpdateCall(@Nonnull Integer id, @Nonnull Metadata metadata, ApiCallback _callback) throws ApiException
      Build call for projectCodeMetadataUpdate
      Parameters:
      id - (required)
      metadata - (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 -
    • projectCodeMetadataUpdate

      public Metadata projectCodeMetadataUpdate(@Nonnull Integer id, @Nonnull Metadata metadata) throws ApiException
      Generic API endpoint for reading and editing metadata for a model.
      Parameters:
      id - (required)
      metadata - (required)
      Returns:
      Metadata
      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 -
    • projectCodeMetadataUpdateWithHttpInfo

      public ApiResponse<Metadata> projectCodeMetadataUpdateWithHttpInfo(@Nonnull Integer id, @Nonnull Metadata metadata) throws ApiException
      Generic API endpoint for reading and editing metadata for a model.
      Parameters:
      id - (required)
      metadata - (required)
      Returns:
      ApiResponse<Metadata>
      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 -
    • projectCodeMetadataUpdateAsync

      public okhttp3.Call projectCodeMetadataUpdateAsync(@Nonnull Integer id, @Nonnull Metadata metadata, ApiCallback<Metadata> _callback) throws ApiException
      (asynchronously) Generic API endpoint for reading and editing metadata for a model.
      Parameters:
      id - (required)
      metadata - (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 -
    • projectCodePartialUpdateCall

      public okhttp3.Call projectCodePartialUpdateCall(@Nonnull Integer id, @Nullable PatchedProjectCode patchedProjectCode, ApiCallback _callback) throws ApiException
      Build call for projectCodePartialUpdate
      Parameters:
      id - (required)
      patchedProjectCode - (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 -
    • projectCodePartialUpdate

      public ProjectCode projectCodePartialUpdate(@Nonnull Integer id, @Nullable PatchedProjectCode patchedProjectCode) throws ApiException
      Detail view for a particular project code.
      Parameters:
      id - (required)
      patchedProjectCode - (optional)
      Returns:
      ProjectCode
      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 -
    • projectCodePartialUpdateWithHttpInfo

      public ApiResponse<ProjectCode> projectCodePartialUpdateWithHttpInfo(@Nonnull Integer id, @Nullable PatchedProjectCode patchedProjectCode) throws ApiException
      Detail view for a particular project code.
      Parameters:
      id - (required)
      patchedProjectCode - (optional)
      Returns:
      ApiResponse<ProjectCode>
      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 -
    • projectCodePartialUpdateAsync

      public okhttp3.Call projectCodePartialUpdateAsync(@Nonnull Integer id, @Nullable PatchedProjectCode patchedProjectCode, ApiCallback<ProjectCode> _callback) throws ApiException
      (asynchronously) Detail view for a particular project code.
      Parameters:
      id - (required)
      patchedProjectCode - (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 -
    • projectCodeRetrieveCall

      public okhttp3.Call projectCodeRetrieveCall(@Nonnull Integer id, ApiCallback _callback) throws ApiException
      Build call for projectCodeRetrieve
      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 -
    • projectCodeRetrieve

      public ProjectCode projectCodeRetrieve(@Nonnull Integer id) throws ApiException
      Detail view for a particular project code.
      Parameters:
      id - (required)
      Returns:
      ProjectCode
      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 -
    • projectCodeRetrieveWithHttpInfo

      public ApiResponse<ProjectCode> projectCodeRetrieveWithHttpInfo(@Nonnull Integer id) throws ApiException
      Detail view for a particular project code.
      Parameters:
      id - (required)
      Returns:
      ApiResponse<ProjectCode>
      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 -
    • projectCodeRetrieveAsync

      public okhttp3.Call projectCodeRetrieveAsync(@Nonnull Integer id, ApiCallback<ProjectCode> _callback) throws ApiException
      (asynchronously) Detail view for a particular project code.
      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 -
    • projectCodeUpdateCall

      public okhttp3.Call projectCodeUpdateCall(@Nonnull Integer id, @Nonnull ProjectCode projectCode, ApiCallback _callback) throws ApiException
      Build call for projectCodeUpdate
      Parameters:
      id - (required)
      projectCode - (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 -
    • projectCodeUpdate

      public ProjectCode projectCodeUpdate(@Nonnull Integer id, @Nonnull ProjectCode projectCode) throws ApiException
      Detail view for a particular project code.
      Parameters:
      id - (required)
      projectCode - (required)
      Returns:
      ProjectCode
      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 -
    • projectCodeUpdateWithHttpInfo

      public ApiResponse<ProjectCode> projectCodeUpdateWithHttpInfo(@Nonnull Integer id, @Nonnull ProjectCode projectCode) throws ApiException
      Detail view for a particular project code.
      Parameters:
      id - (required)
      projectCode - (required)
      Returns:
      ApiResponse<ProjectCode>
      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 -
    • projectCodeUpdateAsync

      public okhttp3.Call projectCodeUpdateAsync(@Nonnull Integer id, @Nonnull ProjectCode projectCode, ApiCallback<ProjectCode> _callback) throws ApiException
      (asynchronously) Detail view for a particular project code.
      Parameters:
      id - (required)
      projectCode - (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 -