commonlit-clever-ruby 2.1.3 → 2.1.6.beta1

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.
Files changed (236) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +27 -30
  3. data/Makefile +1 -1
  4. data/README.md +64 -65
  5. data/clever-ruby.gemspec +5 -5
  6. data/docs/Contact.md +1 -1
  7. data/docs/ContactsApi.md +231 -0
  8. data/docs/ContactsCreated.md +2 -2
  9. data/docs/ContactsDeleted.md +2 -2
  10. data/docs/ContactsUpdated.md +2 -2
  11. data/docs/Course.md +1 -1
  12. data/docs/CoursesApi.md +231 -0
  13. data/docs/CoursesCreated.md +2 -2
  14. data/docs/CoursesDeleted.md +2 -2
  15. data/docs/CoursesUpdated.md +2 -2
  16. data/docs/District.md +9 -9
  17. data/docs/DistrictAdmin.md +2 -2
  18. data/docs/DistrictAdminsApi.md +171 -0
  19. data/docs/DistrictadminsCreated.md +2 -2
  20. data/docs/DistrictadminsDeleted.md +2 -2
  21. data/docs/DistrictadminsUpdated.md +2 -2
  22. data/docs/DistrictsApi.md +113 -0
  23. data/docs/DistrictsCreated.md +2 -2
  24. data/docs/DistrictsDeleted.md +2 -2
  25. data/docs/DistrictsUpdated.md +2 -2
  26. data/docs/Event.md +2 -2
  27. data/docs/EventsApi.md +1 -1
  28. data/docs/Location.md +2 -2
  29. data/docs/Name.md +1 -1
  30. data/docs/Principal.md +1 -1
  31. data/docs/School.md +3 -3
  32. data/docs/SchoolAdmin.md +3 -3
  33. data/docs/SchoolAdminsApi.md +231 -0
  34. data/docs/SchoolEnrollment.md +1 -1
  35. data/docs/SchooladminsCreated.md +2 -2
  36. data/docs/SchooladminsDeleted.md +2 -2
  37. data/docs/SchooladminsUpdated.md +2 -2
  38. data/docs/SchoolsApi.md +351 -0
  39. data/docs/SchoolsCreated.md +2 -2
  40. data/docs/SchoolsDeleted.md +2 -2
  41. data/docs/SchoolsUpdated.md +2 -2
  42. data/docs/Section.md +2 -2
  43. data/docs/SectionsApi.md +499 -0
  44. data/docs/SectionsCreated.md +2 -2
  45. data/docs/SectionsDeleted.md +2 -2
  46. data/docs/SectionsUpdated.md +2 -2
  47. data/docs/Student.md +3 -3
  48. data/docs/StudentsApi.md +463 -0
  49. data/docs/StudentsCreated.md +2 -2
  50. data/docs/StudentsDeleted.md +2 -2
  51. data/docs/StudentsUpdated.md +2 -2
  52. data/docs/Teacher.md +2 -2
  53. data/docs/TeachersApi.md +403 -0
  54. data/docs/TeachersCreated.md +2 -2
  55. data/docs/TeachersDeleted.md +2 -2
  56. data/docs/TeachersUpdated.md +2 -2
  57. data/docs/Term.md +2 -2
  58. data/docs/TermsApi.md +231 -0
  59. data/docs/TermsCreated.md +2 -2
  60. data/docs/TermsDeleted.md +2 -2
  61. data/docs/TermsUpdated.md +2 -2
  62. data/full-v2.yml +2541 -0
  63. data/lib/clever-ruby/api/contacts_api.rb +241 -0
  64. data/lib/clever-ruby/api/courses_api.rb +241 -0
  65. data/lib/clever-ruby/api/district_admins_api.rb +182 -0
  66. data/lib/clever-ruby/api/districts_api.rb +123 -0
  67. data/lib/clever-ruby/api/events_api.rb +3 -3
  68. data/lib/clever-ruby/api/school_admins_api.rb +241 -0
  69. data/lib/clever-ruby/api/schools_api.rb +359 -0
  70. data/lib/clever-ruby/api/sections_api.rb +500 -0
  71. data/lib/clever-ruby/api/students_api.rb +468 -0
  72. data/lib/clever-ruby/api/teachers_api.rb +409 -0
  73. data/lib/clever-ruby/api/terms_api.rb +241 -0
  74. data/lib/clever-ruby/api_client.rb +1 -0
  75. data/lib/clever-ruby/api_error.rb +3 -3
  76. data/lib/clever-ruby/configuration.rb +4 -4
  77. data/lib/clever-ruby/models/admin_name.rb +3 -3
  78. data/lib/clever-ruby/models/bad_request.rb +3 -3
  79. data/lib/clever-ruby/models/contact.rb +13 -13
  80. data/lib/clever-ruby/models/contact_object.rb +3 -3
  81. data/lib/clever-ruby/models/contact_response.rb +3 -3
  82. data/lib/clever-ruby/models/contacts_response.rb +3 -3
  83. data/lib/clever-ruby/models/course.rb +16 -16
  84. data/lib/clever-ruby/models/course_object.rb +3 -3
  85. data/lib/clever-ruby/models/course_response.rb +3 -3
  86. data/lib/clever-ruby/models/courses_response.rb +3 -3
  87. data/lib/clever-ruby/models/credentials.rb +3 -3
  88. data/lib/clever-ruby/models/district.rb +71 -71
  89. data/lib/clever-ruby/models/district_admin.rb +25 -25
  90. data/lib/clever-ruby/models/district_admin_object.rb +3 -3
  91. data/lib/clever-ruby/models/district_admin_response.rb +3 -3
  92. data/lib/clever-ruby/models/district_admins_response.rb +3 -3
  93. data/lib/clever-ruby/models/district_object.rb +3 -3
  94. data/lib/clever-ruby/models/district_response.rb +3 -3
  95. data/lib/clever-ruby/models/districts_response.rb +3 -3
  96. data/lib/clever-ruby/models/event.rb +16 -16
  97. data/lib/clever-ruby/models/event_response.rb +3 -3
  98. data/lib/clever-ruby/models/events_response.rb +3 -3
  99. data/lib/clever-ruby/models/internal_error.rb +3 -3
  100. data/lib/clever-ruby/models/link.rb +3 -3
  101. data/lib/clever-ruby/models/location.rb +25 -25
  102. data/lib/clever-ruby/models/name.rb +16 -16
  103. data/lib/clever-ruby/models/not_found.rb +3 -3
  104. data/lib/clever-ruby/models/principal.rb +16 -16
  105. data/lib/clever-ruby/models/school.rb +34 -34
  106. data/lib/clever-ruby/models/school_admin.rb +34 -34
  107. data/lib/clever-ruby/models/school_admin_object.rb +3 -3
  108. data/lib/clever-ruby/models/school_admin_response.rb +3 -3
  109. data/lib/clever-ruby/models/school_admins_response.rb +3 -3
  110. data/lib/clever-ruby/models/school_enrollment.rb +16 -16
  111. data/lib/clever-ruby/models/school_object.rb +3 -3
  112. data/lib/clever-ruby/models/school_response.rb +3 -3
  113. data/lib/clever-ruby/models/schools_response.rb +3 -3
  114. data/lib/clever-ruby/models/section.rb +25 -25
  115. data/lib/clever-ruby/models/section_object.rb +3 -3
  116. data/lib/clever-ruby/models/section_response.rb +3 -3
  117. data/lib/clever-ruby/models/sections_response.rb +3 -3
  118. data/lib/clever-ruby/models/student.rb +49 -34
  119. data/lib/clever-ruby/models/student_object.rb +3 -3
  120. data/lib/clever-ruby/models/student_response.rb +3 -3
  121. data/lib/clever-ruby/models/students_response.rb +3 -3
  122. data/lib/clever-ruby/models/teacher.rb +25 -25
  123. data/lib/clever-ruby/models/teacher_object.rb +3 -3
  124. data/lib/clever-ruby/models/teacher_response.rb +3 -3
  125. data/lib/clever-ruby/models/teachers_response.rb +3 -3
  126. data/lib/clever-ruby/models/term.rb +25 -25
  127. data/lib/clever-ruby/models/term_object.rb +3 -3
  128. data/lib/clever-ruby/models/term_response.rb +3 -3
  129. data/lib/clever-ruby/models/terms_response.rb +3 -3
  130. data/lib/clever-ruby/version.rb +4 -4
  131. data/lib/clever-ruby.rb +13 -4
  132. data/override/README-extension.md +4 -5
  133. data/override/api_client.rb +1 -0
  134. data/override/override.sh +4 -5
  135. data/spec/api/contacts_api_spec.rb +84 -0
  136. data/spec/api/courses_api_spec.rb +84 -0
  137. data/spec/api/district_admins_api_spec.rb +70 -0
  138. data/spec/api/districts_api_spec.rb +56 -0
  139. data/spec/api/events_api_spec.rb +3 -4
  140. data/spec/api/school_admins_api_spec.rb +84 -0
  141. data/spec/api/schools_api_spec.rb +112 -0
  142. data/spec/api/sections_api_spec.rb +142 -0
  143. data/spec/api/students_api_spec.rb +137 -0
  144. data/spec/api/teachers_api_spec.rb +123 -0
  145. data/spec/api/terms_api_spec.rb +84 -0
  146. data/spec/api_client_spec.rb +3 -4
  147. data/spec/spec_helper.rb +25 -18
  148. metadata +48 -179
  149. data/docs/DataApi.md +0 -2852
  150. data/git_push.sh +0 -55
  151. data/lib/clever-ruby/api/data_api.rb +0 -2798
  152. data/spec/api/data_api_spec.rb +0 -671
  153. data/spec/configuration_spec.rb +0 -42
  154. data/spec/events.json +0 -227
  155. data/spec/models/bad_request_spec.rb +0 -41
  156. data/spec/models/contact_object_spec.rb +0 -41
  157. data/spec/models/contact_response_spec.rb +0 -41
  158. data/spec/models/contact_spec.rb +0 -107
  159. data/spec/models/contacts_created_spec.rb +0 -59
  160. data/spec/models/contacts_deleted_spec.rb +0 -59
  161. data/spec/models/contacts_response_spec.rb +0 -41
  162. data/spec/models/contacts_updated_spec.rb +0 -65
  163. data/spec/models/course_object_spec.rb +0 -41
  164. data/spec/models/course_response_spec.rb +0 -41
  165. data/spec/models/course_spec.rb +0 -59
  166. data/spec/models/courses_created_spec.rb +0 -59
  167. data/spec/models/courses_deleted_spec.rb +0 -59
  168. data/spec/models/courses_response_spec.rb +0 -41
  169. data/spec/models/courses_updated_spec.rb +0 -65
  170. data/spec/models/credentials_spec.rb +0 -41
  171. data/spec/models/district_admin_object_spec.rb +0 -41
  172. data/spec/models/district_admin_response_spec.rb +0 -41
  173. data/spec/models/district_admin_spec.rb +0 -65
  174. data/spec/models/district_admins_response_spec.rb +0 -41
  175. data/spec/models/district_object_spec.rb +0 -41
  176. data/spec/models/district_response_spec.rb +0 -41
  177. data/spec/models/district_spec.rb +0 -123
  178. data/spec/models/districtadmins_created_spec.rb +0 -59
  179. data/spec/models/districtadmins_deleted_spec.rb +0 -59
  180. data/spec/models/districtadmins_updated_spec.rb +0 -65
  181. data/spec/models/districts_created_spec.rb +0 -59
  182. data/spec/models/districts_deleted_spec.rb +0 -59
  183. data/spec/models/districts_response_spec.rb +0 -41
  184. data/spec/models/districts_updated_spec.rb +0 -65
  185. data/spec/models/event_response_spec.rb +0 -41
  186. data/spec/models/event_spec.rb +0 -53
  187. data/spec/models/events_response_spec.rb +0 -41
  188. data/spec/models/internal_error_spec.rb +0 -41
  189. data/spec/models/location_spec.rb +0 -71
  190. data/spec/models/name_spec.rb +0 -53
  191. data/spec/models/not_found_spec.rb +0 -41
  192. data/spec/models/principal_spec.rb +0 -47
  193. data/spec/models/school_admin_object_spec.rb +0 -41
  194. data/spec/models/school_admin_response_spec.rb +0 -41
  195. data/spec/models/school_admin_spec.rb +0 -95
  196. data/spec/models/school_admins_response_spec.rb +0 -41
  197. data/spec/models/school_enrollment_spec.rb +0 -53
  198. data/spec/models/school_object_spec.rb +0 -41
  199. data/spec/models/school_response_spec.rb +0 -41
  200. data/spec/models/school_spec.rb +0 -139
  201. data/spec/models/schooladmins_created_spec.rb +0 -59
  202. data/spec/models/schooladmins_deleted_spec.rb +0 -59
  203. data/spec/models/schooladmins_updated_spec.rb +0 -65
  204. data/spec/models/schools_created_spec.rb +0 -59
  205. data/spec/models/schools_deleted_spec.rb +0 -59
  206. data/spec/models/schools_response_spec.rb +0 -41
  207. data/spec/models/schools_updated_spec.rb +0 -65
  208. data/spec/models/section_object_spec.rb +0 -41
  209. data/spec/models/section_response_spec.rb +0 -41
  210. data/spec/models/section_spec.rb +0 -145
  211. data/spec/models/sections_created_spec.rb +0 -59
  212. data/spec/models/sections_deleted_spec.rb +0 -59
  213. data/spec/models/sections_response_spec.rb +0 -41
  214. data/spec/models/sections_updated_spec.rb +0 -65
  215. data/spec/models/student_object_spec.rb +0 -41
  216. data/spec/models/student_response_spec.rb +0 -41
  217. data/spec/models/student_spec.rb +0 -215
  218. data/spec/models/students_created_spec.rb +0 -59
  219. data/spec/models/students_deleted_spec.rb +0 -59
  220. data/spec/models/students_response_spec.rb +0 -41
  221. data/spec/models/students_updated_spec.rb +0 -65
  222. data/spec/models/teacher_object_spec.rb +0 -41
  223. data/spec/models/teacher_response_spec.rb +0 -41
  224. data/spec/models/teacher_spec.rb +0 -119
  225. data/spec/models/teachers_created_spec.rb +0 -59
  226. data/spec/models/teachers_deleted_spec.rb +0 -59
  227. data/spec/models/teachers_response_spec.rb +0 -41
  228. data/spec/models/teachers_updated_spec.rb +0 -65
  229. data/spec/models/term_object_spec.rb +0 -41
  230. data/spec/models/term_response_spec.rb +0 -41
  231. data/spec/models/term_spec.rb +0 -65
  232. data/spec/models/terms_created_spec.rb +0 -59
  233. data/spec/models/terms_deleted_spec.rb +0 -59
  234. data/spec/models/terms_response_spec.rb +0 -41
  235. data/spec/models/terms_updated_spec.rb +0 -65
  236. data/tags +0 -1681
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
4
+ #Serves the Clever Data API
5
5
 
6
6
  OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12
 
@@ -14,18 +14,16 @@ require 'date'
14
14
 
15
15
  module Clever
16
16
  class Section
17
+ attr_accessor :id
18
+
17
19
  attr_accessor :course
18
20
 
19
21
  attr_accessor :created
20
22
 
21
23
  attr_accessor :district
22
24
 
23
- attr_accessor :ext
24
-
25
25
  attr_accessor :grade
26
26
 
27
- attr_accessor :id
28
-
29
27
  attr_accessor :last_modified
30
28
 
31
29
  attr_accessor :name
@@ -48,6 +46,8 @@ module Clever
48
46
 
49
47
  attr_accessor :term_id
50
48
 
49
+ attr_accessor :ext
50
+
51
51
  class EnumAttributeValidator
52
52
  attr_reader :datatype
53
53
  attr_reader :allowable_values
@@ -73,12 +73,11 @@ module Clever
73
73
  # Attribute mapping from ruby-style variable name to JSON key.
74
74
  def self.attribute_map
75
75
  {
76
+ :'id' => :'id',
76
77
  :'course' => :'course',
77
78
  :'created' => :'created',
78
79
  :'district' => :'district',
79
- :'ext' => :'ext',
80
80
  :'grade' => :'grade',
81
- :'id' => :'id',
82
81
  :'last_modified' => :'last_modified',
83
82
  :'name' => :'name',
84
83
  :'period' => :'period',
@@ -89,19 +88,19 @@ module Clever
89
88
  :'subject' => :'subject',
90
89
  :'teacher' => :'teacher',
91
90
  :'teachers' => :'teachers',
92
- :'term_id' => :'term_id'
91
+ :'term_id' => :'term_id',
92
+ :'ext' => :'ext'
93
93
  }
94
94
  end
95
95
 
96
96
  # Attribute type mapping.
97
97
  def self.swagger_types
98
98
  {
99
+ :'id' => :'String',
99
100
  :'course' => :'String',
100
101
  :'created' => :'String',
101
102
  :'district' => :'String',
102
- :'ext' => :'Object',
103
103
  :'grade' => :'String',
104
- :'id' => :'String',
105
104
  :'last_modified' => :'String',
106
105
  :'name' => :'String',
107
106
  :'period' => :'String',
@@ -112,7 +111,8 @@ module Clever
112
111
  :'subject' => :'String',
113
112
  :'teacher' => :'String',
114
113
  :'teachers' => :'Array<String>',
115
- :'term_id' => :'String'
114
+ :'term_id' => :'String',
115
+ :'ext' => :'Object'
116
116
  }
117
117
  end
118
118
 
@@ -124,6 +124,10 @@ module Clever
124
124
  # convert string to symbol for hash key
125
125
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
126
126
 
127
+ if attributes.has_key?(:'id')
128
+ self.id = attributes[:'id']
129
+ end
130
+
127
131
  if attributes.has_key?(:'course')
128
132
  self.course = attributes[:'course']
129
133
  end
@@ -136,18 +140,10 @@ module Clever
136
140
  self.district = attributes[:'district']
137
141
  end
138
142
 
139
- if attributes.has_key?(:'ext')
140
- self.ext = attributes[:'ext']
141
- end
142
-
143
143
  if attributes.has_key?(:'grade')
144
144
  self.grade = attributes[:'grade']
145
145
  end
146
146
 
147
- if attributes.has_key?(:'id')
148
- self.id = attributes[:'id']
149
- end
150
-
151
147
  if attributes.has_key?(:'last_modified')
152
148
  self.last_modified = attributes[:'last_modified']
153
149
  end
@@ -195,6 +191,10 @@ module Clever
195
191
  if attributes.has_key?(:'term_id')
196
192
  self.term_id = attributes[:'term_id']
197
193
  end
194
+
195
+ if attributes.has_key?(:'ext')
196
+ self.ext = attributes[:'ext']
197
+ end
198
198
  end
199
199
 
200
200
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -239,12 +239,11 @@ module Clever
239
239
  def ==(o)
240
240
  return true if self.equal?(o)
241
241
  self.class == o.class &&
242
+ id == o.id &&
242
243
  course == o.course &&
243
244
  created == o.created &&
244
245
  district == o.district &&
245
- ext == o.ext &&
246
246
  grade == o.grade &&
247
- id == o.id &&
248
247
  last_modified == o.last_modified &&
249
248
  name == o.name &&
250
249
  period == o.period &&
@@ -255,7 +254,8 @@ module Clever
255
254
  subject == o.subject &&
256
255
  teacher == o.teacher &&
257
256
  teachers == o.teachers &&
258
- term_id == o.term_id
257
+ term_id == o.term_id &&
258
+ ext == o.ext
259
259
  end
260
260
 
261
261
  # @see the `==` method
@@ -267,7 +267,7 @@ module Clever
267
267
  # Calculates hash code according to all attributes.
268
268
  # @return [Fixnum] Hash code
269
269
  def hash
270
- [course, created, district, ext, grade, id, last_modified, name, period, school, section_number, sis_id, students, subject, teacher, teachers, term_id].hash
270
+ [id, course, created, district, grade, last_modified, name, period, school, section_number, sis_id, students, subject, teacher, teachers, term_id, ext].hash
271
271
  end
272
272
 
273
273
  # Builds the object from hash
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
4
+ #Serves the Clever Data API
5
5
 
6
6
  OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
4
+ #Serves the Clever Data API
5
5
 
6
6
  OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
4
+ #Serves the Clever Data API
5
5
 
6
6
  OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
4
+ #Serves the Clever Data API
5
5
 
6
6
  OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12
 
@@ -14,6 +14,8 @@ require 'date'
14
14
 
15
15
  module Clever
16
16
  class Student
17
+ attr_accessor :id
18
+
17
19
  attr_accessor :created
18
20
 
19
21
  attr_accessor :credentials
@@ -28,20 +30,16 @@ module Clever
28
30
 
29
31
  attr_accessor :enrollments
30
32
 
31
- attr_accessor :ext
32
-
33
33
  attr_accessor :gender
34
34
 
35
- attr_accessor :grade
36
-
37
35
  attr_accessor :graduation_year
38
36
 
37
+ attr_accessor :grade
38
+
39
39
  attr_accessor :hispanic_ethnicity
40
40
 
41
41
  attr_accessor :home_language
42
42
 
43
- attr_accessor :id
44
-
45
43
  attr_accessor :iep_status
46
44
 
47
45
  attr_accessor :last_modified
@@ -66,6 +64,8 @@ module Clever
66
64
 
67
65
  attr_accessor :weighted_gpa
68
66
 
67
+ attr_accessor :ext
68
+
69
69
  class EnumAttributeValidator
70
70
  attr_reader :datatype
71
71
  attr_reader :allowable_values
@@ -91,6 +91,7 @@ module Clever
91
91
  # Attribute mapping from ruby-style variable name to JSON key.
92
92
  def self.attribute_map
93
93
  {
94
+ :'id' => :'id',
94
95
  :'created' => :'created',
95
96
  :'credentials' => :'credentials',
96
97
  :'district' => :'district',
@@ -98,13 +99,11 @@ module Clever
98
99
  :'ell_status' => :'ell_status',
99
100
  :'email' => :'email',
100
101
  :'enrollments' => :'enrollments',
101
- :'ext' => :'ext',
102
102
  :'gender' => :'gender',
103
- :'grade' => :'grade',
104
103
  :'graduation_year' => :'graduation_year',
104
+ :'grade' => :'grade',
105
105
  :'hispanic_ethnicity' => :'hispanic_ethnicity',
106
106
  :'home_language' => :'home_language',
107
- :'id' => :'id',
108
107
  :'iep_status' => :'iep_status',
109
108
  :'last_modified' => :'last_modified',
110
109
  :'location' => :'location',
@@ -116,13 +115,15 @@ module Clever
116
115
  :'state_id' => :'state_id',
117
116
  :'student_number' => :'student_number',
118
117
  :'unweighted_gpa' => :'unweighted_gpa',
119
- :'weighted_gpa' => :'weighted_gpa'
118
+ :'weighted_gpa' => :'weighted_gpa',
119
+ :'ext' => :'ext'
120
120
  }
121
121
  end
122
122
 
123
123
  # Attribute type mapping.
124
124
  def self.swagger_types
125
125
  {
126
+ :'id' => :'String',
126
127
  :'created' => :'String',
127
128
  :'credentials' => :'Credentials',
128
129
  :'district' => :'String',
@@ -130,13 +131,11 @@ module Clever
130
131
  :'ell_status' => :'String',
131
132
  :'email' => :'String',
132
133
  :'enrollments' => :'Array<SchoolEnrollment>',
133
- :'ext' => :'Object',
134
134
  :'gender' => :'String',
135
- :'grade' => :'String',
136
135
  :'graduation_year' => :'String',
136
+ :'grade' => :'String',
137
137
  :'hispanic_ethnicity' => :'String',
138
138
  :'home_language' => :'String',
139
- :'id' => :'String',
140
139
  :'iep_status' => :'String',
141
140
  :'last_modified' => :'String',
142
141
  :'location' => :'Location',
@@ -148,7 +147,8 @@ module Clever
148
147
  :'state_id' => :'String',
149
148
  :'student_number' => :'String',
150
149
  :'unweighted_gpa' => :'String',
151
- :'weighted_gpa' => :'String'
150
+ :'weighted_gpa' => :'String',
151
+ :'ext' => :'Object'
152
152
  }
153
153
  end
154
154
 
@@ -160,6 +160,10 @@ module Clever
160
160
  # convert string to symbol for hash key
161
161
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
162
162
 
163
+ if attributes.has_key?(:'id')
164
+ self.id = attributes[:'id']
165
+ end
166
+
163
167
  if attributes.has_key?(:'created')
164
168
  self.created = attributes[:'created']
165
169
  end
@@ -190,22 +194,18 @@ module Clever
190
194
  end
191
195
  end
192
196
 
193
- if attributes.has_key?(:'ext')
194
- self.ext = attributes[:'ext']
195
- end
196
-
197
197
  if attributes.has_key?(:'gender')
198
198
  self.gender = attributes[:'gender']
199
199
  end
200
200
 
201
- if attributes.has_key?(:'grade')
202
- self.grade = attributes[:'grade']
203
- end
204
-
205
201
  if attributes.has_key?(:'graduation_year')
206
202
  self.graduation_year = attributes[:'graduation_year']
207
203
  end
208
204
 
205
+ if attributes.has_key?(:'grade')
206
+ self.grade = attributes[:'grade']
207
+ end
208
+
209
209
  if attributes.has_key?(:'hispanic_ethnicity')
210
210
  self.hispanic_ethnicity = attributes[:'hispanic_ethnicity']
211
211
  end
@@ -214,10 +214,6 @@ module Clever
214
214
  self.home_language = attributes[:'home_language']
215
215
  end
216
216
 
217
- if attributes.has_key?(:'id')
218
- self.id = attributes[:'id']
219
- end
220
-
221
217
  if attributes.has_key?(:'iep_status')
222
218
  self.iep_status = attributes[:'iep_status']
223
219
  end
@@ -267,18 +263,27 @@ module Clever
267
263
  if attributes.has_key?(:'weighted_gpa')
268
264
  self.weighted_gpa = attributes[:'weighted_gpa']
269
265
  end
266
+
267
+ if attributes.has_key?(:'ext')
268
+ self.ext = attributes[:'ext']
269
+ end
270
270
  end
271
271
 
272
272
  # Show invalid properties with the reasons. Usually used together with valid?
273
273
  # @return Array for valid properties with the reasons
274
274
  def list_invalid_properties
275
275
  invalid_properties = Array.new
276
+ if !@dob.nil? && @dob !~ Regexp.new(/(?:[0-9]{1,2})\/([0-9]{1,2})\/([0-9]{4})/)
277
+ invalid_properties.push('invalid value for "dob", must conform to the pattern /(?:[0-9]{1,2})\/([0-9]{1,2})\/([0-9]{4})/.')
278
+ end
279
+
276
280
  invalid_properties
277
281
  end
278
282
 
279
283
  # Check to see if the all the properties in the model are valid
280
284
  # @return true if the model is valid
281
285
  def valid?
286
+ return false if !@dob.nil? && @dob !~ Regexp.new(/(?:[0-9]{1,2})\/([0-9]{1,2})\/([0-9]{4})/)
282
287
  ell_status_validator = EnumAttributeValidator.new('String', ['Y', 'N', ''])
283
288
  return false unless ell_status_validator.valid?(@ell_status)
284
289
  gender_validator = EnumAttributeValidator.new('String', ['M', 'F', 'X', ''])
@@ -294,6 +299,16 @@ module Clever
294
299
  true
295
300
  end
296
301
 
302
+ # Custom attribute writer method with validation
303
+ # @param [Object] dob Value to be assigned
304
+ def dob=(dob)
305
+ if !dob.nil? && dob !~ Regexp.new(/(?:[0-9]{1,2})\/([0-9]{1,2})\/([0-9]{4})/)
306
+ fail ArgumentError, 'invalid value for "dob", must conform to the pattern /(?:[0-9]{1,2})\/([0-9]{1,2})\/([0-9]{4})/.'
307
+ end
308
+
309
+ @dob = dob
310
+ end
311
+
297
312
  # Custom attribute writer method checking allowed values (enum).
298
313
  # @param [Object] ell_status Object to be assigned
299
314
  def ell_status=(ell_status)
@@ -359,6 +374,7 @@ module Clever
359
374
  def ==(o)
360
375
  return true if self.equal?(o)
361
376
  self.class == o.class &&
377
+ id == o.id &&
362
378
  created == o.created &&
363
379
  credentials == o.credentials &&
364
380
  district == o.district &&
@@ -366,13 +382,11 @@ module Clever
366
382
  ell_status == o.ell_status &&
367
383
  email == o.email &&
368
384
  enrollments == o.enrollments &&
369
- ext == o.ext &&
370
385
  gender == o.gender &&
371
- grade == o.grade &&
372
386
  graduation_year == o.graduation_year &&
387
+ grade == o.grade &&
373
388
  hispanic_ethnicity == o.hispanic_ethnicity &&
374
389
  home_language == o.home_language &&
375
- id == o.id &&
376
390
  iep_status == o.iep_status &&
377
391
  last_modified == o.last_modified &&
378
392
  location == o.location &&
@@ -384,7 +398,8 @@ module Clever
384
398
  state_id == o.state_id &&
385
399
  student_number == o.student_number &&
386
400
  unweighted_gpa == o.unweighted_gpa &&
387
- weighted_gpa == o.weighted_gpa
401
+ weighted_gpa == o.weighted_gpa &&
402
+ ext == o.ext
388
403
  end
389
404
 
390
405
  # @see the `==` method
@@ -396,7 +411,7 @@ module Clever
396
411
  # Calculates hash code according to all attributes.
397
412
  # @return [Fixnum] Hash code
398
413
  def hash
399
- [created, credentials, district, dob, ell_status, email, enrollments, ext, gender, grade, graduation_year, hispanic_ethnicity, home_language, id, iep_status, last_modified, location, name, race, school, schools, sis_id, state_id, student_number, unweighted_gpa, weighted_gpa].hash
414
+ [id, created, credentials, district, dob, ell_status, email, enrollments, gender, graduation_year, grade, hispanic_ethnicity, home_language, iep_status, last_modified, location, name, race, school, schools, sis_id, state_id, student_number, unweighted_gpa, weighted_gpa, ext].hash
400
415
  end
401
416
 
402
417
  # Builds the object from hash
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
4
+ #Serves the Clever Data API
5
5
 
6
6
  OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
4
+ #Serves the Clever Data API
5
5
 
6
6
  OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
4
+ #Serves the Clever Data API
5
5
 
6
6
  OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
4
+ #Serves the Clever Data API
5
5
 
6
6
  OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12
 
@@ -14,6 +14,8 @@ require 'date'
14
14
 
15
15
  module Clever
16
16
  class Teacher
17
+ attr_accessor :id
18
+
17
19
  attr_accessor :created
18
20
 
19
21
  attr_accessor :credentials
@@ -22,10 +24,6 @@ module Clever
22
24
 
23
25
  attr_accessor :email
24
26
 
25
- attr_accessor :ext
26
-
27
- attr_accessor :id
28
-
29
27
  attr_accessor :last_modified
30
28
 
31
29
  attr_accessor :name
@@ -42,15 +40,16 @@ module Clever
42
40
 
43
41
  attr_accessor :title
44
42
 
43
+ attr_accessor :ext
44
+
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
47
47
  {
48
+ :'id' => :'id',
48
49
  :'created' => :'created',
49
50
  :'credentials' => :'credentials',
50
51
  :'district' => :'district',
51
52
  :'email' => :'email',
52
- :'ext' => :'ext',
53
- :'id' => :'id',
54
53
  :'last_modified' => :'last_modified',
55
54
  :'name' => :'name',
56
55
  :'school' => :'school',
@@ -58,19 +57,19 @@ module Clever
58
57
  :'sis_id' => :'sis_id',
59
58
  :'state_id' => :'state_id',
60
59
  :'teacher_number' => :'teacher_number',
61
- :'title' => :'title'
60
+ :'title' => :'title',
61
+ :'ext' => :'ext'
62
62
  }
63
63
  end
64
64
 
65
65
  # Attribute type mapping.
66
66
  def self.swagger_types
67
67
  {
68
+ :'id' => :'String',
68
69
  :'created' => :'String',
69
70
  :'credentials' => :'Credentials',
70
71
  :'district' => :'String',
71
72
  :'email' => :'String',
72
- :'ext' => :'Object',
73
- :'id' => :'String',
74
73
  :'last_modified' => :'String',
75
74
  :'name' => :'Name',
76
75
  :'school' => :'String',
@@ -78,7 +77,8 @@ module Clever
78
77
  :'sis_id' => :'String',
79
78
  :'state_id' => :'String',
80
79
  :'teacher_number' => :'String',
81
- :'title' => :'String'
80
+ :'title' => :'String',
81
+ :'ext' => :'Object'
82
82
  }
83
83
  end
84
84
 
@@ -90,6 +90,10 @@ module Clever
90
90
  # convert string to symbol for hash key
91
91
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
92
92
 
93
+ if attributes.has_key?(:'id')
94
+ self.id = attributes[:'id']
95
+ end
96
+
93
97
  if attributes.has_key?(:'created')
94
98
  self.created = attributes[:'created']
95
99
  end
@@ -106,14 +110,6 @@ module Clever
106
110
  self.email = attributes[:'email']
107
111
  end
108
112
 
109
- if attributes.has_key?(:'ext')
110
- self.ext = attributes[:'ext']
111
- end
112
-
113
- if attributes.has_key?(:'id')
114
- self.id = attributes[:'id']
115
- end
116
-
117
113
  if attributes.has_key?(:'last_modified')
118
114
  self.last_modified = attributes[:'last_modified']
119
115
  end
@@ -147,6 +143,10 @@ module Clever
147
143
  if attributes.has_key?(:'title')
148
144
  self.title = attributes[:'title']
149
145
  end
146
+
147
+ if attributes.has_key?(:'ext')
148
+ self.ext = attributes[:'ext']
149
+ end
150
150
  end
151
151
 
152
152
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -167,12 +167,11 @@ module Clever
167
167
  def ==(o)
168
168
  return true if self.equal?(o)
169
169
  self.class == o.class &&
170
+ id == o.id &&
170
171
  created == o.created &&
171
172
  credentials == o.credentials &&
172
173
  district == o.district &&
173
174
  email == o.email &&
174
- ext == o.ext &&
175
- id == o.id &&
176
175
  last_modified == o.last_modified &&
177
176
  name == o.name &&
178
177
  school == o.school &&
@@ -180,7 +179,8 @@ module Clever
180
179
  sis_id == o.sis_id &&
181
180
  state_id == o.state_id &&
182
181
  teacher_number == o.teacher_number &&
183
- title == o.title
182
+ title == o.title &&
183
+ ext == o.ext
184
184
  end
185
185
 
186
186
  # @see the `==` method
@@ -192,7 +192,7 @@ module Clever
192
192
  # Calculates hash code according to all attributes.
193
193
  # @return [Fixnum] Hash code
194
194
  def hash
195
- [created, credentials, district, email, ext, id, last_modified, name, school, schools, sis_id, state_id, teacher_number, title].hash
195
+ [id, created, credentials, district, email, last_modified, name, school, schools, sis_id, state_id, teacher_number, title, ext].hash
196
196
  end
197
197
 
198
198
  # Builds the object from hash
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
4
+ #Serves the Clever Data API
5
5
 
6
6
  OpenAPI spec version: 2.1.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12