All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mn.foreman.api.model.CommandUpdate Maven / Gradle / Ivy

There is a newer version: 1.78.0
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy