# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule Nomad.Model.ServiceCheck do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :ID, :Name, :Type, :Command, :Args, :Path, :Protocol, :PortLabel, :AddressMode, :Interval, :Timeout, :InitialStatus, :TlsSkipVerify, :Header, :Method, :CheckRestart, :GrpcService, :GrpcUseTls, :TaskName, :OnUpdate ] @type t :: %__MODULE__{ :ID => String.t() | nil, :Name => String.t() | nil, :Type => String.t() | nil, :Command => String.t() | nil, :Args => [String.t()] | nil, :Path => String.t() | nil, :Protocol => String.t() | nil, :PortLabel => String.t() | nil, :AddressMode => String.t() | nil, :Interval => integer() | nil, :Timeout => integer() | nil, :InitialStatus => String.t() | nil, :TlsSkipVerify => boolean() | nil, :Header => %{optional(String.t()) => [String.t()]} | nil, :Method => String.t() | nil, :CheckRestart => Nomad.Model.CheckRestart.t() | nil, :GrpcService => String.t() | nil, :GrpcUseTls => boolean() | nil, :TaskName => String.t() | nil, :OnUpdate => String.t() | nil } end defimpl Poison.Decoder, for: Nomad.Model.ServiceCheck do import Nomad.Deserializer def decode(value, options) do value |> deserialize(:CheckRestart, :struct, Nomad.Model.CheckRestart, options) end end