class LMSGraphQL::Mutations::Canvas::SetOrRemoveRestrictionsOnBlueprintCourseObject

Public Instance Methods

resolve(course_id:, template_id:, content_type: nil, content_id: nil, restricted: nil, restrictions: nil) click to toggle source
# File lib/lms_graphql/mutations/canvas/set_or_remove_restrictions_on_blueprint_course_object.rb, line 17
def resolve(course_id:, template_id:, content_type: nil, content_id: nil, restricted: nil, restrictions: nil)
  context[:canvas_api].call("SET_OR_REMOVE_RESTRICTIONS_ON_BLUEPRINT_COURSE_OBJECT").proxy(
    "SET_OR_REMOVE_RESTRICTIONS_ON_BLUEPRINT_COURSE_OBJECT",
    {
      "course_id": course_id,
      "template_id": template_id
    },
    {
      "content_type": content_type,
      "content_id": content_id,
      "restricted": restricted,
      "restrictions": restrictions
    },
  ).parsed_response
end