lib/nomad_client/model/allocated_shared_resources.ex

# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.

defmodule NomadClient.Model.AllocatedSharedResources do
  @moduledoc """

  """

  @derive [Poison.Encoder]
  defstruct [
    :DiskMB,
    :Networks
  ]

  @type t :: %__MODULE__{
          :DiskMB => integer() | nil,
          :Networks => [NomadClient.Model.NetworkResource.t()] | nil
        }
end

defimpl Poison.Decoder, for: NomadClient.Model.AllocatedSharedResources do
  import NomadClient.Deserializer

  def decode(value, options) do
    value
    |> deserialize(:Networks, :list, NomadClient.Model.NetworkResource, options)
  end
end