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
 
@@ -130,7 +130,7 @@ module Clever
130
130
  def initialize
131
131
  @scheme = 'https'
132
132
  @host = 'api.clever.com'
133
- @base_path = '/v2.1'
133
+ @base_path = ''
134
134
  @api_key = {}
135
135
  @api_key_prefix = {}
136
136
  @timeout = 0
@@ -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,12 +14,12 @@ require 'date'
14
14
 
15
15
  module Clever
16
16
  class Contact
17
+ attr_accessor :id
18
+
17
19
  attr_accessor :district
18
20
 
19
21
  attr_accessor :email
20
22
 
21
- attr_accessor :id
22
-
23
23
  attr_accessor :name
24
24
 
25
25
  attr_accessor :phone
@@ -59,9 +59,9 @@ module Clever
59
59
  # Attribute mapping from ruby-style variable name to JSON key.
60
60
  def self.attribute_map
61
61
  {
62
+ :'id' => :'id',
62
63
  :'district' => :'district',
63
64
  :'email' => :'email',
64
- :'id' => :'id',
65
65
  :'name' => :'name',
66
66
  :'phone' => :'phone',
67
67
  :'phone_type' => :'phone_type',
@@ -75,9 +75,9 @@ module Clever
75
75
  # Attribute type mapping.
76
76
  def self.swagger_types
77
77
  {
78
+ :'id' => :'String',
78
79
  :'district' => :'String',
79
80
  :'email' => :'String',
80
- :'id' => :'String',
81
81
  :'name' => :'String',
82
82
  :'phone' => :'String',
83
83
  :'phone_type' => :'String',
@@ -96,6 +96,10 @@ module Clever
96
96
  # convert string to symbol for hash key
97
97
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
98
98
 
99
+ if attributes.has_key?(:'id')
100
+ self.id = attributes[:'id']
101
+ end
102
+
99
103
  if attributes.has_key?(:'district')
100
104
  self.district = attributes[:'district']
101
105
  end
@@ -104,10 +108,6 @@ module Clever
104
108
  self.email = attributes[:'email']
105
109
  end
106
110
 
107
- if attributes.has_key?(:'id')
108
- self.id = attributes[:'id']
109
- end
110
-
111
111
  if attributes.has_key?(:'name')
112
112
  self.name = attributes[:'name']
113
113
  end
@@ -193,9 +193,9 @@ module Clever
193
193
  def ==(o)
194
194
  return true if self.equal?(o)
195
195
  self.class == o.class &&
196
+ id == o.id &&
196
197
  district == o.district &&
197
198
  email == o.email &&
198
- id == o.id &&
199
199
  name == o.name &&
200
200
  phone == o.phone &&
201
201
  phone_type == o.phone_type &&
@@ -214,7 +214,7 @@ module Clever
214
214
  # Calculates hash code according to all attributes.
215
215
  # @return [Fixnum] Hash code
216
216
  def hash
217
- [district, email, id, name, phone, phone_type, relationship, sis_id, students, type].hash
217
+ [id, district, email, name, phone, phone_type, relationship, sis_id, students, type].hash
218
218
  end
219
219
 
220
220
  # 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,31 +14,31 @@ require 'date'
14
14
 
15
15
  module Clever
16
16
  class Course
17
- attr_accessor :district
18
-
19
17
  attr_accessor :id
20
18
 
21
19
  attr_accessor :name
22
20
 
23
21
  attr_accessor :number
24
22
 
23
+ attr_accessor :district
24
+
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
- :'district' => :'district',
29
28
  :'id' => :'id',
30
29
  :'name' => :'name',
31
- :'number' => :'number'
30
+ :'number' => :'number',
31
+ :'district' => :'district'
32
32
  }
33
33
  end
34
34
 
35
35
  # Attribute type mapping.
36
36
  def self.swagger_types
37
37
  {
38
- :'district' => :'String',
39
38
  :'id' => :'String',
40
39
  :'name' => :'String',
41
- :'number' => :'String'
40
+ :'number' => :'String',
41
+ :'district' => :'String'
42
42
  }
43
43
  end
44
44
 
@@ -50,10 +50,6 @@ module Clever
50
50
  # convert string to symbol for hash key
51
51
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
52
52
 
53
- if attributes.has_key?(:'district')
54
- self.district = attributes[:'district']
55
- end
56
-
57
53
  if attributes.has_key?(:'id')
58
54
  self.id = attributes[:'id']
59
55
  end
@@ -65,6 +61,10 @@ module Clever
65
61
  if attributes.has_key?(:'number')
66
62
  self.number = attributes[:'number']
67
63
  end
64
+
65
+ if attributes.has_key?(:'district')
66
+ self.district = attributes[:'district']
67
+ end
68
68
  end
69
69
 
70
70
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -85,10 +85,10 @@ module Clever
85
85
  def ==(o)
86
86
  return true if self.equal?(o)
87
87
  self.class == o.class &&
88
- district == o.district &&
89
88
  id == o.id &&
90
89
  name == o.name &&
91
- number == o.number
90
+ number == o.number &&
91
+ district == o.district
92
92
  end
93
93
 
94
94
  # @see the `==` method
@@ -100,7 +100,7 @@ module Clever
100
100
  # Calculates hash code according to all attributes.
101
101
  # @return [Fixnum] Hash code
102
102
  def hash
103
- [district, id, name, number].hash
103
+ [id, name, number, district].hash
104
104
  end
105
105
 
106
106
  # 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
 
@@ -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,33 +14,33 @@ require 'date'
14
14
 
15
15
  module Clever
16
16
  class District
17
- attr_accessor :district_contact
17
+ attr_accessor :id
18
18
 
19
- attr_accessor :error
19
+ attr_accessor :name
20
20
 
21
- attr_accessor :id
21
+ attr_accessor :mdr_number
22
22
 
23
- attr_accessor :last_sync
23
+ attr_accessor :nces_id
24
24
 
25
- attr_accessor :launch_date
25
+ attr_accessor :sis_type
26
26
 
27
- attr_accessor :login_methods
27
+ attr_accessor :state
28
28
 
29
- attr_accessor :mdr_number
29
+ attr_accessor :last_sync
30
30
 
31
- attr_accessor :name
31
+ attr_accessor :error
32
32
 
33
- attr_accessor :nces_id
33
+ attr_accessor :pause_start
34
34
 
35
35
  attr_accessor :pause_end
36
36
 
37
- attr_accessor :pause_start
37
+ attr_accessor :launch_date
38
38
 
39
39
  attr_accessor :portal_url
40
40
 
41
- attr_accessor :sis_type
41
+ attr_accessor :login_methods
42
42
 
43
- attr_accessor :state
43
+ attr_accessor :district_contact
44
44
 
45
45
  class EnumAttributeValidator
46
46
  attr_reader :datatype
@@ -67,40 +67,40 @@ module Clever
67
67
  # Attribute mapping from ruby-style variable name to JSON key.
68
68
  def self.attribute_map
69
69
  {
70
- :'district_contact' => :'district_contact',
71
- :'error' => :'error',
72
70
  :'id' => :'id',
73
- :'last_sync' => :'last_sync',
74
- :'launch_date' => :'launch_date',
75
- :'login_methods' => :'login_methods',
76
- :'mdr_number' => :'mdr_number',
77
71
  :'name' => :'name',
72
+ :'mdr_number' => :'mdr_number',
78
73
  :'nces_id' => :'nces_id',
79
- :'pause_end' => :'pause_end',
74
+ :'sis_type' => :'sis_type',
75
+ :'state' => :'state',
76
+ :'last_sync' => :'last_sync',
77
+ :'error' => :'error',
80
78
  :'pause_start' => :'pause_start',
79
+ :'pause_end' => :'pause_end',
80
+ :'launch_date' => :'launch_date',
81
81
  :'portal_url' => :'portal_url',
82
- :'sis_type' => :'sis_type',
83
- :'state' => :'state'
82
+ :'login_methods' => :'login_methods',
83
+ :'district_contact' => :'district_contact'
84
84
  }
85
85
  end
86
86
 
87
87
  # Attribute type mapping.
88
88
  def self.swagger_types
89
89
  {
90
- :'district_contact' => :'DistrictAdmin',
91
- :'error' => :'String',
92
90
  :'id' => :'String',
93
- :'last_sync' => :'String',
94
- :'launch_date' => :'String',
95
- :'login_methods' => :'Array<String>',
96
- :'mdr_number' => :'String',
97
91
  :'name' => :'String',
92
+ :'mdr_number' => :'String',
98
93
  :'nces_id' => :'String',
99
- :'pause_end' => :'String',
94
+ :'sis_type' => :'String',
95
+ :'state' => :'String',
96
+ :'last_sync' => :'String',
97
+ :'error' => :'String',
100
98
  :'pause_start' => :'String',
99
+ :'pause_end' => :'String',
100
+ :'launch_date' => :'String',
101
101
  :'portal_url' => :'String',
102
- :'sis_type' => :'String',
103
- :'state' => :'String'
102
+ :'login_methods' => :'Array<String>',
103
+ :'district_contact' => :'DistrictAdmin'
104
104
  }
105
105
  end
106
106
 
@@ -112,62 +112,62 @@ module Clever
112
112
  # convert string to symbol for hash key
113
113
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
114
114
 
115
- if attributes.has_key?(:'district_contact')
116
- self.district_contact = attributes[:'district_contact']
115
+ if attributes.has_key?(:'id')
116
+ self.id = attributes[:'id']
117
117
  end
118
118
 
119
- if attributes.has_key?(:'error')
120
- self.error = attributes[:'error']
119
+ if attributes.has_key?(:'name')
120
+ self.name = attributes[:'name']
121
121
  end
122
122
 
123
- if attributes.has_key?(:'id')
124
- self.id = attributes[:'id']
123
+ if attributes.has_key?(:'mdr_number')
124
+ self.mdr_number = attributes[:'mdr_number']
125
125
  end
126
126
 
127
- if attributes.has_key?(:'last_sync')
128
- self.last_sync = attributes[:'last_sync']
127
+ if attributes.has_key?(:'nces_id')
128
+ self.nces_id = attributes[:'nces_id']
129
129
  end
130
130
 
131
- if attributes.has_key?(:'launch_date')
132
- self.launch_date = attributes[:'launch_date']
131
+ if attributes.has_key?(:'sis_type')
132
+ self.sis_type = attributes[:'sis_type']
133
133
  end
134
134
 
135
- if attributes.has_key?(:'login_methods')
136
- if (value = attributes[:'login_methods']).is_a?(Array)
137
- self.login_methods = value
138
- end
135
+ if attributes.has_key?(:'state')
136
+ self.state = attributes[:'state']
139
137
  end
140
138
 
141
- if attributes.has_key?(:'mdr_number')
142
- self.mdr_number = attributes[:'mdr_number']
139
+ if attributes.has_key?(:'last_sync')
140
+ self.last_sync = attributes[:'last_sync']
143
141
  end
144
142
 
145
- if attributes.has_key?(:'name')
146
- self.name = attributes[:'name']
143
+ if attributes.has_key?(:'error')
144
+ self.error = attributes[:'error']
147
145
  end
148
146
 
149
- if attributes.has_key?(:'nces_id')
150
- self.nces_id = attributes[:'nces_id']
147
+ if attributes.has_key?(:'pause_start')
148
+ self.pause_start = attributes[:'pause_start']
151
149
  end
152
150
 
153
151
  if attributes.has_key?(:'pause_end')
154
152
  self.pause_end = attributes[:'pause_end']
155
153
  end
156
154
 
157
- if attributes.has_key?(:'pause_start')
158
- self.pause_start = attributes[:'pause_start']
155
+ if attributes.has_key?(:'launch_date')
156
+ self.launch_date = attributes[:'launch_date']
159
157
  end
160
158
 
161
159
  if attributes.has_key?(:'portal_url')
162
160
  self.portal_url = attributes[:'portal_url']
163
161
  end
164
162
 
165
- if attributes.has_key?(:'sis_type')
166
- self.sis_type = attributes[:'sis_type']
163
+ if attributes.has_key?(:'login_methods')
164
+ if (value = attributes[:'login_methods']).is_a?(Array)
165
+ self.login_methods = value
166
+ end
167
167
  end
168
168
 
169
- if attributes.has_key?(:'state')
170
- self.state = attributes[:'state']
169
+ if attributes.has_key?(:'district_contact')
170
+ self.district_contact = attributes[:'district_contact']
171
171
  end
172
172
  end
173
173
 
@@ -181,7 +181,7 @@ module Clever
181
181
  # Check to see if the all the properties in the model are valid
182
182
  # @return true if the model is valid
183
183
  def valid?
184
- state_validator = EnumAttributeValidator.new('String', ['running', 'pending', 'error', 'paused', ''])
184
+ state_validator = EnumAttributeValidator.new('String', ['running', 'pending', 'error', 'paused', '', 'success'])
185
185
  return false unless state_validator.valid?(@state)
186
186
  true
187
187
  end
@@ -189,7 +189,7 @@ module Clever
189
189
  # Custom attribute writer method checking allowed values (enum).
190
190
  # @param [Object] state Object to be assigned
191
191
  def state=(state)
192
- validator = EnumAttributeValidator.new('String', ['running', 'pending', 'error', 'paused', ''])
192
+ validator = EnumAttributeValidator.new('String', ['running', 'pending', 'error', 'paused', '', 'success'])
193
193
  unless validator.valid?(state)
194
194
  fail ArgumentError, 'invalid value for "state", must be one of #{validator.allowable_values}.'
195
195
  end
@@ -201,20 +201,20 @@ module Clever
201
201
  def ==(o)
202
202
  return true if self.equal?(o)
203
203
  self.class == o.class &&
204
- district_contact == o.district_contact &&
205
- error == o.error &&
206
204
  id == o.id &&
207
- last_sync == o.last_sync &&
208
- launch_date == o.launch_date &&
209
- login_methods == o.login_methods &&
210
- mdr_number == o.mdr_number &&
211
205
  name == o.name &&
206
+ mdr_number == o.mdr_number &&
212
207
  nces_id == o.nces_id &&
213
- pause_end == o.pause_end &&
208
+ sis_type == o.sis_type &&
209
+ state == o.state &&
210
+ last_sync == o.last_sync &&
211
+ error == o.error &&
214
212
  pause_start == o.pause_start &&
213
+ pause_end == o.pause_end &&
214
+ launch_date == o.launch_date &&
215
215
  portal_url == o.portal_url &&
216
- sis_type == o.sis_type &&
217
- state == o.state
216
+ login_methods == o.login_methods &&
217
+ district_contact == o.district_contact
218
218
  end
219
219
 
220
220
  # @see the `==` method
@@ -226,7 +226,7 @@ module Clever
226
226
  # Calculates hash code according to all attributes.
227
227
  # @return [Fixnum] Hash code
228
228
  def hash
229
- [district_contact, error, id, last_sync, launch_date, login_methods, mdr_number, name, nces_id, pause_end, pause_start, portal_url, sis_type, state].hash
229
+ [id, name, mdr_number, nces_id, sis_type, state, last_sync, error, pause_start, pause_end, launch_date, portal_url, login_methods, district_contact].hash
230
230
  end
231
231
 
232
232
  # Builds the object from hash