Packages

REST API Generated with swagger-codegen using the OpsGenie OpenAPI Specification.

Current section

Files

Jump to
ops_genie_restapi lib ops_genie_restapi model outgoing_callback.ex
Raw

lib/ops_genie_restapi/model/outgoing_callback.ex

# NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule OpsGenieRESTAPI.Model.OutgoingCallback do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"alertFilter",
:"alertActions",
:"callback-type"
]
@type t :: %__MODULE__{
:"alertFilter" => AlertFilter,
:"alertActions" => [String.t],
:"callback-type" => String.t
}
end
defimpl Poison.Decoder, for: OpsGenieRESTAPI.Model.OutgoingCallback do
import OpsGenieRESTAPI.Deserializer
def decode(value, options) do
value
|> deserialize(:"alertFilter", :struct, OpsGenieRESTAPI.Model.AlertFilter, options)
end
end