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

mn.foreman.api.model.CommandUpdateBatch 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 lombok.Singular;

import java.util.List;

/**
 * A {@link CommandUpdateBatch} represents updates to the Foreman dashboard from
 * commands being ran.
 */
@Data
@Builder
public class CommandUpdateBatch {

    /** The updates. */
    @JsonProperty("commands")
    @Singular
    private final List commands;

    /** The started command. */
    @Data
    @Builder
    public static class BatchedUpdate {

        /** The command id. */
        @JsonProperty("commandId")
        private final String commandId;

        /** The command. */
        @JsonProperty("update")
        private final CommandUpdate update;
    }

    /** The response. */
    @JsonIgnoreProperties(ignoreUnknown = true)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class Response {

        /** The number of successful updates. */
        @JsonProperty("success")
        public int success;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy