pandarus 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/lib/pandarus.rb +1 -0
  2. data/lib/pandarus/api_base.rb +114 -0
  3. data/lib/pandarus/model_base.rb +54 -0
  4. data/lib/pandarus/models.rb +43 -0
  5. data/lib/pandarus/models/account_authorization_config.rb +34 -0
  6. data/lib/pandarus/models/admin.rb +19 -0
  7. data/lib/pandarus/models/assignment.rb +57 -0
  8. data/lib/pandarus/models/assignment_group.rb +22 -0
  9. data/lib/pandarus/models/assignment_override.rb +27 -0
  10. data/lib/pandarus/models/collaborator.rb +19 -0
  11. data/lib/pandarus/models/collection.rb +22 -0
  12. data/lib/pandarus/models/collection_item.rb +33 -0
  13. data/lib/pandarus/models/comm_message.rb +26 -0
  14. data/lib/pandarus/models/communication_channel.rb +22 -0
  15. data/lib/pandarus/models/content_migration.rb +27 -0
  16. data/lib/pandarus/models/course.rb +46 -0
  17. data/lib/pandarus/models/day.rb +18 -0
  18. data/lib/pandarus/models/discovery_url.rb +17 -0
  19. data/lib/pandarus/models/external_feed.rb +22 -0
  20. data/lib/pandarus/models/favorite.rb +18 -0
  21. data/lib/pandarus/models/file.rb +32 -0
  22. data/lib/pandarus/models/folder.rb +35 -0
  23. data/lib/pandarus/models/grader.rb +19 -0
  24. data/lib/pandarus/models/group.rb +30 -0
  25. data/lib/pandarus/models/group_category.rb +24 -0
  26. data/lib/pandarus/models/group_membership.rb +21 -0
  27. data/lib/pandarus/models/migration_issue.rb +26 -0
  28. data/lib/pandarus/models/migrator.rb +20 -0
  29. data/lib/pandarus/models/module.rb +28 -0
  30. data/lib/pandarus/models/module_item.rb +30 -0
  31. data/lib/pandarus/models/module_item_sequence.rb +18 -0
  32. data/lib/pandarus/models/outcome.rb +27 -0
  33. data/lib/pandarus/models/outcome_group.rb +28 -0
  34. data/lib/pandarus/models/outcome_link.rb +21 -0
  35. data/lib/pandarus/models/page.rb +29 -0
  36. data/lib/pandarus/models/page_revision.rb +22 -0
  37. data/lib/pandarus/models/progress.rb +27 -0
  38. data/lib/pandarus/models/quiz.rb +42 -0
  39. data/lib/pandarus/models/quiz_report.rb +25 -0
  40. data/lib/pandarus/models/report.rb +22 -0
  41. data/lib/pandarus/models/role.rb +21 -0
  42. data/lib/pandarus/models/section.rb +23 -0
  43. data/lib/pandarus/models/submission_history.rb +18 -0
  44. data/lib/pandarus/models/submission_version.rb +39 -0
  45. data/lib/pandarus/models/user.rb +29 -0
  46. data/lib/pandarus/v1_api.rb +10021 -0
  47. data/lib/pandarus/version.rb +3 -0
  48. data/pandarus.gemspec +30 -0
  49. data/spec/api_base_spec.rb +25 -0
  50. data/spec/spec_helper.rb +1 -0
  51. metadata +211 -0
@@ -0,0 +1,26 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class CommMessage < ModelBase
6
+ attr_accessor :id, :created_at, :sent_at, :workflow_state, :from, :to, :reply_to, :subject, :body, :html_body
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :id => {:external => "id", :container => false, :type => nil},
12
+ :created_at => {:external => "created_at", :container => false, :type => "Date"},
13
+ :sent_at => {:external => "sent_at", :container => false, :type => "Date"},
14
+ :workflow_state => {:external => "workflow_state", :container => false, :type => nil},
15
+ :from => {:external => "from", :container => false, :type => nil},
16
+ :to => {:external => "to", :container => false, :type => nil},
17
+ :reply_to => {:external => "reply_to", :container => false, :type => nil},
18
+ :subject => {:external => "subject", :container => false, :type => nil},
19
+ :body => {:external => "body", :container => false, :type => nil},
20
+ :html_body => {:external => "html_body", :container => false, :type => nil}
21
+
22
+ }
23
+ end
24
+ end
25
+ end
26
+
@@ -0,0 +1,22 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class CommunicationChannel < ModelBase
6
+ attr_accessor :id, :address, :type, :position, :user_id, :workflow_state
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :id => {:external => "id", :container => false, :type => nil},
12
+ :address => {:external => "address", :container => false, :type => nil},
13
+ :type => {:external => "type", :container => false, :type => nil},
14
+ :position => {:external => "position", :container => false, :type => nil},
15
+ :user_id => {:external => "user_id", :container => false, :type => nil},
16
+ :workflow_state => {:external => "workflow_state", :container => false, :type => nil}
17
+
18
+ }
19
+ end
20
+ end
21
+ end
22
+
@@ -0,0 +1,27 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class ContentMigration < ModelBase
6
+ attr_accessor :id, :migration_type, :migration_type_title, :migration_issues_url, :attachment, :progress_url, :user_id, :workflow_state, :started_at, :finished_at, :pre_attachment
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :id => {:external => "id", :container => false, :type => nil},
12
+ :migration_type => {:external => "migration_type", :container => false, :type => nil},
13
+ :migration_type_title => {:external => "migration_type_title", :container => false, :type => nil},
14
+ :migration_issues_url => {:external => "migration_issues_url", :container => false, :type => nil},
15
+ :attachment => {:external => "attachment", :container => false, :type => nil},
16
+ :progress_url => {:external => "progress_url", :container => false, :type => nil},
17
+ :user_id => {:external => "user_id", :container => false, :type => nil},
18
+ :workflow_state => {:external => "workflow_state", :container => false, :type => nil},
19
+ :started_at => {:external => "started_at", :container => false, :type => nil},
20
+ :finished_at => {:external => "finished_at", :container => false, :type => nil},
21
+ :pre_attachment => {:external => "pre_attachment", :container => false, :type => nil}
22
+
23
+ }
24
+ end
25
+ end
26
+ end
27
+
@@ -0,0 +1,46 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class Course < ModelBase
6
+ attr_accessor :id, :sis_course_id, :name, :course_code, :workflow_state, :account_id, :root_account_id, :start_at, :end_at, :conclude_at, :enrollments, :calendar, :default_view, :syllabus_body, :needs_grading_count, :term, :apply_assignment_group_weights, :permissions, :is_public, :public_syllabus, :public_description, :storage_quota_mb, :hide_final_grades, :license, :allow_student_assignment_edits, :allow_wiki_comments, :allow_student_forum_attachments, :open_enrollment, :self_enrollment, :restrict_enrollments_to_course_dates
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :id => {:external => "id", :container => false, :type => nil},
12
+ :sis_course_id => {:external => "sis_course_id", :container => false, :type => nil},
13
+ :name => {:external => "name", :container => false, :type => nil},
14
+ :course_code => {:external => "course_code", :container => false, :type => nil},
15
+ :workflow_state => {:external => "workflow_state", :container => false, :type => nil},
16
+ :account_id => {:external => "account_id", :container => false, :type => nil},
17
+ :root_account_id => {:external => "root_account_id", :container => false, :type => nil},
18
+ :start_at => {:external => "start_at", :container => false, :type => nil},
19
+ :end_at => {:external => "end_at", :container => false, :type => nil},
20
+ :conclude_at => {:external => "conclude_at", :container => false, :type => nil},
21
+ :enrollments => {:external => "enrollments", :container => false, :type => nil},
22
+ :calendar => {:external => "calendar", :container => false, :type => nil},
23
+ :default_view => {:external => "default_view", :container => false, :type => nil},
24
+ :syllabus_body => {:external => "syllabus_body", :container => false, :type => nil},
25
+ :needs_grading_count => {:external => "needs_grading_count", :container => false, :type => nil},
26
+ :term => {:external => "term", :container => false, :type => nil},
27
+ :apply_assignment_group_weights => {:external => "apply_assignment_group_weights", :container => false, :type => nil},
28
+ :permissions => {:external => "permissions", :container => false, :type => nil},
29
+ :is_public => {:external => "is_public", :container => false, :type => nil},
30
+ :public_syllabus => {:external => "public_syllabus", :container => false, :type => nil},
31
+ :public_description => {:external => "public_description", :container => false, :type => nil},
32
+ :storage_quota_mb => {:external => "storage_quota_mb", :container => false, :type => nil},
33
+ :hide_final_grades => {:external => "hide_final_grades", :container => false, :type => nil},
34
+ :license => {:external => "license", :container => false, :type => nil},
35
+ :allow_student_assignment_edits => {:external => "allow_student_assignment_edits", :container => false, :type => nil},
36
+ :allow_wiki_comments => {:external => "allow_wiki_comments", :container => false, :type => nil},
37
+ :allow_student_forum_attachments => {:external => "allow_student_forum_attachments", :container => false, :type => nil},
38
+ :open_enrollment => {:external => "open_enrollment", :container => false, :type => nil},
39
+ :self_enrollment => {:external => "self_enrollment", :container => false, :type => nil},
40
+ :restrict_enrollments_to_course_dates => {:external => "restrict_enrollments_to_course_dates", :container => false, :type => nil}
41
+
42
+ }
43
+ end
44
+ end
45
+ end
46
+
@@ -0,0 +1,18 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class Day < ModelBase
6
+ attr_accessor :date, :graders
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :date => {:external => "date", :container => false, :type => "Date"},
12
+ :graders => {:external => "graders", :container => false, :type => nil}
13
+
14
+ }
15
+ end
16
+ end
17
+ end
18
+
@@ -0,0 +1,17 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class DiscoveryUrl < ModelBase
6
+ attr_accessor :discovery_url
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :discovery_url => {:external => "discovery_url", :container => false, :type => nil}
12
+
13
+ }
14
+ end
15
+ end
16
+ end
17
+
@@ -0,0 +1,22 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class ExternalFeed < ModelBase
6
+ attr_accessor :id, :display_name, :url, :header_match, :created_at, :verbosity
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :id => {:external => "id", :container => false, :type => nil},
12
+ :display_name => {:external => "display_name", :container => false, :type => nil},
13
+ :url => {:external => "url", :container => false, :type => nil},
14
+ :header_match => {:external => "header_match", :container => false, :type => nil},
15
+ :created_at => {:external => "created_at", :container => false, :type => nil},
16
+ :verbosity => {:external => "verbosity", :container => false, :type => nil}
17
+
18
+ }
19
+ end
20
+ end
21
+ end
22
+
@@ -0,0 +1,18 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class Favorite < ModelBase
6
+ attr_accessor :context_id, :context_type
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :context_id => {:external => "context_id", :container => false, :type => nil},
12
+ :context_type => {:external => "context_type", :container => false, :type => nil}
13
+
14
+ }
15
+ end
16
+ end
17
+ end
18
+
@@ -0,0 +1,32 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class File < ModelBase
6
+ attr_accessor :size, :content_type, :url, :id, :display_name, :created_at, :updated_at, :unlock_at, :locked, :hidden, :lock_at, :locked_for_user, :lock_info, :lock_explanation, :hidden_for_user, :thumbnail_url
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :size => {:external => "size", :container => false, :type => nil},
12
+ :content_type => {:external => "content-type", :container => false, :type => nil},
13
+ :url => {:external => "url", :container => false, :type => nil},
14
+ :id => {:external => "id", :container => false, :type => nil},
15
+ :display_name => {:external => "display_name", :container => false, :type => nil},
16
+ :created_at => {:external => "created_at", :container => false, :type => "Date"},
17
+ :updated_at => {:external => "updated_at", :container => false, :type => "Date"},
18
+ :unlock_at => {:external => "unlock_at", :container => false, :type => nil},
19
+ :locked => {:external => "locked", :container => false, :type => nil},
20
+ :hidden => {:external => "hidden", :container => false, :type => nil},
21
+ :lock_at => {:external => "lock_at", :container => false, :type => nil},
22
+ :locked_for_user => {:external => "locked_for_user", :container => false, :type => nil},
23
+ :lock_info => {:external => "lock_info", :container => false, :type => nil},
24
+ :lock_explanation => {:external => "lock_explanation", :container => false, :type => nil},
25
+ :hidden_for_user => {:external => "hidden_for_user", :container => false, :type => nil},
26
+ :thumbnail_url => {:external => "thumbnail_url", :container => false, :type => nil}
27
+
28
+ }
29
+ end
30
+ end
31
+ end
32
+
@@ -0,0 +1,35 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class Folder < ModelBase
6
+ attr_accessor :context_type, :context_id, :files_count, :position, :updated_at, :folders_url, :files_url, :full_name, :lock_at, :id, :folders_count, :name, :parent_folder_id, :created_at, :unlock_at, :hidden, :hidden_for_user, :locked, :locked_for_user
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :context_type => {:external => "context_type", :container => false, :type => nil},
12
+ :context_id => {:external => "context_id", :container => false, :type => nil},
13
+ :files_count => {:external => "files_count", :container => false, :type => nil},
14
+ :position => {:external => "position", :container => false, :type => nil},
15
+ :updated_at => {:external => "updated_at", :container => false, :type => "Date"},
16
+ :folders_url => {:external => "folders_url", :container => false, :type => nil},
17
+ :files_url => {:external => "files_url", :container => false, :type => nil},
18
+ :full_name => {:external => "full_name", :container => false, :type => nil},
19
+ :lock_at => {:external => "lock_at", :container => false, :type => nil},
20
+ :id => {:external => "id", :container => false, :type => nil},
21
+ :folders_count => {:external => "folders_count", :container => false, :type => nil},
22
+ :name => {:external => "name", :container => false, :type => nil},
23
+ :parent_folder_id => {:external => "parent_folder_id", :container => false, :type => nil},
24
+ :created_at => {:external => "created_at", :container => false, :type => "Date"},
25
+ :unlock_at => {:external => "unlock_at", :container => false, :type => nil},
26
+ :hidden => {:external => "hidden", :container => false, :type => nil},
27
+ :hidden_for_user => {:external => "hidden_for_user", :container => false, :type => nil},
28
+ :locked => {:external => "locked", :container => false, :type => nil},
29
+ :locked_for_user => {:external => "locked_for_user", :container => false, :type => nil}
30
+
31
+ }
32
+ end
33
+ end
34
+ end
35
+
@@ -0,0 +1,19 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class Grader < ModelBase
6
+ attr_accessor :id, :name, :assignments
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :id => {:external => "id", :container => false, :type => nil},
12
+ :name => {:external => "name", :container => false, :type => nil},
13
+ :assignments => {:external => "assignments", :container => false, :type => nil}
14
+
15
+ }
16
+ end
17
+ end
18
+ end
19
+
@@ -0,0 +1,30 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class Group < ModelBase
6
+ attr_accessor :id, :name, :description, :is_public, :followed_by_user, :join_level, :members_count, :avatar_url, :context_type, :course_id, :role, :group_category_id, :storage_quota_mb, :permissions
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :id => {:external => "id", :container => false, :type => nil},
12
+ :name => {:external => "name", :container => false, :type => nil},
13
+ :description => {:external => "description", :container => false, :type => nil},
14
+ :is_public => {:external => "is_public", :container => false, :type => nil},
15
+ :followed_by_user => {:external => "followed_by_user", :container => false, :type => nil},
16
+ :join_level => {:external => "join_level", :container => false, :type => nil},
17
+ :members_count => {:external => "members_count", :container => false, :type => nil},
18
+ :avatar_url => {:external => "avatar_url", :container => false, :type => nil},
19
+ :context_type => {:external => "context_type", :container => false, :type => nil},
20
+ :course_id => {:external => "course_id", :container => false, :type => nil},
21
+ :role => {:external => "role", :container => false, :type => nil},
22
+ :group_category_id => {:external => "group_category_id", :container => false, :type => nil},
23
+ :storage_quota_mb => {:external => "storage_quota_mb", :container => false, :type => nil},
24
+ :permissions => {:external => "permissions", :container => false, :type => nil}
25
+
26
+ }
27
+ end
28
+ end
29
+ end
30
+
@@ -0,0 +1,24 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class GroupCategory < ModelBase
6
+ attr_accessor :id, :name, :role, :self_signup, :context_type, :account_id, :group_limit, :progress
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :id => {:external => "id", :container => false, :type => nil},
12
+ :name => {:external => "name", :container => false, :type => nil},
13
+ :role => {:external => "role", :container => false, :type => nil},
14
+ :self_signup => {:external => "self_signup", :container => false, :type => nil},
15
+ :context_type => {:external => "context_type", :container => false, :type => nil},
16
+ :account_id => {:external => "account_id", :container => false, :type => nil},
17
+ :group_limit => {:external => "group_limit", :container => false, :type => nil},
18
+ :progress => {:external => "progress", :container => false, :type => nil}
19
+
20
+ }
21
+ end
22
+ end
23
+ end
24
+
@@ -0,0 +1,21 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class GroupMembership < ModelBase
6
+ attr_accessor :id, :group_id, :user_id, :workflow_state, :moderator
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :id => {:external => "id", :container => false, :type => nil},
12
+ :group_id => {:external => "group_id", :container => false, :type => nil},
13
+ :user_id => {:external => "user_id", :container => false, :type => nil},
14
+ :workflow_state => {:external => "workflow_state", :container => false, :type => nil},
15
+ :moderator => {:external => "moderator", :container => false, :type => nil}
16
+
17
+ }
18
+ end
19
+ end
20
+ end
21
+
@@ -0,0 +1,26 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class MigrationIssue < ModelBase
6
+ attr_accessor :id, :content_migration_url, :description, :workflow_state, :fix_issue_html_url, :issue_type, :error_report_html_url, :error_message, :created_at, :updated_at
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :id => {:external => "id", :container => false, :type => nil},
12
+ :content_migration_url => {:external => "content_migration_url", :container => false, :type => nil},
13
+ :description => {:external => "description", :container => false, :type => nil},
14
+ :workflow_state => {:external => "workflow_state", :container => false, :type => nil},
15
+ :fix_issue_html_url => {:external => "fix_issue_html_url", :container => false, :type => nil},
16
+ :issue_type => {:external => "issue_type", :container => false, :type => nil},
17
+ :error_report_html_url => {:external => "error_report_html_url", :container => false, :type => nil},
18
+ :error_message => {:external => "error_message", :container => false, :type => nil},
19
+ :created_at => {:external => "created_at", :container => false, :type => nil},
20
+ :updated_at => {:external => "updated_at", :container => false, :type => nil}
21
+
22
+ }
23
+ end
24
+ end
25
+ end
26
+
@@ -0,0 +1,20 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class Migrator < ModelBase
6
+ attr_accessor :type, :requires_file_upload, :name, :required_settings
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :type => {:external => "type", :container => false, :type => nil},
12
+ :requires_file_upload => {:external => "requires_file_upload", :container => false, :type => nil},
13
+ :name => {:external => "name", :container => false, :type => nil},
14
+ :required_settings => {:external => "required_settings", :container => false, :type => nil}
15
+
16
+ }
17
+ end
18
+ end
19
+ end
20
+
@@ -0,0 +1,28 @@
1
+ require "pandarus/model_base"
2
+
3
+ # This is an autogenerated file. See readme.md.
4
+ module Pandarus
5
+ class Module < ModelBase
6
+ attr_accessor :id, :workflow_state, :position, :name, :unlock_at, :require_sequential_progress, :prerequisite_module_ids, :items_count, :items_url, :items, :state, :completed_at
7
+
8
+
9
+ def self.attribute_map
10
+ {
11
+ :id => {:external => "id", :container => false, :type => nil},
12
+ :workflow_state => {:external => "workflow_state", :container => false, :type => nil},
13
+ :position => {:external => "position", :container => false, :type => nil},
14
+ :name => {:external => "name", :container => false, :type => nil},
15
+ :unlock_at => {:external => "unlock_at", :container => false, :type => nil},
16
+ :require_sequential_progress => {:external => "require_sequential_progress", :container => false, :type => nil},
17
+ :prerequisite_module_ids => {:external => "prerequisite_module_ids", :container => false, :type => nil},
18
+ :items_count => {:external => "items_count", :container => false, :type => nil},
19
+ :items_url => {:external => "items_url", :container => false, :type => nil},
20
+ :items => {:external => "items", :container => false, :type => nil},
21
+ :state => {:external => "state", :container => false, :type => nil},
22
+ :completed_at => {:external => "completed_at", :container => false, :type => nil}
23
+
24
+ }
25
+ end
26
+ end
27
+ end
28
+