@@ -0,0 +1,1625 @@
+package com.suse.salt.netapi.calls.modules;%0A%0Aimport com.google.gson.annotations.SerializedName;%0Aimport com.google.gson.reflect.TypeToken;%0Aimport com.suse.salt.netapi.calls.LocalCall;%0A%0Aimport java.util.LinkedHashMap;%0Aimport java.util.Optional;%0A%0A/**%0A * salt.modules.openscap%0A */%0Apublic class Openscap %7B%0A%0A    /**%0A     * %7B@code openscap.xccdf%7D result.%0A     */%0A    public static class OpenscapResult %7B%0A%0A        @SerializedName(%22error%22)%0A        private String error;%0A%0A        @SerializedName(%22success%22)%0A        private boolean success;%0A%0A        @SerializedName(%22upload_dir%22)%0A        private String uploadDir;%0A%0A        @SerializedName(%22returncode%22)%0A        private int returnCode;%0A%0A        /**%0A         * @return Openscap command stderr%0A         */%0A        public String getError() %7B%0A            return error;%0A        %7D%0A%0A        /**%0A         * @return command success flag%0A         */%0A        public boolean isSuccess() %7B%0A            return success;%0A        %7D%0A%0A        /**%0A         * @return dir uploaded by the openscap module%0A         */%0A        public String getUploadDir() %7B%0A            return uploadDir;%0A        %7D%0A%0A        /**%0A         * @return Openscp command return code%0A         */%0A        public int getReturnCode() %7B%0A            return returnCode;%0A        %7D%0A    %7D%0A%0A    private Openscap() %7B %7D%0A%0A    public static LocalCall%3COpenscapResult%3E xccdf(String parameters) %7B%0A        LinkedHashMap%3CString, Object%3E args = new LinkedHashMap%3C%3E();%0A        args.put(%22params%22, parameters);%0A        return new LocalCall%3C%3E(%22openscap.xccdf%22, Optional.empty(), Optional.of(args),%0A                new TypeToken%3COpenscapResult%3E() %7B %7D);%0A    %7D%0A%0A%7D%0A

add openscap salt module