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 void deleteCustomApp(String libraryItemId) throws ApiException {
deleteCustomAppWithHttpInfo(libraryItemId);
}
/**
* Delete Custom App
* NOTICE: This is permanent so be careful. This endpoint sends a request to delete a specific custom app 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 ListCustomApps200ResponseResultsInner getCustomApp(String libraryItemId) throws ApiException {
return getCustomAppWithHttpInfo(libraryItemId).getData();
}
/**
* Get Custom App
* This endpoint retrieves details about a specific custom app from the Kandji library. ### Request Parameters `library_item_id` (path parameter): The unique identifier of the library item.
* @param libraryItemId (required)
* @return ApiResponse<ListCustomApps200ResponseResultsInner>
* @throws ApiException if fails to make API call
* @http.response.details
*/
public ApiResponse getCustomAppWithHttpInfo(String libraryItemId) throws ApiException {
// Check required parameters
if (libraryItemId == null) {
throw new ApiException(400, "Missing the required parameter 'libraryItemId' when calling getCustomApp");
}
// Path parameters
String localVarPath = "/api/v1/library/custom-apps/{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("CustomAppsApi.getCustomApp", localVarPath, "GET", new ArrayList<>(), null,
new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
localVarAuthNames, localVarReturnType, false);
}
/**
* List Custom Apps
* This endpoint makes a request to retrieve a list of custom apps from the Kandji library.
* @param page Optional page number. Used when results exceed pagination threshold. A hard upper `limit` is set at 300 device records returned per request. (optional)
* @return ListCustomApps200Response
* @throws ApiException if fails to make API call
* @http.response.details
*/
public ListCustomApps200Response listCustomApps(String page) throws ApiException {
return listCustomAppsWithHttpInfo(page).getData();
}
/**
* List Custom Apps
* This endpoint makes a request to retrieve a list of custom apps from the Kandji library.
* @param page Optional page number. Used when results exceed pagination threshold. A hard upper `limit` is set at 300 device records returned per request. (optional)
* @return ApiResponse<ListCustomApps200Response>
* @throws ApiException if fails to make API call
* @http.response.details
*/
public ApiResponse listCustomAppsWithHttpInfo(String page) throws ApiException {
// Query parameters
List localVarQueryParams = new ArrayList<>(
apiClient.parameterToPairs("", "page", page)
);
String localVarAccept = apiClient.selectHeaderAccept("application/json");
String localVarContentType = apiClient.selectHeaderContentType();
String[] localVarAuthNames = new String[] {"bearerAuth"};
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI("CustomAppsApi.listCustomApps", "/api/v1/library/custom-apps", "GET", localVarQueryParams, null,
new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
localVarAuthNames, localVarReturnType, false);
}
/**
* Update Custom App
* This request allows you to update a custom app in the Kandji library. Must have already generated a `file_key` via `Create custom app` endpoint and uploaded the file to S3 using a request similar to the `Upload to S3` example. ### Request Parameters `library_item_id` (path parameter): The unique identifier of the library item.
* @param libraryItemId (required)
* @param name (optional)
* @return UpdateCustomApp200Response
* @throws ApiException if fails to make API call
* @http.response.details
*/
public UpdateCustomApp200Response updateCustomApp(String libraryItemId, String name) throws ApiException {
return updateCustomAppWithHttpInfo(libraryItemId, name).getData();
}
/**
* Update Custom App
* This request allows you to update a custom app in the Kandji library. Must have already generated a `file_key` via `Create custom app` endpoint and uploaded the file to S3 using a request similar to the `Upload to S3` example. ### Request Parameters `library_item_id` (path parameter): The unique identifier of the library item.
* @param libraryItemId (required)
* @param name (optional)
* @return ApiResponse<UpdateCustomApp200Response>
* @throws ApiException if fails to make API call
* @http.response.details
*/
public ApiResponse updateCustomAppWithHttpInfo(String libraryItemId, String name) throws ApiException {
// Check required parameters
if (libraryItemId == null) {
throw new ApiException(400, "Missing the required parameter 'libraryItemId' when calling updateCustomApp");
}
// Path parameters
String localVarPath = "/api/v1/library/custom-apps/{library_item_id}"
.replaceAll("\\{library_item_id}", apiClient.escapeString(libraryItemId.toString()));
// Form parameters
Map localVarFormParams = new LinkedHashMap<>();
if (name != null) {
localVarFormParams.put("name", name);
}
String localVarAccept = apiClient.selectHeaderAccept("application/json");
String localVarContentType = apiClient.selectHeaderContentType("application/x-www-form-urlencoded");
String[] localVarAuthNames = new String[] {"bearerAuth"};
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI("CustomAppsApi.updateCustomApp", localVarPath, "PATCH", new ArrayList<>(), null,
new LinkedHashMap<>(), new LinkedHashMap<>(), localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, localVarReturnType, false);
}
/**
* Upload Custom App
* This request retrieves the S3 upload details need for uploading the app to Amazon S3. Creates a pre-signed `post_url` to upload a new Custom App to S3. The provided `name` will be used to calculate a unique `file_key` in S3. A separate request will have to be made to the `Upload to S3` endpoint to upload the file to S3 directly using the `post_url` and `post_data` from the `Upload Custom App` response.
* @throws ApiException if fails to make API call
* @http.response.details
*/
public void uploadCustomApp() throws ApiException {
uploadCustomAppWithHttpInfo();
}
/**
* Upload Custom App
* This request retrieves the S3 upload details need for uploading the app to Amazon S3. Creates a pre-signed `post_url` to upload a new Custom App to S3. The provided `name` will be used to calculate a unique `file_key` in S3. A separate request will have to be made to the `Upload to S3` endpoint to upload the file to S3 directly using the `post_url` and `post_data` from the `Upload Custom App` response.
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
* @http.response.details
*/
public ApiResponse uploadCustomAppWithHttpInfo() throws ApiException {
String localVarAccept = apiClient.selectHeaderAccept("text/plain");
String localVarContentType = apiClient.selectHeaderContentType("application/json");
String[] localVarAuthNames = new String[] {"bearerAuth"};
return apiClient.invokeAPI("CustomAppsApi.uploadCustomApp", "/api/v1/library/custom-apps/upload", "POST", new ArrayList<>(), null,
new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
localVarAuthNames, null, false);
}
/**
* Upload to S3
* Example showing separate post request to upload the file to Amazon S3. ### Request Parameters `post_url` (path parameter): The `post_url` from the `Upload custom app` response. ### Request Body For the request body, use the contents of the `post_data` object from the `Upload custom app` response and supply the path to the custom app file in the `file` request parameter.
* @param _file (Required) Your file to upload (optional)
* @param key Value provided by \\\"Create S3 Upload\\\" (optional)
* @param policy Value provided by \\\"Create S3 Upload\\\" (optional)
* @param xAmzAlgorithm Value provided by \\\"Create S3 Upload\\\" (optional)
* @param xAmzCredential Value provided by \\\"Create S3 Upload\\\" (optional)
* @param xAmzDate Value provided by \\\"Create S3 Upload\\\" (optional)
* @param xAmzSecurityToken Value provided by \\\"Create S3 Upload\\\" (optional)
* @param xAmzSignature Value provided by \\\"Create S3 Upload\\\" (optional)
* @throws ApiException if fails to make API call
* @http.response.details
*/
public void uploadToS3(File _file, String key, String policy, String xAmzAlgorithm, String xAmzCredential, String xAmzDate, String xAmzSecurityToken, String xAmzSignature) throws ApiException {
uploadToS3WithHttpInfo(_file, key, policy, xAmzAlgorithm, xAmzCredential, xAmzDate, xAmzSecurityToken, xAmzSignature);
}
/**
* Upload to S3
* Example showing separate post request to upload the file to Amazon S3. ### Request Parameters `post_url` (path parameter): The `post_url` from the `Upload custom app` response. ### Request Body For the request body, use the contents of the `post_data` object from the `Upload custom app` response and supply the path to the custom app file in the `file` request parameter.
* @param _file (Required) Your file to upload (optional)
* @param key Value provided by \\\"Create S3 Upload\\\" (optional)
* @param policy Value provided by \\\"Create S3 Upload\\\" (optional)
* @param xAmzAlgorithm Value provided by \\\"Create S3 Upload\\\" (optional)
* @param xAmzCredential Value provided by \\\"Create S3 Upload\\\" (optional)
* @param xAmzDate Value provided by \\\"Create S3 Upload\\\" (optional)
* @param xAmzSecurityToken Value provided by \\\"Create S3 Upload\\\" (optional)
* @param xAmzSignature Value provided by \\\"Create S3 Upload\\\" (optional)
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
* @http.response.details