|
| 1 | +# Copyright 2019 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +# NOTE: This file is auto generated by the elixir code generator program. |
| 16 | +# Do not edit this file manually. |
| 17 | + |
| 18 | +defmodule GoogleApi.Chat.V1.Model.PermissionSettings do |
| 19 | + @moduledoc """ |
| 20 | + [Permission settings](https://support.google.com/chat/answer/13340792) for a named space. To set permission settings when creating a space, specify the `PredefinedPermissionSettings` field in your request. |
| 21 | +
|
| 22 | + ## Attributes |
| 23 | +
|
| 24 | + * `manageApps` (*type:* `GoogleApi.Chat.V1.Model.PermissionSetting.t`, *default:* `nil`) - Setting for managing apps in a space. |
| 25 | + * `manageMembersAndGroups` (*type:* `GoogleApi.Chat.V1.Model.PermissionSetting.t`, *default:* `nil`) - Setting for managing members and groups in a space. |
| 26 | + * `manageWebhooks` (*type:* `GoogleApi.Chat.V1.Model.PermissionSetting.t`, *default:* `nil`) - Setting for managing webhooks in a space. |
| 27 | + * `modifySpaceDetails` (*type:* `GoogleApi.Chat.V1.Model.PermissionSetting.t`, *default:* `nil`) - Setting for updating space name, avatar, description and guidelines. |
| 28 | + * `postMessages` (*type:* `GoogleApi.Chat.V1.Model.PermissionSetting.t`, *default:* `nil`) - Output only. Setting for posting messages in a space. |
| 29 | + * `replyMessages` (*type:* `GoogleApi.Chat.V1.Model.PermissionSetting.t`, *default:* `nil`) - Setting for replying to messages in a space. |
| 30 | + * `toggleHistory` (*type:* `GoogleApi.Chat.V1.Model.PermissionSetting.t`, *default:* `nil`) - Setting for toggling space history on and off. |
| 31 | + * `useAtMentionAll` (*type:* `GoogleApi.Chat.V1.Model.PermissionSetting.t`, *default:* `nil`) - Setting for using @all in a space. |
| 32 | + """ |
| 33 | + |
| 34 | + use GoogleApi.Gax.ModelBase |
| 35 | + |
| 36 | + @type t :: %__MODULE__{ |
| 37 | + :manageApps => GoogleApi.Chat.V1.Model.PermissionSetting.t() | nil, |
| 38 | + :manageMembersAndGroups => GoogleApi.Chat.V1.Model.PermissionSetting.t() | nil, |
| 39 | + :manageWebhooks => GoogleApi.Chat.V1.Model.PermissionSetting.t() | nil, |
| 40 | + :modifySpaceDetails => GoogleApi.Chat.V1.Model.PermissionSetting.t() | nil, |
| 41 | + :postMessages => GoogleApi.Chat.V1.Model.PermissionSetting.t() | nil, |
| 42 | + :replyMessages => GoogleApi.Chat.V1.Model.PermissionSetting.t() | nil, |
| 43 | + :toggleHistory => GoogleApi.Chat.V1.Model.PermissionSetting.t() | nil, |
| 44 | + :useAtMentionAll => GoogleApi.Chat.V1.Model.PermissionSetting.t() | nil |
| 45 | + } |
| 46 | + |
| 47 | + field(:manageApps, as: GoogleApi.Chat.V1.Model.PermissionSetting) |
| 48 | + field(:manageMembersAndGroups, as: GoogleApi.Chat.V1.Model.PermissionSetting) |
| 49 | + field(:manageWebhooks, as: GoogleApi.Chat.V1.Model.PermissionSetting) |
| 50 | + field(:modifySpaceDetails, as: GoogleApi.Chat.V1.Model.PermissionSetting) |
| 51 | + field(:postMessages, as: GoogleApi.Chat.V1.Model.PermissionSetting) |
| 52 | + field(:replyMessages, as: GoogleApi.Chat.V1.Model.PermissionSetting) |
| 53 | + field(:toggleHistory, as: GoogleApi.Chat.V1.Model.PermissionSetting) |
| 54 | + field(:useAtMentionAll, as: GoogleApi.Chat.V1.Model.PermissionSetting) |
| 55 | +end |
| 56 | + |
| 57 | +defimpl Poison.Decoder, for: GoogleApi.Chat.V1.Model.PermissionSettings do |
| 58 | + def decode(value, options) do |
| 59 | + GoogleApi.Chat.V1.Model.PermissionSettings.decode(value, options) |
| 60 | + end |
| 61 | +end |
| 62 | + |
| 63 | +defimpl Poison.Encoder, for: GoogleApi.Chat.V1.Model.PermissionSettings do |
| 64 | + def encode(value, options) do |
| 65 | + GoogleApi.Gax.ModelBase.encode(value, options) |
| 66 | + end |
| 67 | +end |
0 commit comments