# 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.IAP.V1.Model.TagsFullStateForChildResource do
  @moduledoc """


  ## Attributes

  *   `tags` (*type:* `map()`, *default:* `nil`) - If TagsFullStateForChildResource is initialized, the values in this field represent all the tags in the next state for the child resource. Only one type of tags reference (numeric or namespace) is required to be passed. IMPORTANT: This field should only be used when the target resource IAM policy name is UNKNOWN and the resource's parent IAM policy name is being passed in the request.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :tags => map() | nil
        }

  field(:tags, type: :map)
end

defimpl Poison.Decoder, for: GoogleApi.IAP.V1.Model.TagsFullStateForChildResource do
  def decode(value, options) do
    GoogleApi.IAP.V1.Model.TagsFullStateForChildResource.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.IAP.V1.Model.TagsFullStateForChildResource do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
