Package com.w3asel.inventree.api
Class ProjectCodeApi
java.lang.Object
com.w3asel.inventree.api.ProjectCodeApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprojectCodeCreate(ProjectCode projectCode) List view for all project codes.okhttp3.CallprojectCodeCreateAsync(ProjectCode projectCode, ApiCallback<ProjectCode> _callback) (asynchronously) List view for all project codes.okhttp3.CallprojectCodeCreateCall(ProjectCode projectCode, ApiCallback _callback) Build call for projectCodeCreateprojectCodeCreateWithHttpInfo(ProjectCode projectCode) List view for all project codes.voidDetail view for a particular project code.okhttp3.CallprojectCodeDestroyAsync(Integer id, ApiCallback<Void> _callback) (asynchronously) Detail view for a particular project code.okhttp3.CallprojectCodeDestroyCall(Integer id, ApiCallback _callback) Build call for projectCodeDestroyDetail view for a particular project code.projectCodeList(Integer limit, Integer offset, String ordering, String search) Override the GET method to determine export options.okhttp3.CallprojectCodeListAsync(Integer limit, Integer offset, String ordering, String search, ApiCallback<PaginatedProjectCodeList> _callback) (asynchronously) Override the GET method to determine export options.okhttp3.CallprojectCodeListCall(Integer limit, Integer offset, String ordering, String search, ApiCallback _callback) Build call for projectCodeListprojectCodeListWithHttpInfo(Integer limit, Integer offset, String ordering, String search) Override the GET method to determine export options.projectCodeMetadataPartialUpdate(Integer id, PatchedMetadata patchedMetadata) Generic API endpoint for reading and editing metadata for a model.okhttp3.CallprojectCodeMetadataPartialUpdateAsync(Integer id, PatchedMetadata patchedMetadata, ApiCallback<Metadata> _callback) (asynchronously) Generic API endpoint for reading and editing metadata for a model.okhttp3.CallprojectCodeMetadataPartialUpdateCall(Integer id, PatchedMetadata patchedMetadata, ApiCallback _callback) Build call for projectCodeMetadataPartialUpdateprojectCodeMetadataPartialUpdateWithHttpInfo(Integer id, PatchedMetadata patchedMetadata) Generic API endpoint for reading and editing metadata for a model.Generic API endpoint for reading and editing metadata for a model.okhttp3.CallprojectCodeMetadataRetrieveAsync(Integer id, ApiCallback<Metadata> _callback) (asynchronously) Generic API endpoint for reading and editing metadata for a model.okhttp3.CallprojectCodeMetadataRetrieveCall(Integer id, ApiCallback _callback) Build call for projectCodeMetadataRetrieveGeneric API endpoint for reading and editing metadata for a model.projectCodeMetadataUpdate(Integer id, Metadata metadata) Generic API endpoint for reading and editing metadata for a model.okhttp3.CallprojectCodeMetadataUpdateAsync(Integer id, Metadata metadata, ApiCallback<Metadata> _callback) (asynchronously) Generic API endpoint for reading and editing metadata for a model.okhttp3.CallprojectCodeMetadataUpdateCall(Integer id, Metadata metadata, ApiCallback _callback) Build call for projectCodeMetadataUpdateprojectCodeMetadataUpdateWithHttpInfo(Integer id, Metadata metadata) Generic API endpoint for reading and editing metadata for a model.projectCodePartialUpdate(Integer id, PatchedProjectCode patchedProjectCode) Detail view for a particular project code.okhttp3.CallprojectCodePartialUpdateAsync(Integer id, PatchedProjectCode patchedProjectCode, ApiCallback<ProjectCode> _callback) (asynchronously) Detail view for a particular project code.okhttp3.CallprojectCodePartialUpdateCall(Integer id, PatchedProjectCode patchedProjectCode, ApiCallback _callback) Build call for projectCodePartialUpdateprojectCodePartialUpdateWithHttpInfo(Integer id, PatchedProjectCode patchedProjectCode) Detail view for a particular project code.Detail view for a particular project code.okhttp3.CallprojectCodeRetrieveAsync(Integer id, ApiCallback<ProjectCode> _callback) (asynchronously) Detail view for a particular project code.okhttp3.CallprojectCodeRetrieveCall(Integer id, ApiCallback _callback) Build call for projectCodeRetrieveDetail view for a particular project code.projectCodeUpdate(Integer id, ProjectCode projectCode) Detail view for a particular project code.okhttp3.CallprojectCodeUpdateAsync(Integer id, ProjectCode projectCode, ApiCallback<ProjectCode> _callback) (asynchronously) Detail view for a particular project code.okhttp3.CallprojectCodeUpdateCall(Integer id, ProjectCode projectCode, ApiCallback _callback) Build call for projectCodeUpdateprojectCodeUpdateWithHttpInfo(Integer id, ProjectCode projectCode) Detail view for a particular project code.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
ProjectCodeApi
public ProjectCodeApi() -
ProjectCodeApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
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
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
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
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
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
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 -
-