io.github.zanella.nomad.v1.nodes.models.Resources Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nomad-api Show documentation
Show all versions of nomad-api Show documentation
Java client for Nomad's HTTP API
The newest version!
package io.github.zanella.nomad.v1.nodes.models;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.ArrayList;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor(suppressConstructorProperties = true)
public class Resources {
@Data
@NoArgsConstructor
@AllArgsConstructor(suppressConstructorProperties = true)
public static class Network {
@Data
@NoArgsConstructor
@AllArgsConstructor(suppressConstructorProperties = true)
public static class DynamicPort {
@JsonProperty("Value") Integer value;
@JsonProperty("Label") String label;
}
@Data
@NoArgsConstructor
@AllArgsConstructor(suppressConstructorProperties = true)
public static class ReservedPort {
@JsonProperty("Value") Integer value;
@JsonProperty("Label") String label;
}
@JsonProperty("DynamicPorts") List dynamicPorts = new ArrayList();
@JsonProperty("ReservedPorts") List reservedPorts;
@JsonProperty("MBits") Integer mBits;
@JsonProperty("IP") String ip;
@JsonProperty("CIDR") String cidr;
@JsonProperty("Device") String device;
}
@JsonProperty("CPU") Integer cpu;
@JsonProperty("MemoryMB") Integer memoryMB;
@JsonProperty("DiskMB") Integer diskMB;
@JsonProperty("IOPS") Integer iops;
@JsonProperty("Networks") List networks = new ArrayList();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy