Sha256: ef79c02ad548e059db0dae705a008b9524ed1eea1fa494b906bc292bf8236291

Contents?: true

Size: 1.99 KB

Versions: 1

Compression:

Stored size: 1.99 KB

Contents

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

module Slack
  module Web
    module Api
      module Endpoints
        module CanvasesAccess
          #
          # Remove access to a canvas for specified entities
          #
          # @option options [Object] :canvas_id
          #   Encoded ID of the canvas.
          # @option options [array] :channel_ids
          #   List of channels you wish to update access for.
          # @option options [array] :user_ids
          #   List of users you wish to update access for.
          # @see https://api.slack.com/methods/canvases.access.delete
          # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/canvases.access/canvases.access.delete.json
          def canvases_access_delete(options = {})
            raise ArgumentError, 'Required arguments :canvas_id missing' if options[:canvas_id].nil?
            post('canvases.access.delete', options)
          end

          #
          # Sets the access level to a canvas for specified entities
          #
          # @option options [Object] :access_level
          #   Desired level of access (e.g. read, write).
          # @option options [Object] :canvas_id
          #   Encoded ID of the canvas.
          # @option options [array] :channel_ids
          #   List of channels you wish to update access for.
          # @option options [array] :user_ids
          #   List of users you wish to update access for.
          # @see https://api.slack.com/methods/canvases.access.set
          # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/canvases.access/canvases.access.set.json
          def canvases_access_set(options = {})
            raise ArgumentError, 'Required arguments :access_level missing' if options[:access_level].nil?
            raise ArgumentError, 'Required arguments :canvas_id missing' if options[:canvas_id].nil?
            post('canvases.access.set', options)
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 lib/slack/web/api/endpoints/canvases_access.rb