Sha256: 7e4560dd3e7e9bbcfdd457c1cb8d39ff74709d503446fc9960064c1f22c64e34

Contents?: true

Size: 1.56 KB

Versions: 8

Compression:

Stored size: 1.56 KB

Contents

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

desc 'AdminInviterequests methods.'
command 'admin_inviteRequests' do |g|
  g.desc 'Approve a workspace invite request.'
  g.long_desc %( Approve a workspace invite request. )
  g.command 'approve' do |c|
    c.flag 'invite_request_id', desc: 'ID of the request to invite.'
    c.flag 'team_id', desc: 'ID for the workspace where the invite request was made.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.admin_inviteRequests_approve(options))
    end
  end

  g.desc 'Deny a workspace invite request.'
  g.long_desc %( Deny a workspace invite request. )
  g.command 'deny' do |c|
    c.flag 'invite_request_id', desc: 'ID of the request to invite.'
    c.flag 'team_id', desc: 'ID for the workspace where the invite request was made.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.admin_inviteRequests_deny(options))
    end
  end

  g.desc 'List all pending workspace invite requests.'
  g.long_desc %( List all pending workspace invite requests. )
  g.command 'list' do |c|
    c.flag 'cursor', desc: 'Value of the next_cursor field sent as part of the previous API response.'
    c.flag 'limit', desc: 'The number of results that will be returned by the API on each invocation. Must be between 1 - 1000, both inclusive.'
    c.flag 'team_id', desc: 'ID for the workspace where the invite requests were made.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.admin_inviteRequests_list(options))
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
slack-ruby-client-2.0.0 bin/commands/admin_inviteRequests.rb
slack-ruby-client-1.1.0 bin/commands/admin_inviteRequests.rb
slack-ruby-client-1.0.0 bin/commands/admin_inviteRequests.rb
slack-ruby-client-0.17.0 bin/commands/admin_inviteRequests.rb
slack-ruby-client-0.16.0 bin/commands/admin_inviteRequests.rb
slack-ruby-client-0.15.1 bin/commands/admin_inviteRequests.rb
slack-ruby-client-0.15.0 bin/commands/admin_inviteRequests.rb
slack-ruby-client-0.14.6 bin/commands/admin_inviteRequests.rb