Module: Slack::Web::Api::Endpoints::AdminAuthPolicy
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/admin_auth_policy.rb
Instance Method Summary collapse
-
#admin_auth_policy_assignEntities(options = {}) ⇒ Object
Assign entities to a particular authentication policy.
-
#admin_auth_policy_getEntities(options = {}) ⇒ Object
Fetch all the entities assigned to a particular authentication policy by name.
-
#admin_auth_policy_removeEntities(options = {}) ⇒ Object
Remove specified entities from a specified authentication policy.
Instance Method Details
#admin_auth_policy_assignEntities(options = {}) ⇒ Object
Assign entities to a particular authentication policy.
20 21 22 23 24 25 |
# File 'lib/slack/web/api/endpoints/admin_auth_policy.rb', line 20 def admin_auth_policy_assignEntities( = {}) raise ArgumentError, 'Required arguments :entity_ids missing' if [:entity_ids].nil? raise ArgumentError, 'Required arguments :entity_type missing' if [:entity_type].nil? raise ArgumentError, 'Required arguments :policy_name missing' if [:policy_name].nil? post('admin.auth.policy.assignEntities', ) end |
#admin_auth_policy_getEntities(options = {}) ⇒ Object
Fetch all the entities assigned to a particular authentication policy by name.
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/slack/web/api/endpoints/admin_auth_policy.rb', line 40 def admin_auth_policy_getEntities( = {}) raise ArgumentError, 'Required arguments :policy_name missing' if [:policy_name].nil? if block_given? Pagination::Cursor.new(self, :admin_auth_policy_getEntities, ).each do |page| yield page end else post('admin.auth.policy.getEntities', ) end end |
#admin_auth_policy_removeEntities(options = {}) ⇒ Object
Remove specified entities from a specified authentication policy.
62 63 64 65 66 67 |
# File 'lib/slack/web/api/endpoints/admin_auth_policy.rb', line 62 def admin_auth_policy_removeEntities( = {}) raise ArgumentError, 'Required arguments :entity_ids missing' if [:entity_ids].nil? raise ArgumentError, 'Required arguments :entity_type missing' if [:entity_type].nil? raise ArgumentError, 'Required arguments :policy_name missing' if [:policy_name].nil? post('admin.auth.policy.removeEntities', ) end |