pandarus 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. data/lib/pandarus/client.rb +1 -1
  2. data/lib/pandarus/model_base.rb +25 -7
  3. data/lib/pandarus/models.rb +23 -0
  4. data/lib/pandarus/models/account_authorization_config.rb +19 -19
  5. data/lib/pandarus/models/admin.rb +5 -4
  6. data/lib/pandarus/models/answer.rb +30 -0
  7. data/lib/pandarus/models/assignment.rb +31 -31
  8. data/lib/pandarus/models/assignment_date.rb +20 -0
  9. data/lib/pandarus/models/assignment_group.rb +6 -6
  10. data/lib/pandarus/models/assignment_override.rb +11 -11
  11. data/lib/pandarus/models/avatar.rb +24 -0
  12. data/lib/pandarus/models/collaborator.rb +3 -3
  13. data/lib/pandarus/models/collection.rb +5 -5
  14. data/lib/pandarus/models/collection_item.rb +15 -15
  15. data/lib/pandarus/models/column_datum.rb +2 -2
  16. data/lib/pandarus/models/comm_message.rb +10 -10
  17. data/lib/pandarus/models/communication_channel.rb +6 -6
  18. data/lib/pandarus/models/completion_requirement.rb +19 -0
  19. data/lib/pandarus/models/conference.rb +12 -12
  20. data/lib/pandarus/models/conference_recording.rb +21 -0
  21. data/lib/pandarus/models/content_details.rb +20 -0
  22. data/lib/pandarus/models/content_export.rb +7 -7
  23. data/lib/pandarus/models/content_migration.rb +11 -11
  24. data/lib/pandarus/models/conversation.rb +32 -0
  25. data/lib/pandarus/models/course.rb +19 -19
  26. data/lib/pandarus/models/course_event.rb +21 -0
  27. data/lib/pandarus/models/course_event_link.rb +19 -0
  28. data/lib/pandarus/models/custom_column.rb +2 -2
  29. data/lib/pandarus/models/day.rb +2 -2
  30. data/lib/pandarus/models/discovery_url.rb +1 -1
  31. data/lib/pandarus/models/enrollment.rb +15 -15
  32. data/lib/pandarus/models/external_feed.rb +6 -6
  33. data/lib/pandarus/models/external_tool_tag_attributes.rb +19 -0
  34. data/lib/pandarus/models/favorite.rb +2 -2
  35. data/lib/pandarus/models/feature.rb +6 -6
  36. data/lib/pandarus/models/feature_flag.rb +5 -5
  37. data/lib/pandarus/models/file.rb +12 -12
  38. data/lib/pandarus/models/folder.rb +15 -15
  39. data/lib/pandarus/models/grade.rb +21 -0
  40. data/lib/pandarus/models/grade_change_event.rb +9 -8
  41. data/lib/pandarus/models/grade_change_event_links.rb +21 -0
  42. data/lib/pandarus/models/grader.rb +3 -3
  43. data/lib/pandarus/models/grading_rules.rb +19 -0
  44. data/lib/pandarus/models/group.rb +12 -12
  45. data/lib/pandarus/models/group_category.rb +8 -8
  46. data/lib/pandarus/models/group_membership.rb +4 -4
  47. data/lib/pandarus/models/lock_info.rb +21 -0
  48. data/lib/pandarus/models/migration_issue.rb +10 -10
  49. data/lib/pandarus/models/migrator.rb +3 -3
  50. data/lib/pandarus/models/module.rb +11 -11
  51. data/lib/pandarus/models/module_item.rb +13 -13
  52. data/lib/pandarus/models/module_item_sequence.rb +2 -2
  53. data/lib/pandarus/models/notification_preference.rb +4 -4
  54. data/lib/pandarus/models/outcome.rb +10 -10
  55. data/lib/pandarus/models/outcome_group.rb +11 -11
  56. data/lib/pandarus/models/outcome_link.rb +5 -5
  57. data/lib/pandarus/models/page.rb +9 -9
  58. data/lib/pandarus/models/page_revision.rb +6 -6
  59. data/lib/pandarus/models/page_view.rb +12 -12
  60. data/lib/pandarus/models/page_view_links.rb +6 -4
  61. data/lib/pandarus/models/profile.rb +29 -0
  62. data/lib/pandarus/models/progress.rb +11 -11
  63. data/lib/pandarus/models/quiz.rb +22 -22
  64. data/lib/pandarus/models/quiz_question.rb +7 -7
  65. data/lib/pandarus/models/quiz_report.rb +7 -7
  66. data/lib/pandarus/models/report.rb +6 -6
  67. data/lib/pandarus/models/report_parameters.rb +32 -0
  68. data/lib/pandarus/models/role.rb +5 -5
  69. data/lib/pandarus/models/rubric_criteria.rb +20 -0
  70. data/lib/pandarus/models/rubric_rating.rb +19 -0
  71. data/lib/pandarus/models/section.rb +7 -7
  72. data/lib/pandarus/models/sis_import.rb +7 -7
  73. data/lib/pandarus/models/sis_import_counts.rb +27 -0
  74. data/lib/pandarus/models/sis_import_data.rb +19 -0
  75. data/lib/pandarus/models/submission_history.rb +2 -2
  76. data/lib/pandarus/models/submission_version.rb +22 -22
  77. data/lib/pandarus/models/tab.rb +23 -0
  78. data/lib/pandarus/models/term.rb +20 -0
  79. data/lib/pandarus/models/turnitin_settings.rb +24 -0
  80. data/lib/pandarus/models/user.rb +10 -10
  81. data/lib/pandarus/v1_api.rb +402 -19
  82. data/lib/pandarus/version.rb +1 -1
  83. data/pandarus.gemspec +1 -1
  84. data/spec/api_base_spec.rb +1 -1
  85. data/spec/user_spec.rb +38 -0
  86. metadata +31 -6
@@ -0,0 +1,19 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class RubricRating < ModelBase
6
+ attr_accessor :points, :id, :description
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :points => {:external => "points", :container => false, :type => "Integer"},
12
+ :id => {:external => "id", :container => false, :type => "String"},
13
+ :description => {:external => "description", :container => false, :type => "String"}
14
+
15
+ }
16
+ end
17
+ end
18
+ end
19
+
@@ -8,13 +8,13 @@ module Pandarus
8
8
 
9
9
  def self.attribute_map
10
10
  {
11
- :id => {:external => "id", :container => false, :type => nil},
12
- :name => {:external => "name", :container => false, :type => nil},
13
- :sis_section_id => {:external => "sis_section_id", :container => false, :type => nil},
14
- :course_id => {:external => "course_id", :container => false, :type => nil},
15
- :start_at => {:external => "start_at", :container => false, :type => nil},
16
- :end_at => {:external => "end_at", :container => false, :type => nil},
17
- :nonxlist_course_id => {:external => "nonxlist_course_id", :container => false, :type => nil}
11
+ :id => {:external => "id", :container => false, :type => "Integer"},
12
+ :name => {:external => "name", :container => false, :type => "String"},
13
+ :sis_section_id => {:external => "sis_section_id", :container => false, :type => "String"},
14
+ :course_id => {:external => "course_id", :container => false, :type => "Integer"},
15
+ :start_at => {:external => "start_at", :container => false, :type => "DateTime"},
16
+ :end_at => {:external => "end_at", :container => false, :type => "DateTime"},
17
+ :nonxlist_course_id => {:external => "nonxlist_course_id", :container => false, :type => "Integer"}
18
18
 
19
19
  }
20
20
  end
@@ -8,13 +8,13 @@ module Pandarus
8
8
 
9
9
  def self.attribute_map
10
10
  {
11
- :id => {:external => "id", :container => false, :type => nil},
12
- :created_at => {:external => "created_at", :container => false, :type => nil},
13
- :ended_at => {:external => "ended_at", :container => false, :type => nil},
14
- :updated_at => {:external => "updated_at", :container => false, :type => nil},
15
- :workflow_state => {:external => "workflow_state", :container => false, :type => nil},
16
- :data => {:external => "data", :container => false, :type => nil},
17
- :progress => {:external => "progress", :container => false, :type => nil}
11
+ :id => {:external => "id", :container => false, :type => "Integer"},
12
+ :created_at => {:external => "created_at", :container => false, :type => "DateTime"},
13
+ :ended_at => {:external => "ended_at", :container => false, :type => "DateTime"},
14
+ :updated_at => {:external => "updated_at", :container => false, :type => "DateTime"},
15
+ :workflow_state => {:external => "workflow_state", :container => false, :type => "String"},
16
+ :data => {:external => "data", :container => false, :type => "SisImportData"},
17
+ :progress => {:external => "progress", :container => false, :type => "String"}
18
18
 
19
19
  }
20
20
  end
@@ -0,0 +1,27 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class SisImportCounts < ModelBase
6
+ attr_accessor :accounts, :terms, :abstract_courses, :courses, :sections, :xlists, :users, :enrollments, :groups, :group_memberships, :grade_publishing_results
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :accounts => {:external => "accounts", :container => false, :type => "Integer"},
12
+ :terms => {:external => "terms", :container => false, :type => "Integer"},
13
+ :abstract_courses => {:external => "abstract_courses", :container => false, :type => "Integer"},
14
+ :courses => {:external => "courses", :container => false, :type => "Integer"},
15
+ :sections => {:external => "sections", :container => false, :type => "Integer"},
16
+ :xlists => {:external => "xlists", :container => false, :type => "Integer"},
17
+ :users => {:external => "users", :container => false, :type => "Integer"},
18
+ :enrollments => {:external => "enrollments", :container => false, :type => "Integer"},
19
+ :groups => {:external => "groups", :container => false, :type => "Integer"},
20
+ :group_memberships => {:external => "group_memberships", :container => false, :type => "Integer"},
21
+ :grade_publishing_results => {:external => "grade_publishing_results", :container => false, :type => "Integer"}
22
+
23
+ }
24
+ end
25
+ end
26
+ end
27
+
@@ -0,0 +1,19 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class SisImportData < ModelBase
6
+ attr_accessor :import_type, :supplied_batches, :counts
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :import_type => {:external => "import_type", :container => false, :type => "String"},
12
+ :supplied_batches => {:external => "supplied_batches", :container => true, :type => "String"},
13
+ :counts => {:external => "counts", :container => false, :type => "SisImportCounts"}
14
+
15
+ }
16
+ end
17
+ end
18
+ end
19
+
@@ -8,8 +8,8 @@ module Pandarus
8
8
 
9
9
  def self.attribute_map
10
10
  {
11
- :submission_id => {:external => "submission_id", :container => false, :type => nil},
12
- :versions => {:external => "versions", :container => false, :type => nil}
11
+ :submission_id => {:external => "submission_id", :container => false, :type => "Integer"},
12
+ :versions => {:external => "versions", :container => true, :type => "Integer"}
13
13
 
14
14
  }
15
15
  end
@@ -8,29 +8,29 @@ module Pandarus
8
8
 
9
9
  def self.attribute_map
10
10
  {
11
- :assignment_id => {:external => "assignment_id", :container => false, :type => nil},
12
- :assignment_name => {:external => "assignment_name", :container => false, :type => nil},
13
- :body => {:external => "body", :container => false, :type => nil},
14
- :current_grade => {:external => "current_grade", :container => false, :type => nil},
15
- :current_graded_at => {:external => "current_graded_at", :container => false, :type => "Date"},
16
- :current_grader => {:external => "current_grader", :container => false, :type => nil},
11
+ :assignment_id => {:external => "assignment_id", :container => false, :type => "Integer"},
12
+ :assignment_name => {:external => "assignment_name", :container => false, :type => "String"},
13
+ :body => {:external => "body", :container => false, :type => "String"},
14
+ :current_grade => {:external => "current_grade", :container => false, :type => "String"},
15
+ :current_graded_at => {:external => "current_graded_at", :container => false, :type => "DateTime"},
16
+ :current_grader => {:external => "current_grader", :container => false, :type => "String"},
17
17
  :grade_matches_current_submission => {:external => "grade_matches_current_submission", :container => false, :type => nil},
18
- :graded_at => {:external => "graded_at", :container => false, :type => "Date"},
19
- :grader => {:external => "grader", :container => false, :type => nil},
20
- :grader_id => {:external => "grader_id", :container => false, :type => nil},
21
- :id => {:external => "id", :container => false, :type => nil},
22
- :new_grade => {:external => "new_grade", :container => false, :type => nil},
23
- :new_graded_at => {:external => "new_graded_at", :container => false, :type => "Date"},
24
- :new_grader => {:external => "new_grader", :container => false, :type => nil},
25
- :previous_grade => {:external => "previous_grade", :container => false, :type => nil},
26
- :previous_graded_at => {:external => "previous_graded_at", :container => false, :type => "Date"},
27
- :previous_grader => {:external => "previous_grader", :container => false, :type => nil},
28
- :score => {:external => "score", :container => false, :type => nil},
29
- :user_name => {:external => "user_name", :container => false, :type => nil},
30
- :submission_type => {:external => "submission_type", :container => false, :type => nil},
31
- :url => {:external => "url", :container => false, :type => nil},
32
- :user_id => {:external => "user_id", :container => false, :type => nil},
33
- :workflow_state => {:external => "workflow_state", :container => false, :type => nil}
18
+ :graded_at => {:external => "graded_at", :container => false, :type => "DateTime"},
19
+ :grader => {:external => "grader", :container => false, :type => "String"},
20
+ :grader_id => {:external => "grader_id", :container => false, :type => "Integer"},
21
+ :id => {:external => "id", :container => false, :type => "Integer"},
22
+ :new_grade => {:external => "new_grade", :container => false, :type => "String"},
23
+ :new_graded_at => {:external => "new_graded_at", :container => false, :type => "DateTime"},
24
+ :new_grader => {:external => "new_grader", :container => false, :type => "String"},
25
+ :previous_grade => {:external => "previous_grade", :container => false, :type => "String"},
26
+ :previous_graded_at => {:external => "previous_graded_at", :container => false, :type => "DateTime"},
27
+ :previous_grader => {:external => "previous_grader", :container => false, :type => "String"},
28
+ :score => {:external => "score", :container => false, :type => "Integer"},
29
+ :user_name => {:external => "user_name", :container => false, :type => "String"},
30
+ :submission_type => {:external => "submission_type", :container => false, :type => "String"},
31
+ :url => {:external => "url", :container => false, :type => "String"},
32
+ :user_id => {:external => "user_id", :container => false, :type => "Integer"},
33
+ :workflow_state => {:external => "workflow_state", :container => false, :type => "String"}
34
34
 
35
35
  }
36
36
  end
@@ -0,0 +1,23 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class Tab < ModelBase
6
+ attr_accessor :html_url, :id, :label, :type, :hidden, :visibility, :position
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :html_url => {:external => "html_url", :container => false, :type => "String"},
12
+ :id => {:external => "id", :container => false, :type => "String"},
13
+ :label => {:external => "label", :container => false, :type => "String"},
14
+ :type => {:external => "type", :container => false, :type => "String"},
15
+ :hidden => {:external => "hidden", :container => false, :type => nil},
16
+ :visibility => {:external => "visibility", :container => false, :type => "String"},
17
+ :position => {:external => "position", :container => false, :type => "Integer"}
18
+
19
+ }
20
+ end
21
+ end
22
+ end
23
+
@@ -0,0 +1,20 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class Term < ModelBase
6
+ attr_accessor :id, :name, :start_at, :end_at
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :id => {:external => "id", :container => false, :type => "Integer"},
12
+ :name => {:external => "name", :container => false, :type => "String"},
13
+ :start_at => {:external => "start_at", :container => false, :type => "DateTime"},
14
+ :end_at => {:external => "end_at", :container => false, :type => "DateTime"}
15
+
16
+ }
17
+ end
18
+ end
19
+ end
20
+
@@ -0,0 +1,24 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class TurnitinSettings < ModelBase
6
+ attr_accessor :originality_report_visibility, :s_paper_check, :internet_check, :journal_check, :exclude_biblio, :exclude_quoted, :exclude_small_matches_type, :exclude_small_matches_value
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :originality_report_visibility => {:external => "originality_report_visibility", :container => false, :type => "String"},
12
+ :s_paper_check => {:external => "s_paper_check", :container => false, :type => nil},
13
+ :internet_check => {:external => "internet_check", :container => false, :type => nil},
14
+ :journal_check => {:external => "journal_check", :container => false, :type => nil},
15
+ :exclude_biblio => {:external => "exclude_biblio", :container => false, :type => nil},
16
+ :exclude_quoted => {:external => "exclude_quoted", :container => false, :type => nil},
17
+ :exclude_small_matches_type => {:external => "exclude_small_matches_type", :container => false, :type => "String"},
18
+ :exclude_small_matches_value => {:external => "exclude_small_matches_value", :container => false, :type => "Integer"}
19
+
20
+ }
21
+ end
22
+ end
23
+ end
24
+
@@ -9,18 +9,18 @@ module Pandarus
9
9
  def self.attribute_map
10
10
  {
11
11
  :id => {:external => "id", :container => false, :type => nil},
12
- :name => {:external => "name", :container => false, :type => nil},
13
- :sortable_name => {:external => "sortable_name", :container => false, :type => nil},
14
- :short_name => {:external => "short_name", :container => false, :type => nil},
15
- :sis_user_id => {:external => "sis_user_id", :container => false, :type => nil},
16
- :sis_login_id => {:external => "sis_login_id", :container => false, :type => nil},
17
- :login_id => {:external => "login_id", :container => false, :type => nil},
18
- :avatar_url => {:external => "avatar_url", :container => false, :type => nil},
12
+ :name => {:external => "name", :container => false, :type => "String"},
13
+ :sortable_name => {:external => "sortable_name", :container => false, :type => "String"},
14
+ :short_name => {:external => "short_name", :container => false, :type => "String"},
15
+ :sis_user_id => {:external => "sis_user_id", :container => false, :type => "String"},
16
+ :sis_login_id => {:external => "sis_login_id", :container => false, :type => "String"},
17
+ :login_id => {:external => "login_id", :container => false, :type => "String"},
18
+ :avatar_url => {:external => "avatar_url", :container => false, :type => "String"},
19
19
  :enrollments => {:external => "enrollments", :container => true, :type => "Enrollment"},
20
- :email => {:external => "email", :container => false, :type => nil},
21
- :locale => {:external => "locale", :container => false, :type => nil},
20
+ :email => {:external => "email", :container => false, :type => "String"},
21
+ :locale => {:external => "locale", :container => false, :type => "String"},
22
22
  :last_login => {:external => "last_login", :container => false, :type => "Date"},
23
- :time_zone => {:external => "time_zone", :container => false, :type => nil}
23
+ :time_zone => {:external => "time_zone", :container => false, :type => "String"}
24
24
 
25
25
  }
26
26
  end
@@ -3,7 +3,7 @@ require "pandarus/models"
3
3
 
4
4
  # This is an autogenerated file. See readme.md.
5
5
  module Pandarus
6
- class V1_api < APIBase
6
+ class V1 < APIBase
7
7
 
8
8
  self.prefix = "http://canvas.instructure.com/api"
9
9
 
@@ -323,7 +323,7 @@ module Pandarus
323
323
  end
324
324
  response = mixed_request(:post, path, query_params, form_params, headers)
325
325
  page_params_store(:post, path)
326
- report.new(response)
326
+ Report.new(response)
327
327
  end
328
328
  def index_of_reports(account_id,report,opts={})
329
329
  query_param_keys = [
@@ -459,8 +459,7 @@ module Pandarus
459
459
  end
460
460
  response = mixed_request(:get, path, query_params, form_params, headers)
461
461
  page_params_store(:get, path)
462
- response
463
-
462
+ response.map {|response|Account.new(response)}
464
463
  end
465
464
  def get_single_account(id,opts={})
466
465
  query_param_keys = [
@@ -490,8 +489,7 @@ module Pandarus
490
489
  end
491
490
  response = mixed_request(:get, path, query_params, form_params, headers)
492
491
  page_params_store(:get, path)
493
- response
494
-
492
+ Account.new(response)
495
493
  end
496
494
  def get_the_sub_accounts_of_account(account_id,opts={})
497
495
  query_param_keys = [
@@ -521,8 +519,7 @@ module Pandarus
521
519
  end
522
520
  response = mixed_request(:get, path, query_params, form_params, headers)
523
521
  page_params_store(:get, path)
524
- response
525
-
522
+ response.map {|response|Account.new(response)}
526
523
  end
527
524
  def list_active_courses_in_account(account_id,opts={})
528
525
  query_param_keys = [
@@ -533,7 +530,8 @@ module Pandarus
533
530
  :by_subaccounts,
534
531
  :hide_enrollmentless_courses,
535
532
  :state,
536
- :enrollment_term_id
533
+ :enrollment_term_id,
534
+ :search_term
537
535
  ]
538
536
 
539
537
  form_param_keys = [
@@ -4000,8 +3998,7 @@ module Pandarus
4000
3998
  end
4001
3999
  response = mixed_request(:get, path, query_params, form_params, headers)
4002
4000
  page_params_store(:get, path)
4003
- response
4004
-
4001
+ response.map {|response|Conversation.new(response)}
4005
4002
  end
4006
4003
  def create_conversation(recipients,body,group_conversation,attachment_ids,media_comment_id,media_comment_type,mode,opts={})
4007
4004
  query_param_keys = [
@@ -4058,7 +4055,7 @@ module Pandarus
4058
4055
  response
4059
4056
 
4060
4057
  end
4061
- def x(opts={})
4058
+ def get_running_batches(opts={})
4062
4059
  query_param_keys = [
4063
4060
 
4064
4061
  ]
@@ -4441,6 +4438,37 @@ module Pandarus
4441
4438
  response
4442
4439
 
4443
4440
  end
4441
+ def query_by_course(course_id,opts={})
4442
+ query_param_keys = [
4443
+ :start_time,
4444
+ :end_time
4445
+ ]
4446
+
4447
+ form_param_keys = [
4448
+
4449
+ ]
4450
+
4451
+ # verify existence of params
4452
+ raise "course_id is required" if course_id.nil?
4453
+ # set default values and merge with input
4454
+ options = underscored_merge_opts(opts,
4455
+ :course_id => course_id
4456
+ )
4457
+
4458
+ # resource path
4459
+ path = path_replace("/v1/audit/course/courses/{course_id}",
4460
+ :course_id => course_id)
4461
+ headers = nil
4462
+ form_params = select_params(options, form_param_keys)
4463
+ query_params = select_params(options, query_param_keys)
4464
+ if opts[:next_page]
4465
+ pagination_params = page_params_load(:get, path)
4466
+ query_params.merge! pagination_params if pagination_params
4467
+ end
4468
+ response = mixed_request(:get, path, query_params, form_params, headers)
4469
+ page_params_store(:get, path)
4470
+ response.map {|response|CourseEvent.new(response)}
4471
+ end
4444
4472
  def list_your_courses(include,opts={})
4445
4473
  query_param_keys = [
4446
4474
  :enrollment_type,
@@ -4499,6 +4527,7 @@ module Pandarus
4499
4527
  :course__hide_final_grades__,
4500
4528
  :course__apply_assignment_group_weights__,
4501
4529
  :offer,
4530
+ :course__syllabus_body__,
4502
4531
 
4503
4532
  ]
4504
4533
 
@@ -4686,7 +4715,7 @@ module Pandarus
4686
4715
  page_params_store(:get, path)
4687
4716
  response.map {|response|User.new(response)}
4688
4717
  end
4689
- def x(course_id,id,opts={})
4718
+ def get_single_user(course_id,id,opts={})
4690
4719
  query_param_keys = [
4691
4720
 
4692
4721
  ]
@@ -7817,6 +7846,7 @@ module Pandarus
7817
7846
  :enrollment__course_section_id__,
7818
7847
  :enrollment__limit_privileges_to_course_section__,
7819
7848
  :enrollment__notify__,
7849
+ :enrollment__self_enrollment_code__,
7820
7850
 
7821
7851
  ]
7822
7852
 
@@ -7858,6 +7888,7 @@ module Pandarus
7858
7888
  :enrollment__course_section_id__,
7859
7889
  :enrollment__limit_privileges_to_course_section__,
7860
7890
  :enrollment__notify__,
7891
+ :enrollment__self_enrollment_code__,
7861
7892
 
7862
7893
  ]
7863
7894
 
@@ -10185,7 +10216,7 @@ module Pandarus
10185
10216
  end
10186
10217
  response = mixed_request(:get, path, query_params, form_params, headers)
10187
10218
  page_params_store(:get, path)
10188
- response.map {|response|Groups.new(response)}
10219
+ response.map {|response|Group.new(response)}
10189
10220
  end
10190
10221
  def list_users_in_group_category(group_category_id,opts={})
10191
10222
  query_param_keys = [
@@ -12022,6 +12053,126 @@ module Pandarus
12022
12053
  response
12023
12054
 
12024
12055
  end
12056
+ def get_all_outcome_groups_for_context_accounts(account_id,opts={})
12057
+ query_param_keys = [
12058
+
12059
+ ]
12060
+
12061
+ form_param_keys = [
12062
+
12063
+ ]
12064
+
12065
+ # verify existence of params
12066
+ raise "account_id is required" if account_id.nil?
12067
+ # set default values and merge with input
12068
+ options = underscored_merge_opts(opts,
12069
+ :account_id => account_id
12070
+ )
12071
+
12072
+ # resource path
12073
+ path = path_replace("/v1/accounts/{account_id}/outcome_groups",
12074
+ :account_id => account_id)
12075
+ headers = nil
12076
+ form_params = select_params(options, form_param_keys)
12077
+ query_params = select_params(options, query_param_keys)
12078
+ if opts[:next_page]
12079
+ pagination_params = page_params_load(:get, path)
12080
+ query_params.merge! pagination_params if pagination_params
12081
+ end
12082
+ response = mixed_request(:get, path, query_params, form_params, headers)
12083
+ page_params_store(:get, path)
12084
+ response.map {|response|OutcomeGroup.new(response)}
12085
+ end
12086
+ def get_all_outcome_groups_for_context_courses(course_id,opts={})
12087
+ query_param_keys = [
12088
+
12089
+ ]
12090
+
12091
+ form_param_keys = [
12092
+
12093
+ ]
12094
+
12095
+ # verify existence of params
12096
+ raise "course_id is required" if course_id.nil?
12097
+ # set default values and merge with input
12098
+ options = underscored_merge_opts(opts,
12099
+ :course_id => course_id
12100
+ )
12101
+
12102
+ # resource path
12103
+ path = path_replace("/v1/courses/{course_id}/outcome_groups",
12104
+ :course_id => course_id)
12105
+ headers = nil
12106
+ form_params = select_params(options, form_param_keys)
12107
+ query_params = select_params(options, query_param_keys)
12108
+ if opts[:next_page]
12109
+ pagination_params = page_params_load(:get, path)
12110
+ query_params.merge! pagination_params if pagination_params
12111
+ end
12112
+ response = mixed_request(:get, path, query_params, form_params, headers)
12113
+ page_params_store(:get, path)
12114
+ response.map {|response|OutcomeGroup.new(response)}
12115
+ end
12116
+ def get_all_outcome_links_for_context_accounts(account_id,opts={})
12117
+ query_param_keys = [
12118
+
12119
+ ]
12120
+
12121
+ form_param_keys = [
12122
+
12123
+ ]
12124
+
12125
+ # verify existence of params
12126
+ raise "account_id is required" if account_id.nil?
12127
+ # set default values and merge with input
12128
+ options = underscored_merge_opts(opts,
12129
+ :account_id => account_id
12130
+ )
12131
+
12132
+ # resource path
12133
+ path = path_replace("/v1/accounts/{account_id}/outcome_group_links",
12134
+ :account_id => account_id)
12135
+ headers = nil
12136
+ form_params = select_params(options, form_param_keys)
12137
+ query_params = select_params(options, query_param_keys)
12138
+ if opts[:next_page]
12139
+ pagination_params = page_params_load(:get, path)
12140
+ query_params.merge! pagination_params if pagination_params
12141
+ end
12142
+ response = mixed_request(:get, path, query_params, form_params, headers)
12143
+ page_params_store(:get, path)
12144
+ response.map {|response|OutcomeLink.new(response)}
12145
+ end
12146
+ def get_all_outcome_links_for_context_courses(course_id,opts={})
12147
+ query_param_keys = [
12148
+
12149
+ ]
12150
+
12151
+ form_param_keys = [
12152
+
12153
+ ]
12154
+
12155
+ # verify existence of params
12156
+ raise "course_id is required" if course_id.nil?
12157
+ # set default values and merge with input
12158
+ options = underscored_merge_opts(opts,
12159
+ :course_id => course_id
12160
+ )
12161
+
12162
+ # resource path
12163
+ path = path_replace("/v1/courses/{course_id}/outcome_group_links",
12164
+ :course_id => course_id)
12165
+ headers = nil
12166
+ form_params = select_params(options, form_param_keys)
12167
+ query_params = select_params(options, query_param_keys)
12168
+ if opts[:next_page]
12169
+ pagination_params = page_params_load(:get, path)
12170
+ query_params.merge! pagination_params if pagination_params
12171
+ end
12172
+ response = mixed_request(:get, path, query_params, form_params, headers)
12173
+ page_params_store(:get, path)
12174
+ response.map {|response|OutcomeLink.new(response)}
12175
+ end
12025
12176
  def show_outcome_group_global(id,opts={})
12026
12177
  query_param_keys = [
12027
12178
 
@@ -13079,7 +13230,8 @@ module Pandarus
13079
13230
  query_param_keys = [
13080
13231
  :aggregate,
13081
13232
  :user_ids,
13082
- :outcome_ids
13233
+ :outcome_ids,
13234
+ :include
13083
13235
  ]
13084
13236
 
13085
13237
  form_param_keys = [
@@ -14304,6 +14456,199 @@ module Pandarus
14304
14456
  page_params_store(:post, path)
14305
14457
  response
14306
14458
 
14459
+ end
14460
+ def get_all_quiz_submission_questions(quiz_submission_id,include,opts={})
14461
+ query_param_keys = [
14462
+ :include
14463
+ ]
14464
+
14465
+ form_param_keys = [
14466
+
14467
+ ]
14468
+
14469
+ # verify existence of params
14470
+ raise "quiz_submission_id is required" if quiz_submission_id.nil?
14471
+ raise "include is required" if include.nil?
14472
+ # set default values and merge with input
14473
+ options = underscored_merge_opts(opts,
14474
+ :quiz_submission_id => quiz_submission_id,
14475
+ :include => include
14476
+ )
14477
+
14478
+ # resource path
14479
+ path = path_replace("/v1/quiz_submissions/{quiz_submission_id}/questions",
14480
+ :quiz_submission_id => quiz_submission_id)
14481
+ headers = nil
14482
+ form_params = select_params(options, form_param_keys)
14483
+ query_params = select_params(options, query_param_keys)
14484
+ if opts[:next_page]
14485
+ pagination_params = page_params_load(:get, path)
14486
+ query_params.merge! pagination_params if pagination_params
14487
+ end
14488
+ response = mixed_request(:get, path, query_params, form_params, headers)
14489
+ page_params_store(:get, path)
14490
+ response
14491
+
14492
+ end
14493
+ def get_single_quiz_submission_question(quiz_submission_id,id,include,opts={})
14494
+ query_param_keys = [
14495
+ :include
14496
+ ]
14497
+
14498
+ form_param_keys = [
14499
+
14500
+ ]
14501
+
14502
+ # verify existence of params
14503
+ raise "quiz_submission_id is required" if quiz_submission_id.nil?
14504
+ raise "id is required" if id.nil?
14505
+ raise "include is required" if include.nil?
14506
+ # set default values and merge with input
14507
+ options = underscored_merge_opts(opts,
14508
+ :quiz_submission_id => quiz_submission_id,
14509
+ :id => id,
14510
+ :include => include
14511
+ )
14512
+
14513
+ # resource path
14514
+ path = path_replace("/v1/quiz_submissions/{quiz_submission_id}/questions/{id}",
14515
+ :quiz_submission_id => quiz_submission_id,
14516
+ :id => id)
14517
+ headers = nil
14518
+ form_params = select_params(options, form_param_keys)
14519
+ query_params = select_params(options, query_param_keys)
14520
+ if opts[:next_page]
14521
+ pagination_params = page_params_load(:get, path)
14522
+ query_params.merge! pagination_params if pagination_params
14523
+ end
14524
+ response = mixed_request(:get, path, query_params, form_params, headers)
14525
+ page_params_store(:get, path)
14526
+ response
14527
+
14528
+ end
14529
+ def answering_question(quiz_submission_id,id,attempt,validation_token,opts={})
14530
+ query_param_keys = [
14531
+
14532
+ ]
14533
+
14534
+ form_param_keys = [
14535
+ :attempt,
14536
+ :validation_token,
14537
+ :access_code,
14538
+ :answer,
14539
+
14540
+ ]
14541
+
14542
+ # verify existence of params
14543
+ raise "quiz_submission_id is required" if quiz_submission_id.nil?
14544
+ raise "id is required" if id.nil?
14545
+ raise "attempt is required" if attempt.nil?
14546
+ raise "validation_token is required" if validation_token.nil?
14547
+ # set default values and merge with input
14548
+ options = underscored_merge_opts(opts,
14549
+ :quiz_submission_id => quiz_submission_id,
14550
+ :id => id,
14551
+ :attempt => attempt,
14552
+ :validation_token => validation_token
14553
+ )
14554
+
14555
+ # resource path
14556
+ path = path_replace("/v1/quiz_submissions/{quiz_submission_id}/questions/{id}",
14557
+ :quiz_submission_id => quiz_submission_id,
14558
+ :id => id)
14559
+ headers = nil
14560
+ form_params = select_params(options, form_param_keys)
14561
+ query_params = select_params(options, query_param_keys)
14562
+ if opts[:next_page]
14563
+ pagination_params = page_params_load(:put, path)
14564
+ query_params.merge! pagination_params if pagination_params
14565
+ end
14566
+ response = mixed_request(:put, path, query_params, form_params, headers)
14567
+ page_params_store(:put, path)
14568
+ response
14569
+
14570
+ end
14571
+ def flagging_question(quiz_submission_id,id,attempt,validation_token,opts={})
14572
+ query_param_keys = [
14573
+
14574
+ ]
14575
+
14576
+ form_param_keys = [
14577
+ :attempt,
14578
+ :validation_token,
14579
+ :access_code,
14580
+
14581
+ ]
14582
+
14583
+ # verify existence of params
14584
+ raise "quiz_submission_id is required" if quiz_submission_id.nil?
14585
+ raise "id is required" if id.nil?
14586
+ raise "attempt is required" if attempt.nil?
14587
+ raise "validation_token is required" if validation_token.nil?
14588
+ # set default values and merge with input
14589
+ options = underscored_merge_opts(opts,
14590
+ :quiz_submission_id => quiz_submission_id,
14591
+ :id => id,
14592
+ :attempt => attempt,
14593
+ :validation_token => validation_token
14594
+ )
14595
+
14596
+ # resource path
14597
+ path = path_replace("/v1/quiz_submissions/{quiz_submission_id}/questions/{id}/flag",
14598
+ :quiz_submission_id => quiz_submission_id,
14599
+ :id => id)
14600
+ headers = nil
14601
+ form_params = select_params(options, form_param_keys)
14602
+ query_params = select_params(options, query_param_keys)
14603
+ if opts[:next_page]
14604
+ pagination_params = page_params_load(:put, path)
14605
+ query_params.merge! pagination_params if pagination_params
14606
+ end
14607
+ response = mixed_request(:put, path, query_params, form_params, headers)
14608
+ page_params_store(:put, path)
14609
+ response
14610
+
14611
+ end
14612
+ def unflagging_question(quiz_submission_id,id,attempt,validation_token,opts={})
14613
+ query_param_keys = [
14614
+
14615
+ ]
14616
+
14617
+ form_param_keys = [
14618
+ :attempt,
14619
+ :validation_token,
14620
+ :access_code,
14621
+
14622
+ ]
14623
+
14624
+ # verify existence of params
14625
+ raise "quiz_submission_id is required" if quiz_submission_id.nil?
14626
+ raise "id is required" if id.nil?
14627
+ raise "attempt is required" if attempt.nil?
14628
+ raise "validation_token is required" if validation_token.nil?
14629
+ # set default values and merge with input
14630
+ options = underscored_merge_opts(opts,
14631
+ :quiz_submission_id => quiz_submission_id,
14632
+ :id => id,
14633
+ :attempt => attempt,
14634
+ :validation_token => validation_token
14635
+ )
14636
+
14637
+ # resource path
14638
+ path = path_replace("/v1/quiz_submissions/{quiz_submission_id}/questions/{id}/unflag",
14639
+ :quiz_submission_id => quiz_submission_id,
14640
+ :id => id)
14641
+ headers = nil
14642
+ form_params = select_params(options, form_param_keys)
14643
+ query_params = select_params(options, query_param_keys)
14644
+ if opts[:next_page]
14645
+ pagination_params = page_params_load(:put, path)
14646
+ query_params.merge! pagination_params if pagination_params
14647
+ end
14648
+ response = mixed_request(:put, path, query_params, form_params, headers)
14649
+ page_params_store(:put, path)
14650
+ response
14651
+
14307
14652
  end
14308
14653
  def get_all_quiz_submissions(course_id,quiz_id,include,opts={})
14309
14654
  query_param_keys = [
@@ -16300,6 +16645,45 @@ module Pandarus
16300
16645
  response
16301
16646
 
16302
16647
  end
16648
+ def update_tab_for_course(course_id,tab_id,position,hidden,opts={})
16649
+ query_param_keys = [
16650
+
16651
+ ]
16652
+
16653
+ form_param_keys = [
16654
+ :position,
16655
+ :hidden,
16656
+
16657
+ ]
16658
+
16659
+ # verify existence of params
16660
+ raise "course_id is required" if course_id.nil?
16661
+ raise "tab_id is required" if tab_id.nil?
16662
+ raise "position is required" if position.nil?
16663
+ raise "hidden is required" if hidden.nil?
16664
+ # set default values and merge with input
16665
+ options = underscored_merge_opts(opts,
16666
+ :course_id => course_id,
16667
+ :tab_id => tab_id,
16668
+ :position => position,
16669
+ :hidden => hidden
16670
+ )
16671
+
16672
+ # resource path
16673
+ path = path_replace("/v1/courses/{course_id}/tabs/{tab_id}",
16674
+ :course_id => course_id,
16675
+ :tab_id => tab_id)
16676
+ headers = nil
16677
+ form_params = select_params(options, form_param_keys)
16678
+ query_params = select_params(options, query_param_keys)
16679
+ if opts[:next_page]
16680
+ pagination_params = page_params_load(:put, path)
16681
+ query_params.merge! pagination_params if pagination_params
16682
+ end
16683
+ response = mixed_request(:put, path, query_params, form_params, headers)
16684
+ page_params_store(:put, path)
16685
+ Tab.new(response)
16686
+ end
16303
16687
  def list_users_in_account(account_id,opts={})
16304
16688
  query_param_keys = [
16305
16689
  :search_term
@@ -16584,6 +16968,7 @@ module Pandarus
16584
16968
  :user__time_zone__,
16585
16969
  :user__locale__,
16586
16970
  :user__birthdate__,
16971
+ :user__terms_of_use__,
16587
16972
  :pseudonym__unique_id__,
16588
16973
  :pseudonym__password__,
16589
16974
  :pseudonym__sis_user_id__,
@@ -16943,8 +17328,7 @@ module Pandarus
16943
17328
  end
16944
17329
  response = mixed_request(:get, path, query_params, form_params, headers)
16945
17330
  page_params_store(:get, path)
16946
- response
16947
-
17331
+ Profile.new(response)
16948
17332
  end
16949
17333
  def list_avatar_options(user_id,opts={})
16950
17334
  query_param_keys = [
@@ -16974,8 +17358,7 @@ module Pandarus
16974
17358
  end
16975
17359
  response = mixed_request(:get, path, query_params, form_params, headers)
16976
17360
  page_params_store(:get, path)
16977
- response
16978
-
17361
+ response.map {|response|Avatar.new(response)}
16979
17362
  end
16980
17363
  def list_user_page_views(user_id,opts={})
16981
17364
  query_param_keys = [