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

io.github.zanella.nomad.v1.nodes.models.Resources Maven / Gradle / Ivy

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