|
| 1 | +# frozen_string_literal: true |
| 2 | +# This file was auto-generated by lib/tasks/web.rake |
| 3 | + |
| 4 | +module Slack |
| 5 | + module Web |
| 6 | + module Api |
| 7 | + module Endpoints |
| 8 | + module AdminConversationsRestrictaccess |
| 9 | + # |
| 10 | + # Add an allowlist of IDP groups for accessing a channel |
| 11 | + # |
| 12 | + # @option options [Object] :channel_id |
| 13 | + # The channel to link this group to. |
| 14 | + # @option options [Object] :group_id |
| 15 | + # The IDP Group ID to be an allowlist for the private channel. |
| 16 | + # @option options [Object] :team_id |
| 17 | + # The workspace where the IDP Group and channel exist. |
| 18 | + # @see https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup |
| 19 | + # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations.restrictAccess/admin.conversations.restrictAccess.addGroup.json |
| 20 | + def admin_conversations_restrictAccess_addGroup(options = {}) |
| 21 | + throw ArgumentError.new('Required arguments :channel_id missing') if options[:channel_id].nil? |
| 22 | + throw ArgumentError.new('Required arguments :group_id missing') if options[:group_id].nil? |
| 23 | + post('admin.conversations.restrictAccess.addGroup', options) |
| 24 | + end |
| 25 | + |
| 26 | + # |
| 27 | + # List all IDP Groups linked to a channel |
| 28 | + # |
| 29 | + # @option options [Object] :channel_id |
| 30 | + # . |
| 31 | + # @option options [Object] :team_id |
| 32 | + # The workspace where the channele exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization. |
| 33 | + # @see https://api.slack.com/methods/admin.conversations.restrictAccess.listGroups |
| 34 | + # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations.restrictAccess/admin.conversations.restrictAccess.listGroups.json |
| 35 | + def admin_conversations_restrictAccess_listGroups(options = {}) |
| 36 | + throw ArgumentError.new('Required arguments :channel_id missing') if options[:channel_id].nil? |
| 37 | + post('admin.conversations.restrictAccess.listGroups', options) |
| 38 | + end |
| 39 | + |
| 40 | + # |
| 41 | + # Remove a linked IDP group linked from a private channel |
| 42 | + # |
| 43 | + # @option options [Object] :channel_id |
| 44 | + # The channel to remove the linked group from. |
| 45 | + # @option options [Object] :group_id |
| 46 | + # The IDP Group ID to remove from the private channel. |
| 47 | + # @option options [Object] :team_id |
| 48 | + # The workspace where the IDP Group and channel exist. |
| 49 | + # @see https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup |
| 50 | + # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations.restrictAccess/admin.conversations.restrictAccess.removeGroup.json |
| 51 | + def admin_conversations_restrictAccess_removeGroup(options = {}) |
| 52 | + throw ArgumentError.new('Required arguments :channel_id missing') if options[:channel_id].nil? |
| 53 | + throw ArgumentError.new('Required arguments :group_id missing') if options[:group_id].nil? |
| 54 | + throw ArgumentError.new('Required arguments :team_id missing') if options[:team_id].nil? |
| 55 | + post('admin.conversations.restrictAccess.removeGroup', options) |
| 56 | + end |
| 57 | + end |
| 58 | + end |
| 59 | + end |
| 60 | + end |
| 61 | +end |
0 commit comments