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 campfire_integration.ex
Raw

lib/ops_genie_restapi/model/campfire_integration.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.CampfireIntegration do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"alertFilter",
:"alertActions",
:"callback-type",
:"token",
:"subdomain",
:"notify",
:"rooms",
:"type",
:"id",
:"name",
:"enabled",
:"ownerTeam",
:"isGlobal",
:"_readOnly"
]
@type t :: %__MODULE__{
:"alertFilter" => AlertFilter,
:"alertActions" => [String.t],
:"callback-type" => String.t,
:"token" => String.t,
:"subdomain" => String.t,
:"notify" => boolean(),
:"rooms" => [String.t],
:"type" => String.t,
:"id" => String.t,
:"name" => String.t,
:"enabled" => boolean(),
:"ownerTeam" => TeamMeta,
:"isGlobal" => boolean(),
:"_readOnly" => [String.t]
}
end
defimpl Poison.Decoder, for: OpsGenieRESTAPI.Model.CampfireIntegration do
import OpsGenieRESTAPI.Deserializer
def decode(value, options) do
value
|> deserialize(:"alertFilter", :struct, OpsGenieRESTAPI.Model.AlertFilter, options)
|> deserialize(:"ownerTeam", :struct, OpsGenieRESTAPI.Model.TeamMeta, options)
end
end