Sha256: 558ca186223043ac37f45f6cc0aee4f0eabb47287c7bfde07033bd5a21afa9f2

Contents?: true

Size: 1.81 KB

Versions: 2

Compression:

Stored size: 1.81 KB

Contents

# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

desc 'AdminConversationsRestrictaccess methods.'
command 'admin_conversations_restrictAccess' do |g|
  g.desc 'Add an allowlist of IDP groups for accessing a channel'
  g.long_desc %( Add an allowlist of IDP groups for accessing a channel )
  g.command 'addGroup' do |c|
    c.flag 'channel_id', desc: 'The channel to link this group to.'
    c.flag 'group_id', desc: 'The IDP Group ID to be an allowlist for the private channel.'
    c.flag 'team_id', desc: 'The workspace where the IDP Group and channel exist.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.admin_conversations_restrictAccess_addGroup(options))
    end
  end

  g.desc 'List all IDP Groups linked to a channel'
  g.long_desc %( List all IDP Groups linked to a channel )
  g.command 'listGroups' do |c|
    c.flag 'channel_id', desc: '.'
    c.flag 'team_id', desc: '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.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.admin_conversations_restrictAccess_listGroups(options))
    end
  end

  g.desc 'Remove a linked IDP group linked from a private channel'
  g.long_desc %( Remove a linked IDP group linked from a private channel )
  g.command 'removeGroup' do |c|
    c.flag 'channel_id', desc: 'The channel to remove the linked group from.'
    c.flag 'group_id', desc: 'The IDP Group ID to remove from the private channel.'
    c.flag 'team_id', desc: 'The workspace where the IDP Group and channel exist.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.admin_conversations_restrictAccess_removeGroup(options))
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slack-ruby-client-0.15.1 bin/commands/admin_conversations_restrictAccess.rb
slack-ruby-client-0.15.0 bin/commands/admin_conversations_restrictAccess.rb