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


  ## Attributes

  *   `displayName` (*type:* `String.t`, *default:* `nil`) - A descriptive name for this entry. Suitable for display.
  *   `id` (*type:* `String.t`, *default:* `nil`) - The ID of the entry. For entries of type "person" or "circle", this is the ID of the resource. For other types, this property is not set.
  *   `type` (*type:* `String.t`, *default:* `nil`) - The type of entry describing to whom access is granted. Possible values are:  
      - "person" - Access to an individual. 
      - "circle" - Access to members of a circle. 
      - "myCircles" - Access to members of all the person's circles. 
      - "extendedCircles" - Access to members of all the person's circles, plus all of the people in their circles. 
      - "domain" - Access to members of the person's Google Apps domain. 
      - "public" - Access to anyone on the web.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :displayName => String.t(),
          :id => String.t(),
          :type => String.t()
        }

  field(:displayName)
  field(:id)
  field(:type)
end

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

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