Module: Slack::Web::Api::Endpoints::WorkflowsTriggersPermissions
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/workflows_triggers_permissions.rb
Instance Method Summary collapse
-
#workflows_triggers_permissions_add(options = {}) ⇒ Object
Allows users to run a trigger that has its permission type set to named_entities.
-
#workflows_triggers_permissions_list(options = {}) ⇒ Object
Returns the permission type of a trigger and if applicable, includes the entities that have been granted access.
-
#workflows_triggers_permissions_remove(options = {}) ⇒ Object
Revoke an entity’s access to a trigger that has its permission type set to named_entities.
-
#workflows_triggers_permissions_set(options = {}) ⇒ Object
Set the permission type for who can run a trigger.
Instance Method Details
#workflows_triggers_permissions_add(options = {}) ⇒ Object
Allows users to run a trigger that has its permission type set to named_entities
24 25 26 27 |
# File 'lib/slack/web/api/endpoints/workflows_triggers_permissions.rb', line 24 def ( = {}) raise ArgumentError, 'Required arguments :trigger_id missing' if [:trigger_id].nil? post('workflows.triggers.permissions.add', ) end |
#workflows_triggers_permissions_list(options = {}) ⇒ Object
Returns the permission type of a trigger and if applicable, includes the entities that have been granted access
36 37 38 39 |
# File 'lib/slack/web/api/endpoints/workflows_triggers_permissions.rb', line 36 def ( = {}) raise ArgumentError, 'Required arguments :trigger_id missing' if [:trigger_id].nil? post('workflows.triggers.permissions.list', ) end |
#workflows_triggers_permissions_remove(options = {}) ⇒ Object
Revoke an entity’s access to a trigger that has its permission type set to named_entities
56 57 58 59 |
# File 'lib/slack/web/api/endpoints/workflows_triggers_permissions.rb', line 56 def ( = {}) raise ArgumentError, 'Required arguments :trigger_id missing' if [:trigger_id].nil? post('workflows.triggers.permissions.remove', ) end |
#workflows_triggers_permissions_set(options = {}) ⇒ Object
Set the permission type for who can run a trigger
78 79 80 81 82 |
# File 'lib/slack/web/api/endpoints/workflows_triggers_permissions.rb', line 78 def ( = {}) raise ArgumentError, 'Required arguments :permission_type missing' if [:permission_type].nil? raise ArgumentError, 'Required arguments :trigger_id missing' if [:trigger_id].nil? post('workflows.triggers.permissions.set', ) end |