pandarus 0.4.8 → 0.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ require "pandarus/model_base"
3
3
  # This is an autogenerated file. See readme.md.
4
4
  module Pandarus
5
5
  class AccountAuthorizationConfig < ModelBase
6
- attr_accessor :login_handle_name, :identifier_format, :auth_type, :id, :log_out_url, :log_in_url, :certificate_fingerprint, :change_password_url, :requested_authn_context, :auth_host, :auth_filter, :auth_over_tls, :auth_base, :auth_username, :auth_port, :position, :idp_entity_id, :login_attribute
6
+ attr_accessor :login_handle_name, :identifier_format, :auth_type, :id, :log_out_url, :log_in_url, :certificate_fingerprint, :change_password_url, :requested_authn_context, :auth_host, :auth_filter, :auth_over_tls, :auth_base, :auth_username, :auth_port, :position, :idp_entity_id, :login_attribute, :unknown_user_url
7
7
 
8
8
 
9
9
  def self.attribute_map
@@ -25,7 +25,8 @@ module Pandarus
25
25
  :auth_port => {:external => "auth_port", :container => false, :type => "Integer"},
26
26
  :position => {:external => "position", :container => false, :type => "Integer"},
27
27
  :idp_entity_id => {:external => "idp_entity_id", :container => false, :type => "String"},
28
- :login_attribute => {:external => "login_attribute", :container => false, :type => "String"}
28
+ :login_attribute => {:external => "login_attribute", :container => false, :type => "String"},
29
+ :unknown_user_url => {:external => "unknown_user_url", :container => false, :type => "String"}
29
30
 
30
31
  }
31
32
  end
@@ -3,7 +3,7 @@ require "pandarus/model_base"
3
3
  # This is an autogenerated file. See readme.md.
4
4
  module Pandarus
5
5
  class Assignment < ModelBase
6
- attr_accessor :id, :name, :description, :created_at, :updated_at, :due_at, :lock_at, :unlock_at, :all_dates, :course_id, :html_url, :assignment_group_id, :allowed_extensions, :turnitin_enabled, :turnitin_settings, :grade_group_students_individually, :external_tool_tag_attributes, :peer_reviews, :automatic_peer_reviews, :peer_review_count, :peer_reviews_assign_at, :group_category_id, :needs_grading_count, :position, :post_to_sis, :integration_id, :integration_data, :muted, :points_possible, :submission_types, :grading_type, :grading_standard_id, :published, :unpublishable, :only_visible_to_overrides, :locked_for_user, :lock_info, :lock_explanation, :quiz_id, :anonymous_submissions, :discussion_topic, :freeze_on_copy, :frozen, :frozen_attributes, :submission, :use_rubric_for_grading, :rubric_settings, :rubric
6
+ attr_accessor :id, :name, :description, :created_at, :updated_at, :due_at, :lock_at, :unlock_at, :all_dates, :course_id, :html_url, :assignment_group_id, :allowed_extensions, :turnitin_enabled, :turnitin_settings, :grade_group_students_individually, :external_tool_tag_attributes, :peer_reviews, :automatic_peer_reviews, :peer_review_count, :peer_reviews_assign_at, :group_category_id, :needs_grading_count, :position, :post_to_sis, :integration_id, :integration_data, :muted, :points_possible, :submission_types, :grading_type, :grading_standard_id, :published, :unpublishable, :only_visible_to_overrides, :locked_for_user, :lock_info, :lock_explanation, :quiz_id, :anonymous_submissions, :discussion_topic, :freeze_on_copy, :frozen, :frozen_attributes, :submission, :use_rubric_for_grading, :rubric_settings, :rubric, :assignment_visibility
7
7
 
8
8
 
9
9
  def self.attribute_map
@@ -55,7 +55,8 @@ module Pandarus
55
55
  :submission => {:external => "submission", :container => false, :type => "Submission"},
56
56
  :use_rubric_for_grading => {:external => "use_rubric_for_grading", :container => false, :type => nil},
57
57
  :rubric_settings => {:external => "rubric_settings", :container => false, :type => "String"},
58
- :rubric => {:external => "rubric", :container => false, :type => "RubricCriteria"}
58
+ :rubric => {:external => "rubric", :container => false, :type => "RubricCriteria"},
59
+ :assignment_visibility => {:external => "assignment_visibility", :container => true, :type => "Integer"}
59
60
 
60
61
  }
61
62
  end
@@ -3,7 +3,7 @@ require "pandarus/model_base"
3
3
  # This is an autogenerated file. See readme.md.
4
4
  module Pandarus
5
5
  class SisImport < ModelBase
6
- attr_accessor :id, :created_at, :ended_at, :updated_at, :workflow_state, :data, :progress, :processing_warnings
6
+ attr_accessor :id, :created_at, :ended_at, :updated_at, :workflow_state, :data, :progress, :processing_warnings, :processing_errors
7
7
 
8
8
 
9
9
  def self.attribute_map
@@ -15,7 +15,8 @@ module Pandarus
15
15
  :workflow_state => {:external => "workflow_state", :container => false, :type => "String"},
16
16
  :data => {:external => "data", :container => false, :type => "SisImportData"},
17
17
  :progress => {:external => "progress", :container => false, :type => "String"},
18
- :processing_warnings => {:external => "processing_warnings", :container => true, :type => "Array"}
18
+ :processing_warnings => {:external => "processing_warnings", :container => true, :type => "Array"},
19
+ :processing_errors => {:external => "processing_errors", :container => true, :type => "Array"}
19
20
 
20
21
  }
21
22
  end
@@ -275,6 +275,53 @@ module Pandarus
275
275
 
276
276
  end
277
277
 
278
+ # Create a global notification
279
+ def create_global_notification(account_id,account_notification__subject__,account_notification__message__,account_notification__start_at__,account_notification__end_at__,opts={})
280
+ query_param_keys = [
281
+
282
+ ]
283
+
284
+ form_param_keys = [
285
+ :account_notification__subject__,
286
+ :account_notification__message__,
287
+ :account_notification__start_at__,
288
+ :account_notification__end_at__,
289
+ :account_notification__icon__,
290
+ :account_notification_roles,
291
+
292
+ ]
293
+
294
+ # verify existence of params
295
+ raise "account_id is required" if account_id.nil?
296
+ raise "account_notification__subject__ is required" if account_notification__subject__.nil?
297
+ raise "account_notification__message__ is required" if account_notification__message__.nil?
298
+ raise "account_notification__start_at__ is required" if account_notification__start_at__.nil?
299
+ raise "account_notification__end_at__ is required" if account_notification__end_at__.nil?
300
+ # set default values and merge with input
301
+ options = underscored_merge_opts(opts,
302
+ :account_id => account_id,
303
+ :account_notification__subject__ => account_notification__subject__,
304
+ :account_notification__message__ => account_notification__message__,
305
+ :account_notification__start_at__ => account_notification__start_at__,
306
+ :account_notification__end_at__ => account_notification__end_at__
307
+ )
308
+
309
+ # resource path
310
+ path = path_replace("/v1/accounts/{account_id}/account_notifications",
311
+ :account_id => account_id)
312
+ headers = nil
313
+ form_params = select_params(options, form_param_keys)
314
+ query_params = select_params(options, query_param_keys)
315
+ if opts[:next_page]
316
+ pagination_params = page_params_load(:post, path)
317
+ query_params.merge! pagination_params if pagination_params
318
+ end
319
+ response = mixed_request(:post, path, query_params, form_params, headers)
320
+ page_params_store(:post, path)
321
+ response
322
+
323
+ end
324
+
278
325
  # List Available Reports
279
326
  def list_available_reports(account_id,opts={})
280
327
  query_param_keys = [
@@ -309,7 +356,7 @@ module Pandarus
309
356
  end
310
357
 
311
358
  # Start a Report
312
- def start_report(account_id,report,__parameters__,opts={})
359
+ def start_report(account_id,report,opts={})
313
360
  query_param_keys = [
314
361
 
315
362
  ]
@@ -322,12 +369,10 @@ module Pandarus
322
369
  # verify existence of params
323
370
  raise "account_id is required" if account_id.nil?
324
371
  raise "report is required" if report.nil?
325
- raise "__parameters__ is required" if __parameters__.nil?
326
372
  # set default values and merge with input
327
373
  options = underscored_merge_opts(opts,
328
374
  :account_id => account_id,
329
- :report => report,
330
- :__parameters__ => __parameters__
375
+ :report => report
331
376
  )
332
377
 
333
378
  # resource path
@@ -706,10 +751,518 @@ module Pandarus
706
751
  Admin.new(response)
707
752
  end
708
753
 
709
- # Remove account admin
710
- def remove_account_admin(account_id,user_id,opts={})
754
+ # Remove account admin
755
+ def remove_account_admin(account_id,user_id,opts={})
756
+ query_param_keys = [
757
+ :role
758
+ ]
759
+
760
+ form_param_keys = [
761
+
762
+ ]
763
+
764
+ # verify existence of params
765
+ raise "account_id is required" if account_id.nil?
766
+ raise "user_id is required" if user_id.nil?
767
+ # set default values and merge with input
768
+ options = underscored_merge_opts(opts,
769
+ :account_id => account_id,
770
+ :user_id => user_id
771
+ )
772
+
773
+ # resource path
774
+ path = path_replace("/v1/accounts/{account_id}/admins/{user_id}",
775
+ :account_id => account_id,
776
+ :user_id => user_id)
777
+ headers = nil
778
+ form_params = select_params(options, form_param_keys)
779
+ query_params = select_params(options, query_param_keys)
780
+ if opts[:next_page]
781
+ pagination_params = page_params_load(:delete, path)
782
+ query_params.merge! pagination_params if pagination_params
783
+ end
784
+ response = mixed_request(:delete, path, query_params, form_params, headers)
785
+ page_params_store(:delete, path)
786
+ Admin.new(response)
787
+ end
788
+
789
+ # List account admins
790
+ def list_account_admins(account_id,opts={})
791
+ query_param_keys = [
792
+ :user_id
793
+ ]
794
+
795
+ form_param_keys = [
796
+
797
+ ]
798
+
799
+ # verify existence of params
800
+ raise "account_id is required" if account_id.nil?
801
+ # set default values and merge with input
802
+ options = underscored_merge_opts(opts,
803
+ :account_id => account_id
804
+ )
805
+
806
+ # resource path
807
+ path = path_replace("/v1/accounts/{account_id}/admins",
808
+ :account_id => account_id)
809
+ headers = nil
810
+ form_params = select_params(options, form_param_keys)
811
+ query_params = select_params(options, query_param_keys)
812
+ if opts[:next_page]
813
+ pagination_params = page_params_load(:get, path)
814
+ query_params.merge! pagination_params if pagination_params
815
+ end
816
+ response = mixed_request(:get, path, query_params, form_params, headers)
817
+ page_params_store(:get, path)
818
+ response.map {|response|Admin.new(response)}
819
+ end
820
+
821
+ # Get department-level participation data
822
+ def get_department_level_participation_data_terms(account_id,term_id,opts={})
823
+ query_param_keys = [
824
+
825
+ ]
826
+
827
+ form_param_keys = [
828
+
829
+ ]
830
+
831
+ # verify existence of params
832
+ raise "account_id is required" if account_id.nil?
833
+ raise "term_id is required" if term_id.nil?
834
+ # set default values and merge with input
835
+ options = underscored_merge_opts(opts,
836
+ :account_id => account_id,
837
+ :term_id => term_id
838
+ )
839
+
840
+ # resource path
841
+ path = path_replace("/v1/accounts/{account_id}/analytics/terms/{term_id}/activity",
842
+ :account_id => account_id,
843
+ :term_id => term_id)
844
+ headers = nil
845
+ form_params = select_params(options, form_param_keys)
846
+ query_params = select_params(options, query_param_keys)
847
+ if opts[:next_page]
848
+ pagination_params = page_params_load(:get, path)
849
+ query_params.merge! pagination_params if pagination_params
850
+ end
851
+ response = mixed_request(:get, path, query_params, form_params, headers)
852
+ page_params_store(:get, path)
853
+ response
854
+
855
+ end
856
+
857
+ # Get department-level participation data
858
+ def get_department_level_participation_data_current(account_id,opts={})
859
+ query_param_keys = [
860
+
861
+ ]
862
+
863
+ form_param_keys = [
864
+
865
+ ]
866
+
867
+ # verify existence of params
868
+ raise "account_id is required" if account_id.nil?
869
+ # set default values and merge with input
870
+ options = underscored_merge_opts(opts,
871
+ :account_id => account_id
872
+ )
873
+
874
+ # resource path
875
+ path = path_replace("/v1/accounts/{account_id}/analytics/current/activity",
876
+ :account_id => account_id)
877
+ headers = nil
878
+ form_params = select_params(options, form_param_keys)
879
+ query_params = select_params(options, query_param_keys)
880
+ if opts[:next_page]
881
+ pagination_params = page_params_load(:get, path)
882
+ query_params.merge! pagination_params if pagination_params
883
+ end
884
+ response = mixed_request(:get, path, query_params, form_params, headers)
885
+ page_params_store(:get, path)
886
+ response
887
+
888
+ end
889
+
890
+ # Get department-level participation data
891
+ def get_department_level_participation_data_completed(account_id,opts={})
892
+ query_param_keys = [
893
+
894
+ ]
895
+
896
+ form_param_keys = [
897
+
898
+ ]
899
+
900
+ # verify existence of params
901
+ raise "account_id is required" if account_id.nil?
902
+ # set default values and merge with input
903
+ options = underscored_merge_opts(opts,
904
+ :account_id => account_id
905
+ )
906
+
907
+ # resource path
908
+ path = path_replace("/v1/accounts/{account_id}/analytics/completed/activity",
909
+ :account_id => account_id)
910
+ headers = nil
911
+ form_params = select_params(options, form_param_keys)
912
+ query_params = select_params(options, query_param_keys)
913
+ if opts[:next_page]
914
+ pagination_params = page_params_load(:get, path)
915
+ query_params.merge! pagination_params if pagination_params
916
+ end
917
+ response = mixed_request(:get, path, query_params, form_params, headers)
918
+ page_params_store(:get, path)
919
+ response
920
+
921
+ end
922
+
923
+ # Get department-level grade data
924
+ def get_department_level_grade_data_terms(account_id,term_id,opts={})
925
+ query_param_keys = [
926
+
927
+ ]
928
+
929
+ form_param_keys = [
930
+
931
+ ]
932
+
933
+ # verify existence of params
934
+ raise "account_id is required" if account_id.nil?
935
+ raise "term_id is required" if term_id.nil?
936
+ # set default values and merge with input
937
+ options = underscored_merge_opts(opts,
938
+ :account_id => account_id,
939
+ :term_id => term_id
940
+ )
941
+
942
+ # resource path
943
+ path = path_replace("/v1/accounts/{account_id}/analytics/terms/{term_id}/grades",
944
+ :account_id => account_id,
945
+ :term_id => term_id)
946
+ headers = nil
947
+ form_params = select_params(options, form_param_keys)
948
+ query_params = select_params(options, query_param_keys)
949
+ if opts[:next_page]
950
+ pagination_params = page_params_load(:get, path)
951
+ query_params.merge! pagination_params if pagination_params
952
+ end
953
+ response = mixed_request(:get, path, query_params, form_params, headers)
954
+ page_params_store(:get, path)
955
+ response
956
+
957
+ end
958
+
959
+ # Get department-level grade data
960
+ def get_department_level_grade_data_current(account_id,opts={})
961
+ query_param_keys = [
962
+
963
+ ]
964
+
965
+ form_param_keys = [
966
+
967
+ ]
968
+
969
+ # verify existence of params
970
+ raise "account_id is required" if account_id.nil?
971
+ # set default values and merge with input
972
+ options = underscored_merge_opts(opts,
973
+ :account_id => account_id
974
+ )
975
+
976
+ # resource path
977
+ path = path_replace("/v1/accounts/{account_id}/analytics/current/grades",
978
+ :account_id => account_id)
979
+ headers = nil
980
+ form_params = select_params(options, form_param_keys)
981
+ query_params = select_params(options, query_param_keys)
982
+ if opts[:next_page]
983
+ pagination_params = page_params_load(:get, path)
984
+ query_params.merge! pagination_params if pagination_params
985
+ end
986
+ response = mixed_request(:get, path, query_params, form_params, headers)
987
+ page_params_store(:get, path)
988
+ response
989
+
990
+ end
991
+
992
+ # Get department-level grade data
993
+ def get_department_level_grade_data_completed(account_id,opts={})
994
+ query_param_keys = [
995
+
996
+ ]
997
+
998
+ form_param_keys = [
999
+
1000
+ ]
1001
+
1002
+ # verify existence of params
1003
+ raise "account_id is required" if account_id.nil?
1004
+ # set default values and merge with input
1005
+ options = underscored_merge_opts(opts,
1006
+ :account_id => account_id
1007
+ )
1008
+
1009
+ # resource path
1010
+ path = path_replace("/v1/accounts/{account_id}/analytics/completed/grades",
1011
+ :account_id => account_id)
1012
+ headers = nil
1013
+ form_params = select_params(options, form_param_keys)
1014
+ query_params = select_params(options, query_param_keys)
1015
+ if opts[:next_page]
1016
+ pagination_params = page_params_load(:get, path)
1017
+ query_params.merge! pagination_params if pagination_params
1018
+ end
1019
+ response = mixed_request(:get, path, query_params, form_params, headers)
1020
+ page_params_store(:get, path)
1021
+ response
1022
+
1023
+ end
1024
+
1025
+ # Get department-level statistics
1026
+ def get_department_level_statistics_terms(account_id,term_id,opts={})
1027
+ query_param_keys = [
1028
+
1029
+ ]
1030
+
1031
+ form_param_keys = [
1032
+
1033
+ ]
1034
+
1035
+ # verify existence of params
1036
+ raise "account_id is required" if account_id.nil?
1037
+ raise "term_id is required" if term_id.nil?
1038
+ # set default values and merge with input
1039
+ options = underscored_merge_opts(opts,
1040
+ :account_id => account_id,
1041
+ :term_id => term_id
1042
+ )
1043
+
1044
+ # resource path
1045
+ path = path_replace("/v1/accounts/{account_id}/analytics/terms/{term_id}/statistics",
1046
+ :account_id => account_id,
1047
+ :term_id => term_id)
1048
+ headers = nil
1049
+ form_params = select_params(options, form_param_keys)
1050
+ query_params = select_params(options, query_param_keys)
1051
+ if opts[:next_page]
1052
+ pagination_params = page_params_load(:get, path)
1053
+ query_params.merge! pagination_params if pagination_params
1054
+ end
1055
+ response = mixed_request(:get, path, query_params, form_params, headers)
1056
+ page_params_store(:get, path)
1057
+ response
1058
+
1059
+ end
1060
+
1061
+ # Get department-level statistics
1062
+ def get_department_level_statistics_current(account_id,opts={})
1063
+ query_param_keys = [
1064
+
1065
+ ]
1066
+
1067
+ form_param_keys = [
1068
+
1069
+ ]
1070
+
1071
+ # verify existence of params
1072
+ raise "account_id is required" if account_id.nil?
1073
+ # set default values and merge with input
1074
+ options = underscored_merge_opts(opts,
1075
+ :account_id => account_id
1076
+ )
1077
+
1078
+ # resource path
1079
+ path = path_replace("/v1/accounts/{account_id}/analytics/current/statistics",
1080
+ :account_id => account_id)
1081
+ headers = nil
1082
+ form_params = select_params(options, form_param_keys)
1083
+ query_params = select_params(options, query_param_keys)
1084
+ if opts[:next_page]
1085
+ pagination_params = page_params_load(:get, path)
1086
+ query_params.merge! pagination_params if pagination_params
1087
+ end
1088
+ response = mixed_request(:get, path, query_params, form_params, headers)
1089
+ page_params_store(:get, path)
1090
+ response
1091
+
1092
+ end
1093
+
1094
+ # Get department-level statistics
1095
+ def get_department_level_statistics_completed(account_id,opts={})
1096
+ query_param_keys = [
1097
+
1098
+ ]
1099
+
1100
+ form_param_keys = [
1101
+
1102
+ ]
1103
+
1104
+ # verify existence of params
1105
+ raise "account_id is required" if account_id.nil?
1106
+ # set default values and merge with input
1107
+ options = underscored_merge_opts(opts,
1108
+ :account_id => account_id
1109
+ )
1110
+
1111
+ # resource path
1112
+ path = path_replace("/v1/accounts/{account_id}/analytics/completed/statistics",
1113
+ :account_id => account_id)
1114
+ headers = nil
1115
+ form_params = select_params(options, form_param_keys)
1116
+ query_params = select_params(options, query_param_keys)
1117
+ if opts[:next_page]
1118
+ pagination_params = page_params_load(:get, path)
1119
+ query_params.merge! pagination_params if pagination_params
1120
+ end
1121
+ response = mixed_request(:get, path, query_params, form_params, headers)
1122
+ page_params_store(:get, path)
1123
+ response
1124
+
1125
+ end
1126
+
1127
+ # Get course-level participation data
1128
+ def get_course_level_participation_data(course_id,opts={})
1129
+ query_param_keys = [
1130
+
1131
+ ]
1132
+
1133
+ form_param_keys = [
1134
+
1135
+ ]
1136
+
1137
+ # verify existence of params
1138
+ raise "course_id is required" if course_id.nil?
1139
+ # set default values and merge with input
1140
+ options = underscored_merge_opts(opts,
1141
+ :course_id => course_id
1142
+ )
1143
+
1144
+ # resource path
1145
+ path = path_replace("/v1/courses/{course_id}/analytics/activity",
1146
+ :course_id => course_id)
1147
+ headers = nil
1148
+ form_params = select_params(options, form_param_keys)
1149
+ query_params = select_params(options, query_param_keys)
1150
+ if opts[:next_page]
1151
+ pagination_params = page_params_load(:get, path)
1152
+ query_params.merge! pagination_params if pagination_params
1153
+ end
1154
+ response = mixed_request(:get, path, query_params, form_params, headers)
1155
+ page_params_store(:get, path)
1156
+ response
1157
+
1158
+ end
1159
+
1160
+ # Get course-level assignment data
1161
+ def get_course_level_assignment_data(course_id,opts={})
1162
+ query_param_keys = [
1163
+ :async
1164
+ ]
1165
+
1166
+ form_param_keys = [
1167
+
1168
+ ]
1169
+
1170
+ # verify existence of params
1171
+ raise "course_id is required" if course_id.nil?
1172
+ # set default values and merge with input
1173
+ options = underscored_merge_opts(opts,
1174
+ :course_id => course_id
1175
+ )
1176
+
1177
+ # resource path
1178
+ path = path_replace("/v1/courses/{course_id}/analytics/assignments",
1179
+ :course_id => course_id)
1180
+ headers = nil
1181
+ form_params = select_params(options, form_param_keys)
1182
+ query_params = select_params(options, query_param_keys)
1183
+ if opts[:next_page]
1184
+ pagination_params = page_params_load(:get, path)
1185
+ query_params.merge! pagination_params if pagination_params
1186
+ end
1187
+ response = mixed_request(:get, path, query_params, form_params, headers)
1188
+ page_params_store(:get, path)
1189
+ response
1190
+
1191
+ end
1192
+
1193
+ # Get course-level student summary data
1194
+ def get_course_level_student_summary_data(course_id,opts={})
1195
+ query_param_keys = [
1196
+
1197
+ ]
1198
+
1199
+ form_param_keys = [
1200
+
1201
+ ]
1202
+
1203
+ # verify existence of params
1204
+ raise "course_id is required" if course_id.nil?
1205
+ # set default values and merge with input
1206
+ options = underscored_merge_opts(opts,
1207
+ :course_id => course_id
1208
+ )
1209
+
1210
+ # resource path
1211
+ path = path_replace("/v1/courses/{course_id}/analytics/student_summaries",
1212
+ :course_id => course_id)
1213
+ headers = nil
1214
+ form_params = select_params(options, form_param_keys)
1215
+ query_params = select_params(options, query_param_keys)
1216
+ if opts[:next_page]
1217
+ pagination_params = page_params_load(:get, path)
1218
+ query_params.merge! pagination_params if pagination_params
1219
+ end
1220
+ response = mixed_request(:get, path, query_params, form_params, headers)
1221
+ page_params_store(:get, path)
1222
+ response
1223
+
1224
+ end
1225
+
1226
+ # Get user-in-a-course-level participation data
1227
+ def get_user_in_a_course_level_participation_data(course_id,student_id,opts={})
1228
+ query_param_keys = [
1229
+
1230
+ ]
1231
+
1232
+ form_param_keys = [
1233
+
1234
+ ]
1235
+
1236
+ # verify existence of params
1237
+ raise "course_id is required" if course_id.nil?
1238
+ raise "student_id is required" if student_id.nil?
1239
+ # set default values and merge with input
1240
+ options = underscored_merge_opts(opts,
1241
+ :course_id => course_id,
1242
+ :student_id => student_id
1243
+ )
1244
+
1245
+ # resource path
1246
+ path = path_replace("/v1/courses/{course_id}/analytics/users/{student_id}/activity",
1247
+ :course_id => course_id,
1248
+ :student_id => student_id)
1249
+ headers = nil
1250
+ form_params = select_params(options, form_param_keys)
1251
+ query_params = select_params(options, query_param_keys)
1252
+ if opts[:next_page]
1253
+ pagination_params = page_params_load(:get, path)
1254
+ query_params.merge! pagination_params if pagination_params
1255
+ end
1256
+ response = mixed_request(:get, path, query_params, form_params, headers)
1257
+ page_params_store(:get, path)
1258
+ response
1259
+
1260
+ end
1261
+
1262
+ # Get user-in-a-course-level assignment data
1263
+ def get_user_in_a_course_level_assignment_data(course_id,student_id,opts={})
711
1264
  query_param_keys = [
712
- :role
1265
+
713
1266
  ]
714
1267
 
715
1268
  form_param_keys = [
@@ -717,34 +1270,35 @@ module Pandarus
717
1270
  ]
718
1271
 
719
1272
  # verify existence of params
720
- raise "account_id is required" if account_id.nil?
721
- raise "user_id is required" if user_id.nil?
1273
+ raise "course_id is required" if course_id.nil?
1274
+ raise "student_id is required" if student_id.nil?
722
1275
  # set default values and merge with input
723
1276
  options = underscored_merge_opts(opts,
724
- :account_id => account_id,
725
- :user_id => user_id
1277
+ :course_id => course_id,
1278
+ :student_id => student_id
726
1279
  )
727
1280
 
728
1281
  # resource path
729
- path = path_replace("/v1/accounts/{account_id}/admins/{user_id}",
730
- :account_id => account_id,
731
- :user_id => user_id)
1282
+ path = path_replace("/v1/courses/{course_id}/analytics/users/{student_id}/assignments",
1283
+ :course_id => course_id,
1284
+ :student_id => student_id)
732
1285
  headers = nil
733
1286
  form_params = select_params(options, form_param_keys)
734
1287
  query_params = select_params(options, query_param_keys)
735
1288
  if opts[:next_page]
736
- pagination_params = page_params_load(:delete, path)
1289
+ pagination_params = page_params_load(:get, path)
737
1290
  query_params.merge! pagination_params if pagination_params
738
1291
  end
739
- response = mixed_request(:delete, path, query_params, form_params, headers)
740
- page_params_store(:delete, path)
741
- Admin.new(response)
1292
+ response = mixed_request(:get, path, query_params, form_params, headers)
1293
+ page_params_store(:get, path)
1294
+ response
1295
+
742
1296
  end
743
1297
 
744
- # List account admins
745
- def list_account_admins(account_id,opts={})
1298
+ # Get user-in-a-course-level messaging data
1299
+ def get_user_in_a_course_level_messaging_data(course_id,student_id,opts={})
746
1300
  query_param_keys = [
747
- :user_id
1301
+
748
1302
  ]
749
1303
 
750
1304
  form_param_keys = [
@@ -752,15 +1306,18 @@ module Pandarus
752
1306
  ]
753
1307
 
754
1308
  # verify existence of params
755
- raise "account_id is required" if account_id.nil?
1309
+ raise "course_id is required" if course_id.nil?
1310
+ raise "student_id is required" if student_id.nil?
756
1311
  # set default values and merge with input
757
1312
  options = underscored_merge_opts(opts,
758
- :account_id => account_id
1313
+ :course_id => course_id,
1314
+ :student_id => student_id
759
1315
  )
760
1316
 
761
1317
  # resource path
762
- path = path_replace("/v1/accounts/{account_id}/admins",
763
- :account_id => account_id)
1318
+ path = path_replace("/v1/courses/{course_id}/analytics/users/{student_id}/communication",
1319
+ :course_id => course_id,
1320
+ :student_id => student_id)
764
1321
  headers = nil
765
1322
  form_params = select_params(options, form_param_keys)
766
1323
  query_params = select_params(options, query_param_keys)
@@ -770,7 +1327,8 @@ module Pandarus
770
1327
  end
771
1328
  response = mixed_request(:get, path, query_params, form_params, headers)
772
1329
  page_params_store(:get, path)
773
- response.map {|response|Admin.new(response)}
1330
+ response
1331
+
774
1332
  end
775
1333
 
776
1334
  # List external feeds
@@ -838,7 +1396,7 @@ module Pandarus
838
1396
  end
839
1397
 
840
1398
  # Create an external feed
841
- def create_external_feed_courses(course_id,url,verbosity,opts={})
1399
+ def create_external_feed_courses(course_id,url,opts={})
842
1400
  query_param_keys = [
843
1401
 
844
1402
  ]
@@ -853,12 +1411,10 @@ module Pandarus
853
1411
  # verify existence of params
854
1412
  raise "course_id is required" if course_id.nil?
855
1413
  raise "url is required" if url.nil?
856
- raise "verbosity is required" if verbosity.nil?
857
1414
  # set default values and merge with input
858
1415
  options = underscored_merge_opts(opts,
859
1416
  :course_id => course_id,
860
- :url => url,
861
- :verbosity => verbosity
1417
+ :url => url
862
1418
  )
863
1419
 
864
1420
  # resource path
@@ -877,7 +1433,7 @@ module Pandarus
877
1433
  end
878
1434
 
879
1435
  # Create an external feed
880
- def create_external_feed_groups(group_id,url,verbosity,opts={})
1436
+ def create_external_feed_groups(group_id,url,opts={})
881
1437
  query_param_keys = [
882
1438
 
883
1439
  ]
@@ -892,12 +1448,10 @@ module Pandarus
892
1448
  # verify existence of params
893
1449
  raise "group_id is required" if group_id.nil?
894
1450
  raise "url is required" if url.nil?
895
- raise "verbosity is required" if verbosity.nil?
896
1451
  # set default values and merge with input
897
1452
  options = underscored_merge_opts(opts,
898
1453
  :group_id => group_id,
899
- :url => url,
900
- :verbosity => verbosity
1454
+ :url => url
901
1455
  )
902
1456
 
903
1457
  # resource path
@@ -1021,7 +1575,7 @@ module Pandarus
1021
1575
  end
1022
1576
 
1023
1577
  # Create an appointment group
1024
- def create_appointment_group(appointment_group__context_codes__,opts={})
1578
+ def create_appointment_group(appointment_group__context_codes__,appointment_group__title__,opts={})
1025
1579
  query_param_keys = [
1026
1580
 
1027
1581
  ]
@@ -1044,9 +1598,11 @@ module Pandarus
1044
1598
 
1045
1599
  # verify existence of params
1046
1600
  raise "appointment_group__context_codes__ is required" if appointment_group__context_codes__.nil?
1601
+ raise "appointment_group__title__ is required" if appointment_group__title__.nil?
1047
1602
  # set default values and merge with input
1048
1603
  options = underscored_merge_opts(opts,
1049
- :appointment_group__context_codes__ => appointment_group__context_codes__
1604
+ :appointment_group__context_codes__ => appointment_group__context_codes__,
1605
+ :appointment_group__title__ => appointment_group__title__
1050
1606
  )
1051
1607
 
1052
1608
  # resource path
@@ -1245,7 +1801,7 @@ module Pandarus
1245
1801
  end
1246
1802
 
1247
1803
  # List assignment groups
1248
- def list_assignment_groups(course_id,include,opts={})
1804
+ def list_assignment_groups(course_id,opts={})
1249
1805
  query_param_keys = [
1250
1806
  :include,
1251
1807
  :override_assignment_dates
@@ -1257,11 +1813,9 @@ module Pandarus
1257
1813
 
1258
1814
  # verify existence of params
1259
1815
  raise "course_id is required" if course_id.nil?
1260
- raise "include is required" if include.nil?
1261
1816
  # set default values and merge with input
1262
1817
  options = underscored_merge_opts(opts,
1263
- :course_id => course_id,
1264
- :include => include
1818
+ :course_id => course_id
1265
1819
  )
1266
1820
 
1267
1821
  # resource path
@@ -1280,7 +1834,7 @@ module Pandarus
1280
1834
  end
1281
1835
 
1282
1836
  # Get an Assignment Group
1283
- def get_assignment_group(course_id,assignment_group_id,include,opts={})
1837
+ def get_assignment_group(course_id,assignment_group_id,opts={})
1284
1838
  query_param_keys = [
1285
1839
  :include,
1286
1840
  :override_assignment_dates
@@ -1293,12 +1847,10 @@ module Pandarus
1293
1847
  # verify existence of params
1294
1848
  raise "course_id is required" if course_id.nil?
1295
1849
  raise "assignment_group_id is required" if assignment_group_id.nil?
1296
- raise "include is required" if include.nil?
1297
1850
  # set default values and merge with input
1298
1851
  options = underscored_merge_opts(opts,
1299
1852
  :course_id => course_id,
1300
- :assignment_group_id => assignment_group_id,
1301
- :include => include
1853
+ :assignment_group_id => assignment_group_id
1302
1854
  )
1303
1855
 
1304
1856
  # resource path
@@ -1389,7 +1941,7 @@ module Pandarus
1389
1941
  end
1390
1942
 
1391
1943
  # Destroy an Assignment Group
1392
- def destroy_assignment_group(course_id,assignment_group_id,move_assignment_to,opts={})
1944
+ def destroy_assignment_group(course_id,assignment_group_id,opts={})
1393
1945
  query_param_keys = [
1394
1946
  :move_assignment_to
1395
1947
  ]
@@ -1401,12 +1953,10 @@ module Pandarus
1401
1953
  # verify existence of params
1402
1954
  raise "course_id is required" if course_id.nil?
1403
1955
  raise "assignment_group_id is required" if assignment_group_id.nil?
1404
- raise "move_assignment_to is required" if move_assignment_to.nil?
1405
1956
  # set default values and merge with input
1406
1957
  options = underscored_merge_opts(opts,
1407
1958
  :course_id => course_id,
1408
- :assignment_group_id => assignment_group_id,
1409
- :move_assignment_to => move_assignment_to
1959
+ :assignment_group_id => assignment_group_id
1410
1960
  )
1411
1961
 
1412
1962
  # resource path
@@ -1461,7 +2011,7 @@ module Pandarus
1461
2011
  end
1462
2012
 
1463
2013
  # List assignments
1464
- def list_assignments(course_id,include,opts={})
2014
+ def list_assignments(course_id,opts={})
1465
2015
  query_param_keys = [
1466
2016
  :include,
1467
2017
  :search_term,
@@ -1474,11 +2024,9 @@ module Pandarus
1474
2024
 
1475
2025
  # verify existence of params
1476
2026
  raise "course_id is required" if course_id.nil?
1477
- raise "include is required" if include.nil?
1478
2027
  # set default values and merge with input
1479
2028
  options = underscored_merge_opts(opts,
1480
- :course_id => course_id,
1481
- :include => include
2029
+ :course_id => course_id
1482
2030
  )
1483
2031
 
1484
2032
  # resource path
@@ -1497,7 +2045,7 @@ module Pandarus
1497
2045
  end
1498
2046
 
1499
2047
  # Get a single assignment
1500
- def get_single_assignment(course_id,id,include,opts={})
2048
+ def get_single_assignment(course_id,id,opts={})
1501
2049
  query_param_keys = [
1502
2050
  :include,
1503
2051
  :override_assignment_dates
@@ -1510,12 +2058,10 @@ module Pandarus
1510
2058
  # verify existence of params
1511
2059
  raise "course_id is required" if course_id.nil?
1512
2060
  raise "id is required" if id.nil?
1513
- raise "include is required" if include.nil?
1514
2061
  # set default values and merge with input
1515
2062
  options = underscored_merge_opts(opts,
1516
2063
  :course_id => course_id,
1517
- :id => id,
1518
- :include => include
2064
+ :id => id
1519
2065
  )
1520
2066
 
1521
2067
  # resource path
@@ -1535,7 +2081,7 @@ module Pandarus
1535
2081
  end
1536
2082
 
1537
2083
  # Create an assignment
1538
- def create_assignment(course_id,assignment__name__,assignment__submission_types__,opts={})
2084
+ def create_assignment(course_id,assignment__name__,opts={})
1539
2085
  query_param_keys = [
1540
2086
 
1541
2087
  ]
@@ -1546,9 +2092,9 @@ module Pandarus
1546
2092
  :assignment__submission_types__,
1547
2093
  :assignment__allowed_extensions__,
1548
2094
  :assignment__turnitin_enabled__,
2095
+ :assignment__turnitin_settings__,
1549
2096
  :assignment__integration_data__,
1550
2097
  :assignment__integration_id__,
1551
- :assignment__turnitin_settings__,
1552
2098
  :assignment__peer_reviews__,
1553
2099
  :assignment__automatic_peer_reviews__,
1554
2100
  :assignment__notify_of_update__,
@@ -1573,12 +2119,10 @@ module Pandarus
1573
2119
  # verify existence of params
1574
2120
  raise "course_id is required" if course_id.nil?
1575
2121
  raise "assignment__name__ is required" if assignment__name__.nil?
1576
- raise "assignment__submission_types__ is required" if assignment__submission_types__.nil?
1577
2122
  # set default values and merge with input
1578
2123
  options = underscored_merge_opts(opts,
1579
2124
  :course_id => course_id,
1580
- :assignment__name__ => assignment__name__,
1581
- :assignment__submission_types__ => assignment__submission_types__
2125
+ :assignment__name__ => assignment__name__
1582
2126
  )
1583
2127
 
1584
2128
  # resource path
@@ -1609,6 +2153,8 @@ module Pandarus
1609
2153
  :assignment__allowed_extensions__,
1610
2154
  :assignment__turnitin_enabled__,
1611
2155
  :assignment__turnitin_settings__,
2156
+ :assignment__integration_data__,
2157
+ :assignment__integration_id__,
1612
2158
  :assignment__peer_reviews__,
1613
2159
  :assignment__automatic_peer_reviews__,
1614
2160
  :assignment__notify_of_update__,
@@ -2321,7 +2867,7 @@ module Pandarus
2321
2867
  end
2322
2868
 
2323
2869
  # List of CommMessages for a user
2324
- def list_of_commmessages_for_user(user_id,opts={})
2870
+ def list_of_commmessages_for_user(opts={})
2325
2871
  query_param_keys = [
2326
2872
  :user_id,
2327
2873
  :start_time,
@@ -2332,11 +2878,10 @@ module Pandarus
2332
2878
 
2333
2879
  ]
2334
2880
 
2335
- # verify existence of params
2336
- raise "user_id is required" if user_id.nil?
2337
2881
  # set default values and merge with input
2338
2882
  options = underscored_merge_opts(opts,
2339
- :user_id => user_id
2883
+ {}
2884
+
2340
2885
  )
2341
2886
 
2342
2887
  # resource path
@@ -2387,7 +2932,7 @@ module Pandarus
2387
2932
  end
2388
2933
 
2389
2934
  # Create a communication channel
2390
- def create_communication_channel(user_id,communication_channel__address__,communication_channel__type__,opts={})
2935
+ def create_communication_channel(user_id,opts={})
2391
2936
  query_param_keys = [
2392
2937
 
2393
2938
  ]
@@ -2401,13 +2946,9 @@ module Pandarus
2401
2946
 
2402
2947
  # verify existence of params
2403
2948
  raise "user_id is required" if user_id.nil?
2404
- raise "communication_channel__address__ is required" if communication_channel__address__.nil?
2405
- raise "communication_channel__type__ is required" if communication_channel__type__.nil?
2406
2949
  # set default values and merge with input
2407
2950
  options = underscored_merge_opts(opts,
2408
- :user_id => user_id,
2409
- :communication_channel__address__ => communication_channel__address__,
2410
- :communication_channel__type__ => communication_channel__type__
2951
+ :user_id => user_id
2411
2952
  )
2412
2953
 
2413
2954
  # resource path
@@ -2563,7 +3104,7 @@ module Pandarus
2563
3104
  end
2564
3105
 
2565
3106
  # List content exports
2566
- def list_content_exports(course_id,opts={})
3107
+ def list_content_exports_courses(course_id,opts={})
2567
3108
  query_param_keys = [
2568
3109
 
2569
3110
  ]
@@ -2594,8 +3135,72 @@ module Pandarus
2594
3135
  response.map {|response|ContentExport.new(response)}
2595
3136
  end
2596
3137
 
3138
+ # List content exports
3139
+ def list_content_exports_groups(group_id,opts={})
3140
+ query_param_keys = [
3141
+
3142
+ ]
3143
+
3144
+ form_param_keys = [
3145
+
3146
+ ]
3147
+
3148
+ # verify existence of params
3149
+ raise "group_id is required" if group_id.nil?
3150
+ # set default values and merge with input
3151
+ options = underscored_merge_opts(opts,
3152
+ :group_id => group_id
3153
+ )
3154
+
3155
+ # resource path
3156
+ path = path_replace("/v1/groups/{group_id}/content_exports",
3157
+ :group_id => group_id)
3158
+ headers = nil
3159
+ form_params = select_params(options, form_param_keys)
3160
+ query_params = select_params(options, query_param_keys)
3161
+ if opts[:next_page]
3162
+ pagination_params = page_params_load(:get, path)
3163
+ query_params.merge! pagination_params if pagination_params
3164
+ end
3165
+ response = mixed_request(:get, path, query_params, form_params, headers)
3166
+ page_params_store(:get, path)
3167
+ response.map {|response|ContentExport.new(response)}
3168
+ end
3169
+
3170
+ # List content exports
3171
+ def list_content_exports_users(user_id,opts={})
3172
+ query_param_keys = [
3173
+
3174
+ ]
3175
+
3176
+ form_param_keys = [
3177
+
3178
+ ]
3179
+
3180
+ # verify existence of params
3181
+ raise "user_id is required" if user_id.nil?
3182
+ # set default values and merge with input
3183
+ options = underscored_merge_opts(opts,
3184
+ :user_id => user_id
3185
+ )
3186
+
3187
+ # resource path
3188
+ path = path_replace("/v1/users/{user_id}/content_exports",
3189
+ :user_id => user_id)
3190
+ headers = nil
3191
+ form_params = select_params(options, form_param_keys)
3192
+ query_params = select_params(options, query_param_keys)
3193
+ if opts[:next_page]
3194
+ pagination_params = page_params_load(:get, path)
3195
+ query_params.merge! pagination_params if pagination_params
3196
+ end
3197
+ response = mixed_request(:get, path, query_params, form_params, headers)
3198
+ page_params_store(:get, path)
3199
+ response.map {|response|ContentExport.new(response)}
3200
+ end
3201
+
2597
3202
  # Show content export
2598
- def show_content_export(course_id,id,opts={})
3203
+ def show_content_export_courses(course_id,id,opts={})
2599
3204
  query_param_keys = [
2600
3205
 
2601
3206
  ]
@@ -2629,29 +3234,166 @@ module Pandarus
2629
3234
  ContentExport.new(response)
2630
3235
  end
2631
3236
 
2632
- # Export course content
2633
- def export_course_content(course_id,export_type,opts={})
3237
+ # Show content export
3238
+ def show_content_export_groups(group_id,id,opts={})
3239
+ query_param_keys = [
3240
+
3241
+ ]
3242
+
3243
+ form_param_keys = [
3244
+
3245
+ ]
3246
+
3247
+ # verify existence of params
3248
+ raise "group_id is required" if group_id.nil?
3249
+ raise "id is required" if id.nil?
3250
+ # set default values and merge with input
3251
+ options = underscored_merge_opts(opts,
3252
+ :group_id => group_id,
3253
+ :id => id
3254
+ )
3255
+
3256
+ # resource path
3257
+ path = path_replace("/v1/groups/{group_id}/content_exports/{id}",
3258
+ :group_id => group_id,
3259
+ :id => id)
3260
+ headers = nil
3261
+ form_params = select_params(options, form_param_keys)
3262
+ query_params = select_params(options, query_param_keys)
3263
+ if opts[:next_page]
3264
+ pagination_params = page_params_load(:get, path)
3265
+ query_params.merge! pagination_params if pagination_params
3266
+ end
3267
+ response = mixed_request(:get, path, query_params, form_params, headers)
3268
+ page_params_store(:get, path)
3269
+ ContentExport.new(response)
3270
+ end
3271
+
3272
+ # Show content export
3273
+ def show_content_export_users(user_id,id,opts={})
3274
+ query_param_keys = [
3275
+
3276
+ ]
3277
+
3278
+ form_param_keys = [
3279
+
3280
+ ]
3281
+
3282
+ # verify existence of params
3283
+ raise "user_id is required" if user_id.nil?
3284
+ raise "id is required" if id.nil?
3285
+ # set default values and merge with input
3286
+ options = underscored_merge_opts(opts,
3287
+ :user_id => user_id,
3288
+ :id => id
3289
+ )
3290
+
3291
+ # resource path
3292
+ path = path_replace("/v1/users/{user_id}/content_exports/{id}",
3293
+ :user_id => user_id,
3294
+ :id => id)
3295
+ headers = nil
3296
+ form_params = select_params(options, form_param_keys)
3297
+ query_params = select_params(options, query_param_keys)
3298
+ if opts[:next_page]
3299
+ pagination_params = page_params_load(:get, path)
3300
+ query_params.merge! pagination_params if pagination_params
3301
+ end
3302
+ response = mixed_request(:get, path, query_params, form_params, headers)
3303
+ page_params_store(:get, path)
3304
+ ContentExport.new(response)
3305
+ end
3306
+
3307
+ # Export content
3308
+ def export_content_courses(course_id,opts={})
3309
+ query_param_keys = [
3310
+
3311
+ ]
3312
+
3313
+ form_param_keys = [
3314
+ :export_type,
3315
+ :skip_notifications,
3316
+
3317
+ ]
3318
+
3319
+ # verify existence of params
3320
+ raise "course_id is required" if course_id.nil?
3321
+ # set default values and merge with input
3322
+ options = underscored_merge_opts(opts,
3323
+ :course_id => course_id
3324
+ )
3325
+
3326
+ # resource path
3327
+ path = path_replace("/v1/courses/{course_id}/content_exports",
3328
+ :course_id => course_id)
3329
+ headers = nil
3330
+ form_params = select_params(options, form_param_keys)
3331
+ query_params = select_params(options, query_param_keys)
3332
+ if opts[:next_page]
3333
+ pagination_params = page_params_load(:post, path)
3334
+ query_params.merge! pagination_params if pagination_params
3335
+ end
3336
+ response = mixed_request(:post, path, query_params, form_params, headers)
3337
+ page_params_store(:post, path)
3338
+ ContentExport.new(response)
3339
+ end
3340
+
3341
+ # Export content
3342
+ def export_content_groups(group_id,opts={})
3343
+ query_param_keys = [
3344
+
3345
+ ]
3346
+
3347
+ form_param_keys = [
3348
+ :export_type,
3349
+ :skip_notifications,
3350
+
3351
+ ]
3352
+
3353
+ # verify existence of params
3354
+ raise "group_id is required" if group_id.nil?
3355
+ # set default values and merge with input
3356
+ options = underscored_merge_opts(opts,
3357
+ :group_id => group_id
3358
+ )
3359
+
3360
+ # resource path
3361
+ path = path_replace("/v1/groups/{group_id}/content_exports",
3362
+ :group_id => group_id)
3363
+ headers = nil
3364
+ form_params = select_params(options, form_param_keys)
3365
+ query_params = select_params(options, query_param_keys)
3366
+ if opts[:next_page]
3367
+ pagination_params = page_params_load(:post, path)
3368
+ query_params.merge! pagination_params if pagination_params
3369
+ end
3370
+ response = mixed_request(:post, path, query_params, form_params, headers)
3371
+ page_params_store(:post, path)
3372
+ ContentExport.new(response)
3373
+ end
3374
+
3375
+ # Export content
3376
+ def export_content_users(user_id,opts={})
2634
3377
  query_param_keys = [
2635
3378
 
2636
3379
  ]
2637
3380
 
2638
3381
  form_param_keys = [
2639
3382
  :export_type,
3383
+ :skip_notifications,
2640
3384
 
2641
3385
  ]
2642
3386
 
2643
3387
  # verify existence of params
2644
- raise "course_id is required" if course_id.nil?
2645
- raise "export_type is required" if export_type.nil?
3388
+ raise "user_id is required" if user_id.nil?
2646
3389
  # set default values and merge with input
2647
3390
  options = underscored_merge_opts(opts,
2648
- :course_id => course_id,
2649
- :export_type => export_type
3391
+ :user_id => user_id
2650
3392
  )
2651
3393
 
2652
3394
  # resource path
2653
- path = path_replace("/v1/courses/{course_id}/content_exports",
2654
- :course_id => course_id)
3395
+ path = path_replace("/v1/users/{user_id}/content_exports",
3396
+ :user_id => user_id)
2655
3397
  headers = nil
2656
3398
  form_params = select_params(options, form_param_keys)
2657
3399
  query_params = select_params(options, query_param_keys)
@@ -3389,7 +4131,7 @@ module Pandarus
3389
4131
  end
3390
4132
 
3391
4133
  # Create a content migration
3392
- def create_content_migration_accounts(account_id,migration_type,pre_attachment__name__,settings__file_url__,opts={})
4134
+ def create_content_migration_accounts(account_id,migration_type,opts={})
3393
4135
  query_param_keys = [
3394
4136
 
3395
4137
  ]
@@ -3410,20 +4152,17 @@ module Pandarus
3410
4152
  :date_shift_options__new_start_date__,
3411
4153
  :date_shift_options__new_end_date__,
3412
4154
  :date_shift_options__day_substitutions_____x__,
4155
+ :date_shift_options__remove_dates__,
3413
4156
 
3414
4157
  ]
3415
4158
 
3416
4159
  # verify existence of params
3417
4160
  raise "account_id is required" if account_id.nil?
3418
4161
  raise "migration_type is required" if migration_type.nil?
3419
- raise "pre_attachment__name__ is required" if pre_attachment__name__.nil?
3420
- raise "settings__file_url__ is required" if settings__file_url__.nil?
3421
4162
  # set default values and merge with input
3422
4163
  options = underscored_merge_opts(opts,
3423
4164
  :account_id => account_id,
3424
- :migration_type => migration_type,
3425
- :pre_attachment__name__ => pre_attachment__name__,
3426
- :settings__file_url__ => settings__file_url__
4165
+ :migration_type => migration_type
3427
4166
  )
3428
4167
 
3429
4168
  # resource path
@@ -3442,7 +4181,7 @@ module Pandarus
3442
4181
  end
3443
4182
 
3444
4183
  # Create a content migration
3445
- def create_content_migration_courses(course_id,migration_type,pre_attachment__name__,settings__file_url__,opts={})
4184
+ def create_content_migration_courses(course_id,migration_type,opts={})
3446
4185
  query_param_keys = [
3447
4186
 
3448
4187
  ]
@@ -3463,20 +4202,17 @@ module Pandarus
3463
4202
  :date_shift_options__new_start_date__,
3464
4203
  :date_shift_options__new_end_date__,
3465
4204
  :date_shift_options__day_substitutions_____x__,
4205
+ :date_shift_options__remove_dates__,
3466
4206
 
3467
4207
  ]
3468
4208
 
3469
4209
  # verify existence of params
3470
4210
  raise "course_id is required" if course_id.nil?
3471
4211
  raise "migration_type is required" if migration_type.nil?
3472
- raise "pre_attachment__name__ is required" if pre_attachment__name__.nil?
3473
- raise "settings__file_url__ is required" if settings__file_url__.nil?
3474
4212
  # set default values and merge with input
3475
4213
  options = underscored_merge_opts(opts,
3476
4214
  :course_id => course_id,
3477
- :migration_type => migration_type,
3478
- :pre_attachment__name__ => pre_attachment__name__,
3479
- :settings__file_url__ => settings__file_url__
4215
+ :migration_type => migration_type
3480
4216
  )
3481
4217
 
3482
4218
  # resource path
@@ -3495,7 +4231,7 @@ module Pandarus
3495
4231
  end
3496
4232
 
3497
4233
  # Create a content migration
3498
- def create_content_migration_groups(group_id,migration_type,pre_attachment__name__,settings__file_url__,opts={})
4234
+ def create_content_migration_groups(group_id,migration_type,opts={})
3499
4235
  query_param_keys = [
3500
4236
 
3501
4237
  ]
@@ -3516,20 +4252,17 @@ module Pandarus
3516
4252
  :date_shift_options__new_start_date__,
3517
4253
  :date_shift_options__new_end_date__,
3518
4254
  :date_shift_options__day_substitutions_____x__,
4255
+ :date_shift_options__remove_dates__,
3519
4256
 
3520
4257
  ]
3521
4258
 
3522
4259
  # verify existence of params
3523
4260
  raise "group_id is required" if group_id.nil?
3524
4261
  raise "migration_type is required" if migration_type.nil?
3525
- raise "pre_attachment__name__ is required" if pre_attachment__name__.nil?
3526
- raise "settings__file_url__ is required" if settings__file_url__.nil?
3527
4262
  # set default values and merge with input
3528
4263
  options = underscored_merge_opts(opts,
3529
4264
  :group_id => group_id,
3530
- :migration_type => migration_type,
3531
- :pre_attachment__name__ => pre_attachment__name__,
3532
- :settings__file_url__ => settings__file_url__
4265
+ :migration_type => migration_type
3533
4266
  )
3534
4267
 
3535
4268
  # resource path
@@ -3548,7 +4281,7 @@ module Pandarus
3548
4281
  end
3549
4282
 
3550
4283
  # Create a content migration
3551
- def create_content_migration_users(user_id,migration_type,pre_attachment__name__,settings__file_url__,opts={})
4284
+ def create_content_migration_users(user_id,migration_type,opts={})
3552
4285
  query_param_keys = [
3553
4286
 
3554
4287
  ]
@@ -3569,20 +4302,17 @@ module Pandarus
3569
4302
  :date_shift_options__new_start_date__,
3570
4303
  :date_shift_options__new_end_date__,
3571
4304
  :date_shift_options__day_substitutions_____x__,
4305
+ :date_shift_options__remove_dates__,
3572
4306
 
3573
4307
  ]
3574
4308
 
3575
4309
  # verify existence of params
3576
4310
  raise "user_id is required" if user_id.nil?
3577
4311
  raise "migration_type is required" if migration_type.nil?
3578
- raise "pre_attachment__name__ is required" if pre_attachment__name__.nil?
3579
- raise "settings__file_url__ is required" if settings__file_url__.nil?
3580
4312
  # set default values and merge with input
3581
4313
  options = underscored_merge_opts(opts,
3582
4314
  :user_id => user_id,
3583
- :migration_type => migration_type,
3584
- :pre_attachment__name__ => pre_attachment__name__,
3585
- :settings__file_url__ => settings__file_url__
4315
+ :migration_type => migration_type
3586
4316
  )
3587
4317
 
3588
4318
  # resource path
@@ -3869,7 +4599,7 @@ module Pandarus
3869
4599
  end
3870
4600
 
3871
4601
  # List conversations
3872
- def list_conversations(interleave_submissions,include_all_conversation_ids,opts={})
4602
+ def list_conversations(opts={})
3873
4603
  query_param_keys = [
3874
4604
  :scope,
3875
4605
  :filter,
@@ -3882,13 +4612,10 @@ module Pandarus
3882
4612
 
3883
4613
  ]
3884
4614
 
3885
- # verify existence of params
3886
- raise "interleave_submissions is required" if interleave_submissions.nil?
3887
- raise "include_all_conversation_ids is required" if include_all_conversation_ids.nil?
3888
4615
  # set default values and merge with input
3889
4616
  options = underscored_merge_opts(opts,
3890
- :interleave_submissions => interleave_submissions,
3891
- :include_all_conversation_ids => include_all_conversation_ids
4617
+ {}
4618
+
3892
4619
  )
3893
4620
 
3894
4621
  # resource path
@@ -3907,7 +4634,7 @@ module Pandarus
3907
4634
  end
3908
4635
 
3909
4636
  # Create a conversation
3910
- def create_conversation(recipients,body,group_conversation,attachment_ids,media_comment_id,media_comment_type,mode,opts={})
4637
+ def create_conversation(recipients,body,opts={})
3911
4638
  query_param_keys = [
3912
4639
 
3913
4640
  ]
@@ -3932,20 +4659,10 @@ module Pandarus
3932
4659
  # verify existence of params
3933
4660
  raise "recipients is required" if recipients.nil?
3934
4661
  raise "body is required" if body.nil?
3935
- raise "group_conversation is required" if group_conversation.nil?
3936
- raise "attachment_ids is required" if attachment_ids.nil?
3937
- raise "media_comment_id is required" if media_comment_id.nil?
3938
- raise "media_comment_type is required" if media_comment_type.nil?
3939
- raise "mode is required" if mode.nil?
3940
4662
  # set default values and merge with input
3941
4663
  options = underscored_merge_opts(opts,
3942
4664
  :recipients => recipients,
3943
- :body => body,
3944
- :group_conversation => group_conversation,
3945
- :attachment_ids => attachment_ids,
3946
- :media_comment_id => media_comment_id,
3947
- :media_comment_type => media_comment_type,
3948
- :mode => mode
4665
+ :body => body
3949
4666
  )
3950
4667
 
3951
4668
  # resource path
@@ -3997,7 +4714,7 @@ module Pandarus
3997
4714
  end
3998
4715
 
3999
4716
  # Get a single conversation
4000
- def get_single_conversation(id,interleave_submissions,auto_mark_as_read,opts={})
4717
+ def get_single_conversation(id,opts={})
4001
4718
  query_param_keys = [
4002
4719
  :interleave_submissions,
4003
4720
  :scope,
@@ -4012,13 +4729,9 @@ module Pandarus
4012
4729
 
4013
4730
  # verify existence of params
4014
4731
  raise "id is required" if id.nil?
4015
- raise "interleave_submissions is required" if interleave_submissions.nil?
4016
- raise "auto_mark_as_read is required" if auto_mark_as_read.nil?
4017
4732
  # set default values and merge with input
4018
4733
  options = underscored_merge_opts(opts,
4019
- :id => id,
4020
- :interleave_submissions => interleave_submissions,
4021
- :auto_mark_as_read => auto_mark_as_read
4734
+ :id => id
4022
4735
  )
4023
4736
 
4024
4737
  # resource path
@@ -4038,7 +4751,7 @@ module Pandarus
4038
4751
  end
4039
4752
 
4040
4753
  # Edit a conversation
4041
- def edit_conversation(id,conversation__subject__,conversation__workflow_state__,conversation__subscribed__,conversation__starred__,opts={})
4754
+ def edit_conversation(id,opts={})
4042
4755
  query_param_keys = [
4043
4756
 
4044
4757
  ]
@@ -4056,17 +4769,9 @@ module Pandarus
4056
4769
 
4057
4770
  # verify existence of params
4058
4771
  raise "id is required" if id.nil?
4059
- raise "conversation__subject__ is required" if conversation__subject__.nil?
4060
- raise "conversation__workflow_state__ is required" if conversation__workflow_state__.nil?
4061
- raise "conversation__subscribed__ is required" if conversation__subscribed__.nil?
4062
- raise "conversation__starred__ is required" if conversation__starred__.nil?
4063
4772
  # set default values and merge with input
4064
4773
  options = underscored_merge_opts(opts,
4065
- :id => id,
4066
- :conversation__subject__ => conversation__subject__,
4067
- :conversation__workflow_state__ => conversation__workflow_state__,
4068
- :conversation__subscribed__ => conversation__subscribed__,
4069
- :conversation__starred__ => conversation__starred__
4774
+ :id => id
4070
4775
  )
4071
4776
 
4072
4777
  # resource path
@@ -4187,7 +4892,7 @@ module Pandarus
4187
4892
  end
4188
4893
 
4189
4894
  # Add a message
4190
- def add_message(id,body,attachment_ids,media_comment_id,media_comment_type,opts={})
4895
+ def add_message(id,body,opts={})
4191
4896
  query_param_keys = [
4192
4897
 
4193
4898
  ]
@@ -4206,16 +4911,10 @@ module Pandarus
4206
4911
  # verify existence of params
4207
4912
  raise "id is required" if id.nil?
4208
4913
  raise "body is required" if body.nil?
4209
- raise "attachment_ids is required" if attachment_ids.nil?
4210
- raise "media_comment_id is required" if media_comment_id.nil?
4211
- raise "media_comment_type is required" if media_comment_type.nil?
4212
4914
  # set default values and merge with input
4213
4915
  options = underscored_merge_opts(opts,
4214
4916
  :id => id,
4215
- :body => body,
4216
- :attachment_ids => attachment_ids,
4217
- :media_comment_id => media_comment_id,
4218
- :media_comment_type => media_comment_type
4917
+ :body => body
4219
4918
  )
4220
4919
 
4221
4920
  # resource path
@@ -4404,7 +5103,7 @@ module Pandarus
4404
5103
  end
4405
5104
 
4406
5105
  # List your courses
4407
- def list_your_courses(include,opts={})
5106
+ def list_your_courses(opts={})
4408
5107
  query_param_keys = [
4409
5108
  :enrollment_type,
4410
5109
  :enrollment_role,
@@ -4416,11 +5115,10 @@ module Pandarus
4416
5115
 
4417
5116
  ]
4418
5117
 
4419
- # verify existence of params
4420
- raise "include is required" if include.nil?
4421
5118
  # set default values and merge with input
4422
5119
  options = underscored_merge_opts(opts,
4423
- :include => include
5120
+ {}
5121
+
4424
5122
  )
4425
5123
 
4426
5124
  # resource path
@@ -4558,7 +5256,7 @@ module Pandarus
4558
5256
  end
4559
5257
 
4560
5258
  # List users in course
4561
- def list_users_in_course_users(course_id,include,opts={})
5259
+ def list_users_in_course_users(course_id,opts={})
4562
5260
  query_param_keys = [
4563
5261
  :search_term,
4564
5262
  :enrollment_type,
@@ -4573,11 +5271,9 @@ module Pandarus
4573
5271
 
4574
5272
  # verify existence of params
4575
5273
  raise "course_id is required" if course_id.nil?
4576
- raise "include is required" if include.nil?
4577
5274
  # set default values and merge with input
4578
5275
  options = underscored_merge_opts(opts,
4579
- :course_id => course_id,
4580
- :include => include
5276
+ :course_id => course_id
4581
5277
  )
4582
5278
 
4583
5279
  # resource path
@@ -4596,7 +5292,7 @@ module Pandarus
4596
5292
  end
4597
5293
 
4598
5294
  # List users in course
4599
- def list_users_in_course_search_users(course_id,include,opts={})
5295
+ def list_users_in_course_search_users(course_id,opts={})
4600
5296
  query_param_keys = [
4601
5297
  :search_term,
4602
5298
  :enrollment_type,
@@ -4611,11 +5307,9 @@ module Pandarus
4611
5307
 
4612
5308
  # verify existence of params
4613
5309
  raise "course_id is required" if course_id.nil?
4614
- raise "include is required" if include.nil?
4615
5310
  # set default values and merge with input
4616
5311
  options = underscored_merge_opts(opts,
4617
- :course_id => course_id,
4618
- :include => include
5312
+ :course_id => course_id
4619
5313
  )
4620
5314
 
4621
5315
  # resource path
@@ -4701,7 +5395,7 @@ module Pandarus
4701
5395
  end
4702
5396
 
4703
5397
  # Preview processed html
4704
- def preview_processed_html(course_id,html,opts={})
5398
+ def preview_processed_html(course_id,opts={})
4705
5399
  query_param_keys = [
4706
5400
 
4707
5401
  ]
@@ -4713,11 +5407,9 @@ module Pandarus
4713
5407
 
4714
5408
  # verify existence of params
4715
5409
  raise "course_id is required" if course_id.nil?
4716
- raise "html is required" if html.nil?
4717
5410
  # set default values and merge with input
4718
5411
  options = underscored_merge_opts(opts,
4719
- :course_id => course_id,
4720
- :html => html
5412
+ :course_id => course_id
4721
5413
  )
4722
5414
 
4723
5415
  # resource path
@@ -4904,7 +5596,7 @@ module Pandarus
4904
5596
  end
4905
5597
 
4906
5598
  # Update course settings
4907
- def update_course_settings(course_id,allow_student_discussion_topics,allow_student_forum_attachments,allow_student_discussion_editing,opts={})
5599
+ def update_course_settings(course_id,opts={})
4908
5600
  query_param_keys = [
4909
5601
 
4910
5602
  ]
@@ -4918,15 +5610,9 @@ module Pandarus
4918
5610
 
4919
5611
  # verify existence of params
4920
5612
  raise "course_id is required" if course_id.nil?
4921
- raise "allow_student_discussion_topics is required" if allow_student_discussion_topics.nil?
4922
- raise "allow_student_forum_attachments is required" if allow_student_forum_attachments.nil?
4923
- raise "allow_student_discussion_editing is required" if allow_student_discussion_editing.nil?
4924
5613
  # set default values and merge with input
4925
5614
  options = underscored_merge_opts(opts,
4926
- :course_id => course_id,
4927
- :allow_student_discussion_topics => allow_student_discussion_topics,
4928
- :allow_student_forum_attachments => allow_student_forum_attachments,
4929
- :allow_student_discussion_editing => allow_student_discussion_editing
5615
+ :course_id => course_id
4930
5616
  )
4931
5617
 
4932
5618
  # resource path
@@ -4946,7 +5632,7 @@ module Pandarus
4946
5632
  end
4947
5633
 
4948
5634
  # Get a single course
4949
- def get_single_course_courses(id,include,opts={})
5635
+ def get_single_course_courses(id,opts={})
4950
5636
  query_param_keys = [
4951
5637
  :include
4952
5638
  ]
@@ -4957,11 +5643,9 @@ module Pandarus
4957
5643
 
4958
5644
  # verify existence of params
4959
5645
  raise "id is required" if id.nil?
4960
- raise "include is required" if include.nil?
4961
5646
  # set default values and merge with input
4962
5647
  options = underscored_merge_opts(opts,
4963
- :id => id,
4964
- :include => include
5648
+ :id => id
4965
5649
  )
4966
5650
 
4967
5651
  # resource path
@@ -4980,7 +5664,7 @@ module Pandarus
4980
5664
  end
4981
5665
 
4982
5666
  # Get a single course
4983
- def get_single_course_accounts(account_id,id,include,opts={})
5667
+ def get_single_course_accounts(account_id,id,opts={})
4984
5668
  query_param_keys = [
4985
5669
  :include
4986
5670
  ]
@@ -4992,12 +5676,10 @@ module Pandarus
4992
5676
  # verify existence of params
4993
5677
  raise "account_id is required" if account_id.nil?
4994
5678
  raise "id is required" if id.nil?
4995
- raise "include is required" if include.nil?
4996
5679
  # set default values and merge with input
4997
5680
  options = underscored_merge_opts(opts,
4998
5681
  :account_id => account_id,
4999
- :id => id,
5000
- :include => include
5682
+ :id => id
5001
5683
  )
5002
5684
 
5003
5685
  # resource path
@@ -5125,7 +5807,7 @@ module Pandarus
5125
5807
  end
5126
5808
 
5127
5809
  # Copy course content
5128
- def copy_course_content(course_id,source_course,except,only,opts={})
5810
+ def copy_course_content(course_id,opts={})
5129
5811
  query_param_keys = [
5130
5812
 
5131
5813
  ]
@@ -5139,15 +5821,9 @@ module Pandarus
5139
5821
 
5140
5822
  # verify existence of params
5141
5823
  raise "course_id is required" if course_id.nil?
5142
- raise "source_course is required" if source_course.nil?
5143
- raise "except is required" if except.nil?
5144
- raise "only is required" if only.nil?
5145
5824
  # set default values and merge with input
5146
5825
  options = underscored_merge_opts(opts,
5147
- :course_id => course_id,
5148
- :source_course => source_course,
5149
- :except => except,
5150
- :only => only
5826
+ :course_id => course_id
5151
5827
  )
5152
5828
 
5153
5829
  # resource path
@@ -5169,7 +5845,7 @@ module Pandarus
5169
5845
  # List custom gradebook columns
5170
5846
  def list_custom_gradebook_columns(course_id,opts={})
5171
5847
  query_param_keys = [
5172
-
5848
+ :include_hidden
5173
5849
  ]
5174
5850
 
5175
5851
  form_param_keys = [
@@ -5199,7 +5875,7 @@ module Pandarus
5199
5875
  end
5200
5876
 
5201
5877
  # Create a custom gradebook column
5202
- def create_custom_gradebook_column(course_id,column__title__,column__position__,opts={})
5878
+ def create_custom_gradebook_column(course_id,column__title__,opts={})
5203
5879
  query_param_keys = [
5204
5880
 
5205
5881
  ]
@@ -5215,12 +5891,10 @@ module Pandarus
5215
5891
  # verify existence of params
5216
5892
  raise "course_id is required" if course_id.nil?
5217
5893
  raise "column__title__ is required" if column__title__.nil?
5218
- raise "column__position__ is required" if column__position__.nil?
5219
5894
  # set default values and merge with input
5220
5895
  options = underscored_merge_opts(opts,
5221
5896
  :course_id => course_id,
5222
- :column__title__ => column__title__,
5223
- :column__position__ => column__position__
5897
+ :column__title__ => column__title__
5224
5898
  )
5225
5899
 
5226
5900
  # resource path
@@ -5493,7 +6167,7 @@ module Pandarus
5493
6167
  end
5494
6168
 
5495
6169
  # Create a new discussion topic
5496
- def create_new_discussion_topic_courses(course_id,title,message,require_initial_post,opts={})
6170
+ def create_new_discussion_topic_courses(course_id,opts={})
5497
6171
  query_param_keys = [
5498
6172
 
5499
6173
  ]
@@ -5517,15 +6191,9 @@ module Pandarus
5517
6191
 
5518
6192
  # verify existence of params
5519
6193
  raise "course_id is required" if course_id.nil?
5520
- raise "title is required" if title.nil?
5521
- raise "message is required" if message.nil?
5522
- raise "require_initial_post is required" if require_initial_post.nil?
5523
6194
  # set default values and merge with input
5524
6195
  options = underscored_merge_opts(opts,
5525
- :course_id => course_id,
5526
- :title => title,
5527
- :message => message,
5528
- :require_initial_post => require_initial_post
6196
+ :course_id => course_id
5529
6197
  )
5530
6198
 
5531
6199
  # resource path
@@ -5545,7 +6213,7 @@ module Pandarus
5545
6213
  end
5546
6214
 
5547
6215
  # Create a new discussion topic
5548
- def create_new_discussion_topic_groups(group_id,title,message,require_initial_post,opts={})
6216
+ def create_new_discussion_topic_groups(group_id,opts={})
5549
6217
  query_param_keys = [
5550
6218
 
5551
6219
  ]
@@ -5569,15 +6237,9 @@ module Pandarus
5569
6237
 
5570
6238
  # verify existence of params
5571
6239
  raise "group_id is required" if group_id.nil?
5572
- raise "title is required" if title.nil?
5573
- raise "message is required" if message.nil?
5574
- raise "require_initial_post is required" if require_initial_post.nil?
5575
6240
  # set default values and merge with input
5576
6241
  options = underscored_merge_opts(opts,
5577
- :group_id => group_id,
5578
- :title => title,
5579
- :message => message,
5580
- :require_initial_post => require_initial_post
6242
+ :group_id => group_id
5581
6243
  )
5582
6244
 
5583
6245
  # resource path
@@ -5741,7 +6403,7 @@ module Pandarus
5741
6403
  end
5742
6404
 
5743
6405
  # Reorder pinned topics
5744
- def reorder_pinned_topics_courses(course_id,opts={})
6406
+ def reorder_pinned_topics_courses(course_id,order,opts={})
5745
6407
  query_param_keys = [
5746
6408
 
5747
6409
  ]
@@ -5753,9 +6415,11 @@ module Pandarus
5753
6415
 
5754
6416
  # verify existence of params
5755
6417
  raise "course_id is required" if course_id.nil?
6418
+ raise "order is required" if order.nil?
5756
6419
  # set default values and merge with input
5757
6420
  options = underscored_merge_opts(opts,
5758
- :course_id => course_id
6421
+ :course_id => course_id,
6422
+ :order => order
5759
6423
  )
5760
6424
 
5761
6425
  # resource path
@@ -5775,7 +6439,7 @@ module Pandarus
5775
6439
  end
5776
6440
 
5777
6441
  # Reorder pinned topics
5778
- def reorder_pinned_topics_groups(group_id,opts={})
6442
+ def reorder_pinned_topics_groups(group_id,order,opts={})
5779
6443
  query_param_keys = [
5780
6444
 
5781
6445
  ]
@@ -5787,9 +6451,11 @@ module Pandarus
5787
6451
 
5788
6452
  # verify existence of params
5789
6453
  raise "group_id is required" if group_id.nil?
6454
+ raise "order is required" if order.nil?
5790
6455
  # set default values and merge with input
5791
6456
  options = underscored_merge_opts(opts,
5792
- :group_id => group_id
6457
+ :group_id => group_id,
6458
+ :order => order
5793
6459
  )
5794
6460
 
5795
6461
  # resource path
@@ -5809,7 +6475,7 @@ module Pandarus
5809
6475
  end
5810
6476
 
5811
6477
  # Update an entry
5812
- def update_entry_courses(course_id,topic_id,id,message,opts={})
6478
+ def update_entry_courses(course_id,topic_id,id,opts={})
5813
6479
  query_param_keys = [
5814
6480
 
5815
6481
  ]
@@ -5823,13 +6489,11 @@ module Pandarus
5823
6489
  raise "course_id is required" if course_id.nil?
5824
6490
  raise "topic_id is required" if topic_id.nil?
5825
6491
  raise "id is required" if id.nil?
5826
- raise "message is required" if message.nil?
5827
6492
  # set default values and merge with input
5828
6493
  options = underscored_merge_opts(opts,
5829
6494
  :course_id => course_id,
5830
6495
  :topic_id => topic_id,
5831
- :id => id,
5832
- :message => message
6496
+ :id => id
5833
6497
  )
5834
6498
 
5835
6499
  # resource path
@@ -5851,7 +6515,7 @@ module Pandarus
5851
6515
  end
5852
6516
 
5853
6517
  # Update an entry
5854
- def update_entry_groups(group_id,topic_id,id,message,opts={})
6518
+ def update_entry_groups(group_id,topic_id,id,opts={})
5855
6519
  query_param_keys = [
5856
6520
 
5857
6521
  ]
@@ -5865,13 +6529,11 @@ module Pandarus
5865
6529
  raise "group_id is required" if group_id.nil?
5866
6530
  raise "topic_id is required" if topic_id.nil?
5867
6531
  raise "id is required" if id.nil?
5868
- raise "message is required" if message.nil?
5869
6532
  # set default values and merge with input
5870
6533
  options = underscored_merge_opts(opts,
5871
6534
  :group_id => group_id,
5872
6535
  :topic_id => topic_id,
5873
- :id => id,
5874
- :message => message
6536
+ :id => id
5875
6537
  )
5876
6538
 
5877
6539
  # resource path
@@ -6115,7 +6777,7 @@ module Pandarus
6115
6777
  end
6116
6778
 
6117
6779
  # Post an entry
6118
- def post_entry_courses(course_id,topic_id,message,opts={})
6780
+ def post_entry_courses(course_id,topic_id,opts={})
6119
6781
  query_param_keys = [
6120
6782
 
6121
6783
  ]
@@ -6129,12 +6791,10 @@ module Pandarus
6129
6791
  # verify existence of params
6130
6792
  raise "course_id is required" if course_id.nil?
6131
6793
  raise "topic_id is required" if topic_id.nil?
6132
- raise "message is required" if message.nil?
6133
6794
  # set default values and merge with input
6134
6795
  options = underscored_merge_opts(opts,
6135
6796
  :course_id => course_id,
6136
- :topic_id => topic_id,
6137
- :message => message
6797
+ :topic_id => topic_id
6138
6798
  )
6139
6799
 
6140
6800
  # resource path
@@ -6155,7 +6815,7 @@ module Pandarus
6155
6815
  end
6156
6816
 
6157
6817
  # Post an entry
6158
- def post_entry_groups(group_id,topic_id,message,opts={})
6818
+ def post_entry_groups(group_id,topic_id,opts={})
6159
6819
  query_param_keys = [
6160
6820
 
6161
6821
  ]
@@ -6169,12 +6829,10 @@ module Pandarus
6169
6829
  # verify existence of params
6170
6830
  raise "group_id is required" if group_id.nil?
6171
6831
  raise "topic_id is required" if topic_id.nil?
6172
- raise "message is required" if message.nil?
6173
6832
  # set default values and merge with input
6174
6833
  options = underscored_merge_opts(opts,
6175
6834
  :group_id => group_id,
6176
- :topic_id => topic_id,
6177
- :message => message
6835
+ :topic_id => topic_id
6178
6836
  )
6179
6837
 
6180
6838
  # resource path
@@ -6267,7 +6925,7 @@ module Pandarus
6267
6925
  end
6268
6926
 
6269
6927
  # Post a reply
6270
- def post_reply_courses(course_id,topic_id,entry_id,message,opts={})
6928
+ def post_reply_courses(course_id,topic_id,entry_id,opts={})
6271
6929
  query_param_keys = [
6272
6930
 
6273
6931
  ]
@@ -6282,13 +6940,11 @@ module Pandarus
6282
6940
  raise "course_id is required" if course_id.nil?
6283
6941
  raise "topic_id is required" if topic_id.nil?
6284
6942
  raise "entry_id is required" if entry_id.nil?
6285
- raise "message is required" if message.nil?
6286
6943
  # set default values and merge with input
6287
6944
  options = underscored_merge_opts(opts,
6288
6945
  :course_id => course_id,
6289
6946
  :topic_id => topic_id,
6290
- :entry_id => entry_id,
6291
- :message => message
6947
+ :entry_id => entry_id
6292
6948
  )
6293
6949
 
6294
6950
  # resource path
@@ -6310,7 +6966,7 @@ module Pandarus
6310
6966
  end
6311
6967
 
6312
6968
  # Post a reply
6313
- def post_reply_groups(group_id,topic_id,entry_id,message,opts={})
6969
+ def post_reply_groups(group_id,topic_id,entry_id,opts={})
6314
6970
  query_param_keys = [
6315
6971
 
6316
6972
  ]
@@ -6325,13 +6981,11 @@ module Pandarus
6325
6981
  raise "group_id is required" if group_id.nil?
6326
6982
  raise "topic_id is required" if topic_id.nil?
6327
6983
  raise "entry_id is required" if entry_id.nil?
6328
- raise "message is required" if message.nil?
6329
6984
  # set default values and merge with input
6330
6985
  options = underscored_merge_opts(opts,
6331
6986
  :group_id => group_id,
6332
6987
  :topic_id => topic_id,
6333
- :entry_id => entry_id,
6334
- :message => message
6988
+ :entry_id => entry_id
6335
6989
  )
6336
6990
 
6337
6991
  # resource path
@@ -6431,7 +7085,7 @@ module Pandarus
6431
7085
  end
6432
7086
 
6433
7087
  # List entries
6434
- def list_entries_courses(course_id,topic_id,ids,opts={})
7088
+ def list_entries_courses(course_id,topic_id,opts={})
6435
7089
  query_param_keys = [
6436
7090
  :ids
6437
7091
  ]
@@ -6443,12 +7097,10 @@ module Pandarus
6443
7097
  # verify existence of params
6444
7098
  raise "course_id is required" if course_id.nil?
6445
7099
  raise "topic_id is required" if topic_id.nil?
6446
- raise "ids is required" if ids.nil?
6447
7100
  # set default values and merge with input
6448
7101
  options = underscored_merge_opts(opts,
6449
7102
  :course_id => course_id,
6450
- :topic_id => topic_id,
6451
- :ids => ids
7103
+ :topic_id => topic_id
6452
7104
  )
6453
7105
 
6454
7106
  # resource path
@@ -6469,7 +7121,7 @@ module Pandarus
6469
7121
  end
6470
7122
 
6471
7123
  # List entries
6472
- def list_entries_groups(group_id,topic_id,ids,opts={})
7124
+ def list_entries_groups(group_id,topic_id,opts={})
6473
7125
  query_param_keys = [
6474
7126
  :ids
6475
7127
  ]
@@ -6481,12 +7133,10 @@ module Pandarus
6481
7133
  # verify existence of params
6482
7134
  raise "group_id is required" if group_id.nil?
6483
7135
  raise "topic_id is required" if topic_id.nil?
6484
- raise "ids is required" if ids.nil?
6485
7136
  # set default values and merge with input
6486
7137
  options = underscored_merge_opts(opts,
6487
7138
  :group_id => group_id,
6488
- :topic_id => topic_id,
6489
- :ids => ids
7139
+ :topic_id => topic_id
6490
7140
  )
6491
7141
 
6492
7142
  # resource path
@@ -7131,7 +7781,7 @@ module Pandarus
7131
7781
  end
7132
7782
 
7133
7783
  # List enrollments
7134
- def list_enrollments_courses(course_id,type,role,state,user_id,opts={})
7784
+ def list_enrollments_courses(course_id,opts={})
7135
7785
  query_param_keys = [
7136
7786
  :type,
7137
7787
  :role,
@@ -7145,17 +7795,9 @@ module Pandarus
7145
7795
 
7146
7796
  # verify existence of params
7147
7797
  raise "course_id is required" if course_id.nil?
7148
- raise "type is required" if type.nil?
7149
- raise "role is required" if role.nil?
7150
- raise "state is required" if state.nil?
7151
- raise "user_id is required" if user_id.nil?
7152
7798
  # set default values and merge with input
7153
7799
  options = underscored_merge_opts(opts,
7154
- :course_id => course_id,
7155
- :type => type,
7156
- :role => role,
7157
- :state => state,
7158
- :user_id => user_id
7800
+ :course_id => course_id
7159
7801
  )
7160
7802
 
7161
7803
  # resource path
@@ -7174,7 +7816,7 @@ module Pandarus
7174
7816
  end
7175
7817
 
7176
7818
  # List enrollments
7177
- def list_enrollments_sections(section_id,type,role,state,user_id,opts={})
7819
+ def list_enrollments_sections(section_id,opts={})
7178
7820
  query_param_keys = [
7179
7821
  :type,
7180
7822
  :role,
@@ -7188,17 +7830,9 @@ module Pandarus
7188
7830
 
7189
7831
  # verify existence of params
7190
7832
  raise "section_id is required" if section_id.nil?
7191
- raise "type is required" if type.nil?
7192
- raise "role is required" if role.nil?
7193
- raise "state is required" if state.nil?
7194
- raise "user_id is required" if user_id.nil?
7195
7833
  # set default values and merge with input
7196
7834
  options = underscored_merge_opts(opts,
7197
- :section_id => section_id,
7198
- :type => type,
7199
- :role => role,
7200
- :state => state,
7201
- :user_id => user_id
7835
+ :section_id => section_id
7202
7836
  )
7203
7837
 
7204
7838
  # resource path
@@ -7217,7 +7851,7 @@ module Pandarus
7217
7851
  end
7218
7852
 
7219
7853
  # List enrollments
7220
- def list_enrollments_users(type,role,state,user_id,opts={})
7854
+ def list_enrollments_users(user_id,opts={})
7221
7855
  query_param_keys = [
7222
7856
  :type,
7223
7857
  :role,
@@ -7229,15 +7863,9 @@ module Pandarus
7229
7863
  ]
7230
7864
 
7231
7865
  # verify existence of params
7232
- raise "type is required" if type.nil?
7233
- raise "role is required" if role.nil?
7234
- raise "state is required" if state.nil?
7235
7866
  raise "user_id is required" if user_id.nil?
7236
7867
  # set default values and merge with input
7237
7868
  options = underscored_merge_opts(opts,
7238
- :type => type,
7239
- :role => role,
7240
- :state => state,
7241
7869
  :user_id => user_id
7242
7870
  )
7243
7871
 
@@ -7380,7 +8008,7 @@ module Pandarus
7380
8008
  end
7381
8009
 
7382
8010
  # Conclude an enrollment
7383
- def conclude_enrollment(course_id,id,task,opts={})
8011
+ def conclude_enrollment(course_id,id,opts={})
7384
8012
  query_param_keys = [
7385
8013
  :task
7386
8014
  ]
@@ -7392,12 +8020,10 @@ module Pandarus
7392
8020
  # verify existence of params
7393
8021
  raise "course_id is required" if course_id.nil?
7394
8022
  raise "id is required" if id.nil?
7395
- raise "task is required" if task.nil?
7396
8023
  # set default values and merge with input
7397
8024
  options = underscored_merge_opts(opts,
7398
8025
  :course_id => course_id,
7399
- :id => id,
7400
- :task => task
8026
+ :id => id
7401
8027
  )
7402
8028
 
7403
8029
  # resource path
@@ -8872,7 +9498,7 @@ module Pandarus
8872
9498
  end
8873
9499
 
8874
9500
  # Update file
8875
- def update_file(id,name,parent_folder_id,lock_at,unlock_at,locked,hidden,opts={})
9501
+ def update_file(id,opts={})
8876
9502
  query_param_keys = [
8877
9503
 
8878
9504
  ]
@@ -8889,21 +9515,9 @@ module Pandarus
8889
9515
 
8890
9516
  # verify existence of params
8891
9517
  raise "id is required" if id.nil?
8892
- raise "name is required" if name.nil?
8893
- raise "parent_folder_id is required" if parent_folder_id.nil?
8894
- raise "lock_at is required" if lock_at.nil?
8895
- raise "unlock_at is required" if unlock_at.nil?
8896
- raise "locked is required" if locked.nil?
8897
- raise "hidden is required" if hidden.nil?
8898
9518
  # set default values and merge with input
8899
9519
  options = underscored_merge_opts(opts,
8900
- :id => id,
8901
- :name => name,
8902
- :parent_folder_id => parent_folder_id,
8903
- :lock_at => lock_at,
8904
- :unlock_at => unlock_at,
8905
- :locked => locked,
8906
- :hidden => hidden
9520
+ :id => id
8907
9521
  )
8908
9522
 
8909
9523
  # resource path
@@ -9316,7 +9930,7 @@ module Pandarus
9316
9930
  end
9317
9931
 
9318
9932
  # Update folder
9319
- def update_folder(id,name,parent_folder_id,lock_at,unlock_at,locked,hidden,position,opts={})
9933
+ def update_folder(id,opts={})
9320
9934
  query_param_keys = [
9321
9935
 
9322
9936
  ]
@@ -9334,23 +9948,9 @@ module Pandarus
9334
9948
 
9335
9949
  # verify existence of params
9336
9950
  raise "id is required" if id.nil?
9337
- raise "name is required" if name.nil?
9338
- raise "parent_folder_id is required" if parent_folder_id.nil?
9339
- raise "lock_at is required" if lock_at.nil?
9340
- raise "unlock_at is required" if unlock_at.nil?
9341
- raise "locked is required" if locked.nil?
9342
- raise "hidden is required" if hidden.nil?
9343
- raise "position is required" if position.nil?
9344
9951
  # set default values and merge with input
9345
9952
  options = underscored_merge_opts(opts,
9346
- :id => id,
9347
- :name => name,
9348
- :parent_folder_id => parent_folder_id,
9349
- :lock_at => lock_at,
9350
- :unlock_at => unlock_at,
9351
- :locked => locked,
9352
- :hidden => hidden,
9353
- :position => position
9953
+ :id => id
9354
9954
  )
9355
9955
 
9356
9956
  # resource path
@@ -9369,7 +9969,7 @@ module Pandarus
9369
9969
  end
9370
9970
 
9371
9971
  # Create folder
9372
- def create_folder_courses(course_id,name,parent_folder_id,parent_folder_path,lock_at,unlock_at,locked,hidden,position,opts={})
9972
+ def create_folder_courses(course_id,name,opts={})
9373
9973
  query_param_keys = [
9374
9974
 
9375
9975
  ]
@@ -9389,24 +9989,10 @@ module Pandarus
9389
9989
  # verify existence of params
9390
9990
  raise "course_id is required" if course_id.nil?
9391
9991
  raise "name is required" if name.nil?
9392
- raise "parent_folder_id is required" if parent_folder_id.nil?
9393
- raise "parent_folder_path is required" if parent_folder_path.nil?
9394
- raise "lock_at is required" if lock_at.nil?
9395
- raise "unlock_at is required" if unlock_at.nil?
9396
- raise "locked is required" if locked.nil?
9397
- raise "hidden is required" if hidden.nil?
9398
- raise "position is required" if position.nil?
9399
9992
  # set default values and merge with input
9400
9993
  options = underscored_merge_opts(opts,
9401
9994
  :course_id => course_id,
9402
- :name => name,
9403
- :parent_folder_id => parent_folder_id,
9404
- :parent_folder_path => parent_folder_path,
9405
- :lock_at => lock_at,
9406
- :unlock_at => unlock_at,
9407
- :locked => locked,
9408
- :hidden => hidden,
9409
- :position => position
9995
+ :name => name
9410
9996
  )
9411
9997
 
9412
9998
  # resource path
@@ -9425,7 +10011,7 @@ module Pandarus
9425
10011
  end
9426
10012
 
9427
10013
  # Create folder
9428
- def create_folder_users(user_id,name,parent_folder_id,parent_folder_path,lock_at,unlock_at,locked,hidden,position,opts={})
10014
+ def create_folder_users(user_id,name,opts={})
9429
10015
  query_param_keys = [
9430
10016
 
9431
10017
  ]
@@ -9445,24 +10031,10 @@ module Pandarus
9445
10031
  # verify existence of params
9446
10032
  raise "user_id is required" if user_id.nil?
9447
10033
  raise "name is required" if name.nil?
9448
- raise "parent_folder_id is required" if parent_folder_id.nil?
9449
- raise "parent_folder_path is required" if parent_folder_path.nil?
9450
- raise "lock_at is required" if lock_at.nil?
9451
- raise "unlock_at is required" if unlock_at.nil?
9452
- raise "locked is required" if locked.nil?
9453
- raise "hidden is required" if hidden.nil?
9454
- raise "position is required" if position.nil?
9455
10034
  # set default values and merge with input
9456
10035
  options = underscored_merge_opts(opts,
9457
10036
  :user_id => user_id,
9458
- :name => name,
9459
- :parent_folder_id => parent_folder_id,
9460
- :parent_folder_path => parent_folder_path,
9461
- :lock_at => lock_at,
9462
- :unlock_at => unlock_at,
9463
- :locked => locked,
9464
- :hidden => hidden,
9465
- :position => position
10037
+ :name => name
9466
10038
  )
9467
10039
 
9468
10040
  # resource path
@@ -9481,7 +10053,7 @@ module Pandarus
9481
10053
  end
9482
10054
 
9483
10055
  # Create folder
9484
- def create_folder_groups(group_id,name,parent_folder_id,parent_folder_path,lock_at,unlock_at,locked,hidden,position,opts={})
10056
+ def create_folder_groups(group_id,name,opts={})
9485
10057
  query_param_keys = [
9486
10058
 
9487
10059
  ]
@@ -9501,24 +10073,10 @@ module Pandarus
9501
10073
  # verify existence of params
9502
10074
  raise "group_id is required" if group_id.nil?
9503
10075
  raise "name is required" if name.nil?
9504
- raise "parent_folder_id is required" if parent_folder_id.nil?
9505
- raise "parent_folder_path is required" if parent_folder_path.nil?
9506
- raise "lock_at is required" if lock_at.nil?
9507
- raise "unlock_at is required" if unlock_at.nil?
9508
- raise "locked is required" if locked.nil?
9509
- raise "hidden is required" if hidden.nil?
9510
- raise "position is required" if position.nil?
9511
10076
  # set default values and merge with input
9512
10077
  options = underscored_merge_opts(opts,
9513
10078
  :group_id => group_id,
9514
- :name => name,
9515
- :parent_folder_id => parent_folder_id,
9516
- :parent_folder_path => parent_folder_path,
9517
- :lock_at => lock_at,
9518
- :unlock_at => unlock_at,
9519
- :locked => locked,
9520
- :hidden => hidden,
9521
- :position => position
10079
+ :name => name
9522
10080
  )
9523
10081
 
9524
10082
  # resource path
@@ -9537,7 +10095,7 @@ module Pandarus
9537
10095
  end
9538
10096
 
9539
10097
  # Create folder
9540
- def create_folder_folders(folder_id,name,parent_folder_id,parent_folder_path,lock_at,unlock_at,locked,hidden,position,opts={})
10098
+ def create_folder_folders(folder_id,name,opts={})
9541
10099
  query_param_keys = [
9542
10100
 
9543
10101
  ]
@@ -9557,24 +10115,10 @@ module Pandarus
9557
10115
  # verify existence of params
9558
10116
  raise "folder_id is required" if folder_id.nil?
9559
10117
  raise "name is required" if name.nil?
9560
- raise "parent_folder_id is required" if parent_folder_id.nil?
9561
- raise "parent_folder_path is required" if parent_folder_path.nil?
9562
- raise "lock_at is required" if lock_at.nil?
9563
- raise "unlock_at is required" if unlock_at.nil?
9564
- raise "locked is required" if locked.nil?
9565
- raise "hidden is required" if hidden.nil?
9566
- raise "position is required" if position.nil?
9567
10118
  # set default values and merge with input
9568
10119
  options = underscored_merge_opts(opts,
9569
10120
  :folder_id => folder_id,
9570
- :name => name,
9571
- :parent_folder_id => parent_folder_id,
9572
- :parent_folder_path => parent_folder_path,
9573
- :lock_at => lock_at,
9574
- :unlock_at => unlock_at,
9575
- :locked => locked,
9576
- :hidden => hidden,
9577
- :position => position
10121
+ :name => name
9578
10122
  )
9579
10123
 
9580
10124
  # resource path
@@ -9593,7 +10137,7 @@ module Pandarus
9593
10137
  end
9594
10138
 
9595
10139
  # Delete folder
9596
- def delete_folder(id,force,opts={})
10140
+ def delete_folder(id,opts={})
9597
10141
  query_param_keys = [
9598
10142
  :force
9599
10143
  ]
@@ -9604,11 +10148,9 @@ module Pandarus
9604
10148
 
9605
10149
  # verify existence of params
9606
10150
  raise "id is required" if id.nil?
9607
- raise "force is required" if force.nil?
9608
10151
  # set default values and merge with input
9609
10152
  options = underscored_merge_opts(opts,
9610
- :id => id,
9611
- :force => force
10153
+ :id => id
9612
10154
  )
9613
10155
 
9614
10156
  # resource path
@@ -10193,7 +10735,7 @@ module Pandarus
10193
10735
  end
10194
10736
 
10195
10737
  # Update a Group Category
10196
- def update_group_category(group_category_id,name,opts={})
10738
+ def update_group_category(group_category_id,opts={})
10197
10739
  query_param_keys = [
10198
10740
 
10199
10741
  ]
@@ -10210,11 +10752,9 @@ module Pandarus
10210
10752
 
10211
10753
  # verify existence of params
10212
10754
  raise "group_category_id is required" if group_category_id.nil?
10213
- raise "name is required" if name.nil?
10214
10755
  # set default values and merge with input
10215
10756
  options = underscored_merge_opts(opts,
10216
- :group_category_id => group_category_id,
10217
- :name => name
10757
+ :group_category_id => group_category_id
10218
10758
  )
10219
10759
 
10220
10760
  # resource path
@@ -10459,7 +10999,7 @@ module Pandarus
10459
10999
  end
10460
11000
 
10461
11001
  # Get a single group
10462
- def get_single_group(group_id,include,opts={})
11002
+ def get_single_group(group_id,opts={})
10463
11003
  query_param_keys = [
10464
11004
  :include
10465
11005
  ]
@@ -10470,11 +11010,9 @@ module Pandarus
10470
11010
 
10471
11011
  # verify existence of params
10472
11012
  raise "group_id is required" if group_id.nil?
10473
- raise "include is required" if include.nil?
10474
11013
  # set default values and merge with input
10475
11014
  options = underscored_merge_opts(opts,
10476
- :group_id => group_id,
10477
- :include => include
11015
+ :group_id => group_id
10478
11016
  )
10479
11017
 
10480
11018
  # resource path
@@ -10493,7 +11031,7 @@ module Pandarus
10493
11031
  end
10494
11032
 
10495
11033
  # Create a group
10496
- def create_group_groups(name,description,is_public,join_level,storage_quota_mb,opts={})
11034
+ def create_group_groups(opts={})
10497
11035
  query_param_keys = [
10498
11036
 
10499
11037
  ]
@@ -10507,19 +11045,10 @@ module Pandarus
10507
11045
 
10508
11046
  ]
10509
11047
 
10510
- # verify existence of params
10511
- raise "name is required" if name.nil?
10512
- raise "description is required" if description.nil?
10513
- raise "is_public is required" if is_public.nil?
10514
- raise "join_level is required" if join_level.nil?
10515
- raise "storage_quota_mb is required" if storage_quota_mb.nil?
10516
11048
  # set default values and merge with input
10517
11049
  options = underscored_merge_opts(opts,
10518
- :name => name,
10519
- :description => description,
10520
- :is_public => is_public,
10521
- :join_level => join_level,
10522
- :storage_quota_mb => storage_quota_mb
11050
+ {}
11051
+
10523
11052
  )
10524
11053
 
10525
11054
  # resource path
@@ -10538,7 +11067,7 @@ module Pandarus
10538
11067
  end
10539
11068
 
10540
11069
  # Create a group
10541
- def create_group_group_categories(group_category_id,name,description,is_public,join_level,storage_quota_mb,opts={})
11070
+ def create_group_group_categories(group_category_id,opts={})
10542
11071
  query_param_keys = [
10543
11072
 
10544
11073
  ]
@@ -10554,19 +11083,9 @@ module Pandarus
10554
11083
 
10555
11084
  # verify existence of params
10556
11085
  raise "group_category_id is required" if group_category_id.nil?
10557
- raise "name is required" if name.nil?
10558
- raise "description is required" if description.nil?
10559
- raise "is_public is required" if is_public.nil?
10560
- raise "join_level is required" if join_level.nil?
10561
- raise "storage_quota_mb is required" if storage_quota_mb.nil?
10562
11086
  # set default values and merge with input
10563
11087
  options = underscored_merge_opts(opts,
10564
- :group_category_id => group_category_id,
10565
- :name => name,
10566
- :description => description,
10567
- :is_public => is_public,
10568
- :join_level => join_level,
10569
- :storage_quota_mb => storage_quota_mb
11088
+ :group_category_id => group_category_id
10570
11089
  )
10571
11090
 
10572
11091
  # resource path
@@ -10585,7 +11104,7 @@ module Pandarus
10585
11104
  end
10586
11105
 
10587
11106
  # Edit a group
10588
- def edit_group(group_id,name,description,is_public,join_level,avatar_id,storage_quota_mb,opts={})
11107
+ def edit_group(group_id,opts={})
10589
11108
  query_param_keys = [
10590
11109
 
10591
11110
  ]
@@ -10602,21 +11121,9 @@ module Pandarus
10602
11121
 
10603
11122
  # verify existence of params
10604
11123
  raise "group_id is required" if group_id.nil?
10605
- raise "name is required" if name.nil?
10606
- raise "description is required" if description.nil?
10607
- raise "is_public is required" if is_public.nil?
10608
- raise "join_level is required" if join_level.nil?
10609
- raise "avatar_id is required" if avatar_id.nil?
10610
- raise "storage_quota_mb is required" if storage_quota_mb.nil?
10611
11124
  # set default values and merge with input
10612
11125
  options = underscored_merge_opts(opts,
10613
- :group_id => group_id,
10614
- :name => name,
10615
- :description => description,
10616
- :is_public => is_public,
10617
- :join_level => join_level,
10618
- :avatar_id => avatar_id,
10619
- :storage_quota_mb => storage_quota_mb
11126
+ :group_id => group_id
10620
11127
  )
10621
11128
 
10622
11129
  # resource path
@@ -10703,7 +11210,7 @@ module Pandarus
10703
11210
  end
10704
11211
 
10705
11212
  # List group's users
10706
- def list_group_s_users(group_id,include,opts={})
11213
+ def list_group_s_users(group_id,opts={})
10707
11214
  query_param_keys = [
10708
11215
  :search_term,
10709
11216
  :include
@@ -10715,11 +11222,9 @@ module Pandarus
10715
11222
 
10716
11223
  # verify existence of params
10717
11224
  raise "group_id is required" if group_id.nil?
10718
- raise "include is required" if include.nil?
10719
11225
  # set default values and merge with input
10720
11226
  options = underscored_merge_opts(opts,
10721
- :group_id => group_id,
10722
- :include => include
11227
+ :group_id => group_id
10723
11228
  )
10724
11229
 
10725
11230
  # resource path
@@ -10771,7 +11276,7 @@ module Pandarus
10771
11276
  end
10772
11277
 
10773
11278
  # Preview processed html
10774
- def preview_processed_html(group_id,html,opts={})
11279
+ def preview_processed_html(group_id,opts={})
10775
11280
  query_param_keys = [
10776
11281
 
10777
11282
  ]
@@ -10783,11 +11288,9 @@ module Pandarus
10783
11288
 
10784
11289
  # verify existence of params
10785
11290
  raise "group_id is required" if group_id.nil?
10786
- raise "html is required" if html.nil?
10787
11291
  # set default values and merge with input
10788
11292
  options = underscored_merge_opts(opts,
10789
- :group_id => group_id,
10790
- :html => html
11293
+ :group_id => group_id
10791
11294
  )
10792
11295
 
10793
11296
  # resource path
@@ -10937,7 +11440,7 @@ module Pandarus
10937
11440
  end
10938
11441
 
10939
11442
  # Create a membership
10940
- def create_membership(group_id,user_id,opts={})
11443
+ def create_membership(group_id,opts={})
10941
11444
  query_param_keys = [
10942
11445
 
10943
11446
  ]
@@ -10949,11 +11452,9 @@ module Pandarus
10949
11452
 
10950
11453
  # verify existence of params
10951
11454
  raise "group_id is required" if group_id.nil?
10952
- raise "user_id is required" if user_id.nil?
10953
11455
  # set default values and merge with input
10954
11456
  options = underscored_merge_opts(opts,
10955
- :group_id => group_id,
10956
- :user_id => user_id
11457
+ :group_id => group_id
10957
11458
  )
10958
11459
 
10959
11460
  # resource path
@@ -10972,7 +11473,7 @@ module Pandarus
10972
11473
  end
10973
11474
 
10974
11475
  # Update a membership
10975
- def update_membership_memberships(group_id,membership_id,moderator,opts={})
11476
+ def update_membership_memberships(group_id,membership_id,opts={})
10976
11477
  query_param_keys = [
10977
11478
 
10978
11479
  ]
@@ -10986,12 +11487,10 @@ module Pandarus
10986
11487
  # verify existence of params
10987
11488
  raise "group_id is required" if group_id.nil?
10988
11489
  raise "membership_id is required" if membership_id.nil?
10989
- raise "moderator is required" if moderator.nil?
10990
11490
  # set default values and merge with input
10991
11491
  options = underscored_merge_opts(opts,
10992
11492
  :group_id => group_id,
10993
- :membership_id => membership_id,
10994
- :moderator => moderator
11493
+ :membership_id => membership_id
10995
11494
  )
10996
11495
 
10997
11496
  # resource path
@@ -11011,7 +11510,7 @@ module Pandarus
11011
11510
  end
11012
11511
 
11013
11512
  # Update a membership
11014
- def update_membership_users(group_id,user_id,moderator,opts={})
11513
+ def update_membership_users(group_id,user_id,opts={})
11015
11514
  query_param_keys = [
11016
11515
 
11017
11516
  ]
@@ -11025,12 +11524,10 @@ module Pandarus
11025
11524
  # verify existence of params
11026
11525
  raise "group_id is required" if group_id.nil?
11027
11526
  raise "user_id is required" if user_id.nil?
11028
- raise "moderator is required" if moderator.nil?
11029
11527
  # set default values and merge with input
11030
11528
  options = underscored_merge_opts(opts,
11031
11529
  :group_id => group_id,
11032
- :user_id => user_id,
11033
- :moderator => moderator
11530
+ :user_id => user_id
11034
11531
  )
11035
11532
 
11036
11533
  # resource path
@@ -11442,7 +11939,7 @@ module Pandarus
11442
11939
  end
11443
11940
 
11444
11941
  # List modules
11445
- def list_modules(course_id,include,opts={})
11942
+ def list_modules(course_id,opts={})
11446
11943
  query_param_keys = [
11447
11944
  :include,
11448
11945
  :search_term,
@@ -11455,11 +11952,9 @@ module Pandarus
11455
11952
 
11456
11953
  # verify existence of params
11457
11954
  raise "course_id is required" if course_id.nil?
11458
- raise "include is required" if include.nil?
11459
11955
  # set default values and merge with input
11460
11956
  options = underscored_merge_opts(opts,
11461
- :course_id => course_id,
11462
- :include => include
11957
+ :course_id => course_id
11463
11958
  )
11464
11959
 
11465
11960
  # resource path
@@ -11478,7 +11973,7 @@ module Pandarus
11478
11973
  end
11479
11974
 
11480
11975
  # Show module
11481
- def show_module(course_id,id,include,opts={})
11976
+ def show_module(course_id,id,opts={})
11482
11977
  query_param_keys = [
11483
11978
  :include,
11484
11979
  :student_id
@@ -11491,12 +11986,10 @@ module Pandarus
11491
11986
  # verify existence of params
11492
11987
  raise "course_id is required" if course_id.nil?
11493
11988
  raise "id is required" if id.nil?
11494
- raise "include is required" if include.nil?
11495
11989
  # set default values and merge with input
11496
11990
  options = underscored_merge_opts(opts,
11497
11991
  :course_id => course_id,
11498
- :id => id,
11499
- :include => include
11992
+ :id => id
11500
11993
  )
11501
11994
 
11502
11995
  # resource path
@@ -11633,7 +12126,7 @@ module Pandarus
11633
12126
  end
11634
12127
 
11635
12128
  # List module items
11636
- def list_module_items(course_id,module_id,include,opts={})
12129
+ def list_module_items(course_id,module_id,opts={})
11637
12130
  query_param_keys = [
11638
12131
  :include,
11639
12132
  :search_term,
@@ -11647,12 +12140,10 @@ module Pandarus
11647
12140
  # verify existence of params
11648
12141
  raise "course_id is required" if course_id.nil?
11649
12142
  raise "module_id is required" if module_id.nil?
11650
- raise "include is required" if include.nil?
11651
12143
  # set default values and merge with input
11652
12144
  options = underscored_merge_opts(opts,
11653
12145
  :course_id => course_id,
11654
- :module_id => module_id,
11655
- :include => include
12146
+ :module_id => module_id
11656
12147
  )
11657
12148
 
11658
12149
  # resource path
@@ -11672,7 +12163,7 @@ module Pandarus
11672
12163
  end
11673
12164
 
11674
12165
  # Show module item
11675
- def show_module_item(course_id,module_id,id,include,opts={})
12166
+ def show_module_item(course_id,module_id,id,opts={})
11676
12167
  query_param_keys = [
11677
12168
  :include,
11678
12169
  :student_id
@@ -11686,13 +12177,11 @@ module Pandarus
11686
12177
  raise "course_id is required" if course_id.nil?
11687
12178
  raise "module_id is required" if module_id.nil?
11688
12179
  raise "id is required" if id.nil?
11689
- raise "include is required" if include.nil?
11690
12180
  # set default values and merge with input
11691
12181
  options = underscored_merge_opts(opts,
11692
12182
  :course_id => course_id,
11693
12183
  :module_id => module_id,
11694
- :id => id,
11695
- :include => include
12184
+ :id => id
11696
12185
  )
11697
12186
 
11698
12187
  # resource path
@@ -11713,7 +12202,7 @@ module Pandarus
11713
12202
  end
11714
12203
 
11715
12204
  # Create a module item
11716
- def create_module_item(course_id,module_id,module_item__type__,module_item__content_id__,module_item__page_url__,module_item__external_url__,module_item__completion_requirement____min_score__,opts={})
12205
+ def create_module_item(course_id,module_id,module_item__type__,module_item__content_id__,opts={})
11717
12206
  query_param_keys = [
11718
12207
 
11719
12208
  ]
@@ -11737,18 +12226,12 @@ module Pandarus
11737
12226
  raise "module_id is required" if module_id.nil?
11738
12227
  raise "module_item__type__ is required" if module_item__type__.nil?
11739
12228
  raise "module_item__content_id__ is required" if module_item__content_id__.nil?
11740
- raise "module_item__page_url__ is required" if module_item__page_url__.nil?
11741
- raise "module_item__external_url__ is required" if module_item__external_url__.nil?
11742
- raise "module_item__completion_requirement____min_score__ is required" if module_item__completion_requirement____min_score__.nil?
11743
12229
  # set default values and merge with input
11744
12230
  options = underscored_merge_opts(opts,
11745
12231
  :course_id => course_id,
11746
12232
  :module_id => module_id,
11747
12233
  :module_item__type__ => module_item__type__,
11748
- :module_item__content_id__ => module_item__content_id__,
11749
- :module_item__page_url__ => module_item__page_url__,
11750
- :module_item__external_url__ => module_item__external_url__,
11751
- :module_item__completion_requirement____min_score__ => module_item__completion_requirement____min_score__
12234
+ :module_item__content_id__ => module_item__content_id__
11752
12235
  )
11753
12236
 
11754
12237
  # resource path
@@ -11768,7 +12251,7 @@ module Pandarus
11768
12251
  end
11769
12252
 
11770
12253
  # Update a module item
11771
- def update_module_item(course_id,module_id,id,module_item__completion_requirement____min_score__,opts={})
12254
+ def update_module_item(course_id,module_id,id,opts={})
11772
12255
  query_param_keys = [
11773
12256
 
11774
12257
  ]
@@ -11790,13 +12273,11 @@ module Pandarus
11790
12273
  raise "course_id is required" if course_id.nil?
11791
12274
  raise "module_id is required" if module_id.nil?
11792
12275
  raise "id is required" if id.nil?
11793
- raise "module_item__completion_requirement____min_score__ is required" if module_item__completion_requirement____min_score__.nil?
11794
12276
  # set default values and merge with input
11795
12277
  options = underscored_merge_opts(opts,
11796
12278
  :course_id => course_id,
11797
12279
  :module_id => module_id,
11798
- :id => id,
11799
- :module_item__completion_requirement____min_score__ => module_item__completion_requirement____min_score__
12280
+ :id => id
11800
12281
  )
11801
12282
 
11802
12283
  # resource path
@@ -11855,7 +12336,7 @@ module Pandarus
11855
12336
  end
11856
12337
 
11857
12338
  # Get module item sequence
11858
- def get_module_item_sequence(course_id,asset_type,asset_id,opts={})
12339
+ def get_module_item_sequence(course_id,opts={})
11859
12340
  query_param_keys = [
11860
12341
  :asset_type,
11861
12342
  :asset_id
@@ -11867,13 +12348,9 @@ module Pandarus
11867
12348
 
11868
12349
  # verify existence of params
11869
12350
  raise "course_id is required" if course_id.nil?
11870
- raise "asset_type is required" if asset_type.nil?
11871
- raise "asset_id is required" if asset_id.nil?
11872
12351
  # set default values and merge with input
11873
12352
  options = underscored_merge_opts(opts,
11874
- :course_id => course_id,
11875
- :asset_type => asset_type,
11876
- :asset_id => asset_id
12353
+ :course_id => course_id
11877
12354
  )
11878
12355
 
11879
12356
  # resource path
@@ -12044,7 +12521,7 @@ module Pandarus
12044
12521
  end
12045
12522
 
12046
12523
  # Update a preference
12047
- def update_preference_communication_channel_id(communication_channel_id,notification,notification_preferences__frequency__,opts={})
12524
+ def update_preference_communication_channel_id(communication_channel_id,notification,opts={})
12048
12525
  query_param_keys = [
12049
12526
 
12050
12527
  ]
@@ -12057,12 +12534,10 @@ module Pandarus
12057
12534
  # verify existence of params
12058
12535
  raise "communication_channel_id is required" if communication_channel_id.nil?
12059
12536
  raise "notification is required" if notification.nil?
12060
- raise "notification_preferences__frequency__ is required" if notification_preferences__frequency__.nil?
12061
12537
  # set default values and merge with input
12062
12538
  options = underscored_merge_opts(opts,
12063
12539
  :communication_channel_id => communication_channel_id,
12064
- :notification => notification,
12065
- :notification_preferences__frequency__ => notification_preferences__frequency__
12540
+ :notification => notification
12066
12541
  )
12067
12542
 
12068
12543
  # resource path
@@ -12083,7 +12558,7 @@ module Pandarus
12083
12558
  end
12084
12559
 
12085
12560
  # Update a preference
12086
- def update_preference_type(type,address,notification,notification_preferences__frequency__,opts={})
12561
+ def update_preference_type(type,address,notification,opts={})
12087
12562
  query_param_keys = [
12088
12563
 
12089
12564
  ]
@@ -12097,13 +12572,11 @@ module Pandarus
12097
12572
  raise "type is required" if type.nil?
12098
12573
  raise "address is required" if address.nil?
12099
12574
  raise "notification is required" if notification.nil?
12100
- raise "notification_preferences__frequency__ is required" if notification_preferences__frequency__.nil?
12101
12575
  # set default values and merge with input
12102
12576
  options = underscored_merge_opts(opts,
12103
12577
  :type => type,
12104
12578
  :address => address,
12105
- :notification => notification,
12106
- :notification_preferences__frequency__ => notification_preferences__frequency__
12579
+ :notification => notification
12107
12580
  )
12108
12581
 
12109
12582
  # resource path
@@ -12125,7 +12598,7 @@ module Pandarus
12125
12598
  end
12126
12599
 
12127
12600
  # Update multiple preferences
12128
- def update_multiple_preferences_communication_channel_id(communication_channel_id,notification_preferences____x_____frequency__,opts={})
12601
+ def update_multiple_preferences_communication_channel_id(communication_channel_id,opts={})
12129
12602
  query_param_keys = [
12130
12603
 
12131
12604
  ]
@@ -12137,11 +12610,9 @@ module Pandarus
12137
12610
 
12138
12611
  # verify existence of params
12139
12612
  raise "communication_channel_id is required" if communication_channel_id.nil?
12140
- raise "notification_preferences____x_____frequency__ is required" if notification_preferences____x_____frequency__.nil?
12141
12613
  # set default values and merge with input
12142
12614
  options = underscored_merge_opts(opts,
12143
- :communication_channel_id => communication_channel_id,
12144
- :notification_preferences____x_____frequency__ => notification_preferences____x_____frequency__
12615
+ :communication_channel_id => communication_channel_id
12145
12616
  )
12146
12617
 
12147
12618
  # resource path
@@ -12161,7 +12632,7 @@ module Pandarus
12161
12632
  end
12162
12633
 
12163
12634
  # Update multiple preferences
12164
- def update_multiple_preferences_type(type,address,notification_preferences____x_____frequency__,opts={})
12635
+ def update_multiple_preferences_type(type,address,opts={})
12165
12636
  query_param_keys = [
12166
12637
 
12167
12638
  ]
@@ -12174,12 +12645,10 @@ module Pandarus
12174
12645
  # verify existence of params
12175
12646
  raise "type is required" if type.nil?
12176
12647
  raise "address is required" if address.nil?
12177
- raise "notification_preferences____x_____frequency__ is required" if notification_preferences____x_____frequency__.nil?
12178
12648
  # set default values and merge with input
12179
12649
  options = underscored_merge_opts(opts,
12180
12650
  :type => type,
12181
- :address => address,
12182
- :notification_preferences____x_____frequency__ => notification_preferences____x_____frequency__
12651
+ :address => address
12183
12652
  )
12184
12653
 
12185
12654
  # resource path
@@ -13319,7 +13788,7 @@ module Pandarus
13319
13788
  end
13320
13789
 
13321
13790
  # Create a subgroup
13322
- def create_subgroup_global(id,title,opts={})
13791
+ def create_subgroup_global(id,opts={})
13323
13792
  query_param_keys = [
13324
13793
 
13325
13794
  ]
@@ -13333,11 +13802,9 @@ module Pandarus
13333
13802
 
13334
13803
  # verify existence of params
13335
13804
  raise "id is required" if id.nil?
13336
- raise "title is required" if title.nil?
13337
13805
  # set default values and merge with input
13338
13806
  options = underscored_merge_opts(opts,
13339
- :id => id,
13340
- :title => title
13807
+ :id => id
13341
13808
  )
13342
13809
 
13343
13810
  # resource path
@@ -13356,7 +13823,7 @@ module Pandarus
13356
13823
  end
13357
13824
 
13358
13825
  # Create a subgroup
13359
- def create_subgroup_accounts(account_id,id,title,opts={})
13826
+ def create_subgroup_accounts(account_id,id,opts={})
13360
13827
  query_param_keys = [
13361
13828
 
13362
13829
  ]
@@ -13371,12 +13838,10 @@ module Pandarus
13371
13838
  # verify existence of params
13372
13839
  raise "account_id is required" if account_id.nil?
13373
13840
  raise "id is required" if id.nil?
13374
- raise "title is required" if title.nil?
13375
13841
  # set default values and merge with input
13376
13842
  options = underscored_merge_opts(opts,
13377
13843
  :account_id => account_id,
13378
- :id => id,
13379
- :title => title
13844
+ :id => id
13380
13845
  )
13381
13846
 
13382
13847
  # resource path
@@ -13396,7 +13861,7 @@ module Pandarus
13396
13861
  end
13397
13862
 
13398
13863
  # Create a subgroup
13399
- def create_subgroup_courses(course_id,id,title,opts={})
13864
+ def create_subgroup_courses(course_id,id,opts={})
13400
13865
  query_param_keys = [
13401
13866
 
13402
13867
  ]
@@ -13411,12 +13876,10 @@ module Pandarus
13411
13876
  # verify existence of params
13412
13877
  raise "course_id is required" if course_id.nil?
13413
13878
  raise "id is required" if id.nil?
13414
- raise "title is required" if title.nil?
13415
13879
  # set default values and merge with input
13416
13880
  options = underscored_merge_opts(opts,
13417
13881
  :course_id => course_id,
13418
- :id => id,
13419
- :title => title
13882
+ :id => id
13420
13883
  )
13421
13884
 
13422
13885
  # resource path
@@ -13436,7 +13899,7 @@ module Pandarus
13436
13899
  end
13437
13900
 
13438
13901
  # Import an outcome group
13439
- def import_outcome_group_global(id,source_outcome_group_id,opts={})
13902
+ def import_outcome_group_global(id,opts={})
13440
13903
  query_param_keys = [
13441
13904
 
13442
13905
  ]
@@ -13448,11 +13911,9 @@ module Pandarus
13448
13911
 
13449
13912
  # verify existence of params
13450
13913
  raise "id is required" if id.nil?
13451
- raise "source_outcome_group_id is required" if source_outcome_group_id.nil?
13452
13914
  # set default values and merge with input
13453
13915
  options = underscored_merge_opts(opts,
13454
- :id => id,
13455
- :source_outcome_group_id => source_outcome_group_id
13916
+ :id => id
13456
13917
  )
13457
13918
 
13458
13919
  # resource path
@@ -13471,7 +13932,7 @@ module Pandarus
13471
13932
  end
13472
13933
 
13473
13934
  # Import an outcome group
13474
- def import_outcome_group_accounts(account_id,id,source_outcome_group_id,opts={})
13935
+ def import_outcome_group_accounts(account_id,id,opts={})
13475
13936
  query_param_keys = [
13476
13937
 
13477
13938
  ]
@@ -13484,12 +13945,10 @@ module Pandarus
13484
13945
  # verify existence of params
13485
13946
  raise "account_id is required" if account_id.nil?
13486
13947
  raise "id is required" if id.nil?
13487
- raise "source_outcome_group_id is required" if source_outcome_group_id.nil?
13488
13948
  # set default values and merge with input
13489
13949
  options = underscored_merge_opts(opts,
13490
13950
  :account_id => account_id,
13491
- :id => id,
13492
- :source_outcome_group_id => source_outcome_group_id
13951
+ :id => id
13493
13952
  )
13494
13953
 
13495
13954
  # resource path
@@ -13509,7 +13968,7 @@ module Pandarus
13509
13968
  end
13510
13969
 
13511
13970
  # Import an outcome group
13512
- def import_outcome_group_courses(course_id,id,source_outcome_group_id,opts={})
13971
+ def import_outcome_group_courses(course_id,id,opts={})
13513
13972
  query_param_keys = [
13514
13973
 
13515
13974
  ]
@@ -13522,12 +13981,10 @@ module Pandarus
13522
13981
  # verify existence of params
13523
13982
  raise "course_id is required" if course_id.nil?
13524
13983
  raise "id is required" if id.nil?
13525
- raise "source_outcome_group_id is required" if source_outcome_group_id.nil?
13526
13984
  # set default values and merge with input
13527
13985
  options = underscored_merge_opts(opts,
13528
13986
  :course_id => course_id,
13529
- :id => id,
13530
- :source_outcome_group_id => source_outcome_group_id
13987
+ :id => id
13531
13988
  )
13532
13989
 
13533
13990
  # resource path
@@ -13753,7 +14210,7 @@ module Pandarus
13753
14210
  end
13754
14211
 
13755
14212
  # Update/create front page
13756
- def update_create_front_page_courses(course_id,wiki_page__body__,opts={})
14213
+ def update_create_front_page_courses(course_id,opts={})
13757
14214
  query_param_keys = [
13758
14215
 
13759
14216
  ]
@@ -13770,11 +14227,9 @@ module Pandarus
13770
14227
 
13771
14228
  # verify existence of params
13772
14229
  raise "course_id is required" if course_id.nil?
13773
- raise "wiki_page__body__ is required" if wiki_page__body__.nil?
13774
14230
  # set default values and merge with input
13775
14231
  options = underscored_merge_opts(opts,
13776
- :course_id => course_id,
13777
- :wiki_page__body__ => wiki_page__body__
14232
+ :course_id => course_id
13778
14233
  )
13779
14234
 
13780
14235
  # resource path
@@ -13793,7 +14248,7 @@ module Pandarus
13793
14248
  end
13794
14249
 
13795
14250
  # Update/create front page
13796
- def update_create_front_page_groups(group_id,wiki_page__body__,opts={})
14251
+ def update_create_front_page_groups(group_id,opts={})
13797
14252
  query_param_keys = [
13798
14253
 
13799
14254
  ]
@@ -13810,11 +14265,9 @@ module Pandarus
13810
14265
 
13811
14266
  # verify existence of params
13812
14267
  raise "group_id is required" if group_id.nil?
13813
- raise "wiki_page__body__ is required" if wiki_page__body__.nil?
13814
14268
  # set default values and merge with input
13815
14269
  options = underscored_merge_opts(opts,
13816
- :group_id => group_id,
13817
- :wiki_page__body__ => wiki_page__body__
14270
+ :group_id => group_id
13818
14271
  )
13819
14272
 
13820
14273
  # resource path
@@ -13903,7 +14356,7 @@ module Pandarus
13903
14356
  end
13904
14357
 
13905
14358
  # Create page
13906
- def create_page_courses(course_id,wiki_page__title__,wiki_page__body__,wiki_page__hide_from_students__,wiki_page__notify_of_update__,opts={})
14359
+ def create_page_courses(course_id,opts={})
13907
14360
  query_param_keys = [
13908
14361
 
13909
14362
  ]
@@ -13921,17 +14374,9 @@ module Pandarus
13921
14374
 
13922
14375
  # verify existence of params
13923
14376
  raise "course_id is required" if course_id.nil?
13924
- raise "wiki_page__title__ is required" if wiki_page__title__.nil?
13925
- raise "wiki_page__body__ is required" if wiki_page__body__.nil?
13926
- raise "wiki_page__hide_from_students__ is required" if wiki_page__hide_from_students__.nil?
13927
- raise "wiki_page__notify_of_update__ is required" if wiki_page__notify_of_update__.nil?
13928
14377
  # set default values and merge with input
13929
14378
  options = underscored_merge_opts(opts,
13930
- :course_id => course_id,
13931
- :wiki_page__title__ => wiki_page__title__,
13932
- :wiki_page__body__ => wiki_page__body__,
13933
- :wiki_page__hide_from_students__ => wiki_page__hide_from_students__,
13934
- :wiki_page__notify_of_update__ => wiki_page__notify_of_update__
14379
+ :course_id => course_id
13935
14380
  )
13936
14381
 
13937
14382
  # resource path
@@ -13950,7 +14395,7 @@ module Pandarus
13950
14395
  end
13951
14396
 
13952
14397
  # Create page
13953
- def create_page_groups(group_id,wiki_page__title__,wiki_page__body__,wiki_page__hide_from_students__,wiki_page__notify_of_update__,opts={})
14398
+ def create_page_groups(group_id,opts={})
13954
14399
  query_param_keys = [
13955
14400
 
13956
14401
  ]
@@ -13968,17 +14413,9 @@ module Pandarus
13968
14413
 
13969
14414
  # verify existence of params
13970
14415
  raise "group_id is required" if group_id.nil?
13971
- raise "wiki_page__title__ is required" if wiki_page__title__.nil?
13972
- raise "wiki_page__body__ is required" if wiki_page__body__.nil?
13973
- raise "wiki_page__hide_from_students__ is required" if wiki_page__hide_from_students__.nil?
13974
- raise "wiki_page__notify_of_update__ is required" if wiki_page__notify_of_update__.nil?
13975
14416
  # set default values and merge with input
13976
14417
  options = underscored_merge_opts(opts,
13977
- :group_id => group_id,
13978
- :wiki_page__title__ => wiki_page__title__,
13979
- :wiki_page__body__ => wiki_page__body__,
13980
- :wiki_page__hide_from_students__ => wiki_page__hide_from_students__,
13981
- :wiki_page__notify_of_update__ => wiki_page__notify_of_update__
14418
+ :group_id => group_id
13982
14419
  )
13983
14420
 
13984
14421
  # resource path
@@ -14067,7 +14504,7 @@ module Pandarus
14067
14504
  end
14068
14505
 
14069
14506
  # Update/create page
14070
- def update_create_page_courses(course_id,url,wiki_page__title__,wiki_page__body__,wiki_page__hide_from_students__,wiki_page__notify_of_update__,opts={})
14507
+ def update_create_page_courses(course_id,url,opts={})
14071
14508
  query_param_keys = [
14072
14509
 
14073
14510
  ]
@@ -14086,18 +14523,10 @@ module Pandarus
14086
14523
  # verify existence of params
14087
14524
  raise "course_id is required" if course_id.nil?
14088
14525
  raise "url is required" if url.nil?
14089
- raise "wiki_page__title__ is required" if wiki_page__title__.nil?
14090
- raise "wiki_page__body__ is required" if wiki_page__body__.nil?
14091
- raise "wiki_page__hide_from_students__ is required" if wiki_page__hide_from_students__.nil?
14092
- raise "wiki_page__notify_of_update__ is required" if wiki_page__notify_of_update__.nil?
14093
14526
  # set default values and merge with input
14094
14527
  options = underscored_merge_opts(opts,
14095
14528
  :course_id => course_id,
14096
- :url => url,
14097
- :wiki_page__title__ => wiki_page__title__,
14098
- :wiki_page__body__ => wiki_page__body__,
14099
- :wiki_page__hide_from_students__ => wiki_page__hide_from_students__,
14100
- :wiki_page__notify_of_update__ => wiki_page__notify_of_update__
14529
+ :url => url
14101
14530
  )
14102
14531
 
14103
14532
  # resource path
@@ -14117,7 +14546,7 @@ module Pandarus
14117
14546
  end
14118
14547
 
14119
14548
  # Update/create page
14120
- def update_create_page_groups(group_id,url,wiki_page__title__,wiki_page__body__,wiki_page__hide_from_students__,wiki_page__notify_of_update__,opts={})
14549
+ def update_create_page_groups(group_id,url,opts={})
14121
14550
  query_param_keys = [
14122
14551
 
14123
14552
  ]
@@ -14136,18 +14565,10 @@ module Pandarus
14136
14565
  # verify existence of params
14137
14566
  raise "group_id is required" if group_id.nil?
14138
14567
  raise "url is required" if url.nil?
14139
- raise "wiki_page__title__ is required" if wiki_page__title__.nil?
14140
- raise "wiki_page__body__ is required" if wiki_page__body__.nil?
14141
- raise "wiki_page__hide_from_students__ is required" if wiki_page__hide_from_students__.nil?
14142
- raise "wiki_page__notify_of_update__ is required" if wiki_page__notify_of_update__.nil?
14143
14568
  # set default values and merge with input
14144
14569
  options = underscored_merge_opts(opts,
14145
14570
  :group_id => group_id,
14146
- :url => url,
14147
- :wiki_page__title__ => wiki_page__title__,
14148
- :wiki_page__body__ => wiki_page__body__,
14149
- :wiki_page__hide_from_students__ => wiki_page__hide_from_students__,
14150
- :wiki_page__notify_of_update__ => wiki_page__notify_of_update__
14571
+ :url => url
14151
14572
  )
14152
14573
 
14153
14574
  # resource path
@@ -15516,7 +15937,7 @@ module Pandarus
15516
15937
  end
15517
15938
 
15518
15939
  # Reorder question groups
15519
- def reorder_question_groups(course_id,quiz_id,id,order__id__,order__type__,opts={})
15940
+ def reorder_question_groups(course_id,quiz_id,id,order__id__,opts={})
15520
15941
  query_param_keys = [
15521
15942
 
15522
15943
  ]
@@ -15532,14 +15953,12 @@ module Pandarus
15532
15953
  raise "quiz_id is required" if quiz_id.nil?
15533
15954
  raise "id is required" if id.nil?
15534
15955
  raise "order__id__ is required" if order__id__.nil?
15535
- raise "order__type__ is required" if order__type__.nil?
15536
15956
  # set default values and merge with input
15537
15957
  options = underscored_merge_opts(opts,
15538
15958
  :course_id => course_id,
15539
15959
  :quiz_id => quiz_id,
15540
15960
  :id => id,
15541
- :order__id__ => order__id__,
15542
- :order__type__ => order__type__
15961
+ :order__id__ => order__id__
15543
15962
  )
15544
15963
 
15545
15964
  # resource path
@@ -15596,7 +16015,7 @@ module Pandarus
15596
16015
  end
15597
16016
 
15598
16017
  # Create a quiz report
15599
- def create_quiz_report(course_id,quiz_id,quiz_report__report_type__,opts={})
16018
+ def create_quiz_report(course_id,quiz_id,opts={})
15600
16019
  query_param_keys = [
15601
16020
 
15602
16021
  ]
@@ -15611,12 +16030,10 @@ module Pandarus
15611
16030
  # verify existence of params
15612
16031
  raise "course_id is required" if course_id.nil?
15613
16032
  raise "quiz_id is required" if quiz_id.nil?
15614
- raise "quiz_report__report_type__ is required" if quiz_report__report_type__.nil?
15615
16033
  # set default values and merge with input
15616
16034
  options = underscored_merge_opts(opts,
15617
16035
  :course_id => course_id,
15618
- :quiz_id => quiz_id,
15619
- :quiz_report__report_type__ => quiz_report__report_type__
16036
+ :quiz_id => quiz_id
15620
16037
  )
15621
16038
 
15622
16039
  # resource path
@@ -15674,7 +16091,7 @@ module Pandarus
15674
16091
  end
15675
16092
 
15676
16093
  # Fetching the latest quiz statistics
15677
- def fetching_latest_quiz_statistics(course_id,quiz_id,all_versions,opts={})
16094
+ def fetching_latest_quiz_statistics(course_id,quiz_id,opts={})
15678
16095
  query_param_keys = [
15679
16096
  :all_versions
15680
16097
  ]
@@ -15686,12 +16103,10 @@ module Pandarus
15686
16103
  # verify existence of params
15687
16104
  raise "course_id is required" if course_id.nil?
15688
16105
  raise "quiz_id is required" if quiz_id.nil?
15689
- raise "all_versions is required" if all_versions.nil?
15690
16106
  # set default values and merge with input
15691
16107
  options = underscored_merge_opts(opts,
15692
16108
  :course_id => course_id,
15693
- :quiz_id => quiz_id,
15694
- :all_versions => all_versions
16109
+ :quiz_id => quiz_id
15695
16110
  )
15696
16111
 
15697
16112
  # resource path
@@ -15712,7 +16127,7 @@ module Pandarus
15712
16127
  end
15713
16128
 
15714
16129
  # Upload a file
15715
- def upload_file(course_id,quiz_id,name,on_duplicate,opts={})
16130
+ def upload_file(course_id,quiz_id,opts={})
15716
16131
  query_param_keys = [
15717
16132
 
15718
16133
  ]
@@ -15726,14 +16141,10 @@ module Pandarus
15726
16141
  # verify existence of params
15727
16142
  raise "course_id is required" if course_id.nil?
15728
16143
  raise "quiz_id is required" if quiz_id.nil?
15729
- raise "name is required" if name.nil?
15730
- raise "on_duplicate is required" if on_duplicate.nil?
15731
16144
  # set default values and merge with input
15732
16145
  options = underscored_merge_opts(opts,
15733
16146
  :course_id => course_id,
15734
- :quiz_id => quiz_id,
15735
- :name => name,
15736
- :on_duplicate => on_duplicate
16147
+ :quiz_id => quiz_id
15737
16148
  )
15738
16149
 
15739
16150
  # resource path
@@ -15754,7 +16165,7 @@ module Pandarus
15754
16165
  end
15755
16166
 
15756
16167
  # Get all quiz submission questions.
15757
- def get_all_quiz_submission_questions(quiz_submission_id,include,opts={})
16168
+ def get_all_quiz_submission_questions(quiz_submission_id,opts={})
15758
16169
  query_param_keys = [
15759
16170
  :include
15760
16171
  ]
@@ -15765,11 +16176,9 @@ module Pandarus
15765
16176
 
15766
16177
  # verify existence of params
15767
16178
  raise "quiz_submission_id is required" if quiz_submission_id.nil?
15768
- raise "include is required" if include.nil?
15769
16179
  # set default values and merge with input
15770
16180
  options = underscored_merge_opts(opts,
15771
- :quiz_submission_id => quiz_submission_id,
15772
- :include => include
16181
+ :quiz_submission_id => quiz_submission_id
15773
16182
  )
15774
16183
 
15775
16184
  # resource path
@@ -15789,7 +16198,7 @@ module Pandarus
15789
16198
  end
15790
16199
 
15791
16200
  # Get a single quiz submission question.
15792
- def get_single_quiz_submission_question(quiz_submission_id,id,include,opts={})
16201
+ def get_single_quiz_submission_question(quiz_submission_id,id,opts={})
15793
16202
  query_param_keys = [
15794
16203
  :include
15795
16204
  ]
@@ -15801,12 +16210,10 @@ module Pandarus
15801
16210
  # verify existence of params
15802
16211
  raise "quiz_submission_id is required" if quiz_submission_id.nil?
15803
16212
  raise "id is required" if id.nil?
15804
- raise "include is required" if include.nil?
15805
16213
  # set default values and merge with input
15806
16214
  options = underscored_merge_opts(opts,
15807
16215
  :quiz_submission_id => quiz_submission_id,
15808
- :id => id,
15809
- :include => include
16216
+ :id => id
15810
16217
  )
15811
16218
 
15812
16219
  # resource path
@@ -15827,7 +16234,7 @@ module Pandarus
15827
16234
  end
15828
16235
 
15829
16236
  # Answering questions
15830
- def answering_questions(quiz_submission_id,attempt,validation_token,quiz_questions,opts={})
16237
+ def answering_questions(quiz_submission_id,opts={})
15831
16238
  query_param_keys = [
15832
16239
 
15833
16240
  ]
@@ -15842,15 +16249,9 @@ module Pandarus
15842
16249
 
15843
16250
  # verify existence of params
15844
16251
  raise "quiz_submission_id is required" if quiz_submission_id.nil?
15845
- raise "attempt is required" if attempt.nil?
15846
- raise "validation_token is required" if validation_token.nil?
15847
- raise "quiz_questions is required" if quiz_questions.nil?
15848
16252
  # set default values and merge with input
15849
16253
  options = underscored_merge_opts(opts,
15850
- :quiz_submission_id => quiz_submission_id,
15851
- :attempt => attempt,
15852
- :validation_token => validation_token,
15853
- :quiz_questions => quiz_questions
16254
+ :quiz_submission_id => quiz_submission_id
15854
16255
  )
15855
16256
 
15856
16257
  # resource path
@@ -15870,7 +16271,7 @@ module Pandarus
15870
16271
  end
15871
16272
 
15872
16273
  # Flagging a question.
15873
- def flagging_question(quiz_submission_id,id,attempt,validation_token,opts={})
16274
+ def flagging_question(quiz_submission_id,id,opts={})
15874
16275
  query_param_keys = [
15875
16276
 
15876
16277
  ]
@@ -15885,14 +16286,10 @@ module Pandarus
15885
16286
  # verify existence of params
15886
16287
  raise "quiz_submission_id is required" if quiz_submission_id.nil?
15887
16288
  raise "id is required" if id.nil?
15888
- raise "attempt is required" if attempt.nil?
15889
- raise "validation_token is required" if validation_token.nil?
15890
16289
  # set default values and merge with input
15891
16290
  options = underscored_merge_opts(opts,
15892
16291
  :quiz_submission_id => quiz_submission_id,
15893
- :id => id,
15894
- :attempt => attempt,
15895
- :validation_token => validation_token
16292
+ :id => id
15896
16293
  )
15897
16294
 
15898
16295
  # resource path
@@ -15913,7 +16310,7 @@ module Pandarus
15913
16310
  end
15914
16311
 
15915
16312
  # Unflagging a question.
15916
- def unflagging_question(quiz_submission_id,id,attempt,validation_token,opts={})
16313
+ def unflagging_question(quiz_submission_id,id,opts={})
15917
16314
  query_param_keys = [
15918
16315
 
15919
16316
  ]
@@ -15928,14 +16325,10 @@ module Pandarus
15928
16325
  # verify existence of params
15929
16326
  raise "quiz_submission_id is required" if quiz_submission_id.nil?
15930
16327
  raise "id is required" if id.nil?
15931
- raise "attempt is required" if attempt.nil?
15932
- raise "validation_token is required" if validation_token.nil?
15933
16328
  # set default values and merge with input
15934
16329
  options = underscored_merge_opts(opts,
15935
16330
  :quiz_submission_id => quiz_submission_id,
15936
- :id => id,
15937
- :attempt => attempt,
15938
- :validation_token => validation_token
16331
+ :id => id
15939
16332
  )
15940
16333
 
15941
16334
  # resource path
@@ -15956,7 +16349,7 @@ module Pandarus
15956
16349
  end
15957
16350
 
15958
16351
  # Get all quiz submissions.
15959
- def get_all_quiz_submissions(course_id,quiz_id,include,opts={})
16352
+ def get_all_quiz_submissions(course_id,quiz_id,opts={})
15960
16353
  query_param_keys = [
15961
16354
  :include
15962
16355
  ]
@@ -15968,12 +16361,10 @@ module Pandarus
15968
16361
  # verify existence of params
15969
16362
  raise "course_id is required" if course_id.nil?
15970
16363
  raise "quiz_id is required" if quiz_id.nil?
15971
- raise "include is required" if include.nil?
15972
16364
  # set default values and merge with input
15973
16365
  options = underscored_merge_opts(opts,
15974
16366
  :course_id => course_id,
15975
- :quiz_id => quiz_id,
15976
- :include => include
16367
+ :quiz_id => quiz_id
15977
16368
  )
15978
16369
 
15979
16370
  # resource path
@@ -15994,7 +16385,7 @@ module Pandarus
15994
16385
  end
15995
16386
 
15996
16387
  # Get a single quiz submission.
15997
- def get_single_quiz_submission(course_id,quiz_id,id,include,opts={})
16388
+ def get_single_quiz_submission(course_id,quiz_id,id,opts={})
15998
16389
  query_param_keys = [
15999
16390
  :include
16000
16391
  ]
@@ -16007,13 +16398,11 @@ module Pandarus
16007
16398
  raise "course_id is required" if course_id.nil?
16008
16399
  raise "quiz_id is required" if quiz_id.nil?
16009
16400
  raise "id is required" if id.nil?
16010
- raise "include is required" if include.nil?
16011
16401
  # set default values and merge with input
16012
16402
  options = underscored_merge_opts(opts,
16013
16403
  :course_id => course_id,
16014
16404
  :quiz_id => quiz_id,
16015
- :id => id,
16016
- :include => include
16405
+ :id => id
16017
16406
  )
16018
16407
 
16019
16408
  # resource path
@@ -16073,7 +16462,7 @@ module Pandarus
16073
16462
  end
16074
16463
 
16075
16464
  # Update student question scores and comments.
16076
- def update_student_question_scores_and_comments(course_id,quiz_id,id,attempt,opts={})
16465
+ def update_student_question_scores_and_comments(course_id,quiz_id,id,opts={})
16077
16466
  query_param_keys = [
16078
16467
 
16079
16468
  ]
@@ -16089,13 +16478,11 @@ module Pandarus
16089
16478
  raise "course_id is required" if course_id.nil?
16090
16479
  raise "quiz_id is required" if quiz_id.nil?
16091
16480
  raise "id is required" if id.nil?
16092
- raise "attempt is required" if attempt.nil?
16093
16481
  # set default values and merge with input
16094
16482
  options = underscored_merge_opts(opts,
16095
16483
  :course_id => course_id,
16096
16484
  :quiz_id => quiz_id,
16097
- :id => id,
16098
- :attempt => attempt
16485
+ :id => id
16099
16486
  )
16100
16487
 
16101
16488
  # resource path
@@ -16117,7 +16504,7 @@ module Pandarus
16117
16504
  end
16118
16505
 
16119
16506
  # Complete the quiz submission (turn it in).
16120
- def complete_quiz_submission_turn_it_in(course_id,quiz_id,id,attempt,validation_token,opts={})
16507
+ def complete_quiz_submission_turn_it_in(course_id,quiz_id,id,opts={})
16121
16508
  query_param_keys = [
16122
16509
 
16123
16510
  ]
@@ -16133,15 +16520,11 @@ module Pandarus
16133
16520
  raise "course_id is required" if course_id.nil?
16134
16521
  raise "quiz_id is required" if quiz_id.nil?
16135
16522
  raise "id is required" if id.nil?
16136
- raise "attempt is required" if attempt.nil?
16137
- raise "validation_token is required" if validation_token.nil?
16138
16523
  # set default values and merge with input
16139
16524
  options = underscored_merge_opts(opts,
16140
16525
  :course_id => course_id,
16141
16526
  :quiz_id => quiz_id,
16142
- :id => id,
16143
- :attempt => attempt,
16144
- :validation_token => validation_token
16527
+ :id => id
16145
16528
  )
16146
16529
 
16147
16530
  # resource path
@@ -16236,7 +16619,7 @@ module Pandarus
16236
16619
  end
16237
16620
 
16238
16621
  # Create a single quiz question
16239
- def create_single_quiz_question(course_id,quiz_id,question__question_name__,question__question_text__,question__question_type__,opts={})
16622
+ def create_single_quiz_question(course_id,quiz_id,question__question_name__,question__question_text__,opts={})
16240
16623
  query_param_keys = [
16241
16624
 
16242
16625
  ]
@@ -16261,14 +16644,12 @@ module Pandarus
16261
16644
  raise "quiz_id is required" if quiz_id.nil?
16262
16645
  raise "question__question_name__ is required" if question__question_name__.nil?
16263
16646
  raise "question__question_text__ is required" if question__question_text__.nil?
16264
- raise "question__question_type__ is required" if question__question_type__.nil?
16265
16647
  # set default values and merge with input
16266
16648
  options = underscored_merge_opts(opts,
16267
16649
  :course_id => course_id,
16268
16650
  :quiz_id => quiz_id,
16269
16651
  :question__question_name__ => question__question_name__,
16270
- :question__question_text__ => question__question_text__,
16271
- :question__question_type__ => question__question_type__
16652
+ :question__question_text__ => question__question_text__
16272
16653
  )
16273
16654
 
16274
16655
  # resource path
@@ -16288,7 +16669,7 @@ module Pandarus
16288
16669
  end
16289
16670
 
16290
16671
  # Update an existing quiz question
16291
- def update_existing_quiz_question(course_id,quiz_id,id,question__question_name__,question__question_text__,question__question_type__,opts={})
16672
+ def update_existing_quiz_question(course_id,quiz_id,id,question__question_name__,question__question_text__,opts={})
16292
16673
  query_param_keys = [
16293
16674
 
16294
16675
  ]
@@ -16314,15 +16695,13 @@ module Pandarus
16314
16695
  raise "id is required" if id.nil?
16315
16696
  raise "question__question_name__ is required" if question__question_name__.nil?
16316
16697
  raise "question__question_text__ is required" if question__question_text__.nil?
16317
- raise "question__question_type__ is required" if question__question_type__.nil?
16318
16698
  # set default values and merge with input
16319
16699
  options = underscored_merge_opts(opts,
16320
16700
  :course_id => course_id,
16321
16701
  :quiz_id => quiz_id,
16322
16702
  :id => id,
16323
16703
  :question__question_name__ => question__question_name__,
16324
- :question__question_text__ => question__question_text__,
16325
- :question__question_type__ => question__question_type__
16704
+ :question__question_text__ => question__question_text__
16326
16705
  )
16327
16706
 
16328
16707
  # resource path
@@ -16449,7 +16828,7 @@ module Pandarus
16449
16828
  end
16450
16829
 
16451
16830
  # Create a quiz
16452
- def create_quiz(course_id,quiz__title__,quiz__quiz_type__,opts={})
16831
+ def create_quiz(course_id,opts={})
16453
16832
  query_param_keys = [
16454
16833
 
16455
16834
  ]
@@ -16481,13 +16860,9 @@ module Pandarus
16481
16860
 
16482
16861
  # verify existence of params
16483
16862
  raise "course_id is required" if course_id.nil?
16484
- raise "quiz__title__ is required" if quiz__title__.nil?
16485
- raise "quiz__quiz_type__ is required" if quiz__quiz_type__.nil?
16486
16863
  # set default values and merge with input
16487
16864
  options = underscored_merge_opts(opts,
16488
- :course_id => course_id,
16489
- :quiz__title__ => quiz__title__,
16490
- :quiz__quiz_type__ => quiz__quiz_type__
16865
+ :course_id => course_id
16491
16866
  )
16492
16867
 
16493
16868
  # resource path
@@ -16506,7 +16881,7 @@ module Pandarus
16506
16881
  end
16507
16882
 
16508
16883
  # Edit a quiz
16509
- def edit_quiz(course_id,id,quiz__notify_of_update__,opts={})
16884
+ def edit_quiz(course_id,id,opts={})
16510
16885
  query_param_keys = [
16511
16886
 
16512
16887
  ]
@@ -16519,12 +16894,10 @@ module Pandarus
16519
16894
  # verify existence of params
16520
16895
  raise "course_id is required" if course_id.nil?
16521
16896
  raise "id is required" if id.nil?
16522
- raise "quiz__notify_of_update__ is required" if quiz__notify_of_update__.nil?
16523
16897
  # set default values and merge with input
16524
16898
  options = underscored_merge_opts(opts,
16525
16899
  :course_id => course_id,
16526
- :id => id,
16527
- :quiz__notify_of_update__ => quiz__notify_of_update__
16900
+ :id => id
16528
16901
  )
16529
16902
 
16530
16903
  # resource path
@@ -16579,7 +16952,7 @@ module Pandarus
16579
16952
  end
16580
16953
 
16581
16954
  # Reorder quiz items
16582
- def reorder_quiz_items(course_id,id,order__id__,order__type__,opts={})
16955
+ def reorder_quiz_items(course_id,id,order__id__,opts={})
16583
16956
  query_param_keys = [
16584
16957
 
16585
16958
  ]
@@ -16594,13 +16967,11 @@ module Pandarus
16594
16967
  raise "course_id is required" if course_id.nil?
16595
16968
  raise "id is required" if id.nil?
16596
16969
  raise "order__id__ is required" if order__id__.nil?
16597
- raise "order__type__ is required" if order__type__.nil?
16598
16970
  # set default values and merge with input
16599
16971
  options = underscored_merge_opts(opts,
16600
16972
  :course_id => course_id,
16601
16973
  :id => id,
16602
- :order__id__ => order__id__,
16603
- :order__type__ => order__type__
16974
+ :order__id__ => order__id__
16604
16975
  )
16605
16976
 
16606
16977
  # resource path
@@ -16621,7 +16992,7 @@ module Pandarus
16621
16992
  end
16622
16993
 
16623
16994
  # List roles
16624
- def list_roles(account_id,state,opts={})
16995
+ def list_roles(account_id,opts={})
16625
16996
  query_param_keys = [
16626
16997
  :state
16627
16998
  ]
@@ -16632,11 +17003,9 @@ module Pandarus
16632
17003
 
16633
17004
  # verify existence of params
16634
17005
  raise "account_id is required" if account_id.nil?
16635
- raise "state is required" if state.nil?
16636
17006
  # set default values and merge with input
16637
17007
  options = underscored_merge_opts(opts,
16638
- :account_id => account_id,
16639
- :state => state
17008
+ :account_id => account_id
16640
17009
  )
16641
17010
 
16642
17011
  # resource path
@@ -16690,7 +17059,7 @@ module Pandarus
16690
17059
  end
16691
17060
 
16692
17061
  # Create a new role
16693
- def create_new_role(account_id,role,opts={})
17062
+ def create_new_role(account_id,opts={})
16694
17063
  query_param_keys = [
16695
17064
 
16696
17065
  ]
@@ -16706,11 +17075,9 @@ module Pandarus
16706
17075
 
16707
17076
  # verify existence of params
16708
17077
  raise "account_id is required" if account_id.nil?
16709
- raise "role is required" if role.nil?
16710
17078
  # set default values and merge with input
16711
17079
  options = underscored_merge_opts(opts,
16712
- :account_id => account_id,
16713
- :role => role
17080
+ :account_id => account_id
16714
17081
  )
16715
17082
 
16716
17083
  # resource path
@@ -16868,7 +17235,7 @@ module Pandarus
16868
17235
  end
16869
17236
 
16870
17237
  # Import SIS data
16871
- def import_sis_data(account_id,attachment,opts={})
17238
+ def import_sis_data(account_id,opts={})
16872
17239
  query_param_keys = [
16873
17240
 
16874
17241
  ]
@@ -16887,11 +17254,9 @@ module Pandarus
16887
17254
 
16888
17255
  # verify existence of params
16889
17256
  raise "account_id is required" if account_id.nil?
16890
- raise "attachment is required" if attachment.nil?
16891
17257
  # set default values and merge with input
16892
17258
  options = underscored_merge_opts(opts,
16893
- :account_id => account_id,
16894
- :attachment => attachment
17259
+ :account_id => account_id
16895
17260
  )
16896
17261
 
16897
17262
  # resource path
@@ -16945,7 +17310,7 @@ module Pandarus
16945
17310
  end
16946
17311
 
16947
17312
  # Find recipients
16948
- def find_recipients_conversations(search,context,exclude,type,user_id,from_conversation_id,permissions,opts={})
17313
+ def find_recipients_conversations(opts={})
16949
17314
  query_param_keys = [
16950
17315
  :search,
16951
17316
  :context,
@@ -16960,23 +17325,10 @@ module Pandarus
16960
17325
 
16961
17326
  ]
16962
17327
 
16963
- # verify existence of params
16964
- raise "search is required" if search.nil?
16965
- raise "context is required" if context.nil?
16966
- raise "exclude is required" if exclude.nil?
16967
- raise "type is required" if type.nil?
16968
- raise "user_id is required" if user_id.nil?
16969
- raise "from_conversation_id is required" if from_conversation_id.nil?
16970
- raise "permissions is required" if permissions.nil?
16971
17328
  # set default values and merge with input
16972
17329
  options = underscored_merge_opts(opts,
16973
- :search => search,
16974
- :context => context,
16975
- :exclude => exclude,
16976
- :type => type,
16977
- :user_id => user_id,
16978
- :from_conversation_id => from_conversation_id,
16979
- :permissions => permissions
17330
+ {}
17331
+
16980
17332
  )
16981
17333
 
16982
17334
  # resource path
@@ -16996,7 +17348,7 @@ module Pandarus
16996
17348
  end
16997
17349
 
16998
17350
  # Find recipients
16999
- def find_recipients_search(search,context,exclude,type,user_id,from_conversation_id,permissions,opts={})
17351
+ def find_recipients_search(opts={})
17000
17352
  query_param_keys = [
17001
17353
  :search,
17002
17354
  :context,
@@ -17011,23 +17363,10 @@ module Pandarus
17011
17363
 
17012
17364
  ]
17013
17365
 
17014
- # verify existence of params
17015
- raise "search is required" if search.nil?
17016
- raise "context is required" if context.nil?
17017
- raise "exclude is required" if exclude.nil?
17018
- raise "type is required" if type.nil?
17019
- raise "user_id is required" if user_id.nil?
17020
- raise "from_conversation_id is required" if from_conversation_id.nil?
17021
- raise "permissions is required" if permissions.nil?
17022
17366
  # set default values and merge with input
17023
17367
  options = underscored_merge_opts(opts,
17024
- :search => search,
17025
- :context => context,
17026
- :exclude => exclude,
17027
- :type => type,
17028
- :user_id => user_id,
17029
- :from_conversation_id => from_conversation_id,
17030
- :permissions => permissions
17368
+ {}
17369
+
17031
17370
  )
17032
17371
 
17033
17372
  # resource path
@@ -17079,7 +17418,7 @@ module Pandarus
17079
17418
  end
17080
17419
 
17081
17420
  # Create course section
17082
- def create_course_section(course_id,course_section__name__,opts={})
17421
+ def create_course_section(course_id,opts={})
17083
17422
  query_param_keys = [
17084
17423
 
17085
17424
  ]
@@ -17094,11 +17433,9 @@ module Pandarus
17094
17433
 
17095
17434
  # verify existence of params
17096
17435
  raise "course_id is required" if course_id.nil?
17097
- raise "course_section__name__ is required" if course_section__name__.nil?
17098
17436
  # set default values and merge with input
17099
17437
  options = underscored_merge_opts(opts,
17100
- :course_id => course_id,
17101
- :course_section__name__ => course_section__name__
17438
+ :course_id => course_id
17102
17439
  )
17103
17440
 
17104
17441
  # resource path
@@ -17418,7 +17755,7 @@ module Pandarus
17418
17755
  end
17419
17756
 
17420
17757
  # Submit an assignment
17421
- def submit_assignment_courses(course_id,assignment_id,submission__submission_type__,opts={})
17758
+ def submit_assignment_courses(course_id,assignment_id,opts={})
17422
17759
  query_param_keys = [
17423
17760
 
17424
17761
  ]
@@ -17437,12 +17774,10 @@ module Pandarus
17437
17774
  # verify existence of params
17438
17775
  raise "course_id is required" if course_id.nil?
17439
17776
  raise "assignment_id is required" if assignment_id.nil?
17440
- raise "submission__submission_type__ is required" if submission__submission_type__.nil?
17441
17777
  # set default values and merge with input
17442
17778
  options = underscored_merge_opts(opts,
17443
17779
  :course_id => course_id,
17444
- :assignment_id => assignment_id,
17445
- :submission__submission_type__ => submission__submission_type__
17780
+ :assignment_id => assignment_id
17446
17781
  )
17447
17782
 
17448
17783
  # resource path
@@ -17463,7 +17798,7 @@ module Pandarus
17463
17798
  end
17464
17799
 
17465
17800
  # Submit an assignment
17466
- def submit_assignment_sections(section_id,assignment_id,submission__submission_type__,opts={})
17801
+ def submit_assignment_sections(section_id,assignment_id,opts={})
17467
17802
  query_param_keys = [
17468
17803
 
17469
17804
  ]
@@ -17482,12 +17817,10 @@ module Pandarus
17482
17817
  # verify existence of params
17483
17818
  raise "section_id is required" if section_id.nil?
17484
17819
  raise "assignment_id is required" if assignment_id.nil?
17485
- raise "submission__submission_type__ is required" if submission__submission_type__.nil?
17486
17820
  # set default values and merge with input
17487
17821
  options = underscored_merge_opts(opts,
17488
17822
  :section_id => section_id,
17489
- :assignment_id => assignment_id,
17490
- :submission__submission_type__ => submission__submission_type__
17823
+ :assignment_id => assignment_id
17491
17824
  )
17492
17825
 
17493
17826
  # resource path
@@ -17508,7 +17841,7 @@ module Pandarus
17508
17841
  end
17509
17842
 
17510
17843
  # List assignment submissions
17511
- def list_assignment_submissions_courses(course_id,assignment_id,include,opts={})
17844
+ def list_assignment_submissions_courses(course_id,assignment_id,opts={})
17512
17845
  query_param_keys = [
17513
17846
  :include
17514
17847
  ]
@@ -17520,12 +17853,10 @@ module Pandarus
17520
17853
  # verify existence of params
17521
17854
  raise "course_id is required" if course_id.nil?
17522
17855
  raise "assignment_id is required" if assignment_id.nil?
17523
- raise "include is required" if include.nil?
17524
17856
  # set default values and merge with input
17525
17857
  options = underscored_merge_opts(opts,
17526
17858
  :course_id => course_id,
17527
- :assignment_id => assignment_id,
17528
- :include => include
17859
+ :assignment_id => assignment_id
17529
17860
  )
17530
17861
 
17531
17862
  # resource path
@@ -17546,7 +17877,7 @@ module Pandarus
17546
17877
  end
17547
17878
 
17548
17879
  # List assignment submissions
17549
- def list_assignment_submissions_sections(section_id,assignment_id,include,opts={})
17880
+ def list_assignment_submissions_sections(section_id,assignment_id,opts={})
17550
17881
  query_param_keys = [
17551
17882
  :include
17552
17883
  ]
@@ -17558,12 +17889,10 @@ module Pandarus
17558
17889
  # verify existence of params
17559
17890
  raise "section_id is required" if section_id.nil?
17560
17891
  raise "assignment_id is required" if assignment_id.nil?
17561
- raise "include is required" if include.nil?
17562
17892
  # set default values and merge with input
17563
17893
  options = underscored_merge_opts(opts,
17564
17894
  :section_id => section_id,
17565
- :assignment_id => assignment_id,
17566
- :include => include
17895
+ :assignment_id => assignment_id
17567
17896
  )
17568
17897
 
17569
17898
  # resource path
@@ -17584,7 +17913,7 @@ module Pandarus
17584
17913
  end
17585
17914
 
17586
17915
  # List submissions for multiple assignments
17587
- def list_submissions_for_multiple_assignments_courses(course_id,student_ids,assignment_ids,grouped,include,opts={})
17916
+ def list_submissions_for_multiple_assignments_courses(course_id,opts={})
17588
17917
  query_param_keys = [
17589
17918
  :student_ids,
17590
17919
  :assignment_ids,
@@ -17598,17 +17927,9 @@ module Pandarus
17598
17927
 
17599
17928
  # verify existence of params
17600
17929
  raise "course_id is required" if course_id.nil?
17601
- raise "student_ids is required" if student_ids.nil?
17602
- raise "assignment_ids is required" if assignment_ids.nil?
17603
- raise "grouped is required" if grouped.nil?
17604
- raise "include is required" if include.nil?
17605
17930
  # set default values and merge with input
17606
17931
  options = underscored_merge_opts(opts,
17607
- :course_id => course_id,
17608
- :student_ids => student_ids,
17609
- :assignment_ids => assignment_ids,
17610
- :grouped => grouped,
17611
- :include => include
17932
+ :course_id => course_id
17612
17933
  )
17613
17934
 
17614
17935
  # resource path
@@ -17628,7 +17949,7 @@ module Pandarus
17628
17949
  end
17629
17950
 
17630
17951
  # List submissions for multiple assignments
17631
- def list_submissions_for_multiple_assignments_sections(section_id,student_ids,assignment_ids,grouped,include,opts={})
17952
+ def list_submissions_for_multiple_assignments_sections(section_id,opts={})
17632
17953
  query_param_keys = [
17633
17954
  :student_ids,
17634
17955
  :assignment_ids,
@@ -17642,17 +17963,9 @@ module Pandarus
17642
17963
 
17643
17964
  # verify existence of params
17644
17965
  raise "section_id is required" if section_id.nil?
17645
- raise "student_ids is required" if student_ids.nil?
17646
- raise "assignment_ids is required" if assignment_ids.nil?
17647
- raise "grouped is required" if grouped.nil?
17648
- raise "include is required" if include.nil?
17649
17966
  # set default values and merge with input
17650
17967
  options = underscored_merge_opts(opts,
17651
- :section_id => section_id,
17652
- :student_ids => student_ids,
17653
- :assignment_ids => assignment_ids,
17654
- :grouped => grouped,
17655
- :include => include
17968
+ :section_id => section_id
17656
17969
  )
17657
17970
 
17658
17971
  # resource path
@@ -17672,7 +17985,7 @@ module Pandarus
17672
17985
  end
17673
17986
 
17674
17987
  # Get a single submission
17675
- def get_single_submission_courses(course_id,assignment_id,user_id,include,opts={})
17988
+ def get_single_submission_courses(course_id,assignment_id,user_id,opts={})
17676
17989
  query_param_keys = [
17677
17990
  :include
17678
17991
  ]
@@ -17685,13 +17998,11 @@ module Pandarus
17685
17998
  raise "course_id is required" if course_id.nil?
17686
17999
  raise "assignment_id is required" if assignment_id.nil?
17687
18000
  raise "user_id is required" if user_id.nil?
17688
- raise "include is required" if include.nil?
17689
18001
  # set default values and merge with input
17690
18002
  options = underscored_merge_opts(opts,
17691
18003
  :course_id => course_id,
17692
18004
  :assignment_id => assignment_id,
17693
- :user_id => user_id,
17694
- :include => include
18005
+ :user_id => user_id
17695
18006
  )
17696
18007
 
17697
18008
  # resource path
@@ -17713,7 +18024,7 @@ module Pandarus
17713
18024
  end
17714
18025
 
17715
18026
  # Get a single submission
17716
- def get_single_submission_sections(section_id,assignment_id,user_id,include,opts={})
18027
+ def get_single_submission_sections(section_id,assignment_id,user_id,opts={})
17717
18028
  query_param_keys = [
17718
18029
  :include
17719
18030
  ]
@@ -17726,13 +18037,11 @@ module Pandarus
17726
18037
  raise "section_id is required" if section_id.nil?
17727
18038
  raise "assignment_id is required" if assignment_id.nil?
17728
18039
  raise "user_id is required" if user_id.nil?
17729
- raise "include is required" if include.nil?
17730
18040
  # set default values and merge with input
17731
18041
  options = underscored_merge_opts(opts,
17732
18042
  :section_id => section_id,
17733
18043
  :assignment_id => assignment_id,
17734
- :user_id => user_id,
17735
- :include => include
18044
+ :user_id => user_id
17736
18045
  )
17737
18046
 
17738
18047
  # resource path
@@ -17924,7 +18233,7 @@ module Pandarus
17924
18233
  end
17925
18234
 
17926
18235
  # List available tabs for a course or group
17927
- def list_available_tabs_for_course_or_group_courses(course_id,include,opts={})
18236
+ def list_available_tabs_for_course_or_group_courses(course_id,opts={})
17928
18237
  query_param_keys = [
17929
18238
  :include
17930
18239
  ]
@@ -17935,11 +18244,9 @@ module Pandarus
17935
18244
 
17936
18245
  # verify existence of params
17937
18246
  raise "course_id is required" if course_id.nil?
17938
- raise "include is required" if include.nil?
17939
18247
  # set default values and merge with input
17940
18248
  options = underscored_merge_opts(opts,
17941
- :course_id => course_id,
17942
- :include => include
18249
+ :course_id => course_id
17943
18250
  )
17944
18251
 
17945
18252
  # resource path
@@ -17959,7 +18266,7 @@ module Pandarus
17959
18266
  end
17960
18267
 
17961
18268
  # List available tabs for a course or group
17962
- def list_available_tabs_for_course_or_group_groups(group_id,include,opts={})
18269
+ def list_available_tabs_for_course_or_group_groups(group_id,opts={})
17963
18270
  query_param_keys = [
17964
18271
  :include
17965
18272
  ]
@@ -17970,11 +18277,9 @@ module Pandarus
17970
18277
 
17971
18278
  # verify existence of params
17972
18279
  raise "group_id is required" if group_id.nil?
17973
- raise "include is required" if include.nil?
17974
18280
  # set default values and merge with input
17975
18281
  options = underscored_merge_opts(opts,
17976
- :group_id => group_id,
17977
- :include => include
18282
+ :group_id => group_id
17978
18283
  )
17979
18284
 
17980
18285
  # resource path
@@ -17994,7 +18299,7 @@ module Pandarus
17994
18299
  end
17995
18300
 
17996
18301
  # Update a tab for a course
17997
- def update_tab_for_course(course_id,tab_id,position,hidden,opts={})
18302
+ def update_tab_for_course(course_id,tab_id,opts={})
17998
18303
  query_param_keys = [
17999
18304
 
18000
18305
  ]
@@ -18008,14 +18313,10 @@ module Pandarus
18008
18313
  # verify existence of params
18009
18314
  raise "course_id is required" if course_id.nil?
18010
18315
  raise "tab_id is required" if tab_id.nil?
18011
- raise "position is required" if position.nil?
18012
- raise "hidden is required" if hidden.nil?
18013
18316
  # set default values and merge with input
18014
18317
  options = underscored_merge_opts(opts,
18015
18318
  :course_id => course_id,
18016
- :tab_id => tab_id,
18017
- :position => position,
18018
- :hidden => hidden
18319
+ :tab_id => tab_id
18019
18320
  )
18020
18321
 
18021
18322
  # resource path
@@ -18067,7 +18368,7 @@ module Pandarus
18067
18368
  end
18068
18369
 
18069
18370
  # Add an observee with credentials
18070
- def add_observee_with_credentials(user_id,observee__unique_id__,observee__password__,opts={})
18371
+ def add_observee_with_credentials(user_id,opts={})
18071
18372
  query_param_keys = [
18072
18373
 
18073
18374
  ]
@@ -18080,13 +18381,9 @@ module Pandarus
18080
18381
 
18081
18382
  # verify existence of params
18082
18383
  raise "user_id is required" if user_id.nil?
18083
- raise "observee__unique_id__ is required" if observee__unique_id__.nil?
18084
- raise "observee__password__ is required" if observee__password__.nil?
18085
18384
  # set default values and merge with input
18086
18385
  options = underscored_merge_opts(opts,
18087
- :user_id => user_id,
18088
- :observee__unique_id__ => observee__unique_id__,
18089
- :observee__password__ => observee__password__
18386
+ :user_id => user_id
18090
18387
  )
18091
18388
 
18092
18389
  # resource path
@@ -18500,7 +18797,7 @@ module Pandarus
18500
18797
  end
18501
18798
 
18502
18799
  # Create a user
18503
- def create_user(account_id,pseudonym__unique_id__,opts={})
18800
+ def create_user(account_id,opts={})
18504
18801
  query_param_keys = [
18505
18802
 
18506
18803
  ]
@@ -18525,11 +18822,9 @@ module Pandarus
18525
18822
 
18526
18823
  # verify existence of params
18527
18824
  raise "account_id is required" if account_id.nil?
18528
- raise "pseudonym__unique_id__ is required" if pseudonym__unique_id__.nil?
18529
18825
  # set default values and merge with input
18530
18826
  options = underscored_merge_opts(opts,
18531
- :account_id => account_id,
18532
- :pseudonym__unique_id__ => pseudonym__unique_id__
18827
+ :account_id => account_id
18533
18828
  )
18534
18829
 
18535
18830
  # resource path
@@ -18548,7 +18843,7 @@ module Pandarus
18548
18843
  end
18549
18844
 
18550
18845
  # Update user settings.
18551
- def update_user_settings(id,manual_mark_as_read,opts={})
18846
+ def update_user_settings(id,opts={})
18552
18847
  query_param_keys = [
18553
18848
  :manual_mark_as_read
18554
18849
  ]
@@ -18559,11 +18854,9 @@ module Pandarus
18559
18854
 
18560
18855
  # verify existence of params
18561
18856
  raise "id is required" if id.nil?
18562
- raise "manual_mark_as_read is required" if manual_mark_as_read.nil?
18563
18857
  # set default values and merge with input
18564
18858
  options = underscored_merge_opts(opts,
18565
- :id => id,
18566
- :manual_mark_as_read => manual_mark_as_read
18859
+ :id => id
18567
18860
  )
18568
18861
 
18569
18862
  # resource path
@@ -18827,7 +19120,7 @@ module Pandarus
18827
19120
  end
18828
19121
 
18829
19122
  # Store custom data
18830
- def store_custom_data(user_id,ns,data,opts={})
19123
+ def store_custom_data(user_id,opts={})
18831
19124
  query_param_keys = [
18832
19125
 
18833
19126
  ]
@@ -18840,13 +19133,9 @@ module Pandarus
18840
19133
 
18841
19134
  # verify existence of params
18842
19135
  raise "user_id is required" if user_id.nil?
18843
- raise "ns is required" if ns.nil?
18844
- raise "data is required" if data.nil?
18845
19136
  # set default values and merge with input
18846
19137
  options = underscored_merge_opts(opts,
18847
- :user_id => user_id,
18848
- :ns => ns,
18849
- :data => data
19138
+ :user_id => user_id
18850
19139
  )
18851
19140
 
18852
19141
  # resource path
@@ -18866,7 +19155,7 @@ module Pandarus
18866
19155
  end
18867
19156
 
18868
19157
  # Load custom data
18869
- def load_custom_data(user_id,ns,opts={})
19158
+ def load_custom_data(user_id,opts={})
18870
19159
  query_param_keys = [
18871
19160
  :ns
18872
19161
  ]
@@ -18877,11 +19166,9 @@ module Pandarus
18877
19166
 
18878
19167
  # verify existence of params
18879
19168
  raise "user_id is required" if user_id.nil?
18880
- raise "ns is required" if ns.nil?
18881
19169
  # set default values and merge with input
18882
19170
  options = underscored_merge_opts(opts,
18883
- :user_id => user_id,
18884
- :ns => ns
19171
+ :user_id => user_id
18885
19172
  )
18886
19173
 
18887
19174
  # resource path
@@ -18901,7 +19188,7 @@ module Pandarus
18901
19188
  end
18902
19189
 
18903
19190
  # Delete custom data
18904
- def delete_custom_data(user_id,ns,opts={})
19191
+ def delete_custom_data(user_id,opts={})
18905
19192
  query_param_keys = [
18906
19193
  :ns
18907
19194
  ]
@@ -18912,11 +19199,9 @@ module Pandarus
18912
19199
 
18913
19200
  # verify existence of params
18914
19201
  raise "user_id is required" if user_id.nil?
18915
- raise "ns is required" if ns.nil?
18916
19202
  # set default values and merge with input
18917
19203
  options = underscored_merge_opts(opts,
18918
- :user_id => user_id,
18919
- :ns => ns
19204
+ :user_id => user_id
18920
19205
  )
18921
19206
 
18922
19207
  # resource path