mn.foreman.api.model.CommandUpdate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-api Show documentation
Show all versions of java-api Show documentation
A library for interacting with the Foreman API.
package mn.foreman.api.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Data;
import java.util.Map;
/**
* A {@link CommandUpdate} represents an update to the Foreman dashboard from a
* command that's being ran.
*/
@Data
@Builder
public class CommandUpdate
implements Command {
/** The command. */
@JsonProperty("command")
private final String command;
/** The update. */
@JsonProperty("update")
private final Map update;
/** The response. */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public static class Response {
/** The command status. */
@JsonProperty("status")
public String status;
}
}