# 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.NodeDeviceResource do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:Vendor,
:Type,
:Name,
:Instances,
:Attributes
]
@type t :: %__MODULE__{
:Vendor => String.t() | nil,
:Type => String.t() | nil,
:Name => String.t() | nil,
:Instances => [NomadClient.Model.NodeDevice.t()] | nil,
:Attributes => %{optional(String.t()) => NomadClient.Model.Attribute.t()} | nil
}
end
defimpl Poison.Decoder, for: NomadClient.Model.NodeDeviceResource do
import NomadClient.Deserializer
def decode(value, options) do
value
|> deserialize(:Instances, :list, NomadClient.Model.NodeDevice, options)
|> deserialize(:Attributes, :map, NomadClient.Model.Attribute, options)
end
end