clever-ruby 1.2.5 → 2.0.0

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 (171) hide show
  1. checksums.yaml +4 -4
  2. data/1.8, +0 -0
  3. data/= +0 -0
  4. data/CHANGELOG.md +3 -3
  5. data/Gemfile +0 -1
  6. data/Gemfile.lock +8 -9
  7. data/README.md +89 -70
  8. data/clever-ruby.gemspec +3 -4
  9. data/doc_coverage.txt +2 -0
  10. data/docs/{StudentContact.md → Contact.md} +2 -2
  11. data/docs/{GradeLevelsResponse.md → ContactObject.md} +2 -2
  12. data/docs/{StudentContactObject.md → ContactResponse.md} +2 -2
  13. data/docs/{StudentcontactsCreated.md → ContactsCreated.md} +2 -2
  14. data/docs/{StudentcontactsDeleted.md → ContactsDeleted.md} +2 -2
  15. data/docs/ContactsResponse.md +8 -0
  16. data/docs/{StudentcontactsUpdated.md → ContactsUpdated.md} +2 -2
  17. data/docs/Course.md +10 -0
  18. data/docs/{StudentContactResponse.md → CourseObject.md} +2 -2
  19. data/docs/CourseResponse.md +8 -0
  20. data/docs/CoursesCreated.md +11 -0
  21. data/docs/CoursesDeleted.md +11 -0
  22. data/docs/{StudentContactsForStudentResponse.md → CoursesResponse.md} +2 -2
  23. data/docs/CoursesUpdated.md +11 -0
  24. data/docs/DataApi.md +862 -182
  25. data/docs/District.md +8 -0
  26. data/docs/{DistrictStatusResponse.md → DistrictAdminObject.md} +2 -2
  27. data/docs/DistrictAdminsResponse.md +1 -1
  28. data/docs/DistrictadminsCreated.md +11 -0
  29. data/docs/DistrictadminsDeleted.md +11 -0
  30. data/docs/DistrictadminsUpdated.md +11 -0
  31. data/docs/EventsApi.md +6 -302
  32. data/docs/Section.md +2 -4
  33. data/docs/Term.md +1 -0
  34. data/docs/TermObject.md +8 -0
  35. data/docs/TermResponse.md +8 -0
  36. data/docs/TermsCreated.md +11 -0
  37. data/docs/TermsDeleted.md +11 -0
  38. data/docs/TermsResponse.md +8 -0
  39. data/docs/TermsUpdated.md +11 -0
  40. data/lib/clever-ruby.rb +26 -14
  41. data/lib/clever-ruby/api/data_api.rb +828 -132
  42. data/lib/clever-ruby/api/events_api.rb +8 -312
  43. data/lib/clever-ruby/api_client.rb +40 -27
  44. data/lib/clever-ruby/api_error.rb +2 -2
  45. data/lib/clever-ruby/configuration.rb +3 -3
  46. data/lib/clever-ruby/models/bad_request.rb +2 -2
  47. data/lib/clever-ruby/models/{student_contact.rb → contact.rb} +69 -10
  48. data/lib/clever-ruby/models/{student_contact_object.rb → contact_object.rb} +4 -4
  49. data/lib/clever-ruby/models/{student_contact_response.rb → contact_response.rb} +4 -4
  50. data/lib/clever-ruby/models/contacts_created.rb +221 -0
  51. data/lib/clever-ruby/models/contacts_deleted.rb +221 -0
  52. data/lib/clever-ruby/models/{student_contacts_response.rb → contacts_response.rb} +4 -4
  53. data/lib/clever-ruby/models/contacts_updated.rb +221 -0
  54. data/lib/clever-ruby/models/course.rb +206 -0
  55. data/lib/clever-ruby/models/course_object.rb +188 -0
  56. data/lib/clever-ruby/models/{district_status_response.rb → course_response.rb} +4 -4
  57. data/lib/clever-ruby/models/courses_created.rb +221 -0
  58. data/lib/clever-ruby/models/courses_deleted.rb +221 -0
  59. data/lib/clever-ruby/models/{district_status_responses.rb → courses_response.rb} +4 -4
  60. data/lib/clever-ruby/models/courses_updated.rb +221 -0
  61. data/lib/clever-ruby/models/credentials.rb +2 -2
  62. data/lib/clever-ruby/models/district.rb +111 -6
  63. data/lib/clever-ruby/models/district_admin.rb +2 -2
  64. data/lib/clever-ruby/models/district_admin_object.rb +188 -0
  65. data/lib/clever-ruby/models/district_admin_response.rb +2 -2
  66. data/lib/clever-ruby/models/district_admins_response.rb +3 -3
  67. data/lib/clever-ruby/models/district_object.rb +2 -2
  68. data/lib/clever-ruby/models/district_response.rb +2 -2
  69. data/lib/clever-ruby/models/districtadmins_created.rb +221 -0
  70. data/lib/clever-ruby/models/districtadmins_deleted.rb +221 -0
  71. data/lib/clever-ruby/models/districtadmins_updated.rb +221 -0
  72. data/lib/clever-ruby/models/districts_created.rb +22 -7
  73. data/lib/clever-ruby/models/districts_deleted.rb +22 -8
  74. data/lib/clever-ruby/models/districts_response.rb +2 -2
  75. data/lib/clever-ruby/models/districts_updated.rb +21 -7
  76. data/lib/clever-ruby/models/event.rb +2 -2
  77. data/lib/clever-ruby/models/event_response.rb +2 -2
  78. data/lib/clever-ruby/models/events_response.rb +2 -2
  79. data/lib/clever-ruby/models/internal_error.rb +2 -2
  80. data/lib/clever-ruby/models/location.rb +2 -2
  81. data/lib/clever-ruby/models/name.rb +2 -2
  82. data/lib/clever-ruby/models/not_found.rb +2 -2
  83. data/lib/clever-ruby/models/principal.rb +2 -2
  84. data/lib/clever-ruby/models/school.rb +2 -2
  85. data/lib/clever-ruby/models/school_admin.rb +2 -2
  86. data/lib/clever-ruby/models/school_admin_object.rb +2 -2
  87. data/lib/clever-ruby/models/school_admin_response.rb +2 -2
  88. data/lib/clever-ruby/models/school_admins_response.rb +2 -2
  89. data/lib/clever-ruby/models/school_object.rb +2 -2
  90. data/lib/clever-ruby/models/school_response.rb +2 -2
  91. data/lib/clever-ruby/models/schooladmins_created.rb +21 -7
  92. data/lib/clever-ruby/models/schooladmins_deleted.rb +21 -7
  93. data/lib/clever-ruby/models/schooladmins_updated.rb +21 -7
  94. data/lib/clever-ruby/models/schools_created.rb +21 -7
  95. data/lib/clever-ruby/models/schools_deleted.rb +21 -7
  96. data/lib/clever-ruby/models/schools_response.rb +2 -2
  97. data/lib/clever-ruby/models/schools_updated.rb +21 -7
  98. data/lib/clever-ruby/models/section.rb +15 -33
  99. data/lib/clever-ruby/models/section_object.rb +2 -2
  100. data/lib/clever-ruby/models/section_response.rb +2 -2
  101. data/lib/clever-ruby/models/sections_created.rb +21 -7
  102. data/lib/clever-ruby/models/sections_deleted.rb +21 -7
  103. data/lib/clever-ruby/models/sections_response.rb +2 -2
  104. data/lib/clever-ruby/models/sections_updated.rb +21 -7
  105. data/lib/clever-ruby/models/student.rb +4 -4
  106. data/lib/clever-ruby/models/student_object.rb +2 -2
  107. data/lib/clever-ruby/models/student_response.rb +2 -2
  108. data/lib/clever-ruby/models/students_created.rb +20 -7
  109. data/lib/clever-ruby/models/students_deleted.rb +22 -7
  110. data/lib/clever-ruby/models/students_response.rb +2 -2
  111. data/lib/clever-ruby/models/students_updated.rb +21 -7
  112. data/lib/clever-ruby/models/teacher.rb +2 -2
  113. data/lib/clever-ruby/models/teacher_object.rb +2 -2
  114. data/lib/clever-ruby/models/teacher_response.rb +2 -2
  115. data/lib/clever-ruby/models/teachers_created.rb +21 -7
  116. data/lib/clever-ruby/models/teachers_deleted.rb +21 -7
  117. data/lib/clever-ruby/models/teachers_response.rb +2 -2
  118. data/lib/clever-ruby/models/teachers_updated.rb +21 -7
  119. data/lib/clever-ruby/models/term.rb +12 -3
  120. data/lib/clever-ruby/models/term_object.rb +188 -0
  121. data/lib/clever-ruby/models/term_response.rb +188 -0
  122. data/lib/clever-ruby/models/{studentcontacts_updated.rb → terms_created.rb} +23 -9
  123. data/{override/models/studentcontacts_created.rb → lib/clever-ruby/models/terms_deleted.rb} +23 -9
  124. data/lib/clever-ruby/models/{grade_levels_response.rb → terms_response.rb} +4 -4
  125. data/lib/clever-ruby/models/{studentcontacts_created.rb → terms_updated.rb} +23 -9
  126. data/lib/clever-ruby/version.rb +3 -3
  127. data/override/README-extension.md +5 -5
  128. data/override/api_client.rb +40 -27
  129. data/override/models/contacts_created.rb +221 -0
  130. data/override/models/contacts_deleted.rb +221 -0
  131. data/override/models/contacts_updated.rb +221 -0
  132. data/override/models/courses_created.rb +221 -0
  133. data/override/models/courses_deleted.rb +221 -0
  134. data/override/models/courses_updated.rb +221 -0
  135. data/override/models/districtadmins_created.rb +221 -0
  136. data/override/models/districtadmins_deleted.rb +221 -0
  137. data/override/models/districtadmins_updated.rb +221 -0
  138. data/override/models/districts_created.rb +22 -7
  139. data/override/models/districts_deleted.rb +22 -8
  140. data/override/models/districts_updated.rb +21 -7
  141. data/override/models/schooladmins_created.rb +21 -7
  142. data/override/models/schooladmins_deleted.rb +21 -7
  143. data/override/models/schooladmins_updated.rb +21 -7
  144. data/override/models/schools_created.rb +21 -7
  145. data/override/models/schools_deleted.rb +21 -7
  146. data/override/models/schools_updated.rb +21 -7
  147. data/override/models/sections_created.rb +21 -7
  148. data/override/models/sections_deleted.rb +21 -7
  149. data/override/models/sections_updated.rb +21 -7
  150. data/override/models/students_created.rb +20 -7
  151. data/override/models/students_deleted.rb +22 -7
  152. data/override/models/students_updated.rb +21 -7
  153. data/override/models/teachers_created.rb +21 -7
  154. data/override/models/teachers_deleted.rb +21 -7
  155. data/override/models/teachers_updated.rb +21 -7
  156. data/{lib/clever-ruby/models/studentcontacts_deleted.rb → override/models/terms_created.rb} +23 -9
  157. data/override/models/terms_deleted.rb +221 -0
  158. data/override/models/terms_updated.rb +221 -0
  159. data/sample/sample.rb +2 -2
  160. data/spec/events_api_spec.rb +1 -1
  161. data/test.rb +1 -1
  162. metadata +111 -85
  163. data/clever-ruby-2.0.0.gem +0 -0
  164. data/docs/DistrictStatus.md +0 -15
  165. data/docs/DistrictStatusResponses.md +0 -8
  166. data/docs/StudentContactsResponse.md +0 -8
  167. data/lib/clever-ruby/models/district_status.rb +0 -284
  168. data/lib/clever-ruby/models/student_contacts_for_student_response.rb +0 -190
  169. data/override/models/studentcontacts_deleted.rb +0 -207
  170. data/override/models/studentcontacts_updated.rb +0 -207
  171. data/spec/data_api_spec.rb +0 -32
@@ -0,0 +1,11 @@
1
+ # Clever::TermsCreated
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **created** | **String** | | [optional]
7
+ **id** | **String** | | [optional]
8
+ **type** | **String** | |
9
+ **data** | [**TermObject**](TermObject.md) | | [optional]
10
+
11
+
@@ -0,0 +1,11 @@
1
+ # Clever::TermsDeleted
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **created** | **String** | | [optional]
7
+ **id** | **String** | | [optional]
8
+ **type** | **String** | |
9
+ **data** | [**TermObject**](TermObject.md) | | [optional]
10
+
11
+
@@ -0,0 +1,8 @@
1
+ # Clever::TermsResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Array<TermResponse>**](TermResponse.md) | | [optional]
7
+
8
+
@@ -0,0 +1,11 @@
1
+ # Clever::TermsUpdated
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **created** | **String** | | [optional]
7
+ **id** | **String** | | [optional]
8
+ **type** | **String** | |
9
+ **data** | [**TermObject**](TermObject.md) | | [optional]
10
+
11
+
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The Clever API
5
5
 
6
- OpenAPI spec version: 1.2.0
6
+ OpenAPI spec version: 2.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.2.3
9
+ Swagger Codegen version: 2.3.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -18,21 +18,26 @@ require 'clever-ruby/configuration'
18
18
 
19
19
  # Models
20
20
  require 'clever-ruby/models/bad_request'
21
+ require 'clever-ruby/models/contact'
22
+ require 'clever-ruby/models/contact_object'
23
+ require 'clever-ruby/models/contact_response'
24
+ require 'clever-ruby/models/contacts_response'
25
+ require 'clever-ruby/models/course'
26
+ require 'clever-ruby/models/course_object'
27
+ require 'clever-ruby/models/course_response'
28
+ require 'clever-ruby/models/courses_response'
21
29
  require 'clever-ruby/models/credentials'
22
30
  require 'clever-ruby/models/district'
23
31
  require 'clever-ruby/models/district_admin'
32
+ require 'clever-ruby/models/district_admin_object'
24
33
  require 'clever-ruby/models/district_admin_response'
25
34
  require 'clever-ruby/models/district_admins_response'
26
35
  require 'clever-ruby/models/district_object'
27
36
  require 'clever-ruby/models/district_response'
28
- require 'clever-ruby/models/district_status'
29
- require 'clever-ruby/models/district_status_response'
30
- require 'clever-ruby/models/district_status_responses'
31
37
  require 'clever-ruby/models/districts_response'
32
38
  require 'clever-ruby/models/event'
33
39
  require 'clever-ruby/models/event_response'
34
40
  require 'clever-ruby/models/events_response'
35
- require 'clever-ruby/models/grade_levels_response'
36
41
  require 'clever-ruby/models/internal_error'
37
42
  require 'clever-ruby/models/location'
38
43
  require 'clever-ruby/models/name'
@@ -51,11 +56,6 @@ require 'clever-ruby/models/section_object'
51
56
  require 'clever-ruby/models/section_response'
52
57
  require 'clever-ruby/models/sections_response'
53
58
  require 'clever-ruby/models/student'
54
- require 'clever-ruby/models/student_contact'
55
- require 'clever-ruby/models/student_contact_object'
56
- require 'clever-ruby/models/student_contact_response'
57
- require 'clever-ruby/models/student_contacts_for_student_response'
58
- require 'clever-ruby/models/student_contacts_response'
59
59
  require 'clever-ruby/models/student_object'
60
60
  require 'clever-ruby/models/student_response'
61
61
  require 'clever-ruby/models/students_response'
@@ -64,6 +64,18 @@ require 'clever-ruby/models/teacher_object'
64
64
  require 'clever-ruby/models/teacher_response'
65
65
  require 'clever-ruby/models/teachers_response'
66
66
  require 'clever-ruby/models/term'
67
+ require 'clever-ruby/models/term_object'
68
+ require 'clever-ruby/models/term_response'
69
+ require 'clever-ruby/models/terms_response'
70
+ require 'clever-ruby/models/contacts_created'
71
+ require 'clever-ruby/models/contacts_deleted'
72
+ require 'clever-ruby/models/contacts_updated'
73
+ require 'clever-ruby/models/courses_created'
74
+ require 'clever-ruby/models/courses_deleted'
75
+ require 'clever-ruby/models/courses_updated'
76
+ require 'clever-ruby/models/districtadmins_created'
77
+ require 'clever-ruby/models/districtadmins_deleted'
78
+ require 'clever-ruby/models/districtadmins_updated'
67
79
  require 'clever-ruby/models/districts_created'
68
80
  require 'clever-ruby/models/districts_deleted'
69
81
  require 'clever-ruby/models/districts_updated'
@@ -76,15 +88,15 @@ require 'clever-ruby/models/schools_updated'
76
88
  require 'clever-ruby/models/sections_created'
77
89
  require 'clever-ruby/models/sections_deleted'
78
90
  require 'clever-ruby/models/sections_updated'
79
- require 'clever-ruby/models/studentcontacts_created'
80
- require 'clever-ruby/models/studentcontacts_deleted'
81
- require 'clever-ruby/models/studentcontacts_updated'
82
91
  require 'clever-ruby/models/students_created'
83
92
  require 'clever-ruby/models/students_deleted'
84
93
  require 'clever-ruby/models/students_updated'
85
94
  require 'clever-ruby/models/teachers_created'
86
95
  require 'clever-ruby/models/teachers_deleted'
87
96
  require 'clever-ruby/models/teachers_updated'
97
+ require 'clever-ruby/models/terms_created'
98
+ require 'clever-ruby/models/terms_deleted'
99
+ require 'clever-ruby/models/terms_updated'
88
100
 
89
101
  # APIs
90
102
  require 'clever-ruby/api/data_api'
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The Clever API
5
5
 
6
- OpenAPI spec version: 1.2.0
6
+ OpenAPI spec version: 2.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.2.3
9
+ Swagger Codegen version: 2.3.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -24,7 +24,7 @@ module Clever
24
24
  # Returns a specific student contact
25
25
  # @param id
26
26
  # @param [Hash] opts the optional parameters
27
- # @return [StudentContactResponse]
27
+ # @return [ContactResponse]
28
28
  def get_contact(id, opts = {})
29
29
  data, _status_code, _headers = get_contact_with_http_info(id, opts)
30
30
  return data
@@ -34,7 +34,7 @@ module Clever
34
34
  # Returns a specific student contact
35
35
  # @param id
36
36
  # @param [Hash] opts the optional parameters
37
- # @return [Array<(StudentContactResponse, Fixnum, Hash)>] StudentContactResponse data, response status code and response headers
37
+ # @return [Array<(ContactResponse, Fixnum, Hash)>] ContactResponse data, response status code and response headers
38
38
  def get_contact_with_http_info(id, opts = {})
39
39
  if @api_client.config.debugging
40
40
  @api_client.config.logger.debug "Calling API: DataApi.get_contact ..."
@@ -66,7 +66,7 @@ module Clever
66
66
  :form_params => form_params,
67
67
  :body => post_body,
68
68
  :auth_names => auth_names,
69
- :return_type => 'StudentContactResponse')
69
+ :return_type => 'ContactResponse')
70
70
  if @api_client.config.debugging
71
71
  @api_client.config.logger.debug "API called: DataApi#get_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
72
72
  end
@@ -79,7 +79,7 @@ module Clever
79
79
  # @option opts [Integer] :limit
80
80
  # @option opts [String] :starting_after
81
81
  # @option opts [String] :ending_before
82
- # @return [StudentContactsResponse]
82
+ # @return [ContactsResponse]
83
83
  def get_contacts(opts = {})
84
84
  data, _status_code, _headers = get_contacts_with_http_info(opts)
85
85
  return data
@@ -91,7 +91,7 @@ module Clever
91
91
  # @option opts [Integer] :limit
92
92
  # @option opts [String] :starting_after
93
93
  # @option opts [String] :ending_before
94
- # @return [Array<(StudentContactsResponse, Fixnum, Hash)>] StudentContactsResponse data, response status code and response headers
94
+ # @return [Array<(ContactsResponse, Fixnum, Hash)>] ContactsResponse data, response status code and response headers
95
95
  def get_contacts_with_http_info(opts = {})
96
96
  if @api_client.config.debugging
97
97
  @api_client.config.logger.debug "Calling API: DataApi.get_contacts ..."
@@ -122,7 +122,7 @@ module Clever
122
122
  :form_params => form_params,
123
123
  :body => post_body,
124
124
  :auth_names => auth_names,
125
- :return_type => 'StudentContactsResponse')
125
+ :return_type => 'ContactsResponse')
126
126
  if @api_client.config.debugging
127
127
  @api_client.config.logger.debug "API called: DataApi#get_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
128
128
  end
@@ -134,7 +134,9 @@ module Clever
134
134
  # @param id
135
135
  # @param [Hash] opts the optional parameters
136
136
  # @option opts [Integer] :limit
137
- # @return [StudentContactsForStudentResponse]
137
+ # @option opts [String] :starting_after
138
+ # @option opts [String] :ending_before
139
+ # @return [ContactsResponse]
138
140
  def get_contacts_for_student(id, opts = {})
139
141
  data, _status_code, _headers = get_contacts_for_student_with_http_info(id, opts)
140
142
  return data
@@ -145,7 +147,9 @@ module Clever
145
147
  # @param id
146
148
  # @param [Hash] opts the optional parameters
147
149
  # @option opts [Integer] :limit
148
- # @return [Array<(StudentContactsForStudentResponse, Fixnum, Hash)>] StudentContactsForStudentResponse data, response status code and response headers
150
+ # @option opts [String] :starting_after
151
+ # @option opts [String] :ending_before
152
+ # @return [Array<(ContactsResponse, Fixnum, Hash)>] ContactsResponse data, response status code and response headers
149
153
  def get_contacts_for_student_with_http_info(id, opts = {})
150
154
  if @api_client.config.debugging
151
155
  @api_client.config.logger.debug "Calling API: DataApi.get_contacts_for_student ..."
@@ -160,6 +164,8 @@ module Clever
160
164
  # query parameters
161
165
  query_params = {}
162
166
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
167
+ query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
168
+ query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
163
169
 
164
170
  # header parameters
165
171
  header_params = {}
@@ -178,13 +184,175 @@ module Clever
178
184
  :form_params => form_params,
179
185
  :body => post_body,
180
186
  :auth_names => auth_names,
181
- :return_type => 'StudentContactsForStudentResponse')
187
+ :return_type => 'ContactsResponse')
182
188
  if @api_client.config.debugging
183
189
  @api_client.config.logger.debug "API called: DataApi#get_contacts_for_student\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
184
190
  end
185
191
  return data, status_code, headers
186
192
  end
187
193
 
194
+ #
195
+ # Returns a specific course
196
+ # @param id
197
+ # @param [Hash] opts the optional parameters
198
+ # @return [CourseResponse]
199
+ def get_course(id, opts = {})
200
+ data, _status_code, _headers = get_course_with_http_info(id, opts)
201
+ return data
202
+ end
203
+
204
+ #
205
+ # Returns a specific course
206
+ # @param id
207
+ # @param [Hash] opts the optional parameters
208
+ # @return [Array<(CourseResponse, Fixnum, Hash)>] CourseResponse data, response status code and response headers
209
+ def get_course_with_http_info(id, opts = {})
210
+ if @api_client.config.debugging
211
+ @api_client.config.logger.debug "Calling API: DataApi.get_course ..."
212
+ end
213
+ # verify the required parameter 'id' is set
214
+ if @api_client.config.client_side_validation && id.nil?
215
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_course"
216
+ end
217
+ # resource path
218
+ local_var_path = "/courses/{id}".sub('{' + 'id' + '}', id.to_s)
219
+
220
+ # query parameters
221
+ query_params = {}
222
+
223
+ # header parameters
224
+ header_params = {}
225
+ # HTTP header 'Accept' (if needed)
226
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
227
+
228
+ # form parameters
229
+ form_params = {}
230
+
231
+ # http body (model)
232
+ post_body = nil
233
+ auth_names = ['oauth']
234
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
235
+ :header_params => header_params,
236
+ :query_params => query_params,
237
+ :form_params => form_params,
238
+ :body => post_body,
239
+ :auth_names => auth_names,
240
+ :return_type => 'CourseResponse')
241
+ if @api_client.config.debugging
242
+ @api_client.config.logger.debug "API called: DataApi#get_course\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
243
+ end
244
+ return data, status_code, headers
245
+ end
246
+
247
+ #
248
+ # Returns the course for a section
249
+ # @param id
250
+ # @param [Hash] opts the optional parameters
251
+ # @return [CourseResponse]
252
+ def get_course_for_section(id, opts = {})
253
+ data, _status_code, _headers = get_course_for_section_with_http_info(id, opts)
254
+ return data
255
+ end
256
+
257
+ #
258
+ # Returns the course for a section
259
+ # @param id
260
+ # @param [Hash] opts the optional parameters
261
+ # @return [Array<(CourseResponse, Fixnum, Hash)>] CourseResponse data, response status code and response headers
262
+ def get_course_for_section_with_http_info(id, opts = {})
263
+ if @api_client.config.debugging
264
+ @api_client.config.logger.debug "Calling API: DataApi.get_course_for_section ..."
265
+ end
266
+ # verify the required parameter 'id' is set
267
+ if @api_client.config.client_side_validation && id.nil?
268
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_course_for_section"
269
+ end
270
+ # resource path
271
+ local_var_path = "/sections/{id}/course".sub('{' + 'id' + '}', id.to_s)
272
+
273
+ # query parameters
274
+ query_params = {}
275
+
276
+ # header parameters
277
+ header_params = {}
278
+ # HTTP header 'Accept' (if needed)
279
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
280
+
281
+ # form parameters
282
+ form_params = {}
283
+
284
+ # http body (model)
285
+ post_body = nil
286
+ auth_names = ['oauth']
287
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
288
+ :header_params => header_params,
289
+ :query_params => query_params,
290
+ :form_params => form_params,
291
+ :body => post_body,
292
+ :auth_names => auth_names,
293
+ :return_type => 'CourseResponse')
294
+ if @api_client.config.debugging
295
+ @api_client.config.logger.debug "API called: DataApi#get_course_for_section\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
296
+ end
297
+ return data, status_code, headers
298
+ end
299
+
300
+ #
301
+ # Returns a list of courses
302
+ # @param [Hash] opts the optional parameters
303
+ # @option opts [Integer] :limit
304
+ # @option opts [String] :starting_after
305
+ # @option opts [String] :ending_before
306
+ # @return [CoursesResponse]
307
+ def get_courses(opts = {})
308
+ data, _status_code, _headers = get_courses_with_http_info(opts)
309
+ return data
310
+ end
311
+
312
+ #
313
+ # Returns a list of courses
314
+ # @param [Hash] opts the optional parameters
315
+ # @option opts [Integer] :limit
316
+ # @option opts [String] :starting_after
317
+ # @option opts [String] :ending_before
318
+ # @return [Array<(CoursesResponse, Fixnum, Hash)>] CoursesResponse data, response status code and response headers
319
+ def get_courses_with_http_info(opts = {})
320
+ if @api_client.config.debugging
321
+ @api_client.config.logger.debug "Calling API: DataApi.get_courses ..."
322
+ end
323
+ # resource path
324
+ local_var_path = "/courses"
325
+
326
+ # query parameters
327
+ query_params = {}
328
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
329
+ query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
330
+ query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
331
+
332
+ # header parameters
333
+ header_params = {}
334
+ # HTTP header 'Accept' (if needed)
335
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
336
+
337
+ # form parameters
338
+ form_params = {}
339
+
340
+ # http body (model)
341
+ post_body = nil
342
+ auth_names = ['oauth']
343
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
344
+ :header_params => header_params,
345
+ :query_params => query_params,
346
+ :form_params => form_params,
347
+ :body => post_body,
348
+ :auth_names => auth_names,
349
+ :return_type => 'CoursesResponse')
350
+ if @api_client.config.debugging
351
+ @api_client.config.logger.debug "API called: DataApi#get_courses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
352
+ end
353
+ return data, status_code, headers
354
+ end
355
+
188
356
  #
189
357
  # Returns a specific district
190
358
  # @param id
@@ -294,6 +462,7 @@ module Clever
294
462
  #
295
463
  # Returns a list of district admins
296
464
  # @param [Hash] opts the optional parameters
465
+ # @option opts [Integer] :limit
297
466
  # @option opts [String] :starting_after
298
467
  # @option opts [String] :ending_before
299
468
  # @return [DistrictAdminsResponse]
@@ -305,6 +474,7 @@ module Clever
305
474
  #
306
475
  # Returns a list of district admins
307
476
  # @param [Hash] opts the optional parameters
477
+ # @option opts [Integer] :limit
308
478
  # @option opts [String] :starting_after
309
479
  # @option opts [String] :ending_before
310
480
  # @return [Array<(DistrictAdminsResponse, Fixnum, Hash)>] DistrictAdminsResponse data, response status code and response headers
@@ -317,6 +487,7 @@ module Clever
317
487
 
318
488
  # query parameters
319
489
  query_params = {}
490
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
320
491
  query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
321
492
  query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
322
493
 
@@ -345,30 +516,30 @@ module Clever
345
516
  end
346
517
 
347
518
  #
348
- # Returns the district for a school
519
+ # Returns the district for a student contact
349
520
  # @param id
350
521
  # @param [Hash] opts the optional parameters
351
522
  # @return [DistrictResponse]
352
- def get_district_for_school(id, opts = {})
353
- data, _status_code, _headers = get_district_for_school_with_http_info(id, opts)
523
+ def get_district_for_contact(id, opts = {})
524
+ data, _status_code, _headers = get_district_for_contact_with_http_info(id, opts)
354
525
  return data
355
526
  end
356
527
 
357
528
  #
358
- # Returns the district for a school
529
+ # Returns the district for a student contact
359
530
  # @param id
360
531
  # @param [Hash] opts the optional parameters
361
532
  # @return [Array<(DistrictResponse, Fixnum, Hash)>] DistrictResponse data, response status code and response headers
362
- def get_district_for_school_with_http_info(id, opts = {})
533
+ def get_district_for_contact_with_http_info(id, opts = {})
363
534
  if @api_client.config.debugging
364
- @api_client.config.logger.debug "Calling API: DataApi.get_district_for_school ..."
535
+ @api_client.config.logger.debug "Calling API: DataApi.get_district_for_contact ..."
365
536
  end
366
537
  # verify the required parameter 'id' is set
367
538
  if @api_client.config.client_side_validation && id.nil?
368
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_school"
539
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_contact"
369
540
  end
370
541
  # resource path
371
- local_var_path = "/schools/{id}/district".sub('{' + 'id' + '}', id.to_s)
542
+ local_var_path = "/contacts/{id}/district".sub('{' + 'id' + '}', id.to_s)
372
543
 
373
544
  # query parameters
374
545
  query_params = {}
@@ -392,36 +563,36 @@ module Clever
392
563
  :auth_names => auth_names,
393
564
  :return_type => 'DistrictResponse')
394
565
  if @api_client.config.debugging
395
- @api_client.config.logger.debug "API called: DataApi#get_district_for_school\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
566
+ @api_client.config.logger.debug "API called: DataApi#get_district_for_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
396
567
  end
397
568
  return data, status_code, headers
398
569
  end
399
570
 
400
571
  #
401
- # Returns the district for a section
572
+ # Returns the district for a course
402
573
  # @param id
403
574
  # @param [Hash] opts the optional parameters
404
575
  # @return [DistrictResponse]
405
- def get_district_for_section(id, opts = {})
406
- data, _status_code, _headers = get_district_for_section_with_http_info(id, opts)
576
+ def get_district_for_course(id, opts = {})
577
+ data, _status_code, _headers = get_district_for_course_with_http_info(id, opts)
407
578
  return data
408
579
  end
409
580
 
410
581
  #
411
- # Returns the district for a section
582
+ # Returns the district for a course
412
583
  # @param id
413
584
  # @param [Hash] opts the optional parameters
414
585
  # @return [Array<(DistrictResponse, Fixnum, Hash)>] DistrictResponse data, response status code and response headers
415
- def get_district_for_section_with_http_info(id, opts = {})
586
+ def get_district_for_course_with_http_info(id, opts = {})
416
587
  if @api_client.config.debugging
417
- @api_client.config.logger.debug "Calling API: DataApi.get_district_for_section ..."
588
+ @api_client.config.logger.debug "Calling API: DataApi.get_district_for_course ..."
418
589
  end
419
590
  # verify the required parameter 'id' is set
420
591
  if @api_client.config.client_side_validation && id.nil?
421
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_section"
592
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_course"
422
593
  end
423
594
  # resource path
424
- local_var_path = "/sections/{id}/district".sub('{' + 'id' + '}', id.to_s)
595
+ local_var_path = "/courses/{id}/district".sub('{' + 'id' + '}', id.to_s)
425
596
 
426
597
  # query parameters
427
598
  query_params = {}
@@ -445,36 +616,36 @@ module Clever
445
616
  :auth_names => auth_names,
446
617
  :return_type => 'DistrictResponse')
447
618
  if @api_client.config.debugging
448
- @api_client.config.logger.debug "API called: DataApi#get_district_for_section\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
619
+ @api_client.config.logger.debug "API called: DataApi#get_district_for_course\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
449
620
  end
450
621
  return data, status_code, headers
451
622
  end
452
623
 
453
624
  #
454
- # Returns the district for a student
625
+ # Returns the district for a district admin
455
626
  # @param id
456
627
  # @param [Hash] opts the optional parameters
457
628
  # @return [DistrictResponse]
458
- def get_district_for_student(id, opts = {})
459
- data, _status_code, _headers = get_district_for_student_with_http_info(id, opts)
629
+ def get_district_for_district_admin(id, opts = {})
630
+ data, _status_code, _headers = get_district_for_district_admin_with_http_info(id, opts)
460
631
  return data
461
632
  end
462
633
 
463
634
  #
464
- # Returns the district for a student
635
+ # Returns the district for a district admin
465
636
  # @param id
466
637
  # @param [Hash] opts the optional parameters
467
638
  # @return [Array<(DistrictResponse, Fixnum, Hash)>] DistrictResponse data, response status code and response headers
468
- def get_district_for_student_with_http_info(id, opts = {})
639
+ def get_district_for_district_admin_with_http_info(id, opts = {})
469
640
  if @api_client.config.debugging
470
- @api_client.config.logger.debug "Calling API: DataApi.get_district_for_student ..."
641
+ @api_client.config.logger.debug "Calling API: DataApi.get_district_for_district_admin ..."
471
642
  end
472
643
  # verify the required parameter 'id' is set
473
644
  if @api_client.config.client_side_validation && id.nil?
474
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_student"
645
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_district_admin"
475
646
  end
476
647
  # resource path
477
- local_var_path = "/students/{id}/district".sub('{' + 'id' + '}', id.to_s)
648
+ local_var_path = "/district_admins/{id}/district".sub('{' + 'id' + '}', id.to_s)
478
649
 
479
650
  # query parameters
480
651
  query_params = {}
@@ -498,36 +669,36 @@ module Clever
498
669
  :auth_names => auth_names,
499
670
  :return_type => 'DistrictResponse')
500
671
  if @api_client.config.debugging
501
- @api_client.config.logger.debug "API called: DataApi#get_district_for_student\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
672
+ @api_client.config.logger.debug "API called: DataApi#get_district_for_district_admin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
502
673
  end
503
674
  return data, status_code, headers
504
675
  end
505
676
 
506
677
  #
507
- # Returns the district for a student contact
678
+ # Returns the district for a school
508
679
  # @param id
509
680
  # @param [Hash] opts the optional parameters
510
681
  # @return [DistrictResponse]
511
- def get_district_for_student_contact(id, opts = {})
512
- data, _status_code, _headers = get_district_for_student_contact_with_http_info(id, opts)
682
+ def get_district_for_school(id, opts = {})
683
+ data, _status_code, _headers = get_district_for_school_with_http_info(id, opts)
513
684
  return data
514
685
  end
515
686
 
516
687
  #
517
- # Returns the district for a student contact
688
+ # Returns the district for a school
518
689
  # @param id
519
690
  # @param [Hash] opts the optional parameters
520
691
  # @return [Array<(DistrictResponse, Fixnum, Hash)>] DistrictResponse data, response status code and response headers
521
- def get_district_for_student_contact_with_http_info(id, opts = {})
692
+ def get_district_for_school_with_http_info(id, opts = {})
522
693
  if @api_client.config.debugging
523
- @api_client.config.logger.debug "Calling API: DataApi.get_district_for_student_contact ..."
694
+ @api_client.config.logger.debug "Calling API: DataApi.get_district_for_school ..."
524
695
  end
525
696
  # verify the required parameter 'id' is set
526
697
  if @api_client.config.client_side_validation && id.nil?
527
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_student_contact"
698
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_school"
528
699
  end
529
700
  # resource path
530
- local_var_path = "/contacts/{id}/district".sub('{' + 'id' + '}', id.to_s)
701
+ local_var_path = "/schools/{id}/district".sub('{' + 'id' + '}', id.to_s)
531
702
 
532
703
  # query parameters
533
704
  query_params = {}
@@ -551,36 +722,36 @@ module Clever
551
722
  :auth_names => auth_names,
552
723
  :return_type => 'DistrictResponse')
553
724
  if @api_client.config.debugging
554
- @api_client.config.logger.debug "API called: DataApi#get_district_for_student_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
725
+ @api_client.config.logger.debug "API called: DataApi#get_district_for_school\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
555
726
  end
556
727
  return data, status_code, headers
557
728
  end
558
729
 
559
730
  #
560
- # Returns the district for a teacher
731
+ # Returns the district for a school admin
561
732
  # @param id
562
733
  # @param [Hash] opts the optional parameters
563
734
  # @return [DistrictResponse]
564
- def get_district_for_teacher(id, opts = {})
565
- data, _status_code, _headers = get_district_for_teacher_with_http_info(id, opts)
735
+ def get_district_for_school_admin(id, opts = {})
736
+ data, _status_code, _headers = get_district_for_school_admin_with_http_info(id, opts)
566
737
  return data
567
738
  end
568
739
 
569
740
  #
570
- # Returns the district for a teacher
741
+ # Returns the district for a school admin
571
742
  # @param id
572
743
  # @param [Hash] opts the optional parameters
573
744
  # @return [Array<(DistrictResponse, Fixnum, Hash)>] DistrictResponse data, response status code and response headers
574
- def get_district_for_teacher_with_http_info(id, opts = {})
745
+ def get_district_for_school_admin_with_http_info(id, opts = {})
575
746
  if @api_client.config.debugging
576
- @api_client.config.logger.debug "Calling API: DataApi.get_district_for_teacher ..."
747
+ @api_client.config.logger.debug "Calling API: DataApi.get_district_for_school_admin ..."
577
748
  end
578
749
  # verify the required parameter 'id' is set
579
750
  if @api_client.config.client_side_validation && id.nil?
580
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_teacher"
751
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_school_admin"
581
752
  end
582
753
  # resource path
583
- local_var_path = "/teachers/{id}/district".sub('{' + 'id' + '}', id.to_s)
754
+ local_var_path = "/school_admins/{id}/district".sub('{' + 'id' + '}', id.to_s)
584
755
 
585
756
  # query parameters
586
757
  query_params = {}
@@ -604,36 +775,36 @@ module Clever
604
775
  :auth_names => auth_names,
605
776
  :return_type => 'DistrictResponse')
606
777
  if @api_client.config.debugging
607
- @api_client.config.logger.debug "API called: DataApi#get_district_for_teacher\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
778
+ @api_client.config.logger.debug "API called: DataApi#get_district_for_school_admin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
608
779
  end
609
780
  return data, status_code, headers
610
781
  end
611
782
 
612
783
  #
613
- # Returns the status of the district
784
+ # Returns the district for a section
614
785
  # @param id
615
786
  # @param [Hash] opts the optional parameters
616
- # @return [DistrictStatusResponses]
617
- def get_district_status(id, opts = {})
618
- data, _status_code, _headers = get_district_status_with_http_info(id, opts)
787
+ # @return [DistrictResponse]
788
+ def get_district_for_section(id, opts = {})
789
+ data, _status_code, _headers = get_district_for_section_with_http_info(id, opts)
619
790
  return data
620
791
  end
621
792
 
622
793
  #
623
- # Returns the status of the district
794
+ # Returns the district for a section
624
795
  # @param id
625
796
  # @param [Hash] opts the optional parameters
626
- # @return [Array<(DistrictStatusResponses, Fixnum, Hash)>] DistrictStatusResponses data, response status code and response headers
627
- def get_district_status_with_http_info(id, opts = {})
797
+ # @return [Array<(DistrictResponse, Fixnum, Hash)>] DistrictResponse data, response status code and response headers
798
+ def get_district_for_section_with_http_info(id, opts = {})
628
799
  if @api_client.config.debugging
629
- @api_client.config.logger.debug "Calling API: DataApi.get_district_status ..."
800
+ @api_client.config.logger.debug "Calling API: DataApi.get_district_for_section ..."
630
801
  end
631
802
  # verify the required parameter 'id' is set
632
803
  if @api_client.config.client_side_validation && id.nil?
633
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_status"
804
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_section"
634
805
  end
635
806
  # resource path
636
- local_var_path = "/districts/{id}/status".sub('{' + 'id' + '}', id.to_s)
807
+ local_var_path = "/sections/{id}/district".sub('{' + 'id' + '}', id.to_s)
637
808
 
638
809
  # query parameters
639
810
  query_params = {}
@@ -655,32 +826,38 @@ module Clever
655
826
  :form_params => form_params,
656
827
  :body => post_body,
657
828
  :auth_names => auth_names,
658
- :return_type => 'DistrictStatusResponses')
829
+ :return_type => 'DistrictResponse')
659
830
  if @api_client.config.debugging
660
- @api_client.config.logger.debug "API called: DataApi#get_district_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
831
+ @api_client.config.logger.debug "API called: DataApi#get_district_for_section\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
661
832
  end
662
833
  return data, status_code, headers
663
834
  end
664
835
 
665
836
  #
666
- # Returns a list of districts
837
+ # Returns the district for a student
838
+ # @param id
667
839
  # @param [Hash] opts the optional parameters
668
- # @return [DistrictsResponse]
669
- def get_districts(opts = {})
670
- data, _status_code, _headers = get_districts_with_http_info(opts)
840
+ # @return [DistrictResponse]
841
+ def get_district_for_student(id, opts = {})
842
+ data, _status_code, _headers = get_district_for_student_with_http_info(id, opts)
671
843
  return data
672
844
  end
673
845
 
674
846
  #
675
- # Returns a list of districts
847
+ # Returns the district for a student
848
+ # @param id
676
849
  # @param [Hash] opts the optional parameters
677
- # @return [Array<(DistrictsResponse, Fixnum, Hash)>] DistrictsResponse data, response status code and response headers
678
- def get_districts_with_http_info(opts = {})
850
+ # @return [Array<(DistrictResponse, Fixnum, Hash)>] DistrictResponse data, response status code and response headers
851
+ def get_district_for_student_with_http_info(id, opts = {})
679
852
  if @api_client.config.debugging
680
- @api_client.config.logger.debug "Calling API: DataApi.get_districts ..."
853
+ @api_client.config.logger.debug "Calling API: DataApi.get_district_for_student ..."
854
+ end
855
+ # verify the required parameter 'id' is set
856
+ if @api_client.config.client_side_validation && id.nil?
857
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_student"
681
858
  end
682
859
  # resource path
683
- local_var_path = "/districts"
860
+ local_var_path = "/students/{id}/district".sub('{' + 'id' + '}', id.to_s)
684
861
 
685
862
  # query parameters
686
863
  query_params = {}
@@ -702,38 +879,138 @@ module Clever
702
879
  :form_params => form_params,
703
880
  :body => post_body,
704
881
  :auth_names => auth_names,
705
- :return_type => 'DistrictsResponse')
882
+ :return_type => 'DistrictResponse')
706
883
  if @api_client.config.debugging
707
- @api_client.config.logger.debug "API called: DataApi#get_districts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
884
+ @api_client.config.logger.debug "API called: DataApi#get_district_for_student\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
885
+ end
886
+ return data, status_code, headers
887
+ end
888
+
889
+ #
890
+ # Returns the district for a teacher
891
+ # @param id
892
+ # @param [Hash] opts the optional parameters
893
+ # @return [DistrictResponse]
894
+ def get_district_for_teacher(id, opts = {})
895
+ data, _status_code, _headers = get_district_for_teacher_with_http_info(id, opts)
896
+ return data
897
+ end
898
+
899
+ #
900
+ # Returns the district for a teacher
901
+ # @param id
902
+ # @param [Hash] opts the optional parameters
903
+ # @return [Array<(DistrictResponse, Fixnum, Hash)>] DistrictResponse data, response status code and response headers
904
+ def get_district_for_teacher_with_http_info(id, opts = {})
905
+ if @api_client.config.debugging
906
+ @api_client.config.logger.debug "Calling API: DataApi.get_district_for_teacher ..."
907
+ end
908
+ # verify the required parameter 'id' is set
909
+ if @api_client.config.client_side_validation && id.nil?
910
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_teacher"
911
+ end
912
+ # resource path
913
+ local_var_path = "/teachers/{id}/district".sub('{' + 'id' + '}', id.to_s)
914
+
915
+ # query parameters
916
+ query_params = {}
917
+
918
+ # header parameters
919
+ header_params = {}
920
+ # HTTP header 'Accept' (if needed)
921
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
922
+
923
+ # form parameters
924
+ form_params = {}
925
+
926
+ # http body (model)
927
+ post_body = nil
928
+ auth_names = ['oauth']
929
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
930
+ :header_params => header_params,
931
+ :query_params => query_params,
932
+ :form_params => form_params,
933
+ :body => post_body,
934
+ :auth_names => auth_names,
935
+ :return_type => 'DistrictResponse')
936
+ if @api_client.config.debugging
937
+ @api_client.config.logger.debug "API called: DataApi#get_district_for_teacher\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
708
938
  end
709
939
  return data, status_code, headers
710
940
  end
711
941
 
712
942
  #
713
- # Returns the grade levels for sections a teacher teaches
943
+ # Returns the district for a term
714
944
  # @param id
715
945
  # @param [Hash] opts the optional parameters
716
- # @return [GradeLevelsResponse]
717
- def get_grade_levels_for_teacher(id, opts = {})
718
- data, _status_code, _headers = get_grade_levels_for_teacher_with_http_info(id, opts)
946
+ # @return [DistrictResponse]
947
+ def get_district_for_term(id, opts = {})
948
+ data, _status_code, _headers = get_district_for_term_with_http_info(id, opts)
719
949
  return data
720
950
  end
721
951
 
722
952
  #
723
- # Returns the grade levels for sections a teacher teaches
953
+ # Returns the district for a term
724
954
  # @param id
725
955
  # @param [Hash] opts the optional parameters
726
- # @return [Array<(GradeLevelsResponse, Fixnum, Hash)>] GradeLevelsResponse data, response status code and response headers
727
- def get_grade_levels_for_teacher_with_http_info(id, opts = {})
956
+ # @return [Array<(DistrictResponse, Fixnum, Hash)>] DistrictResponse data, response status code and response headers
957
+ def get_district_for_term_with_http_info(id, opts = {})
728
958
  if @api_client.config.debugging
729
- @api_client.config.logger.debug "Calling API: DataApi.get_grade_levels_for_teacher ..."
959
+ @api_client.config.logger.debug "Calling API: DataApi.get_district_for_term ..."
730
960
  end
731
961
  # verify the required parameter 'id' is set
732
962
  if @api_client.config.client_side_validation && id.nil?
733
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_grade_levels_for_teacher"
963
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_term"
964
+ end
965
+ # resource path
966
+ local_var_path = "/terms/{id}/district".sub('{' + 'id' + '}', id.to_s)
967
+
968
+ # query parameters
969
+ query_params = {}
970
+
971
+ # header parameters
972
+ header_params = {}
973
+ # HTTP header 'Accept' (if needed)
974
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
975
+
976
+ # form parameters
977
+ form_params = {}
978
+
979
+ # http body (model)
980
+ post_body = nil
981
+ auth_names = ['oauth']
982
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
983
+ :header_params => header_params,
984
+ :query_params => query_params,
985
+ :form_params => form_params,
986
+ :body => post_body,
987
+ :auth_names => auth_names,
988
+ :return_type => 'DistrictResponse')
989
+ if @api_client.config.debugging
990
+ @api_client.config.logger.debug "API called: DataApi#get_district_for_term\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
991
+ end
992
+ return data, status_code, headers
993
+ end
994
+
995
+ #
996
+ # Returns a list of districts
997
+ # @param [Hash] opts the optional parameters
998
+ # @return [DistrictsResponse]
999
+ def get_districts(opts = {})
1000
+ data, _status_code, _headers = get_districts_with_http_info(opts)
1001
+ return data
1002
+ end
1003
+
1004
+ #
1005
+ # Returns a list of districts
1006
+ # @param [Hash] opts the optional parameters
1007
+ # @return [Array<(DistrictsResponse, Fixnum, Hash)>] DistrictsResponse data, response status code and response headers
1008
+ def get_districts_with_http_info(opts = {})
1009
+ if @api_client.config.debugging
1010
+ @api_client.config.logger.debug "Calling API: DataApi.get_districts ..."
734
1011
  end
735
1012
  # resource path
736
- local_var_path = "/teachers/{id}/grade_levels".sub('{' + 'id' + '}', id.to_s)
1013
+ local_var_path = "/districts"
737
1014
 
738
1015
  # query parameters
739
1016
  query_params = {}
@@ -755,9 +1032,9 @@ module Clever
755
1032
  :form_params => form_params,
756
1033
  :body => post_body,
757
1034
  :auth_names => auth_names,
758
- :return_type => 'GradeLevelsResponse')
1035
+ :return_type => 'DistrictsResponse')
759
1036
  if @api_client.config.debugging
760
- @api_client.config.logger.debug "API called: DataApi#get_grade_levels_for_teacher\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1037
+ @api_client.config.logger.debug "API called: DataApi#get_districts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
761
1038
  end
762
1039
  return data, status_code, headers
763
1040
  end
@@ -1201,6 +1478,130 @@ module Clever
1201
1478
  return data, status_code, headers
1202
1479
  end
1203
1480
 
1481
+ #
1482
+ # Returns the schools for a student
1483
+ # @param id
1484
+ # @param [Hash] opts the optional parameters
1485
+ # @option opts [Integer] :limit
1486
+ # @option opts [String] :starting_after
1487
+ # @option opts [String] :ending_before
1488
+ # @return [SchoolsResponse]
1489
+ def get_schools_for_student(id, opts = {})
1490
+ data, _status_code, _headers = get_schools_for_student_with_http_info(id, opts)
1491
+ return data
1492
+ end
1493
+
1494
+ #
1495
+ # Returns the schools for a student
1496
+ # @param id
1497
+ # @param [Hash] opts the optional parameters
1498
+ # @option opts [Integer] :limit
1499
+ # @option opts [String] :starting_after
1500
+ # @option opts [String] :ending_before
1501
+ # @return [Array<(SchoolsResponse, Fixnum, Hash)>] SchoolsResponse data, response status code and response headers
1502
+ def get_schools_for_student_with_http_info(id, opts = {})
1503
+ if @api_client.config.debugging
1504
+ @api_client.config.logger.debug "Calling API: DataApi.get_schools_for_student ..."
1505
+ end
1506
+ # verify the required parameter 'id' is set
1507
+ if @api_client.config.client_side_validation && id.nil?
1508
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_schools_for_student"
1509
+ end
1510
+ # resource path
1511
+ local_var_path = "/students/{id}/schools".sub('{' + 'id' + '}', id.to_s)
1512
+
1513
+ # query parameters
1514
+ query_params = {}
1515
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1516
+ query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
1517
+ query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
1518
+
1519
+ # header parameters
1520
+ header_params = {}
1521
+ # HTTP header 'Accept' (if needed)
1522
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1523
+
1524
+ # form parameters
1525
+ form_params = {}
1526
+
1527
+ # http body (model)
1528
+ post_body = nil
1529
+ auth_names = ['oauth']
1530
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1531
+ :header_params => header_params,
1532
+ :query_params => query_params,
1533
+ :form_params => form_params,
1534
+ :body => post_body,
1535
+ :auth_names => auth_names,
1536
+ :return_type => 'SchoolsResponse')
1537
+ if @api_client.config.debugging
1538
+ @api_client.config.logger.debug "API called: DataApi#get_schools_for_student\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1539
+ end
1540
+ return data, status_code, headers
1541
+ end
1542
+
1543
+ #
1544
+ # Returns the schools for a teacher
1545
+ # @param id
1546
+ # @param [Hash] opts the optional parameters
1547
+ # @option opts [Integer] :limit
1548
+ # @option opts [String] :starting_after
1549
+ # @option opts [String] :ending_before
1550
+ # @return [SchoolsResponse]
1551
+ def get_schools_for_teacher(id, opts = {})
1552
+ data, _status_code, _headers = get_schools_for_teacher_with_http_info(id, opts)
1553
+ return data
1554
+ end
1555
+
1556
+ #
1557
+ # Returns the schools for a teacher
1558
+ # @param id
1559
+ # @param [Hash] opts the optional parameters
1560
+ # @option opts [Integer] :limit
1561
+ # @option opts [String] :starting_after
1562
+ # @option opts [String] :ending_before
1563
+ # @return [Array<(SchoolsResponse, Fixnum, Hash)>] SchoolsResponse data, response status code and response headers
1564
+ def get_schools_for_teacher_with_http_info(id, opts = {})
1565
+ if @api_client.config.debugging
1566
+ @api_client.config.logger.debug "Calling API: DataApi.get_schools_for_teacher ..."
1567
+ end
1568
+ # verify the required parameter 'id' is set
1569
+ if @api_client.config.client_side_validation && id.nil?
1570
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_schools_for_teacher"
1571
+ end
1572
+ # resource path
1573
+ local_var_path = "/teachers/{id}/schools".sub('{' + 'id' + '}', id.to_s)
1574
+
1575
+ # query parameters
1576
+ query_params = {}
1577
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1578
+ query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
1579
+ query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
1580
+
1581
+ # header parameters
1582
+ header_params = {}
1583
+ # HTTP header 'Accept' (if needed)
1584
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1585
+
1586
+ # form parameters
1587
+ form_params = {}
1588
+
1589
+ # http body (model)
1590
+ post_body = nil
1591
+ auth_names = ['oauth']
1592
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1593
+ :header_params => header_params,
1594
+ :query_params => query_params,
1595
+ :form_params => form_params,
1596
+ :body => post_body,
1597
+ :auth_names => auth_names,
1598
+ :return_type => 'SchoolsResponse')
1599
+ if @api_client.config.debugging
1600
+ @api_client.config.logger.debug "API called: DataApi#get_schools_for_teacher\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1601
+ end
1602
+ return data, status_code, headers
1603
+ end
1604
+
1204
1605
  #
1205
1606
  # Returns a specific section
1206
1607
  # @param id
@@ -1212,23 +1613,79 @@ module Clever
1212
1613
  end
1213
1614
 
1214
1615
  #
1215
- # Returns a specific section
1216
- # @param id
1616
+ # Returns a specific section
1617
+ # @param id
1618
+ # @param [Hash] opts the optional parameters
1619
+ # @return [Array<(SectionResponse, Fixnum, Hash)>] SectionResponse data, response status code and response headers
1620
+ def get_section_with_http_info(id, opts = {})
1621
+ if @api_client.config.debugging
1622
+ @api_client.config.logger.debug "Calling API: DataApi.get_section ..."
1623
+ end
1624
+ # verify the required parameter 'id' is set
1625
+ if @api_client.config.client_side_validation && id.nil?
1626
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_section"
1627
+ end
1628
+ # resource path
1629
+ local_var_path = "/sections/{id}".sub('{' + 'id' + '}', id.to_s)
1630
+
1631
+ # query parameters
1632
+ query_params = {}
1633
+
1634
+ # header parameters
1635
+ header_params = {}
1636
+ # HTTP header 'Accept' (if needed)
1637
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1638
+
1639
+ # form parameters
1640
+ form_params = {}
1641
+
1642
+ # http body (model)
1643
+ post_body = nil
1644
+ auth_names = ['oauth']
1645
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1646
+ :header_params => header_params,
1647
+ :query_params => query_params,
1648
+ :form_params => form_params,
1649
+ :body => post_body,
1650
+ :auth_names => auth_names,
1651
+ :return_type => 'SectionResponse')
1652
+ if @api_client.config.debugging
1653
+ @api_client.config.logger.debug "API called: DataApi#get_section\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1654
+ end
1655
+ return data, status_code, headers
1656
+ end
1657
+
1658
+ #
1659
+ # Returns a list of sections
1660
+ # @param [Hash] opts the optional parameters
1661
+ # @option opts [Integer] :limit
1662
+ # @option opts [String] :starting_after
1663
+ # @option opts [String] :ending_before
1664
+ # @return [SectionsResponse]
1665
+ def get_sections(opts = {})
1666
+ data, _status_code, _headers = get_sections_with_http_info(opts)
1667
+ return data
1668
+ end
1669
+
1670
+ #
1671
+ # Returns a list of sections
1217
1672
  # @param [Hash] opts the optional parameters
1218
- # @return [Array<(SectionResponse, Fixnum, Hash)>] SectionResponse data, response status code and response headers
1219
- def get_section_with_http_info(id, opts = {})
1673
+ # @option opts [Integer] :limit
1674
+ # @option opts [String] :starting_after
1675
+ # @option opts [String] :ending_before
1676
+ # @return [Array<(SectionsResponse, Fixnum, Hash)>] SectionsResponse data, response status code and response headers
1677
+ def get_sections_with_http_info(opts = {})
1220
1678
  if @api_client.config.debugging
1221
- @api_client.config.logger.debug "Calling API: DataApi.get_section ..."
1222
- end
1223
- # verify the required parameter 'id' is set
1224
- if @api_client.config.client_side_validation && id.nil?
1225
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_section"
1679
+ @api_client.config.logger.debug "Calling API: DataApi.get_sections ..."
1226
1680
  end
1227
1681
  # resource path
1228
- local_var_path = "/sections/{id}".sub('{' + 'id' + '}', id.to_s)
1682
+ local_var_path = "/sections"
1229
1683
 
1230
1684
  # query parameters
1231
1685
  query_params = {}
1686
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1687
+ query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
1688
+ query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
1232
1689
 
1233
1690
  # header parameters
1234
1691
  header_params = {}
@@ -1247,38 +1704,44 @@ module Clever
1247
1704
  :form_params => form_params,
1248
1705
  :body => post_body,
1249
1706
  :auth_names => auth_names,
1250
- :return_type => 'SectionResponse')
1707
+ :return_type => 'SectionsResponse')
1251
1708
  if @api_client.config.debugging
1252
- @api_client.config.logger.debug "API called: DataApi#get_section\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1709
+ @api_client.config.logger.debug "API called: DataApi#get_sections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1253
1710
  end
1254
1711
  return data, status_code, headers
1255
1712
  end
1256
1713
 
1257
1714
  #
1258
- # Returns a list of sections
1715
+ # Returns the sections for a Courses
1716
+ # @param id
1259
1717
  # @param [Hash] opts the optional parameters
1260
1718
  # @option opts [Integer] :limit
1261
1719
  # @option opts [String] :starting_after
1262
1720
  # @option opts [String] :ending_before
1263
1721
  # @return [SectionsResponse]
1264
- def get_sections(opts = {})
1265
- data, _status_code, _headers = get_sections_with_http_info(opts)
1722
+ def get_sections_for_course(id, opts = {})
1723
+ data, _status_code, _headers = get_sections_for_course_with_http_info(id, opts)
1266
1724
  return data
1267
1725
  end
1268
1726
 
1269
1727
  #
1270
- # Returns a list of sections
1728
+ # Returns the sections for a Courses
1729
+ # @param id
1271
1730
  # @param [Hash] opts the optional parameters
1272
1731
  # @option opts [Integer] :limit
1273
1732
  # @option opts [String] :starting_after
1274
1733
  # @option opts [String] :ending_before
1275
1734
  # @return [Array<(SectionsResponse, Fixnum, Hash)>] SectionsResponse data, response status code and response headers
1276
- def get_sections_with_http_info(opts = {})
1735
+ def get_sections_for_course_with_http_info(id, opts = {})
1277
1736
  if @api_client.config.debugging
1278
- @api_client.config.logger.debug "Calling API: DataApi.get_sections ..."
1737
+ @api_client.config.logger.debug "Calling API: DataApi.get_sections_for_course ..."
1738
+ end
1739
+ # verify the required parameter 'id' is set
1740
+ if @api_client.config.client_side_validation && id.nil?
1741
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_sections_for_course"
1279
1742
  end
1280
1743
  # resource path
1281
- local_var_path = "/sections"
1744
+ local_var_path = "/courses/{id}/sections".sub('{' + 'id' + '}', id.to_s)
1282
1745
 
1283
1746
  # query parameters
1284
1747
  query_params = {}
@@ -1305,7 +1768,7 @@ module Clever
1305
1768
  :auth_names => auth_names,
1306
1769
  :return_type => 'SectionsResponse')
1307
1770
  if @api_client.config.debugging
1308
- @api_client.config.logger.debug "API called: DataApi#get_sections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1771
+ @api_client.config.logger.debug "API called: DataApi#get_sections_for_course\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1309
1772
  end
1310
1773
  return data, status_code, headers
1311
1774
  end
@@ -1497,33 +1960,42 @@ module Clever
1497
1960
  end
1498
1961
 
1499
1962
  #
1500
- # Returns a specific student
1963
+ # Returns the sections for a term
1501
1964
  # @param id
1502
1965
  # @param [Hash] opts the optional parameters
1503
- # @return [StudentResponse]
1504
- def get_student(id, opts = {})
1505
- data, _status_code, _headers = get_student_with_http_info(id, opts)
1966
+ # @option opts [Integer] :limit
1967
+ # @option opts [String] :starting_after
1968
+ # @option opts [String] :ending_before
1969
+ # @return [SectionsResponse]
1970
+ def get_sections_for_term(id, opts = {})
1971
+ data, _status_code, _headers = get_sections_for_term_with_http_info(id, opts)
1506
1972
  return data
1507
1973
  end
1508
1974
 
1509
1975
  #
1510
- # Returns a specific student
1976
+ # Returns the sections for a term
1511
1977
  # @param id
1512
1978
  # @param [Hash] opts the optional parameters
1513
- # @return [Array<(StudentResponse, Fixnum, Hash)>] StudentResponse data, response status code and response headers
1514
- def get_student_with_http_info(id, opts = {})
1979
+ # @option opts [Integer] :limit
1980
+ # @option opts [String] :starting_after
1981
+ # @option opts [String] :ending_before
1982
+ # @return [Array<(SectionsResponse, Fixnum, Hash)>] SectionsResponse data, response status code and response headers
1983
+ def get_sections_for_term_with_http_info(id, opts = {})
1515
1984
  if @api_client.config.debugging
1516
- @api_client.config.logger.debug "Calling API: DataApi.get_student ..."
1985
+ @api_client.config.logger.debug "Calling API: DataApi.get_sections_for_term ..."
1517
1986
  end
1518
1987
  # verify the required parameter 'id' is set
1519
1988
  if @api_client.config.client_side_validation && id.nil?
1520
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_student"
1989
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_sections_for_term"
1521
1990
  end
1522
1991
  # resource path
1523
- local_var_path = "/students/{id}".sub('{' + 'id' + '}', id.to_s)
1992
+ local_var_path = "/terms/{id}/sections".sub('{' + 'id' + '}', id.to_s)
1524
1993
 
1525
1994
  # query parameters
1526
1995
  query_params = {}
1996
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1997
+ query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
1998
+ query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
1527
1999
 
1528
2000
  # header parameters
1529
2001
  header_params = {}
@@ -1542,38 +2014,38 @@ module Clever
1542
2014
  :form_params => form_params,
1543
2015
  :body => post_body,
1544
2016
  :auth_names => auth_names,
1545
- :return_type => 'StudentResponse')
2017
+ :return_type => 'SectionsResponse')
1546
2018
  if @api_client.config.debugging
1547
- @api_client.config.logger.debug "API called: DataApi#get_student\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2019
+ @api_client.config.logger.debug "API called: DataApi#get_sections_for_term\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1548
2020
  end
1549
2021
  return data, status_code, headers
1550
2022
  end
1551
2023
 
1552
2024
  #
1553
- # Returns the student for a student contact
2025
+ # Returns a specific student
1554
2026
  # @param id
1555
2027
  # @param [Hash] opts the optional parameters
1556
2028
  # @return [StudentResponse]
1557
- def get_student_for_contact(id, opts = {})
1558
- data, _status_code, _headers = get_student_for_contact_with_http_info(id, opts)
2029
+ def get_student(id, opts = {})
2030
+ data, _status_code, _headers = get_student_with_http_info(id, opts)
1559
2031
  return data
1560
2032
  end
1561
2033
 
1562
2034
  #
1563
- # Returns the student for a student contact
2035
+ # Returns a specific student
1564
2036
  # @param id
1565
2037
  # @param [Hash] opts the optional parameters
1566
2038
  # @return [Array<(StudentResponse, Fixnum, Hash)>] StudentResponse data, response status code and response headers
1567
- def get_student_for_contact_with_http_info(id, opts = {})
2039
+ def get_student_with_http_info(id, opts = {})
1568
2040
  if @api_client.config.debugging
1569
- @api_client.config.logger.debug "Calling API: DataApi.get_student_for_contact ..."
2041
+ @api_client.config.logger.debug "Calling API: DataApi.get_student ..."
1570
2042
  end
1571
2043
  # verify the required parameter 'id' is set
1572
2044
  if @api_client.config.client_side_validation && id.nil?
1573
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_student_for_contact"
2045
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_student"
1574
2046
  end
1575
2047
  # resource path
1576
- local_var_path = "/contacts/{id}/student".sub('{' + 'id' + '}', id.to_s)
2048
+ local_var_path = "/students/{id}".sub('{' + 'id' + '}', id.to_s)
1577
2049
 
1578
2050
  # query parameters
1579
2051
  query_params = {}
@@ -1597,7 +2069,7 @@ module Clever
1597
2069
  :auth_names => auth_names,
1598
2070
  :return_type => 'StudentResponse')
1599
2071
  if @api_client.config.debugging
1600
- @api_client.config.logger.debug "API called: DataApi#get_student_for_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2072
+ @api_client.config.logger.debug "API called: DataApi#get_student\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1601
2073
  end
1602
2074
  return data, status_code, headers
1603
2075
  end
@@ -1658,6 +2130,68 @@ module Clever
1658
2130
  return data, status_code, headers
1659
2131
  end
1660
2132
 
2133
+ #
2134
+ # Returns the students for a student contact
2135
+ # @param id
2136
+ # @param [Hash] opts the optional parameters
2137
+ # @option opts [Integer] :limit
2138
+ # @option opts [String] :starting_after
2139
+ # @option opts [String] :ending_before
2140
+ # @return [StudentsResponse]
2141
+ def get_students_for_contact(id, opts = {})
2142
+ data, _status_code, _headers = get_students_for_contact_with_http_info(id, opts)
2143
+ return data
2144
+ end
2145
+
2146
+ #
2147
+ # Returns the students for a student contact
2148
+ # @param id
2149
+ # @param [Hash] opts the optional parameters
2150
+ # @option opts [Integer] :limit
2151
+ # @option opts [String] :starting_after
2152
+ # @option opts [String] :ending_before
2153
+ # @return [Array<(StudentsResponse, Fixnum, Hash)>] StudentsResponse data, response status code and response headers
2154
+ def get_students_for_contact_with_http_info(id, opts = {})
2155
+ if @api_client.config.debugging
2156
+ @api_client.config.logger.debug "Calling API: DataApi.get_students_for_contact ..."
2157
+ end
2158
+ # verify the required parameter 'id' is set
2159
+ if @api_client.config.client_side_validation && id.nil?
2160
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_students_for_contact"
2161
+ end
2162
+ # resource path
2163
+ local_var_path = "/contacts/{id}/students".sub('{' + 'id' + '}', id.to_s)
2164
+
2165
+ # query parameters
2166
+ query_params = {}
2167
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2168
+ query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
2169
+ query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
2170
+
2171
+ # header parameters
2172
+ header_params = {}
2173
+ # HTTP header 'Accept' (if needed)
2174
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2175
+
2176
+ # form parameters
2177
+ form_params = {}
2178
+
2179
+ # http body (model)
2180
+ post_body = nil
2181
+ auth_names = ['oauth']
2182
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2183
+ :header_params => header_params,
2184
+ :query_params => query_params,
2185
+ :form_params => form_params,
2186
+ :body => post_body,
2187
+ :auth_names => auth_names,
2188
+ :return_type => 'StudentsResponse')
2189
+ if @api_client.config.debugging
2190
+ @api_client.config.logger.debug "API called: DataApi#get_students_for_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2191
+ end
2192
+ return data, status_code, headers
2193
+ end
2194
+
1661
2195
  #
1662
2196
  # Returns the students for a school
1663
2197
  # @param id
@@ -2191,5 +2725,167 @@ module Clever
2191
2725
  end
2192
2726
  return data, status_code, headers
2193
2727
  end
2728
+
2729
+ #
2730
+ # Returns a specific term
2731
+ # @param id
2732
+ # @param [Hash] opts the optional parameters
2733
+ # @return [TermResponse]
2734
+ def get_term(id, opts = {})
2735
+ data, _status_code, _headers = get_term_with_http_info(id, opts)
2736
+ return data
2737
+ end
2738
+
2739
+ #
2740
+ # Returns a specific term
2741
+ # @param id
2742
+ # @param [Hash] opts the optional parameters
2743
+ # @return [Array<(TermResponse, Fixnum, Hash)>] TermResponse data, response status code and response headers
2744
+ def get_term_with_http_info(id, opts = {})
2745
+ if @api_client.config.debugging
2746
+ @api_client.config.logger.debug "Calling API: DataApi.get_term ..."
2747
+ end
2748
+ # verify the required parameter 'id' is set
2749
+ if @api_client.config.client_side_validation && id.nil?
2750
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_term"
2751
+ end
2752
+ # resource path
2753
+ local_var_path = "/terms/{id}".sub('{' + 'id' + '}', id.to_s)
2754
+
2755
+ # query parameters
2756
+ query_params = {}
2757
+
2758
+ # header parameters
2759
+ header_params = {}
2760
+ # HTTP header 'Accept' (if needed)
2761
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2762
+
2763
+ # form parameters
2764
+ form_params = {}
2765
+
2766
+ # http body (model)
2767
+ post_body = nil
2768
+ auth_names = ['oauth']
2769
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2770
+ :header_params => header_params,
2771
+ :query_params => query_params,
2772
+ :form_params => form_params,
2773
+ :body => post_body,
2774
+ :auth_names => auth_names,
2775
+ :return_type => 'TermResponse')
2776
+ if @api_client.config.debugging
2777
+ @api_client.config.logger.debug "API called: DataApi#get_term\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2778
+ end
2779
+ return data, status_code, headers
2780
+ end
2781
+
2782
+ #
2783
+ # Returns the term for a section
2784
+ # @param id
2785
+ # @param [Hash] opts the optional parameters
2786
+ # @return [TermResponse]
2787
+ def get_term_for_section(id, opts = {})
2788
+ data, _status_code, _headers = get_term_for_section_with_http_info(id, opts)
2789
+ return data
2790
+ end
2791
+
2792
+ #
2793
+ # Returns the term for a section
2794
+ # @param id
2795
+ # @param [Hash] opts the optional parameters
2796
+ # @return [Array<(TermResponse, Fixnum, Hash)>] TermResponse data, response status code and response headers
2797
+ def get_term_for_section_with_http_info(id, opts = {})
2798
+ if @api_client.config.debugging
2799
+ @api_client.config.logger.debug "Calling API: DataApi.get_term_for_section ..."
2800
+ end
2801
+ # verify the required parameter 'id' is set
2802
+ if @api_client.config.client_side_validation && id.nil?
2803
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_term_for_section"
2804
+ end
2805
+ # resource path
2806
+ local_var_path = "/sections/{id}/term".sub('{' + 'id' + '}', id.to_s)
2807
+
2808
+ # query parameters
2809
+ query_params = {}
2810
+
2811
+ # header parameters
2812
+ header_params = {}
2813
+ # HTTP header 'Accept' (if needed)
2814
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2815
+
2816
+ # form parameters
2817
+ form_params = {}
2818
+
2819
+ # http body (model)
2820
+ post_body = nil
2821
+ auth_names = ['oauth']
2822
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2823
+ :header_params => header_params,
2824
+ :query_params => query_params,
2825
+ :form_params => form_params,
2826
+ :body => post_body,
2827
+ :auth_names => auth_names,
2828
+ :return_type => 'TermResponse')
2829
+ if @api_client.config.debugging
2830
+ @api_client.config.logger.debug "API called: DataApi#get_term_for_section\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2831
+ end
2832
+ return data, status_code, headers
2833
+ end
2834
+
2835
+ #
2836
+ # Returns a list of terms
2837
+ # @param [Hash] opts the optional parameters
2838
+ # @option opts [Integer] :limit
2839
+ # @option opts [String] :starting_after
2840
+ # @option opts [String] :ending_before
2841
+ # @return [TermsResponse]
2842
+ def get_terms(opts = {})
2843
+ data, _status_code, _headers = get_terms_with_http_info(opts)
2844
+ return data
2845
+ end
2846
+
2847
+ #
2848
+ # Returns a list of terms
2849
+ # @param [Hash] opts the optional parameters
2850
+ # @option opts [Integer] :limit
2851
+ # @option opts [String] :starting_after
2852
+ # @option opts [String] :ending_before
2853
+ # @return [Array<(TermsResponse, Fixnum, Hash)>] TermsResponse data, response status code and response headers
2854
+ def get_terms_with_http_info(opts = {})
2855
+ if @api_client.config.debugging
2856
+ @api_client.config.logger.debug "Calling API: DataApi.get_terms ..."
2857
+ end
2858
+ # resource path
2859
+ local_var_path = "/terms"
2860
+
2861
+ # query parameters
2862
+ query_params = {}
2863
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2864
+ query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
2865
+ query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
2866
+
2867
+ # header parameters
2868
+ header_params = {}
2869
+ # HTTP header 'Accept' (if needed)
2870
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2871
+
2872
+ # form parameters
2873
+ form_params = {}
2874
+
2875
+ # http body (model)
2876
+ post_body = nil
2877
+ auth_names = ['oauth']
2878
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2879
+ :header_params => header_params,
2880
+ :query_params => query_params,
2881
+ :form_params => form_params,
2882
+ :body => post_body,
2883
+ :auth_names => auth_names,
2884
+ :return_type => 'TermsResponse')
2885
+ if @api_client.config.debugging
2886
+ @api_client.config.logger.debug "API called: DataApi#get_terms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2887
+ end
2888
+ return data, status_code, headers
2889
+ end
2194
2890
  end
2195
2891
  end