Sha256: 1a4d55257b81883f4ea67c212bd516144abffef1c78a126f3251ce2b35457028

Contents?: true

Size: 1.73 KB

Versions: 2

Compression:

Stored size: 1.73 KB

Contents

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

desc 'AdminApps methods.'
command 'admin_apps' do |g|
  g.desc 'Approve an app for installation on a workspace.'
  g.long_desc %( Approve an app for installation on a workspace. )
  g.command 'approve' do |c|
    c.flag 'app_id', desc: 'The id of the app to approve.'
    c.flag 'enterprise_id', desc: 'The ID of the enterprise to approve the app on.'
    c.flag 'request_id', desc: 'The id of the request to approve.'
    c.flag 'team_id', desc: 'The ID of the workspace to approve the app on.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.admin_apps_approve(options))
    end
  end

  g.desc 'Clear an app resolution'
  g.long_desc %( Clear an app resolution )
  g.command 'clearResolution' do |c|
    c.flag 'app_id', desc: 'The id of the app whose resolution you want to clear/undo.'
    c.flag 'enterprise_id', desc: 'The enterprise to clear the app resolution from.'
    c.flag 'team_id', desc: 'The workspace to clear the app resolution from.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.admin_apps_clearResolution(options))
    end
  end

  g.desc 'Restrict an app for installation on a workspace.'
  g.long_desc %( Restrict an app for installation on a workspace. )
  g.command 'restrict' do |c|
    c.flag 'app_id', desc: 'The id of the app to restrict.'
    c.flag 'enterprise_id', desc: 'The ID of the enterprise to approve the app on.'
    c.flag 'request_id', desc: 'The id of the request to restrict.'
    c.flag 'team_id', desc: 'The ID of the workspace to approve the app on.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.admin_apps_restrict(options))
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slack-ruby-client-0.17.0 bin/commands/admin_apps.rb
slack-ruby-client-0.16.0 bin/commands/admin_apps.rb