# Copyright 2017 Google Inc. # # 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 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 GoogleApi.IAM.V1.Model.Permission do @moduledoc """ A permission which can be included by a role. ## Attributes - apiDisabled (boolean()): The service API associated with the permission is not enabled. Defaults to: `null`. - customRolesSupportLevel (String.t): The current custom role support level. Defaults to: `null`. - Enum - one of [SUPPORTED, TESTING, NOT_SUPPORTED] - description (String.t): A brief description of what this Permission is used for. Defaults to: `null`. - name (String.t): The name of this Permission. Defaults to: `null`. - onlyInPredefinedRoles (boolean()): This permission can ONLY be used in predefined roles. Defaults to: `null`. - stage (String.t): The current launch stage of the permission. Defaults to: `null`. - Enum - one of [ALPHA, BETA, GA, DEPRECATED] - title (String.t): The title of this Permission. Defaults to: `null`. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :apiDisabled => any(), :customRolesSupportLevel => any(), :description => any(), :name => any(), :onlyInPredefinedRoles => any(), :stage => any(), :title => any() } field(:apiDisabled) field(:customRolesSupportLevel) field(:description) field(:name) field(:onlyInPredefinedRoles) field(:stage) field(:title) end defimpl Poison.Decoder, for: GoogleApi.IAM.V1.Model.Permission do def decode(value, options) do GoogleApi.IAM.V1.Model.Permission.decode(value, options) end end defimpl Poison.Encoder, for: GoogleApi.IAM.V1.Model.Permission do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end end