clever-ruby 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/Gemfile.lock +4 -4
  4. data/README.md +19 -18
  5. data/clever-ruby.gemspec +4 -3
  6. data/docs/DataApi.md +2 -2
  7. data/docs/StudentContactsForStudentResponse.md +8 -0
  8. data/lib/clever-ruby.rb +20 -18
  9. data/lib/clever-ruby/api/data_api.rb +97 -34
  10. data/lib/clever-ruby/api/events_api.rb +19 -6
  11. data/lib/clever-ruby/api_error.rb +1 -0
  12. data/lib/clever-ruby/configuration.rb +7 -0
  13. data/lib/clever-ruby/models/bad_request.rb +1 -0
  14. data/lib/clever-ruby/models/credentials.rb +1 -0
  15. data/lib/clever-ruby/models/district.rb +1 -0
  16. data/lib/clever-ruby/models/district_admin.rb +1 -0
  17. data/lib/clever-ruby/models/district_admin_response.rb +1 -0
  18. data/lib/clever-ruby/models/district_admins_response.rb +1 -0
  19. data/lib/clever-ruby/models/district_object.rb +1 -0
  20. data/lib/clever-ruby/models/district_response.rb +1 -0
  21. data/lib/clever-ruby/models/district_status.rb +1 -0
  22. data/lib/clever-ruby/models/district_status_response.rb +1 -0
  23. data/lib/clever-ruby/models/district_status_responses.rb +1 -0
  24. data/lib/clever-ruby/models/districts_response.rb +1 -0
  25. data/lib/clever-ruby/models/event.rb +1 -0
  26. data/lib/clever-ruby/models/event_response.rb +1 -0
  27. data/lib/clever-ruby/models/events_response.rb +1 -0
  28. data/lib/clever-ruby/models/grade_levels_response.rb +1 -0
  29. data/lib/clever-ruby/models/internal_error.rb +1 -0
  30. data/lib/clever-ruby/models/location.rb +1 -0
  31. data/lib/clever-ruby/models/name.rb +1 -0
  32. data/lib/clever-ruby/models/not_found.rb +1 -0
  33. data/lib/clever-ruby/models/principal.rb +1 -0
  34. data/lib/clever-ruby/models/school.rb +1 -0
  35. data/lib/clever-ruby/models/school_admin.rb +1 -0
  36. data/lib/clever-ruby/models/school_admin_object.rb +1 -0
  37. data/lib/clever-ruby/models/school_admin_response.rb +1 -0
  38. data/lib/clever-ruby/models/school_admins_response.rb +1 -0
  39. data/lib/clever-ruby/models/school_object.rb +1 -0
  40. data/lib/clever-ruby/models/school_response.rb +1 -0
  41. data/lib/clever-ruby/models/schools_response.rb +1 -0
  42. data/lib/clever-ruby/models/section.rb +1 -0
  43. data/lib/clever-ruby/models/section_object.rb +1 -0
  44. data/lib/clever-ruby/models/section_response.rb +1 -0
  45. data/lib/clever-ruby/models/sections_response.rb +1 -0
  46. data/lib/clever-ruby/models/student.rb +1 -0
  47. data/lib/clever-ruby/models/student_contact.rb +1 -0
  48. data/lib/clever-ruby/models/student_contact_object.rb +1 -0
  49. data/lib/clever-ruby/models/student_contact_response.rb +1 -0
  50. data/lib/clever-ruby/models/student_contacts_for_student_response.rb +190 -0
  51. data/lib/clever-ruby/models/student_contacts_response.rb +1 -0
  52. data/lib/clever-ruby/models/student_object.rb +1 -0
  53. data/lib/clever-ruby/models/student_response.rb +1 -0
  54. data/lib/clever-ruby/models/students_created.rb +12 -0
  55. data/lib/clever-ruby/models/students_response.rb +1 -0
  56. data/lib/clever-ruby/models/teacher.rb +1 -0
  57. data/lib/clever-ruby/models/teacher_object.rb +1 -0
  58. data/lib/clever-ruby/models/teacher_response.rb +1 -0
  59. data/lib/clever-ruby/models/teachers_response.rb +1 -0
  60. data/lib/clever-ruby/models/term.rb +1 -0
  61. data/lib/clever-ruby/version.rb +2 -1
  62. data/override/models/students_created.rb +12 -0
  63. data/override/override.sh +4 -2
  64. data/spec/data_api_spec.rb +32 -0
  65. data/spec/events.json +46 -49
  66. data/spec/events_api_spec.rb +10 -2
  67. data/test.json +6 -0
  68. data/test.rb +10 -2
  69. metadata +17 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d88c1c5ab9a6348806daf93d3ffcaa29172c46f1
4
- data.tar.gz: 155909083b5eba42129c59ff3ca369cc4273a076
3
+ metadata.gz: 86e1c85771e588b95dec13ce41f7375c46ea3ee4
4
+ data.tar.gz: 4c1469d7c95473f07ff968c060c07b2a46b564ee
5
5
  SHA512:
6
- metadata.gz: e60b8516aadf101457395f7eb65b8325ce650214b15cde31a8bcaed36efff20c2701dc497573ee5621b573eb19228efe7ac76877d9b5d48dcca0f7e7689d8b12
7
- data.tar.gz: 75c69a06497b48da2cae5247fd47679bb543c7942d842c3bc37ca7eeef00eb0ae958345fc9ee977f77a4e64484b8a97febc3ca0edc5a0bf6db4d110675ac167b
6
+ metadata.gz: 32f8118b694e6db942cb2cdab53168e33eac6cc2e2bbe25c44209e55affde08446a7db476475b46881b7b9d4ee648f5740d92857c59acc03dafadcd8a88828ce
7
+ data.tar.gz: 6d734eb0b65c0c4d7fa47bd156799559d36c639d182deac8d82b6ed6ef1c5053534c1d84e08cd228decb601fabc1f73ac6f9f50fb320d863e610900eb1b4ac5f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 1.2.2 (2017-07-17)
2
+
3
+ * Fix Students.Created events to pull in ID and Type
4
+ * Fix /students/ID/contacts endpoint to read contacts correctly
5
+
1
6
  ## 1.2.1 (2017-06-27)
2
7
 
3
8
  * Fixed events models
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clever-ruby (1.2.1)
5
- json (~> 1.8, >= 1.8.3)
4
+ clever-ruby (1.2.2)
5
+ json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
8
8
  GEM
@@ -24,7 +24,7 @@ GEM
24
24
  ffi (>= 1.3.0)
25
25
  ffi (1.9.18)
26
26
  hashdiff (0.3.4)
27
- json (1.8.6)
27
+ json (2.1.0)
28
28
  public_suffix (2.0.5)
29
29
  rake (12.0.0)
30
30
  rspec (3.6.0)
@@ -56,7 +56,7 @@ PLATFORMS
56
56
 
57
57
  DEPENDENCIES
58
58
  autotest (~> 4.4, >= 4.4.6)
59
- autotest-fsevent (~> 0.2, >= 0.2.11)
59
+ autotest-fsevent (~> 0.2, >= 0.2.12)
60
60
  autotest-growl (~> 0.2, >= 0.2.16)
61
61
  autotest-rails-pure (~> 4.1, >= 4.1.2)
62
62
  clever-ruby!
data/README.md CHANGED
@@ -141,10 +141,7 @@ Class | Method | HTTP request | Description
141
141
  - [Clever::DistrictStatus](docs/DistrictStatus.md)
142
142
  - [Clever::DistrictStatusResponse](docs/DistrictStatusResponse.md)
143
143
  - [Clever::DistrictStatusResponses](docs/DistrictStatusResponses.md)
144
- - [Clever::DistrictsCreated](docs/DistrictsCreated.md)
145
- - [Clever::DistrictsDeleted](docs/DistrictsDeleted.md)
146
144
  - [Clever::DistrictsResponse](docs/DistrictsResponse.md)
147
- - [Clever::DistrictsUpdated](docs/DistrictsUpdated.md)
148
145
  - [Clever::Event](docs/Event.md)
149
146
  - [Clever::EventResponse](docs/EventResponse.md)
150
147
  - [Clever::EventsResponse](docs/EventsResponse.md)
@@ -161,42 +158,46 @@ Class | Method | HTTP request | Description
161
158
  - [Clever::SchoolAdminsResponse](docs/SchoolAdminsResponse.md)
162
159
  - [Clever::SchoolObject](docs/SchoolObject.md)
163
160
  - [Clever::SchoolResponse](docs/SchoolResponse.md)
164
- - [Clever::SchooladminsCreated](docs/SchooladminsCreated.md)
165
- - [Clever::SchooladminsDeleted](docs/SchooladminsDeleted.md)
166
- - [Clever::SchooladminsUpdated](docs/SchooladminsUpdated.md)
167
- - [Clever::SchoolsCreated](docs/SchoolsCreated.md)
168
- - [Clever::SchoolsDeleted](docs/SchoolsDeleted.md)
169
161
  - [Clever::SchoolsResponse](docs/SchoolsResponse.md)
170
- - [Clever::SchoolsUpdated](docs/SchoolsUpdated.md)
171
162
  - [Clever::Section](docs/Section.md)
172
163
  - [Clever::SectionObject](docs/SectionObject.md)
173
164
  - [Clever::SectionResponse](docs/SectionResponse.md)
174
- - [Clever::SectionsCreated](docs/SectionsCreated.md)
175
- - [Clever::SectionsDeleted](docs/SectionsDeleted.md)
176
165
  - [Clever::SectionsResponse](docs/SectionsResponse.md)
177
- - [Clever::SectionsUpdated](docs/SectionsUpdated.md)
178
166
  - [Clever::Student](docs/Student.md)
179
167
  - [Clever::StudentContact](docs/StudentContact.md)
180
168
  - [Clever::StudentContactObject](docs/StudentContactObject.md)
181
169
  - [Clever::StudentContactResponse](docs/StudentContactResponse.md)
170
+ - [Clever::StudentContactsForStudentResponse](docs/StudentContactsForStudentResponse.md)
182
171
  - [Clever::StudentContactsResponse](docs/StudentContactsResponse.md)
183
172
  - [Clever::StudentObject](docs/StudentObject.md)
184
173
  - [Clever::StudentResponse](docs/StudentResponse.md)
174
+ - [Clever::StudentsResponse](docs/StudentsResponse.md)
175
+ - [Clever::Teacher](docs/Teacher.md)
176
+ - [Clever::TeacherObject](docs/TeacherObject.md)
177
+ - [Clever::TeacherResponse](docs/TeacherResponse.md)
178
+ - [Clever::TeachersResponse](docs/TeachersResponse.md)
179
+ - [Clever::Term](docs/Term.md)
180
+ - [Clever::DistrictsCreated](docs/DistrictsCreated.md)
181
+ - [Clever::DistrictsDeleted](docs/DistrictsDeleted.md)
182
+ - [Clever::DistrictsUpdated](docs/DistrictsUpdated.md)
183
+ - [Clever::SchooladminsCreated](docs/SchooladminsCreated.md)
184
+ - [Clever::SchooladminsDeleted](docs/SchooladminsDeleted.md)
185
+ - [Clever::SchooladminsUpdated](docs/SchooladminsUpdated.md)
186
+ - [Clever::SchoolsCreated](docs/SchoolsCreated.md)
187
+ - [Clever::SchoolsDeleted](docs/SchoolsDeleted.md)
188
+ - [Clever::SchoolsUpdated](docs/SchoolsUpdated.md)
189
+ - [Clever::SectionsCreated](docs/SectionsCreated.md)
190
+ - [Clever::SectionsDeleted](docs/SectionsDeleted.md)
191
+ - [Clever::SectionsUpdated](docs/SectionsUpdated.md)
185
192
  - [Clever::StudentcontactsCreated](docs/StudentcontactsCreated.md)
186
193
  - [Clever::StudentcontactsDeleted](docs/StudentcontactsDeleted.md)
187
194
  - [Clever::StudentcontactsUpdated](docs/StudentcontactsUpdated.md)
188
195
  - [Clever::StudentsCreated](docs/StudentsCreated.md)
189
196
  - [Clever::StudentsDeleted](docs/StudentsDeleted.md)
190
- - [Clever::StudentsResponse](docs/StudentsResponse.md)
191
197
  - [Clever::StudentsUpdated](docs/StudentsUpdated.md)
192
- - [Clever::Teacher](docs/Teacher.md)
193
- - [Clever::TeacherObject](docs/TeacherObject.md)
194
- - [Clever::TeacherResponse](docs/TeacherResponse.md)
195
198
  - [Clever::TeachersCreated](docs/TeachersCreated.md)
196
199
  - [Clever::TeachersDeleted](docs/TeachersDeleted.md)
197
- - [Clever::TeachersResponse](docs/TeachersResponse.md)
198
200
  - [Clever::TeachersUpdated](docs/TeachersUpdated.md)
199
- - [Clever::Term](docs/Term.md)
200
201
 
201
202
 
202
203
  ## Documentation for Authorization
data/clever-ruby.gemspec CHANGED
@@ -8,6 +8,7 @@
8
8
  OpenAPI spec version: 1.2.0
9
9
 
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ Swagger Codegen version: 2.2.3
11
12
 
12
13
  =end
13
14
 
@@ -28,15 +29,15 @@ Gem::Specification.new do |s|
28
29
  s.required_ruby_version = ">= 1.9"
29
30
 
30
31
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
- s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.3'
32
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
33
 
33
- s.add_development_dependency 'rspec', '~> 3.4', '>= 3.4.0'
34
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
35
  s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
35
36
  s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
36
37
  s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
37
38
  s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
38
39
  s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
39
- s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.11'
40
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
40
41
 
41
42
  s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
42
43
  s.test_files = `find spec/*`.split("\n")
data/docs/DataApi.md CHANGED
@@ -153,7 +153,7 @@ Name | Type | Description | Notes
153
153
 
154
154
 
155
155
  # **get_contacts_for_student**
156
- > StudentContactsResponse get_contacts_for_student(id, opts)
156
+ > StudentContactsForStudentResponse get_contacts_for_student(id, opts)
157
157
 
158
158
 
159
159
 
@@ -194,7 +194,7 @@ Name | Type | Description | Notes
194
194
 
195
195
  ### Return type
196
196
 
197
- [**StudentContactsResponse**](StudentContactsResponse.md)
197
+ [**StudentContactsForStudentResponse**](StudentContactsForStudentResponse.md)
198
198
 
199
199
  ### Authorization
200
200
 
@@ -0,0 +1,8 @@
1
+ # Clever::StudentContactsForStudentResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Array<StudentContact>**](StudentContact.md) | | [optional]
7
+
8
+
data/lib/clever-ruby.rb CHANGED
@@ -6,6 +6,7 @@
6
6
  OpenAPI spec version: 1.2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
9
10
 
10
11
  =end
11
12
 
@@ -27,10 +28,7 @@ require 'clever-ruby/models/district_response'
27
28
  require 'clever-ruby/models/district_status'
28
29
  require 'clever-ruby/models/district_status_response'
29
30
  require 'clever-ruby/models/district_status_responses'
30
- require 'clever-ruby/models/districts_created'
31
- require 'clever-ruby/models/districts_deleted'
32
31
  require 'clever-ruby/models/districts_response'
33
- require 'clever-ruby/models/districts_updated'
34
32
  require 'clever-ruby/models/event'
35
33
  require 'clever-ruby/models/event_response'
36
34
  require 'clever-ruby/models/events_response'
@@ -47,42 +45,46 @@ require 'clever-ruby/models/school_admin_response'
47
45
  require 'clever-ruby/models/school_admins_response'
48
46
  require 'clever-ruby/models/school_object'
49
47
  require 'clever-ruby/models/school_response'
50
- require 'clever-ruby/models/schooladmins_created'
51
- require 'clever-ruby/models/schooladmins_deleted'
52
- require 'clever-ruby/models/schooladmins_updated'
53
- require 'clever-ruby/models/schools_created'
54
- require 'clever-ruby/models/schools_deleted'
55
48
  require 'clever-ruby/models/schools_response'
56
- require 'clever-ruby/models/schools_updated'
57
49
  require 'clever-ruby/models/section'
58
50
  require 'clever-ruby/models/section_object'
59
51
  require 'clever-ruby/models/section_response'
60
- require 'clever-ruby/models/sections_created'
61
- require 'clever-ruby/models/sections_deleted'
62
52
  require 'clever-ruby/models/sections_response'
63
- require 'clever-ruby/models/sections_updated'
64
53
  require 'clever-ruby/models/student'
65
54
  require 'clever-ruby/models/student_contact'
66
55
  require 'clever-ruby/models/student_contact_object'
67
56
  require 'clever-ruby/models/student_contact_response'
57
+ require 'clever-ruby/models/student_contacts_for_student_response'
68
58
  require 'clever-ruby/models/student_contacts_response'
69
59
  require 'clever-ruby/models/student_object'
70
60
  require 'clever-ruby/models/student_response'
61
+ require 'clever-ruby/models/students_response'
62
+ require 'clever-ruby/models/teacher'
63
+ require 'clever-ruby/models/teacher_object'
64
+ require 'clever-ruby/models/teacher_response'
65
+ require 'clever-ruby/models/teachers_response'
66
+ require 'clever-ruby/models/term'
67
+ require 'clever-ruby/models/districts_created'
68
+ require 'clever-ruby/models/districts_deleted'
69
+ require 'clever-ruby/models/districts_updated'
70
+ require 'clever-ruby/models/schooladmins_created'
71
+ require 'clever-ruby/models/schooladmins_deleted'
72
+ require 'clever-ruby/models/schooladmins_updated'
73
+ require 'clever-ruby/models/schools_created'
74
+ require 'clever-ruby/models/schools_deleted'
75
+ require 'clever-ruby/models/schools_updated'
76
+ require 'clever-ruby/models/sections_created'
77
+ require 'clever-ruby/models/sections_deleted'
78
+ require 'clever-ruby/models/sections_updated'
71
79
  require 'clever-ruby/models/studentcontacts_created'
72
80
  require 'clever-ruby/models/studentcontacts_deleted'
73
81
  require 'clever-ruby/models/studentcontacts_updated'
74
82
  require 'clever-ruby/models/students_created'
75
83
  require 'clever-ruby/models/students_deleted'
76
- require 'clever-ruby/models/students_response'
77
84
  require 'clever-ruby/models/students_updated'
78
- require 'clever-ruby/models/teacher'
79
- require 'clever-ruby/models/teacher_object'
80
- require 'clever-ruby/models/teacher_response'
81
85
  require 'clever-ruby/models/teachers_created'
82
86
  require 'clever-ruby/models/teachers_deleted'
83
- require 'clever-ruby/models/teachers_response'
84
87
  require 'clever-ruby/models/teachers_updated'
85
- require 'clever-ruby/models/term'
86
88
 
87
89
  # APIs
88
90
  require 'clever-ruby/api/data_api'
@@ -6,6 +6,7 @@
6
6
  OpenAPI spec version: 1.2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
9
10
 
10
11
  =end
11
12
 
@@ -39,7 +40,9 @@ module Clever
39
40
  @api_client.config.logger.debug "Calling API: DataApi.get_contact ..."
40
41
  end
41
42
  # verify the required parameter 'id' is set
42
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_contact" if id.nil?
43
+ if @api_client.config.client_side_validation && id.nil?
44
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_contact"
45
+ end
43
46
  # resource path
44
47
  local_var_path = "/contacts/{id}".sub('{' + 'id' + '}', id.to_s)
45
48
 
@@ -131,7 +134,7 @@ module Clever
131
134
  # @param id
132
135
  # @param [Hash] opts the optional parameters
133
136
  # @option opts [Integer] :limit
134
- # @return [StudentContactsResponse]
137
+ # @return [StudentContactsForStudentResponse]
135
138
  def get_contacts_for_student(id, opts = {})
136
139
  data, _status_code, _headers = get_contacts_for_student_with_http_info(id, opts)
137
140
  return data
@@ -142,13 +145,15 @@ module Clever
142
145
  # @param id
143
146
  # @param [Hash] opts the optional parameters
144
147
  # @option opts [Integer] :limit
145
- # @return [Array<(StudentContactsResponse, Fixnum, Hash)>] StudentContactsResponse data, response status code and response headers
148
+ # @return [Array<(StudentContactsForStudentResponse, Fixnum, Hash)>] StudentContactsForStudentResponse data, response status code and response headers
146
149
  def get_contacts_for_student_with_http_info(id, opts = {})
147
150
  if @api_client.config.debugging
148
151
  @api_client.config.logger.debug "Calling API: DataApi.get_contacts_for_student ..."
149
152
  end
150
153
  # verify the required parameter 'id' is set
151
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_contacts_for_student" if id.nil?
154
+ if @api_client.config.client_side_validation && id.nil?
155
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_contacts_for_student"
156
+ end
152
157
  # resource path
153
158
  local_var_path = "/students/{id}/contacts".sub('{' + 'id' + '}', id.to_s)
154
159
 
@@ -173,7 +178,7 @@ module Clever
173
178
  :form_params => form_params,
174
179
  :body => post_body,
175
180
  :auth_names => auth_names,
176
- :return_type => 'StudentContactsResponse')
181
+ :return_type => 'StudentContactsForStudentResponse')
177
182
  if @api_client.config.debugging
178
183
  @api_client.config.logger.debug "API called: DataApi#get_contacts_for_student\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
179
184
  end
@@ -200,7 +205,9 @@ module Clever
200
205
  @api_client.config.logger.debug "Calling API: DataApi.get_district ..."
201
206
  end
202
207
  # verify the required parameter 'id' is set
203
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district" if id.nil?
208
+ if @api_client.config.client_side_validation && id.nil?
209
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district"
210
+ end
204
211
  # resource path
205
212
  local_var_path = "/districts/{id}".sub('{' + 'id' + '}', id.to_s)
206
213
 
@@ -251,7 +258,9 @@ module Clever
251
258
  @api_client.config.logger.debug "Calling API: DataApi.get_district_admin ..."
252
259
  end
253
260
  # verify the required parameter 'id' is set
254
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_admin" if id.nil?
261
+ if @api_client.config.client_side_validation && id.nil?
262
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_admin"
263
+ end
255
264
  # resource path
256
265
  local_var_path = "/district_admins/{id}".sub('{' + 'id' + '}', id.to_s)
257
266
 
@@ -355,7 +364,9 @@ module Clever
355
364
  @api_client.config.logger.debug "Calling API: DataApi.get_district_for_school ..."
356
365
  end
357
366
  # verify the required parameter 'id' is set
358
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_school" if id.nil?
367
+ if @api_client.config.client_side_validation && id.nil?
368
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_school"
369
+ end
359
370
  # resource path
360
371
  local_var_path = "/schools/{id}/district".sub('{' + 'id' + '}', id.to_s)
361
372
 
@@ -406,7 +417,9 @@ module Clever
406
417
  @api_client.config.logger.debug "Calling API: DataApi.get_district_for_section ..."
407
418
  end
408
419
  # verify the required parameter 'id' is set
409
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_section" if id.nil?
420
+ if @api_client.config.client_side_validation && id.nil?
421
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_section"
422
+ end
410
423
  # resource path
411
424
  local_var_path = "/sections/{id}/district".sub('{' + 'id' + '}', id.to_s)
412
425
 
@@ -457,7 +470,9 @@ module Clever
457
470
  @api_client.config.logger.debug "Calling API: DataApi.get_district_for_student ..."
458
471
  end
459
472
  # verify the required parameter 'id' is set
460
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_student" if id.nil?
473
+ if @api_client.config.client_side_validation && id.nil?
474
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_student"
475
+ end
461
476
  # resource path
462
477
  local_var_path = "/students/{id}/district".sub('{' + 'id' + '}', id.to_s)
463
478
 
@@ -508,7 +523,9 @@ module Clever
508
523
  @api_client.config.logger.debug "Calling API: DataApi.get_district_for_student_contact ..."
509
524
  end
510
525
  # verify the required parameter 'id' is set
511
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_student_contact" if id.nil?
526
+ if @api_client.config.client_side_validation && id.nil?
527
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_student_contact"
528
+ end
512
529
  # resource path
513
530
  local_var_path = "/contacts/{id}/district".sub('{' + 'id' + '}', id.to_s)
514
531
 
@@ -559,7 +576,9 @@ module Clever
559
576
  @api_client.config.logger.debug "Calling API: DataApi.get_district_for_teacher ..."
560
577
  end
561
578
  # verify the required parameter 'id' is set
562
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_teacher" if id.nil?
579
+ if @api_client.config.client_side_validation && id.nil?
580
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_for_teacher"
581
+ end
563
582
  # resource path
564
583
  local_var_path = "/teachers/{id}/district".sub('{' + 'id' + '}', id.to_s)
565
584
 
@@ -610,7 +629,9 @@ module Clever
610
629
  @api_client.config.logger.debug "Calling API: DataApi.get_district_status ..."
611
630
  end
612
631
  # verify the required parameter 'id' is set
613
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_status" if id.nil?
632
+ if @api_client.config.client_side_validation && id.nil?
633
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_district_status"
634
+ end
614
635
  # resource path
615
636
  local_var_path = "/districts/{id}/status".sub('{' + 'id' + '}', id.to_s)
616
637
 
@@ -708,7 +729,9 @@ module Clever
708
729
  @api_client.config.logger.debug "Calling API: DataApi.get_grade_levels_for_teacher ..."
709
730
  end
710
731
  # verify the required parameter 'id' is set
711
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_grade_levels_for_teacher" if id.nil?
732
+ if @api_client.config.client_side_validation && id.nil?
733
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_grade_levels_for_teacher"
734
+ end
712
735
  # resource path
713
736
  local_var_path = "/teachers/{id}/grade_levels".sub('{' + 'id' + '}', id.to_s)
714
737
 
@@ -759,7 +782,9 @@ module Clever
759
782
  @api_client.config.logger.debug "Calling API: DataApi.get_school ..."
760
783
  end
761
784
  # verify the required parameter 'id' is set
762
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_school" if id.nil?
785
+ if @api_client.config.client_side_validation && id.nil?
786
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_school"
787
+ end
763
788
  # resource path
764
789
  local_var_path = "/schools/{id}".sub('{' + 'id' + '}', id.to_s)
765
790
 
@@ -810,7 +835,9 @@ module Clever
810
835
  @api_client.config.logger.debug "Calling API: DataApi.get_school_admin ..."
811
836
  end
812
837
  # verify the required parameter 'id' is set
813
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_school_admin" if id.nil?
838
+ if @api_client.config.client_side_validation && id.nil?
839
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_school_admin"
840
+ end
814
841
  # resource path
815
842
  local_var_path = "/school_admins/{id}".sub('{' + 'id' + '}', id.to_s)
816
843
 
@@ -917,7 +944,9 @@ module Clever
917
944
  @api_client.config.logger.debug "Calling API: DataApi.get_school_for_section ..."
918
945
  end
919
946
  # verify the required parameter 'id' is set
920
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_school_for_section" if id.nil?
947
+ if @api_client.config.client_side_validation && id.nil?
948
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_school_for_section"
949
+ end
921
950
  # resource path
922
951
  local_var_path = "/sections/{id}/school".sub('{' + 'id' + '}', id.to_s)
923
952
 
@@ -968,7 +997,9 @@ module Clever
968
997
  @api_client.config.logger.debug "Calling API: DataApi.get_school_for_student ..."
969
998
  end
970
999
  # verify the required parameter 'id' is set
971
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_school_for_student" if id.nil?
1000
+ if @api_client.config.client_side_validation && id.nil?
1001
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_school_for_student"
1002
+ end
972
1003
  # resource path
973
1004
  local_var_path = "/students/{id}/school".sub('{' + 'id' + '}', id.to_s)
974
1005
 
@@ -1019,7 +1050,9 @@ module Clever
1019
1050
  @api_client.config.logger.debug "Calling API: DataApi.get_school_for_teacher ..."
1020
1051
  end
1021
1052
  # verify the required parameter 'id' is set
1022
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_school_for_teacher" if id.nil?
1053
+ if @api_client.config.client_side_validation && id.nil?
1054
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_school_for_teacher"
1055
+ end
1023
1056
  # resource path
1024
1057
  local_var_path = "/teachers/{id}/school".sub('{' + 'id' + '}', id.to_s)
1025
1058
 
@@ -1132,7 +1165,9 @@ module Clever
1132
1165
  @api_client.config.logger.debug "Calling API: DataApi.get_schools_for_school_admin ..."
1133
1166
  end
1134
1167
  # verify the required parameter 'id' is set
1135
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_schools_for_school_admin" if id.nil?
1168
+ if @api_client.config.client_side_validation && id.nil?
1169
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_schools_for_school_admin"
1170
+ end
1136
1171
  # resource path
1137
1172
  local_var_path = "/school_admins/{id}/schools".sub('{' + 'id' + '}', id.to_s)
1138
1173
 
@@ -1186,7 +1221,9 @@ module Clever
1186
1221
  @api_client.config.logger.debug "Calling API: DataApi.get_section ..."
1187
1222
  end
1188
1223
  # verify the required parameter 'id' is set
1189
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_section" if id.nil?
1224
+ if @api_client.config.client_side_validation && id.nil?
1225
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_section"
1226
+ end
1190
1227
  # resource path
1191
1228
  local_var_path = "/sections/{id}".sub('{' + 'id' + '}', id.to_s)
1192
1229
 
@@ -1299,7 +1336,9 @@ module Clever
1299
1336
  @api_client.config.logger.debug "Calling API: DataApi.get_sections_for_school ..."
1300
1337
  end
1301
1338
  # verify the required parameter 'id' is set
1302
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_sections_for_school" if id.nil?
1339
+ if @api_client.config.client_side_validation && id.nil?
1340
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_sections_for_school"
1341
+ end
1303
1342
  # resource path
1304
1343
  local_var_path = "/schools/{id}/sections".sub('{' + 'id' + '}', id.to_s)
1305
1344
 
@@ -1359,7 +1398,9 @@ module Clever
1359
1398
  @api_client.config.logger.debug "Calling API: DataApi.get_sections_for_student ..."
1360
1399
  end
1361
1400
  # verify the required parameter 'id' is set
1362
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_sections_for_student" if id.nil?
1401
+ if @api_client.config.client_side_validation && id.nil?
1402
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_sections_for_student"
1403
+ end
1363
1404
  # resource path
1364
1405
  local_var_path = "/students/{id}/sections".sub('{' + 'id' + '}', id.to_s)
1365
1406
 
@@ -1419,7 +1460,9 @@ module Clever
1419
1460
  @api_client.config.logger.debug "Calling API: DataApi.get_sections_for_teacher ..."
1420
1461
  end
1421
1462
  # verify the required parameter 'id' is set
1422
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_sections_for_teacher" if id.nil?
1463
+ if @api_client.config.client_side_validation && id.nil?
1464
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_sections_for_teacher"
1465
+ end
1423
1466
  # resource path
1424
1467
  local_var_path = "/teachers/{id}/sections".sub('{' + 'id' + '}', id.to_s)
1425
1468
 
@@ -1473,7 +1516,9 @@ module Clever
1473
1516
  @api_client.config.logger.debug "Calling API: DataApi.get_student ..."
1474
1517
  end
1475
1518
  # verify the required parameter 'id' is set
1476
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_student" if id.nil?
1519
+ if @api_client.config.client_side_validation && id.nil?
1520
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_student"
1521
+ end
1477
1522
  # resource path
1478
1523
  local_var_path = "/students/{id}".sub('{' + 'id' + '}', id.to_s)
1479
1524
 
@@ -1524,7 +1569,9 @@ module Clever
1524
1569
  @api_client.config.logger.debug "Calling API: DataApi.get_student_for_contact ..."
1525
1570
  end
1526
1571
  # verify the required parameter 'id' is set
1527
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_student_for_contact" if id.nil?
1572
+ if @api_client.config.client_side_validation && id.nil?
1573
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_student_for_contact"
1574
+ end
1528
1575
  # resource path
1529
1576
  local_var_path = "/contacts/{id}/student".sub('{' + 'id' + '}', id.to_s)
1530
1577
 
@@ -1637,7 +1684,9 @@ module Clever
1637
1684
  @api_client.config.logger.debug "Calling API: DataApi.get_students_for_school ..."
1638
1685
  end
1639
1686
  # verify the required parameter 'id' is set
1640
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_students_for_school" if id.nil?
1687
+ if @api_client.config.client_side_validation && id.nil?
1688
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_students_for_school"
1689
+ end
1641
1690
  # resource path
1642
1691
  local_var_path = "/schools/{id}/students".sub('{' + 'id' + '}', id.to_s)
1643
1692
 
@@ -1697,7 +1746,9 @@ module Clever
1697
1746
  @api_client.config.logger.debug "Calling API: DataApi.get_students_for_section ..."
1698
1747
  end
1699
1748
  # verify the required parameter 'id' is set
1700
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_students_for_section" if id.nil?
1749
+ if @api_client.config.client_side_validation && id.nil?
1750
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_students_for_section"
1751
+ end
1701
1752
  # resource path
1702
1753
  local_var_path = "/sections/{id}/students".sub('{' + 'id' + '}', id.to_s)
1703
1754
 
@@ -1757,7 +1808,9 @@ module Clever
1757
1808
  @api_client.config.logger.debug "Calling API: DataApi.get_students_for_teacher ..."
1758
1809
  end
1759
1810
  # verify the required parameter 'id' is set
1760
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_students_for_teacher" if id.nil?
1811
+ if @api_client.config.client_side_validation && id.nil?
1812
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_students_for_teacher"
1813
+ end
1761
1814
  # resource path
1762
1815
  local_var_path = "/teachers/{id}/students".sub('{' + 'id' + '}', id.to_s)
1763
1816
 
@@ -1811,7 +1864,9 @@ module Clever
1811
1864
  @api_client.config.logger.debug "Calling API: DataApi.get_teacher ..."
1812
1865
  end
1813
1866
  # verify the required parameter 'id' is set
1814
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_teacher" if id.nil?
1867
+ if @api_client.config.client_side_validation && id.nil?
1868
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_teacher"
1869
+ end
1815
1870
  # resource path
1816
1871
  local_var_path = "/teachers/{id}".sub('{' + 'id' + '}', id.to_s)
1817
1872
 
@@ -1862,7 +1917,9 @@ module Clever
1862
1917
  @api_client.config.logger.debug "Calling API: DataApi.get_teacher_for_section ..."
1863
1918
  end
1864
1919
  # verify the required parameter 'id' is set
1865
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_teacher_for_section" if id.nil?
1920
+ if @api_client.config.client_side_validation && id.nil?
1921
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_teacher_for_section"
1922
+ end
1866
1923
  # resource path
1867
1924
  local_var_path = "/sections/{id}/teacher".sub('{' + 'id' + '}', id.to_s)
1868
1925
 
@@ -1975,7 +2032,9 @@ module Clever
1975
2032
  @api_client.config.logger.debug "Calling API: DataApi.get_teachers_for_school ..."
1976
2033
  end
1977
2034
  # verify the required parameter 'id' is set
1978
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_teachers_for_school" if id.nil?
2035
+ if @api_client.config.client_side_validation && id.nil?
2036
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_teachers_for_school"
2037
+ end
1979
2038
  # resource path
1980
2039
  local_var_path = "/schools/{id}/teachers".sub('{' + 'id' + '}', id.to_s)
1981
2040
 
@@ -2035,7 +2094,9 @@ module Clever
2035
2094
  @api_client.config.logger.debug "Calling API: DataApi.get_teachers_for_section ..."
2036
2095
  end
2037
2096
  # verify the required parameter 'id' is set
2038
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_teachers_for_section" if id.nil?
2097
+ if @api_client.config.client_side_validation && id.nil?
2098
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_teachers_for_section"
2099
+ end
2039
2100
  # resource path
2040
2101
  local_var_path = "/sections/{id}/teachers".sub('{' + 'id' + '}', id.to_s)
2041
2102
 
@@ -2095,7 +2156,9 @@ module Clever
2095
2156
  @api_client.config.logger.debug "Calling API: DataApi.get_teachers_for_student ..."
2096
2157
  end
2097
2158
  # verify the required parameter 'id' is set
2098
- fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_teachers_for_student" if id.nil?
2159
+ if @api_client.config.client_side_validation && id.nil?
2160
+ fail ArgumentError, "Missing the required parameter 'id' when calling DataApi.get_teachers_for_student"
2161
+ end
2099
2162
  # resource path
2100
2163
  local_var_path = "/students/{id}/teachers".sub('{' + 'id' + '}', id.to_s)
2101
2164