# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.TagManager.V2.Model.ContainerVersionHeader do
  @moduledoc """
  Represents a Google Tag Manager Container Version Header.

  ## Attributes

  *   `accountId` (*type:* `String.t`, *default:* `nil`) - GTM Account ID.
  *   `containerId` (*type:* `String.t`, *default:* `nil`) - GTM Container ID.
  *   `containerVersionId` (*type:* `String.t`, *default:* `nil`) - The Container Version ID uniquely identifies the GTM Container Version.
  *   `deleted` (*type:* `boolean()`, *default:* `nil`) - A value of true indicates this container version has been deleted.
  *   `name` (*type:* `String.t`, *default:* `nil`) - Container version display name.
  *   `numClients` (*type:* `String.t`, *default:* `nil`) - Number of clients in the container version.
  *   `numCustomTemplates` (*type:* `String.t`, *default:* `nil`) - Number of custom templates in the container version.
  *   `numGtagConfigs` (*type:* `String.t`, *default:* `nil`) - Number of Google tag configs in the container version.
  *   `numTags` (*type:* `String.t`, *default:* `nil`) - Number of tags in the container version.
  *   `numTransformations` (*type:* `String.t`, *default:* `nil`) - Number of transformations in the container version.
  *   `numTriggers` (*type:* `String.t`, *default:* `nil`) - Number of triggers in the container version.
  *   `numVariables` (*type:* `String.t`, *default:* `nil`) - Number of variables in the container version.
  *   `numZones` (*type:* `String.t`, *default:* `nil`) - Number of zones in the container version.
  *   `path` (*type:* `String.t`, *default:* `nil`) - GTM Container Version's API relative path.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :accountId => String.t() | nil,
          :containerId => String.t() | nil,
          :containerVersionId => String.t() | nil,
          :deleted => boolean() | nil,
          :name => String.t() | nil,
          :numClients => String.t() | nil,
          :numCustomTemplates => String.t() | nil,
          :numGtagConfigs => String.t() | nil,
          :numTags => String.t() | nil,
          :numTransformations => String.t() | nil,
          :numTriggers => String.t() | nil,
          :numVariables => String.t() | nil,
          :numZones => String.t() | nil,
          :path => String.t() | nil
        }

  field(:accountId)
  field(:containerId)
  field(:containerVersionId)
  field(:deleted)
  field(:name)
  field(:numClients)
  field(:numCustomTemplates)
  field(:numGtagConfigs)
  field(:numTags)
  field(:numTransformations)
  field(:numTriggers)
  field(:numVariables)
  field(:numZones)
  field(:path)
end

defimpl Poison.Decoder, for: GoogleApi.TagManager.V2.Model.ContainerVersionHeader do
  def decode(value, options) do
    GoogleApi.TagManager.V2.Model.ContainerVersionHeader.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.TagManager.V2.Model.ContainerVersionHeader do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
