Please wait. This can take some minutes ...
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.
br.com.softplan.security.zap.zaproxy.clientapi.gen.Autoupdate Maven / Gradle / Ivy
/* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright the ZAP development team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package br.com.softplan.security.zap.zaproxy.clientapi.gen;
import java.util.HashMap;
import java.util.Map;
import br.com.softplan.security.zap.zaproxy.clientapi.core.ApiResponse;
import br.com.softplan.security.zap.zaproxy.clientapi.core.ClientApi;
import br.com.softplan.security.zap.zaproxy.clientapi.core.ClientApiException;
/**
* This file was automatically generated.
*/
public class Autoupdate {
private ClientApi api = null;
public Autoupdate(ClientApi api) {
this.api = api;
}
/**
* Returns the latest version number
*/
public ApiResponse latestVersionNumber() throws ClientApiException {
Map map = null;
return api.callApi("autoupdate", "view", "latestVersionNumber", map);
}
/**
* Returns 'true' if ZAP is on the latest version
*/
public ApiResponse isLatestVersion() throws ClientApiException {
Map map = null;
return api.callApi("autoupdate", "view", "isLatestVersion", map);
}
public ApiResponse optionAddonDirectories() throws ClientApiException {
Map map = null;
return api.callApi("autoupdate", "view", "optionAddonDirectories", map);
}
public ApiResponse optionDayLastChecked() throws ClientApiException {
Map map = null;
return api.callApi("autoupdate", "view", "optionDayLastChecked", map);
}
public ApiResponse optionDayLastInstallWarned() throws ClientApiException {
Map map = null;
return api.callApi("autoupdate", "view", "optionDayLastInstallWarned", map);
}
public ApiResponse optionDayLastUpdateWarned() throws ClientApiException {
Map map = null;
return api.callApi("autoupdate", "view", "optionDayLastUpdateWarned", map);
}
public ApiResponse optionDownloadDirectory() throws ClientApiException {
Map map = null;
return api.callApi("autoupdate", "view", "optionDownloadDirectory", map);
}
public ApiResponse optionCheckAddonUpdates() throws ClientApiException {
Map map = null;
return api.callApi("autoupdate", "view", "optionCheckAddonUpdates", map);
}
public ApiResponse optionCheckOnStart() throws ClientApiException {
Map map = null;
return api.callApi("autoupdate", "view", "optionCheckOnStart", map);
}
public ApiResponse optionDownloadNewRelease() throws ClientApiException {
Map map = null;
return api.callApi("autoupdate", "view", "optionDownloadNewRelease", map);
}
public ApiResponse optionInstallAddonUpdates() throws ClientApiException {
Map map = null;
return api.callApi("autoupdate", "view", "optionInstallAddonUpdates", map);
}
public ApiResponse optionInstallScannerRules() throws ClientApiException {
Map map = null;
return api.callApi("autoupdate", "view", "optionInstallScannerRules", map);
}
public ApiResponse optionReportAlphaAddons() throws ClientApiException {
Map map = null;
return api.callApi("autoupdate", "view", "optionReportAlphaAddons", map);
}
public ApiResponse optionReportBetaAddons() throws ClientApiException {
Map map = null;
return api.callApi("autoupdate", "view", "optionReportBetaAddons", map);
}
public ApiResponse optionReportReleaseAddons() throws ClientApiException {
Map map = null;
return api.callApi("autoupdate", "view", "optionReportReleaseAddons", map);
}
/**
* Downloads the latest release, if any
*/
public ApiResponse downloadLatestRelease(String apikey) throws ClientApiException {
Map map = null;
map = new HashMap();
if (apikey != null) {
map.put("apikey", apikey);
}
return api.callApi("autoupdate", "action", "downloadLatestRelease", map);
}
public ApiResponse setOptionCheckAddonUpdates(String apikey, boolean bool) throws ClientApiException {
Map map = null;
map = new HashMap();
if (apikey != null) {
map.put("apikey", apikey);
}
map.put("Boolean", Boolean.toString(bool));
return api.callApi("autoupdate", "action", "setOptionCheckAddonUpdates", map);
}
public ApiResponse setOptionCheckOnStart(String apikey, boolean bool) throws ClientApiException {
Map map = null;
map = new HashMap();
if (apikey != null) {
map.put("apikey", apikey);
}
map.put("Boolean", Boolean.toString(bool));
return api.callApi("autoupdate", "action", "setOptionCheckOnStart", map);
}
public ApiResponse setOptionDownloadNewRelease(String apikey, boolean bool) throws ClientApiException {
Map map = null;
map = new HashMap();
if (apikey != null) {
map.put("apikey", apikey);
}
map.put("Boolean", Boolean.toString(bool));
return api.callApi("autoupdate", "action", "setOptionDownloadNewRelease", map);
}
public ApiResponse setOptionInstallAddonUpdates(String apikey, boolean bool) throws ClientApiException {
Map map = null;
map = new HashMap();
if (apikey != null) {
map.put("apikey", apikey);
}
map.put("Boolean", Boolean.toString(bool));
return api.callApi("autoupdate", "action", "setOptionInstallAddonUpdates", map);
}
public ApiResponse setOptionInstallScannerRules(String apikey, boolean bool) throws ClientApiException {
Map map = null;
map = new HashMap();
if (apikey != null) {
map.put("apikey", apikey);
}
map.put("Boolean", Boolean.toString(bool));
return api.callApi("autoupdate", "action", "setOptionInstallScannerRules", map);
}
public ApiResponse setOptionReportAlphaAddons(String apikey, boolean bool) throws ClientApiException {
Map map = null;
map = new HashMap();
if (apikey != null) {
map.put("apikey", apikey);
}
map.put("Boolean", Boolean.toString(bool));
return api.callApi("autoupdate", "action", "setOptionReportAlphaAddons", map);
}
public ApiResponse setOptionReportBetaAddons(String apikey, boolean bool) throws ClientApiException {
Map map = null;
map = new HashMap();
if (apikey != null) {
map.put("apikey", apikey);
}
map.put("Boolean", Boolean.toString(bool));
return api.callApi("autoupdate", "action", "setOptionReportBetaAddons", map);
}
public ApiResponse setOptionReportReleaseAddons(String apikey, boolean bool) throws ClientApiException {
Map map = null;
map = new HashMap();
if (apikey != null) {
map.put("apikey", apikey);
}
map.put("Boolean", Boolean.toString(bool));
return api.callApi("autoupdate", "action", "setOptionReportReleaseAddons", map);
}
}