public interface Miners
Miners provides a handler for interacting with the
/api/miners Foreman API endpoint.| Modifier and Type | Interface and Description |
|---|---|
static class |
Miners.Miner
A miner object.
|
| Modifier and Type | Method and Description |
|---|---|
List<Miners.Miner> |
all()
Returns all of the miners.
|
Optional<Miners.Miner> |
one(int minerId)
Returns one
Miners.Miner. |
Optional<Miners.Miner> |
update(int minerId,
String name,
String apiIp,
String platform,
String minerType,
String serial)
Updates the miner with the provided parameters.
|
List<Miners.Miner> all()
Optional<Miners.Miner> one(int minerId)
Miners.Miner.minerId - The ID.Optional<Miners.Miner> update(int minerId, String name, String apiIp, String platform, String minerType, String serial)
minerId - The miner ID.name - The name.apiIp - The API IP (leave null to not update).platform - The platform.minerType - The miner type.serial - The serial (leave null to not update).Miners.Miner.Copyright © 2024 OBM, LLC. All rights reserved.