commonlit-clever-ruby 2.1.4 → 2.1.6.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -1
- data/Gemfile.lock +46 -41
- data/Makefile +1 -1
- data/README.md +943 -11
- data/clever-ruby.gemspec +3 -10
- data/commonlit-clever-ruby-2.1.6.beta1.gem +0 -0
- data/docs/AdminName.md +0 -1
- data/docs/BadRequest.md +0 -1
- data/docs/Contact.md +0 -1
- data/docs/ContactObject.md +0 -1
- data/docs/ContactResponse.md +0 -1
- data/docs/ContactsCreated.md +0 -1
- data/docs/ContactsDeleted.md +0 -1
- data/docs/ContactsResponse.md +0 -1
- data/docs/ContactsUpdated.md +0 -1
- data/docs/Course.md +0 -1
- data/docs/CourseObject.md +0 -1
- data/docs/CourseResponse.md +0 -1
- data/docs/CoursesCreated.md +0 -1
- data/docs/CoursesDeleted.md +0 -1
- data/docs/CoursesResponse.md +0 -1
- data/docs/CoursesUpdated.md +0 -1
- data/docs/Credentials.md +0 -1
- data/docs/DataApi.md +1 -69
- data/docs/District.md +0 -1
- data/docs/DistrictAdmin.md +0 -1
- data/docs/DistrictAdminObject.md +0 -1
- data/docs/DistrictAdminResponse.md +0 -1
- data/docs/DistrictAdminsResponse.md +0 -1
- data/docs/DistrictObject.md +0 -1
- data/docs/DistrictResponse.md +0 -1
- data/docs/DistrictadminsCreated.md +0 -1
- data/docs/DistrictadminsDeleted.md +0 -1
- data/docs/DistrictadminsUpdated.md +0 -1
- data/docs/DistrictsCreated.md +0 -1
- data/docs/DistrictsDeleted.md +0 -1
- data/docs/DistrictsResponse.md +0 -1
- data/docs/DistrictsUpdated.md +0 -1
- data/docs/Event.md +0 -1
- data/docs/EventResponse.md +0 -1
- data/docs/EventsApi.md +0 -3
- data/docs/EventsResponse.md +0 -1
- data/docs/InternalError.md +0 -1
- data/docs/Link.md +0 -1
- data/docs/Location.md +0 -1
- data/docs/Name.md +0 -1
- data/docs/NotFound.md +0 -1
- data/docs/Principal.md +0 -1
- data/docs/School.md +0 -1
- data/docs/SchoolAdmin.md +0 -1
- data/docs/SchoolAdminObject.md +0 -1
- data/docs/SchoolAdminResponse.md +0 -1
- data/docs/SchoolAdminsResponse.md +0 -1
- data/docs/SchoolEnrollment.md +0 -1
- data/docs/SchoolObject.md +0 -1
- data/docs/SchoolResponse.md +0 -1
- data/docs/SchooladminsCreated.md +0 -1
- data/docs/SchooladminsDeleted.md +0 -1
- data/docs/SchooladminsUpdated.md +0 -1
- data/docs/SchoolsCreated.md +0 -1
- data/docs/SchoolsDeleted.md +0 -1
- data/docs/SchoolsResponse.md +0 -1
- data/docs/SchoolsUpdated.md +0 -1
- data/docs/Section.md +0 -1
- data/docs/SectionObject.md +0 -1
- data/docs/SectionResponse.md +0 -1
- data/docs/SectionsCreated.md +0 -1
- data/docs/SectionsDeleted.md +0 -1
- data/docs/SectionsResponse.md +0 -1
- data/docs/SectionsUpdated.md +0 -1
- data/docs/Student.md +0 -1
- data/docs/StudentObject.md +0 -1
- data/docs/StudentResponse.md +0 -1
- data/docs/StudentsCreated.md +0 -1
- data/docs/StudentsDeleted.md +0 -1
- data/docs/StudentsResponse.md +0 -1
- data/docs/StudentsUpdated.md +0 -1
- data/docs/Teacher.md +0 -1
- data/docs/TeacherObject.md +0 -1
- data/docs/TeacherResponse.md +0 -1
- data/docs/TeachersCreated.md +0 -1
- data/docs/TeachersDeleted.md +0 -1
- data/docs/TeachersResponse.md +0 -1
- data/docs/TeachersUpdated.md +0 -1
- data/docs/Term.md +0 -1
- data/docs/TermObject.md +0 -1
- data/docs/TermResponse.md +0 -1
- data/docs/TermsCreated.md +0 -1
- data/docs/TermsDeleted.md +0 -1
- data/docs/TermsResponse.md +0 -1
- data/docs/TermsUpdated.md +0 -1
- data/full-v2.yml +2541 -0
- data/lib/clever-ruby/api/data_api.rb +836 -635
- data/lib/clever-ruby/api/events_api.rb +23 -18
- data/lib/clever-ruby/api_client.rb +1 -0
- data/lib/clever-ruby/api_error.rb +21 -2
- data/lib/clever-ruby/configuration.rb +3 -7
- data/lib/clever-ruby/models/admin_name.rb +44 -20
- data/lib/clever-ruby/models/bad_request.rb +40 -18
- data/lib/clever-ruby/models/contact.rb +73 -45
- data/lib/clever-ruby/models/contact_object.rb +40 -18
- data/lib/clever-ruby/models/contact_response.rb +40 -18
- data/lib/clever-ruby/models/contacts_response.rb +42 -20
- data/lib/clever-ruby/models/course.rb +48 -24
- data/lib/clever-ruby/models/course_object.rb +40 -18
- data/lib/clever-ruby/models/course_response.rb +40 -18
- data/lib/clever-ruby/models/courses_response.rb +42 -20
- data/lib/clever-ruby/models/credentials.rb +40 -18
- data/lib/clever-ruby/models/district.rb +75 -47
- data/lib/clever-ruby/models/district_admin.rb +49 -26
- data/lib/clever-ruby/models/district_admin_object.rb +40 -18
- data/lib/clever-ruby/models/district_admin_response.rb +40 -18
- data/lib/clever-ruby/models/district_admins_response.rb +42 -20
- data/lib/clever-ruby/models/district_object.rb +40 -18
- data/lib/clever-ruby/models/district_response.rb +40 -18
- data/lib/clever-ruby/models/districts_response.rb +42 -20
- data/lib/clever-ruby/models/event.rb +49 -22
- data/lib/clever-ruby/models/event_response.rb +40 -18
- data/lib/clever-ruby/models/events_response.rb +42 -20
- data/lib/clever-ruby/models/internal_error.rb +40 -18
- data/lib/clever-ruby/models/link.rb +45 -23
- data/lib/clever-ruby/models/location.rb +56 -28
- data/lib/clever-ruby/models/name.rb +47 -22
- data/lib/clever-ruby/models/not_found.rb +40 -18
- data/lib/clever-ruby/models/principal.rb +44 -20
- data/lib/clever-ruby/models/school.rb +81 -53
- data/lib/clever-ruby/models/school_admin.rb +59 -35
- data/lib/clever-ruby/models/school_admin_object.rb +40 -18
- data/lib/clever-ruby/models/school_admin_response.rb +40 -18
- data/lib/clever-ruby/models/school_admins_response.rb +42 -20
- data/lib/clever-ruby/models/school_enrollment.rb +44 -22
- data/lib/clever-ruby/models/school_object.rb +40 -18
- data/lib/clever-ruby/models/school_response.rb +40 -18
- data/lib/clever-ruby/models/schools_response.rb +42 -20
- data/lib/clever-ruby/models/section.rb +84 -55
- data/lib/clever-ruby/models/section_object.rb +40 -18
- data/lib/clever-ruby/models/section_response.rb +40 -18
- data/lib/clever-ruby/models/sections_response.rb +42 -20
- data/lib/clever-ruby/models/student.rb +121 -100
- data/lib/clever-ruby/models/student_object.rb +40 -18
- data/lib/clever-ruby/models/student_response.rb +40 -18
- data/lib/clever-ruby/models/students_response.rb +42 -20
- data/lib/clever-ruby/models/teacher.rb +69 -43
- data/lib/clever-ruby/models/teacher_object.rb +40 -18
- data/lib/clever-ruby/models/teacher_response.rb +40 -18
- data/lib/clever-ruby/models/teachers_response.rb +42 -20
- data/lib/clever-ruby/models/term.rb +51 -26
- data/lib/clever-ruby/models/term_object.rb +40 -18
- data/lib/clever-ruby/models/term_response.rb +40 -18
- data/lib/clever-ruby/models/terms_response.rb +42 -20
- data/lib/clever-ruby/version.rb +2 -3
- data/lib/clever-ruby.rb +1 -2
- data/override/README-extension.md +4 -5
- data/override/api_client.rb +1 -0
- data/override/override.sh +7 -5
- data/spec/api/data_api_spec.rb +671 -0
- data/spec/api/events_api_spec.rb +61 -0
- data/spec/api_client_spec.rb +243 -0
- data/spec/spec_helper.rb +26 -18
- metadata +34 -150
- data/commonlit-clever-ruby-2.1.3.gem +0 -0
- data/spec/events.json +0 -227
- data/tags +0 -1681
@@ -6,12 +6,9 @@
|
|
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:
|
10
|
-
|
9
|
+
Swagger Codegen version: 3.0.51
|
11
10
|
=end
|
12
11
|
|
13
|
-
require 'uri'
|
14
|
-
|
15
12
|
module Clever
|
16
13
|
class DataApi
|
17
14
|
attr_accessor :api_client
|
@@ -20,7 +17,7 @@ module Clever
|
|
20
17
|
@api_client = api_client
|
21
18
|
end
|
22
19
|
# Returns a specific student contact
|
23
|
-
# @param id
|
20
|
+
# @param id
|
24
21
|
# @param [Hash] opts the optional parameters
|
25
22
|
# @return [ContactResponse]
|
26
23
|
def get_contact(id, opts = {})
|
@@ -29,9 +26,9 @@ module Clever
|
|
29
26
|
end
|
30
27
|
|
31
28
|
# Returns a specific student contact
|
32
|
-
# @param id
|
29
|
+
# @param id
|
33
30
|
# @param [Hash] opts the optional parameters
|
34
|
-
# @return [Array<(ContactResponse,
|
31
|
+
# @return [Array<(ContactResponse, Integer, Hash)>] ContactResponse data, response status code and response headers
|
35
32
|
def get_contact_with_http_info(id, opts = {})
|
36
33
|
if @api_client.config.debugging
|
37
34
|
@api_client.config.logger.debug 'Calling API: DataApi.get_contact ...'
|
@@ -44,26 +41,30 @@ module Clever
|
|
44
41
|
local_var_path = '/contacts/{id}'.sub('{' + 'id' + '}', id.to_s)
|
45
42
|
|
46
43
|
# query parameters
|
47
|
-
query_params = {}
|
44
|
+
query_params = opts[:query_params] || {}
|
48
45
|
|
49
46
|
# header parameters
|
50
|
-
header_params = {}
|
47
|
+
header_params = opts[:header_params] || {}
|
51
48
|
# HTTP header 'Accept' (if needed)
|
52
49
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
50
|
|
54
51
|
# form parameters
|
55
|
-
form_params = {}
|
52
|
+
form_params = opts[:form_params] || {}
|
56
53
|
|
57
54
|
# http body (model)
|
58
|
-
post_body =
|
59
|
-
|
55
|
+
post_body = opts[:body]
|
56
|
+
|
57
|
+
return_type = opts[:return_type] || 'ContactResponse'
|
58
|
+
|
59
|
+
auth_names = opts[:auth_names] || ['oauth']
|
60
60
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
61
61
|
:header_params => header_params,
|
62
62
|
:query_params => query_params,
|
63
63
|
:form_params => form_params,
|
64
64
|
:body => post_body,
|
65
65
|
:auth_names => auth_names,
|
66
|
-
:return_type =>
|
66
|
+
:return_type => return_type)
|
67
|
+
|
67
68
|
if @api_client.config.debugging
|
68
69
|
@api_client.config.logger.debug "API called: DataApi#get_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
69
70
|
end
|
@@ -71,10 +72,10 @@ module Clever
|
|
71
72
|
end
|
72
73
|
# Returns a list of student contacts
|
73
74
|
# @param [Hash] opts the optional parameters
|
74
|
-
# @option opts [Integer] :limit
|
75
|
-
# @option opts [String] :starting_after
|
76
|
-
# @option opts [String] :ending_before
|
77
|
-
# @option opts [String] :count
|
75
|
+
# @option opts [Integer] :limit
|
76
|
+
# @option opts [String] :starting_after
|
77
|
+
# @option opts [String] :ending_before
|
78
|
+
# @option opts [String] :count
|
78
79
|
# @return [ContactsResponse]
|
79
80
|
def get_contacts(opts = {})
|
80
81
|
data, _status_code, _headers = get_contacts_with_http_info(opts)
|
@@ -83,57 +84,61 @@ module Clever
|
|
83
84
|
|
84
85
|
# Returns a list of student contacts
|
85
86
|
# @param [Hash] opts the optional parameters
|
86
|
-
# @option opts [Integer] :limit
|
87
|
-
# @option opts [String] :starting_after
|
88
|
-
# @option opts [String] :ending_before
|
89
|
-
# @option opts [String] :count
|
90
|
-
# @return [Array<(ContactsResponse,
|
87
|
+
# @option opts [Integer] :limit
|
88
|
+
# @option opts [String] :starting_after
|
89
|
+
# @option opts [String] :ending_before
|
90
|
+
# @option opts [String] :count
|
91
|
+
# @return [Array<(ContactsResponse, Integer, Hash)>] ContactsResponse data, response status code and response headers
|
91
92
|
def get_contacts_with_http_info(opts = {})
|
92
93
|
if @api_client.config.debugging
|
93
94
|
@api_client.config.logger.debug 'Calling API: DataApi.get_contacts ...'
|
94
95
|
end
|
95
|
-
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true'].include?(opts[:'count'])
|
96
|
-
fail ArgumentError, 'invalid value for "count", must be one of , true'
|
96
|
+
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true', 'false', 'undefined'].include?(opts[:'count'])
|
97
|
+
fail ArgumentError, 'invalid value for "count", must be one of , true, false, undefined'
|
97
98
|
end
|
98
99
|
# resource path
|
99
100
|
local_var_path = '/contacts'
|
100
101
|
|
101
102
|
# query parameters
|
102
|
-
query_params = {}
|
103
|
+
query_params = opts[:query_params] || {}
|
103
104
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
104
105
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
105
106
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
106
107
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
107
108
|
|
108
109
|
# header parameters
|
109
|
-
header_params = {}
|
110
|
+
header_params = opts[:header_params] || {}
|
110
111
|
# HTTP header 'Accept' (if needed)
|
111
112
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
112
113
|
|
113
114
|
# form parameters
|
114
|
-
form_params = {}
|
115
|
+
form_params = opts[:form_params] || {}
|
115
116
|
|
116
117
|
# http body (model)
|
117
|
-
post_body =
|
118
|
-
|
118
|
+
post_body = opts[:body]
|
119
|
+
|
120
|
+
return_type = opts[:return_type] || 'ContactsResponse'
|
121
|
+
|
122
|
+
auth_names = opts[:auth_names] || ['oauth']
|
119
123
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
120
124
|
:header_params => header_params,
|
121
125
|
:query_params => query_params,
|
122
126
|
:form_params => form_params,
|
123
127
|
:body => post_body,
|
124
128
|
:auth_names => auth_names,
|
125
|
-
:return_type =>
|
129
|
+
:return_type => return_type)
|
130
|
+
|
126
131
|
if @api_client.config.debugging
|
127
132
|
@api_client.config.logger.debug "API called: DataApi#get_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
128
133
|
end
|
129
134
|
return data, status_code, headers
|
130
135
|
end
|
131
136
|
# Returns the contacts for a student
|
132
|
-
# @param id
|
137
|
+
# @param id
|
133
138
|
# @param [Hash] opts the optional parameters
|
134
|
-
# @option opts [Integer] :limit
|
135
|
-
# @option opts [String] :starting_after
|
136
|
-
# @option opts [String] :ending_before
|
139
|
+
# @option opts [Integer] :limit
|
140
|
+
# @option opts [String] :starting_after
|
141
|
+
# @option opts [String] :ending_before
|
137
142
|
# @return [ContactsResponse]
|
138
143
|
def get_contacts_for_student(id, opts = {})
|
139
144
|
data, _status_code, _headers = get_contacts_for_student_with_http_info(id, opts)
|
@@ -141,12 +146,12 @@ module Clever
|
|
141
146
|
end
|
142
147
|
|
143
148
|
# Returns the contacts for a student
|
144
|
-
# @param id
|
149
|
+
# @param id
|
145
150
|
# @param [Hash] opts the optional parameters
|
146
|
-
# @option opts [Integer] :limit
|
147
|
-
# @option opts [String] :starting_after
|
148
|
-
# @option opts [String] :ending_before
|
149
|
-
# @return [Array<(ContactsResponse,
|
151
|
+
# @option opts [Integer] :limit
|
152
|
+
# @option opts [String] :starting_after
|
153
|
+
# @option opts [String] :ending_before
|
154
|
+
# @return [Array<(ContactsResponse, Integer, Hash)>] ContactsResponse data, response status code and response headers
|
150
155
|
def get_contacts_for_student_with_http_info(id, opts = {})
|
151
156
|
if @api_client.config.debugging
|
152
157
|
@api_client.config.logger.debug 'Calling API: DataApi.get_contacts_for_student ...'
|
@@ -159,36 +164,40 @@ module Clever
|
|
159
164
|
local_var_path = '/students/{id}/contacts'.sub('{' + 'id' + '}', id.to_s)
|
160
165
|
|
161
166
|
# query parameters
|
162
|
-
query_params = {}
|
167
|
+
query_params = opts[:query_params] || {}
|
163
168
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
164
169
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
165
170
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
166
171
|
|
167
172
|
# header parameters
|
168
|
-
header_params = {}
|
173
|
+
header_params = opts[:header_params] || {}
|
169
174
|
# HTTP header 'Accept' (if needed)
|
170
175
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
171
176
|
|
172
177
|
# form parameters
|
173
|
-
form_params = {}
|
178
|
+
form_params = opts[:form_params] || {}
|
174
179
|
|
175
180
|
# http body (model)
|
176
|
-
post_body =
|
177
|
-
|
181
|
+
post_body = opts[:body]
|
182
|
+
|
183
|
+
return_type = opts[:return_type] || 'ContactsResponse'
|
184
|
+
|
185
|
+
auth_names = opts[:auth_names] || ['oauth']
|
178
186
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
179
187
|
:header_params => header_params,
|
180
188
|
:query_params => query_params,
|
181
189
|
:form_params => form_params,
|
182
190
|
:body => post_body,
|
183
191
|
:auth_names => auth_names,
|
184
|
-
:return_type =>
|
192
|
+
:return_type => return_type)
|
193
|
+
|
185
194
|
if @api_client.config.debugging
|
186
195
|
@api_client.config.logger.debug "API called: DataApi#get_contacts_for_student\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
187
196
|
end
|
188
197
|
return data, status_code, headers
|
189
198
|
end
|
190
199
|
# Returns a specific course
|
191
|
-
# @param id
|
200
|
+
# @param id
|
192
201
|
# @param [Hash] opts the optional parameters
|
193
202
|
# @return [CourseResponse]
|
194
203
|
def get_course(id, opts = {})
|
@@ -197,9 +206,9 @@ module Clever
|
|
197
206
|
end
|
198
207
|
|
199
208
|
# Returns a specific course
|
200
|
-
# @param id
|
209
|
+
# @param id
|
201
210
|
# @param [Hash] opts the optional parameters
|
202
|
-
# @return [Array<(CourseResponse,
|
211
|
+
# @return [Array<(CourseResponse, Integer, Hash)>] CourseResponse data, response status code and response headers
|
203
212
|
def get_course_with_http_info(id, opts = {})
|
204
213
|
if @api_client.config.debugging
|
205
214
|
@api_client.config.logger.debug 'Calling API: DataApi.get_course ...'
|
@@ -212,33 +221,37 @@ module Clever
|
|
212
221
|
local_var_path = '/courses/{id}'.sub('{' + 'id' + '}', id.to_s)
|
213
222
|
|
214
223
|
# query parameters
|
215
|
-
query_params = {}
|
224
|
+
query_params = opts[:query_params] || {}
|
216
225
|
|
217
226
|
# header parameters
|
218
|
-
header_params = {}
|
227
|
+
header_params = opts[:header_params] || {}
|
219
228
|
# HTTP header 'Accept' (if needed)
|
220
229
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
221
230
|
|
222
231
|
# form parameters
|
223
|
-
form_params = {}
|
232
|
+
form_params = opts[:form_params] || {}
|
224
233
|
|
225
234
|
# http body (model)
|
226
|
-
post_body =
|
227
|
-
|
235
|
+
post_body = opts[:body]
|
236
|
+
|
237
|
+
return_type = opts[:return_type] || 'CourseResponse'
|
238
|
+
|
239
|
+
auth_names = opts[:auth_names] || ['oauth']
|
228
240
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
229
241
|
:header_params => header_params,
|
230
242
|
:query_params => query_params,
|
231
243
|
:form_params => form_params,
|
232
244
|
:body => post_body,
|
233
245
|
:auth_names => auth_names,
|
234
|
-
:return_type =>
|
246
|
+
:return_type => return_type)
|
247
|
+
|
235
248
|
if @api_client.config.debugging
|
236
249
|
@api_client.config.logger.debug "API called: DataApi#get_course\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
237
250
|
end
|
238
251
|
return data, status_code, headers
|
239
252
|
end
|
240
253
|
# Returns the course for a section
|
241
|
-
# @param id
|
254
|
+
# @param id
|
242
255
|
# @param [Hash] opts the optional parameters
|
243
256
|
# @return [CourseResponse]
|
244
257
|
def get_course_for_section(id, opts = {})
|
@@ -247,9 +260,9 @@ module Clever
|
|
247
260
|
end
|
248
261
|
|
249
262
|
# Returns the course for a section
|
250
|
-
# @param id
|
263
|
+
# @param id
|
251
264
|
# @param [Hash] opts the optional parameters
|
252
|
-
# @return [Array<(CourseResponse,
|
265
|
+
# @return [Array<(CourseResponse, Integer, Hash)>] CourseResponse data, response status code and response headers
|
253
266
|
def get_course_for_section_with_http_info(id, opts = {})
|
254
267
|
if @api_client.config.debugging
|
255
268
|
@api_client.config.logger.debug 'Calling API: DataApi.get_course_for_section ...'
|
@@ -262,26 +275,30 @@ module Clever
|
|
262
275
|
local_var_path = '/sections/{id}/course'.sub('{' + 'id' + '}', id.to_s)
|
263
276
|
|
264
277
|
# query parameters
|
265
|
-
query_params = {}
|
278
|
+
query_params = opts[:query_params] || {}
|
266
279
|
|
267
280
|
# header parameters
|
268
|
-
header_params = {}
|
281
|
+
header_params = opts[:header_params] || {}
|
269
282
|
# HTTP header 'Accept' (if needed)
|
270
283
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
271
284
|
|
272
285
|
# form parameters
|
273
|
-
form_params = {}
|
286
|
+
form_params = opts[:form_params] || {}
|
274
287
|
|
275
288
|
# http body (model)
|
276
|
-
post_body =
|
277
|
-
|
289
|
+
post_body = opts[:body]
|
290
|
+
|
291
|
+
return_type = opts[:return_type] || 'CourseResponse'
|
292
|
+
|
293
|
+
auth_names = opts[:auth_names] || ['oauth']
|
278
294
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
279
295
|
:header_params => header_params,
|
280
296
|
:query_params => query_params,
|
281
297
|
:form_params => form_params,
|
282
298
|
:body => post_body,
|
283
299
|
:auth_names => auth_names,
|
284
|
-
:return_type =>
|
300
|
+
:return_type => return_type)
|
301
|
+
|
285
302
|
if @api_client.config.debugging
|
286
303
|
@api_client.config.logger.debug "API called: DataApi#get_course_for_section\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
287
304
|
end
|
@@ -289,10 +306,10 @@ module Clever
|
|
289
306
|
end
|
290
307
|
# Returns a list of courses
|
291
308
|
# @param [Hash] opts the optional parameters
|
292
|
-
# @option opts [Integer] :limit
|
293
|
-
# @option opts [String] :starting_after
|
294
|
-
# @option opts [String] :ending_before
|
295
|
-
# @option opts [String] :count
|
309
|
+
# @option opts [Integer] :limit
|
310
|
+
# @option opts [String] :starting_after
|
311
|
+
# @option opts [String] :ending_before
|
312
|
+
# @option opts [String] :count
|
296
313
|
# @return [CoursesResponse]
|
297
314
|
def get_courses(opts = {})
|
298
315
|
data, _status_code, _headers = get_courses_with_http_info(opts)
|
@@ -301,53 +318,57 @@ module Clever
|
|
301
318
|
|
302
319
|
# Returns a list of courses
|
303
320
|
# @param [Hash] opts the optional parameters
|
304
|
-
# @option opts [Integer] :limit
|
305
|
-
# @option opts [String] :starting_after
|
306
|
-
# @option opts [String] :ending_before
|
307
|
-
# @option opts [String] :count
|
308
|
-
# @return [Array<(CoursesResponse,
|
321
|
+
# @option opts [Integer] :limit
|
322
|
+
# @option opts [String] :starting_after
|
323
|
+
# @option opts [String] :ending_before
|
324
|
+
# @option opts [String] :count
|
325
|
+
# @return [Array<(CoursesResponse, Integer, Hash)>] CoursesResponse data, response status code and response headers
|
309
326
|
def get_courses_with_http_info(opts = {})
|
310
327
|
if @api_client.config.debugging
|
311
328
|
@api_client.config.logger.debug 'Calling API: DataApi.get_courses ...'
|
312
329
|
end
|
313
|
-
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true'].include?(opts[:'count'])
|
314
|
-
fail ArgumentError, 'invalid value for "count", must be one of , true'
|
330
|
+
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true', 'false', 'undefined'].include?(opts[:'count'])
|
331
|
+
fail ArgumentError, 'invalid value for "count", must be one of , true, false, undefined'
|
315
332
|
end
|
316
333
|
# resource path
|
317
334
|
local_var_path = '/courses'
|
318
335
|
|
319
336
|
# query parameters
|
320
|
-
query_params = {}
|
337
|
+
query_params = opts[:query_params] || {}
|
321
338
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
322
339
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
323
340
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
324
341
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
325
342
|
|
326
343
|
# header parameters
|
327
|
-
header_params = {}
|
344
|
+
header_params = opts[:header_params] || {}
|
328
345
|
# HTTP header 'Accept' (if needed)
|
329
346
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
330
347
|
|
331
348
|
# form parameters
|
332
|
-
form_params = {}
|
349
|
+
form_params = opts[:form_params] || {}
|
333
350
|
|
334
351
|
# http body (model)
|
335
|
-
post_body =
|
336
|
-
|
352
|
+
post_body = opts[:body]
|
353
|
+
|
354
|
+
return_type = opts[:return_type] || 'CoursesResponse'
|
355
|
+
|
356
|
+
auth_names = opts[:auth_names] || ['oauth']
|
337
357
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
338
358
|
:header_params => header_params,
|
339
359
|
:query_params => query_params,
|
340
360
|
:form_params => form_params,
|
341
361
|
:body => post_body,
|
342
362
|
:auth_names => auth_names,
|
343
|
-
:return_type =>
|
363
|
+
:return_type => return_type)
|
364
|
+
|
344
365
|
if @api_client.config.debugging
|
345
366
|
@api_client.config.logger.debug "API called: DataApi#get_courses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
346
367
|
end
|
347
368
|
return data, status_code, headers
|
348
369
|
end
|
349
370
|
# Returns a specific district
|
350
|
-
# @param id
|
371
|
+
# @param id
|
351
372
|
# @param [Hash] opts the optional parameters
|
352
373
|
# @return [DistrictResponse]
|
353
374
|
def get_district(id, opts = {})
|
@@ -356,9 +377,9 @@ module Clever
|
|
356
377
|
end
|
357
378
|
|
358
379
|
# Returns a specific district
|
359
|
-
# @param id
|
380
|
+
# @param id
|
360
381
|
# @param [Hash] opts the optional parameters
|
361
|
-
# @return [Array<(DistrictResponse,
|
382
|
+
# @return [Array<(DistrictResponse, Integer, Hash)>] DistrictResponse data, response status code and response headers
|
362
383
|
def get_district_with_http_info(id, opts = {})
|
363
384
|
if @api_client.config.debugging
|
364
385
|
@api_client.config.logger.debug 'Calling API: DataApi.get_district ...'
|
@@ -371,33 +392,37 @@ module Clever
|
|
371
392
|
local_var_path = '/districts/{id}'.sub('{' + 'id' + '}', id.to_s)
|
372
393
|
|
373
394
|
# query parameters
|
374
|
-
query_params = {}
|
395
|
+
query_params = opts[:query_params] || {}
|
375
396
|
|
376
397
|
# header parameters
|
377
|
-
header_params = {}
|
398
|
+
header_params = opts[:header_params] || {}
|
378
399
|
# HTTP header 'Accept' (if needed)
|
379
400
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
380
401
|
|
381
402
|
# form parameters
|
382
|
-
form_params = {}
|
403
|
+
form_params = opts[:form_params] || {}
|
383
404
|
|
384
405
|
# http body (model)
|
385
|
-
post_body =
|
386
|
-
|
406
|
+
post_body = opts[:body]
|
407
|
+
|
408
|
+
return_type = opts[:return_type] || 'DistrictResponse'
|
409
|
+
|
410
|
+
auth_names = opts[:auth_names] || ['oauth']
|
387
411
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
388
412
|
:header_params => header_params,
|
389
413
|
:query_params => query_params,
|
390
414
|
:form_params => form_params,
|
391
415
|
:body => post_body,
|
392
416
|
:auth_names => auth_names,
|
393
|
-
:return_type =>
|
417
|
+
:return_type => return_type)
|
418
|
+
|
394
419
|
if @api_client.config.debugging
|
395
420
|
@api_client.config.logger.debug "API called: DataApi#get_district\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
396
421
|
end
|
397
422
|
return data, status_code, headers
|
398
423
|
end
|
399
424
|
# Returns a specific district admin
|
400
|
-
# @param id
|
425
|
+
# @param id
|
401
426
|
# @param [Hash] opts the optional parameters
|
402
427
|
# @return [DistrictAdminResponse]
|
403
428
|
def get_district_admin(id, opts = {})
|
@@ -406,9 +431,9 @@ module Clever
|
|
406
431
|
end
|
407
432
|
|
408
433
|
# Returns a specific district admin
|
409
|
-
# @param id
|
434
|
+
# @param id
|
410
435
|
# @param [Hash] opts the optional parameters
|
411
|
-
# @return [Array<(DistrictAdminResponse,
|
436
|
+
# @return [Array<(DistrictAdminResponse, Integer, Hash)>] DistrictAdminResponse data, response status code and response headers
|
412
437
|
def get_district_admin_with_http_info(id, opts = {})
|
413
438
|
if @api_client.config.debugging
|
414
439
|
@api_client.config.logger.debug 'Calling API: DataApi.get_district_admin ...'
|
@@ -421,26 +446,30 @@ module Clever
|
|
421
446
|
local_var_path = '/district_admins/{id}'.sub('{' + 'id' + '}', id.to_s)
|
422
447
|
|
423
448
|
# query parameters
|
424
|
-
query_params = {}
|
449
|
+
query_params = opts[:query_params] || {}
|
425
450
|
|
426
451
|
# header parameters
|
427
|
-
header_params = {}
|
452
|
+
header_params = opts[:header_params] || {}
|
428
453
|
# HTTP header 'Accept' (if needed)
|
429
454
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
430
455
|
|
431
456
|
# form parameters
|
432
|
-
form_params = {}
|
457
|
+
form_params = opts[:form_params] || {}
|
433
458
|
|
434
459
|
# http body (model)
|
435
|
-
post_body =
|
436
|
-
|
460
|
+
post_body = opts[:body]
|
461
|
+
|
462
|
+
return_type = opts[:return_type] || 'DistrictAdminResponse'
|
463
|
+
|
464
|
+
auth_names = opts[:auth_names] || ['oauth']
|
437
465
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
438
466
|
:header_params => header_params,
|
439
467
|
:query_params => query_params,
|
440
468
|
:form_params => form_params,
|
441
469
|
:body => post_body,
|
442
470
|
:auth_names => auth_names,
|
443
|
-
:return_type =>
|
471
|
+
:return_type => return_type)
|
472
|
+
|
444
473
|
if @api_client.config.debugging
|
445
474
|
@api_client.config.logger.debug "API called: DataApi#get_district_admin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
446
475
|
end
|
@@ -448,10 +477,10 @@ module Clever
|
|
448
477
|
end
|
449
478
|
# Returns a list of district admins
|
450
479
|
# @param [Hash] opts the optional parameters
|
451
|
-
# @option opts [Integer] :limit
|
452
|
-
# @option opts [String] :starting_after
|
453
|
-
# @option opts [String] :ending_before
|
454
|
-
# @option opts [String] :count
|
480
|
+
# @option opts [Integer] :limit
|
481
|
+
# @option opts [String] :starting_after
|
482
|
+
# @option opts [String] :ending_before
|
483
|
+
# @option opts [String] :count
|
455
484
|
# @return [DistrictAdminsResponse]
|
456
485
|
def get_district_admins(opts = {})
|
457
486
|
data, _status_code, _headers = get_district_admins_with_http_info(opts)
|
@@ -460,53 +489,57 @@ module Clever
|
|
460
489
|
|
461
490
|
# Returns a list of district admins
|
462
491
|
# @param [Hash] opts the optional parameters
|
463
|
-
# @option opts [Integer] :limit
|
464
|
-
# @option opts [String] :starting_after
|
465
|
-
# @option opts [String] :ending_before
|
466
|
-
# @option opts [String] :count
|
467
|
-
# @return [Array<(DistrictAdminsResponse,
|
492
|
+
# @option opts [Integer] :limit
|
493
|
+
# @option opts [String] :starting_after
|
494
|
+
# @option opts [String] :ending_before
|
495
|
+
# @option opts [String] :count
|
496
|
+
# @return [Array<(DistrictAdminsResponse, Integer, Hash)>] DistrictAdminsResponse data, response status code and response headers
|
468
497
|
def get_district_admins_with_http_info(opts = {})
|
469
498
|
if @api_client.config.debugging
|
470
499
|
@api_client.config.logger.debug 'Calling API: DataApi.get_district_admins ...'
|
471
500
|
end
|
472
|
-
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true'].include?(opts[:'count'])
|
473
|
-
fail ArgumentError, 'invalid value for "count", must be one of , true'
|
501
|
+
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true', 'false', 'undefined'].include?(opts[:'count'])
|
502
|
+
fail ArgumentError, 'invalid value for "count", must be one of , true, false, undefined'
|
474
503
|
end
|
475
504
|
# resource path
|
476
505
|
local_var_path = '/district_admins'
|
477
506
|
|
478
507
|
# query parameters
|
479
|
-
query_params = {}
|
508
|
+
query_params = opts[:query_params] || {}
|
480
509
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
481
510
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
482
511
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
483
512
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
484
513
|
|
485
514
|
# header parameters
|
486
|
-
header_params = {}
|
515
|
+
header_params = opts[:header_params] || {}
|
487
516
|
# HTTP header 'Accept' (if needed)
|
488
517
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
489
518
|
|
490
519
|
# form parameters
|
491
|
-
form_params = {}
|
520
|
+
form_params = opts[:form_params] || {}
|
492
521
|
|
493
522
|
# http body (model)
|
494
|
-
post_body =
|
495
|
-
|
523
|
+
post_body = opts[:body]
|
524
|
+
|
525
|
+
return_type = opts[:return_type] || 'DistrictAdminsResponse'
|
526
|
+
|
527
|
+
auth_names = opts[:auth_names] || ['oauth']
|
496
528
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
497
529
|
:header_params => header_params,
|
498
530
|
:query_params => query_params,
|
499
531
|
:form_params => form_params,
|
500
532
|
:body => post_body,
|
501
533
|
:auth_names => auth_names,
|
502
|
-
:return_type =>
|
534
|
+
:return_type => return_type)
|
535
|
+
|
503
536
|
if @api_client.config.debugging
|
504
537
|
@api_client.config.logger.debug "API called: DataApi#get_district_admins\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
505
538
|
end
|
506
539
|
return data, status_code, headers
|
507
540
|
end
|
508
541
|
# Returns the district for a student contact
|
509
|
-
# @param id
|
542
|
+
# @param id
|
510
543
|
# @param [Hash] opts the optional parameters
|
511
544
|
# @return [DistrictResponse]
|
512
545
|
def get_district_for_contact(id, opts = {})
|
@@ -515,9 +548,9 @@ module Clever
|
|
515
548
|
end
|
516
549
|
|
517
550
|
# Returns the district for a student contact
|
518
|
-
# @param id
|
551
|
+
# @param id
|
519
552
|
# @param [Hash] opts the optional parameters
|
520
|
-
# @return [Array<(DistrictResponse,
|
553
|
+
# @return [Array<(DistrictResponse, Integer, Hash)>] DistrictResponse data, response status code and response headers
|
521
554
|
def get_district_for_contact_with_http_info(id, opts = {})
|
522
555
|
if @api_client.config.debugging
|
523
556
|
@api_client.config.logger.debug 'Calling API: DataApi.get_district_for_contact ...'
|
@@ -530,33 +563,37 @@ module Clever
|
|
530
563
|
local_var_path = '/contacts/{id}/district'.sub('{' + 'id' + '}', id.to_s)
|
531
564
|
|
532
565
|
# query parameters
|
533
|
-
query_params = {}
|
566
|
+
query_params = opts[:query_params] || {}
|
534
567
|
|
535
568
|
# header parameters
|
536
|
-
header_params = {}
|
569
|
+
header_params = opts[:header_params] || {}
|
537
570
|
# HTTP header 'Accept' (if needed)
|
538
571
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
539
572
|
|
540
573
|
# form parameters
|
541
|
-
form_params = {}
|
574
|
+
form_params = opts[:form_params] || {}
|
542
575
|
|
543
576
|
# http body (model)
|
544
|
-
post_body =
|
545
|
-
|
577
|
+
post_body = opts[:body]
|
578
|
+
|
579
|
+
return_type = opts[:return_type] || 'DistrictResponse'
|
580
|
+
|
581
|
+
auth_names = opts[:auth_names] || ['oauth']
|
546
582
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
547
583
|
:header_params => header_params,
|
548
584
|
:query_params => query_params,
|
549
585
|
:form_params => form_params,
|
550
586
|
:body => post_body,
|
551
587
|
:auth_names => auth_names,
|
552
|
-
:return_type =>
|
588
|
+
:return_type => return_type)
|
589
|
+
|
553
590
|
if @api_client.config.debugging
|
554
591
|
@api_client.config.logger.debug "API called: DataApi#get_district_for_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
555
592
|
end
|
556
593
|
return data, status_code, headers
|
557
594
|
end
|
558
595
|
# Returns the district for a course
|
559
|
-
# @param id
|
596
|
+
# @param id
|
560
597
|
# @param [Hash] opts the optional parameters
|
561
598
|
# @return [DistrictResponse]
|
562
599
|
def get_district_for_course(id, opts = {})
|
@@ -565,9 +602,9 @@ module Clever
|
|
565
602
|
end
|
566
603
|
|
567
604
|
# Returns the district for a course
|
568
|
-
# @param id
|
605
|
+
# @param id
|
569
606
|
# @param [Hash] opts the optional parameters
|
570
|
-
# @return [Array<(DistrictResponse,
|
607
|
+
# @return [Array<(DistrictResponse, Integer, Hash)>] DistrictResponse data, response status code and response headers
|
571
608
|
def get_district_for_course_with_http_info(id, opts = {})
|
572
609
|
if @api_client.config.debugging
|
573
610
|
@api_client.config.logger.debug 'Calling API: DataApi.get_district_for_course ...'
|
@@ -580,33 +617,37 @@ module Clever
|
|
580
617
|
local_var_path = '/courses/{id}/district'.sub('{' + 'id' + '}', id.to_s)
|
581
618
|
|
582
619
|
# query parameters
|
583
|
-
query_params = {}
|
620
|
+
query_params = opts[:query_params] || {}
|
584
621
|
|
585
622
|
# header parameters
|
586
|
-
header_params = {}
|
623
|
+
header_params = opts[:header_params] || {}
|
587
624
|
# HTTP header 'Accept' (if needed)
|
588
625
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
589
626
|
|
590
627
|
# form parameters
|
591
|
-
form_params = {}
|
628
|
+
form_params = opts[:form_params] || {}
|
592
629
|
|
593
630
|
# http body (model)
|
594
|
-
post_body =
|
595
|
-
|
631
|
+
post_body = opts[:body]
|
632
|
+
|
633
|
+
return_type = opts[:return_type] || 'DistrictResponse'
|
634
|
+
|
635
|
+
auth_names = opts[:auth_names] || ['oauth']
|
596
636
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
597
637
|
:header_params => header_params,
|
598
638
|
:query_params => query_params,
|
599
639
|
:form_params => form_params,
|
600
640
|
:body => post_body,
|
601
641
|
:auth_names => auth_names,
|
602
|
-
:return_type =>
|
642
|
+
:return_type => return_type)
|
643
|
+
|
603
644
|
if @api_client.config.debugging
|
604
645
|
@api_client.config.logger.debug "API called: DataApi#get_district_for_course\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
605
646
|
end
|
606
647
|
return data, status_code, headers
|
607
648
|
end
|
608
649
|
# Returns the district for a district admin
|
609
|
-
# @param id
|
650
|
+
# @param id
|
610
651
|
# @param [Hash] opts the optional parameters
|
611
652
|
# @return [DistrictResponse]
|
612
653
|
def get_district_for_district_admin(id, opts = {})
|
@@ -615,9 +656,9 @@ module Clever
|
|
615
656
|
end
|
616
657
|
|
617
658
|
# Returns the district for a district admin
|
618
|
-
# @param id
|
659
|
+
# @param id
|
619
660
|
# @param [Hash] opts the optional parameters
|
620
|
-
# @return [Array<(DistrictResponse,
|
661
|
+
# @return [Array<(DistrictResponse, Integer, Hash)>] DistrictResponse data, response status code and response headers
|
621
662
|
def get_district_for_district_admin_with_http_info(id, opts = {})
|
622
663
|
if @api_client.config.debugging
|
623
664
|
@api_client.config.logger.debug 'Calling API: DataApi.get_district_for_district_admin ...'
|
@@ -630,33 +671,37 @@ module Clever
|
|
630
671
|
local_var_path = '/district_admins/{id}/district'.sub('{' + 'id' + '}', id.to_s)
|
631
672
|
|
632
673
|
# query parameters
|
633
|
-
query_params = {}
|
674
|
+
query_params = opts[:query_params] || {}
|
634
675
|
|
635
676
|
# header parameters
|
636
|
-
header_params = {}
|
677
|
+
header_params = opts[:header_params] || {}
|
637
678
|
# HTTP header 'Accept' (if needed)
|
638
679
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
639
680
|
|
640
681
|
# form parameters
|
641
|
-
form_params = {}
|
682
|
+
form_params = opts[:form_params] || {}
|
642
683
|
|
643
684
|
# http body (model)
|
644
|
-
post_body =
|
645
|
-
|
685
|
+
post_body = opts[:body]
|
686
|
+
|
687
|
+
return_type = opts[:return_type] || 'DistrictResponse'
|
688
|
+
|
689
|
+
auth_names = opts[:auth_names] || ['oauth']
|
646
690
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
647
691
|
:header_params => header_params,
|
648
692
|
:query_params => query_params,
|
649
693
|
:form_params => form_params,
|
650
694
|
:body => post_body,
|
651
695
|
:auth_names => auth_names,
|
652
|
-
:return_type =>
|
696
|
+
:return_type => return_type)
|
697
|
+
|
653
698
|
if @api_client.config.debugging
|
654
699
|
@api_client.config.logger.debug "API called: DataApi#get_district_for_district_admin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
655
700
|
end
|
656
701
|
return data, status_code, headers
|
657
702
|
end
|
658
703
|
# Returns the district for a school
|
659
|
-
# @param id
|
704
|
+
# @param id
|
660
705
|
# @param [Hash] opts the optional parameters
|
661
706
|
# @return [DistrictResponse]
|
662
707
|
def get_district_for_school(id, opts = {})
|
@@ -665,9 +710,9 @@ module Clever
|
|
665
710
|
end
|
666
711
|
|
667
712
|
# Returns the district for a school
|
668
|
-
# @param id
|
713
|
+
# @param id
|
669
714
|
# @param [Hash] opts the optional parameters
|
670
|
-
# @return [Array<(DistrictResponse,
|
715
|
+
# @return [Array<(DistrictResponse, Integer, Hash)>] DistrictResponse data, response status code and response headers
|
671
716
|
def get_district_for_school_with_http_info(id, opts = {})
|
672
717
|
if @api_client.config.debugging
|
673
718
|
@api_client.config.logger.debug 'Calling API: DataApi.get_district_for_school ...'
|
@@ -680,33 +725,37 @@ module Clever
|
|
680
725
|
local_var_path = '/schools/{id}/district'.sub('{' + 'id' + '}', id.to_s)
|
681
726
|
|
682
727
|
# query parameters
|
683
|
-
query_params = {}
|
728
|
+
query_params = opts[:query_params] || {}
|
684
729
|
|
685
730
|
# header parameters
|
686
|
-
header_params = {}
|
731
|
+
header_params = opts[:header_params] || {}
|
687
732
|
# HTTP header 'Accept' (if needed)
|
688
733
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
689
734
|
|
690
735
|
# form parameters
|
691
|
-
form_params = {}
|
736
|
+
form_params = opts[:form_params] || {}
|
692
737
|
|
693
738
|
# http body (model)
|
694
|
-
post_body =
|
695
|
-
|
739
|
+
post_body = opts[:body]
|
740
|
+
|
741
|
+
return_type = opts[:return_type] || 'DistrictResponse'
|
742
|
+
|
743
|
+
auth_names = opts[:auth_names] || ['oauth']
|
696
744
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
697
745
|
:header_params => header_params,
|
698
746
|
:query_params => query_params,
|
699
747
|
:form_params => form_params,
|
700
748
|
:body => post_body,
|
701
749
|
:auth_names => auth_names,
|
702
|
-
:return_type =>
|
750
|
+
:return_type => return_type)
|
751
|
+
|
703
752
|
if @api_client.config.debugging
|
704
753
|
@api_client.config.logger.debug "API called: DataApi#get_district_for_school\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
705
754
|
end
|
706
755
|
return data, status_code, headers
|
707
756
|
end
|
708
757
|
# Returns the district for a school admin
|
709
|
-
# @param id
|
758
|
+
# @param id
|
710
759
|
# @param [Hash] opts the optional parameters
|
711
760
|
# @return [DistrictResponse]
|
712
761
|
def get_district_for_school_admin(id, opts = {})
|
@@ -715,9 +764,9 @@ module Clever
|
|
715
764
|
end
|
716
765
|
|
717
766
|
# Returns the district for a school admin
|
718
|
-
# @param id
|
767
|
+
# @param id
|
719
768
|
# @param [Hash] opts the optional parameters
|
720
|
-
# @return [Array<(DistrictResponse,
|
769
|
+
# @return [Array<(DistrictResponse, Integer, Hash)>] DistrictResponse data, response status code and response headers
|
721
770
|
def get_district_for_school_admin_with_http_info(id, opts = {})
|
722
771
|
if @api_client.config.debugging
|
723
772
|
@api_client.config.logger.debug 'Calling API: DataApi.get_district_for_school_admin ...'
|
@@ -730,33 +779,37 @@ module Clever
|
|
730
779
|
local_var_path = '/school_admins/{id}/district'.sub('{' + 'id' + '}', id.to_s)
|
731
780
|
|
732
781
|
# query parameters
|
733
|
-
query_params = {}
|
782
|
+
query_params = opts[:query_params] || {}
|
734
783
|
|
735
784
|
# header parameters
|
736
|
-
header_params = {}
|
785
|
+
header_params = opts[:header_params] || {}
|
737
786
|
# HTTP header 'Accept' (if needed)
|
738
787
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
739
788
|
|
740
789
|
# form parameters
|
741
|
-
form_params = {}
|
790
|
+
form_params = opts[:form_params] || {}
|
742
791
|
|
743
792
|
# http body (model)
|
744
|
-
post_body =
|
745
|
-
|
793
|
+
post_body = opts[:body]
|
794
|
+
|
795
|
+
return_type = opts[:return_type] || 'DistrictResponse'
|
796
|
+
|
797
|
+
auth_names = opts[:auth_names] || ['oauth']
|
746
798
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
747
799
|
:header_params => header_params,
|
748
800
|
:query_params => query_params,
|
749
801
|
:form_params => form_params,
|
750
802
|
:body => post_body,
|
751
803
|
:auth_names => auth_names,
|
752
|
-
:return_type =>
|
804
|
+
:return_type => return_type)
|
805
|
+
|
753
806
|
if @api_client.config.debugging
|
754
807
|
@api_client.config.logger.debug "API called: DataApi#get_district_for_school_admin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
755
808
|
end
|
756
809
|
return data, status_code, headers
|
757
810
|
end
|
758
811
|
# Returns the district for a section
|
759
|
-
# @param id
|
812
|
+
# @param id
|
760
813
|
# @param [Hash] opts the optional parameters
|
761
814
|
# @return [DistrictResponse]
|
762
815
|
def get_district_for_section(id, opts = {})
|
@@ -765,9 +818,9 @@ module Clever
|
|
765
818
|
end
|
766
819
|
|
767
820
|
# Returns the district for a section
|
768
|
-
# @param id
|
821
|
+
# @param id
|
769
822
|
# @param [Hash] opts the optional parameters
|
770
|
-
# @return [Array<(DistrictResponse,
|
823
|
+
# @return [Array<(DistrictResponse, Integer, Hash)>] DistrictResponse data, response status code and response headers
|
771
824
|
def get_district_for_section_with_http_info(id, opts = {})
|
772
825
|
if @api_client.config.debugging
|
773
826
|
@api_client.config.logger.debug 'Calling API: DataApi.get_district_for_section ...'
|
@@ -780,33 +833,37 @@ module Clever
|
|
780
833
|
local_var_path = '/sections/{id}/district'.sub('{' + 'id' + '}', id.to_s)
|
781
834
|
|
782
835
|
# query parameters
|
783
|
-
query_params = {}
|
836
|
+
query_params = opts[:query_params] || {}
|
784
837
|
|
785
838
|
# header parameters
|
786
|
-
header_params = {}
|
839
|
+
header_params = opts[:header_params] || {}
|
787
840
|
# HTTP header 'Accept' (if needed)
|
788
841
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
789
842
|
|
790
843
|
# form parameters
|
791
|
-
form_params = {}
|
844
|
+
form_params = opts[:form_params] || {}
|
792
845
|
|
793
846
|
# http body (model)
|
794
|
-
post_body =
|
795
|
-
|
847
|
+
post_body = opts[:body]
|
848
|
+
|
849
|
+
return_type = opts[:return_type] || 'DistrictResponse'
|
850
|
+
|
851
|
+
auth_names = opts[:auth_names] || ['oauth']
|
796
852
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
797
853
|
:header_params => header_params,
|
798
854
|
:query_params => query_params,
|
799
855
|
:form_params => form_params,
|
800
856
|
:body => post_body,
|
801
857
|
:auth_names => auth_names,
|
802
|
-
:return_type =>
|
858
|
+
:return_type => return_type)
|
859
|
+
|
803
860
|
if @api_client.config.debugging
|
804
861
|
@api_client.config.logger.debug "API called: DataApi#get_district_for_section\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
805
862
|
end
|
806
863
|
return data, status_code, headers
|
807
864
|
end
|
808
865
|
# Returns the district for a student
|
809
|
-
# @param id
|
866
|
+
# @param id
|
810
867
|
# @param [Hash] opts the optional parameters
|
811
868
|
# @return [DistrictResponse]
|
812
869
|
def get_district_for_student(id, opts = {})
|
@@ -815,9 +872,9 @@ module Clever
|
|
815
872
|
end
|
816
873
|
|
817
874
|
# Returns the district for a student
|
818
|
-
# @param id
|
875
|
+
# @param id
|
819
876
|
# @param [Hash] opts the optional parameters
|
820
|
-
# @return [Array<(DistrictResponse,
|
877
|
+
# @return [Array<(DistrictResponse, Integer, Hash)>] DistrictResponse data, response status code and response headers
|
821
878
|
def get_district_for_student_with_http_info(id, opts = {})
|
822
879
|
if @api_client.config.debugging
|
823
880
|
@api_client.config.logger.debug 'Calling API: DataApi.get_district_for_student ...'
|
@@ -830,33 +887,37 @@ module Clever
|
|
830
887
|
local_var_path = '/students/{id}/district'.sub('{' + 'id' + '}', id.to_s)
|
831
888
|
|
832
889
|
# query parameters
|
833
|
-
query_params = {}
|
890
|
+
query_params = opts[:query_params] || {}
|
834
891
|
|
835
892
|
# header parameters
|
836
|
-
header_params = {}
|
893
|
+
header_params = opts[:header_params] || {}
|
837
894
|
# HTTP header 'Accept' (if needed)
|
838
895
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
839
896
|
|
840
897
|
# form parameters
|
841
|
-
form_params = {}
|
898
|
+
form_params = opts[:form_params] || {}
|
842
899
|
|
843
900
|
# http body (model)
|
844
|
-
post_body =
|
845
|
-
|
901
|
+
post_body = opts[:body]
|
902
|
+
|
903
|
+
return_type = opts[:return_type] || 'DistrictResponse'
|
904
|
+
|
905
|
+
auth_names = opts[:auth_names] || ['oauth']
|
846
906
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
847
907
|
:header_params => header_params,
|
848
908
|
:query_params => query_params,
|
849
909
|
:form_params => form_params,
|
850
910
|
:body => post_body,
|
851
911
|
:auth_names => auth_names,
|
852
|
-
:return_type =>
|
912
|
+
:return_type => return_type)
|
913
|
+
|
853
914
|
if @api_client.config.debugging
|
854
915
|
@api_client.config.logger.debug "API called: DataApi#get_district_for_student\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
855
916
|
end
|
856
917
|
return data, status_code, headers
|
857
918
|
end
|
858
919
|
# Returns the district for a teacher
|
859
|
-
# @param id
|
920
|
+
# @param id
|
860
921
|
# @param [Hash] opts the optional parameters
|
861
922
|
# @return [DistrictResponse]
|
862
923
|
def get_district_for_teacher(id, opts = {})
|
@@ -865,9 +926,9 @@ module Clever
|
|
865
926
|
end
|
866
927
|
|
867
928
|
# Returns the district for a teacher
|
868
|
-
# @param id
|
929
|
+
# @param id
|
869
930
|
# @param [Hash] opts the optional parameters
|
870
|
-
# @return [Array<(DistrictResponse,
|
931
|
+
# @return [Array<(DistrictResponse, Integer, Hash)>] DistrictResponse data, response status code and response headers
|
871
932
|
def get_district_for_teacher_with_http_info(id, opts = {})
|
872
933
|
if @api_client.config.debugging
|
873
934
|
@api_client.config.logger.debug 'Calling API: DataApi.get_district_for_teacher ...'
|
@@ -880,33 +941,37 @@ module Clever
|
|
880
941
|
local_var_path = '/teachers/{id}/district'.sub('{' + 'id' + '}', id.to_s)
|
881
942
|
|
882
943
|
# query parameters
|
883
|
-
query_params = {}
|
944
|
+
query_params = opts[:query_params] || {}
|
884
945
|
|
885
946
|
# header parameters
|
886
|
-
header_params = {}
|
947
|
+
header_params = opts[:header_params] || {}
|
887
948
|
# HTTP header 'Accept' (if needed)
|
888
949
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
889
950
|
|
890
951
|
# form parameters
|
891
|
-
form_params = {}
|
952
|
+
form_params = opts[:form_params] || {}
|
892
953
|
|
893
954
|
# http body (model)
|
894
|
-
post_body =
|
895
|
-
|
955
|
+
post_body = opts[:body]
|
956
|
+
|
957
|
+
return_type = opts[:return_type] || 'DistrictResponse'
|
958
|
+
|
959
|
+
auth_names = opts[:auth_names] || ['oauth']
|
896
960
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
897
961
|
:header_params => header_params,
|
898
962
|
:query_params => query_params,
|
899
963
|
:form_params => form_params,
|
900
964
|
:body => post_body,
|
901
965
|
:auth_names => auth_names,
|
902
|
-
:return_type =>
|
966
|
+
:return_type => return_type)
|
967
|
+
|
903
968
|
if @api_client.config.debugging
|
904
969
|
@api_client.config.logger.debug "API called: DataApi#get_district_for_teacher\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
905
970
|
end
|
906
971
|
return data, status_code, headers
|
907
972
|
end
|
908
973
|
# Returns the district for a term
|
909
|
-
# @param id
|
974
|
+
# @param id
|
910
975
|
# @param [Hash] opts the optional parameters
|
911
976
|
# @return [DistrictResponse]
|
912
977
|
def get_district_for_term(id, opts = {})
|
@@ -915,9 +980,9 @@ module Clever
|
|
915
980
|
end
|
916
981
|
|
917
982
|
# Returns the district for a term
|
918
|
-
# @param id
|
983
|
+
# @param id
|
919
984
|
# @param [Hash] opts the optional parameters
|
920
|
-
# @return [Array<(DistrictResponse,
|
985
|
+
# @return [Array<(DistrictResponse, Integer, Hash)>] DistrictResponse data, response status code and response headers
|
921
986
|
def get_district_for_term_with_http_info(id, opts = {})
|
922
987
|
if @api_client.config.debugging
|
923
988
|
@api_client.config.logger.debug 'Calling API: DataApi.get_district_for_term ...'
|
@@ -930,83 +995,91 @@ module Clever
|
|
930
995
|
local_var_path = '/terms/{id}/district'.sub('{' + 'id' + '}', id.to_s)
|
931
996
|
|
932
997
|
# query parameters
|
933
|
-
query_params = {}
|
998
|
+
query_params = opts[:query_params] || {}
|
934
999
|
|
935
1000
|
# header parameters
|
936
|
-
header_params = {}
|
1001
|
+
header_params = opts[:header_params] || {}
|
937
1002
|
# HTTP header 'Accept' (if needed)
|
938
1003
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
939
1004
|
|
940
1005
|
# form parameters
|
941
|
-
form_params = {}
|
1006
|
+
form_params = opts[:form_params] || {}
|
942
1007
|
|
943
1008
|
# http body (model)
|
944
|
-
post_body =
|
945
|
-
|
1009
|
+
post_body = opts[:body]
|
1010
|
+
|
1011
|
+
return_type = opts[:return_type] || 'DistrictResponse'
|
1012
|
+
|
1013
|
+
auth_names = opts[:auth_names] || ['oauth']
|
946
1014
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
947
1015
|
:header_params => header_params,
|
948
1016
|
:query_params => query_params,
|
949
1017
|
:form_params => form_params,
|
950
1018
|
:body => post_body,
|
951
1019
|
:auth_names => auth_names,
|
952
|
-
:return_type =>
|
1020
|
+
:return_type => return_type)
|
1021
|
+
|
953
1022
|
if @api_client.config.debugging
|
954
1023
|
@api_client.config.logger.debug "API called: DataApi#get_district_for_term\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
955
1024
|
end
|
956
1025
|
return data, status_code, headers
|
957
1026
|
end
|
958
|
-
# Returns a list of districts
|
1027
|
+
# Returns a list of districts. In practice this will only return the one district associated with the bearer token
|
959
1028
|
# @param [Hash] opts the optional parameters
|
960
|
-
# @option opts [String] :count
|
1029
|
+
# @option opts [String] :count
|
961
1030
|
# @return [DistrictsResponse]
|
962
1031
|
def get_districts(opts = {})
|
963
1032
|
data, _status_code, _headers = get_districts_with_http_info(opts)
|
964
1033
|
data
|
965
1034
|
end
|
966
1035
|
|
967
|
-
# Returns a list of districts
|
1036
|
+
# Returns a list of districts. In practice this will only return the one district associated with the bearer token
|
968
1037
|
# @param [Hash] opts the optional parameters
|
969
|
-
# @option opts [String] :count
|
970
|
-
# @return [Array<(DistrictsResponse,
|
1038
|
+
# @option opts [String] :count
|
1039
|
+
# @return [Array<(DistrictsResponse, Integer, Hash)>] DistrictsResponse data, response status code and response headers
|
971
1040
|
def get_districts_with_http_info(opts = {})
|
972
1041
|
if @api_client.config.debugging
|
973
1042
|
@api_client.config.logger.debug 'Calling API: DataApi.get_districts ...'
|
974
1043
|
end
|
975
|
-
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true'].include?(opts[:'count'])
|
976
|
-
fail ArgumentError, 'invalid value for "count", must be one of , true'
|
1044
|
+
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true', 'false', 'undefined'].include?(opts[:'count'])
|
1045
|
+
fail ArgumentError, 'invalid value for "count", must be one of , true, false, undefined'
|
977
1046
|
end
|
978
1047
|
# resource path
|
979
1048
|
local_var_path = '/districts'
|
980
1049
|
|
981
1050
|
# query parameters
|
982
|
-
query_params = {}
|
1051
|
+
query_params = opts[:query_params] || {}
|
983
1052
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
984
1053
|
|
985
1054
|
# header parameters
|
986
|
-
header_params = {}
|
1055
|
+
header_params = opts[:header_params] || {}
|
987
1056
|
# HTTP header 'Accept' (if needed)
|
988
1057
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
989
1058
|
|
990
1059
|
# form parameters
|
991
|
-
form_params = {}
|
1060
|
+
form_params = opts[:form_params] || {}
|
992
1061
|
|
993
1062
|
# http body (model)
|
994
|
-
post_body =
|
995
|
-
|
1063
|
+
post_body = opts[:body]
|
1064
|
+
|
1065
|
+
return_type = opts[:return_type] || 'DistrictsResponse'
|
1066
|
+
|
1067
|
+
auth_names = opts[:auth_names] || ['oauth']
|
996
1068
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
997
1069
|
:header_params => header_params,
|
998
1070
|
:query_params => query_params,
|
999
1071
|
:form_params => form_params,
|
1000
1072
|
:body => post_body,
|
1001
1073
|
:auth_names => auth_names,
|
1002
|
-
:return_type =>
|
1074
|
+
:return_type => return_type)
|
1075
|
+
|
1003
1076
|
if @api_client.config.debugging
|
1004
1077
|
@api_client.config.logger.debug "API called: DataApi#get_districts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1005
1078
|
end
|
1006
1079
|
return data, status_code, headers
|
1007
1080
|
end
|
1008
1081
|
# Returns a specific school
|
1009
|
-
# @param id
|
1082
|
+
# @param id
|
1010
1083
|
# @param [Hash] opts the optional parameters
|
1011
1084
|
# @return [SchoolResponse]
|
1012
1085
|
def get_school(id, opts = {})
|
@@ -1015,9 +1088,9 @@ module Clever
|
|
1015
1088
|
end
|
1016
1089
|
|
1017
1090
|
# Returns a specific school
|
1018
|
-
# @param id
|
1091
|
+
# @param id
|
1019
1092
|
# @param [Hash] opts the optional parameters
|
1020
|
-
# @return [Array<(SchoolResponse,
|
1093
|
+
# @return [Array<(SchoolResponse, Integer, Hash)>] SchoolResponse data, response status code and response headers
|
1021
1094
|
def get_school_with_http_info(id, opts = {})
|
1022
1095
|
if @api_client.config.debugging
|
1023
1096
|
@api_client.config.logger.debug 'Calling API: DataApi.get_school ...'
|
@@ -1030,33 +1103,37 @@ module Clever
|
|
1030
1103
|
local_var_path = '/schools/{id}'.sub('{' + 'id' + '}', id.to_s)
|
1031
1104
|
|
1032
1105
|
# query parameters
|
1033
|
-
query_params = {}
|
1106
|
+
query_params = opts[:query_params] || {}
|
1034
1107
|
|
1035
1108
|
# header parameters
|
1036
|
-
header_params = {}
|
1109
|
+
header_params = opts[:header_params] || {}
|
1037
1110
|
# HTTP header 'Accept' (if needed)
|
1038
1111
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1039
1112
|
|
1040
1113
|
# form parameters
|
1041
|
-
form_params = {}
|
1114
|
+
form_params = opts[:form_params] || {}
|
1042
1115
|
|
1043
1116
|
# http body (model)
|
1044
|
-
post_body =
|
1045
|
-
|
1117
|
+
post_body = opts[:body]
|
1118
|
+
|
1119
|
+
return_type = opts[:return_type] || 'SchoolResponse'
|
1120
|
+
|
1121
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1046
1122
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1047
1123
|
:header_params => header_params,
|
1048
1124
|
:query_params => query_params,
|
1049
1125
|
:form_params => form_params,
|
1050
1126
|
:body => post_body,
|
1051
1127
|
:auth_names => auth_names,
|
1052
|
-
:return_type =>
|
1128
|
+
:return_type => return_type)
|
1129
|
+
|
1053
1130
|
if @api_client.config.debugging
|
1054
1131
|
@api_client.config.logger.debug "API called: DataApi#get_school\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1055
1132
|
end
|
1056
1133
|
return data, status_code, headers
|
1057
1134
|
end
|
1058
1135
|
# Returns a specific school admin
|
1059
|
-
# @param id
|
1136
|
+
# @param id
|
1060
1137
|
# @param [Hash] opts the optional parameters
|
1061
1138
|
# @return [SchoolAdminResponse]
|
1062
1139
|
def get_school_admin(id, opts = {})
|
@@ -1065,9 +1142,9 @@ module Clever
|
|
1065
1142
|
end
|
1066
1143
|
|
1067
1144
|
# Returns a specific school admin
|
1068
|
-
# @param id
|
1145
|
+
# @param id
|
1069
1146
|
# @param [Hash] opts the optional parameters
|
1070
|
-
# @return [Array<(SchoolAdminResponse,
|
1147
|
+
# @return [Array<(SchoolAdminResponse, Integer, Hash)>] SchoolAdminResponse data, response status code and response headers
|
1071
1148
|
def get_school_admin_with_http_info(id, opts = {})
|
1072
1149
|
if @api_client.config.debugging
|
1073
1150
|
@api_client.config.logger.debug 'Calling API: DataApi.get_school_admin ...'
|
@@ -1080,26 +1157,30 @@ module Clever
|
|
1080
1157
|
local_var_path = '/school_admins/{id}'.sub('{' + 'id' + '}', id.to_s)
|
1081
1158
|
|
1082
1159
|
# query parameters
|
1083
|
-
query_params = {}
|
1160
|
+
query_params = opts[:query_params] || {}
|
1084
1161
|
|
1085
1162
|
# header parameters
|
1086
|
-
header_params = {}
|
1163
|
+
header_params = opts[:header_params] || {}
|
1087
1164
|
# HTTP header 'Accept' (if needed)
|
1088
1165
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1089
1166
|
|
1090
1167
|
# form parameters
|
1091
|
-
form_params = {}
|
1168
|
+
form_params = opts[:form_params] || {}
|
1092
1169
|
|
1093
1170
|
# http body (model)
|
1094
|
-
post_body =
|
1095
|
-
|
1171
|
+
post_body = opts[:body]
|
1172
|
+
|
1173
|
+
return_type = opts[:return_type] || 'SchoolAdminResponse'
|
1174
|
+
|
1175
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1096
1176
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1097
1177
|
:header_params => header_params,
|
1098
1178
|
:query_params => query_params,
|
1099
1179
|
:form_params => form_params,
|
1100
1180
|
:body => post_body,
|
1101
1181
|
:auth_names => auth_names,
|
1102
|
-
:return_type =>
|
1182
|
+
:return_type => return_type)
|
1183
|
+
|
1103
1184
|
if @api_client.config.debugging
|
1104
1185
|
@api_client.config.logger.debug "API called: DataApi#get_school_admin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1105
1186
|
end
|
@@ -1107,10 +1188,10 @@ module Clever
|
|
1107
1188
|
end
|
1108
1189
|
# Returns a list of school admins
|
1109
1190
|
# @param [Hash] opts the optional parameters
|
1110
|
-
# @option opts [Integer] :limit
|
1111
|
-
# @option opts [String] :starting_after
|
1112
|
-
# @option opts [String] :ending_before
|
1113
|
-
# @option opts [String] :count
|
1191
|
+
# @option opts [Integer] :limit
|
1192
|
+
# @option opts [String] :starting_after
|
1193
|
+
# @option opts [String] :ending_before
|
1194
|
+
# @option opts [String] :count
|
1114
1195
|
# @return [SchoolAdminsResponse]
|
1115
1196
|
def get_school_admins(opts = {})
|
1116
1197
|
data, _status_code, _headers = get_school_admins_with_http_info(opts)
|
@@ -1119,53 +1200,57 @@ module Clever
|
|
1119
1200
|
|
1120
1201
|
# Returns a list of school admins
|
1121
1202
|
# @param [Hash] opts the optional parameters
|
1122
|
-
# @option opts [Integer] :limit
|
1123
|
-
# @option opts [String] :starting_after
|
1124
|
-
# @option opts [String] :ending_before
|
1125
|
-
# @option opts [String] :count
|
1126
|
-
# @return [Array<(SchoolAdminsResponse,
|
1203
|
+
# @option opts [Integer] :limit
|
1204
|
+
# @option opts [String] :starting_after
|
1205
|
+
# @option opts [String] :ending_before
|
1206
|
+
# @option opts [String] :count
|
1207
|
+
# @return [Array<(SchoolAdminsResponse, Integer, Hash)>] SchoolAdminsResponse data, response status code and response headers
|
1127
1208
|
def get_school_admins_with_http_info(opts = {})
|
1128
1209
|
if @api_client.config.debugging
|
1129
1210
|
@api_client.config.logger.debug 'Calling API: DataApi.get_school_admins ...'
|
1130
1211
|
end
|
1131
|
-
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true'].include?(opts[:'count'])
|
1132
|
-
fail ArgumentError, 'invalid value for "count", must be one of , true'
|
1212
|
+
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true', 'false', 'undefined'].include?(opts[:'count'])
|
1213
|
+
fail ArgumentError, 'invalid value for "count", must be one of , true, false, undefined'
|
1133
1214
|
end
|
1134
1215
|
# resource path
|
1135
1216
|
local_var_path = '/school_admins'
|
1136
1217
|
|
1137
1218
|
# query parameters
|
1138
|
-
query_params = {}
|
1219
|
+
query_params = opts[:query_params] || {}
|
1139
1220
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1140
1221
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
1141
1222
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
1142
1223
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
1143
1224
|
|
1144
1225
|
# header parameters
|
1145
|
-
header_params = {}
|
1226
|
+
header_params = opts[:header_params] || {}
|
1146
1227
|
# HTTP header 'Accept' (if needed)
|
1147
1228
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1148
1229
|
|
1149
1230
|
# form parameters
|
1150
|
-
form_params = {}
|
1231
|
+
form_params = opts[:form_params] || {}
|
1151
1232
|
|
1152
1233
|
# http body (model)
|
1153
|
-
post_body =
|
1154
|
-
|
1234
|
+
post_body = opts[:body]
|
1235
|
+
|
1236
|
+
return_type = opts[:return_type] || 'SchoolAdminsResponse'
|
1237
|
+
|
1238
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1155
1239
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1156
1240
|
:header_params => header_params,
|
1157
1241
|
:query_params => query_params,
|
1158
1242
|
:form_params => form_params,
|
1159
1243
|
:body => post_body,
|
1160
1244
|
:auth_names => auth_names,
|
1161
|
-
:return_type =>
|
1245
|
+
:return_type => return_type)
|
1246
|
+
|
1162
1247
|
if @api_client.config.debugging
|
1163
1248
|
@api_client.config.logger.debug "API called: DataApi#get_school_admins\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1164
1249
|
end
|
1165
1250
|
return data, status_code, headers
|
1166
1251
|
end
|
1167
1252
|
# Returns the school for a section
|
1168
|
-
# @param id
|
1253
|
+
# @param id
|
1169
1254
|
# @param [Hash] opts the optional parameters
|
1170
1255
|
# @return [SchoolResponse]
|
1171
1256
|
def get_school_for_section(id, opts = {})
|
@@ -1174,9 +1259,9 @@ module Clever
|
|
1174
1259
|
end
|
1175
1260
|
|
1176
1261
|
# Returns the school for a section
|
1177
|
-
# @param id
|
1262
|
+
# @param id
|
1178
1263
|
# @param [Hash] opts the optional parameters
|
1179
|
-
# @return [Array<(SchoolResponse,
|
1264
|
+
# @return [Array<(SchoolResponse, Integer, Hash)>] SchoolResponse data, response status code and response headers
|
1180
1265
|
def get_school_for_section_with_http_info(id, opts = {})
|
1181
1266
|
if @api_client.config.debugging
|
1182
1267
|
@api_client.config.logger.debug 'Calling API: DataApi.get_school_for_section ...'
|
@@ -1189,33 +1274,37 @@ module Clever
|
|
1189
1274
|
local_var_path = '/sections/{id}/school'.sub('{' + 'id' + '}', id.to_s)
|
1190
1275
|
|
1191
1276
|
# query parameters
|
1192
|
-
query_params = {}
|
1277
|
+
query_params = opts[:query_params] || {}
|
1193
1278
|
|
1194
1279
|
# header parameters
|
1195
|
-
header_params = {}
|
1280
|
+
header_params = opts[:header_params] || {}
|
1196
1281
|
# HTTP header 'Accept' (if needed)
|
1197
1282
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1198
1283
|
|
1199
1284
|
# form parameters
|
1200
|
-
form_params = {}
|
1285
|
+
form_params = opts[:form_params] || {}
|
1201
1286
|
|
1202
1287
|
# http body (model)
|
1203
|
-
post_body =
|
1204
|
-
|
1288
|
+
post_body = opts[:body]
|
1289
|
+
|
1290
|
+
return_type = opts[:return_type] || 'SchoolResponse'
|
1291
|
+
|
1292
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1205
1293
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1206
1294
|
:header_params => header_params,
|
1207
1295
|
:query_params => query_params,
|
1208
1296
|
:form_params => form_params,
|
1209
1297
|
:body => post_body,
|
1210
1298
|
:auth_names => auth_names,
|
1211
|
-
:return_type =>
|
1299
|
+
:return_type => return_type)
|
1300
|
+
|
1212
1301
|
if @api_client.config.debugging
|
1213
1302
|
@api_client.config.logger.debug "API called: DataApi#get_school_for_section\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1214
1303
|
end
|
1215
1304
|
return data, status_code, headers
|
1216
1305
|
end
|
1217
1306
|
# Returns the primary school for a student
|
1218
|
-
# @param id
|
1307
|
+
# @param id
|
1219
1308
|
# @param [Hash] opts the optional parameters
|
1220
1309
|
# @return [SchoolResponse]
|
1221
1310
|
def get_school_for_student(id, opts = {})
|
@@ -1224,9 +1313,9 @@ module Clever
|
|
1224
1313
|
end
|
1225
1314
|
|
1226
1315
|
# Returns the primary school for a student
|
1227
|
-
# @param id
|
1316
|
+
# @param id
|
1228
1317
|
# @param [Hash] opts the optional parameters
|
1229
|
-
# @return [Array<(SchoolResponse,
|
1318
|
+
# @return [Array<(SchoolResponse, Integer, Hash)>] SchoolResponse data, response status code and response headers
|
1230
1319
|
def get_school_for_student_with_http_info(id, opts = {})
|
1231
1320
|
if @api_client.config.debugging
|
1232
1321
|
@api_client.config.logger.debug 'Calling API: DataApi.get_school_for_student ...'
|
@@ -1239,33 +1328,37 @@ module Clever
|
|
1239
1328
|
local_var_path = '/students/{id}/school'.sub('{' + 'id' + '}', id.to_s)
|
1240
1329
|
|
1241
1330
|
# query parameters
|
1242
|
-
query_params = {}
|
1331
|
+
query_params = opts[:query_params] || {}
|
1243
1332
|
|
1244
1333
|
# header parameters
|
1245
|
-
header_params = {}
|
1334
|
+
header_params = opts[:header_params] || {}
|
1246
1335
|
# HTTP header 'Accept' (if needed)
|
1247
1336
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1248
1337
|
|
1249
1338
|
# form parameters
|
1250
|
-
form_params = {}
|
1339
|
+
form_params = opts[:form_params] || {}
|
1251
1340
|
|
1252
1341
|
# http body (model)
|
1253
|
-
post_body =
|
1254
|
-
|
1342
|
+
post_body = opts[:body]
|
1343
|
+
|
1344
|
+
return_type = opts[:return_type] || 'SchoolResponse'
|
1345
|
+
|
1346
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1255
1347
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1256
1348
|
:header_params => header_params,
|
1257
1349
|
:query_params => query_params,
|
1258
1350
|
:form_params => form_params,
|
1259
1351
|
:body => post_body,
|
1260
1352
|
:auth_names => auth_names,
|
1261
|
-
:return_type =>
|
1353
|
+
:return_type => return_type)
|
1354
|
+
|
1262
1355
|
if @api_client.config.debugging
|
1263
1356
|
@api_client.config.logger.debug "API called: DataApi#get_school_for_student\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1264
1357
|
end
|
1265
1358
|
return data, status_code, headers
|
1266
1359
|
end
|
1267
1360
|
# Retrieves school info for a teacher.
|
1268
|
-
# @param id
|
1361
|
+
# @param id
|
1269
1362
|
# @param [Hash] opts the optional parameters
|
1270
1363
|
# @return [SchoolResponse]
|
1271
1364
|
def get_school_for_teacher(id, opts = {})
|
@@ -1274,9 +1367,9 @@ module Clever
|
|
1274
1367
|
end
|
1275
1368
|
|
1276
1369
|
# Retrieves school info for a teacher.
|
1277
|
-
# @param id
|
1370
|
+
# @param id
|
1278
1371
|
# @param [Hash] opts the optional parameters
|
1279
|
-
# @return [Array<(SchoolResponse,
|
1372
|
+
# @return [Array<(SchoolResponse, Integer, Hash)>] SchoolResponse data, response status code and response headers
|
1280
1373
|
def get_school_for_teacher_with_http_info(id, opts = {})
|
1281
1374
|
if @api_client.config.debugging
|
1282
1375
|
@api_client.config.logger.debug 'Calling API: DataApi.get_school_for_teacher ...'
|
@@ -1289,26 +1382,30 @@ module Clever
|
|
1289
1382
|
local_var_path = '/teachers/{id}/school'.sub('{' + 'id' + '}', id.to_s)
|
1290
1383
|
|
1291
1384
|
# query parameters
|
1292
|
-
query_params = {}
|
1385
|
+
query_params = opts[:query_params] || {}
|
1293
1386
|
|
1294
1387
|
# header parameters
|
1295
|
-
header_params = {}
|
1388
|
+
header_params = opts[:header_params] || {}
|
1296
1389
|
# HTTP header 'Accept' (if needed)
|
1297
1390
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1298
1391
|
|
1299
1392
|
# form parameters
|
1300
|
-
form_params = {}
|
1393
|
+
form_params = opts[:form_params] || {}
|
1301
1394
|
|
1302
1395
|
# http body (model)
|
1303
|
-
post_body =
|
1304
|
-
|
1396
|
+
post_body = opts[:body]
|
1397
|
+
|
1398
|
+
return_type = opts[:return_type] || 'SchoolResponse'
|
1399
|
+
|
1400
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1305
1401
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1306
1402
|
:header_params => header_params,
|
1307
1403
|
:query_params => query_params,
|
1308
1404
|
:form_params => form_params,
|
1309
1405
|
:body => post_body,
|
1310
1406
|
:auth_names => auth_names,
|
1311
|
-
:return_type =>
|
1407
|
+
:return_type => return_type)
|
1408
|
+
|
1312
1409
|
if @api_client.config.debugging
|
1313
1410
|
@api_client.config.logger.debug "API called: DataApi#get_school_for_teacher\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1314
1411
|
end
|
@@ -1316,10 +1413,10 @@ module Clever
|
|
1316
1413
|
end
|
1317
1414
|
# Returns a list of schools
|
1318
1415
|
# @param [Hash] opts the optional parameters
|
1319
|
-
# @option opts [Integer] :limit
|
1320
|
-
# @option opts [String] :starting_after
|
1321
|
-
# @option opts [String] :ending_before
|
1322
|
-
# @option opts [String] :count
|
1416
|
+
# @option opts [Integer] :limit
|
1417
|
+
# @option opts [String] :starting_after
|
1418
|
+
# @option opts [String] :ending_before
|
1419
|
+
# @option opts [String] :count
|
1323
1420
|
# @return [SchoolsResponse]
|
1324
1421
|
def get_schools(opts = {})
|
1325
1422
|
data, _status_code, _headers = get_schools_with_http_info(opts)
|
@@ -1328,57 +1425,61 @@ module Clever
|
|
1328
1425
|
|
1329
1426
|
# Returns a list of schools
|
1330
1427
|
# @param [Hash] opts the optional parameters
|
1331
|
-
# @option opts [Integer] :limit
|
1332
|
-
# @option opts [String] :starting_after
|
1333
|
-
# @option opts [String] :ending_before
|
1334
|
-
# @option opts [String] :count
|
1335
|
-
# @return [Array<(SchoolsResponse,
|
1428
|
+
# @option opts [Integer] :limit
|
1429
|
+
# @option opts [String] :starting_after
|
1430
|
+
# @option opts [String] :ending_before
|
1431
|
+
# @option opts [String] :count
|
1432
|
+
# @return [Array<(SchoolsResponse, Integer, Hash)>] SchoolsResponse data, response status code and response headers
|
1336
1433
|
def get_schools_with_http_info(opts = {})
|
1337
1434
|
if @api_client.config.debugging
|
1338
1435
|
@api_client.config.logger.debug 'Calling API: DataApi.get_schools ...'
|
1339
1436
|
end
|
1340
|
-
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true'].include?(opts[:'count'])
|
1341
|
-
fail ArgumentError, 'invalid value for "count", must be one of , true'
|
1437
|
+
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true', 'false', 'undefined'].include?(opts[:'count'])
|
1438
|
+
fail ArgumentError, 'invalid value for "count", must be one of , true, false, undefined'
|
1342
1439
|
end
|
1343
1440
|
# resource path
|
1344
1441
|
local_var_path = '/schools'
|
1345
1442
|
|
1346
1443
|
# query parameters
|
1347
|
-
query_params = {}
|
1444
|
+
query_params = opts[:query_params] || {}
|
1348
1445
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1349
1446
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
1350
1447
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
1351
1448
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
1352
1449
|
|
1353
1450
|
# header parameters
|
1354
|
-
header_params = {}
|
1451
|
+
header_params = opts[:header_params] || {}
|
1355
1452
|
# HTTP header 'Accept' (if needed)
|
1356
1453
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1357
1454
|
|
1358
1455
|
# form parameters
|
1359
|
-
form_params = {}
|
1456
|
+
form_params = opts[:form_params] || {}
|
1360
1457
|
|
1361
1458
|
# http body (model)
|
1362
|
-
post_body =
|
1363
|
-
|
1459
|
+
post_body = opts[:body]
|
1460
|
+
|
1461
|
+
return_type = opts[:return_type] || 'SchoolsResponse'
|
1462
|
+
|
1463
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1364
1464
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1365
1465
|
:header_params => header_params,
|
1366
1466
|
:query_params => query_params,
|
1367
1467
|
:form_params => form_params,
|
1368
1468
|
:body => post_body,
|
1369
1469
|
:auth_names => auth_names,
|
1370
|
-
:return_type =>
|
1470
|
+
:return_type => return_type)
|
1471
|
+
|
1371
1472
|
if @api_client.config.debugging
|
1372
1473
|
@api_client.config.logger.debug "API called: DataApi#get_schools\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1373
1474
|
end
|
1374
1475
|
return data, status_code, headers
|
1375
1476
|
end
|
1376
1477
|
# Returns the schools for a school admin
|
1377
|
-
# @param id
|
1478
|
+
# @param id
|
1378
1479
|
# @param [Hash] opts the optional parameters
|
1379
|
-
# @option opts [Integer] :limit
|
1380
|
-
# @option opts [String] :starting_after
|
1381
|
-
# @option opts [String] :ending_before
|
1480
|
+
# @option opts [Integer] :limit
|
1481
|
+
# @option opts [String] :starting_after
|
1482
|
+
# @option opts [String] :ending_before
|
1382
1483
|
# @return [SchoolsResponse]
|
1383
1484
|
def get_schools_for_school_admin(id, opts = {})
|
1384
1485
|
data, _status_code, _headers = get_schools_for_school_admin_with_http_info(id, opts)
|
@@ -1386,12 +1487,12 @@ module Clever
|
|
1386
1487
|
end
|
1387
1488
|
|
1388
1489
|
# Returns the schools for a school admin
|
1389
|
-
# @param id
|
1490
|
+
# @param id
|
1390
1491
|
# @param [Hash] opts the optional parameters
|
1391
|
-
# @option opts [Integer] :limit
|
1392
|
-
# @option opts [String] :starting_after
|
1393
|
-
# @option opts [String] :ending_before
|
1394
|
-
# @return [Array<(SchoolsResponse,
|
1492
|
+
# @option opts [Integer] :limit
|
1493
|
+
# @option opts [String] :starting_after
|
1494
|
+
# @option opts [String] :ending_before
|
1495
|
+
# @return [Array<(SchoolsResponse, Integer, Hash)>] SchoolsResponse data, response status code and response headers
|
1395
1496
|
def get_schools_for_school_admin_with_http_info(id, opts = {})
|
1396
1497
|
if @api_client.config.debugging
|
1397
1498
|
@api_client.config.logger.debug 'Calling API: DataApi.get_schools_for_school_admin ...'
|
@@ -1404,40 +1505,44 @@ module Clever
|
|
1404
1505
|
local_var_path = '/school_admins/{id}/schools'.sub('{' + 'id' + '}', id.to_s)
|
1405
1506
|
|
1406
1507
|
# query parameters
|
1407
|
-
query_params = {}
|
1508
|
+
query_params = opts[:query_params] || {}
|
1408
1509
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1409
1510
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
1410
1511
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
1411
1512
|
|
1412
1513
|
# header parameters
|
1413
|
-
header_params = {}
|
1514
|
+
header_params = opts[:header_params] || {}
|
1414
1515
|
# HTTP header 'Accept' (if needed)
|
1415
1516
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1416
1517
|
|
1417
1518
|
# form parameters
|
1418
|
-
form_params = {}
|
1519
|
+
form_params = opts[:form_params] || {}
|
1419
1520
|
|
1420
1521
|
# http body (model)
|
1421
|
-
post_body =
|
1422
|
-
|
1522
|
+
post_body = opts[:body]
|
1523
|
+
|
1524
|
+
return_type = opts[:return_type] || 'SchoolsResponse'
|
1525
|
+
|
1526
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1423
1527
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1424
1528
|
:header_params => header_params,
|
1425
1529
|
:query_params => query_params,
|
1426
1530
|
:form_params => form_params,
|
1427
1531
|
:body => post_body,
|
1428
1532
|
:auth_names => auth_names,
|
1429
|
-
:return_type =>
|
1533
|
+
:return_type => return_type)
|
1534
|
+
|
1430
1535
|
if @api_client.config.debugging
|
1431
1536
|
@api_client.config.logger.debug "API called: DataApi#get_schools_for_school_admin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1432
1537
|
end
|
1433
1538
|
return data, status_code, headers
|
1434
1539
|
end
|
1435
1540
|
# Returns the schools for a student
|
1436
|
-
# @param id
|
1541
|
+
# @param id
|
1437
1542
|
# @param [Hash] opts the optional parameters
|
1438
|
-
# @option opts [Integer] :limit
|
1439
|
-
# @option opts [String] :starting_after
|
1440
|
-
# @option opts [String] :ending_before
|
1543
|
+
# @option opts [Integer] :limit
|
1544
|
+
# @option opts [String] :starting_after
|
1545
|
+
# @option opts [String] :ending_before
|
1441
1546
|
# @return [SchoolsResponse]
|
1442
1547
|
def get_schools_for_student(id, opts = {})
|
1443
1548
|
data, _status_code, _headers = get_schools_for_student_with_http_info(id, opts)
|
@@ -1445,12 +1550,12 @@ module Clever
|
|
1445
1550
|
end
|
1446
1551
|
|
1447
1552
|
# Returns the schools for a student
|
1448
|
-
# @param id
|
1553
|
+
# @param id
|
1449
1554
|
# @param [Hash] opts the optional parameters
|
1450
|
-
# @option opts [Integer] :limit
|
1451
|
-
# @option opts [String] :starting_after
|
1452
|
-
# @option opts [String] :ending_before
|
1453
|
-
# @return [Array<(SchoolsResponse,
|
1555
|
+
# @option opts [Integer] :limit
|
1556
|
+
# @option opts [String] :starting_after
|
1557
|
+
# @option opts [String] :ending_before
|
1558
|
+
# @return [Array<(SchoolsResponse, Integer, Hash)>] SchoolsResponse data, response status code and response headers
|
1454
1559
|
def get_schools_for_student_with_http_info(id, opts = {})
|
1455
1560
|
if @api_client.config.debugging
|
1456
1561
|
@api_client.config.logger.debug 'Calling API: DataApi.get_schools_for_student ...'
|
@@ -1463,40 +1568,44 @@ module Clever
|
|
1463
1568
|
local_var_path = '/students/{id}/schools'.sub('{' + 'id' + '}', id.to_s)
|
1464
1569
|
|
1465
1570
|
# query parameters
|
1466
|
-
query_params = {}
|
1571
|
+
query_params = opts[:query_params] || {}
|
1467
1572
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1468
1573
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
1469
1574
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
1470
1575
|
|
1471
1576
|
# header parameters
|
1472
|
-
header_params = {}
|
1577
|
+
header_params = opts[:header_params] || {}
|
1473
1578
|
# HTTP header 'Accept' (if needed)
|
1474
1579
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1475
1580
|
|
1476
1581
|
# form parameters
|
1477
|
-
form_params = {}
|
1582
|
+
form_params = opts[:form_params] || {}
|
1478
1583
|
|
1479
1584
|
# http body (model)
|
1480
|
-
post_body =
|
1481
|
-
|
1585
|
+
post_body = opts[:body]
|
1586
|
+
|
1587
|
+
return_type = opts[:return_type] || 'SchoolsResponse'
|
1588
|
+
|
1589
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1482
1590
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1483
1591
|
:header_params => header_params,
|
1484
1592
|
:query_params => query_params,
|
1485
1593
|
:form_params => form_params,
|
1486
1594
|
:body => post_body,
|
1487
1595
|
:auth_names => auth_names,
|
1488
|
-
:return_type =>
|
1596
|
+
:return_type => return_type)
|
1597
|
+
|
1489
1598
|
if @api_client.config.debugging
|
1490
1599
|
@api_client.config.logger.debug "API called: DataApi#get_schools_for_student\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1491
1600
|
end
|
1492
1601
|
return data, status_code, headers
|
1493
1602
|
end
|
1494
1603
|
# Returns the schools for a teacher
|
1495
|
-
# @param id
|
1604
|
+
# @param id
|
1496
1605
|
# @param [Hash] opts the optional parameters
|
1497
|
-
# @option opts [Integer] :limit
|
1498
|
-
# @option opts [String] :starting_after
|
1499
|
-
# @option opts [String] :ending_before
|
1606
|
+
# @option opts [Integer] :limit
|
1607
|
+
# @option opts [String] :starting_after
|
1608
|
+
# @option opts [String] :ending_before
|
1500
1609
|
# @return [SchoolsResponse]
|
1501
1610
|
def get_schools_for_teacher(id, opts = {})
|
1502
1611
|
data, _status_code, _headers = get_schools_for_teacher_with_http_info(id, opts)
|
@@ -1504,12 +1613,12 @@ module Clever
|
|
1504
1613
|
end
|
1505
1614
|
|
1506
1615
|
# Returns the schools for a teacher
|
1507
|
-
# @param id
|
1616
|
+
# @param id
|
1508
1617
|
# @param [Hash] opts the optional parameters
|
1509
|
-
# @option opts [Integer] :limit
|
1510
|
-
# @option opts [String] :starting_after
|
1511
|
-
# @option opts [String] :ending_before
|
1512
|
-
# @return [Array<(SchoolsResponse,
|
1618
|
+
# @option opts [Integer] :limit
|
1619
|
+
# @option opts [String] :starting_after
|
1620
|
+
# @option opts [String] :ending_before
|
1621
|
+
# @return [Array<(SchoolsResponse, Integer, Hash)>] SchoolsResponse data, response status code and response headers
|
1513
1622
|
def get_schools_for_teacher_with_http_info(id, opts = {})
|
1514
1623
|
if @api_client.config.debugging
|
1515
1624
|
@api_client.config.logger.debug 'Calling API: DataApi.get_schools_for_teacher ...'
|
@@ -1522,36 +1631,40 @@ module Clever
|
|
1522
1631
|
local_var_path = '/teachers/{id}/schools'.sub('{' + 'id' + '}', id.to_s)
|
1523
1632
|
|
1524
1633
|
# query parameters
|
1525
|
-
query_params = {}
|
1634
|
+
query_params = opts[:query_params] || {}
|
1526
1635
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1527
1636
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
1528
1637
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
1529
1638
|
|
1530
1639
|
# header parameters
|
1531
|
-
header_params = {}
|
1640
|
+
header_params = opts[:header_params] || {}
|
1532
1641
|
# HTTP header 'Accept' (if needed)
|
1533
1642
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1534
1643
|
|
1535
1644
|
# form parameters
|
1536
|
-
form_params = {}
|
1645
|
+
form_params = opts[:form_params] || {}
|
1537
1646
|
|
1538
1647
|
# http body (model)
|
1539
|
-
post_body =
|
1540
|
-
|
1648
|
+
post_body = opts[:body]
|
1649
|
+
|
1650
|
+
return_type = opts[:return_type] || 'SchoolsResponse'
|
1651
|
+
|
1652
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1541
1653
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1542
1654
|
:header_params => header_params,
|
1543
1655
|
:query_params => query_params,
|
1544
1656
|
:form_params => form_params,
|
1545
1657
|
:body => post_body,
|
1546
1658
|
:auth_names => auth_names,
|
1547
|
-
:return_type =>
|
1659
|
+
:return_type => return_type)
|
1660
|
+
|
1548
1661
|
if @api_client.config.debugging
|
1549
1662
|
@api_client.config.logger.debug "API called: DataApi#get_schools_for_teacher\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1550
1663
|
end
|
1551
1664
|
return data, status_code, headers
|
1552
1665
|
end
|
1553
1666
|
# Returns a specific section
|
1554
|
-
# @param id
|
1667
|
+
# @param id
|
1555
1668
|
# @param [Hash] opts the optional parameters
|
1556
1669
|
# @return [SectionResponse]
|
1557
1670
|
def get_section(id, opts = {})
|
@@ -1560,9 +1673,9 @@ module Clever
|
|
1560
1673
|
end
|
1561
1674
|
|
1562
1675
|
# Returns a specific section
|
1563
|
-
# @param id
|
1676
|
+
# @param id
|
1564
1677
|
# @param [Hash] opts the optional parameters
|
1565
|
-
# @return [Array<(SectionResponse,
|
1678
|
+
# @return [Array<(SectionResponse, Integer, Hash)>] SectionResponse data, response status code and response headers
|
1566
1679
|
def get_section_with_http_info(id, opts = {})
|
1567
1680
|
if @api_client.config.debugging
|
1568
1681
|
@api_client.config.logger.debug 'Calling API: DataApi.get_section ...'
|
@@ -1575,26 +1688,30 @@ module Clever
|
|
1575
1688
|
local_var_path = '/sections/{id}'.sub('{' + 'id' + '}', id.to_s)
|
1576
1689
|
|
1577
1690
|
# query parameters
|
1578
|
-
query_params = {}
|
1691
|
+
query_params = opts[:query_params] || {}
|
1579
1692
|
|
1580
1693
|
# header parameters
|
1581
|
-
header_params = {}
|
1694
|
+
header_params = opts[:header_params] || {}
|
1582
1695
|
# HTTP header 'Accept' (if needed)
|
1583
1696
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1584
1697
|
|
1585
1698
|
# form parameters
|
1586
|
-
form_params = {}
|
1699
|
+
form_params = opts[:form_params] || {}
|
1587
1700
|
|
1588
1701
|
# http body (model)
|
1589
|
-
post_body =
|
1590
|
-
|
1702
|
+
post_body = opts[:body]
|
1703
|
+
|
1704
|
+
return_type = opts[:return_type] || 'SectionResponse'
|
1705
|
+
|
1706
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1591
1707
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1592
1708
|
:header_params => header_params,
|
1593
1709
|
:query_params => query_params,
|
1594
1710
|
:form_params => form_params,
|
1595
1711
|
:body => post_body,
|
1596
1712
|
:auth_names => auth_names,
|
1597
|
-
:return_type =>
|
1713
|
+
:return_type => return_type)
|
1714
|
+
|
1598
1715
|
if @api_client.config.debugging
|
1599
1716
|
@api_client.config.logger.debug "API called: DataApi#get_section\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1600
1717
|
end
|
@@ -1602,10 +1719,10 @@ module Clever
|
|
1602
1719
|
end
|
1603
1720
|
# Returns a list of sections
|
1604
1721
|
# @param [Hash] opts the optional parameters
|
1605
|
-
# @option opts [Integer] :limit
|
1606
|
-
# @option opts [String] :starting_after
|
1607
|
-
# @option opts [String] :ending_before
|
1608
|
-
# @option opts [String] :count
|
1722
|
+
# @option opts [Integer] :limit
|
1723
|
+
# @option opts [String] :starting_after
|
1724
|
+
# @option opts [String] :ending_before
|
1725
|
+
# @option opts [String] :count
|
1609
1726
|
# @return [SectionsResponse]
|
1610
1727
|
def get_sections(opts = {})
|
1611
1728
|
data, _status_code, _headers = get_sections_with_http_info(opts)
|
@@ -1614,57 +1731,61 @@ module Clever
|
|
1614
1731
|
|
1615
1732
|
# Returns a list of sections
|
1616
1733
|
# @param [Hash] opts the optional parameters
|
1617
|
-
# @option opts [Integer] :limit
|
1618
|
-
# @option opts [String] :starting_after
|
1619
|
-
# @option opts [String] :ending_before
|
1620
|
-
# @option opts [String] :count
|
1621
|
-
# @return [Array<(SectionsResponse,
|
1734
|
+
# @option opts [Integer] :limit
|
1735
|
+
# @option opts [String] :starting_after
|
1736
|
+
# @option opts [String] :ending_before
|
1737
|
+
# @option opts [String] :count
|
1738
|
+
# @return [Array<(SectionsResponse, Integer, Hash)>] SectionsResponse data, response status code and response headers
|
1622
1739
|
def get_sections_with_http_info(opts = {})
|
1623
1740
|
if @api_client.config.debugging
|
1624
1741
|
@api_client.config.logger.debug 'Calling API: DataApi.get_sections ...'
|
1625
1742
|
end
|
1626
|
-
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true'].include?(opts[:'count'])
|
1627
|
-
fail ArgumentError, 'invalid value for "count", must be one of , true'
|
1743
|
+
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true', 'false', 'undefined'].include?(opts[:'count'])
|
1744
|
+
fail ArgumentError, 'invalid value for "count", must be one of , true, false, undefined'
|
1628
1745
|
end
|
1629
1746
|
# resource path
|
1630
1747
|
local_var_path = '/sections'
|
1631
1748
|
|
1632
1749
|
# query parameters
|
1633
|
-
query_params = {}
|
1750
|
+
query_params = opts[:query_params] || {}
|
1634
1751
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1635
1752
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
1636
1753
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
1637
1754
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
1638
1755
|
|
1639
1756
|
# header parameters
|
1640
|
-
header_params = {}
|
1757
|
+
header_params = opts[:header_params] || {}
|
1641
1758
|
# HTTP header 'Accept' (if needed)
|
1642
1759
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1643
1760
|
|
1644
1761
|
# form parameters
|
1645
|
-
form_params = {}
|
1762
|
+
form_params = opts[:form_params] || {}
|
1646
1763
|
|
1647
1764
|
# http body (model)
|
1648
|
-
post_body =
|
1649
|
-
|
1765
|
+
post_body = opts[:body]
|
1766
|
+
|
1767
|
+
return_type = opts[:return_type] || 'SectionsResponse'
|
1768
|
+
|
1769
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1650
1770
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1651
1771
|
:header_params => header_params,
|
1652
1772
|
:query_params => query_params,
|
1653
1773
|
:form_params => form_params,
|
1654
1774
|
:body => post_body,
|
1655
1775
|
:auth_names => auth_names,
|
1656
|
-
:return_type =>
|
1776
|
+
:return_type => return_type)
|
1777
|
+
|
1657
1778
|
if @api_client.config.debugging
|
1658
1779
|
@api_client.config.logger.debug "API called: DataApi#get_sections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1659
1780
|
end
|
1660
1781
|
return data, status_code, headers
|
1661
1782
|
end
|
1662
1783
|
# Returns the sections for a Courses
|
1663
|
-
# @param id
|
1784
|
+
# @param id
|
1664
1785
|
# @param [Hash] opts the optional parameters
|
1665
|
-
# @option opts [Integer] :limit
|
1666
|
-
# @option opts [String] :starting_after
|
1667
|
-
# @option opts [String] :ending_before
|
1786
|
+
# @option opts [Integer] :limit
|
1787
|
+
# @option opts [String] :starting_after
|
1788
|
+
# @option opts [String] :ending_before
|
1668
1789
|
# @return [SectionsResponse]
|
1669
1790
|
def get_sections_for_course(id, opts = {})
|
1670
1791
|
data, _status_code, _headers = get_sections_for_course_with_http_info(id, opts)
|
@@ -1672,12 +1793,12 @@ module Clever
|
|
1672
1793
|
end
|
1673
1794
|
|
1674
1795
|
# Returns the sections for a Courses
|
1675
|
-
# @param id
|
1796
|
+
# @param id
|
1676
1797
|
# @param [Hash] opts the optional parameters
|
1677
|
-
# @option opts [Integer] :limit
|
1678
|
-
# @option opts [String] :starting_after
|
1679
|
-
# @option opts [String] :ending_before
|
1680
|
-
# @return [Array<(SectionsResponse,
|
1798
|
+
# @option opts [Integer] :limit
|
1799
|
+
# @option opts [String] :starting_after
|
1800
|
+
# @option opts [String] :ending_before
|
1801
|
+
# @return [Array<(SectionsResponse, Integer, Hash)>] SectionsResponse data, response status code and response headers
|
1681
1802
|
def get_sections_for_course_with_http_info(id, opts = {})
|
1682
1803
|
if @api_client.config.debugging
|
1683
1804
|
@api_client.config.logger.debug 'Calling API: DataApi.get_sections_for_course ...'
|
@@ -1690,40 +1811,44 @@ module Clever
|
|
1690
1811
|
local_var_path = '/courses/{id}/sections'.sub('{' + 'id' + '}', id.to_s)
|
1691
1812
|
|
1692
1813
|
# query parameters
|
1693
|
-
query_params = {}
|
1814
|
+
query_params = opts[:query_params] || {}
|
1694
1815
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1695
1816
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
1696
1817
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
1697
1818
|
|
1698
1819
|
# header parameters
|
1699
|
-
header_params = {}
|
1820
|
+
header_params = opts[:header_params] || {}
|
1700
1821
|
# HTTP header 'Accept' (if needed)
|
1701
1822
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1702
1823
|
|
1703
1824
|
# form parameters
|
1704
|
-
form_params = {}
|
1825
|
+
form_params = opts[:form_params] || {}
|
1705
1826
|
|
1706
1827
|
# http body (model)
|
1707
|
-
post_body =
|
1708
|
-
|
1828
|
+
post_body = opts[:body]
|
1829
|
+
|
1830
|
+
return_type = opts[:return_type] || 'SectionsResponse'
|
1831
|
+
|
1832
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1709
1833
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1710
1834
|
:header_params => header_params,
|
1711
1835
|
:query_params => query_params,
|
1712
1836
|
:form_params => form_params,
|
1713
1837
|
:body => post_body,
|
1714
1838
|
:auth_names => auth_names,
|
1715
|
-
:return_type =>
|
1839
|
+
:return_type => return_type)
|
1840
|
+
|
1716
1841
|
if @api_client.config.debugging
|
1717
1842
|
@api_client.config.logger.debug "API called: DataApi#get_sections_for_course\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1718
1843
|
end
|
1719
1844
|
return data, status_code, headers
|
1720
1845
|
end
|
1721
1846
|
# Returns the sections for a school
|
1722
|
-
# @param id
|
1847
|
+
# @param id
|
1723
1848
|
# @param [Hash] opts the optional parameters
|
1724
|
-
# @option opts [Integer] :limit
|
1725
|
-
# @option opts [String] :starting_after
|
1726
|
-
# @option opts [String] :ending_before
|
1849
|
+
# @option opts [Integer] :limit
|
1850
|
+
# @option opts [String] :starting_after
|
1851
|
+
# @option opts [String] :ending_before
|
1727
1852
|
# @return [SectionsResponse]
|
1728
1853
|
def get_sections_for_school(id, opts = {})
|
1729
1854
|
data, _status_code, _headers = get_sections_for_school_with_http_info(id, opts)
|
@@ -1731,12 +1856,12 @@ module Clever
|
|
1731
1856
|
end
|
1732
1857
|
|
1733
1858
|
# Returns the sections for a school
|
1734
|
-
# @param id
|
1859
|
+
# @param id
|
1735
1860
|
# @param [Hash] opts the optional parameters
|
1736
|
-
# @option opts [Integer] :limit
|
1737
|
-
# @option opts [String] :starting_after
|
1738
|
-
# @option opts [String] :ending_before
|
1739
|
-
# @return [Array<(SectionsResponse,
|
1861
|
+
# @option opts [Integer] :limit
|
1862
|
+
# @option opts [String] :starting_after
|
1863
|
+
# @option opts [String] :ending_before
|
1864
|
+
# @return [Array<(SectionsResponse, Integer, Hash)>] SectionsResponse data, response status code and response headers
|
1740
1865
|
def get_sections_for_school_with_http_info(id, opts = {})
|
1741
1866
|
if @api_client.config.debugging
|
1742
1867
|
@api_client.config.logger.debug 'Calling API: DataApi.get_sections_for_school ...'
|
@@ -1749,40 +1874,44 @@ module Clever
|
|
1749
1874
|
local_var_path = '/schools/{id}/sections'.sub('{' + 'id' + '}', id.to_s)
|
1750
1875
|
|
1751
1876
|
# query parameters
|
1752
|
-
query_params = {}
|
1877
|
+
query_params = opts[:query_params] || {}
|
1753
1878
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1754
1879
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
1755
1880
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
1756
1881
|
|
1757
1882
|
# header parameters
|
1758
|
-
header_params = {}
|
1883
|
+
header_params = opts[:header_params] || {}
|
1759
1884
|
# HTTP header 'Accept' (if needed)
|
1760
1885
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1761
1886
|
|
1762
1887
|
# form parameters
|
1763
|
-
form_params = {}
|
1888
|
+
form_params = opts[:form_params] || {}
|
1764
1889
|
|
1765
1890
|
# http body (model)
|
1766
|
-
post_body =
|
1767
|
-
|
1891
|
+
post_body = opts[:body]
|
1892
|
+
|
1893
|
+
return_type = opts[:return_type] || 'SectionsResponse'
|
1894
|
+
|
1895
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1768
1896
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1769
1897
|
:header_params => header_params,
|
1770
1898
|
:query_params => query_params,
|
1771
1899
|
:form_params => form_params,
|
1772
1900
|
:body => post_body,
|
1773
1901
|
:auth_names => auth_names,
|
1774
|
-
:return_type =>
|
1902
|
+
:return_type => return_type)
|
1903
|
+
|
1775
1904
|
if @api_client.config.debugging
|
1776
1905
|
@api_client.config.logger.debug "API called: DataApi#get_sections_for_school\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1777
1906
|
end
|
1778
1907
|
return data, status_code, headers
|
1779
1908
|
end
|
1780
1909
|
# Returns the sections for a student
|
1781
|
-
# @param id
|
1910
|
+
# @param id
|
1782
1911
|
# @param [Hash] opts the optional parameters
|
1783
|
-
# @option opts [Integer] :limit
|
1784
|
-
# @option opts [String] :starting_after
|
1785
|
-
# @option opts [String] :ending_before
|
1912
|
+
# @option opts [Integer] :limit
|
1913
|
+
# @option opts [String] :starting_after
|
1914
|
+
# @option opts [String] :ending_before
|
1786
1915
|
# @return [SectionsResponse]
|
1787
1916
|
def get_sections_for_student(id, opts = {})
|
1788
1917
|
data, _status_code, _headers = get_sections_for_student_with_http_info(id, opts)
|
@@ -1790,12 +1919,12 @@ module Clever
|
|
1790
1919
|
end
|
1791
1920
|
|
1792
1921
|
# Returns the sections for a student
|
1793
|
-
# @param id
|
1922
|
+
# @param id
|
1794
1923
|
# @param [Hash] opts the optional parameters
|
1795
|
-
# @option opts [Integer] :limit
|
1796
|
-
# @option opts [String] :starting_after
|
1797
|
-
# @option opts [String] :ending_before
|
1798
|
-
# @return [Array<(SectionsResponse,
|
1924
|
+
# @option opts [Integer] :limit
|
1925
|
+
# @option opts [String] :starting_after
|
1926
|
+
# @option opts [String] :ending_before
|
1927
|
+
# @return [Array<(SectionsResponse, Integer, Hash)>] SectionsResponse data, response status code and response headers
|
1799
1928
|
def get_sections_for_student_with_http_info(id, opts = {})
|
1800
1929
|
if @api_client.config.debugging
|
1801
1930
|
@api_client.config.logger.debug 'Calling API: DataApi.get_sections_for_student ...'
|
@@ -1808,40 +1937,44 @@ module Clever
|
|
1808
1937
|
local_var_path = '/students/{id}/sections'.sub('{' + 'id' + '}', id.to_s)
|
1809
1938
|
|
1810
1939
|
# query parameters
|
1811
|
-
query_params = {}
|
1940
|
+
query_params = opts[:query_params] || {}
|
1812
1941
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1813
1942
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
1814
1943
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
1815
1944
|
|
1816
1945
|
# header parameters
|
1817
|
-
header_params = {}
|
1946
|
+
header_params = opts[:header_params] || {}
|
1818
1947
|
# HTTP header 'Accept' (if needed)
|
1819
1948
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1820
1949
|
|
1821
1950
|
# form parameters
|
1822
|
-
form_params = {}
|
1951
|
+
form_params = opts[:form_params] || {}
|
1823
1952
|
|
1824
1953
|
# http body (model)
|
1825
|
-
post_body =
|
1826
|
-
|
1954
|
+
post_body = opts[:body]
|
1955
|
+
|
1956
|
+
return_type = opts[:return_type] || 'SectionsResponse'
|
1957
|
+
|
1958
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1827
1959
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1828
1960
|
:header_params => header_params,
|
1829
1961
|
:query_params => query_params,
|
1830
1962
|
:form_params => form_params,
|
1831
1963
|
:body => post_body,
|
1832
1964
|
:auth_names => auth_names,
|
1833
|
-
:return_type =>
|
1965
|
+
:return_type => return_type)
|
1966
|
+
|
1834
1967
|
if @api_client.config.debugging
|
1835
1968
|
@api_client.config.logger.debug "API called: DataApi#get_sections_for_student\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1836
1969
|
end
|
1837
1970
|
return data, status_code, headers
|
1838
1971
|
end
|
1839
1972
|
# Returns the sections for a teacher
|
1840
|
-
# @param id
|
1973
|
+
# @param id
|
1841
1974
|
# @param [Hash] opts the optional parameters
|
1842
|
-
# @option opts [Integer] :limit
|
1843
|
-
# @option opts [String] :starting_after
|
1844
|
-
# @option opts [String] :ending_before
|
1975
|
+
# @option opts [Integer] :limit
|
1976
|
+
# @option opts [String] :starting_after
|
1977
|
+
# @option opts [String] :ending_before
|
1845
1978
|
# @return [SectionsResponse]
|
1846
1979
|
def get_sections_for_teacher(id, opts = {})
|
1847
1980
|
data, _status_code, _headers = get_sections_for_teacher_with_http_info(id, opts)
|
@@ -1849,12 +1982,12 @@ module Clever
|
|
1849
1982
|
end
|
1850
1983
|
|
1851
1984
|
# Returns the sections for a teacher
|
1852
|
-
# @param id
|
1985
|
+
# @param id
|
1853
1986
|
# @param [Hash] opts the optional parameters
|
1854
|
-
# @option opts [Integer] :limit
|
1855
|
-
# @option opts [String] :starting_after
|
1856
|
-
# @option opts [String] :ending_before
|
1857
|
-
# @return [Array<(SectionsResponse,
|
1987
|
+
# @option opts [Integer] :limit
|
1988
|
+
# @option opts [String] :starting_after
|
1989
|
+
# @option opts [String] :ending_before
|
1990
|
+
# @return [Array<(SectionsResponse, Integer, Hash)>] SectionsResponse data, response status code and response headers
|
1858
1991
|
def get_sections_for_teacher_with_http_info(id, opts = {})
|
1859
1992
|
if @api_client.config.debugging
|
1860
1993
|
@api_client.config.logger.debug 'Calling API: DataApi.get_sections_for_teacher ...'
|
@@ -1867,40 +2000,44 @@ module Clever
|
|
1867
2000
|
local_var_path = '/teachers/{id}/sections'.sub('{' + 'id' + '}', id.to_s)
|
1868
2001
|
|
1869
2002
|
# query parameters
|
1870
|
-
query_params = {}
|
2003
|
+
query_params = opts[:query_params] || {}
|
1871
2004
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1872
2005
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
1873
2006
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
1874
2007
|
|
1875
2008
|
# header parameters
|
1876
|
-
header_params = {}
|
2009
|
+
header_params = opts[:header_params] || {}
|
1877
2010
|
# HTTP header 'Accept' (if needed)
|
1878
2011
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1879
2012
|
|
1880
2013
|
# form parameters
|
1881
|
-
form_params = {}
|
2014
|
+
form_params = opts[:form_params] || {}
|
1882
2015
|
|
1883
2016
|
# http body (model)
|
1884
|
-
post_body =
|
1885
|
-
|
2017
|
+
post_body = opts[:body]
|
2018
|
+
|
2019
|
+
return_type = opts[:return_type] || 'SectionsResponse'
|
2020
|
+
|
2021
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1886
2022
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1887
2023
|
:header_params => header_params,
|
1888
2024
|
:query_params => query_params,
|
1889
2025
|
:form_params => form_params,
|
1890
2026
|
:body => post_body,
|
1891
2027
|
:auth_names => auth_names,
|
1892
|
-
:return_type =>
|
2028
|
+
:return_type => return_type)
|
2029
|
+
|
1893
2030
|
if @api_client.config.debugging
|
1894
2031
|
@api_client.config.logger.debug "API called: DataApi#get_sections_for_teacher\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1895
2032
|
end
|
1896
2033
|
return data, status_code, headers
|
1897
2034
|
end
|
1898
2035
|
# Returns the sections for a term
|
1899
|
-
# @param id
|
2036
|
+
# @param id
|
1900
2037
|
# @param [Hash] opts the optional parameters
|
1901
|
-
# @option opts [Integer] :limit
|
1902
|
-
# @option opts [String] :starting_after
|
1903
|
-
# @option opts [String] :ending_before
|
2038
|
+
# @option opts [Integer] :limit
|
2039
|
+
# @option opts [String] :starting_after
|
2040
|
+
# @option opts [String] :ending_before
|
1904
2041
|
# @return [SectionsResponse]
|
1905
2042
|
def get_sections_for_term(id, opts = {})
|
1906
2043
|
data, _status_code, _headers = get_sections_for_term_with_http_info(id, opts)
|
@@ -1908,12 +2045,12 @@ module Clever
|
|
1908
2045
|
end
|
1909
2046
|
|
1910
2047
|
# Returns the sections for a term
|
1911
|
-
# @param id
|
2048
|
+
# @param id
|
1912
2049
|
# @param [Hash] opts the optional parameters
|
1913
|
-
# @option opts [Integer] :limit
|
1914
|
-
# @option opts [String] :starting_after
|
1915
|
-
# @option opts [String] :ending_before
|
1916
|
-
# @return [Array<(SectionsResponse,
|
2050
|
+
# @option opts [Integer] :limit
|
2051
|
+
# @option opts [String] :starting_after
|
2052
|
+
# @option opts [String] :ending_before
|
2053
|
+
# @return [Array<(SectionsResponse, Integer, Hash)>] SectionsResponse data, response status code and response headers
|
1917
2054
|
def get_sections_for_term_with_http_info(id, opts = {})
|
1918
2055
|
if @api_client.config.debugging
|
1919
2056
|
@api_client.config.logger.debug 'Calling API: DataApi.get_sections_for_term ...'
|
@@ -1926,36 +2063,40 @@ module Clever
|
|
1926
2063
|
local_var_path = '/terms/{id}/sections'.sub('{' + 'id' + '}', id.to_s)
|
1927
2064
|
|
1928
2065
|
# query parameters
|
1929
|
-
query_params = {}
|
2066
|
+
query_params = opts[:query_params] || {}
|
1930
2067
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1931
2068
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
1932
2069
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
1933
2070
|
|
1934
2071
|
# header parameters
|
1935
|
-
header_params = {}
|
2072
|
+
header_params = opts[:header_params] || {}
|
1936
2073
|
# HTTP header 'Accept' (if needed)
|
1937
2074
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1938
2075
|
|
1939
2076
|
# form parameters
|
1940
|
-
form_params = {}
|
2077
|
+
form_params = opts[:form_params] || {}
|
1941
2078
|
|
1942
2079
|
# http body (model)
|
1943
|
-
post_body =
|
1944
|
-
|
2080
|
+
post_body = opts[:body]
|
2081
|
+
|
2082
|
+
return_type = opts[:return_type] || 'SectionsResponse'
|
2083
|
+
|
2084
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1945
2085
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1946
2086
|
:header_params => header_params,
|
1947
2087
|
:query_params => query_params,
|
1948
2088
|
:form_params => form_params,
|
1949
2089
|
:body => post_body,
|
1950
2090
|
:auth_names => auth_names,
|
1951
|
-
:return_type =>
|
2091
|
+
:return_type => return_type)
|
2092
|
+
|
1952
2093
|
if @api_client.config.debugging
|
1953
2094
|
@api_client.config.logger.debug "API called: DataApi#get_sections_for_term\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1954
2095
|
end
|
1955
2096
|
return data, status_code, headers
|
1956
2097
|
end
|
1957
2098
|
# Returns a specific student
|
1958
|
-
# @param id
|
2099
|
+
# @param id
|
1959
2100
|
# @param [Hash] opts the optional parameters
|
1960
2101
|
# @return [StudentResponse]
|
1961
2102
|
def get_student(id, opts = {})
|
@@ -1964,9 +2105,9 @@ module Clever
|
|
1964
2105
|
end
|
1965
2106
|
|
1966
2107
|
# Returns a specific student
|
1967
|
-
# @param id
|
2108
|
+
# @param id
|
1968
2109
|
# @param [Hash] opts the optional parameters
|
1969
|
-
# @return [Array<(StudentResponse,
|
2110
|
+
# @return [Array<(StudentResponse, Integer, Hash)>] StudentResponse data, response status code and response headers
|
1970
2111
|
def get_student_with_http_info(id, opts = {})
|
1971
2112
|
if @api_client.config.debugging
|
1972
2113
|
@api_client.config.logger.debug 'Calling API: DataApi.get_student ...'
|
@@ -1979,26 +2120,30 @@ module Clever
|
|
1979
2120
|
local_var_path = '/students/{id}'.sub('{' + 'id' + '}', id.to_s)
|
1980
2121
|
|
1981
2122
|
# query parameters
|
1982
|
-
query_params = {}
|
2123
|
+
query_params = opts[:query_params] || {}
|
1983
2124
|
|
1984
2125
|
# header parameters
|
1985
|
-
header_params = {}
|
2126
|
+
header_params = opts[:header_params] || {}
|
1986
2127
|
# HTTP header 'Accept' (if needed)
|
1987
2128
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1988
2129
|
|
1989
2130
|
# form parameters
|
1990
|
-
form_params = {}
|
2131
|
+
form_params = opts[:form_params] || {}
|
1991
2132
|
|
1992
2133
|
# http body (model)
|
1993
|
-
post_body =
|
1994
|
-
|
2134
|
+
post_body = opts[:body]
|
2135
|
+
|
2136
|
+
return_type = opts[:return_type] || 'StudentResponse'
|
2137
|
+
|
2138
|
+
auth_names = opts[:auth_names] || ['oauth']
|
1995
2139
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1996
2140
|
:header_params => header_params,
|
1997
2141
|
:query_params => query_params,
|
1998
2142
|
:form_params => form_params,
|
1999
2143
|
:body => post_body,
|
2000
2144
|
:auth_names => auth_names,
|
2001
|
-
:return_type =>
|
2145
|
+
:return_type => return_type)
|
2146
|
+
|
2002
2147
|
if @api_client.config.debugging
|
2003
2148
|
@api_client.config.logger.debug "API called: DataApi#get_student\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2004
2149
|
end
|
@@ -2006,10 +2151,10 @@ module Clever
|
|
2006
2151
|
end
|
2007
2152
|
# Returns a list of students
|
2008
2153
|
# @param [Hash] opts the optional parameters
|
2009
|
-
# @option opts [Integer] :limit
|
2010
|
-
# @option opts [String] :starting_after
|
2011
|
-
# @option opts [String] :ending_before
|
2012
|
-
# @option opts [String] :count
|
2154
|
+
# @option opts [Integer] :limit
|
2155
|
+
# @option opts [String] :starting_after
|
2156
|
+
# @option opts [String] :ending_before
|
2157
|
+
# @option opts [String] :count
|
2013
2158
|
# @return [StudentsResponse]
|
2014
2159
|
def get_students(opts = {})
|
2015
2160
|
data, _status_code, _headers = get_students_with_http_info(opts)
|
@@ -2018,57 +2163,61 @@ module Clever
|
|
2018
2163
|
|
2019
2164
|
# Returns a list of students
|
2020
2165
|
# @param [Hash] opts the optional parameters
|
2021
|
-
# @option opts [Integer] :limit
|
2022
|
-
# @option opts [String] :starting_after
|
2023
|
-
# @option opts [String] :ending_before
|
2024
|
-
# @option opts [String] :count
|
2025
|
-
# @return [Array<(StudentsResponse,
|
2166
|
+
# @option opts [Integer] :limit
|
2167
|
+
# @option opts [String] :starting_after
|
2168
|
+
# @option opts [String] :ending_before
|
2169
|
+
# @option opts [String] :count
|
2170
|
+
# @return [Array<(StudentsResponse, Integer, Hash)>] StudentsResponse data, response status code and response headers
|
2026
2171
|
def get_students_with_http_info(opts = {})
|
2027
2172
|
if @api_client.config.debugging
|
2028
2173
|
@api_client.config.logger.debug 'Calling API: DataApi.get_students ...'
|
2029
2174
|
end
|
2030
|
-
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true'].include?(opts[:'count'])
|
2031
|
-
fail ArgumentError, 'invalid value for "count", must be one of , true'
|
2175
|
+
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true', 'false', 'undefined'].include?(opts[:'count'])
|
2176
|
+
fail ArgumentError, 'invalid value for "count", must be one of , true, false, undefined'
|
2032
2177
|
end
|
2033
2178
|
# resource path
|
2034
2179
|
local_var_path = '/students'
|
2035
2180
|
|
2036
2181
|
# query parameters
|
2037
|
-
query_params = {}
|
2182
|
+
query_params = opts[:query_params] || {}
|
2038
2183
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
2039
2184
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
2040
2185
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
2041
2186
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
2042
2187
|
|
2043
2188
|
# header parameters
|
2044
|
-
header_params = {}
|
2189
|
+
header_params = opts[:header_params] || {}
|
2045
2190
|
# HTTP header 'Accept' (if needed)
|
2046
2191
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2047
2192
|
|
2048
2193
|
# form parameters
|
2049
|
-
form_params = {}
|
2194
|
+
form_params = opts[:form_params] || {}
|
2050
2195
|
|
2051
2196
|
# http body (model)
|
2052
|
-
post_body =
|
2053
|
-
|
2197
|
+
post_body = opts[:body]
|
2198
|
+
|
2199
|
+
return_type = opts[:return_type] || 'StudentsResponse'
|
2200
|
+
|
2201
|
+
auth_names = opts[:auth_names] || ['oauth']
|
2054
2202
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2055
2203
|
:header_params => header_params,
|
2056
2204
|
:query_params => query_params,
|
2057
2205
|
:form_params => form_params,
|
2058
2206
|
:body => post_body,
|
2059
2207
|
:auth_names => auth_names,
|
2060
|
-
:return_type =>
|
2208
|
+
:return_type => return_type)
|
2209
|
+
|
2061
2210
|
if @api_client.config.debugging
|
2062
2211
|
@api_client.config.logger.debug "API called: DataApi#get_students\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2063
2212
|
end
|
2064
2213
|
return data, status_code, headers
|
2065
2214
|
end
|
2066
2215
|
# Returns the students for a student contact
|
2067
|
-
# @param id
|
2216
|
+
# @param id
|
2068
2217
|
# @param [Hash] opts the optional parameters
|
2069
|
-
# @option opts [Integer] :limit
|
2070
|
-
# @option opts [String] :starting_after
|
2071
|
-
# @option opts [String] :ending_before
|
2218
|
+
# @option opts [Integer] :limit
|
2219
|
+
# @option opts [String] :starting_after
|
2220
|
+
# @option opts [String] :ending_before
|
2072
2221
|
# @return [StudentsResponse]
|
2073
2222
|
def get_students_for_contact(id, opts = {})
|
2074
2223
|
data, _status_code, _headers = get_students_for_contact_with_http_info(id, opts)
|
@@ -2076,12 +2225,12 @@ module Clever
|
|
2076
2225
|
end
|
2077
2226
|
|
2078
2227
|
# Returns the students for a student contact
|
2079
|
-
# @param id
|
2228
|
+
# @param id
|
2080
2229
|
# @param [Hash] opts the optional parameters
|
2081
|
-
# @option opts [Integer] :limit
|
2082
|
-
# @option opts [String] :starting_after
|
2083
|
-
# @option opts [String] :ending_before
|
2084
|
-
# @return [Array<(StudentsResponse,
|
2230
|
+
# @option opts [Integer] :limit
|
2231
|
+
# @option opts [String] :starting_after
|
2232
|
+
# @option opts [String] :ending_before
|
2233
|
+
# @return [Array<(StudentsResponse, Integer, Hash)>] StudentsResponse data, response status code and response headers
|
2085
2234
|
def get_students_for_contact_with_http_info(id, opts = {})
|
2086
2235
|
if @api_client.config.debugging
|
2087
2236
|
@api_client.config.logger.debug 'Calling API: DataApi.get_students_for_contact ...'
|
@@ -2094,40 +2243,44 @@ module Clever
|
|
2094
2243
|
local_var_path = '/contacts/{id}/students'.sub('{' + 'id' + '}', id.to_s)
|
2095
2244
|
|
2096
2245
|
# query parameters
|
2097
|
-
query_params = {}
|
2246
|
+
query_params = opts[:query_params] || {}
|
2098
2247
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
2099
2248
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
2100
2249
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
2101
2250
|
|
2102
2251
|
# header parameters
|
2103
|
-
header_params = {}
|
2252
|
+
header_params = opts[:header_params] || {}
|
2104
2253
|
# HTTP header 'Accept' (if needed)
|
2105
2254
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2106
2255
|
|
2107
2256
|
# form parameters
|
2108
|
-
form_params = {}
|
2257
|
+
form_params = opts[:form_params] || {}
|
2109
2258
|
|
2110
2259
|
# http body (model)
|
2111
|
-
post_body =
|
2112
|
-
|
2260
|
+
post_body = opts[:body]
|
2261
|
+
|
2262
|
+
return_type = opts[:return_type] || 'StudentsResponse'
|
2263
|
+
|
2264
|
+
auth_names = opts[:auth_names] || ['oauth']
|
2113
2265
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2114
2266
|
:header_params => header_params,
|
2115
2267
|
:query_params => query_params,
|
2116
2268
|
:form_params => form_params,
|
2117
2269
|
:body => post_body,
|
2118
2270
|
:auth_names => auth_names,
|
2119
|
-
:return_type =>
|
2271
|
+
:return_type => return_type)
|
2272
|
+
|
2120
2273
|
if @api_client.config.debugging
|
2121
2274
|
@api_client.config.logger.debug "API called: DataApi#get_students_for_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2122
2275
|
end
|
2123
2276
|
return data, status_code, headers
|
2124
2277
|
end
|
2125
2278
|
# Returns the students for a school
|
2126
|
-
# @param id
|
2279
|
+
# @param id
|
2127
2280
|
# @param [Hash] opts the optional parameters
|
2128
|
-
# @option opts [Integer] :limit
|
2129
|
-
# @option opts [String] :starting_after
|
2130
|
-
# @option opts [String] :ending_before
|
2281
|
+
# @option opts [Integer] :limit
|
2282
|
+
# @option opts [String] :starting_after
|
2283
|
+
# @option opts [String] :ending_before
|
2131
2284
|
# @return [StudentsResponse]
|
2132
2285
|
def get_students_for_school(id, opts = {})
|
2133
2286
|
data, _status_code, _headers = get_students_for_school_with_http_info(id, opts)
|
@@ -2135,12 +2288,12 @@ module Clever
|
|
2135
2288
|
end
|
2136
2289
|
|
2137
2290
|
# Returns the students for a school
|
2138
|
-
# @param id
|
2291
|
+
# @param id
|
2139
2292
|
# @param [Hash] opts the optional parameters
|
2140
|
-
# @option opts [Integer] :limit
|
2141
|
-
# @option opts [String] :starting_after
|
2142
|
-
# @option opts [String] :ending_before
|
2143
|
-
# @return [Array<(StudentsResponse,
|
2293
|
+
# @option opts [Integer] :limit
|
2294
|
+
# @option opts [String] :starting_after
|
2295
|
+
# @option opts [String] :ending_before
|
2296
|
+
# @return [Array<(StudentsResponse, Integer, Hash)>] StudentsResponse data, response status code and response headers
|
2144
2297
|
def get_students_for_school_with_http_info(id, opts = {})
|
2145
2298
|
if @api_client.config.debugging
|
2146
2299
|
@api_client.config.logger.debug 'Calling API: DataApi.get_students_for_school ...'
|
@@ -2153,40 +2306,44 @@ module Clever
|
|
2153
2306
|
local_var_path = '/schools/{id}/students'.sub('{' + 'id' + '}', id.to_s)
|
2154
2307
|
|
2155
2308
|
# query parameters
|
2156
|
-
query_params = {}
|
2309
|
+
query_params = opts[:query_params] || {}
|
2157
2310
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
2158
2311
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
2159
2312
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
2160
2313
|
|
2161
2314
|
# header parameters
|
2162
|
-
header_params = {}
|
2315
|
+
header_params = opts[:header_params] || {}
|
2163
2316
|
# HTTP header 'Accept' (if needed)
|
2164
2317
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2165
2318
|
|
2166
2319
|
# form parameters
|
2167
|
-
form_params = {}
|
2320
|
+
form_params = opts[:form_params] || {}
|
2168
2321
|
|
2169
2322
|
# http body (model)
|
2170
|
-
post_body =
|
2171
|
-
|
2323
|
+
post_body = opts[:body]
|
2324
|
+
|
2325
|
+
return_type = opts[:return_type] || 'StudentsResponse'
|
2326
|
+
|
2327
|
+
auth_names = opts[:auth_names] || ['oauth']
|
2172
2328
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2173
2329
|
:header_params => header_params,
|
2174
2330
|
:query_params => query_params,
|
2175
2331
|
:form_params => form_params,
|
2176
2332
|
:body => post_body,
|
2177
2333
|
:auth_names => auth_names,
|
2178
|
-
:return_type =>
|
2334
|
+
:return_type => return_type)
|
2335
|
+
|
2179
2336
|
if @api_client.config.debugging
|
2180
2337
|
@api_client.config.logger.debug "API called: DataApi#get_students_for_school\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2181
2338
|
end
|
2182
2339
|
return data, status_code, headers
|
2183
2340
|
end
|
2184
2341
|
# Returns the students for a section
|
2185
|
-
# @param id
|
2342
|
+
# @param id
|
2186
2343
|
# @param [Hash] opts the optional parameters
|
2187
|
-
# @option opts [Integer] :limit
|
2188
|
-
# @option opts [String] :starting_after
|
2189
|
-
# @option opts [String] :ending_before
|
2344
|
+
# @option opts [Integer] :limit
|
2345
|
+
# @option opts [String] :starting_after
|
2346
|
+
# @option opts [String] :ending_before
|
2190
2347
|
# @return [StudentsResponse]
|
2191
2348
|
def get_students_for_section(id, opts = {})
|
2192
2349
|
data, _status_code, _headers = get_students_for_section_with_http_info(id, opts)
|
@@ -2194,12 +2351,12 @@ module Clever
|
|
2194
2351
|
end
|
2195
2352
|
|
2196
2353
|
# Returns the students for a section
|
2197
|
-
# @param id
|
2354
|
+
# @param id
|
2198
2355
|
# @param [Hash] opts the optional parameters
|
2199
|
-
# @option opts [Integer] :limit
|
2200
|
-
# @option opts [String] :starting_after
|
2201
|
-
# @option opts [String] :ending_before
|
2202
|
-
# @return [Array<(StudentsResponse,
|
2356
|
+
# @option opts [Integer] :limit
|
2357
|
+
# @option opts [String] :starting_after
|
2358
|
+
# @option opts [String] :ending_before
|
2359
|
+
# @return [Array<(StudentsResponse, Integer, Hash)>] StudentsResponse data, response status code and response headers
|
2203
2360
|
def get_students_for_section_with_http_info(id, opts = {})
|
2204
2361
|
if @api_client.config.debugging
|
2205
2362
|
@api_client.config.logger.debug 'Calling API: DataApi.get_students_for_section ...'
|
@@ -2212,40 +2369,44 @@ module Clever
|
|
2212
2369
|
local_var_path = '/sections/{id}/students'.sub('{' + 'id' + '}', id.to_s)
|
2213
2370
|
|
2214
2371
|
# query parameters
|
2215
|
-
query_params = {}
|
2372
|
+
query_params = opts[:query_params] || {}
|
2216
2373
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
2217
2374
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
2218
2375
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
2219
2376
|
|
2220
2377
|
# header parameters
|
2221
|
-
header_params = {}
|
2378
|
+
header_params = opts[:header_params] || {}
|
2222
2379
|
# HTTP header 'Accept' (if needed)
|
2223
2380
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2224
2381
|
|
2225
2382
|
# form parameters
|
2226
|
-
form_params = {}
|
2383
|
+
form_params = opts[:form_params] || {}
|
2227
2384
|
|
2228
2385
|
# http body (model)
|
2229
|
-
post_body =
|
2230
|
-
|
2386
|
+
post_body = opts[:body]
|
2387
|
+
|
2388
|
+
return_type = opts[:return_type] || 'StudentsResponse'
|
2389
|
+
|
2390
|
+
auth_names = opts[:auth_names] || ['oauth']
|
2231
2391
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2232
2392
|
:header_params => header_params,
|
2233
2393
|
:query_params => query_params,
|
2234
2394
|
:form_params => form_params,
|
2235
2395
|
:body => post_body,
|
2236
2396
|
:auth_names => auth_names,
|
2237
|
-
:return_type =>
|
2397
|
+
:return_type => return_type)
|
2398
|
+
|
2238
2399
|
if @api_client.config.debugging
|
2239
2400
|
@api_client.config.logger.debug "API called: DataApi#get_students_for_section\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2240
2401
|
end
|
2241
2402
|
return data, status_code, headers
|
2242
2403
|
end
|
2243
2404
|
# Returns the students for a teacher
|
2244
|
-
# @param id
|
2405
|
+
# @param id
|
2245
2406
|
# @param [Hash] opts the optional parameters
|
2246
|
-
# @option opts [Integer] :limit
|
2247
|
-
# @option opts [String] :starting_after
|
2248
|
-
# @option opts [String] :ending_before
|
2407
|
+
# @option opts [Integer] :limit
|
2408
|
+
# @option opts [String] :starting_after
|
2409
|
+
# @option opts [String] :ending_before
|
2249
2410
|
# @return [StudentsResponse]
|
2250
2411
|
def get_students_for_teacher(id, opts = {})
|
2251
2412
|
data, _status_code, _headers = get_students_for_teacher_with_http_info(id, opts)
|
@@ -2253,12 +2414,12 @@ module Clever
|
|
2253
2414
|
end
|
2254
2415
|
|
2255
2416
|
# Returns the students for a teacher
|
2256
|
-
# @param id
|
2417
|
+
# @param id
|
2257
2418
|
# @param [Hash] opts the optional parameters
|
2258
|
-
# @option opts [Integer] :limit
|
2259
|
-
# @option opts [String] :starting_after
|
2260
|
-
# @option opts [String] :ending_before
|
2261
|
-
# @return [Array<(StudentsResponse,
|
2419
|
+
# @option opts [Integer] :limit
|
2420
|
+
# @option opts [String] :starting_after
|
2421
|
+
# @option opts [String] :ending_before
|
2422
|
+
# @return [Array<(StudentsResponse, Integer, Hash)>] StudentsResponse data, response status code and response headers
|
2262
2423
|
def get_students_for_teacher_with_http_info(id, opts = {})
|
2263
2424
|
if @api_client.config.debugging
|
2264
2425
|
@api_client.config.logger.debug 'Calling API: DataApi.get_students_for_teacher ...'
|
@@ -2271,36 +2432,40 @@ module Clever
|
|
2271
2432
|
local_var_path = '/teachers/{id}/students'.sub('{' + 'id' + '}', id.to_s)
|
2272
2433
|
|
2273
2434
|
# query parameters
|
2274
|
-
query_params = {}
|
2435
|
+
query_params = opts[:query_params] || {}
|
2275
2436
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
2276
2437
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
2277
2438
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
2278
2439
|
|
2279
2440
|
# header parameters
|
2280
|
-
header_params = {}
|
2441
|
+
header_params = opts[:header_params] || {}
|
2281
2442
|
# HTTP header 'Accept' (if needed)
|
2282
2443
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2283
2444
|
|
2284
2445
|
# form parameters
|
2285
|
-
form_params = {}
|
2446
|
+
form_params = opts[:form_params] || {}
|
2286
2447
|
|
2287
2448
|
# http body (model)
|
2288
|
-
post_body =
|
2289
|
-
|
2449
|
+
post_body = opts[:body]
|
2450
|
+
|
2451
|
+
return_type = opts[:return_type] || 'StudentsResponse'
|
2452
|
+
|
2453
|
+
auth_names = opts[:auth_names] || ['oauth']
|
2290
2454
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2291
2455
|
:header_params => header_params,
|
2292
2456
|
:query_params => query_params,
|
2293
2457
|
:form_params => form_params,
|
2294
2458
|
:body => post_body,
|
2295
2459
|
:auth_names => auth_names,
|
2296
|
-
:return_type =>
|
2460
|
+
:return_type => return_type)
|
2461
|
+
|
2297
2462
|
if @api_client.config.debugging
|
2298
2463
|
@api_client.config.logger.debug "API called: DataApi#get_students_for_teacher\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2299
2464
|
end
|
2300
2465
|
return data, status_code, headers
|
2301
2466
|
end
|
2302
2467
|
# Returns a specific teacher
|
2303
|
-
# @param id
|
2468
|
+
# @param id
|
2304
2469
|
# @param [Hash] opts the optional parameters
|
2305
2470
|
# @return [TeacherResponse]
|
2306
2471
|
def get_teacher(id, opts = {})
|
@@ -2309,9 +2474,9 @@ module Clever
|
|
2309
2474
|
end
|
2310
2475
|
|
2311
2476
|
# Returns a specific teacher
|
2312
|
-
# @param id
|
2477
|
+
# @param id
|
2313
2478
|
# @param [Hash] opts the optional parameters
|
2314
|
-
# @return [Array<(TeacherResponse,
|
2479
|
+
# @return [Array<(TeacherResponse, Integer, Hash)>] TeacherResponse data, response status code and response headers
|
2315
2480
|
def get_teacher_with_http_info(id, opts = {})
|
2316
2481
|
if @api_client.config.debugging
|
2317
2482
|
@api_client.config.logger.debug 'Calling API: DataApi.get_teacher ...'
|
@@ -2324,33 +2489,37 @@ module Clever
|
|
2324
2489
|
local_var_path = '/teachers/{id}'.sub('{' + 'id' + '}', id.to_s)
|
2325
2490
|
|
2326
2491
|
# query parameters
|
2327
|
-
query_params = {}
|
2492
|
+
query_params = opts[:query_params] || {}
|
2328
2493
|
|
2329
2494
|
# header parameters
|
2330
|
-
header_params = {}
|
2495
|
+
header_params = opts[:header_params] || {}
|
2331
2496
|
# HTTP header 'Accept' (if needed)
|
2332
2497
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2333
2498
|
|
2334
2499
|
# form parameters
|
2335
|
-
form_params = {}
|
2500
|
+
form_params = opts[:form_params] || {}
|
2336
2501
|
|
2337
2502
|
# http body (model)
|
2338
|
-
post_body =
|
2339
|
-
|
2503
|
+
post_body = opts[:body]
|
2504
|
+
|
2505
|
+
return_type = opts[:return_type] || 'TeacherResponse'
|
2506
|
+
|
2507
|
+
auth_names = opts[:auth_names] || ['oauth']
|
2340
2508
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2341
2509
|
:header_params => header_params,
|
2342
2510
|
:query_params => query_params,
|
2343
2511
|
:form_params => form_params,
|
2344
2512
|
:body => post_body,
|
2345
2513
|
:auth_names => auth_names,
|
2346
|
-
:return_type =>
|
2514
|
+
:return_type => return_type)
|
2515
|
+
|
2347
2516
|
if @api_client.config.debugging
|
2348
2517
|
@api_client.config.logger.debug "API called: DataApi#get_teacher\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2349
2518
|
end
|
2350
2519
|
return data, status_code, headers
|
2351
2520
|
end
|
2352
2521
|
# Returns the primary teacher for a section
|
2353
|
-
# @param id
|
2522
|
+
# @param id
|
2354
2523
|
# @param [Hash] opts the optional parameters
|
2355
2524
|
# @return [TeacherResponse]
|
2356
2525
|
def get_teacher_for_section(id, opts = {})
|
@@ -2359,9 +2528,9 @@ module Clever
|
|
2359
2528
|
end
|
2360
2529
|
|
2361
2530
|
# Returns the primary teacher for a section
|
2362
|
-
# @param id
|
2531
|
+
# @param id
|
2363
2532
|
# @param [Hash] opts the optional parameters
|
2364
|
-
# @return [Array<(TeacherResponse,
|
2533
|
+
# @return [Array<(TeacherResponse, Integer, Hash)>] TeacherResponse data, response status code and response headers
|
2365
2534
|
def get_teacher_for_section_with_http_info(id, opts = {})
|
2366
2535
|
if @api_client.config.debugging
|
2367
2536
|
@api_client.config.logger.debug 'Calling API: DataApi.get_teacher_for_section ...'
|
@@ -2374,26 +2543,30 @@ module Clever
|
|
2374
2543
|
local_var_path = '/sections/{id}/teacher'.sub('{' + 'id' + '}', id.to_s)
|
2375
2544
|
|
2376
2545
|
# query parameters
|
2377
|
-
query_params = {}
|
2546
|
+
query_params = opts[:query_params] || {}
|
2378
2547
|
|
2379
2548
|
# header parameters
|
2380
|
-
header_params = {}
|
2549
|
+
header_params = opts[:header_params] || {}
|
2381
2550
|
# HTTP header 'Accept' (if needed)
|
2382
2551
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2383
2552
|
|
2384
2553
|
# form parameters
|
2385
|
-
form_params = {}
|
2554
|
+
form_params = opts[:form_params] || {}
|
2386
2555
|
|
2387
2556
|
# http body (model)
|
2388
|
-
post_body =
|
2389
|
-
|
2557
|
+
post_body = opts[:body]
|
2558
|
+
|
2559
|
+
return_type = opts[:return_type] || 'TeacherResponse'
|
2560
|
+
|
2561
|
+
auth_names = opts[:auth_names] || ['oauth']
|
2390
2562
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2391
2563
|
:header_params => header_params,
|
2392
2564
|
:query_params => query_params,
|
2393
2565
|
:form_params => form_params,
|
2394
2566
|
:body => post_body,
|
2395
2567
|
:auth_names => auth_names,
|
2396
|
-
:return_type =>
|
2568
|
+
:return_type => return_type)
|
2569
|
+
|
2397
2570
|
if @api_client.config.debugging
|
2398
2571
|
@api_client.config.logger.debug "API called: DataApi#get_teacher_for_section\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2399
2572
|
end
|
@@ -2401,10 +2574,10 @@ module Clever
|
|
2401
2574
|
end
|
2402
2575
|
# Returns a list of teachers
|
2403
2576
|
# @param [Hash] opts the optional parameters
|
2404
|
-
# @option opts [Integer] :limit
|
2405
|
-
# @option opts [String] :starting_after
|
2406
|
-
# @option opts [String] :ending_before
|
2407
|
-
# @option opts [String] :count
|
2577
|
+
# @option opts [Integer] :limit
|
2578
|
+
# @option opts [String] :starting_after
|
2579
|
+
# @option opts [String] :ending_before
|
2580
|
+
# @option opts [String] :count
|
2408
2581
|
# @return [TeachersResponse]
|
2409
2582
|
def get_teachers(opts = {})
|
2410
2583
|
data, _status_code, _headers = get_teachers_with_http_info(opts)
|
@@ -2413,57 +2586,61 @@ module Clever
|
|
2413
2586
|
|
2414
2587
|
# Returns a list of teachers
|
2415
2588
|
# @param [Hash] opts the optional parameters
|
2416
|
-
# @option opts [Integer] :limit
|
2417
|
-
# @option opts [String] :starting_after
|
2418
|
-
# @option opts [String] :ending_before
|
2419
|
-
# @option opts [String] :count
|
2420
|
-
# @return [Array<(TeachersResponse,
|
2589
|
+
# @option opts [Integer] :limit
|
2590
|
+
# @option opts [String] :starting_after
|
2591
|
+
# @option opts [String] :ending_before
|
2592
|
+
# @option opts [String] :count
|
2593
|
+
# @return [Array<(TeachersResponse, Integer, Hash)>] TeachersResponse data, response status code and response headers
|
2421
2594
|
def get_teachers_with_http_info(opts = {})
|
2422
2595
|
if @api_client.config.debugging
|
2423
2596
|
@api_client.config.logger.debug 'Calling API: DataApi.get_teachers ...'
|
2424
2597
|
end
|
2425
|
-
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true'].include?(opts[:'count'])
|
2426
|
-
fail ArgumentError, 'invalid value for "count", must be one of , true'
|
2598
|
+
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true', 'false', 'undefined'].include?(opts[:'count'])
|
2599
|
+
fail ArgumentError, 'invalid value for "count", must be one of , true, false, undefined'
|
2427
2600
|
end
|
2428
2601
|
# resource path
|
2429
2602
|
local_var_path = '/teachers'
|
2430
2603
|
|
2431
2604
|
# query parameters
|
2432
|
-
query_params = {}
|
2605
|
+
query_params = opts[:query_params] || {}
|
2433
2606
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
2434
2607
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
2435
2608
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
2436
2609
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
2437
2610
|
|
2438
2611
|
# header parameters
|
2439
|
-
header_params = {}
|
2612
|
+
header_params = opts[:header_params] || {}
|
2440
2613
|
# HTTP header 'Accept' (if needed)
|
2441
2614
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2442
2615
|
|
2443
2616
|
# form parameters
|
2444
|
-
form_params = {}
|
2617
|
+
form_params = opts[:form_params] || {}
|
2445
2618
|
|
2446
2619
|
# http body (model)
|
2447
|
-
post_body =
|
2448
|
-
|
2620
|
+
post_body = opts[:body]
|
2621
|
+
|
2622
|
+
return_type = opts[:return_type] || 'TeachersResponse'
|
2623
|
+
|
2624
|
+
auth_names = opts[:auth_names] || ['oauth']
|
2449
2625
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2450
2626
|
:header_params => header_params,
|
2451
2627
|
:query_params => query_params,
|
2452
2628
|
:form_params => form_params,
|
2453
2629
|
:body => post_body,
|
2454
2630
|
:auth_names => auth_names,
|
2455
|
-
:return_type =>
|
2631
|
+
:return_type => return_type)
|
2632
|
+
|
2456
2633
|
if @api_client.config.debugging
|
2457
2634
|
@api_client.config.logger.debug "API called: DataApi#get_teachers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2458
2635
|
end
|
2459
2636
|
return data, status_code, headers
|
2460
2637
|
end
|
2461
2638
|
# Returns the teachers for a school
|
2462
|
-
# @param id
|
2639
|
+
# @param id
|
2463
2640
|
# @param [Hash] opts the optional parameters
|
2464
|
-
# @option opts [Integer] :limit
|
2465
|
-
# @option opts [String] :starting_after
|
2466
|
-
# @option opts [String] :ending_before
|
2641
|
+
# @option opts [Integer] :limit
|
2642
|
+
# @option opts [String] :starting_after
|
2643
|
+
# @option opts [String] :ending_before
|
2467
2644
|
# @return [TeachersResponse]
|
2468
2645
|
def get_teachers_for_school(id, opts = {})
|
2469
2646
|
data, _status_code, _headers = get_teachers_for_school_with_http_info(id, opts)
|
@@ -2471,12 +2648,12 @@ module Clever
|
|
2471
2648
|
end
|
2472
2649
|
|
2473
2650
|
# Returns the teachers for a school
|
2474
|
-
# @param id
|
2651
|
+
# @param id
|
2475
2652
|
# @param [Hash] opts the optional parameters
|
2476
|
-
# @option opts [Integer] :limit
|
2477
|
-
# @option opts [String] :starting_after
|
2478
|
-
# @option opts [String] :ending_before
|
2479
|
-
# @return [Array<(TeachersResponse,
|
2653
|
+
# @option opts [Integer] :limit
|
2654
|
+
# @option opts [String] :starting_after
|
2655
|
+
# @option opts [String] :ending_before
|
2656
|
+
# @return [Array<(TeachersResponse, Integer, Hash)>] TeachersResponse data, response status code and response headers
|
2480
2657
|
def get_teachers_for_school_with_http_info(id, opts = {})
|
2481
2658
|
if @api_client.config.debugging
|
2482
2659
|
@api_client.config.logger.debug 'Calling API: DataApi.get_teachers_for_school ...'
|
@@ -2489,40 +2666,44 @@ module Clever
|
|
2489
2666
|
local_var_path = '/schools/{id}/teachers'.sub('{' + 'id' + '}', id.to_s)
|
2490
2667
|
|
2491
2668
|
# query parameters
|
2492
|
-
query_params = {}
|
2669
|
+
query_params = opts[:query_params] || {}
|
2493
2670
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
2494
2671
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
2495
2672
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
2496
2673
|
|
2497
2674
|
# header parameters
|
2498
|
-
header_params = {}
|
2675
|
+
header_params = opts[:header_params] || {}
|
2499
2676
|
# HTTP header 'Accept' (if needed)
|
2500
2677
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2501
2678
|
|
2502
2679
|
# form parameters
|
2503
|
-
form_params = {}
|
2680
|
+
form_params = opts[:form_params] || {}
|
2504
2681
|
|
2505
2682
|
# http body (model)
|
2506
|
-
post_body =
|
2507
|
-
|
2683
|
+
post_body = opts[:body]
|
2684
|
+
|
2685
|
+
return_type = opts[:return_type] || 'TeachersResponse'
|
2686
|
+
|
2687
|
+
auth_names = opts[:auth_names] || ['oauth']
|
2508
2688
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2509
2689
|
:header_params => header_params,
|
2510
2690
|
:query_params => query_params,
|
2511
2691
|
:form_params => form_params,
|
2512
2692
|
:body => post_body,
|
2513
2693
|
:auth_names => auth_names,
|
2514
|
-
:return_type =>
|
2694
|
+
:return_type => return_type)
|
2695
|
+
|
2515
2696
|
if @api_client.config.debugging
|
2516
2697
|
@api_client.config.logger.debug "API called: DataApi#get_teachers_for_school\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2517
2698
|
end
|
2518
2699
|
return data, status_code, headers
|
2519
2700
|
end
|
2520
2701
|
# Returns the teachers for a section
|
2521
|
-
# @param id
|
2702
|
+
# @param id
|
2522
2703
|
# @param [Hash] opts the optional parameters
|
2523
|
-
# @option opts [Integer] :limit
|
2524
|
-
# @option opts [String] :starting_after
|
2525
|
-
# @option opts [String] :ending_before
|
2704
|
+
# @option opts [Integer] :limit
|
2705
|
+
# @option opts [String] :starting_after
|
2706
|
+
# @option opts [String] :ending_before
|
2526
2707
|
# @return [TeachersResponse]
|
2527
2708
|
def get_teachers_for_section(id, opts = {})
|
2528
2709
|
data, _status_code, _headers = get_teachers_for_section_with_http_info(id, opts)
|
@@ -2530,12 +2711,12 @@ module Clever
|
|
2530
2711
|
end
|
2531
2712
|
|
2532
2713
|
# Returns the teachers for a section
|
2533
|
-
# @param id
|
2714
|
+
# @param id
|
2534
2715
|
# @param [Hash] opts the optional parameters
|
2535
|
-
# @option opts [Integer] :limit
|
2536
|
-
# @option opts [String] :starting_after
|
2537
|
-
# @option opts [String] :ending_before
|
2538
|
-
# @return [Array<(TeachersResponse,
|
2716
|
+
# @option opts [Integer] :limit
|
2717
|
+
# @option opts [String] :starting_after
|
2718
|
+
# @option opts [String] :ending_before
|
2719
|
+
# @return [Array<(TeachersResponse, Integer, Hash)>] TeachersResponse data, response status code and response headers
|
2539
2720
|
def get_teachers_for_section_with_http_info(id, opts = {})
|
2540
2721
|
if @api_client.config.debugging
|
2541
2722
|
@api_client.config.logger.debug 'Calling API: DataApi.get_teachers_for_section ...'
|
@@ -2548,40 +2729,44 @@ module Clever
|
|
2548
2729
|
local_var_path = '/sections/{id}/teachers'.sub('{' + 'id' + '}', id.to_s)
|
2549
2730
|
|
2550
2731
|
# query parameters
|
2551
|
-
query_params = {}
|
2732
|
+
query_params = opts[:query_params] || {}
|
2552
2733
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
2553
2734
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
2554
2735
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
2555
2736
|
|
2556
2737
|
# header parameters
|
2557
|
-
header_params = {}
|
2738
|
+
header_params = opts[:header_params] || {}
|
2558
2739
|
# HTTP header 'Accept' (if needed)
|
2559
2740
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2560
2741
|
|
2561
2742
|
# form parameters
|
2562
|
-
form_params = {}
|
2743
|
+
form_params = opts[:form_params] || {}
|
2563
2744
|
|
2564
2745
|
# http body (model)
|
2565
|
-
post_body =
|
2566
|
-
|
2746
|
+
post_body = opts[:body]
|
2747
|
+
|
2748
|
+
return_type = opts[:return_type] || 'TeachersResponse'
|
2749
|
+
|
2750
|
+
auth_names = opts[:auth_names] || ['oauth']
|
2567
2751
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2568
2752
|
:header_params => header_params,
|
2569
2753
|
:query_params => query_params,
|
2570
2754
|
:form_params => form_params,
|
2571
2755
|
:body => post_body,
|
2572
2756
|
:auth_names => auth_names,
|
2573
|
-
:return_type =>
|
2757
|
+
:return_type => return_type)
|
2758
|
+
|
2574
2759
|
if @api_client.config.debugging
|
2575
2760
|
@api_client.config.logger.debug "API called: DataApi#get_teachers_for_section\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2576
2761
|
end
|
2577
2762
|
return data, status_code, headers
|
2578
2763
|
end
|
2579
2764
|
# Returns the teachers for a student
|
2580
|
-
# @param id
|
2765
|
+
# @param id
|
2581
2766
|
# @param [Hash] opts the optional parameters
|
2582
|
-
# @option opts [Integer] :limit
|
2583
|
-
# @option opts [String] :starting_after
|
2584
|
-
# @option opts [String] :ending_before
|
2767
|
+
# @option opts [Integer] :limit
|
2768
|
+
# @option opts [String] :starting_after
|
2769
|
+
# @option opts [String] :ending_before
|
2585
2770
|
# @return [TeachersResponse]
|
2586
2771
|
def get_teachers_for_student(id, opts = {})
|
2587
2772
|
data, _status_code, _headers = get_teachers_for_student_with_http_info(id, opts)
|
@@ -2589,12 +2774,12 @@ module Clever
|
|
2589
2774
|
end
|
2590
2775
|
|
2591
2776
|
# Returns the teachers for a student
|
2592
|
-
# @param id
|
2777
|
+
# @param id
|
2593
2778
|
# @param [Hash] opts the optional parameters
|
2594
|
-
# @option opts [Integer] :limit
|
2595
|
-
# @option opts [String] :starting_after
|
2596
|
-
# @option opts [String] :ending_before
|
2597
|
-
# @return [Array<(TeachersResponse,
|
2779
|
+
# @option opts [Integer] :limit
|
2780
|
+
# @option opts [String] :starting_after
|
2781
|
+
# @option opts [String] :ending_before
|
2782
|
+
# @return [Array<(TeachersResponse, Integer, Hash)>] TeachersResponse data, response status code and response headers
|
2598
2783
|
def get_teachers_for_student_with_http_info(id, opts = {})
|
2599
2784
|
if @api_client.config.debugging
|
2600
2785
|
@api_client.config.logger.debug 'Calling API: DataApi.get_teachers_for_student ...'
|
@@ -2607,36 +2792,40 @@ module Clever
|
|
2607
2792
|
local_var_path = '/students/{id}/teachers'.sub('{' + 'id' + '}', id.to_s)
|
2608
2793
|
|
2609
2794
|
# query parameters
|
2610
|
-
query_params = {}
|
2795
|
+
query_params = opts[:query_params] || {}
|
2611
2796
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
2612
2797
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
2613
2798
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
2614
2799
|
|
2615
2800
|
# header parameters
|
2616
|
-
header_params = {}
|
2801
|
+
header_params = opts[:header_params] || {}
|
2617
2802
|
# HTTP header 'Accept' (if needed)
|
2618
2803
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2619
2804
|
|
2620
2805
|
# form parameters
|
2621
|
-
form_params = {}
|
2806
|
+
form_params = opts[:form_params] || {}
|
2622
2807
|
|
2623
2808
|
# http body (model)
|
2624
|
-
post_body =
|
2625
|
-
|
2809
|
+
post_body = opts[:body]
|
2810
|
+
|
2811
|
+
return_type = opts[:return_type] || 'TeachersResponse'
|
2812
|
+
|
2813
|
+
auth_names = opts[:auth_names] || ['oauth']
|
2626
2814
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2627
2815
|
:header_params => header_params,
|
2628
2816
|
:query_params => query_params,
|
2629
2817
|
:form_params => form_params,
|
2630
2818
|
:body => post_body,
|
2631
2819
|
:auth_names => auth_names,
|
2632
|
-
:return_type =>
|
2820
|
+
:return_type => return_type)
|
2821
|
+
|
2633
2822
|
if @api_client.config.debugging
|
2634
2823
|
@api_client.config.logger.debug "API called: DataApi#get_teachers_for_student\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2635
2824
|
end
|
2636
2825
|
return data, status_code, headers
|
2637
2826
|
end
|
2638
2827
|
# Returns a specific term
|
2639
|
-
# @param id
|
2828
|
+
# @param id
|
2640
2829
|
# @param [Hash] opts the optional parameters
|
2641
2830
|
# @return [TermResponse]
|
2642
2831
|
def get_term(id, opts = {})
|
@@ -2645,9 +2834,9 @@ module Clever
|
|
2645
2834
|
end
|
2646
2835
|
|
2647
2836
|
# Returns a specific term
|
2648
|
-
# @param id
|
2837
|
+
# @param id
|
2649
2838
|
# @param [Hash] opts the optional parameters
|
2650
|
-
# @return [Array<(TermResponse,
|
2839
|
+
# @return [Array<(TermResponse, Integer, Hash)>] TermResponse data, response status code and response headers
|
2651
2840
|
def get_term_with_http_info(id, opts = {})
|
2652
2841
|
if @api_client.config.debugging
|
2653
2842
|
@api_client.config.logger.debug 'Calling API: DataApi.get_term ...'
|
@@ -2660,33 +2849,37 @@ module Clever
|
|
2660
2849
|
local_var_path = '/terms/{id}'.sub('{' + 'id' + '}', id.to_s)
|
2661
2850
|
|
2662
2851
|
# query parameters
|
2663
|
-
query_params = {}
|
2852
|
+
query_params = opts[:query_params] || {}
|
2664
2853
|
|
2665
2854
|
# header parameters
|
2666
|
-
header_params = {}
|
2855
|
+
header_params = opts[:header_params] || {}
|
2667
2856
|
# HTTP header 'Accept' (if needed)
|
2668
2857
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2669
2858
|
|
2670
2859
|
# form parameters
|
2671
|
-
form_params = {}
|
2860
|
+
form_params = opts[:form_params] || {}
|
2672
2861
|
|
2673
2862
|
# http body (model)
|
2674
|
-
post_body =
|
2675
|
-
|
2863
|
+
post_body = opts[:body]
|
2864
|
+
|
2865
|
+
return_type = opts[:return_type] || 'TermResponse'
|
2866
|
+
|
2867
|
+
auth_names = opts[:auth_names] || ['oauth']
|
2676
2868
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2677
2869
|
:header_params => header_params,
|
2678
2870
|
:query_params => query_params,
|
2679
2871
|
:form_params => form_params,
|
2680
2872
|
:body => post_body,
|
2681
2873
|
:auth_names => auth_names,
|
2682
|
-
:return_type =>
|
2874
|
+
:return_type => return_type)
|
2875
|
+
|
2683
2876
|
if @api_client.config.debugging
|
2684
2877
|
@api_client.config.logger.debug "API called: DataApi#get_term\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2685
2878
|
end
|
2686
2879
|
return data, status_code, headers
|
2687
2880
|
end
|
2688
2881
|
# Returns the term for a section
|
2689
|
-
# @param id
|
2882
|
+
# @param id
|
2690
2883
|
# @param [Hash] opts the optional parameters
|
2691
2884
|
# @return [TermResponse]
|
2692
2885
|
def get_term_for_section(id, opts = {})
|
@@ -2695,9 +2888,9 @@ module Clever
|
|
2695
2888
|
end
|
2696
2889
|
|
2697
2890
|
# Returns the term for a section
|
2698
|
-
# @param id
|
2891
|
+
# @param id
|
2699
2892
|
# @param [Hash] opts the optional parameters
|
2700
|
-
# @return [Array<(TermResponse,
|
2893
|
+
# @return [Array<(TermResponse, Integer, Hash)>] TermResponse data, response status code and response headers
|
2701
2894
|
def get_term_for_section_with_http_info(id, opts = {})
|
2702
2895
|
if @api_client.config.debugging
|
2703
2896
|
@api_client.config.logger.debug 'Calling API: DataApi.get_term_for_section ...'
|
@@ -2710,26 +2903,30 @@ module Clever
|
|
2710
2903
|
local_var_path = '/sections/{id}/term'.sub('{' + 'id' + '}', id.to_s)
|
2711
2904
|
|
2712
2905
|
# query parameters
|
2713
|
-
query_params = {}
|
2906
|
+
query_params = opts[:query_params] || {}
|
2714
2907
|
|
2715
2908
|
# header parameters
|
2716
|
-
header_params = {}
|
2909
|
+
header_params = opts[:header_params] || {}
|
2717
2910
|
# HTTP header 'Accept' (if needed)
|
2718
2911
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2719
2912
|
|
2720
2913
|
# form parameters
|
2721
|
-
form_params = {}
|
2914
|
+
form_params = opts[:form_params] || {}
|
2722
2915
|
|
2723
2916
|
# http body (model)
|
2724
|
-
post_body =
|
2725
|
-
|
2917
|
+
post_body = opts[:body]
|
2918
|
+
|
2919
|
+
return_type = opts[:return_type] || 'TermResponse'
|
2920
|
+
|
2921
|
+
auth_names = opts[:auth_names] || ['oauth']
|
2726
2922
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2727
2923
|
:header_params => header_params,
|
2728
2924
|
:query_params => query_params,
|
2729
2925
|
:form_params => form_params,
|
2730
2926
|
:body => post_body,
|
2731
2927
|
:auth_names => auth_names,
|
2732
|
-
:return_type =>
|
2928
|
+
:return_type => return_type)
|
2929
|
+
|
2733
2930
|
if @api_client.config.debugging
|
2734
2931
|
@api_client.config.logger.debug "API called: DataApi#get_term_for_section\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2735
2932
|
end
|
@@ -2737,10 +2934,10 @@ module Clever
|
|
2737
2934
|
end
|
2738
2935
|
# Returns a list of terms
|
2739
2936
|
# @param [Hash] opts the optional parameters
|
2740
|
-
# @option opts [Integer] :limit
|
2741
|
-
# @option opts [String] :starting_after
|
2742
|
-
# @option opts [String] :ending_before
|
2743
|
-
# @option opts [String] :count
|
2937
|
+
# @option opts [Integer] :limit
|
2938
|
+
# @option opts [String] :starting_after
|
2939
|
+
# @option opts [String] :ending_before
|
2940
|
+
# @option opts [String] :count
|
2744
2941
|
# @return [TermsResponse]
|
2745
2942
|
def get_terms(opts = {})
|
2746
2943
|
data, _status_code, _headers = get_terms_with_http_info(opts)
|
@@ -2749,46 +2946,50 @@ module Clever
|
|
2749
2946
|
|
2750
2947
|
# Returns a list of terms
|
2751
2948
|
# @param [Hash] opts the optional parameters
|
2752
|
-
# @option opts [Integer] :limit
|
2753
|
-
# @option opts [String] :starting_after
|
2754
|
-
# @option opts [String] :ending_before
|
2755
|
-
# @option opts [String] :count
|
2756
|
-
# @return [Array<(TermsResponse,
|
2949
|
+
# @option opts [Integer] :limit
|
2950
|
+
# @option opts [String] :starting_after
|
2951
|
+
# @option opts [String] :ending_before
|
2952
|
+
# @option opts [String] :count
|
2953
|
+
# @return [Array<(TermsResponse, Integer, Hash)>] TermsResponse data, response status code and response headers
|
2757
2954
|
def get_terms_with_http_info(opts = {})
|
2758
2955
|
if @api_client.config.debugging
|
2759
2956
|
@api_client.config.logger.debug 'Calling API: DataApi.get_terms ...'
|
2760
2957
|
end
|
2761
|
-
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true'].include?(opts[:'count'])
|
2762
|
-
fail ArgumentError, 'invalid value for "count", must be one of , true'
|
2958
|
+
if @api_client.config.client_side_validation && opts[:'count'] && !['', 'true', 'false', 'undefined'].include?(opts[:'count'])
|
2959
|
+
fail ArgumentError, 'invalid value for "count", must be one of , true, false, undefined'
|
2763
2960
|
end
|
2764
2961
|
# resource path
|
2765
2962
|
local_var_path = '/terms'
|
2766
2963
|
|
2767
2964
|
# query parameters
|
2768
|
-
query_params = {}
|
2965
|
+
query_params = opts[:query_params] || {}
|
2769
2966
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
2770
2967
|
query_params[:'starting_after'] = opts[:'starting_after'] if !opts[:'starting_after'].nil?
|
2771
2968
|
query_params[:'ending_before'] = opts[:'ending_before'] if !opts[:'ending_before'].nil?
|
2772
2969
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
2773
2970
|
|
2774
2971
|
# header parameters
|
2775
|
-
header_params = {}
|
2972
|
+
header_params = opts[:header_params] || {}
|
2776
2973
|
# HTTP header 'Accept' (if needed)
|
2777
2974
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2778
2975
|
|
2779
2976
|
# form parameters
|
2780
|
-
form_params = {}
|
2977
|
+
form_params = opts[:form_params] || {}
|
2781
2978
|
|
2782
2979
|
# http body (model)
|
2783
|
-
post_body =
|
2784
|
-
|
2980
|
+
post_body = opts[:body]
|
2981
|
+
|
2982
|
+
return_type = opts[:return_type] || 'TermsResponse'
|
2983
|
+
|
2984
|
+
auth_names = opts[:auth_names] || ['oauth']
|
2785
2985
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2786
2986
|
:header_params => header_params,
|
2787
2987
|
:query_params => query_params,
|
2788
2988
|
:form_params => form_params,
|
2789
2989
|
:body => post_body,
|
2790
2990
|
:auth_names => auth_names,
|
2791
|
-
:return_type =>
|
2991
|
+
:return_type => return_type)
|
2992
|
+
|
2792
2993
|
if @api_client.config.debugging
|
2793
2994
|
@api_client.config.logger.debug "API called: DataApi#get_terms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2794
2995
|
end
|