lib/nomad_client/model/scaling_policy.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.ScalingPolicy do
  @moduledoc """

  """

  @derive [Poison.Encoder]
  defstruct [
    :ID,
    :Namespace,
    :Target,
    :Min,
    :Max,
    :Policy,
    :Enabled,
    :CreateIndex,
    :ModifyIndex
  ]

  @type t :: %__MODULE__{
          :ID => String.t() | nil,
          :Namespace => String.t() | nil,
          :Target => %{optional(String.t()) => String.t()} | nil,
          :Min => integer() | nil,
          :Max => integer() | nil,
          :Policy => %{optional(String.t()) => map()} | nil,
          :Enabled => boolean() | nil,
          :CreateIndex => integer() | nil,
          :ModifyIndex => integer() | nil
        }
end

defimpl Poison.Decoder, for: NomadClient.Model.ScalingPolicy do
  def decode(value, _options) do
    value
  end
end