pandarus 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea1afaaa6919f9eed893eb274a1fe527421bf5b8
4
- data.tar.gz: 77706c514f1af00058f5ac2795a82c0d861c5fc5
3
+ metadata.gz: 1ace375ebcad78939cf91bf884eecebe9011561d
4
+ data.tar.gz: bb336bcde7dd51abaf826b14a58fdb25df42224f
5
5
  SHA512:
6
- metadata.gz: 565b795b90cd23a8e712d3aa967c9bb069bbe986c3cf8b054ec7d17fd9a3ce2c1448f9a4a6a32f5e5698aedd59a578035877279dd5f00de5eab5efd99d898fde
7
- data.tar.gz: a69996ea83e880e05766f0f35f6ba185ebaa2bac8dbfb696c108e7904ca0ab34b9caf8209110d4f3542ac4fb30c746bd93145320d9c3a3461230301c5ab4ece1
6
+ metadata.gz: e6fe818f9387d8526a204fcad731f3807ee39b90d108320981ea9903f720bf8ff8304a579ed8bb59e85ad3a346578475f337950a9267754a41b5e85657c05b26
7
+ data.tar.gz: 26b0aeee79174e11330bf831c0736c60b00f7666073b34ead8dc72fd4977b0d9e39b7defd45966707bf07bea461d01645a03d3cf3312b9600998f48a184778c4
@@ -2,6 +2,7 @@
2
2
  require 'inflecto'
3
3
  require 'virtus'
4
4
  require 'pandarus/models/sis_import_counts'
5
+ require 'pandarus/models/quiz_assignment_override_set_container'
5
6
  require 'pandarus/models/report_parameters'
6
7
  require 'pandarus/models/term'
7
8
  require 'pandarus/models/content_export'
@@ -22,6 +23,7 @@ require 'pandarus/models/content_migration'
22
23
  require 'pandarus/models/notification_preference'
23
24
  require 'pandarus/models/grade_change_event_links'
24
25
  require 'pandarus/models/folder'
26
+ require 'pandarus/models/license'
25
27
  require 'pandarus/models/discovery_url'
26
28
  require 'pandarus/models/sis_import_data'
27
29
  require 'pandarus/models/collaborator'
@@ -72,6 +74,7 @@ require 'pandarus/models/report'
72
74
  require 'pandarus/models/rubric_criteria'
73
75
  require 'pandarus/models/assignment'
74
76
  require 'pandarus/models/module_item'
77
+ require 'pandarus/models/usage_rights'
75
78
  require 'pandarus/models/grading_rules'
76
79
  require 'pandarus/models/outcome'
77
80
  require 'pandarus/models/external_feed'
@@ -90,6 +93,7 @@ require 'pandarus/models/conference'
90
93
  require 'pandarus/models/external_tool_tag_attributes'
91
94
  require 'pandarus/models/group_membership'
92
95
  require 'pandarus/models/quiz_report'
96
+ require 'pandarus/models/account_notification'
93
97
  require 'pandarus/models/file_attachment'
94
98
  require 'pandarus/models/answer'
95
99
  require 'pandarus/models/account'
@@ -0,0 +1,18 @@
1
+ # This is an autogenerated file. See readme.md.
2
+ require 'pandarus/model_base'
3
+
4
+ module Pandarus
5
+ class AccountNotification < ModelBase
6
+ include Virtus.model(finalize: false)
7
+
8
+ attribute :subject, resolve_type("String")
9
+ attribute :message, resolve_type("String")
10
+ attribute :start_at, resolve_type("DateTime")
11
+ attribute :end_at, resolve_type("DateTime")
12
+ attribute :icon, resolve_type("String", collection: true)
13
+ attribute :roles, resolve_type("String", collection: true)
14
+ attribute :role_ids, resolve_type("Integer", collection: true)
15
+
16
+ end
17
+ end
18
+
@@ -13,6 +13,7 @@ module Pandarus
13
13
  attribute :due_at, resolve_type("DateTime")
14
14
  attribute :lock_at, resolve_type("DateTime")
15
15
  attribute :unlock_at, resolve_type("DateTime")
16
+ attribute :has_overrides, resolve_type(nil)
16
17
  attribute :all_dates, resolve_type("AssignmentDate", collection: true)
17
18
  attribute :course_id, resolve_type("Integer")
18
19
  attribute :html_url, resolve_type("String")
@@ -53,7 +54,7 @@ module Pandarus
53
54
  attribute :submission, resolve_type("Submission")
54
55
  attribute :use_rubric_for_grading, resolve_type(nil)
55
56
  attribute :rubric_settings, resolve_type("String")
56
- attribute :rubric, resolve_type("RubricCriteria")
57
+ attribute :rubric, resolve_type("RubricCriteria", collection: true)
57
58
  attribute :assignment_visibility, resolve_type("Integer", collection: true)
58
59
 
59
60
  end
@@ -7,6 +7,7 @@ module Pandarus
7
7
 
8
8
  attribute :id, resolve_type("Integer")
9
9
  attribute :conference_type, resolve_type("String")
10
+ attribute :conference_key, resolve_type("String")
10
11
  attribute :description, resolve_type("String")
11
12
  attribute :duration, resolve_type("Integer")
12
13
  attribute :ended_at, resolve_type("DateTime")
@@ -17,6 +17,7 @@ module Pandarus
17
17
  attribute :start_at, resolve_type("DateTime")
18
18
  attribute :end_at, resolve_type("DateTime")
19
19
  attribute :enrollments, resolve_type("Enrollment", collection: true)
20
+ attribute :total_students, resolve_type("Integer")
20
21
  attribute :calendar, resolve_type("CalendarLink")
21
22
  attribute :default_view, resolve_type("String")
22
23
  attribute :syllabus_body, resolve_type("String")
@@ -26,9 +27,11 @@ module Pandarus
26
27
  attribute :apply_assignment_group_weights, resolve_type(nil)
27
28
  attribute :permissions, resolve_type("Map")
28
29
  attribute :is_public, resolve_type(nil)
30
+ attribute :is_public_to_auth_users, resolve_type(nil)
29
31
  attribute :public_syllabus, resolve_type(nil)
30
32
  attribute :public_description, resolve_type("String")
31
33
  attribute :storage_quota_mb, resolve_type("Integer")
34
+ attribute :storage_quota_used_mb, resolve_type("Float")
32
35
  attribute :hide_final_grades, resolve_type(nil)
33
36
  attribute :license, resolve_type("String")
34
37
  attribute :allow_student_assignment_edits, resolve_type(nil)
@@ -0,0 +1,14 @@
1
+ # This is an autogenerated file. See readme.md.
2
+ require 'pandarus/model_base'
3
+
4
+ module Pandarus
5
+ class License < ModelBase
6
+ include Virtus.model(finalize: false)
7
+
8
+ attribute :id, resolve_type("String")
9
+ attribute :name, resolve_type("String")
10
+ attribute :url, resolve_type("String")
11
+
12
+ end
13
+ end
14
+
@@ -15,6 +15,8 @@ module Pandarus
15
15
  attribute :vendor_guid, resolve_type("String")
16
16
  attribute :points_possible, resolve_type("Integer")
17
17
  attribute :mastery_points, resolve_type("Integer")
18
+ attribute :calculation_method, resolve_type("String")
19
+ attribute :calculation_int, resolve_type("Integer")
18
20
  attribute :ratings, resolve_type("RubricRating", collection: true)
19
21
  attribute :can_edit, resolve_type(nil)
20
22
 
@@ -17,6 +17,7 @@ module Pandarus
17
17
  attribute :shuffle_answers, resolve_type(nil)
18
18
  attribute :hide_results, resolve_type("String")
19
19
  attribute :show_correct_answers, resolve_type(nil)
20
+ attribute :show_correct_answers_last_attempt, resolve_type(nil)
20
21
  attribute :show_correct_answers_at, resolve_type("DateTime")
21
22
  attribute :hide_correct_answers_at, resolve_type("DateTime")
22
23
  attribute :one_time_results, resolve_type(nil)
@@ -0,0 +1,12 @@
1
+ # This is an autogenerated file. See readme.md.
2
+ require 'pandarus/model_base'
3
+
4
+ module Pandarus
5
+ class QuizAssignmentOverrideSetContainer < ModelBase
6
+ include Virtus.model(finalize: false)
7
+
8
+ attribute :quiz_assignment_overrides, resolve_type("QuizAssignmentOverrideSet", collection: true)
9
+
10
+ end
11
+ end
12
+
@@ -5,6 +5,7 @@ module Pandarus
5
5
  class Role < ModelBase
6
6
  include Virtus.model(finalize: false)
7
7
 
8
+ attribute :label, resolve_type("String")
8
9
  attribute :role, resolve_type("String")
9
10
  attribute :base_role_type, resolve_type("String")
10
11
  attribute :account, resolve_type("Account")
@@ -7,7 +7,10 @@ module Pandarus
7
7
 
8
8
  attribute :points, resolve_type("Integer")
9
9
  attribute :id, resolve_type("String")
10
+ attribute :outcome_id, resolve_type("String")
11
+ attribute :vendor_guid, resolve_type("String")
10
12
  attribute :description, resolve_type("String")
13
+ attribute :long_description, resolve_type("String")
11
14
  attribute :ratings, resolve_type("RubricRating", collection: true)
12
15
 
13
16
  end
@@ -15,6 +15,7 @@ module Pandarus
15
15
  attribute :start_at, resolve_type("DateTime")
16
16
  attribute :end_at, resolve_type("DateTime")
17
17
  attribute :nonxlist_course_id, resolve_type("Integer")
18
+ attribute :total_students, resolve_type("Integer")
18
19
 
19
20
  end
20
21
  end
@@ -23,6 +23,7 @@ module Pandarus
23
23
  attribute :grader_id, resolve_type("Integer")
24
24
  attribute :user, resolve_type("String")
25
25
  attribute :late, resolve_type(nil)
26
+ attribute :assignment_visible, resolve_type(nil)
26
27
 
27
28
  end
28
29
  end
@@ -0,0 +1,17 @@
1
+ # This is an autogenerated file. See readme.md.
2
+ require 'pandarus/model_base'
3
+
4
+ module Pandarus
5
+ class UsageRights < ModelBase
6
+ include Virtus.model(finalize: false)
7
+
8
+ attribute :legal_copyright, resolve_type("String")
9
+ attribute :use_justification, resolve_type("String")
10
+ attribute :license, resolve_type("String")
11
+ attribute :license_name, resolve_type("String")
12
+ attribute :message, resolve_type("String")
13
+ attribute :file_ids, resolve_type("Integer", collection: true)
14
+
15
+ end
16
+ end
17
+
@@ -19,6 +19,7 @@ module Pandarus
19
19
  attribute :locale, resolve_type("String")
20
20
  attribute :last_login, resolve_type("Date")
21
21
  attribute :time_zone, resolve_type("String")
22
+ attribute :bio, resolve_type("String")
22
23
 
23
24
  end
24
25
  end
@@ -279,6 +279,72 @@ module Pandarus
279
279
 
280
280
  end
281
281
 
282
+ # Index of active global notification for the user
283
+ def index_of_active_global_notification_for_user(account_id,user_id,opts={})
284
+ query_param_keys = [
285
+
286
+ ]
287
+
288
+ form_param_keys = [
289
+
290
+ ]
291
+
292
+ # verify existence of params
293
+ raise "account_id is required" if account_id.nil?
294
+ raise "user_id is required" if user_id.nil?
295
+ # set default values and merge with input
296
+ options = underscored_merge_opts(opts,
297
+ :account_id => account_id,
298
+ :user_id => user_id
299
+ )
300
+
301
+ # resource path
302
+ path = path_replace("/v1/accounts/{account_id}/users/{user_id}/account_notifications",
303
+ :account_id => account_id,
304
+ :user_id => user_id)
305
+ headers = nil
306
+ form_params = select_params(options, form_param_keys)
307
+ query_params = select_query_params(options, query_param_keys)
308
+
309
+ RemoteCollection.new(connection, AccountNotification, path, query_params)
310
+
311
+ end
312
+
313
+ # Close notification for user
314
+ def close_notification_for_user(account_id,user_id,id,opts={})
315
+ query_param_keys = [
316
+
317
+ ]
318
+
319
+ form_param_keys = [
320
+
321
+ ]
322
+
323
+ # verify existence of params
324
+ raise "account_id is required" if account_id.nil?
325
+ raise "user_id is required" if user_id.nil?
326
+ raise "id is required" if id.nil?
327
+ # set default values and merge with input
328
+ options = underscored_merge_opts(opts,
329
+ :account_id => account_id,
330
+ :user_id => user_id,
331
+ :id => id
332
+ )
333
+
334
+ # resource path
335
+ path = path_replace("/v1/accounts/{account_id}/users/{user_id}/account_notifications/{id}",
336
+ :account_id => account_id,
337
+ :user_id => user_id,
338
+ :id => id)
339
+ headers = nil
340
+ form_params = select_params(options, form_param_keys)
341
+ query_params = select_query_params(options, query_param_keys)
342
+
343
+ response = mixed_request(:delete, path, query_params, form_params, headers)
344
+ AccountNotification.new(response)
345
+
346
+ end
347
+
282
348
  # Create a global notification
283
349
  def create_global_notification(account_id,account_notification__subject__,account_notification__message__,account_notification__start_at__,account_notification__end_at__,opts={})
284
350
  query_param_keys = [
@@ -609,7 +675,8 @@ module Pandarus
609
675
  :hide_enrollmentless_courses,
610
676
  :state,
611
677
  :enrollment_term_id,
612
- :search_term
678
+ :search_term,
679
+ :include
613
680
  ]
614
681
 
615
682
  form_param_keys = [
@@ -1284,7 +1351,8 @@ module Pandarus
1284
1351
  def get_assignment_group(course_id,assignment_group_id,opts={})
1285
1352
  query_param_keys = [
1286
1353
  :include,
1287
- :override_assignment_dates
1354
+ :override_assignment_dates,
1355
+ :grading_period_id
1288
1356
  ]
1289
1357
 
1290
1358
  form_param_keys = [
@@ -1478,7 +1546,8 @@ module Pandarus
1478
1546
  query_param_keys = [
1479
1547
  :include,
1480
1548
  :override_assignment_dates,
1481
- :needs_grading_count_by_section
1549
+ :needs_grading_count_by_section,
1550
+ :all_dates
1482
1551
  ]
1483
1552
 
1484
1553
  form_param_keys = [
@@ -2287,6 +2356,7 @@ module Pandarus
2287
2356
  form_param_keys = [
2288
2357
  :communication_channel__address__,
2289
2358
  :communication_channel__type__,
2359
+ :communication_channel__token__,
2290
2360
  :skip_confirmation,
2291
2361
 
2292
2362
  ]
@@ -4330,6 +4400,7 @@ module Pandarus
4330
4400
  :course__end_at__,
4331
4401
  :course__license__,
4332
4402
  :course__is_public__,
4403
+ :course__is_public_to_auth_users__,
4333
4404
  :course__public_syllabus__,
4334
4405
  :course__public_description__,
4335
4406
  :course__allow_student_wiki_edits__,
@@ -4435,7 +4506,8 @@ module Pandarus
4435
4506
  :enrollment_role,
4436
4507
  :enrollment_role_id,
4437
4508
  :include,
4438
- :user_id
4509
+ :user_id,
4510
+ :enrollment_state
4439
4511
  ]
4440
4512
 
4441
4513
  form_param_keys = [
@@ -4468,7 +4540,8 @@ module Pandarus
4468
4540
  :enrollment_role,
4469
4541
  :enrollment_role_id,
4470
4542
  :include,
4471
- :user_id
4543
+ :user_id,
4544
+ :enrollment_state
4472
4545
  ]
4473
4546
 
4474
4547
  form_param_keys = [
@@ -4740,6 +4813,10 @@ module Pandarus
4740
4813
  :allow_student_discussion_topics,
4741
4814
  :allow_student_forum_attachments,
4742
4815
  :allow_student_discussion_editing,
4816
+ :allow_student_organized_groups,
4817
+ :hide_final_grades,
4818
+ :hide_distribution_graphs,
4819
+ :lock_all_announcements,
4743
4820
 
4744
4821
  ]
4745
4822
 
@@ -4913,6 +4990,35 @@ module Pandarus
4913
4990
 
4914
4991
  end
4915
4992
 
4993
+ # Reset a course
4994
+ def reset_course(course_id,opts={})
4995
+ query_param_keys = [
4996
+
4997
+ ]
4998
+
4999
+ form_param_keys = [
5000
+
5001
+ ]
5002
+
5003
+ # verify existence of params
5004
+ raise "course_id is required" if course_id.nil?
5005
+ # set default values and merge with input
5006
+ options = underscored_merge_opts(opts,
5007
+ :course_id => course_id
5008
+ )
5009
+
5010
+ # resource path
5011
+ path = path_replace("/v1/courses/{course_id}/reset_content",
5012
+ :course_id => course_id)
5013
+ headers = nil
5014
+ form_params = select_params(options, form_param_keys)
5015
+ query_params = select_query_params(options, query_param_keys)
5016
+
5017
+ response = mixed_request(:post, path, query_params, form_params, headers)
5018
+ Course.new(response)
5019
+
5020
+ end
5021
+
4916
5022
  # Get course copy status
4917
5023
  def get_course_copy_status(course_id,id,opts={})
4918
5024
  query_param_keys = [
@@ -6707,6 +6813,107 @@ module Pandarus
6707
6813
 
6708
6814
  end
6709
6815
 
6816
+ # Create enrollment term
6817
+ def create_enrollment_term(account_id,opts={})
6818
+ query_param_keys = [
6819
+
6820
+ ]
6821
+
6822
+ form_param_keys = [
6823
+ :enrollment_term__name__,
6824
+ :enrollment_term__start_at__,
6825
+ :enrollment_term__end_at__,
6826
+ :enrollment_term__sis_term_id__,
6827
+
6828
+ ]
6829
+
6830
+ # verify existence of params
6831
+ raise "account_id is required" if account_id.nil?
6832
+ # set default values and merge with input
6833
+ options = underscored_merge_opts(opts,
6834
+ :account_id => account_id
6835
+ )
6836
+
6837
+ # resource path
6838
+ path = path_replace("/v1/accounts/{account_id}/terms",
6839
+ :account_id => account_id)
6840
+ headers = nil
6841
+ form_params = select_params(options, form_param_keys)
6842
+ query_params = select_query_params(options, query_param_keys)
6843
+
6844
+ response = mixed_request(:post, path, query_params, form_params, headers)
6845
+ EnrollmentTerm.new(response)
6846
+
6847
+ end
6848
+
6849
+ # Update enrollment term
6850
+ def update_enrollment_term(account_id,id,opts={})
6851
+ query_param_keys = [
6852
+
6853
+ ]
6854
+
6855
+ form_param_keys = [
6856
+ :enrollment_term__name__,
6857
+ :enrollment_term__start_at__,
6858
+ :enrollment_term__end_at__,
6859
+ :enrollment_term__sis_term_id__,
6860
+
6861
+ ]
6862
+
6863
+ # verify existence of params
6864
+ raise "account_id is required" if account_id.nil?
6865
+ raise "id is required" if id.nil?
6866
+ # set default values and merge with input
6867
+ options = underscored_merge_opts(opts,
6868
+ :account_id => account_id,
6869
+ :id => id
6870
+ )
6871
+
6872
+ # resource path
6873
+ path = path_replace("/v1/accounts/{account_id}/terms/{id}",
6874
+ :account_id => account_id,
6875
+ :id => id)
6876
+ headers = nil
6877
+ form_params = select_params(options, form_param_keys)
6878
+ query_params = select_query_params(options, query_param_keys)
6879
+
6880
+ response = mixed_request(:put, path, query_params, form_params, headers)
6881
+ EnrollmentTerm.new(response)
6882
+
6883
+ end
6884
+
6885
+ # Delete enrollment term
6886
+ def delete_enrollment_term(account_id,id,opts={})
6887
+ query_param_keys = [
6888
+
6889
+ ]
6890
+
6891
+ form_param_keys = [
6892
+
6893
+ ]
6894
+
6895
+ # verify existence of params
6896
+ raise "account_id is required" if account_id.nil?
6897
+ raise "id is required" if id.nil?
6898
+ # set default values and merge with input
6899
+ options = underscored_merge_opts(opts,
6900
+ :account_id => account_id,
6901
+ :id => id
6902
+ )
6903
+
6904
+ # resource path
6905
+ path = path_replace("/v1/accounts/{account_id}/terms/{id}",
6906
+ :account_id => account_id,
6907
+ :id => id)
6908
+ headers = nil
6909
+ form_params = select_params(options, form_param_keys)
6910
+ query_params = select_query_params(options, query_param_keys)
6911
+
6912
+ response = mixed_request(:delete, path, query_params, form_params, headers)
6913
+ EnrollmentTerm.new(response)
6914
+
6915
+ end
6916
+
6710
6917
  # List enrollment terms
6711
6918
  def list_enrollment_terms(account_id,opts={})
6712
6919
  query_param_keys = [
@@ -6875,6 +7082,7 @@ module Pandarus
6875
7082
  :enrollment__limit_privileges_to_course_section__,
6876
7083
  :enrollment__notify__,
6877
7084
  :enrollment__self_enrollment_code__,
7085
+ :enrollment__self_enrolled__,
6878
7086
 
6879
7087
  ]
6880
7088
 
@@ -6917,6 +7125,7 @@ module Pandarus
6917
7125
  :enrollment__limit_privileges_to_course_section__,
6918
7126
  :enrollment__notify__,
6919
7127
  :enrollment__self_enrollment_code__,
7128
+ :enrollment__self_enrolled__,
6920
7129
 
6921
7130
  ]
6922
7131
 
@@ -8921,98 +9130,128 @@ module Pandarus
8921
9130
 
8922
9131
  end
8923
9132
 
8924
- # Query by assignment.
8925
- def query_by_assignment(assignment_id,opts={})
9133
+ # Set usage rights
9134
+ def set_usage_rights_courses(course_id,file_ids,usage_rights__use_justification__,opts={})
8926
9135
  query_param_keys = [
8927
- :start_time,
8928
- :end_time
9136
+
8929
9137
  ]
8930
9138
 
8931
9139
  form_param_keys = [
9140
+ :file_ids,
9141
+ :folder_ids,
9142
+ :publish,
9143
+ :usage_rights__use_justification__,
9144
+ :usage_rights__legal_copyright__,
9145
+ :usage_rights__license__,
8932
9146
 
8933
9147
  ]
8934
9148
 
8935
9149
  # verify existence of params
8936
- raise "assignment_id is required" if assignment_id.nil?
9150
+ raise "course_id is required" if course_id.nil?
9151
+ raise "file_ids is required" if file_ids.nil?
9152
+ raise "usage_rights__use_justification__ is required" if usage_rights__use_justification__.nil?
8937
9153
  # set default values and merge with input
8938
9154
  options = underscored_merge_opts(opts,
8939
- :assignment_id => assignment_id
9155
+ :course_id => course_id,
9156
+ :file_ids => file_ids,
9157
+ :usage_rights__use_justification__ => usage_rights__use_justification__
8940
9158
  )
8941
9159
 
8942
9160
  # resource path
8943
- path = path_replace("/v1/audit/grade_change/assignments/{assignment_id}",
8944
- :assignment_id => assignment_id)
9161
+ path = path_replace("/v1/courses/{course_id}/usage_rights",
9162
+ :course_id => course_id)
8945
9163
  headers = nil
8946
9164
  form_params = select_params(options, form_param_keys)
8947
9165
  query_params = select_query_params(options, query_param_keys)
8948
9166
 
8949
- RemoteCollection.new(connection, GradeChangeEvent, path, query_params)
9167
+ response = mixed_request(:put, path, query_params, form_params, headers)
9168
+ UsageRights.new(response)
8950
9169
 
8951
9170
  end
8952
9171
 
8953
- # Query by course.
8954
- def query_by_course(course_id,opts={})
9172
+ # Set usage rights
9173
+ def set_usage_rights_groups(group_id,file_ids,usage_rights__use_justification__,opts={})
8955
9174
  query_param_keys = [
8956
- :start_time,
8957
- :end_time
9175
+
8958
9176
  ]
8959
9177
 
8960
9178
  form_param_keys = [
9179
+ :file_ids,
9180
+ :folder_ids,
9181
+ :publish,
9182
+ :usage_rights__use_justification__,
9183
+ :usage_rights__legal_copyright__,
9184
+ :usage_rights__license__,
8961
9185
 
8962
9186
  ]
8963
9187
 
8964
9188
  # verify existence of params
8965
- raise "course_id is required" if course_id.nil?
9189
+ raise "group_id is required" if group_id.nil?
9190
+ raise "file_ids is required" if file_ids.nil?
9191
+ raise "usage_rights__use_justification__ is required" if usage_rights__use_justification__.nil?
8966
9192
  # set default values and merge with input
8967
9193
  options = underscored_merge_opts(opts,
8968
- :course_id => course_id
9194
+ :group_id => group_id,
9195
+ :file_ids => file_ids,
9196
+ :usage_rights__use_justification__ => usage_rights__use_justification__
8969
9197
  )
8970
9198
 
8971
9199
  # resource path
8972
- path = path_replace("/v1/audit/grade_change/courses/{course_id}",
8973
- :course_id => course_id)
9200
+ path = path_replace("/v1/groups/{group_id}/usage_rights",
9201
+ :group_id => group_id)
8974
9202
  headers = nil
8975
9203
  form_params = select_params(options, form_param_keys)
8976
9204
  query_params = select_query_params(options, query_param_keys)
8977
9205
 
8978
- RemoteCollection.new(connection, GradeChangeEvent, path, query_params)
9206
+ response = mixed_request(:put, path, query_params, form_params, headers)
9207
+ UsageRights.new(response)
8979
9208
 
8980
9209
  end
8981
9210
 
8982
- # Query by student.
8983
- def query_by_student(student_id,opts={})
9211
+ # Set usage rights
9212
+ def set_usage_rights_users(user_id,file_ids,usage_rights__use_justification__,opts={})
8984
9213
  query_param_keys = [
8985
- :start_time,
8986
- :end_time
9214
+
8987
9215
  ]
8988
9216
 
8989
9217
  form_param_keys = [
9218
+ :file_ids,
9219
+ :folder_ids,
9220
+ :publish,
9221
+ :usage_rights__use_justification__,
9222
+ :usage_rights__legal_copyright__,
9223
+ :usage_rights__license__,
8990
9224
 
8991
9225
  ]
8992
9226
 
8993
9227
  # verify existence of params
8994
- raise "student_id is required" if student_id.nil?
9228
+ raise "user_id is required" if user_id.nil?
9229
+ raise "file_ids is required" if file_ids.nil?
9230
+ raise "usage_rights__use_justification__ is required" if usage_rights__use_justification__.nil?
8995
9231
  # set default values and merge with input
8996
9232
  options = underscored_merge_opts(opts,
8997
- :student_id => student_id
9233
+ :user_id => user_id,
9234
+ :file_ids => file_ids,
9235
+ :usage_rights__use_justification__ => usage_rights__use_justification__
8998
9236
  )
8999
9237
 
9000
9238
  # resource path
9001
- path = path_replace("/v1/audit/grade_change/students/{student_id}",
9002
- :student_id => student_id)
9239
+ path = path_replace("/v1/users/{user_id}/usage_rights",
9240
+ :user_id => user_id)
9003
9241
  headers = nil
9004
9242
  form_params = select_params(options, form_param_keys)
9005
9243
  query_params = select_query_params(options, query_param_keys)
9006
9244
 
9007
- RemoteCollection.new(connection, GradeChangeEvent, path, query_params)
9245
+ response = mixed_request(:put, path, query_params, form_params, headers)
9246
+ UsageRights.new(response)
9008
9247
 
9009
9248
  end
9010
9249
 
9011
- # Query by grader.
9012
- def query_by_grader(grader_id,opts={})
9250
+ # Remove usage rights
9251
+ def remove_usage_rights_courses(course_id,file_ids,opts={})
9013
9252
  query_param_keys = [
9014
- :start_time,
9015
- :end_time
9253
+ :file_ids,
9254
+ :folder_ids
9016
9255
  ]
9017
9256
 
9018
9257
  form_param_keys = [
@@ -9020,27 +9259,31 @@ module Pandarus
9020
9259
  ]
9021
9260
 
9022
9261
  # verify existence of params
9023
- raise "grader_id is required" if grader_id.nil?
9262
+ raise "course_id is required" if course_id.nil?
9263
+ raise "file_ids is required" if file_ids.nil?
9024
9264
  # set default values and merge with input
9025
9265
  options = underscored_merge_opts(opts,
9026
- :grader_id => grader_id
9266
+ :course_id => course_id,
9267
+ :file_ids => file_ids
9027
9268
  )
9028
9269
 
9029
9270
  # resource path
9030
- path = path_replace("/v1/audit/grade_change/graders/{grader_id}",
9031
- :grader_id => grader_id)
9271
+ path = path_replace("/v1/courses/{course_id}/usage_rights",
9272
+ :course_id => course_id)
9032
9273
  headers = nil
9033
9274
  form_params = select_params(options, form_param_keys)
9034
9275
  query_params = select_query_params(options, query_param_keys)
9035
9276
 
9036
- RemoteCollection.new(connection, GradeChangeEvent, path, query_params)
9277
+ response = mixed_request(:delete, path, query_params, form_params, headers)
9278
+ response
9037
9279
 
9038
9280
  end
9039
9281
 
9040
- # Days in gradebook history for this course
9041
- def days_in_gradebook_history_for_this_course(course_id,opts={})
9282
+ # Remove usage rights
9283
+ def remove_usage_rights_groups(group_id,file_ids,opts={})
9042
9284
  query_param_keys = [
9043
-
9285
+ :file_ids,
9286
+ :folder_ids
9044
9287
  ]
9045
9288
 
9046
9289
  form_param_keys = [
@@ -9048,27 +9291,31 @@ module Pandarus
9048
9291
  ]
9049
9292
 
9050
9293
  # verify existence of params
9051
- raise "course_id is required" if course_id.nil?
9294
+ raise "group_id is required" if group_id.nil?
9295
+ raise "file_ids is required" if file_ids.nil?
9052
9296
  # set default values and merge with input
9053
9297
  options = underscored_merge_opts(opts,
9054
- :course_id => course_id
9298
+ :group_id => group_id,
9299
+ :file_ids => file_ids
9055
9300
  )
9056
9301
 
9057
9302
  # resource path
9058
- path = path_replace("/v1/courses/{course_id}/gradebook_history/days",
9059
- :course_id => course_id)
9303
+ path = path_replace("/v1/groups/{group_id}/usage_rights",
9304
+ :group_id => group_id)
9060
9305
  headers = nil
9061
9306
  form_params = select_params(options, form_param_keys)
9062
9307
  query_params = select_query_params(options, query_param_keys)
9063
9308
 
9064
- RemoteCollection.new(connection, Day, path, query_params)
9309
+ response = mixed_request(:delete, path, query_params, form_params, headers)
9310
+ response
9065
9311
 
9066
9312
  end
9067
9313
 
9068
- # Details for a given date in gradebook history for this course
9069
- def details_for_given_date_in_gradebook_history_for_this_course(course_id,date,opts={})
9314
+ # Remove usage rights
9315
+ def remove_usage_rights_users(user_id,file_ids,opts={})
9070
9316
  query_param_keys = [
9071
-
9317
+ :file_ids,
9318
+ :folder_ids
9072
9319
  ]
9073
9320
 
9074
9321
  form_param_keys = [
@@ -9076,17 +9323,276 @@ module Pandarus
9076
9323
  ]
9077
9324
 
9078
9325
  # verify existence of params
9079
- raise "course_id is required" if course_id.nil?
9080
- raise "date is required" if date.nil?
9326
+ raise "user_id is required" if user_id.nil?
9327
+ raise "file_ids is required" if file_ids.nil?
9081
9328
  # set default values and merge with input
9082
9329
  options = underscored_merge_opts(opts,
9083
- :course_id => course_id,
9084
- :date => date
9330
+ :user_id => user_id,
9331
+ :file_ids => file_ids
9085
9332
  )
9086
9333
 
9087
9334
  # resource path
9088
- path = path_replace("/v1/courses/{course_id}/gradebook_history/{date}",
9089
- :course_id => course_id,
9335
+ path = path_replace("/v1/users/{user_id}/usage_rights",
9336
+ :user_id => user_id)
9337
+ headers = nil
9338
+ form_params = select_params(options, form_param_keys)
9339
+ query_params = select_query_params(options, query_param_keys)
9340
+
9341
+ response = mixed_request(:delete, path, query_params, form_params, headers)
9342
+ response
9343
+
9344
+ end
9345
+
9346
+ # List licenses
9347
+ def list_licenses_courses(course_id,opts={})
9348
+ query_param_keys = [
9349
+
9350
+ ]
9351
+
9352
+ form_param_keys = [
9353
+
9354
+ ]
9355
+
9356
+ # verify existence of params
9357
+ raise "course_id is required" if course_id.nil?
9358
+ # set default values and merge with input
9359
+ options = underscored_merge_opts(opts,
9360
+ :course_id => course_id
9361
+ )
9362
+
9363
+ # resource path
9364
+ path = path_replace("/v1/courses/{course_id}/content_licenses",
9365
+ :course_id => course_id)
9366
+ headers = nil
9367
+ form_params = select_params(options, form_param_keys)
9368
+ query_params = select_query_params(options, query_param_keys)
9369
+
9370
+ RemoteCollection.new(connection, License, path, query_params)
9371
+
9372
+ end
9373
+
9374
+ # List licenses
9375
+ def list_licenses_groups(group_id,opts={})
9376
+ query_param_keys = [
9377
+
9378
+ ]
9379
+
9380
+ form_param_keys = [
9381
+
9382
+ ]
9383
+
9384
+ # verify existence of params
9385
+ raise "group_id is required" if group_id.nil?
9386
+ # set default values and merge with input
9387
+ options = underscored_merge_opts(opts,
9388
+ :group_id => group_id
9389
+ )
9390
+
9391
+ # resource path
9392
+ path = path_replace("/v1/groups/{group_id}/content_licenses",
9393
+ :group_id => group_id)
9394
+ headers = nil
9395
+ form_params = select_params(options, form_param_keys)
9396
+ query_params = select_query_params(options, query_param_keys)
9397
+
9398
+ RemoteCollection.new(connection, License, path, query_params)
9399
+
9400
+ end
9401
+
9402
+ # List licenses
9403
+ def list_licenses_users(user_id,opts={})
9404
+ query_param_keys = [
9405
+
9406
+ ]
9407
+
9408
+ form_param_keys = [
9409
+
9410
+ ]
9411
+
9412
+ # verify existence of params
9413
+ raise "user_id is required" if user_id.nil?
9414
+ # set default values and merge with input
9415
+ options = underscored_merge_opts(opts,
9416
+ :user_id => user_id
9417
+ )
9418
+
9419
+ # resource path
9420
+ path = path_replace("/v1/users/{user_id}/content_licenses",
9421
+ :user_id => user_id)
9422
+ headers = nil
9423
+ form_params = select_params(options, form_param_keys)
9424
+ query_params = select_query_params(options, query_param_keys)
9425
+
9426
+ RemoteCollection.new(connection, License, path, query_params)
9427
+
9428
+ end
9429
+
9430
+ # Query by assignment.
9431
+ def query_by_assignment(assignment_id,opts={})
9432
+ query_param_keys = [
9433
+ :start_time,
9434
+ :end_time
9435
+ ]
9436
+
9437
+ form_param_keys = [
9438
+
9439
+ ]
9440
+
9441
+ # verify existence of params
9442
+ raise "assignment_id is required" if assignment_id.nil?
9443
+ # set default values and merge with input
9444
+ options = underscored_merge_opts(opts,
9445
+ :assignment_id => assignment_id
9446
+ )
9447
+
9448
+ # resource path
9449
+ path = path_replace("/v1/audit/grade_change/assignments/{assignment_id}",
9450
+ :assignment_id => assignment_id)
9451
+ headers = nil
9452
+ form_params = select_params(options, form_param_keys)
9453
+ query_params = select_query_params(options, query_param_keys)
9454
+
9455
+ RemoteCollection.new(connection, GradeChangeEvent, path, query_params)
9456
+
9457
+ end
9458
+
9459
+ # Query by course.
9460
+ def query_by_course(course_id,opts={})
9461
+ query_param_keys = [
9462
+ :start_time,
9463
+ :end_time
9464
+ ]
9465
+
9466
+ form_param_keys = [
9467
+
9468
+ ]
9469
+
9470
+ # verify existence of params
9471
+ raise "course_id is required" if course_id.nil?
9472
+ # set default values and merge with input
9473
+ options = underscored_merge_opts(opts,
9474
+ :course_id => course_id
9475
+ )
9476
+
9477
+ # resource path
9478
+ path = path_replace("/v1/audit/grade_change/courses/{course_id}",
9479
+ :course_id => course_id)
9480
+ headers = nil
9481
+ form_params = select_params(options, form_param_keys)
9482
+ query_params = select_query_params(options, query_param_keys)
9483
+
9484
+ RemoteCollection.new(connection, GradeChangeEvent, path, query_params)
9485
+
9486
+ end
9487
+
9488
+ # Query by student.
9489
+ def query_by_student(student_id,opts={})
9490
+ query_param_keys = [
9491
+ :start_time,
9492
+ :end_time
9493
+ ]
9494
+
9495
+ form_param_keys = [
9496
+
9497
+ ]
9498
+
9499
+ # verify existence of params
9500
+ raise "student_id is required" if student_id.nil?
9501
+ # set default values and merge with input
9502
+ options = underscored_merge_opts(opts,
9503
+ :student_id => student_id
9504
+ )
9505
+
9506
+ # resource path
9507
+ path = path_replace("/v1/audit/grade_change/students/{student_id}",
9508
+ :student_id => student_id)
9509
+ headers = nil
9510
+ form_params = select_params(options, form_param_keys)
9511
+ query_params = select_query_params(options, query_param_keys)
9512
+
9513
+ RemoteCollection.new(connection, GradeChangeEvent, path, query_params)
9514
+
9515
+ end
9516
+
9517
+ # Query by grader.
9518
+ def query_by_grader(grader_id,opts={})
9519
+ query_param_keys = [
9520
+ :start_time,
9521
+ :end_time
9522
+ ]
9523
+
9524
+ form_param_keys = [
9525
+
9526
+ ]
9527
+
9528
+ # verify existence of params
9529
+ raise "grader_id is required" if grader_id.nil?
9530
+ # set default values and merge with input
9531
+ options = underscored_merge_opts(opts,
9532
+ :grader_id => grader_id
9533
+ )
9534
+
9535
+ # resource path
9536
+ path = path_replace("/v1/audit/grade_change/graders/{grader_id}",
9537
+ :grader_id => grader_id)
9538
+ headers = nil
9539
+ form_params = select_params(options, form_param_keys)
9540
+ query_params = select_query_params(options, query_param_keys)
9541
+
9542
+ RemoteCollection.new(connection, GradeChangeEvent, path, query_params)
9543
+
9544
+ end
9545
+
9546
+ # Days in gradebook history for this course
9547
+ def days_in_gradebook_history_for_this_course(course_id,opts={})
9548
+ query_param_keys = [
9549
+
9550
+ ]
9551
+
9552
+ form_param_keys = [
9553
+
9554
+ ]
9555
+
9556
+ # verify existence of params
9557
+ raise "course_id is required" if course_id.nil?
9558
+ # set default values and merge with input
9559
+ options = underscored_merge_opts(opts,
9560
+ :course_id => course_id
9561
+ )
9562
+
9563
+ # resource path
9564
+ path = path_replace("/v1/courses/{course_id}/gradebook_history/days",
9565
+ :course_id => course_id)
9566
+ headers = nil
9567
+ form_params = select_params(options, form_param_keys)
9568
+ query_params = select_query_params(options, query_param_keys)
9569
+
9570
+ RemoteCollection.new(connection, Day, path, query_params)
9571
+
9572
+ end
9573
+
9574
+ # Details for a given date in gradebook history for this course
9575
+ def details_for_given_date_in_gradebook_history_for_this_course(course_id,date,opts={})
9576
+ query_param_keys = [
9577
+
9578
+ ]
9579
+
9580
+ form_param_keys = [
9581
+
9582
+ ]
9583
+
9584
+ # verify existence of params
9585
+ raise "course_id is required" if course_id.nil?
9586
+ raise "date is required" if date.nil?
9587
+ # set default values and merge with input
9588
+ options = underscored_merge_opts(opts,
9589
+ :course_id => course_id,
9590
+ :date => date
9591
+ )
9592
+
9593
+ # resource path
9594
+ path = path_replace("/v1/courses/{course_id}/gradebook_history/{date}",
9595
+ :course_id => course_id,
9090
9596
  :date => date)
9091
9597
  headers = nil
9092
9598
  form_params = select_params(options, form_param_keys)
@@ -10085,6 +10591,7 @@ module Pandarus
10085
10591
  :join_level,
10086
10592
  :avatar_id,
10087
10593
  :storage_quota_mb,
10594
+ :members,
10088
10595
 
10089
10596
  ]
10090
10597
 
@@ -11183,8 +11690,8 @@ module Pandarus
11183
11690
 
11184
11691
  end
11185
11692
 
11186
- # List preferences
11187
- def list_preferences_communication_channel_id(user_id,communication_channel_id,opts={})
11693
+ # Mark module item read
11694
+ def mark_module_item_read(course_id,module_id,id,opts={})
11188
11695
  query_param_keys = [
11189
11696
 
11190
11697
  ]
@@ -11194,11 +11701,46 @@ module Pandarus
11194
11701
  ]
11195
11702
 
11196
11703
  # verify existence of params
11197
- raise "user_id is required" if user_id.nil?
11198
- raise "communication_channel_id is required" if communication_channel_id.nil?
11704
+ raise "course_id is required" if course_id.nil?
11705
+ raise "module_id is required" if module_id.nil?
11706
+ raise "id is required" if id.nil?
11199
11707
  # set default values and merge with input
11200
11708
  options = underscored_merge_opts(opts,
11201
- :user_id => user_id,
11709
+ :course_id => course_id,
11710
+ :module_id => module_id,
11711
+ :id => id
11712
+ )
11713
+
11714
+ # resource path
11715
+ path = path_replace("/v1/courses/{course_id}/modules/{module_id}/items/{id}/mark_read",
11716
+ :course_id => course_id,
11717
+ :module_id => module_id,
11718
+ :id => id)
11719
+ headers = nil
11720
+ form_params = select_params(options, form_param_keys)
11721
+ query_params = select_query_params(options, query_param_keys)
11722
+
11723
+ response = mixed_request(:post, path, query_params, form_params, headers)
11724
+ response
11725
+
11726
+ end
11727
+
11728
+ # List preferences
11729
+ def list_preferences_communication_channel_id(user_id,communication_channel_id,opts={})
11730
+ query_param_keys = [
11731
+
11732
+ ]
11733
+
11734
+ form_param_keys = [
11735
+
11736
+ ]
11737
+
11738
+ # verify existence of params
11739
+ raise "user_id is required" if user_id.nil?
11740
+ raise "communication_channel_id is required" if communication_channel_id.nil?
11741
+ # set default values and merge with input
11742
+ options = underscored_merge_opts(opts,
11743
+ :user_id => user_id,
11202
11744
  :communication_channel_id => communication_channel_id
11203
11745
  )
11204
11746
 
@@ -12057,6 +12599,8 @@ module Pandarus
12057
12599
  :mastery_points,
12058
12600
  :ratings__description__,
12059
12601
  :ratings__points__,
12602
+ :calculation_method,
12603
+ :calculation_int,
12060
12604
 
12061
12605
  ]
12062
12606
 
@@ -12093,6 +12637,8 @@ module Pandarus
12093
12637
  :mastery_points,
12094
12638
  :ratings__description__,
12095
12639
  :ratings__points__,
12640
+ :calculation_method,
12641
+ :calculation_int,
12096
12642
 
12097
12643
  ]
12098
12644
 
@@ -12133,6 +12679,8 @@ module Pandarus
12133
12679
  :mastery_points,
12134
12680
  :ratings__description__,
12135
12681
  :ratings__points__,
12682
+ :calculation_method,
12683
+ :calculation_int,
12136
12684
 
12137
12685
  ]
12138
12686
 
@@ -12172,6 +12720,8 @@ module Pandarus
12172
12720
  :mastery_points,
12173
12721
  :ratings__description__,
12174
12722
  :ratings__points__,
12723
+ :calculation_method,
12724
+ :calculation_int,
12175
12725
 
12176
12726
  ]
12177
12727
 
@@ -12215,6 +12765,8 @@ module Pandarus
12215
12765
  :mastery_points,
12216
12766
  :ratings__description__,
12217
12767
  :ratings__points__,
12768
+ :calculation_method,
12769
+ :calculation_int,
12218
12770
 
12219
12771
  ]
12220
12772
 
@@ -12254,6 +12806,8 @@ module Pandarus
12254
12806
  :mastery_points,
12255
12807
  :ratings__description__,
12256
12808
  :ratings__points__,
12809
+ :calculation_method,
12810
+ :calculation_int,
12257
12811
 
12258
12812
  ]
12259
12813
 
@@ -12790,6 +13344,8 @@ module Pandarus
12790
13344
  :mastery_points,
12791
13345
  :ratings__description__,
12792
13346
  :ratings__points__,
13347
+ :calculation_method,
13348
+ :calculation_int,
12793
13349
 
12794
13350
  ]
12795
13351
 
@@ -12879,7 +13435,6 @@ module Pandarus
12879
13435
  form_param_keys = [
12880
13436
  :wiki_page__title__,
12881
13437
  :wiki_page__body__,
12882
- :wiki_page__hide_from_students__,
12883
13438
  :wiki_page__editing_roles__,
12884
13439
  :wiki_page__notify_of_update__,
12885
13440
  :wiki_page__published__,
@@ -12914,7 +13469,6 @@ module Pandarus
12914
13469
  form_param_keys = [
12915
13470
  :wiki_page__title__,
12916
13471
  :wiki_page__body__,
12917
- :wiki_page__hide_from_students__,
12918
13472
  :wiki_page__editing_roles__,
12919
13473
  :wiki_page__notify_of_update__,
12920
13474
  :wiki_page__published__,
@@ -13011,7 +13565,6 @@ module Pandarus
13011
13565
  form_param_keys = [
13012
13566
  :wiki_page__title__,
13013
13567
  :wiki_page__body__,
13014
- :wiki_page__hide_from_students__,
13015
13568
  :wiki_page__editing_roles__,
13016
13569
  :wiki_page__notify_of_update__,
13017
13570
  :wiki_page__published__,
@@ -13049,7 +13602,6 @@ module Pandarus
13049
13602
  form_param_keys = [
13050
13603
  :wiki_page__title__,
13051
13604
  :wiki_page__body__,
13052
- :wiki_page__hide_from_students__,
13053
13605
  :wiki_page__editing_roles__,
13054
13606
  :wiki_page__notify_of_update__,
13055
13607
  :wiki_page__published__,
@@ -13151,7 +13703,6 @@ module Pandarus
13151
13703
  form_param_keys = [
13152
13704
  :wiki_page__title__,
13153
13705
  :wiki_page__body__,
13154
- :wiki_page__hide_from_students__,
13155
13706
  :wiki_page__editing_roles__,
13156
13707
  :wiki_page__notify_of_update__,
13157
13708
  :wiki_page__published__,
@@ -13190,7 +13741,6 @@ module Pandarus
13190
13741
  form_param_keys = [
13191
13742
  :wiki_page__title__,
13192
13743
  :wiki_page__body__,
13193
- :wiki_page__hide_from_students__,
13194
13744
  :wiki_page__editing_roles__,
13195
13745
  :wiki_page__notify_of_update__,
13196
13746
  :wiki_page__published__,
@@ -14269,7 +14819,8 @@ module Pandarus
14269
14819
  form_params = select_params(options, form_param_keys)
14270
14820
  query_params = select_query_params(options, query_param_keys)
14271
14821
 
14272
- RemoteCollection.new(connection, QuizAssignmentOverrideSet, path, query_params)
14822
+ response = mixed_request(:get, path, query_params, form_params, headers)
14823
+ QuizAssignmentOverrideSetContainer.new(response)
14273
14824
 
14274
14825
  end
14275
14826
 
@@ -14493,10 +15044,11 @@ module Pandarus
14493
15044
 
14494
15045
  end
14495
15046
 
14496
- # Retrieve all quiz reports
14497
- def retrieve_all_quiz_reports(course_id,quiz_id,opts={})
15047
+ # List questions in a quiz or a submission
15048
+ def list_questions_in_quiz_or_submission(course_id,quiz_id,opts={})
14498
15049
  query_param_keys = [
14499
- :includes_all_versions
15050
+ :quiz_submission_id,
15051
+ :quiz_submission_attempt
14500
15052
  ]
14501
15053
 
14502
15054
  form_param_keys = [
@@ -14513,43 +15065,84 @@ module Pandarus
14513
15065
  )
14514
15066
 
14515
15067
  # resource path
14516
- path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/reports",
15068
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/questions",
14517
15069
  :course_id => course_id,
14518
15070
  :quiz_id => quiz_id)
14519
15071
  headers = nil
14520
15072
  form_params = select_params(options, form_param_keys)
14521
15073
  query_params = select_query_params(options, query_param_keys)
14522
15074
 
14523
- RemoteCollection.new(connection, QuizReport , path, query_params)
15075
+ RemoteCollection.new(connection, QuizQuestion, path, query_params)
14524
15076
 
14525
15077
  end
14526
15078
 
14527
- # Create a quiz report
14528
- def create_quiz_report(course_id,quiz_id,quiz_report__report_type__,opts={})
15079
+ # Get a single quiz question
15080
+ def get_single_quiz_question(course_id,quiz_id,id,opts={})
14529
15081
  query_param_keys = [
14530
15082
 
14531
15083
  ]
14532
15084
 
14533
15085
  form_param_keys = [
14534
- :quiz_report__report_type__,
14535
- :quiz_report__includes_all_versions__,
14536
- :include,
14537
15086
 
14538
15087
  ]
14539
15088
 
14540
15089
  # verify existence of params
14541
15090
  raise "course_id is required" if course_id.nil?
14542
15091
  raise "quiz_id is required" if quiz_id.nil?
14543
- raise "quiz_report__report_type__ is required" if quiz_report__report_type__.nil?
15092
+ raise "id is required" if id.nil?
14544
15093
  # set default values and merge with input
14545
15094
  options = underscored_merge_opts(opts,
14546
15095
  :course_id => course_id,
14547
15096
  :quiz_id => quiz_id,
14548
- :quiz_report__report_type__ => quiz_report__report_type__
15097
+ :id => id
14549
15098
  )
14550
15099
 
14551
15100
  # resource path
14552
- path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/reports",
15101
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/questions/{id}",
15102
+ :course_id => course_id,
15103
+ :quiz_id => quiz_id,
15104
+ :id => id)
15105
+ headers = nil
15106
+ form_params = select_params(options, form_param_keys)
15107
+ query_params = select_query_params(options, query_param_keys)
15108
+
15109
+ response = mixed_request(:get, path, query_params, form_params, headers)
15110
+ QuizQuestion.new(response)
15111
+
15112
+ end
15113
+
15114
+ # Create a single quiz question
15115
+ def create_single_quiz_question(course_id,quiz_id,opts={})
15116
+ query_param_keys = [
15117
+
15118
+ ]
15119
+
15120
+ form_param_keys = [
15121
+ :question__question_name__,
15122
+ :question__question_text__,
15123
+ :question__quiz_group_id__,
15124
+ :question__question_type__,
15125
+ :question__position__,
15126
+ :question__points_possible__,
15127
+ :question__correct_comments__,
15128
+ :question__incorrect_comments__,
15129
+ :question__neutral_comments__,
15130
+ :question__text_after_answers__,
15131
+ :question__answers__,
15132
+
15133
+ ]
15134
+
15135
+ # verify existence of params
15136
+ raise "course_id is required" if course_id.nil?
15137
+ raise "quiz_id is required" if quiz_id.nil?
15138
+ # set default values and merge with input
15139
+ options = underscored_merge_opts(opts,
15140
+ :course_id => course_id,
15141
+ :quiz_id => quiz_id
15142
+ )
15143
+
15144
+ # resource path
15145
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/questions",
14553
15146
  :course_id => course_id,
14554
15147
  :quiz_id => quiz_id)
14555
15148
  headers = nil
@@ -14557,17 +15150,28 @@ module Pandarus
14557
15150
  query_params = select_query_params(options, query_param_keys)
14558
15151
 
14559
15152
  response = mixed_request(:post, path, query_params, form_params, headers)
14560
- QuizReport.new(response)
15153
+ QuizQuestion.new(response)
14561
15154
 
14562
15155
  end
14563
15156
 
14564
- # Get a quiz report
14565
- def get_quiz_report(course_id,quiz_id,id,opts={})
15157
+ # Update an existing quiz question
15158
+ def update_existing_quiz_question(course_id,quiz_id,id,opts={})
14566
15159
  query_param_keys = [
14567
- :include
15160
+
14568
15161
  ]
14569
15162
 
14570
15163
  form_param_keys = [
15164
+ :question__question_name__,
15165
+ :question__question_text__,
15166
+ :question__quiz_group_id__,
15167
+ :question__question_type__,
15168
+ :question__position__,
15169
+ :question__points_possible__,
15170
+ :question__correct_comments__,
15171
+ :question__incorrect_comments__,
15172
+ :question__neutral_comments__,
15173
+ :question__text_after_answers__,
15174
+ :question__answers__,
14571
15175
 
14572
15176
  ]
14573
15177
 
@@ -14583,7 +15187,7 @@ module Pandarus
14583
15187
  )
14584
15188
 
14585
15189
  # resource path
14586
- path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/reports/{id}",
15190
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/questions/{id}",
14587
15191
  :course_id => course_id,
14588
15192
  :quiz_id => quiz_id,
14589
15193
  :id => id)
@@ -14591,15 +15195,15 @@ module Pandarus
14591
15195
  form_params = select_params(options, form_param_keys)
14592
15196
  query_params = select_query_params(options, query_param_keys)
14593
15197
 
14594
- response = mixed_request(:get, path, query_params, form_params, headers)
14595
- QuizReport.new(response)
15198
+ response = mixed_request(:put, path, query_params, form_params, headers)
15199
+ QuizQuestion.new(response)
14596
15200
 
14597
15201
  end
14598
15202
 
14599
- # Fetching the latest quiz statistics
14600
- def fetching_latest_quiz_statistics(course_id,quiz_id,opts={})
15203
+ # Delete a quiz question
15204
+ def delete_quiz_question(course_id,quiz_id,id,opts={})
14601
15205
  query_param_keys = [
14602
- :all_versions
15206
+
14603
15207
  ]
14604
15208
 
14605
15209
  form_param_keys = [
@@ -14609,34 +15213,35 @@ module Pandarus
14609
15213
  # verify existence of params
14610
15214
  raise "course_id is required" if course_id.nil?
14611
15215
  raise "quiz_id is required" if quiz_id.nil?
15216
+ raise "id is required" if id.nil?
14612
15217
  # set default values and merge with input
14613
15218
  options = underscored_merge_opts(opts,
14614
15219
  :course_id => course_id,
14615
- :quiz_id => quiz_id
15220
+ :quiz_id => quiz_id,
15221
+ :id => id
14616
15222
  )
14617
15223
 
14618
15224
  # resource path
14619
- path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/statistics",
15225
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/questions/{id}",
14620
15226
  :course_id => course_id,
14621
- :quiz_id => quiz_id)
15227
+ :quiz_id => quiz_id,
15228
+ :id => id)
14622
15229
  headers = nil
14623
15230
  form_params = select_params(options, form_param_keys)
14624
15231
  query_params = select_query_params(options, query_param_keys)
14625
15232
 
14626
- response = mixed_request(:get, path, query_params, form_params, headers)
15233
+ response = mixed_request(:delete, path, query_params, form_params, headers)
14627
15234
  response
14628
15235
 
14629
15236
  end
14630
15237
 
14631
- # Upload a file
14632
- def upload_file(course_id,quiz_id,opts={})
15238
+ # Retrieve all quiz reports
15239
+ def retrieve_all_quiz_reports(course_id,quiz_id,opts={})
14633
15240
  query_param_keys = [
14634
-
15241
+ :includes_all_versions
14635
15242
  ]
14636
15243
 
14637
15244
  form_param_keys = [
14638
- :name,
14639
- :on_duplicate,
14640
15245
 
14641
15246
  ]
14642
15247
 
@@ -14650,49 +15255,56 @@ module Pandarus
14650
15255
  )
14651
15256
 
14652
15257
  # resource path
14653
- path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/submissions/self/files",
15258
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/reports",
14654
15259
  :course_id => course_id,
14655
15260
  :quiz_id => quiz_id)
14656
15261
  headers = nil
14657
15262
  form_params = select_params(options, form_param_keys)
14658
15263
  query_params = select_query_params(options, query_param_keys)
14659
15264
 
14660
- response = mixed_request(:post, path, query_params, form_params, headers)
14661
- response
15265
+ RemoteCollection.new(connection, QuizReport , path, query_params)
14662
15266
 
14663
15267
  end
14664
15268
 
14665
- # Get all quiz submission questions.
14666
- def get_all_quiz_submission_questions(quiz_submission_id,opts={})
15269
+ # Create a quiz report
15270
+ def create_quiz_report(course_id,quiz_id,quiz_report__report_type__,opts={})
14667
15271
  query_param_keys = [
14668
- :include
15272
+
14669
15273
  ]
14670
15274
 
14671
15275
  form_param_keys = [
15276
+ :quiz_report__report_type__,
15277
+ :quiz_report__includes_all_versions__,
15278
+ :include,
14672
15279
 
14673
15280
  ]
14674
15281
 
14675
15282
  # verify existence of params
14676
- raise "quiz_submission_id is required" if quiz_submission_id.nil?
15283
+ raise "course_id is required" if course_id.nil?
15284
+ raise "quiz_id is required" if quiz_id.nil?
15285
+ raise "quiz_report__report_type__ is required" if quiz_report__report_type__.nil?
14677
15286
  # set default values and merge with input
14678
15287
  options = underscored_merge_opts(opts,
14679
- :quiz_submission_id => quiz_submission_id
15288
+ :course_id => course_id,
15289
+ :quiz_id => quiz_id,
15290
+ :quiz_report__report_type__ => quiz_report__report_type__
14680
15291
  )
14681
15292
 
14682
15293
  # resource path
14683
- path = path_replace("/v1/quiz_submissions/{quiz_submission_id}/questions",
14684
- :quiz_submission_id => quiz_submission_id)
15294
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/reports",
15295
+ :course_id => course_id,
15296
+ :quiz_id => quiz_id)
14685
15297
  headers = nil
14686
15298
  form_params = select_params(options, form_param_keys)
14687
15299
  query_params = select_query_params(options, query_param_keys)
14688
15300
 
14689
- response = mixed_request(:get, path, query_params, form_params, headers)
14690
- response
15301
+ response = mixed_request(:post, path, query_params, form_params, headers)
15302
+ QuizReport.new(response)
14691
15303
 
14692
15304
  end
14693
15305
 
14694
- # Get a single quiz submission question.
14695
- def get_single_quiz_submission_question(quiz_submission_id,id,opts={})
15306
+ # Get a quiz report
15307
+ def get_quiz_report(course_id,quiz_id,id,opts={})
14696
15308
  query_param_keys = [
14697
15309
  :include
14698
15310
  ]
@@ -14702,145 +15314,139 @@ module Pandarus
14702
15314
  ]
14703
15315
 
14704
15316
  # verify existence of params
14705
- raise "quiz_submission_id is required" if quiz_submission_id.nil?
15317
+ raise "course_id is required" if course_id.nil?
15318
+ raise "quiz_id is required" if quiz_id.nil?
14706
15319
  raise "id is required" if id.nil?
14707
15320
  # set default values and merge with input
14708
15321
  options = underscored_merge_opts(opts,
14709
- :quiz_submission_id => quiz_submission_id,
15322
+ :course_id => course_id,
15323
+ :quiz_id => quiz_id,
14710
15324
  :id => id
14711
15325
  )
14712
15326
 
14713
15327
  # resource path
14714
- path = path_replace("/v1/quiz_submissions/{quiz_submission_id}/questions/{id}",
14715
- :quiz_submission_id => quiz_submission_id,
15328
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/reports/{id}",
15329
+ :course_id => course_id,
15330
+ :quiz_id => quiz_id,
14716
15331
  :id => id)
14717
15332
  headers = nil
14718
15333
  form_params = select_params(options, form_param_keys)
14719
15334
  query_params = select_query_params(options, query_param_keys)
14720
15335
 
14721
15336
  response = mixed_request(:get, path, query_params, form_params, headers)
14722
- response
15337
+ QuizReport.new(response)
14723
15338
 
14724
15339
  end
14725
15340
 
14726
- # Answering questions
14727
- def answering_questions(quiz_submission_id,attempt,validation_token,opts={})
15341
+ # Abort the generation of a report, or remove a previously generated one
15342
+ def abort_generation_of_report_or_remove_previously_generated_one(course_id,quiz_id,id,opts={})
14728
15343
  query_param_keys = [
14729
15344
 
14730
15345
  ]
14731
15346
 
14732
15347
  form_param_keys = [
14733
- :attempt,
14734
- :validation_token,
14735
- :access_code,
14736
- :quiz_questions,
14737
15348
 
14738
15349
  ]
14739
15350
 
14740
15351
  # verify existence of params
14741
- raise "quiz_submission_id is required" if quiz_submission_id.nil?
14742
- raise "attempt is required" if attempt.nil?
14743
- raise "validation_token is required" if validation_token.nil?
15352
+ raise "course_id is required" if course_id.nil?
15353
+ raise "quiz_id is required" if quiz_id.nil?
15354
+ raise "id is required" if id.nil?
14744
15355
  # set default values and merge with input
14745
15356
  options = underscored_merge_opts(opts,
14746
- :quiz_submission_id => quiz_submission_id,
14747
- :attempt => attempt,
14748
- :validation_token => validation_token
15357
+ :course_id => course_id,
15358
+ :quiz_id => quiz_id,
15359
+ :id => id
14749
15360
  )
14750
15361
 
14751
15362
  # resource path
14752
- path = path_replace("/v1/quiz_submissions/{quiz_submission_id}/questions",
14753
- :quiz_submission_id => quiz_submission_id)
15363
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/reports/{id}",
15364
+ :course_id => course_id,
15365
+ :quiz_id => quiz_id,
15366
+ :id => id)
14754
15367
  headers = nil
14755
15368
  form_params = select_params(options, form_param_keys)
14756
15369
  query_params = select_query_params(options, query_param_keys)
14757
15370
 
14758
- RemoteCollection.new(connection, QuizSubmissionQuestion, path, query_params)
15371
+ response = mixed_request(:delete, path, query_params, form_params, headers)
15372
+ response
14759
15373
 
14760
15374
  end
14761
15375
 
14762
- # Flagging a question.
14763
- def flagging_question(quiz_submission_id,id,attempt,validation_token,opts={})
15376
+ # Fetching the latest quiz statistics
15377
+ def fetching_latest_quiz_statistics(course_id,quiz_id,opts={})
14764
15378
  query_param_keys = [
14765
-
15379
+ :all_versions
14766
15380
  ]
14767
15381
 
14768
15382
  form_param_keys = [
14769
- :attempt,
14770
- :validation_token,
14771
- :access_code,
14772
15383
 
14773
15384
  ]
14774
15385
 
14775
15386
  # verify existence of params
14776
- raise "quiz_submission_id is required" if quiz_submission_id.nil?
14777
- raise "id is required" if id.nil?
14778
- raise "attempt is required" if attempt.nil?
14779
- raise "validation_token is required" if validation_token.nil?
15387
+ raise "course_id is required" if course_id.nil?
15388
+ raise "quiz_id is required" if quiz_id.nil?
14780
15389
  # set default values and merge with input
14781
15390
  options = underscored_merge_opts(opts,
14782
- :quiz_submission_id => quiz_submission_id,
14783
- :id => id,
14784
- :attempt => attempt,
14785
- :validation_token => validation_token
15391
+ :course_id => course_id,
15392
+ :quiz_id => quiz_id
14786
15393
  )
14787
15394
 
14788
15395
  # resource path
14789
- path = path_replace("/v1/quiz_submissions/{quiz_submission_id}/questions/{id}/flag",
14790
- :quiz_submission_id => quiz_submission_id,
14791
- :id => id)
15396
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/statistics",
15397
+ :course_id => course_id,
15398
+ :quiz_id => quiz_id)
14792
15399
  headers = nil
14793
15400
  form_params = select_params(options, form_param_keys)
14794
15401
  query_params = select_query_params(options, query_param_keys)
14795
15402
 
14796
- response = mixed_request(:put, path, query_params, form_params, headers)
15403
+ response = mixed_request(:get, path, query_params, form_params, headers)
14797
15404
  response
14798
15405
 
14799
15406
  end
14800
15407
 
14801
- # Unflagging a question.
14802
- def unflagging_question(quiz_submission_id,id,attempt,validation_token,opts={})
14803
- query_param_keys = [
15408
+ # Submit captured events
15409
+ def submit_captured_events(course_id,quiz_id,id,quiz_submission_events,opts={})
15410
+ query_param_keys = [
14804
15411
 
14805
15412
  ]
14806
15413
 
14807
15414
  form_param_keys = [
14808
- :attempt,
14809
- :validation_token,
14810
- :access_code,
15415
+ :quiz_submission_events,
14811
15416
 
14812
15417
  ]
14813
15418
 
14814
15419
  # verify existence of params
14815
- raise "quiz_submission_id is required" if quiz_submission_id.nil?
15420
+ raise "course_id is required" if course_id.nil?
15421
+ raise "quiz_id is required" if quiz_id.nil?
14816
15422
  raise "id is required" if id.nil?
14817
- raise "attempt is required" if attempt.nil?
14818
- raise "validation_token is required" if validation_token.nil?
15423
+ raise "quiz_submission_events is required" if quiz_submission_events.nil?
14819
15424
  # set default values and merge with input
14820
15425
  options = underscored_merge_opts(opts,
14821
- :quiz_submission_id => quiz_submission_id,
15426
+ :course_id => course_id,
15427
+ :quiz_id => quiz_id,
14822
15428
  :id => id,
14823
- :attempt => attempt,
14824
- :validation_token => validation_token
15429
+ :quiz_submission_events => quiz_submission_events
14825
15430
  )
14826
15431
 
14827
15432
  # resource path
14828
- path = path_replace("/v1/quiz_submissions/{quiz_submission_id}/questions/{id}/unflag",
14829
- :quiz_submission_id => quiz_submission_id,
15433
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/submissions/{id}/events",
15434
+ :course_id => course_id,
15435
+ :quiz_id => quiz_id,
14830
15436
  :id => id)
14831
15437
  headers = nil
14832
15438
  form_params = select_params(options, form_param_keys)
14833
15439
  query_params = select_query_params(options, query_param_keys)
14834
15440
 
14835
- response = mixed_request(:put, path, query_params, form_params, headers)
15441
+ response = mixed_request(:post, path, query_params, form_params, headers)
14836
15442
  response
14837
15443
 
14838
15444
  end
14839
15445
 
14840
- # Send a message to unsubmitted or submitted users for the quiz
14841
- def send_message_to_unsubmitted_or_submitted_users_for_quiz(course_id,id,opts={})
15446
+ # Retrieve captured events
15447
+ def retrieve_captured_events(course_id,quiz_id,id,opts={})
14842
15448
  query_param_keys = [
14843
-
15449
+ :attempt
14844
15450
  ]
14845
15451
 
14846
15452
  form_param_keys = [
@@ -14849,33 +15455,38 @@ module Pandarus
14849
15455
 
14850
15456
  # verify existence of params
14851
15457
  raise "course_id is required" if course_id.nil?
15458
+ raise "quiz_id is required" if quiz_id.nil?
14852
15459
  raise "id is required" if id.nil?
14853
15460
  # set default values and merge with input
14854
15461
  options = underscored_merge_opts(opts,
14855
15462
  :course_id => course_id,
15463
+ :quiz_id => quiz_id,
14856
15464
  :id => id
14857
15465
  )
14858
15466
 
14859
15467
  # resource path
14860
- path = path_replace("/v1/courses/{course_id}/quizzes/{id}/submission_users/message",
15468
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/submissions/{id}/events",
14861
15469
  :course_id => course_id,
15470
+ :quiz_id => quiz_id,
14862
15471
  :id => id)
14863
15472
  headers = nil
14864
15473
  form_params = select_params(options, form_param_keys)
14865
15474
  query_params = select_query_params(options, query_param_keys)
14866
15475
 
14867
- response = mixed_request(:post, path, query_params, form_params, headers)
15476
+ response = mixed_request(:get, path, query_params, form_params, headers)
14868
15477
  response
14869
15478
 
14870
15479
  end
14871
15480
 
14872
- # Get all quiz submissions.
14873
- def get_all_quiz_submissions(course_id,quiz_id,opts={})
15481
+ # Upload a file
15482
+ def upload_file(course_id,quiz_id,opts={})
14874
15483
  query_param_keys = [
14875
- :include
15484
+
14876
15485
  ]
14877
15486
 
14878
15487
  form_param_keys = [
15488
+ :name,
15489
+ :on_duplicate,
14879
15490
 
14880
15491
  ]
14881
15492
 
@@ -14889,20 +15500,49 @@ module Pandarus
14889
15500
  )
14890
15501
 
14891
15502
  # resource path
14892
- path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/submissions",
15503
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/submissions/self/files",
14893
15504
  :course_id => course_id,
14894
15505
  :quiz_id => quiz_id)
14895
15506
  headers = nil
14896
15507
  form_params = select_params(options, form_param_keys)
14897
15508
  query_params = select_query_params(options, query_param_keys)
14898
15509
 
15510
+ response = mixed_request(:post, path, query_params, form_params, headers)
15511
+ response
15512
+
15513
+ end
15514
+
15515
+ # Get all quiz submission questions.
15516
+ def get_all_quiz_submission_questions(quiz_submission_id,opts={})
15517
+ query_param_keys = [
15518
+ :include
15519
+ ]
15520
+
15521
+ form_param_keys = [
15522
+
15523
+ ]
15524
+
15525
+ # verify existence of params
15526
+ raise "quiz_submission_id is required" if quiz_submission_id.nil?
15527
+ # set default values and merge with input
15528
+ options = underscored_merge_opts(opts,
15529
+ :quiz_submission_id => quiz_submission_id
15530
+ )
15531
+
15532
+ # resource path
15533
+ path = path_replace("/v1/quiz_submissions/{quiz_submission_id}/questions",
15534
+ :quiz_submission_id => quiz_submission_id)
15535
+ headers = nil
15536
+ form_params = select_params(options, form_param_keys)
15537
+ query_params = select_query_params(options, query_param_keys)
15538
+
14899
15539
  response = mixed_request(:get, path, query_params, form_params, headers)
14900
15540
  response
14901
15541
 
14902
15542
  end
14903
15543
 
14904
- # Get a single quiz submission.
14905
- def get_single_quiz_submission(course_id,quiz_id,id,opts={})
15544
+ # Get a single quiz submission question.
15545
+ def get_single_quiz_submission_question(quiz_submission_id,id,opts={})
14906
15546
  query_param_keys = [
14907
15547
  :include
14908
15548
  ]
@@ -14912,20 +15552,17 @@ module Pandarus
14912
15552
  ]
14913
15553
 
14914
15554
  # verify existence of params
14915
- raise "course_id is required" if course_id.nil?
14916
- raise "quiz_id is required" if quiz_id.nil?
15555
+ raise "quiz_submission_id is required" if quiz_submission_id.nil?
14917
15556
  raise "id is required" if id.nil?
14918
15557
  # set default values and merge with input
14919
15558
  options = underscored_merge_opts(opts,
14920
- :course_id => course_id,
14921
- :quiz_id => quiz_id,
15559
+ :quiz_submission_id => quiz_submission_id,
14922
15560
  :id => id
14923
15561
  )
14924
15562
 
14925
15563
  # resource path
14926
- path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/submissions/{id}",
14927
- :course_id => course_id,
14928
- :quiz_id => quiz_id,
15564
+ path = path_replace("/v1/quiz_submissions/{quiz_submission_id}/questions/{id}",
15565
+ :quiz_submission_id => quiz_submission_id,
14929
15566
  :id => id)
14930
15567
  headers = nil
14931
15568
  form_params = select_params(options, form_param_keys)
@@ -14936,70 +15573,71 @@ module Pandarus
14936
15573
 
14937
15574
  end
14938
15575
 
14939
- # Create the quiz submission (start a quiz-taking session)
14940
- def create_quiz_submission_start_quiz_taking_session(course_id,quiz_id,opts={})
15576
+ # Answering questions
15577
+ def answering_questions(quiz_submission_id,attempt,validation_token,opts={})
14941
15578
  query_param_keys = [
14942
15579
 
14943
15580
  ]
14944
15581
 
14945
15582
  form_param_keys = [
15583
+ :attempt,
15584
+ :validation_token,
14946
15585
  :access_code,
14947
- :preview,
15586
+ :quiz_questions,
14948
15587
 
14949
15588
  ]
14950
15589
 
14951
15590
  # verify existence of params
14952
- raise "course_id is required" if course_id.nil?
14953
- raise "quiz_id is required" if quiz_id.nil?
15591
+ raise "quiz_submission_id is required" if quiz_submission_id.nil?
15592
+ raise "attempt is required" if attempt.nil?
15593
+ raise "validation_token is required" if validation_token.nil?
14954
15594
  # set default values and merge with input
14955
15595
  options = underscored_merge_opts(opts,
14956
- :course_id => course_id,
14957
- :quiz_id => quiz_id
15596
+ :quiz_submission_id => quiz_submission_id,
15597
+ :attempt => attempt,
15598
+ :validation_token => validation_token
14958
15599
  )
14959
15600
 
14960
15601
  # resource path
14961
- path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/submissions",
14962
- :course_id => course_id,
14963
- :quiz_id => quiz_id)
15602
+ path = path_replace("/v1/quiz_submissions/{quiz_submission_id}/questions",
15603
+ :quiz_submission_id => quiz_submission_id)
14964
15604
  headers = nil
14965
15605
  form_params = select_params(options, form_param_keys)
14966
15606
  query_params = select_query_params(options, query_param_keys)
14967
15607
 
14968
- response = mixed_request(:post, path, query_params, form_params, headers)
14969
- response
15608
+ RemoteCollection.new(connection, QuizSubmissionQuestion, path, query_params)
14970
15609
 
14971
15610
  end
14972
15611
 
14973
- # Update student question scores and comments.
14974
- def update_student_question_scores_and_comments(course_id,quiz_id,id,attempt,opts={})
15612
+ # Flagging a question.
15613
+ def flagging_question(quiz_submission_id,id,attempt,validation_token,opts={})
14975
15614
  query_param_keys = [
14976
15615
 
14977
15616
  ]
14978
15617
 
14979
15618
  form_param_keys = [
14980
15619
  :attempt,
14981
- :fudge_points,
14982
- :questions,
15620
+ :validation_token,
15621
+ :access_code,
14983
15622
 
14984
15623
  ]
14985
15624
 
14986
15625
  # verify existence of params
14987
- raise "course_id is required" if course_id.nil?
14988
- raise "quiz_id is required" if quiz_id.nil?
15626
+ raise "quiz_submission_id is required" if quiz_submission_id.nil?
14989
15627
  raise "id is required" if id.nil?
14990
15628
  raise "attempt is required" if attempt.nil?
15629
+ raise "validation_token is required" if validation_token.nil?
14991
15630
  # set default values and merge with input
14992
15631
  options = underscored_merge_opts(opts,
14993
- :course_id => course_id,
14994
- :quiz_id => quiz_id,
15632
+ :quiz_submission_id => quiz_submission_id,
14995
15633
  :id => id,
14996
- :attempt => attempt
15634
+ :attempt => attempt,
15635
+ :validation_token => validation_token
14997
15636
  )
14998
15637
 
14999
15638
  # resource path
15000
- path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/submissions/{id}",
15001
- :course_id => course_id,
15002
- :quiz_id => quiz_id,
15639
+ path = path_replace("/v1/quiz_submissions/{quiz_submission_id}/questions/{id}/flag",
15640
+ :quiz_submission_id => quiz_submission_id,
15003
15641
  :id => id)
15004
15642
  headers = nil
15005
15643
  form_params = select_params(options, form_param_keys)
@@ -15010,8 +15648,8 @@ module Pandarus
15010
15648
 
15011
15649
  end
15012
15650
 
15013
- # Complete the quiz submission (turn it in).
15014
- def complete_quiz_submission_turn_it_in(course_id,quiz_id,id,attempt,validation_token,opts={})
15651
+ # Unflagging a question.
15652
+ def unflagging_question(quiz_submission_id,id,attempt,validation_token,opts={})
15015
15653
  query_param_keys = [
15016
15654
 
15017
15655
  ]
@@ -15024,36 +15662,33 @@ module Pandarus
15024
15662
  ]
15025
15663
 
15026
15664
  # verify existence of params
15027
- raise "course_id is required" if course_id.nil?
15028
- raise "quiz_id is required" if quiz_id.nil?
15665
+ raise "quiz_submission_id is required" if quiz_submission_id.nil?
15029
15666
  raise "id is required" if id.nil?
15030
15667
  raise "attempt is required" if attempt.nil?
15031
15668
  raise "validation_token is required" if validation_token.nil?
15032
15669
  # set default values and merge with input
15033
15670
  options = underscored_merge_opts(opts,
15034
- :course_id => course_id,
15035
- :quiz_id => quiz_id,
15671
+ :quiz_submission_id => quiz_submission_id,
15036
15672
  :id => id,
15037
15673
  :attempt => attempt,
15038
15674
  :validation_token => validation_token
15039
15675
  )
15040
15676
 
15041
15677
  # resource path
15042
- path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/submissions/{id}/complete",
15043
- :course_id => course_id,
15044
- :quiz_id => quiz_id,
15678
+ path = path_replace("/v1/quiz_submissions/{quiz_submission_id}/questions/{id}/unflag",
15679
+ :quiz_submission_id => quiz_submission_id,
15045
15680
  :id => id)
15046
15681
  headers = nil
15047
15682
  form_params = select_params(options, form_param_keys)
15048
15683
  query_params = select_query_params(options, query_param_keys)
15049
15684
 
15050
- response = mixed_request(:post, path, query_params, form_params, headers)
15685
+ response = mixed_request(:put, path, query_params, form_params, headers)
15051
15686
  response
15052
15687
 
15053
15688
  end
15054
15689
 
15055
- # List questions in a quiz
15056
- def list_questions_in_quiz(course_id,quiz_id,opts={})
15690
+ # Send a message to unsubmitted or submitted users for the quiz
15691
+ def send_message_to_unsubmitted_or_submitted_users_for_quiz(course_id,id,opts={})
15057
15692
  query_param_keys = [
15058
15693
 
15059
15694
  ]
@@ -15064,29 +15699,30 @@ module Pandarus
15064
15699
 
15065
15700
  # verify existence of params
15066
15701
  raise "course_id is required" if course_id.nil?
15067
- raise "quiz_id is required" if quiz_id.nil?
15702
+ raise "id is required" if id.nil?
15068
15703
  # set default values and merge with input
15069
15704
  options = underscored_merge_opts(opts,
15070
15705
  :course_id => course_id,
15071
- :quiz_id => quiz_id
15706
+ :id => id
15072
15707
  )
15073
15708
 
15074
15709
  # resource path
15075
- path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/questions",
15710
+ path = path_replace("/v1/courses/{course_id}/quizzes/{id}/submission_users/message",
15076
15711
  :course_id => course_id,
15077
- :quiz_id => quiz_id)
15712
+ :id => id)
15078
15713
  headers = nil
15079
15714
  form_params = select_params(options, form_param_keys)
15080
15715
  query_params = select_query_params(options, query_param_keys)
15081
15716
 
15082
- RemoteCollection.new(connection, QuizQuestion, path, query_params)
15717
+ response = mixed_request(:post, path, query_params, form_params, headers)
15718
+ response
15083
15719
 
15084
15720
  end
15085
15721
 
15086
- # Get a single quiz question
15087
- def get_single_quiz_question(course_id,quiz_id,id,opts={})
15722
+ # Get all quiz submissions.
15723
+ def get_all_quiz_submissions(course_id,quiz_id,opts={})
15088
15724
  query_param_keys = [
15089
-
15725
+ :include
15090
15726
  ]
15091
15727
 
15092
15728
  form_param_keys = [
@@ -15096,124 +15732,104 @@ module Pandarus
15096
15732
  # verify existence of params
15097
15733
  raise "course_id is required" if course_id.nil?
15098
15734
  raise "quiz_id is required" if quiz_id.nil?
15099
- raise "id is required" if id.nil?
15100
15735
  # set default values and merge with input
15101
15736
  options = underscored_merge_opts(opts,
15102
15737
  :course_id => course_id,
15103
- :quiz_id => quiz_id,
15104
- :id => id
15738
+ :quiz_id => quiz_id
15105
15739
  )
15106
15740
 
15107
15741
  # resource path
15108
- path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/questions/{id}",
15742
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/submissions",
15109
15743
  :course_id => course_id,
15110
- :quiz_id => quiz_id,
15111
- :id => id)
15744
+ :quiz_id => quiz_id)
15112
15745
  headers = nil
15113
15746
  form_params = select_params(options, form_param_keys)
15114
15747
  query_params = select_query_params(options, query_param_keys)
15115
15748
 
15116
15749
  response = mixed_request(:get, path, query_params, form_params, headers)
15117
- QuizQuestion.new(response)
15750
+ response
15118
15751
 
15119
15752
  end
15120
15753
 
15121
- # Create a single quiz question
15122
- def create_single_quiz_question(course_id,quiz_id,opts={})
15754
+ # Get a single quiz submission.
15755
+ def get_single_quiz_submission(course_id,quiz_id,id,opts={})
15123
15756
  query_param_keys = [
15124
-
15757
+ :include
15125
15758
  ]
15126
15759
 
15127
15760
  form_param_keys = [
15128
- :question__question_name__,
15129
- :question__question_text__,
15130
- :question__quiz_group_id__,
15131
- :question__question_type__,
15132
- :question__position__,
15133
- :question__points_possible__,
15134
- :question__correct_comments__,
15135
- :question__incorrect_comments__,
15136
- :question__neutral_comments__,
15137
- :question__text_after_answers__,
15138
- :question__answers__,
15139
15761
 
15140
15762
  ]
15141
15763
 
15142
15764
  # verify existence of params
15143
15765
  raise "course_id is required" if course_id.nil?
15144
15766
  raise "quiz_id is required" if quiz_id.nil?
15767
+ raise "id is required" if id.nil?
15145
15768
  # set default values and merge with input
15146
15769
  options = underscored_merge_opts(opts,
15147
15770
  :course_id => course_id,
15148
- :quiz_id => quiz_id
15771
+ :quiz_id => quiz_id,
15772
+ :id => id
15149
15773
  )
15150
15774
 
15151
15775
  # resource path
15152
- path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/questions",
15776
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/submissions/{id}",
15153
15777
  :course_id => course_id,
15154
- :quiz_id => quiz_id)
15778
+ :quiz_id => quiz_id,
15779
+ :id => id)
15155
15780
  headers = nil
15156
15781
  form_params = select_params(options, form_param_keys)
15157
15782
  query_params = select_query_params(options, query_param_keys)
15158
15783
 
15159
- response = mixed_request(:post, path, query_params, form_params, headers)
15160
- QuizQuestion.new(response)
15784
+ response = mixed_request(:get, path, query_params, form_params, headers)
15785
+ response
15161
15786
 
15162
15787
  end
15163
15788
 
15164
- # Update an existing quiz question
15165
- def update_existing_quiz_question(course_id,quiz_id,id,opts={})
15789
+ # Create the quiz submission (start a quiz-taking session)
15790
+ def create_quiz_submission_start_quiz_taking_session(course_id,quiz_id,opts={})
15166
15791
  query_param_keys = [
15167
15792
 
15168
15793
  ]
15169
15794
 
15170
15795
  form_param_keys = [
15171
- :question__question_name__,
15172
- :question__question_text__,
15173
- :question__quiz_group_id__,
15174
- :question__question_type__,
15175
- :question__position__,
15176
- :question__points_possible__,
15177
- :question__correct_comments__,
15178
- :question__incorrect_comments__,
15179
- :question__neutral_comments__,
15180
- :question__text_after_answers__,
15181
- :question__answers__,
15796
+ :access_code,
15797
+ :preview,
15182
15798
 
15183
15799
  ]
15184
15800
 
15185
15801
  # verify existence of params
15186
15802
  raise "course_id is required" if course_id.nil?
15187
15803
  raise "quiz_id is required" if quiz_id.nil?
15188
- raise "id is required" if id.nil?
15189
15804
  # set default values and merge with input
15190
15805
  options = underscored_merge_opts(opts,
15191
15806
  :course_id => course_id,
15192
- :quiz_id => quiz_id,
15193
- :id => id
15807
+ :quiz_id => quiz_id
15194
15808
  )
15195
15809
 
15196
15810
  # resource path
15197
- path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/questions/{id}",
15811
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/submissions",
15198
15812
  :course_id => course_id,
15199
- :quiz_id => quiz_id,
15200
- :id => id)
15813
+ :quiz_id => quiz_id)
15201
15814
  headers = nil
15202
15815
  form_params = select_params(options, form_param_keys)
15203
15816
  query_params = select_query_params(options, query_param_keys)
15204
15817
 
15205
- response = mixed_request(:put, path, query_params, form_params, headers)
15206
- QuizQuestion.new(response)
15818
+ response = mixed_request(:post, path, query_params, form_params, headers)
15819
+ response
15207
15820
 
15208
15821
  end
15209
15822
 
15210
- # Delete a quiz question
15211
- def delete_quiz_question(course_id,quiz_id,id,opts={})
15823
+ # Update student question scores and comments.
15824
+ def update_student_question_scores_and_comments(course_id,quiz_id,id,attempt,opts={})
15212
15825
  query_param_keys = [
15213
15826
 
15214
15827
  ]
15215
15828
 
15216
15829
  form_param_keys = [
15830
+ :attempt,
15831
+ :fudge_points,
15832
+ :questions,
15217
15833
 
15218
15834
  ]
15219
15835
 
@@ -15221,15 +15837,17 @@ module Pandarus
15221
15837
  raise "course_id is required" if course_id.nil?
15222
15838
  raise "quiz_id is required" if quiz_id.nil?
15223
15839
  raise "id is required" if id.nil?
15840
+ raise "attempt is required" if attempt.nil?
15224
15841
  # set default values and merge with input
15225
15842
  options = underscored_merge_opts(opts,
15226
15843
  :course_id => course_id,
15227
15844
  :quiz_id => quiz_id,
15228
- :id => id
15845
+ :id => id,
15846
+ :attempt => attempt
15229
15847
  )
15230
15848
 
15231
15849
  # resource path
15232
- path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/questions/{id}",
15850
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/submissions/{id}",
15233
15851
  :course_id => course_id,
15234
15852
  :quiz_id => quiz_id,
15235
15853
  :id => id)
@@ -15237,19 +15855,21 @@ module Pandarus
15237
15855
  form_params = select_params(options, form_param_keys)
15238
15856
  query_params = select_query_params(options, query_param_keys)
15239
15857
 
15240
- response = mixed_request(:delete, path, query_params, form_params, headers)
15858
+ response = mixed_request(:put, path, query_params, form_params, headers)
15241
15859
  response
15242
15860
 
15243
15861
  end
15244
15862
 
15245
- # Submit captured events
15246
- def submit_captured_events(course_id,quiz_id,id,quiz_submission_events,opts={})
15863
+ # Complete the quiz submission (turn it in).
15864
+ def complete_quiz_submission_turn_it_in(course_id,quiz_id,id,attempt,validation_token,opts={})
15247
15865
  query_param_keys = [
15248
15866
 
15249
15867
  ]
15250
15868
 
15251
15869
  form_param_keys = [
15252
- :quiz_submission_events,
15870
+ :attempt,
15871
+ :validation_token,
15872
+ :access_code,
15253
15873
 
15254
15874
  ]
15255
15875
 
@@ -15257,17 +15877,19 @@ module Pandarus
15257
15877
  raise "course_id is required" if course_id.nil?
15258
15878
  raise "quiz_id is required" if quiz_id.nil?
15259
15879
  raise "id is required" if id.nil?
15260
- raise "quiz_submission_events is required" if quiz_submission_events.nil?
15880
+ raise "attempt is required" if attempt.nil?
15881
+ raise "validation_token is required" if validation_token.nil?
15261
15882
  # set default values and merge with input
15262
15883
  options = underscored_merge_opts(opts,
15263
15884
  :course_id => course_id,
15264
15885
  :quiz_id => quiz_id,
15265
15886
  :id => id,
15266
- :quiz_submission_events => quiz_submission_events
15887
+ :attempt => attempt,
15888
+ :validation_token => validation_token
15267
15889
  )
15268
15890
 
15269
15891
  # resource path
15270
- path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/submissions/{id}/events",
15892
+ path = path_replace("/v1/courses/{course_id}/quizzes/{quiz_id}/submissions/{id}/complete",
15271
15893
  :course_id => course_id,
15272
15894
  :quiz_id => quiz_id,
15273
15895
  :id => id)
@@ -15355,6 +15977,7 @@ module Pandarus
15355
15977
  :quiz__shuffle_answers__,
15356
15978
  :quiz__hide_results__,
15357
15979
  :quiz__show_correct_answers__,
15980
+ :quiz__show_correct_answers_last_attempt__,
15358
15981
  :quiz__show_correct_answers_at__,
15359
15982
  :quiz__hide_correct_answers_at__,
15360
15983
  :quiz__allowed_attempts__,
@@ -15522,8 +16145,9 @@ module Pandarus
15522
16145
  end
15523
16146
 
15524
16147
  # Get a single role
15525
- def get_single_role(id,account_id,role,opts={})
16148
+ def get_single_role(id,account_id,role_id,opts={})
15526
16149
  query_param_keys = [
16150
+ :role_id,
15527
16151
  :role
15528
16152
  ]
15529
16153
 
@@ -15534,12 +16158,12 @@ module Pandarus
15534
16158
  # verify existence of params
15535
16159
  raise "id is required" if id.nil?
15536
16160
  raise "account_id is required" if account_id.nil?
15537
- raise "role is required" if role.nil?
16161
+ raise "role_id is required" if role_id.nil?
15538
16162
  # set default values and merge with input
15539
16163
  options = underscored_merge_opts(opts,
15540
16164
  :id => id,
15541
16165
  :account_id => account_id,
15542
- :role => role
16166
+ :role_id => role_id
15543
16167
  )
15544
16168
 
15545
16169
  # resource path
@@ -15556,12 +16180,13 @@ module Pandarus
15556
16180
  end
15557
16181
 
15558
16182
  # Create a new role
15559
- def create_new_role(account_id,role,opts={})
16183
+ def create_new_role(account_id,label,opts={})
15560
16184
  query_param_keys = [
15561
16185
 
15562
16186
  ]
15563
16187
 
15564
16188
  form_param_keys = [
16189
+ :label,
15565
16190
  :role,
15566
16191
  :base_role_type,
15567
16192
  :permissions____x_____explicit__,
@@ -15572,11 +16197,11 @@ module Pandarus
15572
16197
 
15573
16198
  # verify existence of params
15574
16199
  raise "account_id is required" if account_id.nil?
15575
- raise "role is required" if role.nil?
16200
+ raise "label is required" if label.nil?
15576
16201
  # set default values and merge with input
15577
16202
  options = underscored_merge_opts(opts,
15578
16203
  :account_id => account_id,
15579
- :role => role
16204
+ :label => label
15580
16205
  )
15581
16206
 
15582
16207
  # resource path
@@ -15592,8 +16217,9 @@ module Pandarus
15592
16217
  end
15593
16218
 
15594
16219
  # Deactivate a role
15595
- def deactivate_role(account_id,id,role,opts={})
16220
+ def deactivate_role(account_id,id,role_id,opts={})
15596
16221
  query_param_keys = [
16222
+ :role_id,
15597
16223
  :role
15598
16224
  ]
15599
16225
 
@@ -15604,12 +16230,12 @@ module Pandarus
15604
16230
  # verify existence of params
15605
16231
  raise "account_id is required" if account_id.nil?
15606
16232
  raise "id is required" if id.nil?
15607
- raise "role is required" if role.nil?
16233
+ raise "role_id is required" if role_id.nil?
15608
16234
  # set default values and merge with input
15609
16235
  options = underscored_merge_opts(opts,
15610
16236
  :account_id => account_id,
15611
16237
  :id => id,
15612
- :role => role
16238
+ :role_id => role_id
15613
16239
  )
15614
16240
 
15615
16241
  # resource path
@@ -15626,12 +16252,13 @@ module Pandarus
15626
16252
  end
15627
16253
 
15628
16254
  # Activate a role
15629
- def activate_role(account_id,id,role,opts={})
16255
+ def activate_role(account_id,id,role_id,opts={})
15630
16256
  query_param_keys = [
15631
16257
 
15632
16258
  ]
15633
16259
 
15634
16260
  form_param_keys = [
16261
+ :role_id,
15635
16262
  :role,
15636
16263
 
15637
16264
  ]
@@ -15639,12 +16266,12 @@ module Pandarus
15639
16266
  # verify existence of params
15640
16267
  raise "account_id is required" if account_id.nil?
15641
16268
  raise "id is required" if id.nil?
15642
- raise "role is required" if role.nil?
16269
+ raise "role_id is required" if role_id.nil?
15643
16270
  # set default values and merge with input
15644
16271
  options = underscored_merge_opts(opts,
15645
16272
  :account_id => account_id,
15646
16273
  :id => id,
15647
- :role => role
16274
+ :role_id => role_id
15648
16275
  )
15649
16276
 
15650
16277
  # resource path
@@ -15667,6 +16294,7 @@ module Pandarus
15667
16294
  ]
15668
16295
 
15669
16296
  form_param_keys = [
16297
+ :label,
15670
16298
  :permissions____x_____explicit__,
15671
16299
  :permissions____x_____enabled__,
15672
16300
 
@@ -15697,7 +16325,7 @@ module Pandarus
15697
16325
  # Get SIS import list
15698
16326
  def get_sis_import_list(account_id,opts={})
15699
16327
  query_param_keys = [
15700
-
16328
+ :created_since
15701
16329
  ]
15702
16330
 
15703
16331
  form_param_keys = [
@@ -15928,6 +16556,7 @@ module Pandarus
15928
16556
  :course_section__sis_section_id__,
15929
16557
  :course_section__start_at__,
15930
16558
  :course_section__end_at__,
16559
+ :course_section__restrict_enrollments_to_section_dates__,
15931
16560
 
15932
16561
  ]
15933
16562
 
@@ -16371,6 +17000,7 @@ module Pandarus
16371
17000
  :student_ids,
16372
17001
  :assignment_ids,
16373
17002
  :grouped,
17003
+ :grading_period_id,
16374
17004
  :include
16375
17005
  ]
16376
17006
 
@@ -16403,6 +17033,7 @@ module Pandarus
16403
17033
  :student_ids,
16404
17034
  :assignment_ids,
16405
17035
  :grouped,
17036
+ :grading_period_id,
16406
17037
  :include
16407
17038
  ]
16408
17039
 
@@ -16581,6 +17212,7 @@ module Pandarus
16581
17212
  :comment__media_comment_id__,
16582
17213
  :comment__media_comment_type__,
16583
17214
  :comment__file_ids__,
17215
+ :include__visibility__,
16584
17216
  :submission__posted_grade__,
16585
17217
  :rubric_assessment,
16586
17218
 
@@ -16623,6 +17255,7 @@ module Pandarus
16623
17255
  :comment__media_comment_id__,
16624
17256
  :comment__media_comment_type__,
16625
17257
  :comment__file_ids__,
17258
+ :include__visibility__,
16626
17259
  :submission__posted_grade__,
16627
17260
  :rubric_assessment,
16628
17261
 
@@ -16653,6 +17286,84 @@ module Pandarus
16653
17286
 
16654
17287
  end
16655
17288
 
17289
+ # Grade or comment on multiple submissions for an assignment
17290
+ def grade_or_comment_on_multiple_submissions_for_assignment_courses(course_id,assignment_id,opts={})
17291
+ query_param_keys = [
17292
+
17293
+ ]
17294
+
17295
+ form_param_keys = [
17296
+ :grade_data___student_id_____posted_grade__,
17297
+ :grade_data___student_id_____rubric_assessment__,
17298
+ :grade_data___student_id_____text_comment__,
17299
+ :grade_data___student_id_____group_comment__,
17300
+ :grade_data___student_id_____media_comment_id__,
17301
+ :grade_data___student_id_____media_comment_type__,
17302
+ :grade_data___student_id_____file_ids__,
17303
+
17304
+ ]
17305
+
17306
+ # verify existence of params
17307
+ raise "course_id is required" if course_id.nil?
17308
+ raise "assignment_id is required" if assignment_id.nil?
17309
+ # set default values and merge with input
17310
+ options = underscored_merge_opts(opts,
17311
+ :course_id => course_id,
17312
+ :assignment_id => assignment_id
17313
+ )
17314
+
17315
+ # resource path
17316
+ path = path_replace("/v1/courses/{course_id}/assignments/{assignment_id}/submissions/update_grades",
17317
+ :course_id => course_id,
17318
+ :assignment_id => assignment_id)
17319
+ headers = nil
17320
+ form_params = select_params(options, form_param_keys)
17321
+ query_params = select_query_params(options, query_param_keys)
17322
+
17323
+ response = mixed_request(:post, path, query_params, form_params, headers)
17324
+ Progress.new(response)
17325
+
17326
+ end
17327
+
17328
+ # Grade or comment on multiple submissions for an assignment
17329
+ def grade_or_comment_on_multiple_submissions_for_assignment_sections(section_id,assignment_id,opts={})
17330
+ query_param_keys = [
17331
+
17332
+ ]
17333
+
17334
+ form_param_keys = [
17335
+ :grade_data___student_id_____posted_grade__,
17336
+ :grade_data___student_id_____rubric_assessment__,
17337
+ :grade_data___student_id_____text_comment__,
17338
+ :grade_data___student_id_____group_comment__,
17339
+ :grade_data___student_id_____media_comment_id__,
17340
+ :grade_data___student_id_____media_comment_type__,
17341
+ :grade_data___student_id_____file_ids__,
17342
+
17343
+ ]
17344
+
17345
+ # verify existence of params
17346
+ raise "section_id is required" if section_id.nil?
17347
+ raise "assignment_id is required" if assignment_id.nil?
17348
+ # set default values and merge with input
17349
+ options = underscored_merge_opts(opts,
17350
+ :section_id => section_id,
17351
+ :assignment_id => assignment_id
17352
+ )
17353
+
17354
+ # resource path
17355
+ path = path_replace("/v1/sections/{section_id}/assignments/{assignment_id}/submissions/update_grades",
17356
+ :section_id => section_id,
17357
+ :assignment_id => assignment_id)
17358
+ headers = nil
17359
+ form_params = select_params(options, form_param_keys)
17360
+ query_params = select_query_params(options, query_param_keys)
17361
+
17362
+ response = mixed_request(:post, path, query_params, form_params, headers)
17363
+ Progress.new(response)
17364
+
17365
+ end
17366
+
16656
17367
  # Mark submission as read
16657
17368
  def mark_submission_as_read_courses(course_id,assignment_id,user_id,opts={})
16658
17369
  query_param_keys = [