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

mn.foreman.api.endpoints.sitemap.SiteMap Maven / Gradle / Ivy

There is a newer version: 1.78.0
Show newest version
package mn.foreman.api.endpoints.sitemap;

import mn.foreman.api.endpoints.StatusSubmit;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Optional;

/**
 * A {@link SiteMap} provides a handler for interacting with the
 * /api/site-map/ Foreman API endpoint.
 */
public interface SiteMap {

    /**
     * Changes the site map location of a miner.
     *
     * @param minerId The miner ID.
     * @param rack    The rack.
     * @param row     The row.
     * @param index   The index.
     *
     * @return The response.
     */
    Optional setLocation(
            int minerId,
            String rack,
            int row,
            int index);

    /** An response. */
    @JsonIgnoreProperties(ignoreUnknown = true)
    class Response {

        /** The status. */
        @JsonProperty("status")
        public StatusSubmit status;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy