Module: Slack::Web::Api::Endpoints::AdminConversationsWhitelist
- Defined in:
- lib/slack/web/api/endpoints/admin_conversations_whitelist.rb
Instance Method Summary collapse
-
#admin_conversations_whitelist_add(options = {}) ⇒ Object
Add an allowlist of IDP groups for accessing a channel.
-
#admin_conversations_whitelist_listGroupsLinkedToChannel(options = {}) ⇒ Object
List all IDP Groups linked to a channel.
-
#admin_conversations_whitelist_remove(options = {}) ⇒ Object
Remove an allowlisted IDP group linked to a private channel.
Instance Method Details
#admin_conversations_whitelist_add(options = {}) ⇒ Object
Add an allowlist of IDP groups for accessing a channel
20 21 22 23 24 25 |
# File 'lib/slack/web/api/endpoints/admin_conversations_whitelist.rb', line 20 def admin_conversations_whitelist_add( = {}) throw ArgumentError.new('Required arguments :channel_id missing') if [:channel_id].nil? throw ArgumentError.new('Required arguments :group_id missing') if [:group_id].nil? logger.warn('admin.conversations.whitelist.add: This method is deprecated Alternative methods: .') post('admin.conversations.whitelist.add', ) end |
#admin_conversations_whitelist_listGroupsLinkedToChannel(options = {}) ⇒ Object
List all IDP Groups linked to a channel
36 37 38 39 40 |
# File 'lib/slack/web/api/endpoints/admin_conversations_whitelist.rb', line 36 def admin_conversations_whitelist_listGroupsLinkedToChannel( = {}) throw ArgumentError.new('Required arguments :channel_id missing') if [:channel_id].nil? logger.warn('admin.conversations.whitelist.listGroupsLinkedToChannel: This method is deprecated Alternative methods: .') post('admin.conversations.whitelist.listGroupsLinkedToChannel', ) end |
#admin_conversations_whitelist_remove(options = {}) ⇒ Object
Remove an allowlisted IDP group linked to a private channel
53 54 55 56 57 58 59 |
# File 'lib/slack/web/api/endpoints/admin_conversations_whitelist.rb', line 53 def admin_conversations_whitelist_remove( = {}) throw ArgumentError.new('Required arguments :channel_id missing') if [:channel_id].nil? throw ArgumentError.new('Required arguments :group_id missing') if [:group_id].nil? throw ArgumentError.new('Required arguments :team_id missing') if [:team_id].nil? logger.warn('admin.conversations.whitelist.remove: This method is deprecated Alternative methods: .') post('admin.conversations.whitelist.remove', ) end |