Module: Slack::Web::Api::Endpoints::AdminBarriers
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/admin_barriers.rb
Instance Method Summary collapse
- 
  
    
      #admin_barriers_create(options = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Create an Information Barrier. 
- 
  
    
      #admin_barriers_delete(options = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Delete an existing Information Barrier. 
- 
  
    
      #admin_barriers_list(options = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Get all Information Barriers for your organization. 
- 
  
    
      #admin_barriers_update(options = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update an existing Information Barrier. 
Instance Method Details
#admin_barriers_create(options = {}) ⇒ Object
Create an Information Barrier
| 20 21 22 23 24 25 | # File 'lib/slack/web/api/endpoints/admin_barriers.rb', line 20 def ( = {}) throw ArgumentError.new('Required arguments :barriered_from_usergroup_ids missing') if [:barriered_from_usergroup_ids].nil? throw ArgumentError.new('Required arguments :primary_usergroup_id missing') if [:primary_usergroup_id].nil? throw ArgumentError.new('Required arguments :restricted_subjects missing') if [:restricted_subjects].nil? post('admin.barriers.create', ) end | 
#admin_barriers_delete(options = {}) ⇒ Object
Delete an existing Information Barrier
| 34 35 36 37 | # File 'lib/slack/web/api/endpoints/admin_barriers.rb', line 34 def ( = {}) throw ArgumentError.new('Required arguments :barrier_id missing') if [:barrier_id].nil? post('admin.barriers.delete', ) end | 
#admin_barriers_list(options = {}) ⇒ Object
Get all Information Barriers for your organization
| 48 49 50 51 52 53 54 55 56 | # File 'lib/slack/web/api/endpoints/admin_barriers.rb', line 48 def ( = {}) if block_given? Pagination::Cursor.new(self, :admin_barriers_list, ).each do |page| yield page end else post('admin.barriers.list', ) end end | 
#admin_barriers_update(options = {}) ⇒ Object
Update an existing Information Barrier
| 71 72 73 74 75 76 77 | # File 'lib/slack/web/api/endpoints/admin_barriers.rb', line 71 def ( = {}) throw ArgumentError.new('Required arguments :barrier_id missing') if [:barrier_id].nil? throw ArgumentError.new('Required arguments :barriered_from_usergroup_ids missing') if [:barriered_from_usergroup_ids].nil? throw ArgumentError.new('Required arguments :primary_usergroup_id missing') if [:primary_usergroup_id].nil? throw ArgumentError.new('Required arguments :restricted_subjects missing') if [:restricted_subjects].nil? post('admin.barriers.update', ) end |