@APICommand(name = "addBaremetalPxeKickStartServer", description = "add a baremetal pxe server", responseObject = BaremetalPxeKickStartResponse.class, requestHasSensitiveInfo = false, responseHasSensitiveInfo = false) public class AddBaremetalKickStartPxeCmd extends AddBaremetalPxeCmd { @Parameter(name = ApiConstants.TFTP_DIR, type = CommandType.STRING, required = true, description = "Tftp root directory of PXE server") private String tftpDir; public String getTftpDir() { return tftpDir; } public void setTftpDir(String tftpDir) { this.tftpDir = tftpDir; } }
private void checkResponseTimeOut(final Exception e) { if (e instanceof ConnectTimeoutException || e instanceof SocketTimeoutException) { throw new ServerApiException(ApiErrorCode.RESOURCE_UNAVAILABLE_ERROR, "Operation timed out, please try again."); } }
@Override public Boolean getDisplay() { if (display != null) { return display; } return super.getDisplay(); }
@Override public Boolean getDisplay() { if (display != null) { return display; } return super.getDisplay(); }
@APICommand(name = "listTemplatePermissions", description = "List template visibility and all accounts that have permissions to view this template.", responseObject = TemplatePermissionsResponse.class, responseView = ResponseView.Full, requestHasSensitiveInfo = false, responseHasSensitiveInfo = false) public class ListTemplatePermissionsCmdByAdmin extends ListTemplatePermissionsCmd { @Override public void execute() { executeWithView(ResponseView.Full); } }
@Override public void execute() throws ServerApiException { // We should never reach here throw new ServerApiException(ApiErrorCode.METHOD_NOT_ALLOWED, "This is an authentication api, cannot be used directly"); }
@Override public Boolean getDisplay() { if (display != null) { return display; } return super.getDisplay(); } /////////////////////////////////////////////////////
@Override public Boolean getDisplay() { if (display != null) { return display; } return super.getDisplay(); }
@APICommand(name = "listIsoPermissions", description = "List iso visibility and all accounts that have permissions to view this iso.", responseObject = TemplatePermissionsResponse.class, responseView = ResponseView.Full, requestHasSensitiveInfo = false, responseHasSensitiveInfo = false) public class ListIsoPermissionsCmdByAdmin extends ListIsoPermissionsCmd { @Override public void execute() { executeWithView(ResponseView.Full); } }
@Override public void execute() throws ServerApiException { // We should never reach here throw new ServerApiException(ApiErrorCode.METHOD_NOT_ALLOWED, "This is an authentication api, cannot be used directly"); }
@Override public Boolean getDisplay() { if (display != null) { return display; } return super.getDisplay(); }
@Override public Boolean getDisplay() { if (display != null) { return display; } return super.getDisplay(); }
@APICommand(name = "copyIso", description = "Copies an ISO from one zone to another.", responseObject = TemplateResponse.class, responseView = ResponseView.Restricted, requestHasSensitiveInfo = false, responseHasSensitiveInfo = false) public class CopyIsoCmd extends CopyTemplateCmd { public static final Logger s_logger = Logger.getLogger(CopyIsoCmd.class.getName()); private static final String s_name = "copyisoresponse"; }
@Override public void execute() throws ServerApiException { // We should never reach here throw new ServerApiException(ApiErrorCode.METHOD_NOT_ALLOWED, "This is an authentication api, cannot be used directly"); }
@Override public Boolean getDisplay() { if (display != null) { return display; } return super.getDisplay(); }
@Override public Boolean getDisplay() { if (display != null) { return display; } return super.getDisplay(); } /////////////////////////////////////////////////////
@Override public void execute() throws ServerApiException { // We should never reach here throw new ServerApiException(ApiErrorCode.METHOD_NOT_ALLOWED, "This is an authentication api, cannot be used directly"); }
@Override public Boolean getDisplay() { if (display != null) { return display; } return super.getDisplay(); } /////////////////////////////////////////////////////
@Override public Boolean getDisplay() { if (display != null) { return display; } return super.getDisplay(); }
@Override public Boolean getDisplay() { if (display != null) { return display; } return super.getDisplay(); }