Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*/
public CreateCustomScript201Response createCustomScript() throws ApiException {
return createCustomScriptWithHttpInfo().getData();
}
/**
* Create Custom Script
* This request allows you to create a custom script in the Kandji library.
* @return ApiResponse<CreateCustomScript201Response>
* @throws ApiException if fails to make API call
* @http.response.details
*/
public ApiResponse createCustomScriptWithHttpInfo() throws ApiException {
String localVarAccept = apiClient.selectHeaderAccept("application/json");
String localVarContentType = apiClient.selectHeaderContentType("application/json");
String[] localVarAuthNames = new String[] {"bearerAuth"};
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI("CustomScriptsApi.createCustomScript", "/api/v1/library/custom-scripts", "POST", new ArrayList<>(), null,
new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
localVarAuthNames, localVarReturnType, false);
}
/**
* Delete Custom Script
* NOTICE: This is permanent so be careful. This endpoint sends a request to delete a specific custom scripts from the Kandji library. ### Request Parameters `library_item_id` (path parameter): The unique identifier of the library item.
* @param libraryItemId (required)
* @throws ApiException if fails to make API call
* @http.response.details
*/
public void deleteCustomScript(String libraryItemId) throws ApiException {
deleteCustomScriptWithHttpInfo(libraryItemId);
}
/**
* Delete Custom Script
* NOTICE: This is permanent so be careful. This endpoint sends a request to delete a specific custom scripts from the Kandji library. ### Request Parameters `library_item_id` (path parameter): The unique identifier of the library item.
* @param libraryItemId (required)
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
* @http.response.details
*/
public ListCustomScripts200ResponseResultsInner getCustomScript(String libraryItemId) throws ApiException {
return getCustomScriptWithHttpInfo(libraryItemId).getData();
}
/**
* Get Custom Script
* This endpoint retrieves details about a specific custom script from the Kandji library. ### Request Parameters `library_item_id` (path parameter): The unique identifier of the library item.
* @param libraryItemId (required)
* @return ApiResponse<ListCustomScripts200ResponseResultsInner>
* @throws ApiException if fails to make API call
* @http.response.details
*/
public ApiResponse getCustomScriptWithHttpInfo(String libraryItemId) throws ApiException {
// Check required parameters
if (libraryItemId == null) {
throw new ApiException(400, "Missing the required parameter 'libraryItemId' when calling getCustomScript");
}
// Path parameters
String localVarPath = "/api/v1/library/custom-scripts/{library_item_id}"
.replaceAll("\\{library_item_id}", apiClient.escapeString(libraryItemId.toString()));
String localVarAccept = apiClient.selectHeaderAccept("application/json");
String localVarContentType = apiClient.selectHeaderContentType();
String[] localVarAuthNames = new String[] {"bearerAuth"};
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI("CustomScriptsApi.getCustomScript", localVarPath, "GET", new ArrayList<>(), null,
new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
localVarAuthNames, localVarReturnType, false);
}
/**
* List Custom Scripts
* This endpoint makes a request to retrieve a list of custom scripts from the Kandji library.
* @param page Optional page number (when results exceed pagination threshold) (optional)
* @return ListCustomScripts200Response
* @throws ApiException if fails to make API call
* @http.response.details
*/
public ListCustomScripts200Response listCustomScripts(String page) throws ApiException {
return listCustomScriptsWithHttpInfo(page).getData();
}
/**
* List Custom Scripts
* This endpoint makes a request to retrieve a list of custom scripts from the Kandji library.
* @param page Optional page number (when results exceed pagination threshold) (optional)
* @return ApiResponse<ListCustomScripts200Response>
* @throws ApiException if fails to make API call
* @http.response.details
*/
public UpdateCustomScript200Response updateCustomScript(String libraryItemId) throws ApiException {
return updateCustomScriptWithHttpInfo(libraryItemId).getData();
}
/**
* Update Custom Script
* This request allows you to update a custom script in the Kandji library.
* @param libraryItemId (required)
* @return ApiResponse<UpdateCustomScript200Response>
* @throws ApiException if fails to make API call
* @http.response.details