# 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.MsTeamsIntegration do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"suppressNotifications", :"ignoreTeamsFromPayload", :"ignoreRecipientsFromPayload", :"recipients", :"isAdvanced", :"ignoreTagsFromPayload", :"ignoreExtraPropertiesFromPayload", :"priority", :"customPriority", :"tags", :"extraProperties", :"assignedTeam", :"feature-type", :"allowConfigurationAccess", :"allowWriteAccess", :"alertFilter", :"forwardingEnabled", :"forwardingActionMappings", :"callback-type", :"updatesActionMappings", :"updatesEnabled", :"bidirectional-callback-type", :"webhookUrl", :"type", :"id", :"name", :"enabled", :"ownerTeam", :"isGlobal", :"_readOnly", :"requireMatchingUser", :"executeCommands", :"tenantId" ] @type t :: %__MODULE__{ :"suppressNotifications" => boolean(), :"ignoreTeamsFromPayload" => boolean(), :"ignoreRecipientsFromPayload" => boolean(), :"recipients" => [Recipient], :"isAdvanced" => boolean(), :"ignoreTagsFromPayload" => boolean(), :"ignoreExtraPropertiesFromPayload" => boolean(), :"priority" => String.t, :"customPriority" => String.t, :"tags" => [String.t], :"extraProperties" => %{optional(String.t) => String.t}, :"assignedTeam" => TeamMeta, :"feature-type" => String.t, :"allowConfigurationAccess" => boolean(), :"allowWriteAccess" => boolean(), :"alertFilter" => AlertFilter, :"forwardingEnabled" => boolean(), :"forwardingActionMappings" => [ActionMapping], :"callback-type" => String.t, :"updatesActionMappings" => [ActionMapping], :"updatesEnabled" => boolean(), :"bidirectional-callback-type" => String.t, :"webhookUrl" => String.t, :"type" => String.t, :"id" => String.t, :"name" => String.t, :"enabled" => boolean(), :"ownerTeam" => TeamMeta, :"isGlobal" => boolean(), :"_readOnly" => [String.t], :"requireMatchingUser" => boolean(), :"executeCommands" => boolean(), :"tenantId" => String.t } end defimpl Poison.Decoder, for: OpsGenieRESTAPI.Model.MsTeamsIntegration do import OpsGenieRESTAPI.Deserializer def decode(value, options) do value |> deserialize(:"recipients", :list, OpsGenieRESTAPI.Model.Recipient, options) |> deserialize(:"assignedTeam", :struct, OpsGenieRESTAPI.Model.TeamMeta, options) |> deserialize(:"alertFilter", :struct, OpsGenieRESTAPI.Model.AlertFilter, options) |> deserialize(:"forwardingActionMappings", :list, OpsGenieRESTAPI.Model.ActionMapping, options) |> deserialize(:"updatesActionMappings", :list, OpsGenieRESTAPI.Model.ActionMapping, options) |> deserialize(:"ownerTeam", :struct, OpsGenieRESTAPI.Model.TeamMeta, options) end end