From 3c47d8c78ba767bc7d6a3198e8f23e2a54ad5d4c Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Sun, 20 Aug 2017 03:12:25 +0000 Subject: [PATCH 01/53] Specify encoding as utf-8 when decoding (defaults to ascii) --- clever/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clever/__init__.py b/clever/__init__.py index 7ad21ed..984331f 100644 --- a/clever/__init__.py +++ b/clever/__init__.py @@ -282,7 +282,7 @@ def request_raw(self, meth, url, params={}): def interpret_response(self, http_res): rbody, rcode= http_res['body'], http_res['code'] try: - resp = json.loads(rbody.decode()) if rcode != 429 else {'error': 'Too Many Requests'} + resp = json.loads(rbody.decode('utf-8')) if rcode != 429 else {'error': 'Too Many Requests'} except Exception: raise APIError("Invalid response body from API: %s (HTTP response code was %d)" % (rbody, rcode), rbody, rcode) From aaa52ebbdc85443e3592dd20d19ee039d508dde4 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Sun, 20 Aug 2017 03:16:49 +0000 Subject: [PATCH 02/53] Fix test now that sort param is deprecated --- test/test_clever.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_clever.py b/test/test_clever.py index 49565ca..83de45c 100644 --- a/test/test_clever.py +++ b/test/test_clever.py @@ -85,7 +85,7 @@ def test_unicode(self): self.assertRaises(clever.APIError, clever.District.retrieve, id=u'☃') def test_none_values(self): - district = clever.District.all(sort=None)[0] + district = clever.District.all(count=None)[0] self.assertTrue(district.id) def test_missing_id(self): From c5e4fdc6e46b420d602a9f53d09bef0da11d2fa3 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Sun, 20 Aug 2017 03:54:51 +0000 Subject: [PATCH 03/53] Add test for unicode responses --- test/test_clever.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/test_clever.py b/test/test_clever.py index 83de45c..be04174 100644 --- a/test/test_clever.py +++ b/test/test_clever.py @@ -32,6 +32,9 @@ def setUp(self): clever.api_base = os.environ.get('CLEVER_API_BASE', 'https://api.clever.com/') clever.set_token('DEMO_TOKEN') +#generates httmock responses for test_unicode_receive +def unicode_content(url, request): + return {'status_code': 200, 'content': '{"data": {"name": "Oh haiô"}}'} class FunctionalTests(CleverTestCase): @@ -80,10 +83,15 @@ def test_unsupported_params(self): self.assertRaises(clever.CleverError, lambda: clever.District.all(limit=10)) self.assertRaises(clever.CleverError, lambda: clever.District.all(page=2, limit=10)) - def test_unicode(self): - # Make sure unicode requests can be sent + def test_unicode_send(self): + # Make sure unicode requests can be sent. 404 error is a clever.APIError self.assertRaises(clever.APIError, clever.District.retrieve, id=u'☃') + def test_unicode_receive(self): + with HTTMock(unicode_content): + # Make sure unicode responses can be received. + self.assertEqual(u'Oh haiô', clever.District.retrieve('something').name) + def test_none_values(self): district = clever.District.all(count=None)[0] self.assertTrue(district.id) From 82b5d0988d4230d9726875e42143c3912535334c Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 22 Aug 2017 19:32:16 +0000 Subject: [PATCH 04/53] Bump version --- CHANGELOG.md | 3 +++ clever/VERSION | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14381cc..dcad3eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2.3.2 (2017-08-22) + * Support unicode characters in API response + ## 2.3.1 (2017-02-06) * Changed support email address diff --git a/clever/VERSION b/clever/VERSION index 2bf1c1c..f90b1af 100644 --- a/clever/VERSION +++ b/clever/VERSION @@ -1 +1 @@ -2.3.1 +2.3.2 From 45078aa35b68103de0dee7e9740850956d652647 Mon Sep 17 00:00:00 2001 From: dc105297 Date: Mon, 18 Sep 2017 10:56:59 -0400 Subject: [PATCH 05/53] Update __init__.py --- clever/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clever/__init__.py b/clever/__init__.py index 984331f..dea7f0a 100644 --- a/clever/__init__.py +++ b/clever/__init__.py @@ -82,7 +82,7 @@ # Use certs chain bundle including in the package for SSL verification CLEVER_CERTS = pkg_resources.resource_filename(__name__, 'data/clever.com_ca_bundle.crt') -API_VERSION = "v1.1" +API_VERSION = "v1.2" # Configuration variables From a754b29c36e742bfae932409a21b6be39ede4a49 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Mon, 18 Sep 2017 15:57:32 +0000 Subject: [PATCH 06/53] Bump version --- CHANGELOG.md | 3 +++ clever/VERSION | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dcad3eb..79a7075 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2.4.0 (2017-09-18) + * Use API v1.2 + ## 2.3.2 (2017-08-22) * Support unicode characters in API response diff --git a/clever/VERSION b/clever/VERSION index f90b1af..197c4d5 100644 --- a/clever/VERSION +++ b/clever/VERSION @@ -1 +1 @@ -2.3.2 +2.4.0 From 44f72e896c1e5f0c3ec97428e6741c3efc6dcf87 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 19 Sep 2017 14:24:55 +0000 Subject: [PATCH 07/53] Initial codegen --- .gitignore | 73 +- .swagger-codegen-ignore | 23 + README.md | 282 +- docs/BadRequest.md | 10 + docs/Credentials.md | 10 + docs/DataApi.md | 2081 +++++++++ docs/District.md | 12 + docs/DistrictAdmin.md | 14 + docs/DistrictAdminResponse.md | 10 + docs/DistrictAdminsResponse.md | 10 + docs/DistrictObject.md | 10 + docs/DistrictResponse.md | 10 + docs/DistrictStatus.md | 17 + docs/DistrictStatusResponse.md | 10 + docs/DistrictStatusResponses.md | 10 + docs/DistrictsCreated.md | 13 + docs/DistrictsDeleted.md | 13 + docs/DistrictsResponse.md | 10 + docs/DistrictsUpdated.md | 13 + docs/Event.md | 12 + docs/EventResponse.md | 10 + docs/EventsApi.md | 399 ++ docs/EventsResponse.md | 10 + docs/GradeLevelsResponse.md | 10 + docs/InternalError.md | 10 + docs/Location.md | 15 + docs/Name.md | 12 + docs/NotFound.md | 10 + docs/Principal.md | 11 + docs/School.md | 24 + docs/SchoolAdmin.md | 17 + docs/SchoolAdminObject.md | 10 + docs/SchoolAdminResponse.md | 10 + docs/SchoolAdminsResponse.md | 10 + docs/SchoolObject.md | 10 + docs/SchoolResponse.md | 10 + docs/SchooladminsCreated.md | 13 + docs/SchooladminsDeleted.md | 13 + docs/SchooladminsUpdated.md | 13 + docs/SchoolsCreated.md | 13 + docs/SchoolsDeleted.md | 13 + docs/SchoolsResponse.md | 10 + docs/SchoolsUpdated.md | 13 + docs/Section.md | 27 + docs/SectionObject.md | 10 + docs/SectionResponse.md | 10 + docs/SectionsCreated.md | 13 + docs/SectionsDeleted.md | 13 + docs/SectionsResponse.md | 10 + docs/SectionsUpdated.md | 13 + docs/Student.md | 33 + docs/StudentContact.md | 19 + docs/StudentContactObject.md | 10 + docs/StudentContactResponse.md | 10 + docs/StudentContactsForStudentResponse.md | 10 + docs/StudentContactsResponse.md | 10 + docs/StudentObject.md | 10 + docs/StudentResponse.md | 10 + docs/StudentcontactsCreated.md | 13 + docs/StudentcontactsDeleted.md | 13 + docs/StudentcontactsUpdated.md | 13 + docs/StudentsCreated.md | 13 + docs/StudentsDeleted.md | 13 + docs/StudentsResponse.md | 10 + docs/StudentsUpdated.md | 13 + docs/Teacher.md | 22 + docs/TeacherObject.md | 10 + docs/TeacherResponse.md | 10 + docs/TeachersCreated.md | 13 + docs/TeachersDeleted.md | 13 + docs/TeachersResponse.md | 10 + docs/TeachersUpdated.md | 13 + docs/Term.md | 12 + requirements.txt | 8 +- setup.py | 75 +- swagger_client/__init__.py | 95 + swagger_client/api_client.py | 633 +++ swagger_client/apis/__init__.py | 5 + swagger_client/apis/data_api.py | 4088 +++++++++++++++++ swagger_client/apis/events_api.py | 806 ++++ swagger_client/configuration.py | 235 + swagger_client/models/__init__.py | 84 + swagger_client/models/bad_request.py | 123 + swagger_client/models/credentials.py | 123 + swagger_client/models/district.py | 175 + swagger_client/models/district_admin.py | 227 + .../models/district_admin_response.py | 123 + .../models/district_admins_response.py | 123 + swagger_client/models/district_object.py | 123 + swagger_client/models/district_response.py | 123 + swagger_client/models/district_status.py | 311 ++ .../models/district_status_response.py | 123 + .../models/district_status_responses.py | 123 + swagger_client/models/districts_created.py | 202 + swagger_client/models/districts_deleted.py | 202 + swagger_client/models/districts_response.py | 123 + swagger_client/models/districts_updated.py | 202 + swagger_client/models/event.py | 176 + swagger_client/models/event_response.py | 123 + swagger_client/models/events_response.py | 123 + .../models/grade_levels_response.py | 123 + swagger_client/models/internal_error.py | 123 + swagger_client/models/location.py | 253 + swagger_client/models/name.py | 175 + swagger_client/models/not_found.py | 123 + swagger_client/models/principal.py | 149 + swagger_client/models/school.py | 499 ++ swagger_client/models/school_admin.py | 305 ++ swagger_client/models/school_admin_object.py | 123 + .../models/school_admin_response.py | 123 + .../models/school_admins_response.py | 123 + swagger_client/models/school_object.py | 123 + swagger_client/models/school_response.py | 123 + swagger_client/models/schooladmins_created.py | 202 + swagger_client/models/schooladmins_deleted.py | 202 + swagger_client/models/schooladmins_updated.py | 202 + swagger_client/models/schools_created.py | 202 + swagger_client/models/schools_deleted.py | 202 + swagger_client/models/schools_response.py | 123 + swagger_client/models/schools_updated.py | 202 + swagger_client/models/section.py | 577 +++ swagger_client/models/section_object.py | 123 + swagger_client/models/section_response.py | 123 + swagger_client/models/sections_created.py | 202 + swagger_client/models/sections_deleted.py | 202 + swagger_client/models/sections_response.py | 123 + swagger_client/models/sections_updated.py | 202 + swagger_client/models/student.py | 757 +++ swagger_client/models/student_contact.py | 357 ++ .../models/student_contact_object.py | 123 + .../models/student_contact_response.py | 123 + .../student_contacts_for_student_response.py | 123 + .../models/student_contacts_response.py | 123 + swagger_client/models/student_object.py | 123 + swagger_client/models/student_response.py | 123 + .../models/studentcontacts_created.py | 202 + .../models/studentcontacts_deleted.py | 202 + .../models/studentcontacts_updated.py | 202 + swagger_client/models/students_created.py | 202 + swagger_client/models/students_deleted.py | 202 + swagger_client/models/students_response.py | 123 + swagger_client/models/students_updated.py | 202 + swagger_client/models/teacher.py | 435 ++ swagger_client/models/teacher_object.py | 123 + swagger_client/models/teacher_response.py | 123 + swagger_client/models/teachers_created.py | 202 + swagger_client/models/teachers_deleted.py | 202 + swagger_client/models/teachers_response.py | 123 + swagger_client/models/teachers_updated.py | 202 + swagger_client/models/term.py | 175 + swagger_client/rest.py | 312 ++ test-requirements.txt | 5 + test.py | 5 + test/test_bad_request.py | 44 + test/test_credentials.py | 44 + test/test_data_api.py | 348 ++ test/test_district.py | 44 + test/test_district_admin.py | 44 + test/test_district_admin_response.py | 44 + test/test_district_admins_response.py | 44 + test/test_district_object.py | 44 + test/test_district_response.py | 44 + test/test_district_status.py | 44 + test/test_district_status_response.py | 44 + test/test_district_status_responses.py | 44 + test/test_districts_created.py | 44 + test/test_districts_deleted.py | 44 + test/test_districts_response.py | 44 + test/test_districts_updated.py | 44 + test/test_event.py | 44 + test/test_event_response.py | 44 + test/test_events_api.py | 92 + test/test_events_response.py | 44 + test/test_grade_levels_response.py | 44 + test/test_internal_error.py | 44 + test/test_location.py | 44 + test/test_name.py | 44 + test/test_not_found.py | 44 + test/test_principal.py | 44 + test/test_school.py | 44 + test/test_school_admin.py | 44 + test/test_school_admin_object.py | 44 + test/test_school_admin_response.py | 44 + test/test_school_admins_response.py | 44 + test/test_school_object.py | 44 + test/test_school_response.py | 44 + test/test_schooladmins_created.py | 44 + test/test_schooladmins_deleted.py | 44 + test/test_schooladmins_updated.py | 44 + test/test_schools_created.py | 44 + test/test_schools_deleted.py | 44 + test/test_schools_response.py | 44 + test/test_schools_updated.py | 44 + test/test_section.py | 44 + test/test_section_object.py | 44 + test/test_section_response.py | 44 + test/test_sections_created.py | 44 + test/test_sections_deleted.py | 44 + test/test_sections_response.py | 44 + test/test_sections_updated.py | 44 + test/test_student.py | 44 + test/test_student_contact.py | 44 + test/test_student_contact_object.py | 44 + test/test_student_contact_response.py | 44 + ...t_student_contacts_for_student_response.py | 44 + test/test_student_contacts_response.py | 44 + test/test_student_object.py | 44 + test/test_student_response.py | 44 + test/test_studentcontacts_created.py | 44 + test/test_studentcontacts_deleted.py | 44 + test/test_studentcontacts_updated.py | 44 + test/test_students_created.py | 44 + test/test_students_deleted.py | 44 + test/test_students_response.py | 44 + test/test_students_updated.py | 44 + test/test_teacher.py | 44 + test/test_teacher_object.py | 44 + test/test_teacher_response.py | 44 + test/test_teachers_created.py | 44 + test/test_teachers_deleted.py | 44 + test/test_teachers_response.py | 44 + test/test_teachers_updated.py | 44 + test/test_term.py | 44 + tox.ini | 10 + 224 files changed, 26226 insertions(+), 147 deletions(-) create mode 100644 .swagger-codegen-ignore create mode 100644 docs/BadRequest.md create mode 100644 docs/Credentials.md create mode 100644 docs/DataApi.md create mode 100644 docs/District.md create mode 100644 docs/DistrictAdmin.md create mode 100644 docs/DistrictAdminResponse.md create mode 100644 docs/DistrictAdminsResponse.md create mode 100644 docs/DistrictObject.md create mode 100644 docs/DistrictResponse.md create mode 100644 docs/DistrictStatus.md create mode 100644 docs/DistrictStatusResponse.md create mode 100644 docs/DistrictStatusResponses.md create mode 100644 docs/DistrictsCreated.md create mode 100644 docs/DistrictsDeleted.md create mode 100644 docs/DistrictsResponse.md create mode 100644 docs/DistrictsUpdated.md create mode 100644 docs/Event.md create mode 100644 docs/EventResponse.md create mode 100644 docs/EventsApi.md create mode 100644 docs/EventsResponse.md create mode 100644 docs/GradeLevelsResponse.md create mode 100644 docs/InternalError.md create mode 100644 docs/Location.md create mode 100644 docs/Name.md create mode 100644 docs/NotFound.md create mode 100644 docs/Principal.md create mode 100644 docs/School.md create mode 100644 docs/SchoolAdmin.md create mode 100644 docs/SchoolAdminObject.md create mode 100644 docs/SchoolAdminResponse.md create mode 100644 docs/SchoolAdminsResponse.md create mode 100644 docs/SchoolObject.md create mode 100644 docs/SchoolResponse.md create mode 100644 docs/SchooladminsCreated.md create mode 100644 docs/SchooladminsDeleted.md create mode 100644 docs/SchooladminsUpdated.md create mode 100644 docs/SchoolsCreated.md create mode 100644 docs/SchoolsDeleted.md create mode 100644 docs/SchoolsResponse.md create mode 100644 docs/SchoolsUpdated.md create mode 100644 docs/Section.md create mode 100644 docs/SectionObject.md create mode 100644 docs/SectionResponse.md create mode 100644 docs/SectionsCreated.md create mode 100644 docs/SectionsDeleted.md create mode 100644 docs/SectionsResponse.md create mode 100644 docs/SectionsUpdated.md create mode 100644 docs/Student.md create mode 100644 docs/StudentContact.md create mode 100644 docs/StudentContactObject.md create mode 100644 docs/StudentContactResponse.md create mode 100644 docs/StudentContactsForStudentResponse.md create mode 100644 docs/StudentContactsResponse.md create mode 100644 docs/StudentObject.md create mode 100644 docs/StudentResponse.md create mode 100644 docs/StudentcontactsCreated.md create mode 100644 docs/StudentcontactsDeleted.md create mode 100644 docs/StudentcontactsUpdated.md create mode 100644 docs/StudentsCreated.md create mode 100644 docs/StudentsDeleted.md create mode 100644 docs/StudentsResponse.md create mode 100644 docs/StudentsUpdated.md create mode 100644 docs/Teacher.md create mode 100644 docs/TeacherObject.md create mode 100644 docs/TeacherResponse.md create mode 100644 docs/TeachersCreated.md create mode 100644 docs/TeachersDeleted.md create mode 100644 docs/TeachersResponse.md create mode 100644 docs/TeachersUpdated.md create mode 100644 docs/Term.md create mode 100644 swagger_client/__init__.py create mode 100644 swagger_client/api_client.py create mode 100644 swagger_client/apis/__init__.py create mode 100644 swagger_client/apis/data_api.py create mode 100644 swagger_client/apis/events_api.py create mode 100644 swagger_client/configuration.py create mode 100644 swagger_client/models/__init__.py create mode 100644 swagger_client/models/bad_request.py create mode 100644 swagger_client/models/credentials.py create mode 100644 swagger_client/models/district.py create mode 100644 swagger_client/models/district_admin.py create mode 100644 swagger_client/models/district_admin_response.py create mode 100644 swagger_client/models/district_admins_response.py create mode 100644 swagger_client/models/district_object.py create mode 100644 swagger_client/models/district_response.py create mode 100644 swagger_client/models/district_status.py create mode 100644 swagger_client/models/district_status_response.py create mode 100644 swagger_client/models/district_status_responses.py create mode 100644 swagger_client/models/districts_created.py create mode 100644 swagger_client/models/districts_deleted.py create mode 100644 swagger_client/models/districts_response.py create mode 100644 swagger_client/models/districts_updated.py create mode 100644 swagger_client/models/event.py create mode 100644 swagger_client/models/event_response.py create mode 100644 swagger_client/models/events_response.py create mode 100644 swagger_client/models/grade_levels_response.py create mode 100644 swagger_client/models/internal_error.py create mode 100644 swagger_client/models/location.py create mode 100644 swagger_client/models/name.py create mode 100644 swagger_client/models/not_found.py create mode 100644 swagger_client/models/principal.py create mode 100644 swagger_client/models/school.py create mode 100644 swagger_client/models/school_admin.py create mode 100644 swagger_client/models/school_admin_object.py create mode 100644 swagger_client/models/school_admin_response.py create mode 100644 swagger_client/models/school_admins_response.py create mode 100644 swagger_client/models/school_object.py create mode 100644 swagger_client/models/school_response.py create mode 100644 swagger_client/models/schooladmins_created.py create mode 100644 swagger_client/models/schooladmins_deleted.py create mode 100644 swagger_client/models/schooladmins_updated.py create mode 100644 swagger_client/models/schools_created.py create mode 100644 swagger_client/models/schools_deleted.py create mode 100644 swagger_client/models/schools_response.py create mode 100644 swagger_client/models/schools_updated.py create mode 100644 swagger_client/models/section.py create mode 100644 swagger_client/models/section_object.py create mode 100644 swagger_client/models/section_response.py create mode 100644 swagger_client/models/sections_created.py create mode 100644 swagger_client/models/sections_deleted.py create mode 100644 swagger_client/models/sections_response.py create mode 100644 swagger_client/models/sections_updated.py create mode 100644 swagger_client/models/student.py create mode 100644 swagger_client/models/student_contact.py create mode 100644 swagger_client/models/student_contact_object.py create mode 100644 swagger_client/models/student_contact_response.py create mode 100644 swagger_client/models/student_contacts_for_student_response.py create mode 100644 swagger_client/models/student_contacts_response.py create mode 100644 swagger_client/models/student_object.py create mode 100644 swagger_client/models/student_response.py create mode 100644 swagger_client/models/studentcontacts_created.py create mode 100644 swagger_client/models/studentcontacts_deleted.py create mode 100644 swagger_client/models/studentcontacts_updated.py create mode 100644 swagger_client/models/students_created.py create mode 100644 swagger_client/models/students_deleted.py create mode 100644 swagger_client/models/students_response.py create mode 100644 swagger_client/models/students_updated.py create mode 100644 swagger_client/models/teacher.py create mode 100644 swagger_client/models/teacher_object.py create mode 100644 swagger_client/models/teacher_response.py create mode 100644 swagger_client/models/teachers_created.py create mode 100644 swagger_client/models/teachers_deleted.py create mode 100644 swagger_client/models/teachers_response.py create mode 100644 swagger_client/models/teachers_updated.py create mode 100644 swagger_client/models/term.py create mode 100644 swagger_client/rest.py create mode 100644 test-requirements.txt create mode 100644 test.py create mode 100644 test/test_bad_request.py create mode 100644 test/test_credentials.py create mode 100644 test/test_data_api.py create mode 100644 test/test_district.py create mode 100644 test/test_district_admin.py create mode 100644 test/test_district_admin_response.py create mode 100644 test/test_district_admins_response.py create mode 100644 test/test_district_object.py create mode 100644 test/test_district_response.py create mode 100644 test/test_district_status.py create mode 100644 test/test_district_status_response.py create mode 100644 test/test_district_status_responses.py create mode 100644 test/test_districts_created.py create mode 100644 test/test_districts_deleted.py create mode 100644 test/test_districts_response.py create mode 100644 test/test_districts_updated.py create mode 100644 test/test_event.py create mode 100644 test/test_event_response.py create mode 100644 test/test_events_api.py create mode 100644 test/test_events_response.py create mode 100644 test/test_grade_levels_response.py create mode 100644 test/test_internal_error.py create mode 100644 test/test_location.py create mode 100644 test/test_name.py create mode 100644 test/test_not_found.py create mode 100644 test/test_principal.py create mode 100644 test/test_school.py create mode 100644 test/test_school_admin.py create mode 100644 test/test_school_admin_object.py create mode 100644 test/test_school_admin_response.py create mode 100644 test/test_school_admins_response.py create mode 100644 test/test_school_object.py create mode 100644 test/test_school_response.py create mode 100644 test/test_schooladmins_created.py create mode 100644 test/test_schooladmins_deleted.py create mode 100644 test/test_schooladmins_updated.py create mode 100644 test/test_schools_created.py create mode 100644 test/test_schools_deleted.py create mode 100644 test/test_schools_response.py create mode 100644 test/test_schools_updated.py create mode 100644 test/test_section.py create mode 100644 test/test_section_object.py create mode 100644 test/test_section_response.py create mode 100644 test/test_sections_created.py create mode 100644 test/test_sections_deleted.py create mode 100644 test/test_sections_response.py create mode 100644 test/test_sections_updated.py create mode 100644 test/test_student.py create mode 100644 test/test_student_contact.py create mode 100644 test/test_student_contact_object.py create mode 100644 test/test_student_contact_response.py create mode 100644 test/test_student_contacts_for_student_response.py create mode 100644 test/test_student_contacts_response.py create mode 100644 test/test_student_object.py create mode 100644 test/test_student_response.py create mode 100644 test/test_studentcontacts_created.py create mode 100644 test/test_studentcontacts_deleted.py create mode 100644 test/test_studentcontacts_updated.py create mode 100644 test/test_students_created.py create mode 100644 test/test_students_deleted.py create mode 100644 test/test_students_response.py create mode 100644 test/test_students_updated.py create mode 100644 test/test_teacher.py create mode 100644 test/test_teacher_object.py create mode 100644 test/test_teacher_response.py create mode 100644 test/test_teachers_created.py create mode 100644 test/test_teachers_deleted.py create mode 100644 test/test_teachers_response.py create mode 100644 test/test_teachers_updated.py create mode 100644 test/test_term.py create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index 7ab5e68..8225c42 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,68 @@ -*~ -*.pyc -clever.egg-info -dist -build +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ +venv/ +.python-version + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +#Ipython Notebook +.ipynb_checkpoints + +.travis.yml +git_push.sh +.swagger-codegen/ diff --git a/.swagger-codegen-ignore b/.swagger-codegen-ignore new file mode 100644 index 0000000..c5fa491 --- /dev/null +++ b/.swagger-codegen-ignore @@ -0,0 +1,23 @@ +# Swagger Codegen Ignore +# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/README.md b/README.md index d74c4f0..01da04a 100644 --- a/README.md +++ b/README.md @@ -1,130 +1,208 @@ -# Clever Python bindings +# swagger-client +The Clever API -## Maintenance +This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: -Clever is moving to a community supported model with our client libraries. We will still respond to and merge incoming PRs but are looking to turn over ownership of these libraries to the community. If you are interested, please contact our partner-engineering team at tech-support@clever.com. +- API version: 1.2.0 +- Package version: 1.0.0 +- Build package: io.swagger.codegen.languages.PythonClientCodegen -## Installation +## Requirements. -From PyPi: +Python 2.7 and 3.4+ -```bash - $ pip install clever -``` - -or - -```bash - $ easy_install clever -``` +## Installation & Usage +### pip install -Or from source: +If the python package is hosted on Github, you can install directly from Github -```bash - $ python setup.py install +```sh +pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git ``` +(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) -## Usage - -Get started by importing the `clever` module and setting your authentication method: - +Then import the package: ```python - import clever - clever.set_token('YOUR_OAUTH_TOKEN') +import swagger_client ``` -The `clever` module exposes classes corresponding to resources: +### Setuptools -* Contact -* District -* DistrictAdmin -* School -* SchoolAdmin -* Section -* Student -* Teacher -* Event +Install via [Setuptools](http://pypi.python.org/pypi/setuptools). -Each exposes a class method `all` that returns a list of all data in that resource that you have access to. Keyword arguments correspond to the same query parameters supported in the HTTP API, except that `limit` and `page` are not supported (pagination is handled automatically). - -```python - schools = clever.School.all() # gets information about all schools you have access to - schools = clever.School.all(where=json.dumps({'name': 'Of Hard Knocks'})) - schools = clever.School.all(sort='state') +```sh +python setup.py install --user ``` +(or `sudo python setup.py install` to install the package for all users) -If you'd like more control over pagination, or to limit the number of resources returned, use the `iter` class method: - +Then import the package: ```python - students = clever.Student.iter() - for i in range(0,2000): - print students.next() +import swagger_client ``` -You may also use the `starting_after` or `ending_before` parameters with the `iter` method: - -```python - students = clever.Student.iter(starting_after="530e5960049e75a9262cff1d") - for s in students: - print students.next() -``` +## Getting Started -The `retrieve` class method takes in a Clever ID and returns a specific resource. The object (or list of objects in the case of `all`) supports accessing properties using either dot notation or dictionary notation: +Please follow the [installation procedure](#installation--usage) and then run the following: ```python - demo_school = clever.School.retrieve("4fee004cca2e43cf27000001") - assert demo_school.name == 'Clever Academy' - assert demo_school['name'] == 'Clever Academy' -``` +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_contact(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_contact: %s\n" % e) -## CLI - -The library comes with a basic command-line interface: - -```bash - $ export CLEVER_API_TOKEN=DEMO_TOKEN - $ clever districts all - Running the equivalent of: - -- - curl https://api.clever.com/v1.1/districts -H "Authorization: Bearer DEMO_TOKEN" - -- - Starting new HTTPS connection (1): api.clever.com - API request to https://api.clever.com/v1.1/districts returned (response code, response body) of (200, '{"data":[{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"uri":"/v1.1/districts/4fd43cc56d11340000000005"}],"links":[{"rel":"self","uri":"/v1.1/districts"}]}') - Result (HTTP status code 200): - -- - {"data":[{"data":{"name":"Demo District","id":"4fd43cc56d11340000000005"},"uri":"/v1.1/districts/4fd43cc56d11340000000005"}],"links":[{"rel":"self","uri":"/v1.1/districts"}]} - -- ``` -Run `clever -h` to see a full list of commands. - -## Feedback - -Questions, feature requests, or feedback of any kind is always welcome! We're available at [tech-support@clever.com](mailto:tech-support@clever.com). - -## Development - -### Dependencies - - pip install -r requirements.txt +## Documentation for API Endpoints + +All URIs are relative to *https://api.clever.com/v1.2* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DataApi* | [**get_contact**](docs/DataApi.md#get_contact) | **GET** /contacts/{id} | +*DataApi* | [**get_contacts**](docs/DataApi.md#get_contacts) | **GET** /contacts | +*DataApi* | [**get_contacts_for_student**](docs/DataApi.md#get_contacts_for_student) | **GET** /students/{id}/contacts | +*DataApi* | [**get_district**](docs/DataApi.md#get_district) | **GET** /districts/{id} | +*DataApi* | [**get_district_admin**](docs/DataApi.md#get_district_admin) | **GET** /district_admins/{id} | +*DataApi* | [**get_district_admins**](docs/DataApi.md#get_district_admins) | **GET** /district_admins | +*DataApi* | [**get_district_for_school**](docs/DataApi.md#get_district_for_school) | **GET** /schools/{id}/district | +*DataApi* | [**get_district_for_section**](docs/DataApi.md#get_district_for_section) | **GET** /sections/{id}/district | +*DataApi* | [**get_district_for_student**](docs/DataApi.md#get_district_for_student) | **GET** /students/{id}/district | +*DataApi* | [**get_district_for_student_contact**](docs/DataApi.md#get_district_for_student_contact) | **GET** /contacts/{id}/district | +*DataApi* | [**get_district_for_teacher**](docs/DataApi.md#get_district_for_teacher) | **GET** /teachers/{id}/district | +*DataApi* | [**get_district_status**](docs/DataApi.md#get_district_status) | **GET** /districts/{id}/status | +*DataApi* | [**get_districts**](docs/DataApi.md#get_districts) | **GET** /districts | +*DataApi* | [**get_grade_levels_for_teacher**](docs/DataApi.md#get_grade_levels_for_teacher) | **GET** /teachers/{id}/grade_levels | +*DataApi* | [**get_school**](docs/DataApi.md#get_school) | **GET** /schools/{id} | +*DataApi* | [**get_school_admin**](docs/DataApi.md#get_school_admin) | **GET** /school_admins/{id} | +*DataApi* | [**get_school_admins**](docs/DataApi.md#get_school_admins) | **GET** /school_admins | +*DataApi* | [**get_school_for_section**](docs/DataApi.md#get_school_for_section) | **GET** /sections/{id}/school | +*DataApi* | [**get_school_for_student**](docs/DataApi.md#get_school_for_student) | **GET** /students/{id}/school | +*DataApi* | [**get_school_for_teacher**](docs/DataApi.md#get_school_for_teacher) | **GET** /teachers/{id}/school | +*DataApi* | [**get_schools**](docs/DataApi.md#get_schools) | **GET** /schools | +*DataApi* | [**get_schools_for_school_admin**](docs/DataApi.md#get_schools_for_school_admin) | **GET** /school_admins/{id}/schools | +*DataApi* | [**get_section**](docs/DataApi.md#get_section) | **GET** /sections/{id} | +*DataApi* | [**get_sections**](docs/DataApi.md#get_sections) | **GET** /sections | +*DataApi* | [**get_sections_for_school**](docs/DataApi.md#get_sections_for_school) | **GET** /schools/{id}/sections | +*DataApi* | [**get_sections_for_student**](docs/DataApi.md#get_sections_for_student) | **GET** /students/{id}/sections | +*DataApi* | [**get_sections_for_teacher**](docs/DataApi.md#get_sections_for_teacher) | **GET** /teachers/{id}/sections | +*DataApi* | [**get_student**](docs/DataApi.md#get_student) | **GET** /students/{id} | +*DataApi* | [**get_student_for_contact**](docs/DataApi.md#get_student_for_contact) | **GET** /contacts/{id}/student | +*DataApi* | [**get_students**](docs/DataApi.md#get_students) | **GET** /students | +*DataApi* | [**get_students_for_school**](docs/DataApi.md#get_students_for_school) | **GET** /schools/{id}/students | +*DataApi* | [**get_students_for_section**](docs/DataApi.md#get_students_for_section) | **GET** /sections/{id}/students | +*DataApi* | [**get_students_for_teacher**](docs/DataApi.md#get_students_for_teacher) | **GET** /teachers/{id}/students | +*DataApi* | [**get_teacher**](docs/DataApi.md#get_teacher) | **GET** /teachers/{id} | +*DataApi* | [**get_teacher_for_section**](docs/DataApi.md#get_teacher_for_section) | **GET** /sections/{id}/teacher | +*DataApi* | [**get_teachers**](docs/DataApi.md#get_teachers) | **GET** /teachers | +*DataApi* | [**get_teachers_for_school**](docs/DataApi.md#get_teachers_for_school) | **GET** /schools/{id}/teachers | +*DataApi* | [**get_teachers_for_section**](docs/DataApi.md#get_teachers_for_section) | **GET** /sections/{id}/teachers | +*DataApi* | [**get_teachers_for_student**](docs/DataApi.md#get_teachers_for_student) | **GET** /students/{id}/teachers | +*EventsApi* | [**get_event**](docs/EventsApi.md#get_event) | **GET** /events/{id} | +*EventsApi* | [**get_events**](docs/EventsApi.md#get_events) | **GET** /events | +*EventsApi* | [**get_events_for_school**](docs/EventsApi.md#get_events_for_school) | **GET** /schools/{id}/events | +*EventsApi* | [**get_events_for_school_admin**](docs/EventsApi.md#get_events_for_school_admin) | **GET** /school_admins/{id}/events | +*EventsApi* | [**get_events_for_section**](docs/EventsApi.md#get_events_for_section) | **GET** /sections/{id}/events | +*EventsApi* | [**get_events_for_student**](docs/EventsApi.md#get_events_for_student) | **GET** /students/{id}/events | +*EventsApi* | [**get_events_for_teacher**](docs/EventsApi.md#get_events_for_teacher) | **GET** /teachers/{id}/events | + + +## Documentation For Models + + - [BadRequest](docs/BadRequest.md) + - [Credentials](docs/Credentials.md) + - [District](docs/District.md) + - [DistrictAdmin](docs/DistrictAdmin.md) + - [DistrictAdminResponse](docs/DistrictAdminResponse.md) + - [DistrictAdminsResponse](docs/DistrictAdminsResponse.md) + - [DistrictObject](docs/DistrictObject.md) + - [DistrictResponse](docs/DistrictResponse.md) + - [DistrictStatus](docs/DistrictStatus.md) + - [DistrictStatusResponse](docs/DistrictStatusResponse.md) + - [DistrictStatusResponses](docs/DistrictStatusResponses.md) + - [DistrictsResponse](docs/DistrictsResponse.md) + - [Event](docs/Event.md) + - [EventResponse](docs/EventResponse.md) + - [EventsResponse](docs/EventsResponse.md) + - [GradeLevelsResponse](docs/GradeLevelsResponse.md) + - [InternalError](docs/InternalError.md) + - [Location](docs/Location.md) + - [Name](docs/Name.md) + - [NotFound](docs/NotFound.md) + - [Principal](docs/Principal.md) + - [School](docs/School.md) + - [SchoolAdmin](docs/SchoolAdmin.md) + - [SchoolAdminObject](docs/SchoolAdminObject.md) + - [SchoolAdminResponse](docs/SchoolAdminResponse.md) + - [SchoolAdminsResponse](docs/SchoolAdminsResponse.md) + - [SchoolObject](docs/SchoolObject.md) + - [SchoolResponse](docs/SchoolResponse.md) + - [SchoolsResponse](docs/SchoolsResponse.md) + - [Section](docs/Section.md) + - [SectionObject](docs/SectionObject.md) + - [SectionResponse](docs/SectionResponse.md) + - [SectionsResponse](docs/SectionsResponse.md) + - [Student](docs/Student.md) + - [StudentContact](docs/StudentContact.md) + - [StudentContactObject](docs/StudentContactObject.md) + - [StudentContactResponse](docs/StudentContactResponse.md) + - [StudentContactsForStudentResponse](docs/StudentContactsForStudentResponse.md) + - [StudentContactsResponse](docs/StudentContactsResponse.md) + - [StudentObject](docs/StudentObject.md) + - [StudentResponse](docs/StudentResponse.md) + - [StudentsResponse](docs/StudentsResponse.md) + - [Teacher](docs/Teacher.md) + - [TeacherObject](docs/TeacherObject.md) + - [TeacherResponse](docs/TeacherResponse.md) + - [TeachersResponse](docs/TeachersResponse.md) + - [Term](docs/Term.md) + - [DistrictsCreated](docs/DistrictsCreated.md) + - [DistrictsDeleted](docs/DistrictsDeleted.md) + - [DistrictsUpdated](docs/DistrictsUpdated.md) + - [SchooladminsCreated](docs/SchooladminsCreated.md) + - [SchooladminsDeleted](docs/SchooladminsDeleted.md) + - [SchooladminsUpdated](docs/SchooladminsUpdated.md) + - [SchoolsCreated](docs/SchoolsCreated.md) + - [SchoolsDeleted](docs/SchoolsDeleted.md) + - [SchoolsUpdated](docs/SchoolsUpdated.md) + - [SectionsCreated](docs/SectionsCreated.md) + - [SectionsDeleted](docs/SectionsDeleted.md) + - [SectionsUpdated](docs/SectionsUpdated.md) + - [StudentcontactsCreated](docs/StudentcontactsCreated.md) + - [StudentcontactsDeleted](docs/StudentcontactsDeleted.md) + - [StudentcontactsUpdated](docs/StudentcontactsUpdated.md) + - [StudentsCreated](docs/StudentsCreated.md) + - [StudentsDeleted](docs/StudentsDeleted.md) + - [StudentsUpdated](docs/StudentsUpdated.md) + - [TeachersCreated](docs/TeachersCreated.md) + - [TeachersDeleted](docs/TeachersDeleted.md) + - [TeachersUpdated](docs/TeachersUpdated.md) + + +## Documentation For Authorization + + +## oauth + +- **Type**: OAuth +- **Flow**: accessCode +- **Authorization URL**: https://clever.com/oauth/authorize +- **Scopes**: N/A + + +## Author -### Testing - python -m unittest discover test - -## Publishing - -Update VERSION and CHANGELOG.md and run `publish.sh` to publish a new version of the library. - -In order to publish to PyPI you will need a `.pypirc` file in your `$HOME` directory with the following contents: -``` -[distutils] -index-servers = - pypi - -[pypi] -username: **** -password: **** -``` -The username and password are in 1Password for Teams under `PyPI`. diff --git a/docs/BadRequest.md b/docs/BadRequest.md new file mode 100644 index 0000000..559807e --- /dev/null +++ b/docs/BadRequest.md @@ -0,0 +1,10 @@ +# BadRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Credentials.md b/docs/Credentials.md new file mode 100644 index 0000000..52459ef --- /dev/null +++ b/docs/Credentials.md @@ -0,0 +1,10 @@ +# Credentials + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**district_username** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DataApi.md b/docs/DataApi.md new file mode 100644 index 0000000..78c6e46 --- /dev/null +++ b/docs/DataApi.md @@ -0,0 +1,2081 @@ +# swagger_client.DataApi + +All URIs are relative to *https://api.clever.com/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_contact**](DataApi.md#get_contact) | **GET** /contacts/{id} | +[**get_contacts**](DataApi.md#get_contacts) | **GET** /contacts | +[**get_contacts_for_student**](DataApi.md#get_contacts_for_student) | **GET** /students/{id}/contacts | +[**get_district**](DataApi.md#get_district) | **GET** /districts/{id} | +[**get_district_admin**](DataApi.md#get_district_admin) | **GET** /district_admins/{id} | +[**get_district_admins**](DataApi.md#get_district_admins) | **GET** /district_admins | +[**get_district_for_school**](DataApi.md#get_district_for_school) | **GET** /schools/{id}/district | +[**get_district_for_section**](DataApi.md#get_district_for_section) | **GET** /sections/{id}/district | +[**get_district_for_student**](DataApi.md#get_district_for_student) | **GET** /students/{id}/district | +[**get_district_for_student_contact**](DataApi.md#get_district_for_student_contact) | **GET** /contacts/{id}/district | +[**get_district_for_teacher**](DataApi.md#get_district_for_teacher) | **GET** /teachers/{id}/district | +[**get_district_status**](DataApi.md#get_district_status) | **GET** /districts/{id}/status | +[**get_districts**](DataApi.md#get_districts) | **GET** /districts | +[**get_grade_levels_for_teacher**](DataApi.md#get_grade_levels_for_teacher) | **GET** /teachers/{id}/grade_levels | +[**get_school**](DataApi.md#get_school) | **GET** /schools/{id} | +[**get_school_admin**](DataApi.md#get_school_admin) | **GET** /school_admins/{id} | +[**get_school_admins**](DataApi.md#get_school_admins) | **GET** /school_admins | +[**get_school_for_section**](DataApi.md#get_school_for_section) | **GET** /sections/{id}/school | +[**get_school_for_student**](DataApi.md#get_school_for_student) | **GET** /students/{id}/school | +[**get_school_for_teacher**](DataApi.md#get_school_for_teacher) | **GET** /teachers/{id}/school | +[**get_schools**](DataApi.md#get_schools) | **GET** /schools | +[**get_schools_for_school_admin**](DataApi.md#get_schools_for_school_admin) | **GET** /school_admins/{id}/schools | +[**get_section**](DataApi.md#get_section) | **GET** /sections/{id} | +[**get_sections**](DataApi.md#get_sections) | **GET** /sections | +[**get_sections_for_school**](DataApi.md#get_sections_for_school) | **GET** /schools/{id}/sections | +[**get_sections_for_student**](DataApi.md#get_sections_for_student) | **GET** /students/{id}/sections | +[**get_sections_for_teacher**](DataApi.md#get_sections_for_teacher) | **GET** /teachers/{id}/sections | +[**get_student**](DataApi.md#get_student) | **GET** /students/{id} | +[**get_student_for_contact**](DataApi.md#get_student_for_contact) | **GET** /contacts/{id}/student | +[**get_students**](DataApi.md#get_students) | **GET** /students | +[**get_students_for_school**](DataApi.md#get_students_for_school) | **GET** /schools/{id}/students | +[**get_students_for_section**](DataApi.md#get_students_for_section) | **GET** /sections/{id}/students | +[**get_students_for_teacher**](DataApi.md#get_students_for_teacher) | **GET** /teachers/{id}/students | +[**get_teacher**](DataApi.md#get_teacher) | **GET** /teachers/{id} | +[**get_teacher_for_section**](DataApi.md#get_teacher_for_section) | **GET** /sections/{id}/teacher | +[**get_teachers**](DataApi.md#get_teachers) | **GET** /teachers | +[**get_teachers_for_school**](DataApi.md#get_teachers_for_school) | **GET** /schools/{id}/teachers | +[**get_teachers_for_section**](DataApi.md#get_teachers_for_section) | **GET** /sections/{id}/teachers | +[**get_teachers_for_student**](DataApi.md#get_teachers_for_student) | **GET** /students/{id}/teachers | + + +# **get_contact** +> StudentContactResponse get_contact(id) + + + +Returns a specific student contact + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_contact(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_contact: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**StudentContactResponse**](StudentContactResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_contacts** +> StudentContactsResponse get_contacts(limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns a list of student contacts + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_contacts(limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_contacts: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**StudentContactsResponse**](StudentContactsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_contacts_for_student** +> StudentContactsForStudentResponse get_contacts_for_student(id, limit=limit) + + + +Returns the contacts for a student + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | +limit = 56 # int | (optional) + +try: + api_response = api_instance.get_contacts_for_student(id, limit=limit) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_contacts_for_student: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] + +### Return type + +[**StudentContactsForStudentResponse**](StudentContactsForStudentResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_district** +> DistrictResponse get_district(id) + + + +Returns a specific district + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_district(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_district: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**DistrictResponse**](DistrictResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_district_admin** +> DistrictAdminResponse get_district_admin(id) + + + +Returns a specific district admin + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_district_admin(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_district_admin: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**DistrictAdminResponse**](DistrictAdminResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_district_admins** +> DistrictAdminsResponse get_district_admins(starting_after=starting_after, ending_before=ending_before) + + + +Returns a list of district admins + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_district_admins(starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_district_admins: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**DistrictAdminsResponse**](DistrictAdminsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_district_for_school** +> DistrictResponse get_district_for_school(id) + + + +Returns the district for a school + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_district_for_school(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_district_for_school: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**DistrictResponse**](DistrictResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_district_for_section** +> DistrictResponse get_district_for_section(id) + + + +Returns the district for a section + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_district_for_section(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_district_for_section: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**DistrictResponse**](DistrictResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_district_for_student** +> DistrictResponse get_district_for_student(id) + + + +Returns the district for a student + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_district_for_student(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_district_for_student: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**DistrictResponse**](DistrictResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_district_for_student_contact** +> DistrictResponse get_district_for_student_contact(id) + + + +Returns the district for a student contact + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_district_for_student_contact(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_district_for_student_contact: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**DistrictResponse**](DistrictResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_district_for_teacher** +> DistrictResponse get_district_for_teacher(id) + + + +Returns the district for a teacher + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_district_for_teacher(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_district_for_teacher: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**DistrictResponse**](DistrictResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_district_status** +> DistrictStatusResponses get_district_status(id) + + + +Returns the status of the district + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_district_status(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_district_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**DistrictStatusResponses**](DistrictStatusResponses.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_districts** +> DistrictsResponse get_districts() + + + +Returns a list of districts + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() + +try: + api_response = api_instance.get_districts() + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_districts: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**DistrictsResponse**](DistrictsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_grade_levels_for_teacher** +> GradeLevelsResponse get_grade_levels_for_teacher(id) + + + +Returns the grade levels for sections a teacher teaches + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_grade_levels_for_teacher(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_grade_levels_for_teacher: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**GradeLevelsResponse**](GradeLevelsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_school** +> SchoolResponse get_school(id) + + + +Returns a specific school + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_school(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_school: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**SchoolResponse**](SchoolResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_school_admin** +> SchoolAdminResponse get_school_admin(id) + + + +Returns a specific school admin + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_school_admin(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_school_admin: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**SchoolAdminResponse**](SchoolAdminResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_school_admins** +> SchoolAdminsResponse get_school_admins(limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns a list of school admins + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_school_admins(limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_school_admins: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**SchoolAdminsResponse**](SchoolAdminsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_school_for_section** +> SchoolResponse get_school_for_section(id) + + + +Returns the school for a section + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_school_for_section(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_school_for_section: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**SchoolResponse**](SchoolResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_school_for_student** +> SchoolResponse get_school_for_student(id) + + + +Returns the primary school for a student + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_school_for_student(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_school_for_student: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**SchoolResponse**](SchoolResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_school_for_teacher** +> SchoolResponse get_school_for_teacher(id) + + + +Retrieves school info for a teacher. + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_school_for_teacher(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_school_for_teacher: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**SchoolResponse**](SchoolResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_schools** +> SchoolsResponse get_schools(limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns a list of schools + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_schools(limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_schools: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**SchoolsResponse**](SchoolsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_schools_for_school_admin** +> SchoolsResponse get_schools_for_school_admin(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns the schools for a school admin + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_schools_for_school_admin(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_schools_for_school_admin: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**SchoolsResponse**](SchoolsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_section** +> SectionResponse get_section(id) + + + +Returns a specific section + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_section(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_section: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**SectionResponse**](SectionResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_sections** +> SectionsResponse get_sections(limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns a list of sections + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_sections(limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_sections: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**SectionsResponse**](SectionsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_sections_for_school** +> SectionsResponse get_sections_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns the sections for a school + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_sections_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_sections_for_school: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**SectionsResponse**](SectionsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_sections_for_student** +> SectionsResponse get_sections_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns the sections for a student + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_sections_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_sections_for_student: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**SectionsResponse**](SectionsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_sections_for_teacher** +> SectionsResponse get_sections_for_teacher(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns the sections for a teacher + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_sections_for_teacher(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_sections_for_teacher: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**SectionsResponse**](SectionsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_student** +> StudentResponse get_student(id) + + + +Returns a specific student + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_student(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_student: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**StudentResponse**](StudentResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_student_for_contact** +> StudentResponse get_student_for_contact(id) + + + +Returns the student for a student contact + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_student_for_contact(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_student_for_contact: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**StudentResponse**](StudentResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_students** +> StudentsResponse get_students(limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns a list of students + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_students(limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_students: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**StudentsResponse**](StudentsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_students_for_school** +> StudentsResponse get_students_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns the students for a school + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_students_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_students_for_school: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**StudentsResponse**](StudentsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_students_for_section** +> StudentsResponse get_students_for_section(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns the students for a section + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_students_for_section(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_students_for_section: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**StudentsResponse**](StudentsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_students_for_teacher** +> StudentsResponse get_students_for_teacher(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns the students for a teacher + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_students_for_teacher(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_students_for_teacher: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**StudentsResponse**](StudentsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_teacher** +> TeacherResponse get_teacher(id) + + + +Returns a specific teacher + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_teacher(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_teacher: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**TeacherResponse**](TeacherResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_teacher_for_section** +> TeacherResponse get_teacher_for_section(id) + + + +Returns the primary teacher for a section + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_teacher_for_section(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_teacher_for_section: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**TeacherResponse**](TeacherResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_teachers** +> TeachersResponse get_teachers(limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns a list of teachers + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_teachers(limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_teachers: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**TeachersResponse**](TeachersResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_teachers_for_school** +> TeachersResponse get_teachers_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns the teachers for a school + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_teachers_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_teachers_for_school: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**TeachersResponse**](TeachersResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_teachers_for_section** +> TeachersResponse get_teachers_for_section(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns the teachers for a section + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_teachers_for_section(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_teachers_for_section: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**TeachersResponse**](TeachersResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_teachers_for_student** +> TeachersResponse get_teachers_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns the teachers for a student + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.DataApi() +id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_teachers_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_teachers_for_student: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**TeachersResponse**](TeachersResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/District.md b/docs/District.md new file mode 100644 index 0000000..62633e6 --- /dev/null +++ b/docs/District.md @@ -0,0 +1,12 @@ +# District + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**mdr_number** | **str** | | [optional] +**name** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DistrictAdmin.md b/docs/DistrictAdmin.md new file mode 100644 index 0000000..9f9cb44 --- /dev/null +++ b/docs/DistrictAdmin.md @@ -0,0 +1,14 @@ +# DistrictAdmin + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**district** | **str** | | [optional] +**email** | **str** | | [optional] +**id** | **str** | | [optional] +**name** | [**Name**](Name.md) | | [optional] +**title** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DistrictAdminResponse.md b/docs/DistrictAdminResponse.md new file mode 100644 index 0000000..45e83e2 --- /dev/null +++ b/docs/DistrictAdminResponse.md @@ -0,0 +1,10 @@ +# DistrictAdminResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**DistrictAdmin**](DistrictAdmin.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DistrictAdminsResponse.md b/docs/DistrictAdminsResponse.md new file mode 100644 index 0000000..33c93a6 --- /dev/null +++ b/docs/DistrictAdminsResponse.md @@ -0,0 +1,10 @@ +# DistrictAdminsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[DistrictAdmin]**](DistrictAdmin.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DistrictObject.md b/docs/DistrictObject.md new file mode 100644 index 0000000..8d71a09 --- /dev/null +++ b/docs/DistrictObject.md @@ -0,0 +1,10 @@ +# DistrictObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object** | [**District**](District.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DistrictResponse.md b/docs/DistrictResponse.md new file mode 100644 index 0000000..29ead25 --- /dev/null +++ b/docs/DistrictResponse.md @@ -0,0 +1,10 @@ +# DistrictResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**District**](District.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DistrictStatus.md b/docs/DistrictStatus.md new file mode 100644 index 0000000..86c673c --- /dev/null +++ b/docs/DistrictStatus.md @@ -0,0 +1,17 @@ +# DistrictStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | | [optional] +**id** | **str** | | [optional] +**last_sync** | **str** | | [optional] +**launch_date** | **str** | | [optional] +**pause_end** | **str** | | [optional] +**pause_start** | **str** | | [optional] +**sis_type** | **str** | | [optional] +**state** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DistrictStatusResponse.md b/docs/DistrictStatusResponse.md new file mode 100644 index 0000000..2163b3e --- /dev/null +++ b/docs/DistrictStatusResponse.md @@ -0,0 +1,10 @@ +# DistrictStatusResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**DistrictStatus**](DistrictStatus.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DistrictStatusResponses.md b/docs/DistrictStatusResponses.md new file mode 100644 index 0000000..5d8394f --- /dev/null +++ b/docs/DistrictStatusResponses.md @@ -0,0 +1,10 @@ +# DistrictStatusResponses + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[DistrictStatusResponse]**](DistrictStatusResponse.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DistrictsCreated.md b/docs/DistrictsCreated.md new file mode 100644 index 0000000..634ea80 --- /dev/null +++ b/docs/DistrictsCreated.md @@ -0,0 +1,13 @@ +# DistrictsCreated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**DistrictObject**](DistrictObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DistrictsDeleted.md b/docs/DistrictsDeleted.md new file mode 100644 index 0000000..d9269a6 --- /dev/null +++ b/docs/DistrictsDeleted.md @@ -0,0 +1,13 @@ +# DistrictsDeleted + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**DistrictObject**](DistrictObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DistrictsResponse.md b/docs/DistrictsResponse.md new file mode 100644 index 0000000..0857e3a --- /dev/null +++ b/docs/DistrictsResponse.md @@ -0,0 +1,10 @@ +# DistrictsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[DistrictResponse]**](DistrictResponse.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DistrictsUpdated.md b/docs/DistrictsUpdated.md new file mode 100644 index 0000000..23cdc4b --- /dev/null +++ b/docs/DistrictsUpdated.md @@ -0,0 +1,13 @@ +# DistrictsUpdated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**DistrictObject**](DistrictObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Event.md b/docs/Event.md new file mode 100644 index 0000000..6aca0e8 --- /dev/null +++ b/docs/Event.md @@ -0,0 +1,12 @@ +# Event + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventResponse.md b/docs/EventResponse.md new file mode 100644 index 0000000..cdcbe03 --- /dev/null +++ b/docs/EventResponse.md @@ -0,0 +1,10 @@ +# EventResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**Event**](Event.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventsApi.md b/docs/EventsApi.md new file mode 100644 index 0000000..a255bcf --- /dev/null +++ b/docs/EventsApi.md @@ -0,0 +1,399 @@ +# swagger_client.EventsApi + +All URIs are relative to *https://api.clever.com/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_event**](EventsApi.md#get_event) | **GET** /events/{id} | +[**get_events**](EventsApi.md#get_events) | **GET** /events | +[**get_events_for_school**](EventsApi.md#get_events_for_school) | **GET** /schools/{id}/events | +[**get_events_for_school_admin**](EventsApi.md#get_events_for_school_admin) | **GET** /school_admins/{id}/events | +[**get_events_for_section**](EventsApi.md#get_events_for_section) | **GET** /sections/{id}/events | +[**get_events_for_student**](EventsApi.md#get_events_for_student) | **GET** /students/{id}/events | +[**get_events_for_teacher**](EventsApi.md#get_events_for_teacher) | **GET** /teachers/{id}/events | + + +# **get_event** +> EventResponse get_event(id) + + + +Returns the specific event + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.EventsApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_event(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling EventsApi->get_event: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**EventResponse**](EventResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_events** +> EventsResponse get_events(limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns a list of events + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.EventsApi() +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_events(limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling EventsApi->get_events: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**EventsResponse**](EventsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_events_for_school** +> EventsResponse get_events_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns a list of events for a school + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.EventsApi() +id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_events_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling EventsApi->get_events_for_school: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**EventsResponse**](EventsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_events_for_school_admin** +> EventsResponse get_events_for_school_admin(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns a list of events for a school admin + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.EventsApi() +id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_events_for_school_admin(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling EventsApi->get_events_for_school_admin: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**EventsResponse**](EventsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_events_for_section** +> EventsResponse get_events_for_section(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns a list of events for a section + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.EventsApi() +id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_events_for_section(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling EventsApi->get_events_for_section: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**EventsResponse**](EventsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_events_for_student** +> EventsResponse get_events_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns a list of events for a student + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.EventsApi() +id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_events_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling EventsApi->get_events_for_student: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**EventsResponse**](EventsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_events_for_teacher** +> EventsResponse get_events_for_teacher(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns a list of events for a teacher + +### Example +```python +from __future__ import print_function +import time +import swagger_client +from swagger_client.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = swagger_client.EventsApi() +id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_events_for_teacher(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling EventsApi->get_events_for_teacher: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**EventsResponse**](EventsResponse.md) + +### Authorization + +[oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/EventsResponse.md b/docs/EventsResponse.md new file mode 100644 index 0000000..0ffdfc3 --- /dev/null +++ b/docs/EventsResponse.md @@ -0,0 +1,10 @@ +# EventsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[EventResponse]**](EventResponse.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GradeLevelsResponse.md b/docs/GradeLevelsResponse.md new file mode 100644 index 0000000..f443417 --- /dev/null +++ b/docs/GradeLevelsResponse.md @@ -0,0 +1,10 @@ +# GradeLevelsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **list[str]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InternalError.md b/docs/InternalError.md new file mode 100644 index 0000000..d4887d8 --- /dev/null +++ b/docs/InternalError.md @@ -0,0 +1,10 @@ +# InternalError + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Location.md b/docs/Location.md new file mode 100644 index 0000000..d4237f9 --- /dev/null +++ b/docs/Location.md @@ -0,0 +1,15 @@ +# Location + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **str** | | [optional] +**city** | **str** | | [optional] +**lat** | **str** | | [optional] +**lon** | **str** | | [optional] +**state** | **str** | | [optional] +**zip** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Name.md b/docs/Name.md new file mode 100644 index 0000000..cba2535 --- /dev/null +++ b/docs/Name.md @@ -0,0 +1,12 @@ +# Name + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**first** | **str** | | [optional] +**last** | **str** | | [optional] +**middle** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NotFound.md b/docs/NotFound.md new file mode 100644 index 0000000..661e845 --- /dev/null +++ b/docs/NotFound.md @@ -0,0 +1,10 @@ +# NotFound + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Principal.md b/docs/Principal.md new file mode 100644 index 0000000..2971458 --- /dev/null +++ b/docs/Principal.md @@ -0,0 +1,11 @@ +# Principal + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **str** | | [optional] +**name** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/School.md b/docs/School.md new file mode 100644 index 0000000..f34a3ff --- /dev/null +++ b/docs/School.md @@ -0,0 +1,24 @@ +# School + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**district** | **str** | | [optional] +**high_grade** | **str** | | [optional] +**id** | **str** | | [optional] +**last_modified** | **str** | | [optional] +**location** | [**Location**](Location.md) | | [optional] +**low_grade** | **str** | | [optional] +**mdr_number** | **str** | | [optional] +**name** | **str** | | [optional] +**nces_id** | **str** | | [optional] +**phone** | **str** | | [optional] +**principal** | [**Principal**](Principal.md) | | [optional] +**school_number** | **str** | | [optional] +**sis_id** | **str** | | [optional] +**state_id** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchoolAdmin.md b/docs/SchoolAdmin.md new file mode 100644 index 0000000..7216e75 --- /dev/null +++ b/docs/SchoolAdmin.md @@ -0,0 +1,17 @@ +# SchoolAdmin + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**credentials** | [**Credentials**](Credentials.md) | | [optional] +**district** | **str** | | [optional] +**email** | **str** | | [optional] +**id** | **str** | | [optional] +**name** | [**Name**](Name.md) | | [optional] +**schools** | **list[str]** | | [optional] +**staff_id** | **str** | | [optional] +**title** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchoolAdminObject.md b/docs/SchoolAdminObject.md new file mode 100644 index 0000000..1ac94a3 --- /dev/null +++ b/docs/SchoolAdminObject.md @@ -0,0 +1,10 @@ +# SchoolAdminObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object** | [**SchoolAdmin**](SchoolAdmin.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchoolAdminResponse.md b/docs/SchoolAdminResponse.md new file mode 100644 index 0000000..bfa6e46 --- /dev/null +++ b/docs/SchoolAdminResponse.md @@ -0,0 +1,10 @@ +# SchoolAdminResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**SchoolAdmin**](SchoolAdmin.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchoolAdminsResponse.md b/docs/SchoolAdminsResponse.md new file mode 100644 index 0000000..2ccad80 --- /dev/null +++ b/docs/SchoolAdminsResponse.md @@ -0,0 +1,10 @@ +# SchoolAdminsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[SchoolAdminResponse]**](SchoolAdminResponse.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchoolObject.md b/docs/SchoolObject.md new file mode 100644 index 0000000..857a9d9 --- /dev/null +++ b/docs/SchoolObject.md @@ -0,0 +1,10 @@ +# SchoolObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object** | [**School**](School.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchoolResponse.md b/docs/SchoolResponse.md new file mode 100644 index 0000000..5448983 --- /dev/null +++ b/docs/SchoolResponse.md @@ -0,0 +1,10 @@ +# SchoolResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**School**](School.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchooladminsCreated.md b/docs/SchooladminsCreated.md new file mode 100644 index 0000000..3bce223 --- /dev/null +++ b/docs/SchooladminsCreated.md @@ -0,0 +1,13 @@ +# SchooladminsCreated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**SchoolAdminObject**](SchoolAdminObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchooladminsDeleted.md b/docs/SchooladminsDeleted.md new file mode 100644 index 0000000..7393031 --- /dev/null +++ b/docs/SchooladminsDeleted.md @@ -0,0 +1,13 @@ +# SchooladminsDeleted + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**SchoolAdminObject**](SchoolAdminObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchooladminsUpdated.md b/docs/SchooladminsUpdated.md new file mode 100644 index 0000000..872bee1 --- /dev/null +++ b/docs/SchooladminsUpdated.md @@ -0,0 +1,13 @@ +# SchooladminsUpdated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**SchoolAdminObject**](SchoolAdminObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchoolsCreated.md b/docs/SchoolsCreated.md new file mode 100644 index 0000000..46657d8 --- /dev/null +++ b/docs/SchoolsCreated.md @@ -0,0 +1,13 @@ +# SchoolsCreated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**SchoolObject**](SchoolObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchoolsDeleted.md b/docs/SchoolsDeleted.md new file mode 100644 index 0000000..04594f7 --- /dev/null +++ b/docs/SchoolsDeleted.md @@ -0,0 +1,13 @@ +# SchoolsDeleted + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**SchoolObject**](SchoolObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchoolsResponse.md b/docs/SchoolsResponse.md new file mode 100644 index 0000000..39eae4d --- /dev/null +++ b/docs/SchoolsResponse.md @@ -0,0 +1,10 @@ +# SchoolsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[SchoolResponse]**](SchoolResponse.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchoolsUpdated.md b/docs/SchoolsUpdated.md new file mode 100644 index 0000000..723d584 --- /dev/null +++ b/docs/SchoolsUpdated.md @@ -0,0 +1,13 @@ +# SchoolsUpdated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**SchoolObject**](SchoolObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Section.md b/docs/Section.md new file mode 100644 index 0000000..1930056 --- /dev/null +++ b/docs/Section.md @@ -0,0 +1,27 @@ +# Section + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**course_description** | **str** | | [optional] +**course_name** | **str** | | [optional] +**course_number** | **str** | | [optional] +**created** | **str** | | [optional] +**district** | **str** | | [optional] +**grade** | **str** | | [optional] +**id** | **str** | | [optional] +**last_modified** | **str** | | [optional] +**name** | **str** | | [optional] +**period** | **str** | | [optional] +**school** | **str** | | [optional] +**section_number** | **str** | | [optional] +**sis_id** | **str** | | [optional] +**students** | **list[str]** | | [optional] +**subject** | **str** | | [optional] +**teacher** | **str** | | [optional] +**teachers** | **list[str]** | | [optional] +**term** | [**Term**](Term.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SectionObject.md b/docs/SectionObject.md new file mode 100644 index 0000000..b48222c --- /dev/null +++ b/docs/SectionObject.md @@ -0,0 +1,10 @@ +# SectionObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object** | [**Section**](Section.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SectionResponse.md b/docs/SectionResponse.md new file mode 100644 index 0000000..2d45f1e --- /dev/null +++ b/docs/SectionResponse.md @@ -0,0 +1,10 @@ +# SectionResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**Section**](Section.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SectionsCreated.md b/docs/SectionsCreated.md new file mode 100644 index 0000000..1d4a526 --- /dev/null +++ b/docs/SectionsCreated.md @@ -0,0 +1,13 @@ +# SectionsCreated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**SectionObject**](SectionObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SectionsDeleted.md b/docs/SectionsDeleted.md new file mode 100644 index 0000000..af914d5 --- /dev/null +++ b/docs/SectionsDeleted.md @@ -0,0 +1,13 @@ +# SectionsDeleted + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**SectionObject**](SectionObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SectionsResponse.md b/docs/SectionsResponse.md new file mode 100644 index 0000000..f6a8add --- /dev/null +++ b/docs/SectionsResponse.md @@ -0,0 +1,10 @@ +# SectionsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[SectionResponse]**](SectionResponse.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SectionsUpdated.md b/docs/SectionsUpdated.md new file mode 100644 index 0000000..a58137f --- /dev/null +++ b/docs/SectionsUpdated.md @@ -0,0 +1,13 @@ +# SectionsUpdated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**SectionObject**](SectionObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Student.md b/docs/Student.md new file mode 100644 index 0000000..bb39dcc --- /dev/null +++ b/docs/Student.md @@ -0,0 +1,33 @@ +# Student + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**credentials** | [**Credentials**](Credentials.md) | | [optional] +**district** | **str** | | [optional] +**dob** | **str** | | [optional] +**ell_status** | **str** | | [optional] +**email** | **str** | | [optional] +**gender** | **str** | | [optional] +**grade** | **str** | | [optional] +**graduation_year** | **str** | | [optional] +**hispanic_ethnicity** | **str** | | [optional] +**home_language** | **str** | | [optional] +**id** | **str** | | [optional] +**iep_status** | **str** | | [optional] +**last_modified** | **str** | | [optional] +**location** | [**Location**](Location.md) | | [optional] +**name** | [**Name**](Name.md) | | [optional] +**race** | **str** | | [optional] +**school** | **str** | | [optional] +**schools** | **list[str]** | | [optional] +**sis_id** | **str** | | [optional] +**state_id** | **str** | | [optional] +**student_number** | **str** | | [optional] +**unweighted_gpa** | **str** | | [optional] +**weighted_gpa** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StudentContact.md b/docs/StudentContact.md new file mode 100644 index 0000000..b4a7967 --- /dev/null +++ b/docs/StudentContact.md @@ -0,0 +1,19 @@ +# StudentContact + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**district** | **str** | | [optional] +**email** | **str** | | [optional] +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**phone** | **str** | | [optional] +**phone_type** | **str** | | [optional] +**relationship** | **str** | | [optional] +**sis_id** | **str** | | [optional] +**student** | **str** | | [optional] +**type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StudentContactObject.md b/docs/StudentContactObject.md new file mode 100644 index 0000000..bdc8a1c --- /dev/null +++ b/docs/StudentContactObject.md @@ -0,0 +1,10 @@ +# StudentContactObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object** | [**StudentContact**](StudentContact.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StudentContactResponse.md b/docs/StudentContactResponse.md new file mode 100644 index 0000000..e4a2054 --- /dev/null +++ b/docs/StudentContactResponse.md @@ -0,0 +1,10 @@ +# StudentContactResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**StudentContact**](StudentContact.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StudentContactsForStudentResponse.md b/docs/StudentContactsForStudentResponse.md new file mode 100644 index 0000000..518ec04 --- /dev/null +++ b/docs/StudentContactsForStudentResponse.md @@ -0,0 +1,10 @@ +# StudentContactsForStudentResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[StudentContact]**](StudentContact.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StudentContactsResponse.md b/docs/StudentContactsResponse.md new file mode 100644 index 0000000..2550fb1 --- /dev/null +++ b/docs/StudentContactsResponse.md @@ -0,0 +1,10 @@ +# StudentContactsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[StudentContactResponse]**](StudentContactResponse.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StudentObject.md b/docs/StudentObject.md new file mode 100644 index 0000000..9a0bdca --- /dev/null +++ b/docs/StudentObject.md @@ -0,0 +1,10 @@ +# StudentObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object** | [**Student**](Student.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StudentResponse.md b/docs/StudentResponse.md new file mode 100644 index 0000000..464d012 --- /dev/null +++ b/docs/StudentResponse.md @@ -0,0 +1,10 @@ +# StudentResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**Student**](Student.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StudentcontactsCreated.md b/docs/StudentcontactsCreated.md new file mode 100644 index 0000000..99a604f --- /dev/null +++ b/docs/StudentcontactsCreated.md @@ -0,0 +1,13 @@ +# StudentcontactsCreated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**StudentContactObject**](StudentContactObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StudentcontactsDeleted.md b/docs/StudentcontactsDeleted.md new file mode 100644 index 0000000..46c60b5 --- /dev/null +++ b/docs/StudentcontactsDeleted.md @@ -0,0 +1,13 @@ +# StudentcontactsDeleted + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**StudentContactObject**](StudentContactObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StudentcontactsUpdated.md b/docs/StudentcontactsUpdated.md new file mode 100644 index 0000000..0b1cc19 --- /dev/null +++ b/docs/StudentcontactsUpdated.md @@ -0,0 +1,13 @@ +# StudentcontactsUpdated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**StudentContactObject**](StudentContactObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StudentsCreated.md b/docs/StudentsCreated.md new file mode 100644 index 0000000..9b58b80 --- /dev/null +++ b/docs/StudentsCreated.md @@ -0,0 +1,13 @@ +# StudentsCreated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**StudentObject**](StudentObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StudentsDeleted.md b/docs/StudentsDeleted.md new file mode 100644 index 0000000..a9f58fb --- /dev/null +++ b/docs/StudentsDeleted.md @@ -0,0 +1,13 @@ +# StudentsDeleted + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**StudentObject**](StudentObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StudentsResponse.md b/docs/StudentsResponse.md new file mode 100644 index 0000000..c76a297 --- /dev/null +++ b/docs/StudentsResponse.md @@ -0,0 +1,10 @@ +# StudentsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[StudentResponse]**](StudentResponse.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StudentsUpdated.md b/docs/StudentsUpdated.md new file mode 100644 index 0000000..537e33c --- /dev/null +++ b/docs/StudentsUpdated.md @@ -0,0 +1,13 @@ +# StudentsUpdated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**StudentObject**](StudentObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Teacher.md b/docs/Teacher.md new file mode 100644 index 0000000..f001b31 --- /dev/null +++ b/docs/Teacher.md @@ -0,0 +1,22 @@ +# Teacher + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**credentials** | [**Credentials**](Credentials.md) | | [optional] +**district** | **str** | | [optional] +**email** | **str** | | [optional] +**id** | **str** | | [optional] +**last_modified** | **str** | | [optional] +**name** | [**Name**](Name.md) | | [optional] +**school** | **str** | | [optional] +**schools** | **list[str]** | | [optional] +**sis_id** | **str** | | [optional] +**state_id** | **str** | | [optional] +**teacher_number** | **str** | | [optional] +**title** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TeacherObject.md b/docs/TeacherObject.md new file mode 100644 index 0000000..41fb923 --- /dev/null +++ b/docs/TeacherObject.md @@ -0,0 +1,10 @@ +# TeacherObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object** | [**Teacher**](Teacher.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TeacherResponse.md b/docs/TeacherResponse.md new file mode 100644 index 0000000..8fdb1ed --- /dev/null +++ b/docs/TeacherResponse.md @@ -0,0 +1,10 @@ +# TeacherResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**Teacher**](Teacher.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TeachersCreated.md b/docs/TeachersCreated.md new file mode 100644 index 0000000..67a845d --- /dev/null +++ b/docs/TeachersCreated.md @@ -0,0 +1,13 @@ +# TeachersCreated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**TeacherObject**](TeacherObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TeachersDeleted.md b/docs/TeachersDeleted.md new file mode 100644 index 0000000..695681d --- /dev/null +++ b/docs/TeachersDeleted.md @@ -0,0 +1,13 @@ +# TeachersDeleted + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**TeacherObject**](TeacherObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TeachersResponse.md b/docs/TeachersResponse.md new file mode 100644 index 0000000..1e5ad27 --- /dev/null +++ b/docs/TeachersResponse.md @@ -0,0 +1,10 @@ +# TeachersResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[TeacherResponse]**](TeacherResponse.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TeachersUpdated.md b/docs/TeachersUpdated.md new file mode 100644 index 0000000..e1eefda --- /dev/null +++ b/docs/TeachersUpdated.md @@ -0,0 +1,13 @@ +# TeachersUpdated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **str** | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | +**data** | [**TeacherObject**](TeacherObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Term.md b/docs/Term.md new file mode 100644 index 0000000..83cddd2 --- /dev/null +++ b/docs/Term.md @@ -0,0 +1,12 @@ +# Term + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**end_date** | **str** | | [optional] +**name** | **str** | | [optional] +**start_date** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/requirements.txt b/requirements.txt index aff2b9e..bafdc07 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,5 @@ -httmock>=1.2.2 -requests>=0.8.8 -six>=1.10.0 \ No newline at end of file +certifi >= 14.05.14 +six >= 1.10 +python_dateutil >= 2.5.3 +setuptools >= 21.0.0 +urllib3 >= 1.15.1 diff --git a/setup.py b/setup.py index c77ba6e..821aa2d 100644 --- a/setup.py +++ b/setup.py @@ -1,40 +1,41 @@ -import os +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + import sys +from setuptools import setup, find_packages + +NAME = "swagger-client" +VERSION = "1.0.0" +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] -try: - from setuptools import setup -except ImportError: - from distutils.core import setup - -# Don't import clever module here, since deps may not be installed -sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'clever')) -import importer -import version - -path, script = os.path.split(sys.argv[0]) -os.chdir(os.path.abspath(path)) - -# Get simplejson if we don't already have json -install_requires = ['requests >= 0.8.8'] -try: - importer.import_json() -except ImportError: - install_requires.append('simplejson') - -try: - import json - _json_loaded = hasattr(json, 'loads') -except ImportError: - pass - -setup(name='clever', - version=version.VERSION, - description='Clever Python bindings', - author='Clever', - author_email='tech-support@clever.com', - url='https://clever.com/', - packages=['clever'], - package_data={'clever' : ['data/clever.com_ca_bundle.crt', 'VERSION']}, - install_requires=install_requires, - test_suite='test', +setup( + name=NAME, + version=VERSION, + description="Clever API", + author_email="", + url="", + keywords=["Swagger", "Clever API"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + The Clever API + """ ) diff --git a/swagger_client/__init__.py b/swagger_client/__init__.py new file mode 100644 index 0000000..e3697e1 --- /dev/null +++ b/swagger_client/__init__.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +# import models into sdk package +from .models.bad_request import BadRequest +from .models.credentials import Credentials +from .models.district import District +from .models.district_admin import DistrictAdmin +from .models.district_admin_response import DistrictAdminResponse +from .models.district_admins_response import DistrictAdminsResponse +from .models.district_object import DistrictObject +from .models.district_response import DistrictResponse +from .models.district_status import DistrictStatus +from .models.district_status_response import DistrictStatusResponse +from .models.district_status_responses import DistrictStatusResponses +from .models.districts_response import DistrictsResponse +from .models.event import Event +from .models.event_response import EventResponse +from .models.events_response import EventsResponse +from .models.grade_levels_response import GradeLevelsResponse +from .models.internal_error import InternalError +from .models.location import Location +from .models.name import Name +from .models.not_found import NotFound +from .models.principal import Principal +from .models.school import School +from .models.school_admin import SchoolAdmin +from .models.school_admin_object import SchoolAdminObject +from .models.school_admin_response import SchoolAdminResponse +from .models.school_admins_response import SchoolAdminsResponse +from .models.school_object import SchoolObject +from .models.school_response import SchoolResponse +from .models.schools_response import SchoolsResponse +from .models.section import Section +from .models.section_object import SectionObject +from .models.section_response import SectionResponse +from .models.sections_response import SectionsResponse +from .models.student import Student +from .models.student_contact import StudentContact +from .models.student_contact_object import StudentContactObject +from .models.student_contact_response import StudentContactResponse +from .models.student_contacts_for_student_response import StudentContactsForStudentResponse +from .models.student_contacts_response import StudentContactsResponse +from .models.student_object import StudentObject +from .models.student_response import StudentResponse +from .models.students_response import StudentsResponse +from .models.teacher import Teacher +from .models.teacher_object import TeacherObject +from .models.teacher_response import TeacherResponse +from .models.teachers_response import TeachersResponse +from .models.term import Term +from .models.districts_created import DistrictsCreated +from .models.districts_deleted import DistrictsDeleted +from .models.districts_updated import DistrictsUpdated +from .models.schooladmins_created import SchooladminsCreated +from .models.schooladmins_deleted import SchooladminsDeleted +from .models.schooladmins_updated import SchooladminsUpdated +from .models.schools_created import SchoolsCreated +from .models.schools_deleted import SchoolsDeleted +from .models.schools_updated import SchoolsUpdated +from .models.sections_created import SectionsCreated +from .models.sections_deleted import SectionsDeleted +from .models.sections_updated import SectionsUpdated +from .models.studentcontacts_created import StudentcontactsCreated +from .models.studentcontacts_deleted import StudentcontactsDeleted +from .models.studentcontacts_updated import StudentcontactsUpdated +from .models.students_created import StudentsCreated +from .models.students_deleted import StudentsDeleted +from .models.students_updated import StudentsUpdated +from .models.teachers_created import TeachersCreated +from .models.teachers_deleted import TeachersDeleted +from .models.teachers_updated import TeachersUpdated + +# import apis into sdk package +from .apis.data_api import DataApi +from .apis.events_api import EventsApi + +# import ApiClient +from .api_client import ApiClient + +from .configuration import Configuration + +configuration = Configuration() diff --git a/swagger_client/api_client.py b/swagger_client/api_client.py new file mode 100644 index 0000000..9605290 --- /dev/null +++ b/swagger_client/api_client.py @@ -0,0 +1,633 @@ +# coding: utf-8 +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import os +import re +import json +import mimetypes +import tempfile +import threading + +from datetime import date, datetime + +# python 2 and python 3 compatibility library +from six import PY3, integer_types, iteritems, text_type +from six.moves.urllib.parse import quote + +from . import models +from .configuration import Configuration +from .rest import ApiException, RESTClientObject + + +class ApiClient(object): + """ + Generic API client for Swagger client library builds. + + Swagger generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the Swagger + templates. + + NOTE: This class is auto generated by the swagger code generator program. + Ref: https://github.com/swagger-api/swagger-codegen + Do not edit the class manually. + + :param host: The base path for the server to call. + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to the API. + """ + + PRIMITIVE_TYPES = (float, bool, bytes, text_type) + integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': date, + 'datetime': datetime, + 'object': object, + } + + def __init__(self, host=None, header_name=None, header_value=None, cookie=None): + """ + Constructor of the class. + """ + self.rest_client = RESTClientObject() + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + if host is None: + self.host = Configuration().host + else: + self.host = host + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'Swagger-Codegen/1.0.0/python' + + @property + def user_agent(self): + """ + Gets user agent. + """ + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + """ + Sets user agent. + """ + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + def __call_api(self, resource_path, method, + path_params=None, query_params=None, header_params=None, + body=None, post_params=None, files=None, + response_type=None, auth_settings=None, callback=None, + _return_http_data_only=None, collection_formats=None, _preload_content=True, + _request_timeout=None): + + config = Configuration() + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict(self.parameters_to_tuples(header_params, + collection_formats)) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples(path_params, + collection_formats) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, quote(str(v), safe=config.safe_chars_for_path_param)) + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + query_params = self.parameters_to_tuples(query_params, + collection_formats) + + # post parameters + if post_params or files: + post_params = self.prepare_post_parameters(post_params, files) + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples(post_params, + collection_formats) + + # auth setting + self.update_params_for_auth(header_params, query_params, auth_settings) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # request url + url = self.host + resource_path + + # perform request and return response + response_data = self.request(method, url, + query_params=query_params, + headers=header_params, + post_params=post_params, body=body, + _preload_content=_preload_content, + _request_timeout=_request_timeout) + + self.last_response = response_data + + return_data = response_data + if _preload_content: + # deserialize response data + if response_type: + return_data = self.deserialize(response_data, response_type) + else: + return_data = None + + if callback: + if _return_http_data_only: + callback(return_data) + else: + callback((return_data, response_data.status, response_data.getheaders())) + elif _return_http_data_only: + return (return_data) + else: + return (return_data, response_data.status, response_data.getheaders()) + + def sanitize_for_serialization(self, obj): + """ + Builds a JSON POST object. + + If obj is None, return None. + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is swagger model, return the properties dict. + + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if obj is None: + return None + elif isinstance(obj, self.PRIMITIVE_TYPES): + return obj + elif isinstance(obj, list): + return [self.sanitize_for_serialization(sub_obj) + for sub_obj in obj] + elif isinstance(obj, tuple): + return tuple(self.sanitize_for_serialization(sub_obj) + for sub_obj in obj) + elif isinstance(obj, (datetime, date)): + return obj.isoformat() + + if isinstance(obj, dict): + obj_dict = obj + else: + # Convert model obj to dict except + # attributes `swagger_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) + for attr, _ in iteritems(obj.swagger_types) + if getattr(obj, attr) is not None} + + return {key: self.sanitize_for_serialization(val) + for key, val in iteritems(obj_dict)} + + def deserialize(self, response, response_type): + """ + Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. + + :return: deserialized object. + """ + # handle file downloading + # save response body into a tmp file and return the instance + if response_type == "file": + return self.__deserialize_file(response) + + # fetch data from response object + try: + data = json.loads(response.data) + except ValueError: + data = response.data + + return self.__deserialize(data, response_type) + + def __deserialize(self, data, klass): + """ + Deserializes dict, list, str into an object. + + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. + """ + if data is None: + return None + + if type(klass) == str: + if klass.startswith('list['): + sub_kls = re.match('list\[(.*)\]', klass).group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] + + if klass.startswith('dict('): + sub_kls = re.match('dict\(([^,]*), (.*)\)', klass).group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in iteritems(data)} + + # convert str to class + if klass in self.NATIVE_TYPES_MAPPING: + klass = self.NATIVE_TYPES_MAPPING[klass] + else: + klass = getattr(models, klass) + + if klass in self.PRIMITIVE_TYPES: + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object(data) + elif klass == date: + return self.__deserialize_date(data) + elif klass == datetime: + return self.__deserialize_datatime(data) + else: + return self.__deserialize_model(data, klass) + + def call_api(self, resource_path, method, + path_params=None, query_params=None, header_params=None, + body=None, post_params=None, files=None, + response_type=None, auth_settings=None, callback=None, + _return_http_data_only=None, collection_formats=None, _preload_content=True, + _request_timeout=None): + """ + Makes the HTTP request (synchronous) and return the deserialized data. + To make an async request, define a function for callback. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param response: Response data type. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param callback function: Callback function for asynchronous request. + If provide this parameter, + the request will be called asynchronously. + :param _return_http_data_only: response data without head status code and headers + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without + reading/decoding response data. Default is True. + :param _request_timeout: timeout setting for this request. If one number provided, it will be total request + timeout. It can also be a pair (tuple) of (connection, read) timeouts. + :return: + If provide parameter callback, + the request will be called asynchronously. + The method will return the request thread. + If parameter callback is None, + then the method will return the response directly. + """ + if callback is None: + return self.__call_api(resource_path, method, + path_params, query_params, header_params, + body, post_params, files, + response_type, auth_settings, callback, + _return_http_data_only, collection_formats, _preload_content, _request_timeout) + else: + thread = threading.Thread(target=self.__call_api, + args=(resource_path, method, + path_params, query_params, + header_params, body, + post_params, files, + response_type, auth_settings, + callback, _return_http_data_only, + collection_formats, _preload_content, _request_timeout)) + thread.start() + return thread + + def request(self, method, url, query_params=None, headers=None, + post_params=None, body=None, _preload_content=True, _request_timeout=None): + """ + Makes the HTTP request using RESTClient. + """ + if method == "GET": + return self.rest_client.GET(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "HEAD": + return self.rest_client.HEAD(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "OPTIONS": + return self.rest_client.OPTIONS(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "POST": + return self.rest_client.POST(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PUT": + return self.rest_client.PUT(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PATCH": + return self.rest_client.PATCH(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "DELETE": + return self.rest_client.DELETE(url, + query_params=query_params, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + else: + raise ValueError( + "http method must be `GET`, `HEAD`, `OPTIONS`," + " `POST`, `PATCH`, `PUT` or `DELETE`." + ) + + def parameters_to_tuples(self, params, collection_formats): + """ + Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params = [] + if collection_formats is None: + collection_formats = {} + for k, v in iteritems(params) if isinstance(params, dict) else params: + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + def prepare_post_parameters(self, post_params=None, files=None): + """ + Builds form parameters. + + :param post_params: Normal form parameters. + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + + if post_params: + params = post_params + + if files: + for k, v in iteritems(files): + if not v: + continue + file_names = v if type(v) is list else [v] + for n in file_names: + with open(n, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + mimetype = mimetypes.\ + guess_type(filename)[0] or 'application/octet-stream' + params.append(tuple([k, tuple([filename, filedata, mimetype])])) + + return params + + def select_header_accept(self, accepts): + """ + Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return + + accepts = [x.lower() for x in accepts] + + if 'application/json' in accepts: + return 'application/json' + else: + return ', '.join(accepts) + + def select_header_content_type(self, content_types): + """ + Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return 'application/json' + + content_types = [x.lower() for x in content_types] + + if 'application/json' in content_types or '*/*' in content_types: + return 'application/json' + else: + return content_types[0] + + def update_params_for_auth(self, headers, querys, auth_settings): + """ + Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param querys: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + """ + config = Configuration() + + if not auth_settings: + return + + for auth in auth_settings: + auth_setting = config.auth_settings().get(auth) + if auth_setting: + if not auth_setting['value']: + continue + elif auth_setting['in'] == 'header': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + querys.append((auth_setting['key'], auth_setting['value'])) + else: + raise ValueError( + 'Authentication token must be in `query` or `header`' + ) + + def __deserialize_file(self, response): + """ + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + :param response: RESTResponse. + :return: file path. + """ + config = Configuration() + + fd, path = tempfile.mkstemp(dir=config.temp_folder_path) + os.close(fd) + os.remove(path) + + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + filename = re.\ + search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition).\ + group(1) + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "w") as f: + f.write(response.data) + + return path + + def __deserialize_primitive(self, data, klass): + """ + Deserializes string to primitive type. + + :param data: str. + :param klass: class literal. + + :return: int, long, float, str, bool. + """ + try: + return klass(data) + except UnicodeEncodeError: + return unicode(data) + except TypeError: + return data + + def __deserialize_object(self, value): + """ + Return a original value. + + :return: object. + """ + return value + + def __deserialize_date(self, string): + """ + Deserializes string to date. + + :param string: str. + :return: date. + """ + try: + from dateutil.parser import parse + return parse(string).date() + except ImportError: + return string + except ValueError: + raise ApiException( + status=0, + reason="Failed to parse `{0}` into a date object".format(string) + ) + + def __deserialize_datatime(self, string): + """ + Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. + """ + try: + from dateutil.parser import parse + return parse(string) + except ImportError: + return string + except ValueError: + raise ApiException( + status=0, + reason=( + "Failed to parse `{0}` into a datetime object" + .format(string) + ) + ) + + def __deserialize_model(self, data, klass): + """ + Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ + if not klass.swagger_types: + return data + + kwargs = {} + for attr, attr_type in iteritems(klass.swagger_types): + if data is not None \ + and klass.attribute_map[attr] in data \ + and isinstance(data, (list, dict)): + value = data[klass.attribute_map[attr]] + kwargs[attr] = self.__deserialize(value, attr_type) + + instance = klass(**kwargs) + + return instance diff --git a/swagger_client/apis/__init__.py b/swagger_client/apis/__init__.py new file mode 100644 index 0000000..450079b --- /dev/null +++ b/swagger_client/apis/__init__.py @@ -0,0 +1,5 @@ +from __future__ import absolute_import + +# import apis into api package +from .data_api import DataApi +from .events_api import EventsApi diff --git a/swagger_client/apis/data_api.py b/swagger_client/apis/data_api.py new file mode 100644 index 0000000..dcead60 --- /dev/null +++ b/swagger_client/apis/data_api.py @@ -0,0 +1,4088 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class DataApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_contact(self, id, **kwargs): + """ + Returns a specific student contact + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_contact(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: StudentContactResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_contact_with_http_info(id, **kwargs) + else: + (data) = self.get_contact_with_http_info(id, **kwargs) + return data + + def get_contact_with_http_info(self, id, **kwargs): + """ + Returns a specific student contact + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_contact_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: StudentContactResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_contact" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_contact`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/contacts/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StudentContactResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_contacts(self, **kwargs): + """ + Returns a list of student contacts + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_contacts(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: StudentContactsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_contacts_with_http_info(**kwargs) + else: + (data) = self.get_contacts_with_http_info(**kwargs) + return data + + def get_contacts_with_http_info(self, **kwargs): + """ + Returns a list of student contacts + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_contacts_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: StudentContactsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_contacts" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/contacts', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StudentContactsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_contacts_for_student(self, id, **kwargs): + """ + Returns the contacts for a student + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_contacts_for_student(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :return: StudentContactsForStudentResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_contacts_for_student_with_http_info(id, **kwargs) + else: + (data) = self.get_contacts_for_student_with_http_info(id, **kwargs) + return data + + def get_contacts_for_student_with_http_info(self, id, **kwargs): + """ + Returns the contacts for a student + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_contacts_for_student_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :return: StudentContactsForStudentResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'limit'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_contacts_for_student" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_contacts_for_student`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/students/{id}/contacts', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StudentContactsForStudentResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_district(self, id, **kwargs): + """ + Returns a specific district + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: DistrictResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_district_with_http_info(id, **kwargs) + else: + (data) = self.get_district_with_http_info(id, **kwargs) + return data + + def get_district_with_http_info(self, id, **kwargs): + """ + Returns a specific district + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: DistrictResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_district" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_district`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/districts/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DistrictResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_district_admin(self, id, **kwargs): + """ + Returns a specific district admin + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district_admin(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: DistrictAdminResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_district_admin_with_http_info(id, **kwargs) + else: + (data) = self.get_district_admin_with_http_info(id, **kwargs) + return data + + def get_district_admin_with_http_info(self, id, **kwargs): + """ + Returns a specific district admin + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district_admin_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: DistrictAdminResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_district_admin" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_district_admin`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/district_admins/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DistrictAdminResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_district_admins(self, **kwargs): + """ + Returns a list of district admins + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district_admins(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str starting_after: + :param str ending_before: + :return: DistrictAdminsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_district_admins_with_http_info(**kwargs) + else: + (data) = self.get_district_admins_with_http_info(**kwargs) + return data + + def get_district_admins_with_http_info(self, **kwargs): + """ + Returns a list of district admins + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district_admins_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str starting_after: + :param str ending_before: + :return: DistrictAdminsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_district_admins" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/district_admins', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DistrictAdminsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_district_for_school(self, id, **kwargs): + """ + Returns the district for a school + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district_for_school(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: DistrictResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_district_for_school_with_http_info(id, **kwargs) + else: + (data) = self.get_district_for_school_with_http_info(id, **kwargs) + return data + + def get_district_for_school_with_http_info(self, id, **kwargs): + """ + Returns the district for a school + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district_for_school_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: DistrictResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_district_for_school" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_district_for_school`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/schools/{id}/district', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DistrictResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_district_for_section(self, id, **kwargs): + """ + Returns the district for a section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district_for_section(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: DistrictResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_district_for_section_with_http_info(id, **kwargs) + else: + (data) = self.get_district_for_section_with_http_info(id, **kwargs) + return data + + def get_district_for_section_with_http_info(self, id, **kwargs): + """ + Returns the district for a section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district_for_section_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: DistrictResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_district_for_section" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_district_for_section`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/sections/{id}/district', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DistrictResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_district_for_student(self, id, **kwargs): + """ + Returns the district for a student + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district_for_student(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: DistrictResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_district_for_student_with_http_info(id, **kwargs) + else: + (data) = self.get_district_for_student_with_http_info(id, **kwargs) + return data + + def get_district_for_student_with_http_info(self, id, **kwargs): + """ + Returns the district for a student + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district_for_student_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: DistrictResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_district_for_student" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_district_for_student`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/students/{id}/district', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DistrictResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_district_for_student_contact(self, id, **kwargs): + """ + Returns the district for a student contact + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district_for_student_contact(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: DistrictResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_district_for_student_contact_with_http_info(id, **kwargs) + else: + (data) = self.get_district_for_student_contact_with_http_info(id, **kwargs) + return data + + def get_district_for_student_contact_with_http_info(self, id, **kwargs): + """ + Returns the district for a student contact + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district_for_student_contact_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: DistrictResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_district_for_student_contact" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_district_for_student_contact`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/contacts/{id}/district', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DistrictResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_district_for_teacher(self, id, **kwargs): + """ + Returns the district for a teacher + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district_for_teacher(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: DistrictResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_district_for_teacher_with_http_info(id, **kwargs) + else: + (data) = self.get_district_for_teacher_with_http_info(id, **kwargs) + return data + + def get_district_for_teacher_with_http_info(self, id, **kwargs): + """ + Returns the district for a teacher + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district_for_teacher_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: DistrictResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_district_for_teacher" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_district_for_teacher`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/teachers/{id}/district', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DistrictResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_district_status(self, id, **kwargs): + """ + Returns the status of the district + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district_status(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: DistrictStatusResponses + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_district_status_with_http_info(id, **kwargs) + else: + (data) = self.get_district_status_with_http_info(id, **kwargs) + return data + + def get_district_status_with_http_info(self, id, **kwargs): + """ + Returns the status of the district + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_district_status_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: DistrictStatusResponses + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_district_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_district_status`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/districts/{id}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DistrictStatusResponses', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_districts(self, **kwargs): + """ + Returns a list of districts + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_districts(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: DistrictsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_districts_with_http_info(**kwargs) + else: + (data) = self.get_districts_with_http_info(**kwargs) + return data + + def get_districts_with_http_info(self, **kwargs): + """ + Returns a list of districts + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_districts_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: DistrictsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_districts" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/districts', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DistrictsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_grade_levels_for_teacher(self, id, **kwargs): + """ + Returns the grade levels for sections a teacher teaches + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_grade_levels_for_teacher(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: GradeLevelsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_grade_levels_for_teacher_with_http_info(id, **kwargs) + else: + (data) = self.get_grade_levels_for_teacher_with_http_info(id, **kwargs) + return data + + def get_grade_levels_for_teacher_with_http_info(self, id, **kwargs): + """ + Returns the grade levels for sections a teacher teaches + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_grade_levels_for_teacher_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: GradeLevelsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_grade_levels_for_teacher" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_grade_levels_for_teacher`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/teachers/{id}/grade_levels', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GradeLevelsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_school(self, id, **kwargs): + """ + Returns a specific school + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_school(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: SchoolResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_school_with_http_info(id, **kwargs) + else: + (data) = self.get_school_with_http_info(id, **kwargs) + return data + + def get_school_with_http_info(self, id, **kwargs): + """ + Returns a specific school + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_school_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: SchoolResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_school" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_school`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/schools/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SchoolResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_school_admin(self, id, **kwargs): + """ + Returns a specific school admin + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_school_admin(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: SchoolAdminResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_school_admin_with_http_info(id, **kwargs) + else: + (data) = self.get_school_admin_with_http_info(id, **kwargs) + return data + + def get_school_admin_with_http_info(self, id, **kwargs): + """ + Returns a specific school admin + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_school_admin_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: SchoolAdminResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_school_admin" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_school_admin`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/school_admins/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SchoolAdminResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_school_admins(self, **kwargs): + """ + Returns a list of school admins + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_school_admins(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SchoolAdminsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_school_admins_with_http_info(**kwargs) + else: + (data) = self.get_school_admins_with_http_info(**kwargs) + return data + + def get_school_admins_with_http_info(self, **kwargs): + """ + Returns a list of school admins + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_school_admins_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SchoolAdminsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_school_admins" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/school_admins', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SchoolAdminsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_school_for_section(self, id, **kwargs): + """ + Returns the school for a section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_school_for_section(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: SchoolResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_school_for_section_with_http_info(id, **kwargs) + else: + (data) = self.get_school_for_section_with_http_info(id, **kwargs) + return data + + def get_school_for_section_with_http_info(self, id, **kwargs): + """ + Returns the school for a section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_school_for_section_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: SchoolResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_school_for_section" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_school_for_section`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/sections/{id}/school', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SchoolResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_school_for_student(self, id, **kwargs): + """ + Returns the primary school for a student + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_school_for_student(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: SchoolResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_school_for_student_with_http_info(id, **kwargs) + else: + (data) = self.get_school_for_student_with_http_info(id, **kwargs) + return data + + def get_school_for_student_with_http_info(self, id, **kwargs): + """ + Returns the primary school for a student + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_school_for_student_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: SchoolResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_school_for_student" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_school_for_student`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/students/{id}/school', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SchoolResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_school_for_teacher(self, id, **kwargs): + """ + Retrieves school info for a teacher. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_school_for_teacher(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: SchoolResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_school_for_teacher_with_http_info(id, **kwargs) + else: + (data) = self.get_school_for_teacher_with_http_info(id, **kwargs) + return data + + def get_school_for_teacher_with_http_info(self, id, **kwargs): + """ + Retrieves school info for a teacher. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_school_for_teacher_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: SchoolResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_school_for_teacher" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_school_for_teacher`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/teachers/{id}/school', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SchoolResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_schools(self, **kwargs): + """ + Returns a list of schools + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_schools(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SchoolsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_schools_with_http_info(**kwargs) + else: + (data) = self.get_schools_with_http_info(**kwargs) + return data + + def get_schools_with_http_info(self, **kwargs): + """ + Returns a list of schools + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_schools_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SchoolsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_schools" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/schools', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SchoolsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_schools_for_school_admin(self, id, **kwargs): + """ + Returns the schools for a school admin + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_schools_for_school_admin(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SchoolsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_schools_for_school_admin_with_http_info(id, **kwargs) + else: + (data) = self.get_schools_for_school_admin_with_http_info(id, **kwargs) + return data + + def get_schools_for_school_admin_with_http_info(self, id, **kwargs): + """ + Returns the schools for a school admin + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_schools_for_school_admin_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SchoolsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_schools_for_school_admin" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_schools_for_school_admin`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/school_admins/{id}/schools', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SchoolsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_section(self, id, **kwargs): + """ + Returns a specific section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_section(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: SectionResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_section_with_http_info(id, **kwargs) + else: + (data) = self.get_section_with_http_info(id, **kwargs) + return data + + def get_section_with_http_info(self, id, **kwargs): + """ + Returns a specific section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_section_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: SectionResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_section" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_section`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/sections/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SectionResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_sections(self, **kwargs): + """ + Returns a list of sections + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_sections(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SectionsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_sections_with_http_info(**kwargs) + else: + (data) = self.get_sections_with_http_info(**kwargs) + return data + + def get_sections_with_http_info(self, **kwargs): + """ + Returns a list of sections + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_sections_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SectionsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_sections" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/sections', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SectionsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_sections_for_school(self, id, **kwargs): + """ + Returns the sections for a school + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_sections_for_school(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SectionsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_sections_for_school_with_http_info(id, **kwargs) + else: + (data) = self.get_sections_for_school_with_http_info(id, **kwargs) + return data + + def get_sections_for_school_with_http_info(self, id, **kwargs): + """ + Returns the sections for a school + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_sections_for_school_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SectionsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_sections_for_school" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_sections_for_school`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/schools/{id}/sections', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SectionsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_sections_for_student(self, id, **kwargs): + """ + Returns the sections for a student + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_sections_for_student(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SectionsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_sections_for_student_with_http_info(id, **kwargs) + else: + (data) = self.get_sections_for_student_with_http_info(id, **kwargs) + return data + + def get_sections_for_student_with_http_info(self, id, **kwargs): + """ + Returns the sections for a student + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_sections_for_student_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SectionsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_sections_for_student" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_sections_for_student`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/students/{id}/sections', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SectionsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_sections_for_teacher(self, id, **kwargs): + """ + Returns the sections for a teacher + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_sections_for_teacher(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SectionsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_sections_for_teacher_with_http_info(id, **kwargs) + else: + (data) = self.get_sections_for_teacher_with_http_info(id, **kwargs) + return data + + def get_sections_for_teacher_with_http_info(self, id, **kwargs): + """ + Returns the sections for a teacher + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_sections_for_teacher_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SectionsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_sections_for_teacher" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_sections_for_teacher`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/teachers/{id}/sections', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SectionsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_student(self, id, **kwargs): + """ + Returns a specific student + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_student(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: StudentResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_student_with_http_info(id, **kwargs) + else: + (data) = self.get_student_with_http_info(id, **kwargs) + return data + + def get_student_with_http_info(self, id, **kwargs): + """ + Returns a specific student + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_student_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: StudentResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_student" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_student`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/students/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StudentResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_student_for_contact(self, id, **kwargs): + """ + Returns the student for a student contact + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_student_for_contact(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: StudentResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_student_for_contact_with_http_info(id, **kwargs) + else: + (data) = self.get_student_for_contact_with_http_info(id, **kwargs) + return data + + def get_student_for_contact_with_http_info(self, id, **kwargs): + """ + Returns the student for a student contact + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_student_for_contact_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: StudentResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_student_for_contact" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_student_for_contact`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/contacts/{id}/student', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StudentResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_students(self, **kwargs): + """ + Returns a list of students + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_students(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: StudentsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_students_with_http_info(**kwargs) + else: + (data) = self.get_students_with_http_info(**kwargs) + return data + + def get_students_with_http_info(self, **kwargs): + """ + Returns a list of students + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_students_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: StudentsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_students" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/students', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StudentsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_students_for_school(self, id, **kwargs): + """ + Returns the students for a school + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_students_for_school(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: StudentsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_students_for_school_with_http_info(id, **kwargs) + else: + (data) = self.get_students_for_school_with_http_info(id, **kwargs) + return data + + def get_students_for_school_with_http_info(self, id, **kwargs): + """ + Returns the students for a school + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_students_for_school_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: StudentsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_students_for_school" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_students_for_school`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/schools/{id}/students', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StudentsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_students_for_section(self, id, **kwargs): + """ + Returns the students for a section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_students_for_section(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: StudentsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_students_for_section_with_http_info(id, **kwargs) + else: + (data) = self.get_students_for_section_with_http_info(id, **kwargs) + return data + + def get_students_for_section_with_http_info(self, id, **kwargs): + """ + Returns the students for a section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_students_for_section_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: StudentsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_students_for_section" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_students_for_section`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/sections/{id}/students', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StudentsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_students_for_teacher(self, id, **kwargs): + """ + Returns the students for a teacher + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_students_for_teacher(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: StudentsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_students_for_teacher_with_http_info(id, **kwargs) + else: + (data) = self.get_students_for_teacher_with_http_info(id, **kwargs) + return data + + def get_students_for_teacher_with_http_info(self, id, **kwargs): + """ + Returns the students for a teacher + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_students_for_teacher_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: StudentsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_students_for_teacher" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_students_for_teacher`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/teachers/{id}/students', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StudentsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_teacher(self, id, **kwargs): + """ + Returns a specific teacher + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_teacher(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: TeacherResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_teacher_with_http_info(id, **kwargs) + else: + (data) = self.get_teacher_with_http_info(id, **kwargs) + return data + + def get_teacher_with_http_info(self, id, **kwargs): + """ + Returns a specific teacher + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_teacher_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: TeacherResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_teacher" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_teacher`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/teachers/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TeacherResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_teacher_for_section(self, id, **kwargs): + """ + Returns the primary teacher for a section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_teacher_for_section(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: TeacherResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_teacher_for_section_with_http_info(id, **kwargs) + else: + (data) = self.get_teacher_for_section_with_http_info(id, **kwargs) + return data + + def get_teacher_for_section_with_http_info(self, id, **kwargs): + """ + Returns the primary teacher for a section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_teacher_for_section_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: TeacherResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_teacher_for_section" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_teacher_for_section`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/sections/{id}/teacher', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TeacherResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_teachers(self, **kwargs): + """ + Returns a list of teachers + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_teachers(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: TeachersResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_teachers_with_http_info(**kwargs) + else: + (data) = self.get_teachers_with_http_info(**kwargs) + return data + + def get_teachers_with_http_info(self, **kwargs): + """ + Returns a list of teachers + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_teachers_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: TeachersResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_teachers" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/teachers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TeachersResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_teachers_for_school(self, id, **kwargs): + """ + Returns the teachers for a school + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_teachers_for_school(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: TeachersResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_teachers_for_school_with_http_info(id, **kwargs) + else: + (data) = self.get_teachers_for_school_with_http_info(id, **kwargs) + return data + + def get_teachers_for_school_with_http_info(self, id, **kwargs): + """ + Returns the teachers for a school + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_teachers_for_school_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: TeachersResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_teachers_for_school" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_teachers_for_school`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/schools/{id}/teachers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TeachersResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_teachers_for_section(self, id, **kwargs): + """ + Returns the teachers for a section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_teachers_for_section(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: TeachersResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_teachers_for_section_with_http_info(id, **kwargs) + else: + (data) = self.get_teachers_for_section_with_http_info(id, **kwargs) + return data + + def get_teachers_for_section_with_http_info(self, id, **kwargs): + """ + Returns the teachers for a section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_teachers_for_section_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: TeachersResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_teachers_for_section" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_teachers_for_section`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/sections/{id}/teachers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TeachersResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_teachers_for_student(self, id, **kwargs): + """ + Returns the teachers for a student + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_teachers_for_student(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: TeachersResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_teachers_for_student_with_http_info(id, **kwargs) + else: + (data) = self.get_teachers_for_student_with_http_info(id, **kwargs) + return data + + def get_teachers_for_student_with_http_info(self, id, **kwargs): + """ + Returns the teachers for a student + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_teachers_for_student_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: TeachersResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_teachers_for_student" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_teachers_for_student`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/students/{id}/teachers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TeachersResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/apis/events_api.py b/swagger_client/apis/events_api.py new file mode 100644 index 0000000..cc6acb8 --- /dev/null +++ b/swagger_client/apis/events_api.py @@ -0,0 +1,806 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class EventsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_event(self, id, **kwargs): + """ + Returns the specific event + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_event(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: EventResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_event_with_http_info(id, **kwargs) + else: + (data) = self.get_event_with_http_info(id, **kwargs) + return data + + def get_event_with_http_info(self, id, **kwargs): + """ + Returns the specific event + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_event_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: EventResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_event" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_event`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/events/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EventResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_events(self, **kwargs): + """ + Returns a list of events + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_events(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: EventsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_events_with_http_info(**kwargs) + else: + (data) = self.get_events_with_http_info(**kwargs) + return data + + def get_events_with_http_info(self, **kwargs): + """ + Returns a list of events + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_events_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: EventsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_events" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/events', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EventsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_events_for_school(self, id, **kwargs): + """ + Returns a list of events for a school + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_events_for_school(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: EventsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_events_for_school_with_http_info(id, **kwargs) + else: + (data) = self.get_events_for_school_with_http_info(id, **kwargs) + return data + + def get_events_for_school_with_http_info(self, id, **kwargs): + """ + Returns a list of events for a school + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_events_for_school_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: EventsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_events_for_school" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_events_for_school`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/schools/{id}/events', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EventsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_events_for_school_admin(self, id, **kwargs): + """ + Returns a list of events for a school admin + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_events_for_school_admin(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: EventsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_events_for_school_admin_with_http_info(id, **kwargs) + else: + (data) = self.get_events_for_school_admin_with_http_info(id, **kwargs) + return data + + def get_events_for_school_admin_with_http_info(self, id, **kwargs): + """ + Returns a list of events for a school admin + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_events_for_school_admin_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: EventsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_events_for_school_admin" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_events_for_school_admin`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/school_admins/{id}/events', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EventsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_events_for_section(self, id, **kwargs): + """ + Returns a list of events for a section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_events_for_section(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: EventsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_events_for_section_with_http_info(id, **kwargs) + else: + (data) = self.get_events_for_section_with_http_info(id, **kwargs) + return data + + def get_events_for_section_with_http_info(self, id, **kwargs): + """ + Returns a list of events for a section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_events_for_section_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: EventsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_events_for_section" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_events_for_section`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/sections/{id}/events', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EventsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_events_for_student(self, id, **kwargs): + """ + Returns a list of events for a student + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_events_for_student(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: EventsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_events_for_student_with_http_info(id, **kwargs) + else: + (data) = self.get_events_for_student_with_http_info(id, **kwargs) + return data + + def get_events_for_student_with_http_info(self, id, **kwargs): + """ + Returns a list of events for a student + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_events_for_student_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: EventsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_events_for_student" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_events_for_student`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/students/{id}/events', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EventsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_events_for_teacher(self, id, **kwargs): + """ + Returns a list of events for a teacher + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_events_for_teacher(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: EventsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_events_for_teacher_with_http_info(id, **kwargs) + else: + (data) = self.get_events_for_teacher_with_http_info(id, **kwargs) + return data + + def get_events_for_teacher_with_http_info(self, id, **kwargs): + """ + Returns a list of events for a teacher + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_events_for_teacher_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param int limit: + :param str starting_after: + :param str ending_before: + :return: EventsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_events_for_teacher" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_events_for_teacher`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/teachers/{id}/events', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EventsResponse', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/configuration.py b/swagger_client/configuration.py new file mode 100644 index 0000000..eee4bdb --- /dev/null +++ b/swagger_client/configuration.py @@ -0,0 +1,235 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import urllib3 + +import sys +import logging + +from six import iteritems +from six.moves import http_client as httplib + + +def singleton(cls, *args, **kw): + instances = {} + + def _singleton(): + if cls not in instances: + instances[cls] = cls(*args, **kw) + return instances[cls] + return _singleton + + +@singleton +class Configuration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Ref: https://github.com/swagger-api/swagger-codegen + Do not edit the class manually. + """ + + def __init__(self): + """ + Constructor + """ + # Default Base url + self.host = "https://api.clever.com/v1.2" + # Default api client + self.api_client = None + # Temp file folder for downloading files + self.temp_folder_path = None + + # Authentication Settings + # dict to store API key(s) + self.api_key = {} + # dict to store API prefix (e.g. Bearer) + self.api_key_prefix = {} + # Username for HTTP basic authentication + self.username = "" + # Password for HTTP basic authentication + self.password = "" + + # access token for OAuth + self.access_token = "" + + # Logging Settings + self.logger = {} + self.logger["package_logger"] = logging.getLogger("swagger_client") + self.logger["urllib3_logger"] = logging.getLogger("urllib3") + # Log format + self.logger_format = '%(asctime)s %(levelname)s %(message)s' + # Log stream handler + self.logger_stream_handler = None + # Log file handler + self.logger_file_handler = None + # Debug file location + self.logger_file = None + # Debug switch + self.debug = False + + # SSL/TLS verification + # Set this to false to skip verifying SSL certificate when calling API from https server. + self.verify_ssl = True + # Set this to customize the certificate file to verify the peer. + self.ssl_ca_cert = None + # client certificate file + self.cert_file = None + # client key file + self.key_file = None + + # Proxy URL + self.proxy = None + # Safe chars for path_param + self.safe_chars_for_path_param = '' + + @property + def logger_file(self): + """ + Gets the logger_file. + """ + return self.__logger_file + + @logger_file.setter + def logger_file(self, value): + """ + Sets the logger_file. + + If the logger_file is None, then add stream handler and remove file handler. + Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + self.__logger_file = value + if self.__logger_file: + # If set logging file, + # then add file handler and remove stream handler. + self.logger_file_handler = logging.FileHandler(self.__logger_file) + self.logger_file_handler.setFormatter(self.logger_formatter) + for _, logger in iteritems(self.logger): + logger.addHandler(self.logger_file_handler) + if self.logger_stream_handler: + logger.removeHandler(self.logger_stream_handler) + else: + # If not set logging file, + # then add stream handler and remove file handler. + self.logger_stream_handler = logging.StreamHandler() + self.logger_stream_handler.setFormatter(self.logger_formatter) + for _, logger in iteritems(self.logger): + logger.addHandler(self.logger_stream_handler) + if self.logger_file_handler: + logger.removeHandler(self.logger_file_handler) + + @property + def debug(self): + """ + Gets the debug status. + """ + return self.__debug + + @debug.setter + def debug(self, value): + """ + Sets the debug status. + + :param value: The debug status, True or False. + :type: bool + """ + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + for _, logger in iteritems(self.logger): + logger.setLevel(logging.DEBUG) + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + for _, logger in iteritems(self.logger): + logger.setLevel(logging.WARNING) + # turn off httplib debug + httplib.HTTPConnection.debuglevel = 0 + + @property + def logger_format(self): + """ + Gets the logger_format. + """ + return self.__logger_format + + @logger_format.setter + def logger_format(self, value): + """ + Sets the logger_format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + self.__logger_format = value + self.logger_formatter = logging.Formatter(self.__logger_format) + + def get_api_key_with_prefix(self, identifier): + """ + Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :return: The token for api key authentication. + """ + if self.api_key.get(identifier) and self.api_key_prefix.get(identifier): + return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] + elif self.api_key.get(identifier): + return self.api_key[identifier] + + def get_basic_auth_token(self): + """ + Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + return urllib3.util.make_headers(basic_auth=self.username + ':' + self.password)\ + .get('authorization') + + def auth_settings(self): + """ + Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + return { + + 'oauth': + { + 'type': 'oauth2', + 'in': 'header', + 'key': 'Authorization', + 'value': 'Bearer ' + self.access_token + }, + + } + + def to_debug_report(self): + """ + Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: 1.2.0\n"\ + "SDK Package Version: 1.0.0".\ + format(env=sys.platform, pyversion=sys.version) diff --git a/swagger_client/models/__init__.py b/swagger_client/models/__init__.py new file mode 100644 index 0000000..68df31d --- /dev/null +++ b/swagger_client/models/__init__.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +# import models into model package +from .bad_request import BadRequest +from .credentials import Credentials +from .district import District +from .district_admin import DistrictAdmin +from .district_admin_response import DistrictAdminResponse +from .district_admins_response import DistrictAdminsResponse +from .district_object import DistrictObject +from .district_response import DistrictResponse +from .district_status import DistrictStatus +from .district_status_response import DistrictStatusResponse +from .district_status_responses import DistrictStatusResponses +from .districts_response import DistrictsResponse +from .event import Event +from .event_response import EventResponse +from .events_response import EventsResponse +from .grade_levels_response import GradeLevelsResponse +from .internal_error import InternalError +from .location import Location +from .name import Name +from .not_found import NotFound +from .principal import Principal +from .school import School +from .school_admin import SchoolAdmin +from .school_admin_object import SchoolAdminObject +from .school_admin_response import SchoolAdminResponse +from .school_admins_response import SchoolAdminsResponse +from .school_object import SchoolObject +from .school_response import SchoolResponse +from .schools_response import SchoolsResponse +from .section import Section +from .section_object import SectionObject +from .section_response import SectionResponse +from .sections_response import SectionsResponse +from .student import Student +from .student_contact import StudentContact +from .student_contact_object import StudentContactObject +from .student_contact_response import StudentContactResponse +from .student_contacts_for_student_response import StudentContactsForStudentResponse +from .student_contacts_response import StudentContactsResponse +from .student_object import StudentObject +from .student_response import StudentResponse +from .students_response import StudentsResponse +from .teacher import Teacher +from .teacher_object import TeacherObject +from .teacher_response import TeacherResponse +from .teachers_response import TeachersResponse +from .term import Term +from .districts_created import DistrictsCreated +from .districts_deleted import DistrictsDeleted +from .districts_updated import DistrictsUpdated +from .schooladmins_created import SchooladminsCreated +from .schooladmins_deleted import SchooladminsDeleted +from .schooladmins_updated import SchooladminsUpdated +from .schools_created import SchoolsCreated +from .schools_deleted import SchoolsDeleted +from .schools_updated import SchoolsUpdated +from .sections_created import SectionsCreated +from .sections_deleted import SectionsDeleted +from .sections_updated import SectionsUpdated +from .studentcontacts_created import StudentcontactsCreated +from .studentcontacts_deleted import StudentcontactsDeleted +from .studentcontacts_updated import StudentcontactsUpdated +from .students_created import StudentsCreated +from .students_deleted import StudentsDeleted +from .students_updated import StudentsUpdated +from .teachers_created import TeachersCreated +from .teachers_deleted import TeachersDeleted +from .teachers_updated import TeachersUpdated diff --git a/swagger_client/models/bad_request.py b/swagger_client/models/bad_request.py new file mode 100644 index 0000000..cf5366b --- /dev/null +++ b/swagger_client/models/bad_request.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BadRequest(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'message': 'str' + } + + attribute_map = { + 'message': 'message' + } + + def __init__(self, message=None): + """ + BadRequest - a model defined in Swagger + """ + + self._message = None + + if message is not None: + self.message = message + + @property + def message(self): + """ + Gets the message of this BadRequest. + + :return: The message of this BadRequest. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this BadRequest. + + :param message: The message of this BadRequest. + :type: str + """ + + self._message = message + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BadRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/credentials.py b/swagger_client/models/credentials.py new file mode 100644 index 0000000..0d62efb --- /dev/null +++ b/swagger_client/models/credentials.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Credentials(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'district_username': 'str' + } + + attribute_map = { + 'district_username': 'district_username' + } + + def __init__(self, district_username=None): + """ + Credentials - a model defined in Swagger + """ + + self._district_username = None + + if district_username is not None: + self.district_username = district_username + + @property + def district_username(self): + """ + Gets the district_username of this Credentials. + + :return: The district_username of this Credentials. + :rtype: str + """ + return self._district_username + + @district_username.setter + def district_username(self, district_username): + """ + Sets the district_username of this Credentials. + + :param district_username: The district_username of this Credentials. + :type: str + """ + + self._district_username = district_username + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Credentials): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/district.py b/swagger_client/models/district.py new file mode 100644 index 0000000..fdf1769 --- /dev/null +++ b/swagger_client/models/district.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class District(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'mdr_number': 'str', + 'name': 'str' + } + + attribute_map = { + 'id': 'id', + 'mdr_number': 'mdr_number', + 'name': 'name' + } + + def __init__(self, id=None, mdr_number=None, name=None): + """ + District - a model defined in Swagger + """ + + self._id = None + self._mdr_number = None + self._name = None + + if id is not None: + self.id = id + if mdr_number is not None: + self.mdr_number = mdr_number + if name is not None: + self.name = name + + @property + def id(self): + """ + Gets the id of this District. + + :return: The id of this District. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this District. + + :param id: The id of this District. + :type: str + """ + + self._id = id + + @property + def mdr_number(self): + """ + Gets the mdr_number of this District. + + :return: The mdr_number of this District. + :rtype: str + """ + return self._mdr_number + + @mdr_number.setter + def mdr_number(self, mdr_number): + """ + Sets the mdr_number of this District. + + :param mdr_number: The mdr_number of this District. + :type: str + """ + + self._mdr_number = mdr_number + + @property + def name(self): + """ + Gets the name of this District. + + :return: The name of this District. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this District. + + :param name: The name of this District. + :type: str + """ + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, District): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/district_admin.py b/swagger_client/models/district_admin.py new file mode 100644 index 0000000..4da6dfe --- /dev/null +++ b/swagger_client/models/district_admin.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DistrictAdmin(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'district': 'str', + 'email': 'str', + 'id': 'str', + 'name': 'Name', + 'title': 'str' + } + + attribute_map = { + 'district': 'district', + 'email': 'email', + 'id': 'id', + 'name': 'name', + 'title': 'title' + } + + def __init__(self, district=None, email=None, id=None, name=None, title=None): + """ + DistrictAdmin - a model defined in Swagger + """ + + self._district = None + self._email = None + self._id = None + self._name = None + self._title = None + + if district is not None: + self.district = district + if email is not None: + self.email = email + if id is not None: + self.id = id + if name is not None: + self.name = name + if title is not None: + self.title = title + + @property + def district(self): + """ + Gets the district of this DistrictAdmin. + + :return: The district of this DistrictAdmin. + :rtype: str + """ + return self._district + + @district.setter + def district(self, district): + """ + Sets the district of this DistrictAdmin. + + :param district: The district of this DistrictAdmin. + :type: str + """ + + self._district = district + + @property + def email(self): + """ + Gets the email of this DistrictAdmin. + + :return: The email of this DistrictAdmin. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this DistrictAdmin. + + :param email: The email of this DistrictAdmin. + :type: str + """ + + self._email = email + + @property + def id(self): + """ + Gets the id of this DistrictAdmin. + + :return: The id of this DistrictAdmin. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this DistrictAdmin. + + :param id: The id of this DistrictAdmin. + :type: str + """ + + self._id = id + + @property + def name(self): + """ + Gets the name of this DistrictAdmin. + + :return: The name of this DistrictAdmin. + :rtype: Name + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this DistrictAdmin. + + :param name: The name of this DistrictAdmin. + :type: Name + """ + + self._name = name + + @property + def title(self): + """ + Gets the title of this DistrictAdmin. + + :return: The title of this DistrictAdmin. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """ + Sets the title of this DistrictAdmin. + + :param title: The title of this DistrictAdmin. + :type: str + """ + + self._title = title + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictAdmin): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/district_admin_response.py b/swagger_client/models/district_admin_response.py new file mode 100644 index 0000000..bac70a8 --- /dev/null +++ b/swagger_client/models/district_admin_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DistrictAdminResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'DistrictAdmin' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + DistrictAdminResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this DistrictAdminResponse. + + :return: The data of this DistrictAdminResponse. + :rtype: DistrictAdmin + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictAdminResponse. + + :param data: The data of this DistrictAdminResponse. + :type: DistrictAdmin + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictAdminResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/district_admins_response.py b/swagger_client/models/district_admins_response.py new file mode 100644 index 0000000..e71e0b0 --- /dev/null +++ b/swagger_client/models/district_admins_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DistrictAdminsResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'list[DistrictAdmin]' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + DistrictAdminsResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this DistrictAdminsResponse. + + :return: The data of this DistrictAdminsResponse. + :rtype: list[DistrictAdmin] + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictAdminsResponse. + + :param data: The data of this DistrictAdminsResponse. + :type: list[DistrictAdmin] + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictAdminsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/district_object.py b/swagger_client/models/district_object.py new file mode 100644 index 0000000..6d34b96 --- /dev/null +++ b/swagger_client/models/district_object.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DistrictObject(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'object': 'District' + } + + attribute_map = { + 'object': 'object' + } + + def __init__(self, object=None): + """ + DistrictObject - a model defined in Swagger + """ + + self._object = None + + if object is not None: + self.object = object + + @property + def object(self): + """ + Gets the object of this DistrictObject. + + :return: The object of this DistrictObject. + :rtype: District + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this DistrictObject. + + :param object: The object of this DistrictObject. + :type: District + """ + + self._object = object + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/district_response.py b/swagger_client/models/district_response.py new file mode 100644 index 0000000..8eb3bb5 --- /dev/null +++ b/swagger_client/models/district_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DistrictResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'District' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + DistrictResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this DistrictResponse. + + :return: The data of this DistrictResponse. + :rtype: District + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictResponse. + + :param data: The data of this DistrictResponse. + :type: District + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/district_status.py b/swagger_client/models/district_status.py new file mode 100644 index 0000000..c38aa83 --- /dev/null +++ b/swagger_client/models/district_status.py @@ -0,0 +1,311 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DistrictStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'error': 'str', + 'id': 'str', + 'last_sync': 'str', + 'launch_date': 'str', + 'pause_end': 'str', + 'pause_start': 'str', + 'sis_type': 'str', + 'state': 'str' + } + + attribute_map = { + 'error': 'error', + 'id': 'id', + 'last_sync': 'last_sync', + 'launch_date': 'launch_date', + 'pause_end': 'pause_end', + 'pause_start': 'pause_start', + 'sis_type': 'sis_type', + 'state': 'state' + } + + def __init__(self, error=None, id=None, last_sync=None, launch_date=None, pause_end=None, pause_start=None, sis_type=None, state=None): + """ + DistrictStatus - a model defined in Swagger + """ + + self._error = None + self._id = None + self._last_sync = None + self._launch_date = None + self._pause_end = None + self._pause_start = None + self._sis_type = None + self._state = None + + if error is not None: + self.error = error + if id is not None: + self.id = id + if last_sync is not None: + self.last_sync = last_sync + if launch_date is not None: + self.launch_date = launch_date + if pause_end is not None: + self.pause_end = pause_end + if pause_start is not None: + self.pause_start = pause_start + if sis_type is not None: + self.sis_type = sis_type + if state is not None: + self.state = state + + @property + def error(self): + """ + Gets the error of this DistrictStatus. + + :return: The error of this DistrictStatus. + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """ + Sets the error of this DistrictStatus. + + :param error: The error of this DistrictStatus. + :type: str + """ + + self._error = error + + @property + def id(self): + """ + Gets the id of this DistrictStatus. + + :return: The id of this DistrictStatus. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this DistrictStatus. + + :param id: The id of this DistrictStatus. + :type: str + """ + + self._id = id + + @property + def last_sync(self): + """ + Gets the last_sync of this DistrictStatus. + + :return: The last_sync of this DistrictStatus. + :rtype: str + """ + return self._last_sync + + @last_sync.setter + def last_sync(self, last_sync): + """ + Sets the last_sync of this DistrictStatus. + + :param last_sync: The last_sync of this DistrictStatus. + :type: str + """ + + self._last_sync = last_sync + + @property + def launch_date(self): + """ + Gets the launch_date of this DistrictStatus. + + :return: The launch_date of this DistrictStatus. + :rtype: str + """ + return self._launch_date + + @launch_date.setter + def launch_date(self, launch_date): + """ + Sets the launch_date of this DistrictStatus. + + :param launch_date: The launch_date of this DistrictStatus. + :type: str + """ + + self._launch_date = launch_date + + @property + def pause_end(self): + """ + Gets the pause_end of this DistrictStatus. + + :return: The pause_end of this DistrictStatus. + :rtype: str + """ + return self._pause_end + + @pause_end.setter + def pause_end(self, pause_end): + """ + Sets the pause_end of this DistrictStatus. + + :param pause_end: The pause_end of this DistrictStatus. + :type: str + """ + + self._pause_end = pause_end + + @property + def pause_start(self): + """ + Gets the pause_start of this DistrictStatus. + + :return: The pause_start of this DistrictStatus. + :rtype: str + """ + return self._pause_start + + @pause_start.setter + def pause_start(self, pause_start): + """ + Sets the pause_start of this DistrictStatus. + + :param pause_start: The pause_start of this DistrictStatus. + :type: str + """ + + self._pause_start = pause_start + + @property + def sis_type(self): + """ + Gets the sis_type of this DistrictStatus. + + :return: The sis_type of this DistrictStatus. + :rtype: str + """ + return self._sis_type + + @sis_type.setter + def sis_type(self, sis_type): + """ + Sets the sis_type of this DistrictStatus. + + :param sis_type: The sis_type of this DistrictStatus. + :type: str + """ + + self._sis_type = sis_type + + @property + def state(self): + """ + Gets the state of this DistrictStatus. + + :return: The state of this DistrictStatus. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this DistrictStatus. + + :param state: The state of this DistrictStatus. + :type: str + """ + allowed_values = ["running", "pending", "error", "paused"] + if state not in allowed_values: + raise ValueError( + "Invalid value for `state` ({0}), must be one of {1}" + .format(state, allowed_values) + ) + + self._state = state + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/district_status_response.py b/swagger_client/models/district_status_response.py new file mode 100644 index 0000000..ccd0414 --- /dev/null +++ b/swagger_client/models/district_status_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DistrictStatusResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'DistrictStatus' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + DistrictStatusResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this DistrictStatusResponse. + + :return: The data of this DistrictStatusResponse. + :rtype: DistrictStatus + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictStatusResponse. + + :param data: The data of this DistrictStatusResponse. + :type: DistrictStatus + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictStatusResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/district_status_responses.py b/swagger_client/models/district_status_responses.py new file mode 100644 index 0000000..c3207b0 --- /dev/null +++ b/swagger_client/models/district_status_responses.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DistrictStatusResponses(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'list[DistrictStatusResponse]' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + DistrictStatusResponses - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this DistrictStatusResponses. + + :return: The data of this DistrictStatusResponses. + :rtype: list[DistrictStatusResponse] + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictStatusResponses. + + :param data: The data of this DistrictStatusResponses. + :type: list[DistrictStatusResponse] + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictStatusResponses): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/districts_created.py b/swagger_client/models/districts_created.py new file mode 100644 index 0000000..7dfb035 --- /dev/null +++ b/swagger_client/models/districts_created.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DistrictsCreated(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'DistrictObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + DistrictsCreated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this DistrictsCreated. + + :return: The created of this DistrictsCreated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this DistrictsCreated. + + :param created: The created of this DistrictsCreated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this DistrictsCreated. + + :return: The id of this DistrictsCreated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this DistrictsCreated. + + :param id: The id of this DistrictsCreated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this DistrictsCreated. + + :return: The type of this DistrictsCreated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this DistrictsCreated. + + :param type: The type of this DistrictsCreated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this DistrictsCreated. + + :return: The data of this DistrictsCreated. + :rtype: DistrictObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictsCreated. + + :param data: The data of this DistrictsCreated. + :type: DistrictObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/districts_deleted.py b/swagger_client/models/districts_deleted.py new file mode 100644 index 0000000..f395682 --- /dev/null +++ b/swagger_client/models/districts_deleted.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DistrictsDeleted(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'DistrictObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + DistrictsDeleted - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this DistrictsDeleted. + + :return: The created of this DistrictsDeleted. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this DistrictsDeleted. + + :param created: The created of this DistrictsDeleted. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this DistrictsDeleted. + + :return: The id of this DistrictsDeleted. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this DistrictsDeleted. + + :param id: The id of this DistrictsDeleted. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this DistrictsDeleted. + + :return: The type of this DistrictsDeleted. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this DistrictsDeleted. + + :param type: The type of this DistrictsDeleted. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this DistrictsDeleted. + + :return: The data of this DistrictsDeleted. + :rtype: DistrictObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictsDeleted. + + :param data: The data of this DistrictsDeleted. + :type: DistrictObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/districts_response.py b/swagger_client/models/districts_response.py new file mode 100644 index 0000000..c2e3e43 --- /dev/null +++ b/swagger_client/models/districts_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DistrictsResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'list[DistrictResponse]' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + DistrictsResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this DistrictsResponse. + + :return: The data of this DistrictsResponse. + :rtype: list[DistrictResponse] + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictsResponse. + + :param data: The data of this DistrictsResponse. + :type: list[DistrictResponse] + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/districts_updated.py b/swagger_client/models/districts_updated.py new file mode 100644 index 0000000..f118560 --- /dev/null +++ b/swagger_client/models/districts_updated.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DistrictsUpdated(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'DistrictObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + DistrictsUpdated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this DistrictsUpdated. + + :return: The created of this DistrictsUpdated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this DistrictsUpdated. + + :param created: The created of this DistrictsUpdated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this DistrictsUpdated. + + :return: The id of this DistrictsUpdated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this DistrictsUpdated. + + :param id: The id of this DistrictsUpdated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this DistrictsUpdated. + + :return: The type of this DistrictsUpdated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this DistrictsUpdated. + + :param type: The type of this DistrictsUpdated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this DistrictsUpdated. + + :return: The data of this DistrictsUpdated. + :rtype: DistrictObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictsUpdated. + + :param data: The data of this DistrictsUpdated. + :type: DistrictObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/event.py b/swagger_client/models/event.py new file mode 100644 index 0000000..5479e4c --- /dev/null +++ b/swagger_client/models/event.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Event(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type' + } + + def __init__(self, created=None, id=None, type=None): + """ + Event - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + + @property + def created(self): + """ + Gets the created of this Event. + + :return: The created of this Event. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this Event. + + :param created: The created of this Event. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this Event. + + :return: The id of this Event. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this Event. + + :param id: The id of this Event. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this Event. + + :return: The type of this Event. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this Event. + + :param type: The type of this Event. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Event): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/event_response.py b/swagger_client/models/event_response.py new file mode 100644 index 0000000..a92b279 --- /dev/null +++ b/swagger_client/models/event_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EventResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'Event' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + EventResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this EventResponse. + + :return: The data of this EventResponse. + :rtype: Event + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this EventResponse. + + :param data: The data of this EventResponse. + :type: Event + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EventResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/events_response.py b/swagger_client/models/events_response.py new file mode 100644 index 0000000..62c2f9a --- /dev/null +++ b/swagger_client/models/events_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EventsResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'list[EventResponse]' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + EventsResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this EventsResponse. + + :return: The data of this EventsResponse. + :rtype: list[EventResponse] + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this EventsResponse. + + :param data: The data of this EventsResponse. + :type: list[EventResponse] + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EventsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/grade_levels_response.py b/swagger_client/models/grade_levels_response.py new file mode 100644 index 0000000..32fce55 --- /dev/null +++ b/swagger_client/models/grade_levels_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class GradeLevelsResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'list[str]' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + GradeLevelsResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this GradeLevelsResponse. + + :return: The data of this GradeLevelsResponse. + :rtype: list[str] + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this GradeLevelsResponse. + + :param data: The data of this GradeLevelsResponse. + :type: list[str] + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, GradeLevelsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/internal_error.py b/swagger_client/models/internal_error.py new file mode 100644 index 0000000..0f323c7 --- /dev/null +++ b/swagger_client/models/internal_error.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InternalError(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'message': 'str' + } + + attribute_map = { + 'message': 'message' + } + + def __init__(self, message=None): + """ + InternalError - a model defined in Swagger + """ + + self._message = None + + if message is not None: + self.message = message + + @property + def message(self): + """ + Gets the message of this InternalError. + + :return: The message of this InternalError. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this InternalError. + + :param message: The message of this InternalError. + :type: str + """ + + self._message = message + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InternalError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/location.py b/swagger_client/models/location.py new file mode 100644 index 0000000..8c96bd1 --- /dev/null +++ b/swagger_client/models/location.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Location(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'address': 'str', + 'city': 'str', + 'lat': 'str', + 'lon': 'str', + 'state': 'str', + 'zip': 'str' + } + + attribute_map = { + 'address': 'address', + 'city': 'city', + 'lat': 'lat', + 'lon': 'lon', + 'state': 'state', + 'zip': 'zip' + } + + def __init__(self, address=None, city=None, lat=None, lon=None, state=None, zip=None): + """ + Location - a model defined in Swagger + """ + + self._address = None + self._city = None + self._lat = None + self._lon = None + self._state = None + self._zip = None + + if address is not None: + self.address = address + if city is not None: + self.city = city + if lat is not None: + self.lat = lat + if lon is not None: + self.lon = lon + if state is not None: + self.state = state + if zip is not None: + self.zip = zip + + @property + def address(self): + """ + Gets the address of this Location. + + :return: The address of this Location. + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """ + Sets the address of this Location. + + :param address: The address of this Location. + :type: str + """ + + self._address = address + + @property + def city(self): + """ + Gets the city of this Location. + + :return: The city of this Location. + :rtype: str + """ + return self._city + + @city.setter + def city(self, city): + """ + Sets the city of this Location. + + :param city: The city of this Location. + :type: str + """ + + self._city = city + + @property + def lat(self): + """ + Gets the lat of this Location. + + :return: The lat of this Location. + :rtype: str + """ + return self._lat + + @lat.setter + def lat(self, lat): + """ + Sets the lat of this Location. + + :param lat: The lat of this Location. + :type: str + """ + + self._lat = lat + + @property + def lon(self): + """ + Gets the lon of this Location. + + :return: The lon of this Location. + :rtype: str + """ + return self._lon + + @lon.setter + def lon(self, lon): + """ + Sets the lon of this Location. + + :param lon: The lon of this Location. + :type: str + """ + + self._lon = lon + + @property + def state(self): + """ + Gets the state of this Location. + + :return: The state of this Location. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this Location. + + :param state: The state of this Location. + :type: str + """ + + self._state = state + + @property + def zip(self): + """ + Gets the zip of this Location. + + :return: The zip of this Location. + :rtype: str + """ + return self._zip + + @zip.setter + def zip(self, zip): + """ + Sets the zip of this Location. + + :param zip: The zip of this Location. + :type: str + """ + + self._zip = zip + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Location): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/name.py b/swagger_client/models/name.py new file mode 100644 index 0000000..941e24b --- /dev/null +++ b/swagger_client/models/name.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Name(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'first': 'str', + 'last': 'str', + 'middle': 'str' + } + + attribute_map = { + 'first': 'first', + 'last': 'last', + 'middle': 'middle' + } + + def __init__(self, first=None, last=None, middle=None): + """ + Name - a model defined in Swagger + """ + + self._first = None + self._last = None + self._middle = None + + if first is not None: + self.first = first + if last is not None: + self.last = last + if middle is not None: + self.middle = middle + + @property + def first(self): + """ + Gets the first of this Name. + + :return: The first of this Name. + :rtype: str + """ + return self._first + + @first.setter + def first(self, first): + """ + Sets the first of this Name. + + :param first: The first of this Name. + :type: str + """ + + self._first = first + + @property + def last(self): + """ + Gets the last of this Name. + + :return: The last of this Name. + :rtype: str + """ + return self._last + + @last.setter + def last(self, last): + """ + Sets the last of this Name. + + :param last: The last of this Name. + :type: str + """ + + self._last = last + + @property + def middle(self): + """ + Gets the middle of this Name. + + :return: The middle of this Name. + :rtype: str + """ + return self._middle + + @middle.setter + def middle(self, middle): + """ + Sets the middle of this Name. + + :param middle: The middle of this Name. + :type: str + """ + + self._middle = middle + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Name): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/not_found.py b/swagger_client/models/not_found.py new file mode 100644 index 0000000..9955de7 --- /dev/null +++ b/swagger_client/models/not_found.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NotFound(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'message': 'str' + } + + attribute_map = { + 'message': 'message' + } + + def __init__(self, message=None): + """ + NotFound - a model defined in Swagger + """ + + self._message = None + + if message is not None: + self.message = message + + @property + def message(self): + """ + Gets the message of this NotFound. + + :return: The message of this NotFound. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this NotFound. + + :param message: The message of this NotFound. + :type: str + """ + + self._message = message + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NotFound): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/principal.py b/swagger_client/models/principal.py new file mode 100644 index 0000000..6b6f5c8 --- /dev/null +++ b/swagger_client/models/principal.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Principal(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'email': 'str', + 'name': 'str' + } + + attribute_map = { + 'email': 'email', + 'name': 'name' + } + + def __init__(self, email=None, name=None): + """ + Principal - a model defined in Swagger + """ + + self._email = None + self._name = None + + if email is not None: + self.email = email + if name is not None: + self.name = name + + @property + def email(self): + """ + Gets the email of this Principal. + + :return: The email of this Principal. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this Principal. + + :param email: The email of this Principal. + :type: str + """ + + self._email = email + + @property + def name(self): + """ + Gets the name of this Principal. + + :return: The name of this Principal. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this Principal. + + :param name: The name of this Principal. + :type: str + """ + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Principal): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/school.py b/swagger_client/models/school.py new file mode 100644 index 0000000..c992e3f --- /dev/null +++ b/swagger_client/models/school.py @@ -0,0 +1,499 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class School(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'district': 'str', + 'high_grade': 'str', + 'id': 'str', + 'last_modified': 'str', + 'location': 'Location', + 'low_grade': 'str', + 'mdr_number': 'str', + 'name': 'str', + 'nces_id': 'str', + 'phone': 'str', + 'principal': 'Principal', + 'school_number': 'str', + 'sis_id': 'str', + 'state_id': 'str' + } + + attribute_map = { + 'created': 'created', + 'district': 'district', + 'high_grade': 'high_grade', + 'id': 'id', + 'last_modified': 'last_modified', + 'location': 'location', + 'low_grade': 'low_grade', + 'mdr_number': 'mdr_number', + 'name': 'name', + 'nces_id': 'nces_id', + 'phone': 'phone', + 'principal': 'principal', + 'school_number': 'school_number', + 'sis_id': 'sis_id', + 'state_id': 'state_id' + } + + def __init__(self, created=None, district=None, high_grade=None, id=None, last_modified=None, location=None, low_grade=None, mdr_number=None, name=None, nces_id=None, phone=None, principal=None, school_number=None, sis_id=None, state_id=None): + """ + School - a model defined in Swagger + """ + + self._created = None + self._district = None + self._high_grade = None + self._id = None + self._last_modified = None + self._location = None + self._low_grade = None + self._mdr_number = None + self._name = None + self._nces_id = None + self._phone = None + self._principal = None + self._school_number = None + self._sis_id = None + self._state_id = None + + if created is not None: + self.created = created + if district is not None: + self.district = district + if high_grade is not None: + self.high_grade = high_grade + if id is not None: + self.id = id + if last_modified is not None: + self.last_modified = last_modified + if location is not None: + self.location = location + if low_grade is not None: + self.low_grade = low_grade + if mdr_number is not None: + self.mdr_number = mdr_number + if name is not None: + self.name = name + if nces_id is not None: + self.nces_id = nces_id + if phone is not None: + self.phone = phone + if principal is not None: + self.principal = principal + if school_number is not None: + self.school_number = school_number + if sis_id is not None: + self.sis_id = sis_id + if state_id is not None: + self.state_id = state_id + + @property + def created(self): + """ + Gets the created of this School. + + :return: The created of this School. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this School. + + :param created: The created of this School. + :type: str + """ + + self._created = created + + @property + def district(self): + """ + Gets the district of this School. + + :return: The district of this School. + :rtype: str + """ + return self._district + + @district.setter + def district(self, district): + """ + Sets the district of this School. + + :param district: The district of this School. + :type: str + """ + + self._district = district + + @property + def high_grade(self): + """ + Gets the high_grade of this School. + + :return: The high_grade of this School. + :rtype: str + """ + return self._high_grade + + @high_grade.setter + def high_grade(self, high_grade): + """ + Sets the high_grade of this School. + + :param high_grade: The high_grade of this School. + :type: str + """ + allowed_values = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "PreKindergarten", "Kindergarten", "PostGraduate", "Other"] + if high_grade not in allowed_values: + raise ValueError( + "Invalid value for `high_grade` ({0}), must be one of {1}" + .format(high_grade, allowed_values) + ) + + self._high_grade = high_grade + + @property + def id(self): + """ + Gets the id of this School. + + :return: The id of this School. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this School. + + :param id: The id of this School. + :type: str + """ + + self._id = id + + @property + def last_modified(self): + """ + Gets the last_modified of this School. + + :return: The last_modified of this School. + :rtype: str + """ + return self._last_modified + + @last_modified.setter + def last_modified(self, last_modified): + """ + Sets the last_modified of this School. + + :param last_modified: The last_modified of this School. + :type: str + """ + + self._last_modified = last_modified + + @property + def location(self): + """ + Gets the location of this School. + + :return: The location of this School. + :rtype: Location + """ + return self._location + + @location.setter + def location(self, location): + """ + Sets the location of this School. + + :param location: The location of this School. + :type: Location + """ + + self._location = location + + @property + def low_grade(self): + """ + Gets the low_grade of this School. + + :return: The low_grade of this School. + :rtype: str + """ + return self._low_grade + + @low_grade.setter + def low_grade(self, low_grade): + """ + Sets the low_grade of this School. + + :param low_grade: The low_grade of this School. + :type: str + """ + allowed_values = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "PreKindergarten", "Kindergarten", "PostGraduate", "Other"] + if low_grade not in allowed_values: + raise ValueError( + "Invalid value for `low_grade` ({0}), must be one of {1}" + .format(low_grade, allowed_values) + ) + + self._low_grade = low_grade + + @property + def mdr_number(self): + """ + Gets the mdr_number of this School. + + :return: The mdr_number of this School. + :rtype: str + """ + return self._mdr_number + + @mdr_number.setter + def mdr_number(self, mdr_number): + """ + Sets the mdr_number of this School. + + :param mdr_number: The mdr_number of this School. + :type: str + """ + + self._mdr_number = mdr_number + + @property + def name(self): + """ + Gets the name of this School. + + :return: The name of this School. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this School. + + :param name: The name of this School. + :type: str + """ + + self._name = name + + @property + def nces_id(self): + """ + Gets the nces_id of this School. + + :return: The nces_id of this School. + :rtype: str + """ + return self._nces_id + + @nces_id.setter + def nces_id(self, nces_id): + """ + Sets the nces_id of this School. + + :param nces_id: The nces_id of this School. + :type: str + """ + + self._nces_id = nces_id + + @property + def phone(self): + """ + Gets the phone of this School. + + :return: The phone of this School. + :rtype: str + """ + return self._phone + + @phone.setter + def phone(self, phone): + """ + Sets the phone of this School. + + :param phone: The phone of this School. + :type: str + """ + + self._phone = phone + + @property + def principal(self): + """ + Gets the principal of this School. + + :return: The principal of this School. + :rtype: Principal + """ + return self._principal + + @principal.setter + def principal(self, principal): + """ + Sets the principal of this School. + + :param principal: The principal of this School. + :type: Principal + """ + + self._principal = principal + + @property + def school_number(self): + """ + Gets the school_number of this School. + + :return: The school_number of this School. + :rtype: str + """ + return self._school_number + + @school_number.setter + def school_number(self, school_number): + """ + Sets the school_number of this School. + + :param school_number: The school_number of this School. + :type: str + """ + + self._school_number = school_number + + @property + def sis_id(self): + """ + Gets the sis_id of this School. + + :return: The sis_id of this School. + :rtype: str + """ + return self._sis_id + + @sis_id.setter + def sis_id(self, sis_id): + """ + Sets the sis_id of this School. + + :param sis_id: The sis_id of this School. + :type: str + """ + + self._sis_id = sis_id + + @property + def state_id(self): + """ + Gets the state_id of this School. + + :return: The state_id of this School. + :rtype: str + """ + return self._state_id + + @state_id.setter + def state_id(self, state_id): + """ + Sets the state_id of this School. + + :param state_id: The state_id of this School. + :type: str + """ + + self._state_id = state_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, School): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/school_admin.py b/swagger_client/models/school_admin.py new file mode 100644 index 0000000..d75310d --- /dev/null +++ b/swagger_client/models/school_admin.py @@ -0,0 +1,305 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SchoolAdmin(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'credentials': 'Credentials', + 'district': 'str', + 'email': 'str', + 'id': 'str', + 'name': 'Name', + 'schools': 'list[str]', + 'staff_id': 'str', + 'title': 'str' + } + + attribute_map = { + 'credentials': 'credentials', + 'district': 'district', + 'email': 'email', + 'id': 'id', + 'name': 'name', + 'schools': 'schools', + 'staff_id': 'staff_id', + 'title': 'title' + } + + def __init__(self, credentials=None, district=None, email=None, id=None, name=None, schools=None, staff_id=None, title=None): + """ + SchoolAdmin - a model defined in Swagger + """ + + self._credentials = None + self._district = None + self._email = None + self._id = None + self._name = None + self._schools = None + self._staff_id = None + self._title = None + + if credentials is not None: + self.credentials = credentials + if district is not None: + self.district = district + if email is not None: + self.email = email + if id is not None: + self.id = id + if name is not None: + self.name = name + if schools is not None: + self.schools = schools + if staff_id is not None: + self.staff_id = staff_id + if title is not None: + self.title = title + + @property + def credentials(self): + """ + Gets the credentials of this SchoolAdmin. + + :return: The credentials of this SchoolAdmin. + :rtype: Credentials + """ + return self._credentials + + @credentials.setter + def credentials(self, credentials): + """ + Sets the credentials of this SchoolAdmin. + + :param credentials: The credentials of this SchoolAdmin. + :type: Credentials + """ + + self._credentials = credentials + + @property + def district(self): + """ + Gets the district of this SchoolAdmin. + + :return: The district of this SchoolAdmin. + :rtype: str + """ + return self._district + + @district.setter + def district(self, district): + """ + Sets the district of this SchoolAdmin. + + :param district: The district of this SchoolAdmin. + :type: str + """ + + self._district = district + + @property + def email(self): + """ + Gets the email of this SchoolAdmin. + + :return: The email of this SchoolAdmin. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this SchoolAdmin. + + :param email: The email of this SchoolAdmin. + :type: str + """ + + self._email = email + + @property + def id(self): + """ + Gets the id of this SchoolAdmin. + + :return: The id of this SchoolAdmin. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SchoolAdmin. + + :param id: The id of this SchoolAdmin. + :type: str + """ + + self._id = id + + @property + def name(self): + """ + Gets the name of this SchoolAdmin. + + :return: The name of this SchoolAdmin. + :rtype: Name + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this SchoolAdmin. + + :param name: The name of this SchoolAdmin. + :type: Name + """ + + self._name = name + + @property + def schools(self): + """ + Gets the schools of this SchoolAdmin. + + :return: The schools of this SchoolAdmin. + :rtype: list[str] + """ + return self._schools + + @schools.setter + def schools(self, schools): + """ + Sets the schools of this SchoolAdmin. + + :param schools: The schools of this SchoolAdmin. + :type: list[str] + """ + + self._schools = schools + + @property + def staff_id(self): + """ + Gets the staff_id of this SchoolAdmin. + + :return: The staff_id of this SchoolAdmin. + :rtype: str + """ + return self._staff_id + + @staff_id.setter + def staff_id(self, staff_id): + """ + Sets the staff_id of this SchoolAdmin. + + :param staff_id: The staff_id of this SchoolAdmin. + :type: str + """ + + self._staff_id = staff_id + + @property + def title(self): + """ + Gets the title of this SchoolAdmin. + + :return: The title of this SchoolAdmin. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """ + Sets the title of this SchoolAdmin. + + :param title: The title of this SchoolAdmin. + :type: str + """ + + self._title = title + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchoolAdmin): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/school_admin_object.py b/swagger_client/models/school_admin_object.py new file mode 100644 index 0000000..721d7d8 --- /dev/null +++ b/swagger_client/models/school_admin_object.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SchoolAdminObject(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'object': 'SchoolAdmin' + } + + attribute_map = { + 'object': 'object' + } + + def __init__(self, object=None): + """ + SchoolAdminObject - a model defined in Swagger + """ + + self._object = None + + if object is not None: + self.object = object + + @property + def object(self): + """ + Gets the object of this SchoolAdminObject. + + :return: The object of this SchoolAdminObject. + :rtype: SchoolAdmin + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this SchoolAdminObject. + + :param object: The object of this SchoolAdminObject. + :type: SchoolAdmin + """ + + self._object = object + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchoolAdminObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/school_admin_response.py b/swagger_client/models/school_admin_response.py new file mode 100644 index 0000000..2941d50 --- /dev/null +++ b/swagger_client/models/school_admin_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SchoolAdminResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'SchoolAdmin' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + SchoolAdminResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this SchoolAdminResponse. + + :return: The data of this SchoolAdminResponse. + :rtype: SchoolAdmin + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SchoolAdminResponse. + + :param data: The data of this SchoolAdminResponse. + :type: SchoolAdmin + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchoolAdminResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/school_admins_response.py b/swagger_client/models/school_admins_response.py new file mode 100644 index 0000000..a2fc434 --- /dev/null +++ b/swagger_client/models/school_admins_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SchoolAdminsResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'list[SchoolAdminResponse]' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + SchoolAdminsResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this SchoolAdminsResponse. + + :return: The data of this SchoolAdminsResponse. + :rtype: list[SchoolAdminResponse] + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SchoolAdminsResponse. + + :param data: The data of this SchoolAdminsResponse. + :type: list[SchoolAdminResponse] + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchoolAdminsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/school_object.py b/swagger_client/models/school_object.py new file mode 100644 index 0000000..737f711 --- /dev/null +++ b/swagger_client/models/school_object.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SchoolObject(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'object': 'School' + } + + attribute_map = { + 'object': 'object' + } + + def __init__(self, object=None): + """ + SchoolObject - a model defined in Swagger + """ + + self._object = None + + if object is not None: + self.object = object + + @property + def object(self): + """ + Gets the object of this SchoolObject. + + :return: The object of this SchoolObject. + :rtype: School + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this SchoolObject. + + :param object: The object of this SchoolObject. + :type: School + """ + + self._object = object + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchoolObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/school_response.py b/swagger_client/models/school_response.py new file mode 100644 index 0000000..f0aa0a2 --- /dev/null +++ b/swagger_client/models/school_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SchoolResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'School' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + SchoolResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this SchoolResponse. + + :return: The data of this SchoolResponse. + :rtype: School + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SchoolResponse. + + :param data: The data of this SchoolResponse. + :type: School + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchoolResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/schooladmins_created.py b/swagger_client/models/schooladmins_created.py new file mode 100644 index 0000000..8be53e9 --- /dev/null +++ b/swagger_client/models/schooladmins_created.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SchooladminsCreated(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SchoolAdminObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SchooladminsCreated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SchooladminsCreated. + + :return: The created of this SchooladminsCreated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SchooladminsCreated. + + :param created: The created of this SchooladminsCreated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SchooladminsCreated. + + :return: The id of this SchooladminsCreated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SchooladminsCreated. + + :param id: The id of this SchooladminsCreated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SchooladminsCreated. + + :return: The type of this SchooladminsCreated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SchooladminsCreated. + + :param type: The type of this SchooladminsCreated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SchooladminsCreated. + + :return: The data of this SchooladminsCreated. + :rtype: SchoolAdminObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SchooladminsCreated. + + :param data: The data of this SchooladminsCreated. + :type: SchoolAdminObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchooladminsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/schooladmins_deleted.py b/swagger_client/models/schooladmins_deleted.py new file mode 100644 index 0000000..8207378 --- /dev/null +++ b/swagger_client/models/schooladmins_deleted.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SchooladminsDeleted(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SchoolAdminObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SchooladminsDeleted - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SchooladminsDeleted. + + :return: The created of this SchooladminsDeleted. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SchooladminsDeleted. + + :param created: The created of this SchooladminsDeleted. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SchooladminsDeleted. + + :return: The id of this SchooladminsDeleted. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SchooladminsDeleted. + + :param id: The id of this SchooladminsDeleted. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SchooladminsDeleted. + + :return: The type of this SchooladminsDeleted. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SchooladminsDeleted. + + :param type: The type of this SchooladminsDeleted. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SchooladminsDeleted. + + :return: The data of this SchooladminsDeleted. + :rtype: SchoolAdminObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SchooladminsDeleted. + + :param data: The data of this SchooladminsDeleted. + :type: SchoolAdminObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchooladminsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/schooladmins_updated.py b/swagger_client/models/schooladmins_updated.py new file mode 100644 index 0000000..f48f3ed --- /dev/null +++ b/swagger_client/models/schooladmins_updated.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SchooladminsUpdated(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SchoolAdminObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SchooladminsUpdated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SchooladminsUpdated. + + :return: The created of this SchooladminsUpdated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SchooladminsUpdated. + + :param created: The created of this SchooladminsUpdated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SchooladminsUpdated. + + :return: The id of this SchooladminsUpdated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SchooladminsUpdated. + + :param id: The id of this SchooladminsUpdated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SchooladminsUpdated. + + :return: The type of this SchooladminsUpdated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SchooladminsUpdated. + + :param type: The type of this SchooladminsUpdated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SchooladminsUpdated. + + :return: The data of this SchooladminsUpdated. + :rtype: SchoolAdminObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SchooladminsUpdated. + + :param data: The data of this SchooladminsUpdated. + :type: SchoolAdminObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchooladminsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/schools_created.py b/swagger_client/models/schools_created.py new file mode 100644 index 0000000..06d14f3 --- /dev/null +++ b/swagger_client/models/schools_created.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SchoolsCreated(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SchoolObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SchoolsCreated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SchoolsCreated. + + :return: The created of this SchoolsCreated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SchoolsCreated. + + :param created: The created of this SchoolsCreated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SchoolsCreated. + + :return: The id of this SchoolsCreated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SchoolsCreated. + + :param id: The id of this SchoolsCreated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SchoolsCreated. + + :return: The type of this SchoolsCreated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SchoolsCreated. + + :param type: The type of this SchoolsCreated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SchoolsCreated. + + :return: The data of this SchoolsCreated. + :rtype: SchoolObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SchoolsCreated. + + :param data: The data of this SchoolsCreated. + :type: SchoolObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchoolsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/schools_deleted.py b/swagger_client/models/schools_deleted.py new file mode 100644 index 0000000..e64f820 --- /dev/null +++ b/swagger_client/models/schools_deleted.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SchoolsDeleted(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SchoolObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SchoolsDeleted - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SchoolsDeleted. + + :return: The created of this SchoolsDeleted. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SchoolsDeleted. + + :param created: The created of this SchoolsDeleted. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SchoolsDeleted. + + :return: The id of this SchoolsDeleted. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SchoolsDeleted. + + :param id: The id of this SchoolsDeleted. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SchoolsDeleted. + + :return: The type of this SchoolsDeleted. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SchoolsDeleted. + + :param type: The type of this SchoolsDeleted. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SchoolsDeleted. + + :return: The data of this SchoolsDeleted. + :rtype: SchoolObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SchoolsDeleted. + + :param data: The data of this SchoolsDeleted. + :type: SchoolObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchoolsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/schools_response.py b/swagger_client/models/schools_response.py new file mode 100644 index 0000000..d2a553f --- /dev/null +++ b/swagger_client/models/schools_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SchoolsResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'list[SchoolResponse]' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + SchoolsResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this SchoolsResponse. + + :return: The data of this SchoolsResponse. + :rtype: list[SchoolResponse] + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SchoolsResponse. + + :param data: The data of this SchoolsResponse. + :type: list[SchoolResponse] + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchoolsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/schools_updated.py b/swagger_client/models/schools_updated.py new file mode 100644 index 0000000..d30c424 --- /dev/null +++ b/swagger_client/models/schools_updated.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SchoolsUpdated(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SchoolObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SchoolsUpdated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SchoolsUpdated. + + :return: The created of this SchoolsUpdated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SchoolsUpdated. + + :param created: The created of this SchoolsUpdated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SchoolsUpdated. + + :return: The id of this SchoolsUpdated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SchoolsUpdated. + + :param id: The id of this SchoolsUpdated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SchoolsUpdated. + + :return: The type of this SchoolsUpdated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SchoolsUpdated. + + :param type: The type of this SchoolsUpdated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SchoolsUpdated. + + :return: The data of this SchoolsUpdated. + :rtype: SchoolObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SchoolsUpdated. + + :param data: The data of this SchoolsUpdated. + :type: SchoolObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchoolsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/section.py b/swagger_client/models/section.py new file mode 100644 index 0000000..0658e8b --- /dev/null +++ b/swagger_client/models/section.py @@ -0,0 +1,577 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Section(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'course_description': 'str', + 'course_name': 'str', + 'course_number': 'str', + 'created': 'str', + 'district': 'str', + 'grade': 'str', + 'id': 'str', + 'last_modified': 'str', + 'name': 'str', + 'period': 'str', + 'school': 'str', + 'section_number': 'str', + 'sis_id': 'str', + 'students': 'list[str]', + 'subject': 'str', + 'teacher': 'str', + 'teachers': 'list[str]', + 'term': 'Term' + } + + attribute_map = { + 'course_description': 'course_description', + 'course_name': 'course_name', + 'course_number': 'course_number', + 'created': 'created', + 'district': 'district', + 'grade': 'grade', + 'id': 'id', + 'last_modified': 'last_modified', + 'name': 'name', + 'period': 'period', + 'school': 'school', + 'section_number': 'section_number', + 'sis_id': 'sis_id', + 'students': 'students', + 'subject': 'subject', + 'teacher': 'teacher', + 'teachers': 'teachers', + 'term': 'term' + } + + def __init__(self, course_description=None, course_name=None, course_number=None, created=None, district=None, grade=None, id=None, last_modified=None, name=None, period=None, school=None, section_number=None, sis_id=None, students=None, subject=None, teacher=None, teachers=None, term=None): + """ + Section - a model defined in Swagger + """ + + self._course_description = None + self._course_name = None + self._course_number = None + self._created = None + self._district = None + self._grade = None + self._id = None + self._last_modified = None + self._name = None + self._period = None + self._school = None + self._section_number = None + self._sis_id = None + self._students = None + self._subject = None + self._teacher = None + self._teachers = None + self._term = None + + if course_description is not None: + self.course_description = course_description + if course_name is not None: + self.course_name = course_name + if course_number is not None: + self.course_number = course_number + if created is not None: + self.created = created + if district is not None: + self.district = district + if grade is not None: + self.grade = grade + if id is not None: + self.id = id + if last_modified is not None: + self.last_modified = last_modified + if name is not None: + self.name = name + if period is not None: + self.period = period + if school is not None: + self.school = school + if section_number is not None: + self.section_number = section_number + if sis_id is not None: + self.sis_id = sis_id + if students is not None: + self.students = students + if subject is not None: + self.subject = subject + if teacher is not None: + self.teacher = teacher + if teachers is not None: + self.teachers = teachers + if term is not None: + self.term = term + + @property + def course_description(self): + """ + Gets the course_description of this Section. + + :return: The course_description of this Section. + :rtype: str + """ + return self._course_description + + @course_description.setter + def course_description(self, course_description): + """ + Sets the course_description of this Section. + + :param course_description: The course_description of this Section. + :type: str + """ + + self._course_description = course_description + + @property + def course_name(self): + """ + Gets the course_name of this Section. + + :return: The course_name of this Section. + :rtype: str + """ + return self._course_name + + @course_name.setter + def course_name(self, course_name): + """ + Sets the course_name of this Section. + + :param course_name: The course_name of this Section. + :type: str + """ + + self._course_name = course_name + + @property + def course_number(self): + """ + Gets the course_number of this Section. + + :return: The course_number of this Section. + :rtype: str + """ + return self._course_number + + @course_number.setter + def course_number(self, course_number): + """ + Sets the course_number of this Section. + + :param course_number: The course_number of this Section. + :type: str + """ + + self._course_number = course_number + + @property + def created(self): + """ + Gets the created of this Section. + + :return: The created of this Section. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this Section. + + :param created: The created of this Section. + :type: str + """ + + self._created = created + + @property + def district(self): + """ + Gets the district of this Section. + + :return: The district of this Section. + :rtype: str + """ + return self._district + + @district.setter + def district(self, district): + """ + Sets the district of this Section. + + :param district: The district of this Section. + :type: str + """ + + self._district = district + + @property + def grade(self): + """ + Gets the grade of this Section. + + :return: The grade of this Section. + :rtype: str + """ + return self._grade + + @grade.setter + def grade(self, grade): + """ + Sets the grade of this Section. + + :param grade: The grade of this Section. + :type: str + """ + allowed_values = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "PreKindergarten", "Kindergarten", "PostGraduate", "Other"] + if grade not in allowed_values: + raise ValueError( + "Invalid value for `grade` ({0}), must be one of {1}" + .format(grade, allowed_values) + ) + + self._grade = grade + + @property + def id(self): + """ + Gets the id of this Section. + + :return: The id of this Section. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this Section. + + :param id: The id of this Section. + :type: str + """ + + self._id = id + + @property + def last_modified(self): + """ + Gets the last_modified of this Section. + + :return: The last_modified of this Section. + :rtype: str + """ + return self._last_modified + + @last_modified.setter + def last_modified(self, last_modified): + """ + Sets the last_modified of this Section. + + :param last_modified: The last_modified of this Section. + :type: str + """ + + self._last_modified = last_modified + + @property + def name(self): + """ + Gets the name of this Section. + + :return: The name of this Section. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this Section. + + :param name: The name of this Section. + :type: str + """ + + self._name = name + + @property + def period(self): + """ + Gets the period of this Section. + + :return: The period of this Section. + :rtype: str + """ + return self._period + + @period.setter + def period(self, period): + """ + Sets the period of this Section. + + :param period: The period of this Section. + :type: str + """ + + self._period = period + + @property + def school(self): + """ + Gets the school of this Section. + + :return: The school of this Section. + :rtype: str + """ + return self._school + + @school.setter + def school(self, school): + """ + Sets the school of this Section. + + :param school: The school of this Section. + :type: str + """ + + self._school = school + + @property + def section_number(self): + """ + Gets the section_number of this Section. + + :return: The section_number of this Section. + :rtype: str + """ + return self._section_number + + @section_number.setter + def section_number(self, section_number): + """ + Sets the section_number of this Section. + + :param section_number: The section_number of this Section. + :type: str + """ + + self._section_number = section_number + + @property + def sis_id(self): + """ + Gets the sis_id of this Section. + + :return: The sis_id of this Section. + :rtype: str + """ + return self._sis_id + + @sis_id.setter + def sis_id(self, sis_id): + """ + Sets the sis_id of this Section. + + :param sis_id: The sis_id of this Section. + :type: str + """ + + self._sis_id = sis_id + + @property + def students(self): + """ + Gets the students of this Section. + + :return: The students of this Section. + :rtype: list[str] + """ + return self._students + + @students.setter + def students(self, students): + """ + Sets the students of this Section. + + :param students: The students of this Section. + :type: list[str] + """ + + self._students = students + + @property + def subject(self): + """ + Gets the subject of this Section. + + :return: The subject of this Section. + :rtype: str + """ + return self._subject + + @subject.setter + def subject(self, subject): + """ + Sets the subject of this Section. + + :param subject: The subject of this Section. + :type: str + """ + allowed_values = ["english/language arts", "math", "science", "social studies", "language", "homeroom/advisory", "interventions/online learning", "technology and engineering", "PE and health", "arts and music", "other"] + if subject not in allowed_values: + raise ValueError( + "Invalid value for `subject` ({0}), must be one of {1}" + .format(subject, allowed_values) + ) + + self._subject = subject + + @property + def teacher(self): + """ + Gets the teacher of this Section. + + :return: The teacher of this Section. + :rtype: str + """ + return self._teacher + + @teacher.setter + def teacher(self, teacher): + """ + Sets the teacher of this Section. + + :param teacher: The teacher of this Section. + :type: str + """ + + self._teacher = teacher + + @property + def teachers(self): + """ + Gets the teachers of this Section. + + :return: The teachers of this Section. + :rtype: list[str] + """ + return self._teachers + + @teachers.setter + def teachers(self, teachers): + """ + Sets the teachers of this Section. + + :param teachers: The teachers of this Section. + :type: list[str] + """ + + self._teachers = teachers + + @property + def term(self): + """ + Gets the term of this Section. + + :return: The term of this Section. + :rtype: Term + """ + return self._term + + @term.setter + def term(self, term): + """ + Sets the term of this Section. + + :param term: The term of this Section. + :type: Term + """ + + self._term = term + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Section): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/section_object.py b/swagger_client/models/section_object.py new file mode 100644 index 0000000..d322e7b --- /dev/null +++ b/swagger_client/models/section_object.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SectionObject(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'object': 'Section' + } + + attribute_map = { + 'object': 'object' + } + + def __init__(self, object=None): + """ + SectionObject - a model defined in Swagger + """ + + self._object = None + + if object is not None: + self.object = object + + @property + def object(self): + """ + Gets the object of this SectionObject. + + :return: The object of this SectionObject. + :rtype: Section + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this SectionObject. + + :param object: The object of this SectionObject. + :type: Section + """ + + self._object = object + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SectionObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/section_response.py b/swagger_client/models/section_response.py new file mode 100644 index 0000000..f80d675 --- /dev/null +++ b/swagger_client/models/section_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SectionResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'Section' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + SectionResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this SectionResponse. + + :return: The data of this SectionResponse. + :rtype: Section + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SectionResponse. + + :param data: The data of this SectionResponse. + :type: Section + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SectionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/sections_created.py b/swagger_client/models/sections_created.py new file mode 100644 index 0000000..a08a5f3 --- /dev/null +++ b/swagger_client/models/sections_created.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SectionsCreated(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SectionObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SectionsCreated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SectionsCreated. + + :return: The created of this SectionsCreated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SectionsCreated. + + :param created: The created of this SectionsCreated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SectionsCreated. + + :return: The id of this SectionsCreated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SectionsCreated. + + :param id: The id of this SectionsCreated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SectionsCreated. + + :return: The type of this SectionsCreated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SectionsCreated. + + :param type: The type of this SectionsCreated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SectionsCreated. + + :return: The data of this SectionsCreated. + :rtype: SectionObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SectionsCreated. + + :param data: The data of this SectionsCreated. + :type: SectionObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SectionsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/sections_deleted.py b/swagger_client/models/sections_deleted.py new file mode 100644 index 0000000..761710d --- /dev/null +++ b/swagger_client/models/sections_deleted.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SectionsDeleted(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SectionObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SectionsDeleted - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SectionsDeleted. + + :return: The created of this SectionsDeleted. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SectionsDeleted. + + :param created: The created of this SectionsDeleted. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SectionsDeleted. + + :return: The id of this SectionsDeleted. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SectionsDeleted. + + :param id: The id of this SectionsDeleted. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SectionsDeleted. + + :return: The type of this SectionsDeleted. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SectionsDeleted. + + :param type: The type of this SectionsDeleted. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SectionsDeleted. + + :return: The data of this SectionsDeleted. + :rtype: SectionObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SectionsDeleted. + + :param data: The data of this SectionsDeleted. + :type: SectionObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SectionsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/sections_response.py b/swagger_client/models/sections_response.py new file mode 100644 index 0000000..93050cd --- /dev/null +++ b/swagger_client/models/sections_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SectionsResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'list[SectionResponse]' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + SectionsResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this SectionsResponse. + + :return: The data of this SectionsResponse. + :rtype: list[SectionResponse] + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SectionsResponse. + + :param data: The data of this SectionsResponse. + :type: list[SectionResponse] + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SectionsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/sections_updated.py b/swagger_client/models/sections_updated.py new file mode 100644 index 0000000..7814edf --- /dev/null +++ b/swagger_client/models/sections_updated.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SectionsUpdated(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SectionObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SectionsUpdated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SectionsUpdated. + + :return: The created of this SectionsUpdated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SectionsUpdated. + + :param created: The created of this SectionsUpdated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SectionsUpdated. + + :return: The id of this SectionsUpdated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SectionsUpdated. + + :param id: The id of this SectionsUpdated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SectionsUpdated. + + :return: The type of this SectionsUpdated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SectionsUpdated. + + :param type: The type of this SectionsUpdated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SectionsUpdated. + + :return: The data of this SectionsUpdated. + :rtype: SectionObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SectionsUpdated. + + :param data: The data of this SectionsUpdated. + :type: SectionObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SectionsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/student.py b/swagger_client/models/student.py new file mode 100644 index 0000000..ff1e579 --- /dev/null +++ b/swagger_client/models/student.py @@ -0,0 +1,757 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Student(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'credentials': 'Credentials', + 'district': 'str', + 'dob': 'str', + 'ell_status': 'str', + 'email': 'str', + 'gender': 'str', + 'grade': 'str', + 'graduation_year': 'str', + 'hispanic_ethnicity': 'str', + 'home_language': 'str', + 'id': 'str', + 'iep_status': 'str', + 'last_modified': 'str', + 'location': 'Location', + 'name': 'Name', + 'race': 'str', + 'school': 'str', + 'schools': 'list[str]', + 'sis_id': 'str', + 'state_id': 'str', + 'student_number': 'str', + 'unweighted_gpa': 'str', + 'weighted_gpa': 'str' + } + + attribute_map = { + 'created': 'created', + 'credentials': 'credentials', + 'district': 'district', + 'dob': 'dob', + 'ell_status': 'ell_status', + 'email': 'email', + 'gender': 'gender', + 'grade': 'grade', + 'graduation_year': 'graduation_year', + 'hispanic_ethnicity': 'hispanic_ethnicity', + 'home_language': 'home_language', + 'id': 'id', + 'iep_status': 'iep_status', + 'last_modified': 'last_modified', + 'location': 'location', + 'name': 'name', + 'race': 'race', + 'school': 'school', + 'schools': 'schools', + 'sis_id': 'sis_id', + 'state_id': 'state_id', + 'student_number': 'student_number', + 'unweighted_gpa': 'unweighted_gpa', + 'weighted_gpa': 'weighted_gpa' + } + + def __init__(self, created=None, credentials=None, district=None, dob=None, ell_status=None, email=None, gender=None, grade=None, graduation_year=None, hispanic_ethnicity=None, home_language=None, id=None, iep_status=None, last_modified=None, location=None, name=None, race=None, school=None, schools=None, sis_id=None, state_id=None, student_number=None, unweighted_gpa=None, weighted_gpa=None): + """ + Student - a model defined in Swagger + """ + + self._created = None + self._credentials = None + self._district = None + self._dob = None + self._ell_status = None + self._email = None + self._gender = None + self._grade = None + self._graduation_year = None + self._hispanic_ethnicity = None + self._home_language = None + self._id = None + self._iep_status = None + self._last_modified = None + self._location = None + self._name = None + self._race = None + self._school = None + self._schools = None + self._sis_id = None + self._state_id = None + self._student_number = None + self._unweighted_gpa = None + self._weighted_gpa = None + + if created is not None: + self.created = created + if credentials is not None: + self.credentials = credentials + if district is not None: + self.district = district + if dob is not None: + self.dob = dob + if ell_status is not None: + self.ell_status = ell_status + if email is not None: + self.email = email + if gender is not None: + self.gender = gender + if grade is not None: + self.grade = grade + if graduation_year is not None: + self.graduation_year = graduation_year + if hispanic_ethnicity is not None: + self.hispanic_ethnicity = hispanic_ethnicity + if home_language is not None: + self.home_language = home_language + if id is not None: + self.id = id + if iep_status is not None: + self.iep_status = iep_status + if last_modified is not None: + self.last_modified = last_modified + if location is not None: + self.location = location + if name is not None: + self.name = name + if race is not None: + self.race = race + if school is not None: + self.school = school + if schools is not None: + self.schools = schools + if sis_id is not None: + self.sis_id = sis_id + if state_id is not None: + self.state_id = state_id + if student_number is not None: + self.student_number = student_number + if unweighted_gpa is not None: + self.unweighted_gpa = unweighted_gpa + if weighted_gpa is not None: + self.weighted_gpa = weighted_gpa + + @property + def created(self): + """ + Gets the created of this Student. + + :return: The created of this Student. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this Student. + + :param created: The created of this Student. + :type: str + """ + + self._created = created + + @property + def credentials(self): + """ + Gets the credentials of this Student. + + :return: The credentials of this Student. + :rtype: Credentials + """ + return self._credentials + + @credentials.setter + def credentials(self, credentials): + """ + Sets the credentials of this Student. + + :param credentials: The credentials of this Student. + :type: Credentials + """ + + self._credentials = credentials + + @property + def district(self): + """ + Gets the district of this Student. + + :return: The district of this Student. + :rtype: str + """ + return self._district + + @district.setter + def district(self, district): + """ + Sets the district of this Student. + + :param district: The district of this Student. + :type: str + """ + + self._district = district + + @property + def dob(self): + """ + Gets the dob of this Student. + + :return: The dob of this Student. + :rtype: str + """ + return self._dob + + @dob.setter + def dob(self, dob): + """ + Sets the dob of this Student. + + :param dob: The dob of this Student. + :type: str + """ + + self._dob = dob + + @property + def ell_status(self): + """ + Gets the ell_status of this Student. + + :return: The ell_status of this Student. + :rtype: str + """ + return self._ell_status + + @ell_status.setter + def ell_status(self, ell_status): + """ + Sets the ell_status of this Student. + + :param ell_status: The ell_status of this Student. + :type: str + """ + allowed_values = ["Y", "N", ""] + if ell_status not in allowed_values: + raise ValueError( + "Invalid value for `ell_status` ({0}), must be one of {1}" + .format(ell_status, allowed_values) + ) + + self._ell_status = ell_status + + @property + def email(self): + """ + Gets the email of this Student. + + :return: The email of this Student. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this Student. + + :param email: The email of this Student. + :type: str + """ + + self._email = email + + @property + def gender(self): + """ + Gets the gender of this Student. + + :return: The gender of this Student. + :rtype: str + """ + return self._gender + + @gender.setter + def gender(self, gender): + """ + Sets the gender of this Student. + + :param gender: The gender of this Student. + :type: str + """ + allowed_values = ["M", "F", ""] + if gender not in allowed_values: + raise ValueError( + "Invalid value for `gender` ({0}), must be one of {1}" + .format(gender, allowed_values) + ) + + self._gender = gender + + @property + def grade(self): + """ + Gets the grade of this Student. + + :return: The grade of this Student. + :rtype: str + """ + return self._grade + + @grade.setter + def grade(self, grade): + """ + Sets the grade of this Student. + + :param grade: The grade of this Student. + :type: str + """ + allowed_values = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "PreKindergarten", "Kindergarten", "PostGraduate", "Other"] + if grade not in allowed_values: + raise ValueError( + "Invalid value for `grade` ({0}), must be one of {1}" + .format(grade, allowed_values) + ) + + self._grade = grade + + @property + def graduation_year(self): + """ + Gets the graduation_year of this Student. + + :return: The graduation_year of this Student. + :rtype: str + """ + return self._graduation_year + + @graduation_year.setter + def graduation_year(self, graduation_year): + """ + Sets the graduation_year of this Student. + + :param graduation_year: The graduation_year of this Student. + :type: str + """ + + self._graduation_year = graduation_year + + @property + def hispanic_ethnicity(self): + """ + Gets the hispanic_ethnicity of this Student. + + :return: The hispanic_ethnicity of this Student. + :rtype: str + """ + return self._hispanic_ethnicity + + @hispanic_ethnicity.setter + def hispanic_ethnicity(self, hispanic_ethnicity): + """ + Sets the hispanic_ethnicity of this Student. + + :param hispanic_ethnicity: The hispanic_ethnicity of this Student. + :type: str + """ + allowed_values = ["Y", "N", ""] + if hispanic_ethnicity not in allowed_values: + raise ValueError( + "Invalid value for `hispanic_ethnicity` ({0}), must be one of {1}" + .format(hispanic_ethnicity, allowed_values) + ) + + self._hispanic_ethnicity = hispanic_ethnicity + + @property + def home_language(self): + """ + Gets the home_language of this Student. + + :return: The home_language of this Student. + :rtype: str + """ + return self._home_language + + @home_language.setter + def home_language(self, home_language): + """ + Sets the home_language of this Student. + + :param home_language: The home_language of this Student. + :type: str + """ + allowed_values = ["English", "Albanian", "Amharic", "Arabic", "Bengali", "Bosnian", "Burmese", "Cantonese", "Chinese", "Dutch", "Farsi", "French", "German", "Hebrew", "Hindi", "Hmong", "Ilocano", "Japanese", "Javanese", "Karen", "Khmer", "Korean", "Laotian", "Latvian", "Malay", "Mandarin", "Nepali", "Oromo", "Polish", "Portuguese", "Punjabi", "Romanian", "Russian", "Samoan", "Serbian", "Somali", "Spanish", "Swahili", "Tagalog", "Tamil", "Telegu", "Thai", "Tigrinya", "Turkish", "Ukrainian", "Urdu", "Vietnamese"] + if home_language not in allowed_values: + raise ValueError( + "Invalid value for `home_language` ({0}), must be one of {1}" + .format(home_language, allowed_values) + ) + + self._home_language = home_language + + @property + def id(self): + """ + Gets the id of this Student. + + :return: The id of this Student. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this Student. + + :param id: The id of this Student. + :type: str + """ + + self._id = id + + @property + def iep_status(self): + """ + Gets the iep_status of this Student. + + :return: The iep_status of this Student. + :rtype: str + """ + return self._iep_status + + @iep_status.setter + def iep_status(self, iep_status): + """ + Sets the iep_status of this Student. + + :param iep_status: The iep_status of this Student. + :type: str + """ + + self._iep_status = iep_status + + @property + def last_modified(self): + """ + Gets the last_modified of this Student. + + :return: The last_modified of this Student. + :rtype: str + """ + return self._last_modified + + @last_modified.setter + def last_modified(self, last_modified): + """ + Sets the last_modified of this Student. + + :param last_modified: The last_modified of this Student. + :type: str + """ + + self._last_modified = last_modified + + @property + def location(self): + """ + Gets the location of this Student. + + :return: The location of this Student. + :rtype: Location + """ + return self._location + + @location.setter + def location(self, location): + """ + Sets the location of this Student. + + :param location: The location of this Student. + :type: Location + """ + + self._location = location + + @property + def name(self): + """ + Gets the name of this Student. + + :return: The name of this Student. + :rtype: Name + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this Student. + + :param name: The name of this Student. + :type: Name + """ + + self._name = name + + @property + def race(self): + """ + Gets the race of this Student. + + :return: The race of this Student. + :rtype: str + """ + return self._race + + @race.setter + def race(self, race): + """ + Sets the race of this Student. + + :param race: The race of this Student. + :type: str + """ + allowed_values = ["Caucasian", "Asian", "Black or African American", "American Indian", "Hawaiian or Other Pacific Islander", "Two or More Races", "Unknown", ""] + if race not in allowed_values: + raise ValueError( + "Invalid value for `race` ({0}), must be one of {1}" + .format(race, allowed_values) + ) + + self._race = race + + @property + def school(self): + """ + Gets the school of this Student. + + :return: The school of this Student. + :rtype: str + """ + return self._school + + @school.setter + def school(self, school): + """ + Sets the school of this Student. + + :param school: The school of this Student. + :type: str + """ + + self._school = school + + @property + def schools(self): + """ + Gets the schools of this Student. + + :return: The schools of this Student. + :rtype: list[str] + """ + return self._schools + + @schools.setter + def schools(self, schools): + """ + Sets the schools of this Student. + + :param schools: The schools of this Student. + :type: list[str] + """ + + self._schools = schools + + @property + def sis_id(self): + """ + Gets the sis_id of this Student. + + :return: The sis_id of this Student. + :rtype: str + """ + return self._sis_id + + @sis_id.setter + def sis_id(self, sis_id): + """ + Sets the sis_id of this Student. + + :param sis_id: The sis_id of this Student. + :type: str + """ + + self._sis_id = sis_id + + @property + def state_id(self): + """ + Gets the state_id of this Student. + + :return: The state_id of this Student. + :rtype: str + """ + return self._state_id + + @state_id.setter + def state_id(self, state_id): + """ + Sets the state_id of this Student. + + :param state_id: The state_id of this Student. + :type: str + """ + + self._state_id = state_id + + @property + def student_number(self): + """ + Gets the student_number of this Student. + + :return: The student_number of this Student. + :rtype: str + """ + return self._student_number + + @student_number.setter + def student_number(self, student_number): + """ + Sets the student_number of this Student. + + :param student_number: The student_number of this Student. + :type: str + """ + + self._student_number = student_number + + @property + def unweighted_gpa(self): + """ + Gets the unweighted_gpa of this Student. + + :return: The unweighted_gpa of this Student. + :rtype: str + """ + return self._unweighted_gpa + + @unweighted_gpa.setter + def unweighted_gpa(self, unweighted_gpa): + """ + Sets the unweighted_gpa of this Student. + + :param unweighted_gpa: The unweighted_gpa of this Student. + :type: str + """ + + self._unweighted_gpa = unweighted_gpa + + @property + def weighted_gpa(self): + """ + Gets the weighted_gpa of this Student. + + :return: The weighted_gpa of this Student. + :rtype: str + """ + return self._weighted_gpa + + @weighted_gpa.setter + def weighted_gpa(self, weighted_gpa): + """ + Sets the weighted_gpa of this Student. + + :param weighted_gpa: The weighted_gpa of this Student. + :type: str + """ + + self._weighted_gpa = weighted_gpa + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Student): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/student_contact.py b/swagger_client/models/student_contact.py new file mode 100644 index 0000000..5fbeda0 --- /dev/null +++ b/swagger_client/models/student_contact.py @@ -0,0 +1,357 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StudentContact(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'district': 'str', + 'email': 'str', + 'id': 'str', + 'name': 'str', + 'phone': 'str', + 'phone_type': 'str', + 'relationship': 'str', + 'sis_id': 'str', + 'student': 'str', + 'type': 'str' + } + + attribute_map = { + 'district': 'district', + 'email': 'email', + 'id': 'id', + 'name': 'name', + 'phone': 'phone', + 'phone_type': 'phone_type', + 'relationship': 'relationship', + 'sis_id': 'sis_id', + 'student': 'student', + 'type': 'type' + } + + def __init__(self, district=None, email=None, id=None, name=None, phone=None, phone_type=None, relationship=None, sis_id=None, student=None, type=None): + """ + StudentContact - a model defined in Swagger + """ + + self._district = None + self._email = None + self._id = None + self._name = None + self._phone = None + self._phone_type = None + self._relationship = None + self._sis_id = None + self._student = None + self._type = None + + if district is not None: + self.district = district + if email is not None: + self.email = email + if id is not None: + self.id = id + if name is not None: + self.name = name + if phone is not None: + self.phone = phone + if phone_type is not None: + self.phone_type = phone_type + if relationship is not None: + self.relationship = relationship + if sis_id is not None: + self.sis_id = sis_id + if student is not None: + self.student = student + if type is not None: + self.type = type + + @property + def district(self): + """ + Gets the district of this StudentContact. + + :return: The district of this StudentContact. + :rtype: str + """ + return self._district + + @district.setter + def district(self, district): + """ + Sets the district of this StudentContact. + + :param district: The district of this StudentContact. + :type: str + """ + + self._district = district + + @property + def email(self): + """ + Gets the email of this StudentContact. + + :return: The email of this StudentContact. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this StudentContact. + + :param email: The email of this StudentContact. + :type: str + """ + + self._email = email + + @property + def id(self): + """ + Gets the id of this StudentContact. + + :return: The id of this StudentContact. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this StudentContact. + + :param id: The id of this StudentContact. + :type: str + """ + + self._id = id + + @property + def name(self): + """ + Gets the name of this StudentContact. + + :return: The name of this StudentContact. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this StudentContact. + + :param name: The name of this StudentContact. + :type: str + """ + + self._name = name + + @property + def phone(self): + """ + Gets the phone of this StudentContact. + + :return: The phone of this StudentContact. + :rtype: str + """ + return self._phone + + @phone.setter + def phone(self, phone): + """ + Sets the phone of this StudentContact. + + :param phone: The phone of this StudentContact. + :type: str + """ + + self._phone = phone + + @property + def phone_type(self): + """ + Gets the phone_type of this StudentContact. + + :return: The phone_type of this StudentContact. + :rtype: str + """ + return self._phone_type + + @phone_type.setter + def phone_type(self, phone_type): + """ + Sets the phone_type of this StudentContact. + + :param phone_type: The phone_type of this StudentContact. + :type: str + """ + + self._phone_type = phone_type + + @property + def relationship(self): + """ + Gets the relationship of this StudentContact. + + :return: The relationship of this StudentContact. + :rtype: str + """ + return self._relationship + + @relationship.setter + def relationship(self, relationship): + """ + Sets the relationship of this StudentContact. + + :param relationship: The relationship of this StudentContact. + :type: str + """ + + self._relationship = relationship + + @property + def sis_id(self): + """ + Gets the sis_id of this StudentContact. + + :return: The sis_id of this StudentContact. + :rtype: str + """ + return self._sis_id + + @sis_id.setter + def sis_id(self, sis_id): + """ + Sets the sis_id of this StudentContact. + + :param sis_id: The sis_id of this StudentContact. + :type: str + """ + + self._sis_id = sis_id + + @property + def student(self): + """ + Gets the student of this StudentContact. + + :return: The student of this StudentContact. + :rtype: str + """ + return self._student + + @student.setter + def student(self, student): + """ + Sets the student of this StudentContact. + + :param student: The student of this StudentContact. + :type: str + """ + + self._student = student + + @property + def type(self): + """ + Gets the type of this StudentContact. + + :return: The type of this StudentContact. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this StudentContact. + + :param type: The type of this StudentContact. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentContact): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/student_contact_object.py b/swagger_client/models/student_contact_object.py new file mode 100644 index 0000000..a6c3aa5 --- /dev/null +++ b/swagger_client/models/student_contact_object.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StudentContactObject(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'object': 'StudentContact' + } + + attribute_map = { + 'object': 'object' + } + + def __init__(self, object=None): + """ + StudentContactObject - a model defined in Swagger + """ + + self._object = None + + if object is not None: + self.object = object + + @property + def object(self): + """ + Gets the object of this StudentContactObject. + + :return: The object of this StudentContactObject. + :rtype: StudentContact + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this StudentContactObject. + + :param object: The object of this StudentContactObject. + :type: StudentContact + """ + + self._object = object + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentContactObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/student_contact_response.py b/swagger_client/models/student_contact_response.py new file mode 100644 index 0000000..062bf96 --- /dev/null +++ b/swagger_client/models/student_contact_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StudentContactResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'StudentContact' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + StudentContactResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this StudentContactResponse. + + :return: The data of this StudentContactResponse. + :rtype: StudentContact + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this StudentContactResponse. + + :param data: The data of this StudentContactResponse. + :type: StudentContact + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentContactResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/student_contacts_for_student_response.py b/swagger_client/models/student_contacts_for_student_response.py new file mode 100644 index 0000000..b7f232b --- /dev/null +++ b/swagger_client/models/student_contacts_for_student_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StudentContactsForStudentResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'list[StudentContact]' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + StudentContactsForStudentResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this StudentContactsForStudentResponse. + + :return: The data of this StudentContactsForStudentResponse. + :rtype: list[StudentContact] + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this StudentContactsForStudentResponse. + + :param data: The data of this StudentContactsForStudentResponse. + :type: list[StudentContact] + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentContactsForStudentResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/student_contacts_response.py b/swagger_client/models/student_contacts_response.py new file mode 100644 index 0000000..7ce9141 --- /dev/null +++ b/swagger_client/models/student_contacts_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StudentContactsResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'list[StudentContactResponse]' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + StudentContactsResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this StudentContactsResponse. + + :return: The data of this StudentContactsResponse. + :rtype: list[StudentContactResponse] + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this StudentContactsResponse. + + :param data: The data of this StudentContactsResponse. + :type: list[StudentContactResponse] + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentContactsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/student_object.py b/swagger_client/models/student_object.py new file mode 100644 index 0000000..b72d73e --- /dev/null +++ b/swagger_client/models/student_object.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StudentObject(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'object': 'Student' + } + + attribute_map = { + 'object': 'object' + } + + def __init__(self, object=None): + """ + StudentObject - a model defined in Swagger + """ + + self._object = None + + if object is not None: + self.object = object + + @property + def object(self): + """ + Gets the object of this StudentObject. + + :return: The object of this StudentObject. + :rtype: Student + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this StudentObject. + + :param object: The object of this StudentObject. + :type: Student + """ + + self._object = object + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/student_response.py b/swagger_client/models/student_response.py new file mode 100644 index 0000000..635b9ed --- /dev/null +++ b/swagger_client/models/student_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StudentResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'Student' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + StudentResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this StudentResponse. + + :return: The data of this StudentResponse. + :rtype: Student + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this StudentResponse. + + :param data: The data of this StudentResponse. + :type: Student + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/studentcontacts_created.py b/swagger_client/models/studentcontacts_created.py new file mode 100644 index 0000000..82c3fd1 --- /dev/null +++ b/swagger_client/models/studentcontacts_created.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StudentcontactsCreated(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'StudentContactObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + StudentcontactsCreated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this StudentcontactsCreated. + + :return: The created of this StudentcontactsCreated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this StudentcontactsCreated. + + :param created: The created of this StudentcontactsCreated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this StudentcontactsCreated. + + :return: The id of this StudentcontactsCreated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this StudentcontactsCreated. + + :param id: The id of this StudentcontactsCreated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this StudentcontactsCreated. + + :return: The type of this StudentcontactsCreated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this StudentcontactsCreated. + + :param type: The type of this StudentcontactsCreated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this StudentcontactsCreated. + + :return: The data of this StudentcontactsCreated. + :rtype: StudentContactObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this StudentcontactsCreated. + + :param data: The data of this StudentcontactsCreated. + :type: StudentContactObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentcontactsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/studentcontacts_deleted.py b/swagger_client/models/studentcontacts_deleted.py new file mode 100644 index 0000000..0ebeaf3 --- /dev/null +++ b/swagger_client/models/studentcontacts_deleted.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StudentcontactsDeleted(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'StudentContactObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + StudentcontactsDeleted - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this StudentcontactsDeleted. + + :return: The created of this StudentcontactsDeleted. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this StudentcontactsDeleted. + + :param created: The created of this StudentcontactsDeleted. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this StudentcontactsDeleted. + + :return: The id of this StudentcontactsDeleted. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this StudentcontactsDeleted. + + :param id: The id of this StudentcontactsDeleted. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this StudentcontactsDeleted. + + :return: The type of this StudentcontactsDeleted. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this StudentcontactsDeleted. + + :param type: The type of this StudentcontactsDeleted. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this StudentcontactsDeleted. + + :return: The data of this StudentcontactsDeleted. + :rtype: StudentContactObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this StudentcontactsDeleted. + + :param data: The data of this StudentcontactsDeleted. + :type: StudentContactObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentcontactsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/studentcontacts_updated.py b/swagger_client/models/studentcontacts_updated.py new file mode 100644 index 0000000..1ad8af9 --- /dev/null +++ b/swagger_client/models/studentcontacts_updated.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StudentcontactsUpdated(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'StudentContactObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + StudentcontactsUpdated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this StudentcontactsUpdated. + + :return: The created of this StudentcontactsUpdated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this StudentcontactsUpdated. + + :param created: The created of this StudentcontactsUpdated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this StudentcontactsUpdated. + + :return: The id of this StudentcontactsUpdated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this StudentcontactsUpdated. + + :param id: The id of this StudentcontactsUpdated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this StudentcontactsUpdated. + + :return: The type of this StudentcontactsUpdated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this StudentcontactsUpdated. + + :param type: The type of this StudentcontactsUpdated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this StudentcontactsUpdated. + + :return: The data of this StudentcontactsUpdated. + :rtype: StudentContactObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this StudentcontactsUpdated. + + :param data: The data of this StudentcontactsUpdated. + :type: StudentContactObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentcontactsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/students_created.py b/swagger_client/models/students_created.py new file mode 100644 index 0000000..e43734c --- /dev/null +++ b/swagger_client/models/students_created.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StudentsCreated(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'StudentObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + StudentsCreated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this StudentsCreated. + + :return: The created of this StudentsCreated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this StudentsCreated. + + :param created: The created of this StudentsCreated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this StudentsCreated. + + :return: The id of this StudentsCreated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this StudentsCreated. + + :param id: The id of this StudentsCreated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this StudentsCreated. + + :return: The type of this StudentsCreated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this StudentsCreated. + + :param type: The type of this StudentsCreated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this StudentsCreated. + + :return: The data of this StudentsCreated. + :rtype: StudentObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this StudentsCreated. + + :param data: The data of this StudentsCreated. + :type: StudentObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/students_deleted.py b/swagger_client/models/students_deleted.py new file mode 100644 index 0000000..51ee41d --- /dev/null +++ b/swagger_client/models/students_deleted.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StudentsDeleted(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'StudentObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + StudentsDeleted - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this StudentsDeleted. + + :return: The created of this StudentsDeleted. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this StudentsDeleted. + + :param created: The created of this StudentsDeleted. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this StudentsDeleted. + + :return: The id of this StudentsDeleted. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this StudentsDeleted. + + :param id: The id of this StudentsDeleted. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this StudentsDeleted. + + :return: The type of this StudentsDeleted. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this StudentsDeleted. + + :param type: The type of this StudentsDeleted. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this StudentsDeleted. + + :return: The data of this StudentsDeleted. + :rtype: StudentObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this StudentsDeleted. + + :param data: The data of this StudentsDeleted. + :type: StudentObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/students_response.py b/swagger_client/models/students_response.py new file mode 100644 index 0000000..35ae878 --- /dev/null +++ b/swagger_client/models/students_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StudentsResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'list[StudentResponse]' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + StudentsResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this StudentsResponse. + + :return: The data of this StudentsResponse. + :rtype: list[StudentResponse] + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this StudentsResponse. + + :param data: The data of this StudentsResponse. + :type: list[StudentResponse] + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/students_updated.py b/swagger_client/models/students_updated.py new file mode 100644 index 0000000..2576ac5 --- /dev/null +++ b/swagger_client/models/students_updated.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StudentsUpdated(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'StudentObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + StudentsUpdated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this StudentsUpdated. + + :return: The created of this StudentsUpdated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this StudentsUpdated. + + :param created: The created of this StudentsUpdated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this StudentsUpdated. + + :return: The id of this StudentsUpdated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this StudentsUpdated. + + :param id: The id of this StudentsUpdated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this StudentsUpdated. + + :return: The type of this StudentsUpdated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this StudentsUpdated. + + :param type: The type of this StudentsUpdated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this StudentsUpdated. + + :return: The data of this StudentsUpdated. + :rtype: StudentObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this StudentsUpdated. + + :param data: The data of this StudentsUpdated. + :type: StudentObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/teacher.py b/swagger_client/models/teacher.py new file mode 100644 index 0000000..7f6bea2 --- /dev/null +++ b/swagger_client/models/teacher.py @@ -0,0 +1,435 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Teacher(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'credentials': 'Credentials', + 'district': 'str', + 'email': 'str', + 'id': 'str', + 'last_modified': 'str', + 'name': 'Name', + 'school': 'str', + 'schools': 'list[str]', + 'sis_id': 'str', + 'state_id': 'str', + 'teacher_number': 'str', + 'title': 'str' + } + + attribute_map = { + 'created': 'created', + 'credentials': 'credentials', + 'district': 'district', + 'email': 'email', + 'id': 'id', + 'last_modified': 'last_modified', + 'name': 'name', + 'school': 'school', + 'schools': 'schools', + 'sis_id': 'sis_id', + 'state_id': 'state_id', + 'teacher_number': 'teacher_number', + 'title': 'title' + } + + def __init__(self, created=None, credentials=None, district=None, email=None, id=None, last_modified=None, name=None, school=None, schools=None, sis_id=None, state_id=None, teacher_number=None, title=None): + """ + Teacher - a model defined in Swagger + """ + + self._created = None + self._credentials = None + self._district = None + self._email = None + self._id = None + self._last_modified = None + self._name = None + self._school = None + self._schools = None + self._sis_id = None + self._state_id = None + self._teacher_number = None + self._title = None + + if created is not None: + self.created = created + if credentials is not None: + self.credentials = credentials + if district is not None: + self.district = district + if email is not None: + self.email = email + if id is not None: + self.id = id + if last_modified is not None: + self.last_modified = last_modified + if name is not None: + self.name = name + if school is not None: + self.school = school + if schools is not None: + self.schools = schools + if sis_id is not None: + self.sis_id = sis_id + if state_id is not None: + self.state_id = state_id + if teacher_number is not None: + self.teacher_number = teacher_number + if title is not None: + self.title = title + + @property + def created(self): + """ + Gets the created of this Teacher. + + :return: The created of this Teacher. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this Teacher. + + :param created: The created of this Teacher. + :type: str + """ + + self._created = created + + @property + def credentials(self): + """ + Gets the credentials of this Teacher. + + :return: The credentials of this Teacher. + :rtype: Credentials + """ + return self._credentials + + @credentials.setter + def credentials(self, credentials): + """ + Sets the credentials of this Teacher. + + :param credentials: The credentials of this Teacher. + :type: Credentials + """ + + self._credentials = credentials + + @property + def district(self): + """ + Gets the district of this Teacher. + + :return: The district of this Teacher. + :rtype: str + """ + return self._district + + @district.setter + def district(self, district): + """ + Sets the district of this Teacher. + + :param district: The district of this Teacher. + :type: str + """ + + self._district = district + + @property + def email(self): + """ + Gets the email of this Teacher. + + :return: The email of this Teacher. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this Teacher. + + :param email: The email of this Teacher. + :type: str + """ + + self._email = email + + @property + def id(self): + """ + Gets the id of this Teacher. + + :return: The id of this Teacher. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this Teacher. + + :param id: The id of this Teacher. + :type: str + """ + + self._id = id + + @property + def last_modified(self): + """ + Gets the last_modified of this Teacher. + + :return: The last_modified of this Teacher. + :rtype: str + """ + return self._last_modified + + @last_modified.setter + def last_modified(self, last_modified): + """ + Sets the last_modified of this Teacher. + + :param last_modified: The last_modified of this Teacher. + :type: str + """ + + self._last_modified = last_modified + + @property + def name(self): + """ + Gets the name of this Teacher. + + :return: The name of this Teacher. + :rtype: Name + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this Teacher. + + :param name: The name of this Teacher. + :type: Name + """ + + self._name = name + + @property + def school(self): + """ + Gets the school of this Teacher. + + :return: The school of this Teacher. + :rtype: str + """ + return self._school + + @school.setter + def school(self, school): + """ + Sets the school of this Teacher. + + :param school: The school of this Teacher. + :type: str + """ + + self._school = school + + @property + def schools(self): + """ + Gets the schools of this Teacher. + + :return: The schools of this Teacher. + :rtype: list[str] + """ + return self._schools + + @schools.setter + def schools(self, schools): + """ + Sets the schools of this Teacher. + + :param schools: The schools of this Teacher. + :type: list[str] + """ + + self._schools = schools + + @property + def sis_id(self): + """ + Gets the sis_id of this Teacher. + + :return: The sis_id of this Teacher. + :rtype: str + """ + return self._sis_id + + @sis_id.setter + def sis_id(self, sis_id): + """ + Sets the sis_id of this Teacher. + + :param sis_id: The sis_id of this Teacher. + :type: str + """ + + self._sis_id = sis_id + + @property + def state_id(self): + """ + Gets the state_id of this Teacher. + + :return: The state_id of this Teacher. + :rtype: str + """ + return self._state_id + + @state_id.setter + def state_id(self, state_id): + """ + Sets the state_id of this Teacher. + + :param state_id: The state_id of this Teacher. + :type: str + """ + + self._state_id = state_id + + @property + def teacher_number(self): + """ + Gets the teacher_number of this Teacher. + + :return: The teacher_number of this Teacher. + :rtype: str + """ + return self._teacher_number + + @teacher_number.setter + def teacher_number(self, teacher_number): + """ + Sets the teacher_number of this Teacher. + + :param teacher_number: The teacher_number of this Teacher. + :type: str + """ + + self._teacher_number = teacher_number + + @property + def title(self): + """ + Gets the title of this Teacher. + + :return: The title of this Teacher. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """ + Sets the title of this Teacher. + + :param title: The title of this Teacher. + :type: str + """ + + self._title = title + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Teacher): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/teacher_object.py b/swagger_client/models/teacher_object.py new file mode 100644 index 0000000..e78d1d1 --- /dev/null +++ b/swagger_client/models/teacher_object.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TeacherObject(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'object': 'Teacher' + } + + attribute_map = { + 'object': 'object' + } + + def __init__(self, object=None): + """ + TeacherObject - a model defined in Swagger + """ + + self._object = None + + if object is not None: + self.object = object + + @property + def object(self): + """ + Gets the object of this TeacherObject. + + :return: The object of this TeacherObject. + :rtype: Teacher + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this TeacherObject. + + :param object: The object of this TeacherObject. + :type: Teacher + """ + + self._object = object + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TeacherObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/teacher_response.py b/swagger_client/models/teacher_response.py new file mode 100644 index 0000000..2aa07bf --- /dev/null +++ b/swagger_client/models/teacher_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TeacherResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'Teacher' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + TeacherResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this TeacherResponse. + + :return: The data of this TeacherResponse. + :rtype: Teacher + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this TeacherResponse. + + :param data: The data of this TeacherResponse. + :type: Teacher + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TeacherResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/teachers_created.py b/swagger_client/models/teachers_created.py new file mode 100644 index 0000000..ad71eec --- /dev/null +++ b/swagger_client/models/teachers_created.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TeachersCreated(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'TeacherObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + TeachersCreated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this TeachersCreated. + + :return: The created of this TeachersCreated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this TeachersCreated. + + :param created: The created of this TeachersCreated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this TeachersCreated. + + :return: The id of this TeachersCreated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this TeachersCreated. + + :param id: The id of this TeachersCreated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this TeachersCreated. + + :return: The type of this TeachersCreated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this TeachersCreated. + + :param type: The type of this TeachersCreated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this TeachersCreated. + + :return: The data of this TeachersCreated. + :rtype: TeacherObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this TeachersCreated. + + :param data: The data of this TeachersCreated. + :type: TeacherObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TeachersCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/teachers_deleted.py b/swagger_client/models/teachers_deleted.py new file mode 100644 index 0000000..d7cbc8c --- /dev/null +++ b/swagger_client/models/teachers_deleted.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TeachersDeleted(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'TeacherObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + TeachersDeleted - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this TeachersDeleted. + + :return: The created of this TeachersDeleted. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this TeachersDeleted. + + :param created: The created of this TeachersDeleted. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this TeachersDeleted. + + :return: The id of this TeachersDeleted. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this TeachersDeleted. + + :param id: The id of this TeachersDeleted. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this TeachersDeleted. + + :return: The type of this TeachersDeleted. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this TeachersDeleted. + + :param type: The type of this TeachersDeleted. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this TeachersDeleted. + + :return: The data of this TeachersDeleted. + :rtype: TeacherObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this TeachersDeleted. + + :param data: The data of this TeachersDeleted. + :type: TeacherObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TeachersDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/teachers_response.py b/swagger_client/models/teachers_response.py new file mode 100644 index 0000000..41601c7 --- /dev/null +++ b/swagger_client/models/teachers_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TeachersResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'list[TeacherResponse]' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + TeachersResponse - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this TeachersResponse. + + :return: The data of this TeachersResponse. + :rtype: list[TeacherResponse] + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this TeachersResponse. + + :param data: The data of this TeachersResponse. + :type: list[TeacherResponse] + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TeachersResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/teachers_updated.py b/swagger_client/models/teachers_updated.py new file mode 100644 index 0000000..669f320 --- /dev/null +++ b/swagger_client/models/teachers_updated.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TeachersUpdated(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'TeacherObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + TeachersUpdated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this TeachersUpdated. + + :return: The created of this TeachersUpdated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this TeachersUpdated. + + :param created: The created of this TeachersUpdated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this TeachersUpdated. + + :return: The id of this TeachersUpdated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this TeachersUpdated. + + :param id: The id of this TeachersUpdated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this TeachersUpdated. + + :return: The type of this TeachersUpdated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this TeachersUpdated. + + :param type: The type of this TeachersUpdated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this TeachersUpdated. + + :return: The data of this TeachersUpdated. + :rtype: TeacherObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this TeachersUpdated. + + :param data: The data of this TeachersUpdated. + :type: TeacherObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TeachersUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/models/term.py b/swagger_client/models/term.py new file mode 100644 index 0000000..166f4c1 --- /dev/null +++ b/swagger_client/models/term.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Term(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'end_date': 'str', + 'name': 'str', + 'start_date': 'str' + } + + attribute_map = { + 'end_date': 'end_date', + 'name': 'name', + 'start_date': 'start_date' + } + + def __init__(self, end_date=None, name=None, start_date=None): + """ + Term - a model defined in Swagger + """ + + self._end_date = None + self._name = None + self._start_date = None + + if end_date is not None: + self.end_date = end_date + if name is not None: + self.name = name + if start_date is not None: + self.start_date = start_date + + @property + def end_date(self): + """ + Gets the end_date of this Term. + + :return: The end_date of this Term. + :rtype: str + """ + return self._end_date + + @end_date.setter + def end_date(self, end_date): + """ + Sets the end_date of this Term. + + :param end_date: The end_date of this Term. + :type: str + """ + + self._end_date = end_date + + @property + def name(self): + """ + Gets the name of this Term. + + :return: The name of this Term. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this Term. + + :param name: The name of this Term. + :type: str + """ + + self._name = name + + @property + def start_date(self): + """ + Gets the start_date of this Term. + + :return: The start_date of this Term. + :rtype: str + """ + return self._start_date + + @start_date.setter + def start_date(self, start_date): + """ + Sets the start_date of this Term. + + :param start_date: The start_date of this Term. + :type: str + """ + + self._start_date = start_date + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Term): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/swagger_client/rest.py b/swagger_client/rest.py new file mode 100644 index 0000000..0fadb57 --- /dev/null +++ b/swagger_client/rest.py @@ -0,0 +1,312 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import io +import json +import ssl +import certifi +import logging +import re + +# python 2 and python 3 compatibility library +from six import PY3 +from six.moves.urllib.parse import urlencode + +from .configuration import Configuration + +try: + import urllib3 +except ImportError: + raise ImportError('Swagger python client requires urllib3.') + + +logger = logging.getLogger(__name__) + + +class RESTResponse(io.IOBase): + + def __init__(self, resp): + self.urllib3_response = resp + self.status = resp.status + self.reason = resp.reason + self.data = resp.data + + def getheaders(self): + """ + Returns a dictionary of the response headers. + """ + return self.urllib3_response.getheaders() + + def getheader(self, name, default=None): + """ + Returns a given response header. + """ + return self.urllib3_response.getheader(name, default) + + +class RESTClientObject(object): + + def __init__(self, pools_size=4, maxsize=4): + # urllib3.PoolManager will pass all kw parameters to connectionpool + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 + # maxsize is the number of requests to host that are allowed in parallel + # ca_certs vs cert_file vs key_file + # http://stackoverflow.com/a/23957365/2985775 + + # cert_reqs + if Configuration().verify_ssl: + cert_reqs = ssl.CERT_REQUIRED + else: + cert_reqs = ssl.CERT_NONE + + # ca_certs + if Configuration().ssl_ca_cert: + ca_certs = Configuration().ssl_ca_cert + else: + # if not set certificate file, use Mozilla's root certificates. + ca_certs = certifi.where() + + # cert_file + cert_file = Configuration().cert_file + + # key file + key_file = Configuration().key_file + + # proxy + proxy = Configuration().proxy + + # https pool manager + if proxy: + self.pool_manager = urllib3.ProxyManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=cert_file, + key_file=key_file, + proxy_url=proxy + ) + else: + self.pool_manager = urllib3.PoolManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=cert_file, + key_file=key_file + ) + + + def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None, _preload_content=True, _request_timeout=None): + """ + :param method: http request method + :param url: http request url + :param query_params: query parameters in the url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without + reading/decoding response data. Default is True. + :param _request_timeout: timeout setting for this request. If one number provided, it will be total request + timeout. It can also be a pair (tuple) of (connection, read) timeouts. + """ + method = method.upper() + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', 'PATCH', 'OPTIONS'] + + if post_params and body: + raise ValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + + timeout = None + if _request_timeout: + if isinstance(_request_timeout, (int, ) if PY3 else (int, long)): + timeout = urllib3.Timeout(total=_request_timeout) + elif isinstance(_request_timeout, tuple) and len(_request_timeout) == 2: + timeout = urllib3.Timeout(connect=_request_timeout[0], read=_request_timeout[1]) + + if 'Content-Type' not in headers: + headers['Content-Type'] = 'application/json' + + try: + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + if query_params: + url += '?' + urlencode(query_params) + if re.search('json', headers['Content-Type'], re.IGNORECASE): + request_body = None + if body: + request_body = json.dumps(body) + r = self.pool_manager.request(method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'application/x-www-form-urlencoded': + r = self.pool_manager.request(method, url, + fields=post_params, + encode_multipart=False, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'multipart/form-data': + # must del headers['Content-Type'], or the correct Content-Type + # which generated by urllib3 will be overwritten. + del headers['Content-Type'] + r = self.pool_manager.request(method, url, + fields=post_params, + encode_multipart=True, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + # Pass a `string` parameter directly in the body to support + # other content types than Json when `body` argument is provided + # in serialized form + elif isinstance(body, str): + request_body = body + r = self.pool_manager.request(method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + else: + # Cannot generate the request from given parameters + msg = """Cannot prepare a request message for provided arguments. + Please check that your arguments match declared content type.""" + raise ApiException(status=0, reason=msg) + # For `GET`, `HEAD` + else: + r = self.pool_manager.request(method, url, + fields=query_params, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + except urllib3.exceptions.SSLError as e: + msg = "{0}\n{1}".format(type(e).__name__, str(e)) + raise ApiException(status=0, reason=msg) + + if _preload_content: + r = RESTResponse(r) + + # In the python 3, the response.data is bytes. + # we need to decode it to string. + if PY3: + r.data = r.data.decode('utf8') + + # log response body + logger.debug("response body: %s", r.data) + + if not 200 <= r.status <= 299: + raise ApiException(http_resp=r) + + return r + + def GET(self, url, headers=None, query_params=None, _preload_content=True, _request_timeout=None): + return self.request("GET", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def HEAD(self, url, headers=None, query_params=None, _preload_content=True, _request_timeout=None): + return self.request("HEAD", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def OPTIONS(self, url, headers=None, query_params=None, post_params=None, body=None, _preload_content=True, + _request_timeout=None): + return self.request("OPTIONS", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def DELETE(self, url, headers=None, query_params=None, body=None, _preload_content=True, _request_timeout=None): + return self.request("DELETE", url, + headers=headers, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def POST(self, url, headers=None, query_params=None, post_params=None, body=None, _preload_content=True, + _request_timeout=None): + return self.request("POST", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PUT(self, url, headers=None, query_params=None, post_params=None, body=None, _preload_content=True, + _request_timeout=None): + return self.request("PUT", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PATCH(self, url, headers=None, query_params=None, post_params=None, body=None, _preload_content=True, + _request_timeout=None): + return self.request("PATCH", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + +class ApiException(Exception): + + def __init__(self, status=None, reason=None, http_resp=None): + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None + + def __str__(self): + """ + Custom error messages for exception + """ + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format(self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + return error_message diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..2702246 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,5 @@ +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13 diff --git a/test.py b/test.py new file mode 100644 index 0000000..71f6a1c --- /dev/null +++ b/test.py @@ -0,0 +1,5 @@ +import clever +clever.set_token('6c6fe12c1fc88de03a2612c93634b32ed7452638') + +contacts = clever.Student.all() +print contacts diff --git a/test/test_bad_request.py b/test/test_bad_request.py new file mode 100644 index 0000000..c1715d5 --- /dev/null +++ b/test/test_bad_request.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.bad_request import BadRequest + + +class TestBadRequest(unittest.TestCase): + """ BadRequest unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBadRequest(self): + """ + Test BadRequest + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.bad_request.BadRequest() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_credentials.py b/test/test_credentials.py new file mode 100644 index 0000000..888732f --- /dev/null +++ b/test/test_credentials.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.credentials import Credentials + + +class TestCredentials(unittest.TestCase): + """ Credentials unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCredentials(self): + """ + Test Credentials + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.credentials.Credentials() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_data_api.py b/test/test_data_api.py new file mode 100644 index 0000000..e34cde7 --- /dev/null +++ b/test/test_data_api.py @@ -0,0 +1,348 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.data_api import DataApi + + +class TestDataApi(unittest.TestCase): + """ DataApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.data_api.DataApi() + + def tearDown(self): + pass + + def test_get_contact(self): + """ + Test case for get_contact + + + """ + pass + + def test_get_contacts(self): + """ + Test case for get_contacts + + + """ + pass + + def test_get_contacts_for_student(self): + """ + Test case for get_contacts_for_student + + + """ + pass + + def test_get_district(self): + """ + Test case for get_district + + + """ + pass + + def test_get_district_admin(self): + """ + Test case for get_district_admin + + + """ + pass + + def test_get_district_admins(self): + """ + Test case for get_district_admins + + + """ + pass + + def test_get_district_for_school(self): + """ + Test case for get_district_for_school + + + """ + pass + + def test_get_district_for_section(self): + """ + Test case for get_district_for_section + + + """ + pass + + def test_get_district_for_student(self): + """ + Test case for get_district_for_student + + + """ + pass + + def test_get_district_for_student_contact(self): + """ + Test case for get_district_for_student_contact + + + """ + pass + + def test_get_district_for_teacher(self): + """ + Test case for get_district_for_teacher + + + """ + pass + + def test_get_district_status(self): + """ + Test case for get_district_status + + + """ + pass + + def test_get_districts(self): + """ + Test case for get_districts + + + """ + pass + + def test_get_grade_levels_for_teacher(self): + """ + Test case for get_grade_levels_for_teacher + + + """ + pass + + def test_get_school(self): + """ + Test case for get_school + + + """ + pass + + def test_get_school_admin(self): + """ + Test case for get_school_admin + + + """ + pass + + def test_get_school_admins(self): + """ + Test case for get_school_admins + + + """ + pass + + def test_get_school_for_section(self): + """ + Test case for get_school_for_section + + + """ + pass + + def test_get_school_for_student(self): + """ + Test case for get_school_for_student + + + """ + pass + + def test_get_school_for_teacher(self): + """ + Test case for get_school_for_teacher + + + """ + pass + + def test_get_schools(self): + """ + Test case for get_schools + + + """ + pass + + def test_get_schools_for_school_admin(self): + """ + Test case for get_schools_for_school_admin + + + """ + pass + + def test_get_section(self): + """ + Test case for get_section + + + """ + pass + + def test_get_sections(self): + """ + Test case for get_sections + + + """ + pass + + def test_get_sections_for_school(self): + """ + Test case for get_sections_for_school + + + """ + pass + + def test_get_sections_for_student(self): + """ + Test case for get_sections_for_student + + + """ + pass + + def test_get_sections_for_teacher(self): + """ + Test case for get_sections_for_teacher + + + """ + pass + + def test_get_student(self): + """ + Test case for get_student + + + """ + pass + + def test_get_student_for_contact(self): + """ + Test case for get_student_for_contact + + + """ + pass + + def test_get_students(self): + """ + Test case for get_students + + + """ + pass + + def test_get_students_for_school(self): + """ + Test case for get_students_for_school + + + """ + pass + + def test_get_students_for_section(self): + """ + Test case for get_students_for_section + + + """ + pass + + def test_get_students_for_teacher(self): + """ + Test case for get_students_for_teacher + + + """ + pass + + def test_get_teacher(self): + """ + Test case for get_teacher + + + """ + pass + + def test_get_teacher_for_section(self): + """ + Test case for get_teacher_for_section + + + """ + pass + + def test_get_teachers(self): + """ + Test case for get_teachers + + + """ + pass + + def test_get_teachers_for_school(self): + """ + Test case for get_teachers_for_school + + + """ + pass + + def test_get_teachers_for_section(self): + """ + Test case for get_teachers_for_section + + + """ + pass + + def test_get_teachers_for_student(self): + """ + Test case for get_teachers_for_student + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_district.py b/test/test_district.py new file mode 100644 index 0000000..564a202 --- /dev/null +++ b/test/test_district.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.district import District + + +class TestDistrict(unittest.TestCase): + """ District unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDistrict(self): + """ + Test District + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.district.District() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_district_admin.py b/test/test_district_admin.py new file mode 100644 index 0000000..9735bda --- /dev/null +++ b/test/test_district_admin.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.district_admin import DistrictAdmin + + +class TestDistrictAdmin(unittest.TestCase): + """ DistrictAdmin unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDistrictAdmin(self): + """ + Test DistrictAdmin + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.district_admin.DistrictAdmin() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_district_admin_response.py b/test/test_district_admin_response.py new file mode 100644 index 0000000..1d9a7d9 --- /dev/null +++ b/test/test_district_admin_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.district_admin_response import DistrictAdminResponse + + +class TestDistrictAdminResponse(unittest.TestCase): + """ DistrictAdminResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDistrictAdminResponse(self): + """ + Test DistrictAdminResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.district_admin_response.DistrictAdminResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_district_admins_response.py b/test/test_district_admins_response.py new file mode 100644 index 0000000..8d5fb70 --- /dev/null +++ b/test/test_district_admins_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.district_admins_response import DistrictAdminsResponse + + +class TestDistrictAdminsResponse(unittest.TestCase): + """ DistrictAdminsResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDistrictAdminsResponse(self): + """ + Test DistrictAdminsResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.district_admins_response.DistrictAdminsResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_district_object.py b/test/test_district_object.py new file mode 100644 index 0000000..62108c0 --- /dev/null +++ b/test/test_district_object.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.district_object import DistrictObject + + +class TestDistrictObject(unittest.TestCase): + """ DistrictObject unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDistrictObject(self): + """ + Test DistrictObject + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.district_object.DistrictObject() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_district_response.py b/test/test_district_response.py new file mode 100644 index 0000000..35e5503 --- /dev/null +++ b/test/test_district_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.district_response import DistrictResponse + + +class TestDistrictResponse(unittest.TestCase): + """ DistrictResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDistrictResponse(self): + """ + Test DistrictResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.district_response.DistrictResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_district_status.py b/test/test_district_status.py new file mode 100644 index 0000000..00b3359 --- /dev/null +++ b/test/test_district_status.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.district_status import DistrictStatus + + +class TestDistrictStatus(unittest.TestCase): + """ DistrictStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDistrictStatus(self): + """ + Test DistrictStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.district_status.DistrictStatus() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_district_status_response.py b/test/test_district_status_response.py new file mode 100644 index 0000000..231a87a --- /dev/null +++ b/test/test_district_status_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.district_status_response import DistrictStatusResponse + + +class TestDistrictStatusResponse(unittest.TestCase): + """ DistrictStatusResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDistrictStatusResponse(self): + """ + Test DistrictStatusResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.district_status_response.DistrictStatusResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_district_status_responses.py b/test/test_district_status_responses.py new file mode 100644 index 0000000..96523d6 --- /dev/null +++ b/test/test_district_status_responses.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.district_status_responses import DistrictStatusResponses + + +class TestDistrictStatusResponses(unittest.TestCase): + """ DistrictStatusResponses unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDistrictStatusResponses(self): + """ + Test DistrictStatusResponses + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.district_status_responses.DistrictStatusResponses() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_districts_created.py b/test/test_districts_created.py new file mode 100644 index 0000000..fa22790 --- /dev/null +++ b/test/test_districts_created.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.districts_created import DistrictsCreated + + +class TestDistrictsCreated(unittest.TestCase): + """ DistrictsCreated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDistrictsCreated(self): + """ + Test DistrictsCreated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.districts_created.DistrictsCreated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_districts_deleted.py b/test/test_districts_deleted.py new file mode 100644 index 0000000..6ae89e7 --- /dev/null +++ b/test/test_districts_deleted.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.districts_deleted import DistrictsDeleted + + +class TestDistrictsDeleted(unittest.TestCase): + """ DistrictsDeleted unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDistrictsDeleted(self): + """ + Test DistrictsDeleted + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.districts_deleted.DistrictsDeleted() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_districts_response.py b/test/test_districts_response.py new file mode 100644 index 0000000..8bc9382 --- /dev/null +++ b/test/test_districts_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.districts_response import DistrictsResponse + + +class TestDistrictsResponse(unittest.TestCase): + """ DistrictsResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDistrictsResponse(self): + """ + Test DistrictsResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.districts_response.DistrictsResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_districts_updated.py b/test/test_districts_updated.py new file mode 100644 index 0000000..558e34b --- /dev/null +++ b/test/test_districts_updated.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.districts_updated import DistrictsUpdated + + +class TestDistrictsUpdated(unittest.TestCase): + """ DistrictsUpdated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDistrictsUpdated(self): + """ + Test DistrictsUpdated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.districts_updated.DistrictsUpdated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_event.py b/test/test_event.py new file mode 100644 index 0000000..51fbbab --- /dev/null +++ b/test/test_event.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event import Event + + +class TestEvent(unittest.TestCase): + """ Event unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEvent(self): + """ + Test Event + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.event.Event() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_event_response.py b/test/test_event_response.py new file mode 100644 index 0000000..c0e6011 --- /dev/null +++ b/test/test_event_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_response import EventResponse + + +class TestEventResponse(unittest.TestCase): + """ EventResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventResponse(self): + """ + Test EventResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.event_response.EventResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_events_api.py b/test/test_events_api.py new file mode 100644 index 0000000..8a930df --- /dev/null +++ b/test/test_events_api.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.events_api import EventsApi + + +class TestEventsApi(unittest.TestCase): + """ EventsApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.events_api.EventsApi() + + def tearDown(self): + pass + + def test_get_event(self): + """ + Test case for get_event + + + """ + pass + + def test_get_events(self): + """ + Test case for get_events + + + """ + pass + + def test_get_events_for_school(self): + """ + Test case for get_events_for_school + + + """ + pass + + def test_get_events_for_school_admin(self): + """ + Test case for get_events_for_school_admin + + + """ + pass + + def test_get_events_for_section(self): + """ + Test case for get_events_for_section + + + """ + pass + + def test_get_events_for_student(self): + """ + Test case for get_events_for_student + + + """ + pass + + def test_get_events_for_teacher(self): + """ + Test case for get_events_for_teacher + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_events_response.py b/test/test_events_response.py new file mode 100644 index 0000000..bc85f01 --- /dev/null +++ b/test/test_events_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.events_response import EventsResponse + + +class TestEventsResponse(unittest.TestCase): + """ EventsResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventsResponse(self): + """ + Test EventsResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.events_response.EventsResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_grade_levels_response.py b/test/test_grade_levels_response.py new file mode 100644 index 0000000..9e4e1ae --- /dev/null +++ b/test/test_grade_levels_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.grade_levels_response import GradeLevelsResponse + + +class TestGradeLevelsResponse(unittest.TestCase): + """ GradeLevelsResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGradeLevelsResponse(self): + """ + Test GradeLevelsResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.grade_levels_response.GradeLevelsResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_internal_error.py b/test/test_internal_error.py new file mode 100644 index 0000000..5a47a83 --- /dev/null +++ b/test/test_internal_error.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.internal_error import InternalError + + +class TestInternalError(unittest.TestCase): + """ InternalError unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInternalError(self): + """ + Test InternalError + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.internal_error.InternalError() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_location.py b/test/test_location.py new file mode 100644 index 0000000..f48bbb4 --- /dev/null +++ b/test/test_location.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.location import Location + + +class TestLocation(unittest.TestCase): + """ Location unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testLocation(self): + """ + Test Location + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.location.Location() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_name.py b/test/test_name.py new file mode 100644 index 0000000..eae2fda --- /dev/null +++ b/test/test_name.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.name import Name + + +class TestName(unittest.TestCase): + """ Name unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testName(self): + """ + Test Name + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.name.Name() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_not_found.py b/test/test_not_found.py new file mode 100644 index 0000000..32b3590 --- /dev/null +++ b/test/test_not_found.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.not_found import NotFound + + +class TestNotFound(unittest.TestCase): + """ NotFound unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNotFound(self): + """ + Test NotFound + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.not_found.NotFound() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_principal.py b/test/test_principal.py new file mode 100644 index 0000000..8ef919a --- /dev/null +++ b/test/test_principal.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.principal import Principal + + +class TestPrincipal(unittest.TestCase): + """ Principal unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPrincipal(self): + """ + Test Principal + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.principal.Principal() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_school.py b/test/test_school.py new file mode 100644 index 0000000..bfe9d44 --- /dev/null +++ b/test/test_school.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.school import School + + +class TestSchool(unittest.TestCase): + """ School unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchool(self): + """ + Test School + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.school.School() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_school_admin.py b/test/test_school_admin.py new file mode 100644 index 0000000..03e7e57 --- /dev/null +++ b/test/test_school_admin.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.school_admin import SchoolAdmin + + +class TestSchoolAdmin(unittest.TestCase): + """ SchoolAdmin unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchoolAdmin(self): + """ + Test SchoolAdmin + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.school_admin.SchoolAdmin() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_school_admin_object.py b/test/test_school_admin_object.py new file mode 100644 index 0000000..9195e0b --- /dev/null +++ b/test/test_school_admin_object.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.school_admin_object import SchoolAdminObject + + +class TestSchoolAdminObject(unittest.TestCase): + """ SchoolAdminObject unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchoolAdminObject(self): + """ + Test SchoolAdminObject + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.school_admin_object.SchoolAdminObject() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_school_admin_response.py b/test/test_school_admin_response.py new file mode 100644 index 0000000..7b0d02b --- /dev/null +++ b/test/test_school_admin_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.school_admin_response import SchoolAdminResponse + + +class TestSchoolAdminResponse(unittest.TestCase): + """ SchoolAdminResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchoolAdminResponse(self): + """ + Test SchoolAdminResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.school_admin_response.SchoolAdminResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_school_admins_response.py b/test/test_school_admins_response.py new file mode 100644 index 0000000..2c0c538 --- /dev/null +++ b/test/test_school_admins_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.school_admins_response import SchoolAdminsResponse + + +class TestSchoolAdminsResponse(unittest.TestCase): + """ SchoolAdminsResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchoolAdminsResponse(self): + """ + Test SchoolAdminsResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.school_admins_response.SchoolAdminsResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_school_object.py b/test/test_school_object.py new file mode 100644 index 0000000..57be8c0 --- /dev/null +++ b/test/test_school_object.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.school_object import SchoolObject + + +class TestSchoolObject(unittest.TestCase): + """ SchoolObject unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchoolObject(self): + """ + Test SchoolObject + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.school_object.SchoolObject() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_school_response.py b/test/test_school_response.py new file mode 100644 index 0000000..037e137 --- /dev/null +++ b/test/test_school_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.school_response import SchoolResponse + + +class TestSchoolResponse(unittest.TestCase): + """ SchoolResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchoolResponse(self): + """ + Test SchoolResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.school_response.SchoolResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_schooladmins_created.py b/test/test_schooladmins_created.py new file mode 100644 index 0000000..8f4db78 --- /dev/null +++ b/test/test_schooladmins_created.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.schooladmins_created import SchooladminsCreated + + +class TestSchooladminsCreated(unittest.TestCase): + """ SchooladminsCreated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchooladminsCreated(self): + """ + Test SchooladminsCreated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.schooladmins_created.SchooladminsCreated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_schooladmins_deleted.py b/test/test_schooladmins_deleted.py new file mode 100644 index 0000000..d929037 --- /dev/null +++ b/test/test_schooladmins_deleted.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.schooladmins_deleted import SchooladminsDeleted + + +class TestSchooladminsDeleted(unittest.TestCase): + """ SchooladminsDeleted unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchooladminsDeleted(self): + """ + Test SchooladminsDeleted + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.schooladmins_deleted.SchooladminsDeleted() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_schooladmins_updated.py b/test/test_schooladmins_updated.py new file mode 100644 index 0000000..722e66d --- /dev/null +++ b/test/test_schooladmins_updated.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.schooladmins_updated import SchooladminsUpdated + + +class TestSchooladminsUpdated(unittest.TestCase): + """ SchooladminsUpdated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchooladminsUpdated(self): + """ + Test SchooladminsUpdated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.schooladmins_updated.SchooladminsUpdated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_schools_created.py b/test/test_schools_created.py new file mode 100644 index 0000000..940229b --- /dev/null +++ b/test/test_schools_created.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.schools_created import SchoolsCreated + + +class TestSchoolsCreated(unittest.TestCase): + """ SchoolsCreated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchoolsCreated(self): + """ + Test SchoolsCreated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.schools_created.SchoolsCreated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_schools_deleted.py b/test/test_schools_deleted.py new file mode 100644 index 0000000..bac647a --- /dev/null +++ b/test/test_schools_deleted.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.schools_deleted import SchoolsDeleted + + +class TestSchoolsDeleted(unittest.TestCase): + """ SchoolsDeleted unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchoolsDeleted(self): + """ + Test SchoolsDeleted + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.schools_deleted.SchoolsDeleted() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_schools_response.py b/test/test_schools_response.py new file mode 100644 index 0000000..b1fe066 --- /dev/null +++ b/test/test_schools_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.schools_response import SchoolsResponse + + +class TestSchoolsResponse(unittest.TestCase): + """ SchoolsResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchoolsResponse(self): + """ + Test SchoolsResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.schools_response.SchoolsResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_schools_updated.py b/test/test_schools_updated.py new file mode 100644 index 0000000..6195a79 --- /dev/null +++ b/test/test_schools_updated.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.schools_updated import SchoolsUpdated + + +class TestSchoolsUpdated(unittest.TestCase): + """ SchoolsUpdated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchoolsUpdated(self): + """ + Test SchoolsUpdated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.schools_updated.SchoolsUpdated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_section.py b/test/test_section.py new file mode 100644 index 0000000..581e2ca --- /dev/null +++ b/test/test_section.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.section import Section + + +class TestSection(unittest.TestCase): + """ Section unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSection(self): + """ + Test Section + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.section.Section() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_section_object.py b/test/test_section_object.py new file mode 100644 index 0000000..a952190 --- /dev/null +++ b/test/test_section_object.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.section_object import SectionObject + + +class TestSectionObject(unittest.TestCase): + """ SectionObject unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSectionObject(self): + """ + Test SectionObject + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.section_object.SectionObject() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_section_response.py b/test/test_section_response.py new file mode 100644 index 0000000..4913cc8 --- /dev/null +++ b/test/test_section_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.section_response import SectionResponse + + +class TestSectionResponse(unittest.TestCase): + """ SectionResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSectionResponse(self): + """ + Test SectionResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.section_response.SectionResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sections_created.py b/test/test_sections_created.py new file mode 100644 index 0000000..0b595c9 --- /dev/null +++ b/test/test_sections_created.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sections_created import SectionsCreated + + +class TestSectionsCreated(unittest.TestCase): + """ SectionsCreated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSectionsCreated(self): + """ + Test SectionsCreated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.sections_created.SectionsCreated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sections_deleted.py b/test/test_sections_deleted.py new file mode 100644 index 0000000..d4c755a --- /dev/null +++ b/test/test_sections_deleted.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sections_deleted import SectionsDeleted + + +class TestSectionsDeleted(unittest.TestCase): + """ SectionsDeleted unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSectionsDeleted(self): + """ + Test SectionsDeleted + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.sections_deleted.SectionsDeleted() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sections_response.py b/test/test_sections_response.py new file mode 100644 index 0000000..9fb91a1 --- /dev/null +++ b/test/test_sections_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sections_response import SectionsResponse + + +class TestSectionsResponse(unittest.TestCase): + """ SectionsResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSectionsResponse(self): + """ + Test SectionsResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.sections_response.SectionsResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sections_updated.py b/test/test_sections_updated.py new file mode 100644 index 0000000..8ad7b37 --- /dev/null +++ b/test/test_sections_updated.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sections_updated import SectionsUpdated + + +class TestSectionsUpdated(unittest.TestCase): + """ SectionsUpdated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSectionsUpdated(self): + """ + Test SectionsUpdated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.sections_updated.SectionsUpdated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_student.py b/test/test_student.py new file mode 100644 index 0000000..fcc1c60 --- /dev/null +++ b/test/test_student.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.student import Student + + +class TestStudent(unittest.TestCase): + """ Student unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStudent(self): + """ + Test Student + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.student.Student() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_student_contact.py b/test/test_student_contact.py new file mode 100644 index 0000000..361c80e --- /dev/null +++ b/test/test_student_contact.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.student_contact import StudentContact + + +class TestStudentContact(unittest.TestCase): + """ StudentContact unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStudentContact(self): + """ + Test StudentContact + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.student_contact.StudentContact() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_student_contact_object.py b/test/test_student_contact_object.py new file mode 100644 index 0000000..3c9d57e --- /dev/null +++ b/test/test_student_contact_object.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.student_contact_object import StudentContactObject + + +class TestStudentContactObject(unittest.TestCase): + """ StudentContactObject unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStudentContactObject(self): + """ + Test StudentContactObject + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.student_contact_object.StudentContactObject() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_student_contact_response.py b/test/test_student_contact_response.py new file mode 100644 index 0000000..2e918d5 --- /dev/null +++ b/test/test_student_contact_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.student_contact_response import StudentContactResponse + + +class TestStudentContactResponse(unittest.TestCase): + """ StudentContactResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStudentContactResponse(self): + """ + Test StudentContactResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.student_contact_response.StudentContactResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_student_contacts_for_student_response.py b/test/test_student_contacts_for_student_response.py new file mode 100644 index 0000000..8d86027 --- /dev/null +++ b/test/test_student_contacts_for_student_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.student_contacts_for_student_response import StudentContactsForStudentResponse + + +class TestStudentContactsForStudentResponse(unittest.TestCase): + """ StudentContactsForStudentResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStudentContactsForStudentResponse(self): + """ + Test StudentContactsForStudentResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.student_contacts_for_student_response.StudentContactsForStudentResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_student_contacts_response.py b/test/test_student_contacts_response.py new file mode 100644 index 0000000..6ff3a43 --- /dev/null +++ b/test/test_student_contacts_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.student_contacts_response import StudentContactsResponse + + +class TestStudentContactsResponse(unittest.TestCase): + """ StudentContactsResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStudentContactsResponse(self): + """ + Test StudentContactsResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.student_contacts_response.StudentContactsResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_student_object.py b/test/test_student_object.py new file mode 100644 index 0000000..5d7cdc3 --- /dev/null +++ b/test/test_student_object.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.student_object import StudentObject + + +class TestStudentObject(unittest.TestCase): + """ StudentObject unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStudentObject(self): + """ + Test StudentObject + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.student_object.StudentObject() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_student_response.py b/test/test_student_response.py new file mode 100644 index 0000000..5eb5d25 --- /dev/null +++ b/test/test_student_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.student_response import StudentResponse + + +class TestStudentResponse(unittest.TestCase): + """ StudentResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStudentResponse(self): + """ + Test StudentResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.student_response.StudentResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_studentcontacts_created.py b/test/test_studentcontacts_created.py new file mode 100644 index 0000000..fd14de7 --- /dev/null +++ b/test/test_studentcontacts_created.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.studentcontacts_created import StudentcontactsCreated + + +class TestStudentcontactsCreated(unittest.TestCase): + """ StudentcontactsCreated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStudentcontactsCreated(self): + """ + Test StudentcontactsCreated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.studentcontacts_created.StudentcontactsCreated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_studentcontacts_deleted.py b/test/test_studentcontacts_deleted.py new file mode 100644 index 0000000..7914647 --- /dev/null +++ b/test/test_studentcontacts_deleted.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.studentcontacts_deleted import StudentcontactsDeleted + + +class TestStudentcontactsDeleted(unittest.TestCase): + """ StudentcontactsDeleted unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStudentcontactsDeleted(self): + """ + Test StudentcontactsDeleted + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.studentcontacts_deleted.StudentcontactsDeleted() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_studentcontacts_updated.py b/test/test_studentcontacts_updated.py new file mode 100644 index 0000000..19175d8 --- /dev/null +++ b/test/test_studentcontacts_updated.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.studentcontacts_updated import StudentcontactsUpdated + + +class TestStudentcontactsUpdated(unittest.TestCase): + """ StudentcontactsUpdated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStudentcontactsUpdated(self): + """ + Test StudentcontactsUpdated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.studentcontacts_updated.StudentcontactsUpdated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_students_created.py b/test/test_students_created.py new file mode 100644 index 0000000..19e4f47 --- /dev/null +++ b/test/test_students_created.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.students_created import StudentsCreated + + +class TestStudentsCreated(unittest.TestCase): + """ StudentsCreated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStudentsCreated(self): + """ + Test StudentsCreated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.students_created.StudentsCreated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_students_deleted.py b/test/test_students_deleted.py new file mode 100644 index 0000000..a11a768 --- /dev/null +++ b/test/test_students_deleted.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.students_deleted import StudentsDeleted + + +class TestStudentsDeleted(unittest.TestCase): + """ StudentsDeleted unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStudentsDeleted(self): + """ + Test StudentsDeleted + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.students_deleted.StudentsDeleted() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_students_response.py b/test/test_students_response.py new file mode 100644 index 0000000..cb0ac05 --- /dev/null +++ b/test/test_students_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.students_response import StudentsResponse + + +class TestStudentsResponse(unittest.TestCase): + """ StudentsResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStudentsResponse(self): + """ + Test StudentsResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.students_response.StudentsResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_students_updated.py b/test/test_students_updated.py new file mode 100644 index 0000000..dc3bbbf --- /dev/null +++ b/test/test_students_updated.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.students_updated import StudentsUpdated + + +class TestStudentsUpdated(unittest.TestCase): + """ StudentsUpdated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStudentsUpdated(self): + """ + Test StudentsUpdated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.students_updated.StudentsUpdated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_teacher.py b/test/test_teacher.py new file mode 100644 index 0000000..4fdce8d --- /dev/null +++ b/test/test_teacher.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.teacher import Teacher + + +class TestTeacher(unittest.TestCase): + """ Teacher unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTeacher(self): + """ + Test Teacher + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.teacher.Teacher() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_teacher_object.py b/test/test_teacher_object.py new file mode 100644 index 0000000..45c72db --- /dev/null +++ b/test/test_teacher_object.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.teacher_object import TeacherObject + + +class TestTeacherObject(unittest.TestCase): + """ TeacherObject unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTeacherObject(self): + """ + Test TeacherObject + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.teacher_object.TeacherObject() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_teacher_response.py b/test/test_teacher_response.py new file mode 100644 index 0000000..61acdd2 --- /dev/null +++ b/test/test_teacher_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.teacher_response import TeacherResponse + + +class TestTeacherResponse(unittest.TestCase): + """ TeacherResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTeacherResponse(self): + """ + Test TeacherResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.teacher_response.TeacherResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_teachers_created.py b/test/test_teachers_created.py new file mode 100644 index 0000000..74cbf8b --- /dev/null +++ b/test/test_teachers_created.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.teachers_created import TeachersCreated + + +class TestTeachersCreated(unittest.TestCase): + """ TeachersCreated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTeachersCreated(self): + """ + Test TeachersCreated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.teachers_created.TeachersCreated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_teachers_deleted.py b/test/test_teachers_deleted.py new file mode 100644 index 0000000..da8c238 --- /dev/null +++ b/test/test_teachers_deleted.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.teachers_deleted import TeachersDeleted + + +class TestTeachersDeleted(unittest.TestCase): + """ TeachersDeleted unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTeachersDeleted(self): + """ + Test TeachersDeleted + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.teachers_deleted.TeachersDeleted() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_teachers_response.py b/test/test_teachers_response.py new file mode 100644 index 0000000..3c3e78a --- /dev/null +++ b/test/test_teachers_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.teachers_response import TeachersResponse + + +class TestTeachersResponse(unittest.TestCase): + """ TeachersResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTeachersResponse(self): + """ + Test TeachersResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.teachers_response.TeachersResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_teachers_updated.py b/test/test_teachers_updated.py new file mode 100644 index 0000000..091d541 --- /dev/null +++ b/test/test_teachers_updated.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.teachers_updated import TeachersUpdated + + +class TestTeachersUpdated(unittest.TestCase): + """ TeachersUpdated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTeachersUpdated(self): + """ + Test TeachersUpdated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.teachers_updated.TeachersUpdated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_term.py b/test/test_term.py new file mode 100644 index 0000000..d4fc07a --- /dev/null +++ b/test/test_term.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.term import Term + + +class TestTerm(unittest.TestCase): + """ Term unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTerm(self): + """ + Test Term + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.term.Term() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..1cf0829 --- /dev/null +++ b/tox.ini @@ -0,0 +1,10 @@ +[tox] +envlist = py27, py3 + +[testenv] +deps=-r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands= + nosetests \ + [] \ No newline at end of file From fa0f6538e0fba916dd8cf47274eedf3b7409439e Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 19 Sep 2017 08:07:31 -0700 Subject: [PATCH 08/53] Renaming/moving files --- MANIFEST.in | 1 - README.md | 14 +- clever/__init__.py | 897 ++---------------- {swagger_client => clever}/api_client.py | 0 {swagger_client => clever}/apis/__init__.py | 0 {swagger_client => clever}/apis/data_api.py | 0 {swagger_client => clever}/apis/events_api.py | 0 {swagger_client => clever}/configuration.py | 2 +- {swagger_client => clever}/models/__init__.py | 0 .../models/bad_request.py | 0 .../models/credentials.py | 0 {swagger_client => clever}/models/district.py | 0 .../models/district_admin.py | 0 .../models/district_admin_response.py | 0 .../models/district_admins_response.py | 0 .../models/district_object.py | 0 .../models/district_response.py | 0 .../models/district_status.py | 0 .../models/district_status_response.py | 0 .../models/district_status_responses.py | 0 .../models/districts_created.py | 0 .../models/districts_deleted.py | 0 .../models/districts_response.py | 0 .../models/districts_updated.py | 0 {swagger_client => clever}/models/event.py | 0 .../models/event_response.py | 0 .../models/events_response.py | 0 .../models/grade_levels_response.py | 0 .../models/internal_error.py | 0 {swagger_client => clever}/models/location.py | 0 {swagger_client => clever}/models/name.py | 0 .../models/not_found.py | 0 .../models/principal.py | 0 {swagger_client => clever}/models/school.py | 0 .../models/school_admin.py | 0 .../models/school_admin_object.py | 0 .../models/school_admin_response.py | 0 .../models/school_admins_response.py | 0 .../models/school_object.py | 0 .../models/school_response.py | 0 .../models/schooladmins_created.py | 0 .../models/schooladmins_deleted.py | 0 .../models/schooladmins_updated.py | 0 .../models/schools_created.py | 0 .../models/schools_deleted.py | 0 .../models/schools_response.py | 0 .../models/schools_updated.py | 0 {swagger_client => clever}/models/section.py | 0 .../models/section_object.py | 0 .../models/section_response.py | 0 .../models/sections_created.py | 0 .../models/sections_deleted.py | 0 .../models/sections_response.py | 0 .../models/sections_updated.py | 0 {swagger_client => clever}/models/student.py | 0 .../models/student_contact.py | 0 .../models/student_contact_object.py | 0 .../models/student_contact_response.py | 0 .../student_contacts_for_student_response.py | 0 .../models/student_contacts_response.py | 0 .../models/student_object.py | 0 .../models/student_response.py | 0 .../models/studentcontacts_created.py | 0 .../models/studentcontacts_deleted.py | 0 .../models/studentcontacts_updated.py | 0 .../models/students_created.py | 0 .../models/students_deleted.py | 0 .../models/students_response.py | 0 .../models/students_updated.py | 0 {swagger_client => clever}/models/teacher.py | 0 .../models/teacher_object.py | 0 .../models/teacher_response.py | 0 .../models/teachers_created.py | 0 .../models/teachers_deleted.py | 0 .../models/teachers_response.py | 0 .../models/teachers_updated.py | 0 {swagger_client => clever}/models/term.py | 0 {swagger_client => clever}/rest.py | 0 docs/DataApi.md | 314 +++--- docs/EventsApi.md | 58 +- override/override.sh | 7 + setup.py | 2 +- swagger_client/__init__.py | 95 -- test/test_bad_request.py | 8 +- test/test_credentials.py | 8 +- test/test_data_api.py | 8 +- test/test_district.py | 8 +- test/test_district_admin.py | 8 +- test/test_district_admin_response.py | 8 +- test/test_district_admins_response.py | 8 +- test/test_district_object.py | 8 +- test/test_district_response.py | 8 +- test/test_district_status.py | 8 +- test/test_district_status_response.py | 8 +- test/test_district_status_responses.py | 8 +- test/test_districts_created.py | 8 +- test/test_districts_deleted.py | 8 +- test/test_districts_response.py | 8 +- test/test_districts_updated.py | 8 +- test/test_event.py | 8 +- test/test_event_response.py | 8 +- test/test_events_api.py | 8 +- test/test_events_response.py | 8 +- test/test_grade_levels_response.py | 8 +- test/test_internal_error.py | 8 +- test/test_location.py | 8 +- test/test_name.py | 8 +- test/test_not_found.py | 8 +- test/test_principal.py | 8 +- test/test_school.py | 8 +- test/test_school_admin.py | 8 +- test/test_school_admin_object.py | 8 +- test/test_school_admin_response.py | 8 +- test/test_school_admins_response.py | 8 +- test/test_school_object.py | 8 +- test/test_school_response.py | 8 +- test/test_schooladmins_created.py | 8 +- test/test_schooladmins_deleted.py | 8 +- test/test_schooladmins_updated.py | 8 +- test/test_schools_created.py | 8 +- test/test_schools_deleted.py | 8 +- test/test_schools_response.py | 8 +- test/test_schools_updated.py | 8 +- test/test_section.py | 8 +- test/test_section_object.py | 8 +- test/test_section_response.py | 8 +- test/test_sections_created.py | 8 +- test/test_sections_deleted.py | 8 +- test/test_sections_response.py | 8 +- test/test_sections_updated.py | 8 +- test/test_student.py | 8 +- test/test_student_contact.py | 8 +- test/test_student_contact_object.py | 8 +- test/test_student_contact_response.py | 8 +- ...t_student_contacts_for_student_response.py | 8 +- test/test_student_contacts_response.py | 8 +- test/test_student_object.py | 8 +- test/test_student_response.py | 8 +- test/test_studentcontacts_created.py | 8 +- test/test_studentcontacts_deleted.py | 8 +- test/test_studentcontacts_updated.py | 8 +- test/test_students_created.py | 8 +- test/test_students_deleted.py | 8 +- test/test_students_response.py | 8 +- test/test_students_updated.py | 8 +- test/test_teacher.py | 8 +- test/test_teacher_object.py | 8 +- test/test_teacher_response.py | 8 +- test/test_teachers_created.py | 8 +- test/test_teachers_deleted.py | 8 +- test/test_teachers_response.py | 8 +- test/test_teachers_updated.py | 8 +- test/test_term.py | 8 +- 153 files changed, 577 insertions(+), 1373 deletions(-) delete mode 100644 MANIFEST.in rename {swagger_client => clever}/api_client.py (100%) rename {swagger_client => clever}/apis/__init__.py (100%) rename {swagger_client => clever}/apis/data_api.py (100%) rename {swagger_client => clever}/apis/events_api.py (100%) rename {swagger_client => clever}/configuration.py (98%) rename {swagger_client => clever}/models/__init__.py (100%) rename {swagger_client => clever}/models/bad_request.py (100%) rename {swagger_client => clever}/models/credentials.py (100%) rename {swagger_client => clever}/models/district.py (100%) rename {swagger_client => clever}/models/district_admin.py (100%) rename {swagger_client => clever}/models/district_admin_response.py (100%) rename {swagger_client => clever}/models/district_admins_response.py (100%) rename {swagger_client => clever}/models/district_object.py (100%) rename {swagger_client => clever}/models/district_response.py (100%) rename {swagger_client => clever}/models/district_status.py (100%) rename {swagger_client => clever}/models/district_status_response.py (100%) rename {swagger_client => clever}/models/district_status_responses.py (100%) rename {swagger_client => clever}/models/districts_created.py (100%) rename {swagger_client => clever}/models/districts_deleted.py (100%) rename {swagger_client => clever}/models/districts_response.py (100%) rename {swagger_client => clever}/models/districts_updated.py (100%) rename {swagger_client => clever}/models/event.py (100%) rename {swagger_client => clever}/models/event_response.py (100%) rename {swagger_client => clever}/models/events_response.py (100%) rename {swagger_client => clever}/models/grade_levels_response.py (100%) rename {swagger_client => clever}/models/internal_error.py (100%) rename {swagger_client => clever}/models/location.py (100%) rename {swagger_client => clever}/models/name.py (100%) rename {swagger_client => clever}/models/not_found.py (100%) rename {swagger_client => clever}/models/principal.py (100%) rename {swagger_client => clever}/models/school.py (100%) rename {swagger_client => clever}/models/school_admin.py (100%) rename {swagger_client => clever}/models/school_admin_object.py (100%) rename {swagger_client => clever}/models/school_admin_response.py (100%) rename {swagger_client => clever}/models/school_admins_response.py (100%) rename {swagger_client => clever}/models/school_object.py (100%) rename {swagger_client => clever}/models/school_response.py (100%) rename {swagger_client => clever}/models/schooladmins_created.py (100%) rename {swagger_client => clever}/models/schooladmins_deleted.py (100%) rename {swagger_client => clever}/models/schooladmins_updated.py (100%) rename {swagger_client => clever}/models/schools_created.py (100%) rename {swagger_client => clever}/models/schools_deleted.py (100%) rename {swagger_client => clever}/models/schools_response.py (100%) rename {swagger_client => clever}/models/schools_updated.py (100%) rename {swagger_client => clever}/models/section.py (100%) rename {swagger_client => clever}/models/section_object.py (100%) rename {swagger_client => clever}/models/section_response.py (100%) rename {swagger_client => clever}/models/sections_created.py (100%) rename {swagger_client => clever}/models/sections_deleted.py (100%) rename {swagger_client => clever}/models/sections_response.py (100%) rename {swagger_client => clever}/models/sections_updated.py (100%) rename {swagger_client => clever}/models/student.py (100%) rename {swagger_client => clever}/models/student_contact.py (100%) rename {swagger_client => clever}/models/student_contact_object.py (100%) rename {swagger_client => clever}/models/student_contact_response.py (100%) rename {swagger_client => clever}/models/student_contacts_for_student_response.py (100%) rename {swagger_client => clever}/models/student_contacts_response.py (100%) rename {swagger_client => clever}/models/student_object.py (100%) rename {swagger_client => clever}/models/student_response.py (100%) rename {swagger_client => clever}/models/studentcontacts_created.py (100%) rename {swagger_client => clever}/models/studentcontacts_deleted.py (100%) rename {swagger_client => clever}/models/studentcontacts_updated.py (100%) rename {swagger_client => clever}/models/students_created.py (100%) rename {swagger_client => clever}/models/students_deleted.py (100%) rename {swagger_client => clever}/models/students_response.py (100%) rename {swagger_client => clever}/models/students_updated.py (100%) rename {swagger_client => clever}/models/teacher.py (100%) rename {swagger_client => clever}/models/teacher_object.py (100%) rename {swagger_client => clever}/models/teacher_response.py (100%) rename {swagger_client => clever}/models/teachers_created.py (100%) rename {swagger_client => clever}/models/teachers_deleted.py (100%) rename {swagger_client => clever}/models/teachers_response.py (100%) rename {swagger_client => clever}/models/teachers_updated.py (100%) rename {swagger_client => clever}/models/term.py (100%) rename {swagger_client => clever}/rest.py (100%) create mode 100755 override/override.sh delete mode 100644 swagger_client/__init__.py diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index c0a1f66..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1 +0,0 @@ -include *.txt clever/VERSION clever/data/clever.com_ca_bundle.crt diff --git a/README.md b/README.md index 01da04a..3d07cc3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# swagger-client +# clever-python The Clever API This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: @@ -23,7 +23,7 @@ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git Then import the package: ```python -import swagger_client +import clever ``` ### Setuptools @@ -37,7 +37,7 @@ python setup.py install --user Then import the package: ```python -import swagger_client +import clever ``` ## Getting Started @@ -47,14 +47,14 @@ Please follow the [installation procedure](#installation--usage) and then run th ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: diff --git a/clever/__init__.py b/clever/__init__.py index dea7f0a..e3697e1 100644 --- a/clever/__init__.py +++ b/clever/__init__.py @@ -1,802 +1,95 @@ -# Clever Python bindings -# API docs at https://clever.com/developers/docs -# Author: Rafael Garcia -# Borrows heavily from the Python bindings for the Stripe API - -# Imports -from __future__ import print_function -import logging -import os -import platform -import sys -import urllib -import textwrap -import time -import datetime -import types -import base64 -import pkg_resources -import six -# Use cStringIO if ita's available. Otherwise, StringIO is fine. -try: - import cStringIO as StringIO -except ImportError: - from six import StringIO - -# - Requests is the preferred HTTP library -# - Google App Engine has urlfetch -# - Use Pycurl if it's there (at least it verifies SSL certs) -# - Fall back to urllib2 with a warning if needed -_httplib = None - -try: - from google.appengine.api import urlfetch - _httplib = 'urlfetch' -except ImportError: - pass - -if not _httplib: - try: - import requests - _httplib = 'requests' - except ImportError: - pass - - try: - # Require version 0.8.8, but don't want to depend on distutils - version = requests.__version__ - major, minor, patch = [int(i) for i in version.split('.')] - except: - # Probably some new-fangled version, so it should support verify - pass - else: - if major == 0 and (minor < 8 or (minor == 8 and patch < 8)): - print('Warning: the Clever library requires that your Python "requests" library has a version no older than 0.8.8, but your "requests" library has version %s. Clever will fall back to an alternate HTTP library, so everything should work, though we recommend upgrading your "requests" library. (HINT: running "pip install -U requests" should upgrade your requests library to the latest version.)' % ( - version, ), file=sys.stderr) - _httplib = None - -if not _httplib: - try: - import pycurl - _httplib = 'pycurl' - except ImportError: - pass - -if not _httplib: - try: - import urllib2 - _httplib = 'urllib2' - print("Warning: the Clever library is falling back to urllib2 because pycurl isn't installed. urllib2's SSL implementation doesn't verify server certificates. For improved security, we suggest installing pycurl.", file=sys.stderr) - except ImportError: - pass - -if not _httplib: - raise ImportError( - "Clever requires one of pycurl, Google App Engine's urlfetch, or urllib2.") - -from .version import VERSION -from . import importer -json = importer.import_json() - -logger = logging.getLogger('clever') - -# Use certs chain bundle including in the package for SSL verification -CLEVER_CERTS = pkg_resources.resource_filename(__name__, 'data/clever.com_ca_bundle.crt') -API_VERSION = "v1.2" - -# Configuration variables - -global_auth = dict() -api_base = 'https://api.clever.com/' -verify_ssl_certs = True - - -def set_token(token): - global global_auth - global_auth = {'token': token} - - -def get_token(): - global global_auth - return global_auth.get('token', None) - -# Exceptions - - -class CleverError(Exception): - - def __init__(self, message=None, http_body=None, http_status=None, json_body=None): - super(CleverError, self).__init__(message) - self.http_body = http_body - self.http_status = http_status - self.json_body = json_body - - -class APIError(CleverError): - pass - - -class APIConnectionError(CleverError): - pass - - -class InvalidRequestError(CleverError): - - def __init__(self, message, http_body=None, http_status=None, json_body=None): - super(InvalidRequestError, self).__init__(message, http_body, http_status, json_body) - - -class AuthenticationError(CleverError): - pass - -class TooManyRequestsError(CleverError): - def __init__(self, message, res): - super(TooManyRequestsError, self).__init__(message, res['body'], res['code']) - self.http_headers = res['headers'] - - -def convert_to_clever_object(klass, resp, auth): - # TODO: to support includes we'll have to infer klass from resp['uri'] - if isinstance(resp, dict) and resp.get('data', None): - if isinstance(resp['data'], list): - return [convert_to_clever_object(klass, i, auth) for i in resp['data']] - elif isinstance(resp['data'], dict): - return klass.construct_from(resp['data'].copy(), auth) - elif isinstance(resp, six.string_types) or isinstance(resp, list) or isinstance(resp, dict) or isinstance(resp, bool): - return resp - else: - raise Exception('DONT KNOW WHAT TO DO WITH {0}'.format(resp)) - -# makes it easier to update a nested key in a dict - - -def put(d, keys, item): - if "." in keys: - key, rest = keys.split(".", 1) - if key not in d: - d[key] = {} - put(d[key], rest, item) - else: - d[keys] = item - -# Network transport - - -class APIRequestor(object): - - def __init__(self, auth=None): - self._auth = auth - - @classmethod - def api_url(http://github.com/cls,%20path=''): - return '%s%s' % (api_base, path) - - @classmethod - def _utf8(cls, value): - if isinstance(value, unicode): - return value.encode('utf-8') - else: - return value - - @classmethod - def _objects_to_ids(cls, d): - if isinstance(d, APIResource): - return d.id - elif isinstance(d, dict): - res = {} - for k, v in six.iteritems(d): - res[k] = cls._objects_to_ids(v) - return res - else: - return d - - @classmethod - def urlencode(cls, d): - """ - Internal: encode a dict for url representation - If we ever need fancy encoding of embedded objects do it here - """ - return six.moves.urllib.parse.urlencode(d) - - @classmethod - def jsonencode(cls, d): - """ - Internal: encode a dict for a post/patch body - """ - return json.dumps(d) - - def request(self, meth, url, params={}): - res, my_auth = self.request_raw(meth, url, params) - resp = self.interpret_response(res) - return resp, my_auth - - def handle_api_error(self, res, resp): - rbody, rheaders, rcode = res['body'], res['headers'], res['code'] - try: - error = resp['error'] - except (KeyError, TypeError): - raise APIError("Invalid response object from API: %r (HTTP response code was %d)" % - (rbody, rcode), rbody, rcode, resp) - - if rcode in [400]: - raise InvalidRequestError(error, rbody, rcode, resp) - elif rcode == 401: - raise AuthenticationError(error, rbody, rcode, resp) - elif rcode == 429: - raise TooManyRequestsError(error, res) - else: - raise APIError(error, rbody, rcode, resp) - - def request_raw(self, meth, url, params={}): - """ - Mechanism for issuing an API call - """ - my_auth = self._auth or global_auth - if my_auth is None: - raise AuthenticationError( - 'No authentication method provided. (HINT: "clever.api_key = " is deprecated. Set your API token using "clever.set_token()". You can generate API tokens from the Clever web interface. See https://clever.com/developers/docs for details.') - if my_auth.get('token') is None: - raise AuthenticationError('Must provide api token auth. {}'.format(my_auth)) - - abs_url = self.api_http://github.com/url(url) - params = params.copy() - self._objects_to_ids(params) - - ua = { - 'bindings_version': VERSION, - 'lang': 'python', - 'publisher': 'clever' - } - for attr, func in [['lang_version', platform.python_version], - ['platform', platform.platform], - ['uname', lambda: ' '.join(platform.uname())]]: - try: - val = func() - except Exception as e: - val = "!! %s" % e - ua[attr] = val - - headers = { - 'X-Clever-Client-User-Agent': json.dumps(ua), - 'User-Agent': 'Clever/%s PythonBindings/%s' % (API_VERSION, VERSION) - } - if my_auth.get('api_key', None) != None: - headers['Authorization'] = 'Basic {}'.format(base64.b64encode(my_auth['api_key'] + ':')) - elif my_auth.get('token', None) != None: - headers['Authorization'] = 'Bearer {}'.format(my_auth['token']) - make_request = { - 'requests': self.requests_request, - 'pycurl': self.pycurl_request, - 'urlfetch': self.urlfetch_request, - 'urllib2': self.urllib2_request - } - if _httplib in make_request: - res = make_request[_httplib](meth, abs_url, headers, params) - else: - raise CleverError( - "Clever Python library bug discovered: invalid httplib %s. Please report to tech-support@clever.com" % (_httplib, )) - logger.debug('API request to %s returned (response code, response body) of (%d, %r)' % - (abs_url, res['code'], res['body'])) - return res, my_auth - - def interpret_response(self, http_res): - rbody, rcode= http_res['body'], http_res['code'] - try: - resp = json.loads(rbody.decode('utf-8')) if rcode != 429 else {'error': 'Too Many Requests'} - except Exception: - raise APIError("Invalid response body from API: %s (HTTP response code was %d)" % - (rbody, rcode), rbody, rcode) - if not (200 <= rcode < 300): - self.handle_api_error(http_res, resp) - return resp - - def requests_request(self, meth, abs_url, headers, params): - meth = meth.lower() - if meth == 'get' or meth == 'delete': - if params: - abs_url = '%s?%s' % (abs_url, self.urlencode(params)) - data = None - elif meth in ['post', 'patch']: - data = self.jsonencode(params) - headers['Content-Type'] = 'application/json' - else: - raise APIConnectionError( - 'Unrecognized HTTP method %r. This may indicate a bug in the Clever bindings. Please contact tech-support@clever.com for assistance.' % (meth, )) - - try: - try: - # Use a CA_BUNDLE containing the following chain: - # - TrustedRoot - # - DigiCert High Assurance EV - 1 - # - # This ensures that only this certificate chain is used to verify SSL certs. - # Certs dervived from other ca certs will be treated as invalid. - # eg. https://api.twitter.com and https://api.stripe.com FAIL - # https://api.clever.com and https://api.github.com PASS - result = requests.request(meth, abs_url, - headers=headers, data=data, timeout=80, - verify=CLEVER_CERTS) - except TypeError as e: - raise TypeError( - 'Warning: It looks like your installed version of the "requests" library is not compatible with Clever\'s usage thereof. (HINT: The most likely cause is that your "requests" library is out of date. You can fix that by running "pip install -U requests".) The underlying error was: %s' % (e, )) - - # This causes the content to actually be read, which could cause - # e.g. a socket timeout. TODO: The other fetch methods probably - # are succeptible to the same and should be updated. - content = result.content - status_code = result.status_code - headers = result.headers - except Exception as e: - # Would catch just requests.exceptions.RequestException, but can - # also raise ValueError, RuntimeError, etc. - self.handle_requests_error(e) - return {'body': content, 'headers': headers, 'code': status_code} - - def handle_requests_error(self, e): - if isinstance(e, requests.exceptions.RequestException): - msg = "Unexpected error communicating with Clever. If this problem persists, let us know at tech-support@clever.com." - err = "%s: %s" % (type(e).__name__, e.message) - else: - msg = "Unexpected error communicating with Clever. It looks like there's probably a configuration issue locally. If this problem persists, let us know at tech-support@clever.com." - err = "A %s was raised" % (type(e).__name__, ) - if e.message: - err += " with error message %s" % (e.message, ) - else: - err += " with no error message" - msg = textwrap.fill(msg) + "\n\n(Network error: " + err + ")" - raise APIConnectionError(msg) - - def pycurl_request(self, meth, abs_url, headers, params): - s = StringIO() - rheader = StringIO() - curl = pycurl.Curl() - - meth = meth.lower() - if meth == 'get': - curl.setopt(pycurl.HTTPGET, 1) - # TODO: maybe be a bit less manual here - if params: - abs_url = '%s?%s' % (abs_url, self.urlencode(params)) - elif meth in ['post', 'patch']: - curl.setopt(pycurl.POST, 1) - curl.setopt(pycurl.POSTFIELDS, self.jsonencode(params)) - headers['Content-Type'] = 'application/json' - elif meth == 'delete': - curl.setopt(pycurl.CUSTOMREQUEST, 'DELETE') - if params: - raise APIConnectionError("Did not expect params in DELETE request") - else: - raise APIConnectionError( - 'Unrecognized HTTP method %r. This may indicate a bug in the Clever bindings. Please contact tech-support@clever.com for assistance.' % (meth, )) - - # pycurl doesn't like unicode URLs - abs_url = self._utf8(abs_url) - curl.setopt(pycurl.URL, abs_url) - curl.setopt(pycurl.WRITEFUNCTION, s.write) - curl.setopt(pycurl.NOSIGNAL, 1) - curl.setopt(pycurl.CONNECTTIMEOUT, 30) - curl.setopt(pycurl.TIMEOUT, 80) - curl.setopt(pycurl.HTTPHEADER, ['%s: %s' % (k, v) for k, v in six.iteritems(headers)]) - curl.setopt(pycurl.HEADERFUNCTION, rheader.write) - if verify_ssl_certs: - curl.setopt(pycurl.CAINFO, CLEVER_CERTS) - else: - curl.setopt(pycurl.SSL_VERIFYHOST, False) - - try: - curl.perform() - except pycurl.error as e: - self.handle_pycurl_error(e) - return {'body': s.getvalue(), 'headers': rheader.getvalue(), 'code': curl.getinfo(pycurl.RESPONSE_CODE)} - - def handle_pycurl_error(self, e): - if e[0] in [pycurl.E_COULDNT_CONNECT, - pycurl.E_COULDNT_RESOLVE_HOST, - pycurl.E_OPERATION_TIMEOUTED]: - msg = "Could not connect to Clever (%s). Please check your internet connection and try again. If this problem persists, you should check Clever's service status at http://status.clever.com." % ( - api_base, ) - elif e[0] == pycurl.E_SSL_CACERT or e[0] == pycurl.E_SSL_PEER_CERTIFICATE: - msg = "Could not verify Clever's SSL certificate. Please make sure that your network is not intercepting certificates. (Try going to %s in your browser)." % ( - api_base, ) - else: - msg = "Unexpected error communicating with Clever. If this problem persists, let us know at tech-support@clever.com." - msg = textwrap.fill(msg) + "\n\n(Network error: " + e[1] + ")" - raise APIConnectionError(msg) - - def urlfetch_request(self, meth, abs_url, headers, params): - args = {} - if meth == 'get': - abs_url = '%s?%s' % (abs_url, self.urlencode(params)) - elif meth in ['post', 'patch']: - args['payload'] = self.jsonencode(params) - headers['Content-Type'] = 'application/json' - elif meth == 'delete': - if params: - raise APIConnectionError("Did not expect params in DELETE request") - else: - raise APIConnectionError( - 'Unrecognized HTTP method %r. This may indicate a bug in the Clever bindings. Please contact tech-support@clever.com for assistance.' % (meth, )) - args['url'] = abs_url - args['method'] = meth - args['headers'] = headers - # Google App Engine doesn't let us specify our own cert bundle. - # However, that's ok because the CA bundle they use recognizes - # api.clever.com. - args['validate_certificate'] = verify_ssl_certs - # GAE requests time out after 60 seconds, so make sure we leave - # some time for the application to handle a slow Clever - args['deadline'] = 55 - - try: - result = urlfetch.fetch(**args) - except urlfetch.Error as e: - self.handle_urlfetch_error(e, abs_url) - return {'body': result.content, 'headers': result.headers, 'code': result.status_code} - - def handle_urlfetch_error(self, e, abs_url): - if isinstance(e, urlfetch.InvalidURLError): - msg = "The Clever library attempted to fetch an invalid URL (%r). This is likely due to a bug in the Clever Python bindings. Please let us know at tech-support@clever.com." % ( - abs_url, ) - elif isinstance(e, urlfetch.DownloadError): - msg = "There were a problem retrieving data from Clever." - elif isinstance(e, urlfetch.ResponseTooLargeError): - msg = "There was a problem receiving all of your data from Clever. This is likely due to a bug in Clever. Please let us know at tech-support@clever.com." - else: - msg = "Unexpected error communicating with Clever. If this problem persists, let us know at tech-support@clever.com." - msg = textwrap.fill(msg) + "\n\n(Network error: " + str(e) + ")" - raise APIConnectionError(msg) - - def urllib2_request(self, meth, abs_url, headers, params): - args = {} - if meth == 'get': - abs_url = '%s?%s' % (abs_url, self.urlencode(params)) - req = urllib2.Request(abs_url, None, headers) - elif meth in ['post', 'patch']: - body = self.jsonencode(params) - headers['Content-Type'] = 'application/json' - req = urllib2.Request(abs_url, body, headers) - if meth == 'patch': - req.get_method = lambda: 'PATCH' - elif meth == 'delete': - req = urllib2.Request(abs_url, None, headers) - req.get_method = lambda: 'DELETE' - if params: - raise APIConnectionError("Did not expect params in DELETE request") - else: - raise APIConnectionError( - 'Unrecognized HTTP method %r. This may indicate a bug in the Clever bindings. Please contact tech-support@clever.com for assistance.' % (meth, )) - - try: - response = urllib2.urlopen(req) - rbody = response.read() - rheader = response.info() - rcode = response.code - except urllib2.HTTPError as e: - rcode = e.code - rheader = None - rbody = e.read() - except (urllib2.URLError, ValueError) as e: - self.handle_urllib2_error(e, abs_url) - return {'body': rbody, 'headers': rheader, 'code': rcode} - - def handle_urllib2_error(self, e, abs_url): - msg = "Unexpected error communicating with Clever. If this problem persists, let us know at tech-support@clever.com." - msg = textwrap.fill(msg) + "\n\n(Network error: " + str(e) + ")" - raise APIConnectionError(msg) - - -class CleverObject(object): - _permanent_attributes = set(['_auth']) - - # Adding these to enable pickling - # http://docs.python.org/2/library/pickle.html#pickling-and-unpickling-normal-class-instances - def __getstate__(self): - return self.__dict__ - - def __setstate__(self, d): - self.__dict__.update(d) - - def __init__(self, id=None, auth=None): - self.__dict__['_values'] = set() - self.__dict__['_unsaved_values'] = set() - self.__dict__['_transient_values'] = set() - self.__dict__['_auth'] = auth - - if id: - self.id = id - - def __setattr__(self, k, v): - # if in dot notation, insert into _unsaved_values the key in dot notation. this will cause it to be properly PATCHed. - # remove these values when resetting state in refresh_from() - # also make correct update to _values and __dict__ dicts so that state is correct - # the end effect is that we can PATCH things in dot notation for selective - # updating of a system object - if '.' in k: - put(self.__dict__, k, v) - self._values.add(k.split('.', 1)[0]) - self._unsaved_values.add(k) - else: - self.__dict__[k] = v - self._values.add(k) - if k not in self._permanent_attributes: - self._unsaved_values.add(k) - - def __getattr__(self, k, obj=None): - if obj == None: - obj = self.__dict__ - if '.' in k: - key, rest = k.split('.', 1) - return self.__getattr__(rest, obj[key]) - else: - try: - return obj[k] - except KeyError: - pass - if k in self._transient_values: - raise AttributeError("%r object has no attribute %r. HINT: The %r attribute was set in the past, however. It was then wiped when refreshing the object with the result returned by Clever's API, probably as a result of a save(). The attributes currently available on this object are: %s" % - (type(self).__name__, k, k, ', '.join(self._values))) - else: - raise AttributeError("%r object has no attribute %r" % (type(self).__name__, k)) - - def __getitem__(self, k): - if k in self._values: - return self.__dict__[k] - elif k in self._transient_values: - raise KeyError("%r. HINT: The %r attribute was set in the past, however. It was then wiped when refreshing the object with the result returned by Clever's API, probably as a result of a save(). The attributes currently available on this object are: %s" % ( - k, k, ', '.join(self._values))) - else: - raise KeyError(k) - - def get(self, k, default=None): - try: - return self[k] - except KeyError: - return default - - def setdefault(self, k, default=None): - try: - return self[k] - except KeyError: - self[k] = default - return default - - def __setitem__(self, k, v): - setattr(self, k, v) - - def keys(self): - return self._values - - def values(self): - return self._values - - @classmethod - def construct_from(cls, values, auth): - instance = cls(values.get('id'), auth) - instance.refresh_from(values, auth) - return instance - - def refresh_from(self, values, auth, partial=False): - self._auth = auth - - # Wipe old state before setting new. This is useful for e.g. updating a - # customer, where there is no persistent card parameter. Mark those values - # which don't persist as transient - if partial: - removed = set() - else: - removed = self._values - set(values) - - for k in list(self._unsaved_values): - if '.' in k: - self._unsaved_values.discard(k) - - for k in removed: - if k in self._permanent_attributes: - continue - del self.__dict__[k] - self._values.discard(k) - self._transient_values.add(k) - self._unsaved_values.discard(k) - - for k, v in six.iteritems(values): - if k in self._permanent_attributes: - continue - self.__dict__[k] = convert_to_clever_object(self, v, auth) - self._values.add(k) - self._transient_values.discard(k) - self._unsaved_values.discard(k) - - def __repr__(self): - id_string = '' - if isinstance(self.get('id'), six.string_types): - id_string = ' id=%s' % self.get('id').encode('utf8') - - return '<%s%s at %s> JSON: %s' % (type(self).__name__, id_string, hex(id(self)), json.dumps(self.to_dict(), sort_keys=True, indent=2, cls=CleverObjectEncoder)) - - def __str__(self): - return json.dumps(self.to_dict(), sort_keys=True, indent=2, cls=CleverObjectEncoder) - - def to_dict(self): - def _serialize(o): - if isinstance(o, CleverObject): - return o.to_dict() - if isinstance(o, list): - return [_serialize(i) for i in o] - return o - - d = dict() - for k in sorted(self._values): - if k in self._permanent_attributes: - continue - v = getattr(self, k) - v = _serialize(v) - d[k] = v - return d - - -class CleverObjectEncoder(json.JSONEncoder): - - def default(self, obj): - if isinstance(obj, CleverObject): - return obj.to_dict() - else: - return json.JSONEncoder.default(self, obj) - - -class APIResource(CleverObject): - - def _ident(self): - return [self.get('id')] - - @classmethod - def retrieve(cls, id, auth=None): - instance = cls(id, auth) - instance.refresh() - return instance - - def refresh(self): - requestor = APIRequestor(self._auth) - url = self.instance_url() - response, auth = requestor.request('get', url) - self.refresh_from(response['data'], auth) - return self - - @classmethod - def class_name(cls): - if cls == APIResource: - raise NotImplementedError( - 'APIResource is an abstract class. You should perform actions on its subclasses (Charge, Customer, etc.)') - return "%s" % six.moves.urllib.parse.quote_plus(cls.__name__.lower()) - - @classmethod - def class_url(http://github.com/cls): - cls_name = cls.class_name() - return "/%s/%ss" % (API_VERSION, cls_name) - - def instance_url(http://github.com/self): - id = self.get('id') - if not id: - raise InvalidRequestError( - 'Could not determine which URL to request: %s instance has invalid ID: %r' % (type(self).__name__, id), 'id') - id = APIRequestor._utf8(id) - base = self.class_url() - extn = six.moves.urllib.parse.quote_plus(id) - return "%s/%s" % (base, extn) - -# Classes of API operations - - -def get_link(response, rel): - links = response.get('links', None) - for link in links: - if link.get('rel', None) == rel: - return link.get('uri') - return None - -class ListableAPIResource(APIResource): - ITER_LIMIT = 1000 - - @classmethod - def all(cls, auth=None, **params): - return list(cls.iter(auth, **params)) - - @classmethod - def iter(cls, auth=None, **params): - for unsupported_param in ['limit', 'page']: - if unsupported_param in params: - raise CleverError("ListableAPIResource does not support '%s' parameter" % - (unsupported_param,)) - - requestor = APIRequestor(auth) - url = cls.class_url() - params['limit'] = cls.ITER_LIMIT - - while url: - response, auth = requestor.request('get', url, params) - # Generate nothing when there is no data. - if len(response['data']) == 0: - break - for datum in convert_to_clever_object(cls, response, auth): - yield datum - - url = get_link(response, 'prev' if 'ending_before' in params else 'next') - # params already included in url from get_link - params = {} - - -class CreatableAPIResource(APIResource): - - @classmethod - def create(cls, auth=None, **params): - requestor = APIRequestor(auth) - url = cls.class_url() - response, auth = requestor.request('post', url, params) - return convert_to_clever_object(cls, response, auth) - - -class UpdateableAPIResource(APIResource): - - def save(self): - if self._unsaved_values: - requestor = APIRequestor(self._auth) - params = {} - for k in self._unsaved_values: - params[k] = getattr(self, k) - url = self.instance_url() - response, auth = requestor.request('patch', url, params) - self.refresh_from(response['data'], auth) - else: - logger.debug("Trying to save already saved object %r" % (self, )) - return self - - -class DeletableAPIResource(APIResource): - - def delete(self, **params): - requestor = APIRequestor(self._auth) - url = self.instance_url() - response, auth = requestor.request('delete', url, params) - self.refresh_from(response['data'], auth) - return self - -# API objects - - -class Contact(ListableAPIResource): - pass - - -class District(ListableAPIResource): - pass - - -class DistrictAdmin(ListableAPIResource): - @classmethod - def class_url(http://github.com/cls): - return "/%s/district_admins" % API_VERSION - - -class School(ListableAPIResource): - pass - - -class SchoolAdmin(ListableAPIResource): - @classmethod - def class_url(http://github.com/cls): - return "/%s/school_admins" % API_VERSION - - -class Section(ListableAPIResource): - pass - - -class Student(ListableAPIResource): - pass - - -class Teacher(ListableAPIResource): - pass - - -class Event(ListableAPIResource): - pass +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +# import models into sdk package +from .models.bad_request import BadRequest +from .models.credentials import Credentials +from .models.district import District +from .models.district_admin import DistrictAdmin +from .models.district_admin_response import DistrictAdminResponse +from .models.district_admins_response import DistrictAdminsResponse +from .models.district_object import DistrictObject +from .models.district_response import DistrictResponse +from .models.district_status import DistrictStatus +from .models.district_status_response import DistrictStatusResponse +from .models.district_status_responses import DistrictStatusResponses +from .models.districts_response import DistrictsResponse +from .models.event import Event +from .models.event_response import EventResponse +from .models.events_response import EventsResponse +from .models.grade_levels_response import GradeLevelsResponse +from .models.internal_error import InternalError +from .models.location import Location +from .models.name import Name +from .models.not_found import NotFound +from .models.principal import Principal +from .models.school import School +from .models.school_admin import SchoolAdmin +from .models.school_admin_object import SchoolAdminObject +from .models.school_admin_response import SchoolAdminResponse +from .models.school_admins_response import SchoolAdminsResponse +from .models.school_object import SchoolObject +from .models.school_response import SchoolResponse +from .models.schools_response import SchoolsResponse +from .models.section import Section +from .models.section_object import SectionObject +from .models.section_response import SectionResponse +from .models.sections_response import SectionsResponse +from .models.student import Student +from .models.student_contact import StudentContact +from .models.student_contact_object import StudentContactObject +from .models.student_contact_response import StudentContactResponse +from .models.student_contacts_for_student_response import StudentContactsForStudentResponse +from .models.student_contacts_response import StudentContactsResponse +from .models.student_object import StudentObject +from .models.student_response import StudentResponse +from .models.students_response import StudentsResponse +from .models.teacher import Teacher +from .models.teacher_object import TeacherObject +from .models.teacher_response import TeacherResponse +from .models.teachers_response import TeachersResponse +from .models.term import Term +from .models.districts_created import DistrictsCreated +from .models.districts_deleted import DistrictsDeleted +from .models.districts_updated import DistrictsUpdated +from .models.schooladmins_created import SchooladminsCreated +from .models.schooladmins_deleted import SchooladminsDeleted +from .models.schooladmins_updated import SchooladminsUpdated +from .models.schools_created import SchoolsCreated +from .models.schools_deleted import SchoolsDeleted +from .models.schools_updated import SchoolsUpdated +from .models.sections_created import SectionsCreated +from .models.sections_deleted import SectionsDeleted +from .models.sections_updated import SectionsUpdated +from .models.studentcontacts_created import StudentcontactsCreated +from .models.studentcontacts_deleted import StudentcontactsDeleted +from .models.studentcontacts_updated import StudentcontactsUpdated +from .models.students_created import StudentsCreated +from .models.students_deleted import StudentsDeleted +from .models.students_updated import StudentsUpdated +from .models.teachers_created import TeachersCreated +from .models.teachers_deleted import TeachersDeleted +from .models.teachers_updated import TeachersUpdated + +# import apis into sdk package +from .apis.data_api import DataApi +from .apis.events_api import EventsApi + +# import ApiClient +from .api_client import ApiClient + +from .configuration import Configuration + +configuration = Configuration() diff --git a/swagger_client/api_client.py b/clever/api_client.py similarity index 100% rename from swagger_client/api_client.py rename to clever/api_client.py diff --git a/swagger_client/apis/__init__.py b/clever/apis/__init__.py similarity index 100% rename from swagger_client/apis/__init__.py rename to clever/apis/__init__.py diff --git a/swagger_client/apis/data_api.py b/clever/apis/data_api.py similarity index 100% rename from swagger_client/apis/data_api.py rename to clever/apis/data_api.py diff --git a/swagger_client/apis/events_api.py b/clever/apis/events_api.py similarity index 100% rename from swagger_client/apis/events_api.py rename to clever/apis/events_api.py diff --git a/swagger_client/configuration.py b/clever/configuration.py similarity index 98% rename from swagger_client/configuration.py rename to clever/configuration.py index eee4bdb..82f276e 100644 --- a/swagger_client/configuration.py +++ b/clever/configuration.py @@ -66,7 +66,7 @@ def __init__(self): # Logging Settings self.logger = {} - self.logger["package_logger"] = logging.getLogger("swagger_client") + self.logger["package_logger"] = logging.getLogger("clever") self.logger["urllib3_logger"] = logging.getLogger("urllib3") # Log format self.logger_format = '%(asctime)s %(levelname)s %(message)s' diff --git a/swagger_client/models/__init__.py b/clever/models/__init__.py similarity index 100% rename from swagger_client/models/__init__.py rename to clever/models/__init__.py diff --git a/swagger_client/models/bad_request.py b/clever/models/bad_request.py similarity index 100% rename from swagger_client/models/bad_request.py rename to clever/models/bad_request.py diff --git a/swagger_client/models/credentials.py b/clever/models/credentials.py similarity index 100% rename from swagger_client/models/credentials.py rename to clever/models/credentials.py diff --git a/swagger_client/models/district.py b/clever/models/district.py similarity index 100% rename from swagger_client/models/district.py rename to clever/models/district.py diff --git a/swagger_client/models/district_admin.py b/clever/models/district_admin.py similarity index 100% rename from swagger_client/models/district_admin.py rename to clever/models/district_admin.py diff --git a/swagger_client/models/district_admin_response.py b/clever/models/district_admin_response.py similarity index 100% rename from swagger_client/models/district_admin_response.py rename to clever/models/district_admin_response.py diff --git a/swagger_client/models/district_admins_response.py b/clever/models/district_admins_response.py similarity index 100% rename from swagger_client/models/district_admins_response.py rename to clever/models/district_admins_response.py diff --git a/swagger_client/models/district_object.py b/clever/models/district_object.py similarity index 100% rename from swagger_client/models/district_object.py rename to clever/models/district_object.py diff --git a/swagger_client/models/district_response.py b/clever/models/district_response.py similarity index 100% rename from swagger_client/models/district_response.py rename to clever/models/district_response.py diff --git a/swagger_client/models/district_status.py b/clever/models/district_status.py similarity index 100% rename from swagger_client/models/district_status.py rename to clever/models/district_status.py diff --git a/swagger_client/models/district_status_response.py b/clever/models/district_status_response.py similarity index 100% rename from swagger_client/models/district_status_response.py rename to clever/models/district_status_response.py diff --git a/swagger_client/models/district_status_responses.py b/clever/models/district_status_responses.py similarity index 100% rename from swagger_client/models/district_status_responses.py rename to clever/models/district_status_responses.py diff --git a/swagger_client/models/districts_created.py b/clever/models/districts_created.py similarity index 100% rename from swagger_client/models/districts_created.py rename to clever/models/districts_created.py diff --git a/swagger_client/models/districts_deleted.py b/clever/models/districts_deleted.py similarity index 100% rename from swagger_client/models/districts_deleted.py rename to clever/models/districts_deleted.py diff --git a/swagger_client/models/districts_response.py b/clever/models/districts_response.py similarity index 100% rename from swagger_client/models/districts_response.py rename to clever/models/districts_response.py diff --git a/swagger_client/models/districts_updated.py b/clever/models/districts_updated.py similarity index 100% rename from swagger_client/models/districts_updated.py rename to clever/models/districts_updated.py diff --git a/swagger_client/models/event.py b/clever/models/event.py similarity index 100% rename from swagger_client/models/event.py rename to clever/models/event.py diff --git a/swagger_client/models/event_response.py b/clever/models/event_response.py similarity index 100% rename from swagger_client/models/event_response.py rename to clever/models/event_response.py diff --git a/swagger_client/models/events_response.py b/clever/models/events_response.py similarity index 100% rename from swagger_client/models/events_response.py rename to clever/models/events_response.py diff --git a/swagger_client/models/grade_levels_response.py b/clever/models/grade_levels_response.py similarity index 100% rename from swagger_client/models/grade_levels_response.py rename to clever/models/grade_levels_response.py diff --git a/swagger_client/models/internal_error.py b/clever/models/internal_error.py similarity index 100% rename from swagger_client/models/internal_error.py rename to clever/models/internal_error.py diff --git a/swagger_client/models/location.py b/clever/models/location.py similarity index 100% rename from swagger_client/models/location.py rename to clever/models/location.py diff --git a/swagger_client/models/name.py b/clever/models/name.py similarity index 100% rename from swagger_client/models/name.py rename to clever/models/name.py diff --git a/swagger_client/models/not_found.py b/clever/models/not_found.py similarity index 100% rename from swagger_client/models/not_found.py rename to clever/models/not_found.py diff --git a/swagger_client/models/principal.py b/clever/models/principal.py similarity index 100% rename from swagger_client/models/principal.py rename to clever/models/principal.py diff --git a/swagger_client/models/school.py b/clever/models/school.py similarity index 100% rename from swagger_client/models/school.py rename to clever/models/school.py diff --git a/swagger_client/models/school_admin.py b/clever/models/school_admin.py similarity index 100% rename from swagger_client/models/school_admin.py rename to clever/models/school_admin.py diff --git a/swagger_client/models/school_admin_object.py b/clever/models/school_admin_object.py similarity index 100% rename from swagger_client/models/school_admin_object.py rename to clever/models/school_admin_object.py diff --git a/swagger_client/models/school_admin_response.py b/clever/models/school_admin_response.py similarity index 100% rename from swagger_client/models/school_admin_response.py rename to clever/models/school_admin_response.py diff --git a/swagger_client/models/school_admins_response.py b/clever/models/school_admins_response.py similarity index 100% rename from swagger_client/models/school_admins_response.py rename to clever/models/school_admins_response.py diff --git a/swagger_client/models/school_object.py b/clever/models/school_object.py similarity index 100% rename from swagger_client/models/school_object.py rename to clever/models/school_object.py diff --git a/swagger_client/models/school_response.py b/clever/models/school_response.py similarity index 100% rename from swagger_client/models/school_response.py rename to clever/models/school_response.py diff --git a/swagger_client/models/schooladmins_created.py b/clever/models/schooladmins_created.py similarity index 100% rename from swagger_client/models/schooladmins_created.py rename to clever/models/schooladmins_created.py diff --git a/swagger_client/models/schooladmins_deleted.py b/clever/models/schooladmins_deleted.py similarity index 100% rename from swagger_client/models/schooladmins_deleted.py rename to clever/models/schooladmins_deleted.py diff --git a/swagger_client/models/schooladmins_updated.py b/clever/models/schooladmins_updated.py similarity index 100% rename from swagger_client/models/schooladmins_updated.py rename to clever/models/schooladmins_updated.py diff --git a/swagger_client/models/schools_created.py b/clever/models/schools_created.py similarity index 100% rename from swagger_client/models/schools_created.py rename to clever/models/schools_created.py diff --git a/swagger_client/models/schools_deleted.py b/clever/models/schools_deleted.py similarity index 100% rename from swagger_client/models/schools_deleted.py rename to clever/models/schools_deleted.py diff --git a/swagger_client/models/schools_response.py b/clever/models/schools_response.py similarity index 100% rename from swagger_client/models/schools_response.py rename to clever/models/schools_response.py diff --git a/swagger_client/models/schools_updated.py b/clever/models/schools_updated.py similarity index 100% rename from swagger_client/models/schools_updated.py rename to clever/models/schools_updated.py diff --git a/swagger_client/models/section.py b/clever/models/section.py similarity index 100% rename from swagger_client/models/section.py rename to clever/models/section.py diff --git a/swagger_client/models/section_object.py b/clever/models/section_object.py similarity index 100% rename from swagger_client/models/section_object.py rename to clever/models/section_object.py diff --git a/swagger_client/models/section_response.py b/clever/models/section_response.py similarity index 100% rename from swagger_client/models/section_response.py rename to clever/models/section_response.py diff --git a/swagger_client/models/sections_created.py b/clever/models/sections_created.py similarity index 100% rename from swagger_client/models/sections_created.py rename to clever/models/sections_created.py diff --git a/swagger_client/models/sections_deleted.py b/clever/models/sections_deleted.py similarity index 100% rename from swagger_client/models/sections_deleted.py rename to clever/models/sections_deleted.py diff --git a/swagger_client/models/sections_response.py b/clever/models/sections_response.py similarity index 100% rename from swagger_client/models/sections_response.py rename to clever/models/sections_response.py diff --git a/swagger_client/models/sections_updated.py b/clever/models/sections_updated.py similarity index 100% rename from swagger_client/models/sections_updated.py rename to clever/models/sections_updated.py diff --git a/swagger_client/models/student.py b/clever/models/student.py similarity index 100% rename from swagger_client/models/student.py rename to clever/models/student.py diff --git a/swagger_client/models/student_contact.py b/clever/models/student_contact.py similarity index 100% rename from swagger_client/models/student_contact.py rename to clever/models/student_contact.py diff --git a/swagger_client/models/student_contact_object.py b/clever/models/student_contact_object.py similarity index 100% rename from swagger_client/models/student_contact_object.py rename to clever/models/student_contact_object.py diff --git a/swagger_client/models/student_contact_response.py b/clever/models/student_contact_response.py similarity index 100% rename from swagger_client/models/student_contact_response.py rename to clever/models/student_contact_response.py diff --git a/swagger_client/models/student_contacts_for_student_response.py b/clever/models/student_contacts_for_student_response.py similarity index 100% rename from swagger_client/models/student_contacts_for_student_response.py rename to clever/models/student_contacts_for_student_response.py diff --git a/swagger_client/models/student_contacts_response.py b/clever/models/student_contacts_response.py similarity index 100% rename from swagger_client/models/student_contacts_response.py rename to clever/models/student_contacts_response.py diff --git a/swagger_client/models/student_object.py b/clever/models/student_object.py similarity index 100% rename from swagger_client/models/student_object.py rename to clever/models/student_object.py diff --git a/swagger_client/models/student_response.py b/clever/models/student_response.py similarity index 100% rename from swagger_client/models/student_response.py rename to clever/models/student_response.py diff --git a/swagger_client/models/studentcontacts_created.py b/clever/models/studentcontacts_created.py similarity index 100% rename from swagger_client/models/studentcontacts_created.py rename to clever/models/studentcontacts_created.py diff --git a/swagger_client/models/studentcontacts_deleted.py b/clever/models/studentcontacts_deleted.py similarity index 100% rename from swagger_client/models/studentcontacts_deleted.py rename to clever/models/studentcontacts_deleted.py diff --git a/swagger_client/models/studentcontacts_updated.py b/clever/models/studentcontacts_updated.py similarity index 100% rename from swagger_client/models/studentcontacts_updated.py rename to clever/models/studentcontacts_updated.py diff --git a/swagger_client/models/students_created.py b/clever/models/students_created.py similarity index 100% rename from swagger_client/models/students_created.py rename to clever/models/students_created.py diff --git a/swagger_client/models/students_deleted.py b/clever/models/students_deleted.py similarity index 100% rename from swagger_client/models/students_deleted.py rename to clever/models/students_deleted.py diff --git a/swagger_client/models/students_response.py b/clever/models/students_response.py similarity index 100% rename from swagger_client/models/students_response.py rename to clever/models/students_response.py diff --git a/swagger_client/models/students_updated.py b/clever/models/students_updated.py similarity index 100% rename from swagger_client/models/students_updated.py rename to clever/models/students_updated.py diff --git a/swagger_client/models/teacher.py b/clever/models/teacher.py similarity index 100% rename from swagger_client/models/teacher.py rename to clever/models/teacher.py diff --git a/swagger_client/models/teacher_object.py b/clever/models/teacher_object.py similarity index 100% rename from swagger_client/models/teacher_object.py rename to clever/models/teacher_object.py diff --git a/swagger_client/models/teacher_response.py b/clever/models/teacher_response.py similarity index 100% rename from swagger_client/models/teacher_response.py rename to clever/models/teacher_response.py diff --git a/swagger_client/models/teachers_created.py b/clever/models/teachers_created.py similarity index 100% rename from swagger_client/models/teachers_created.py rename to clever/models/teachers_created.py diff --git a/swagger_client/models/teachers_deleted.py b/clever/models/teachers_deleted.py similarity index 100% rename from swagger_client/models/teachers_deleted.py rename to clever/models/teachers_deleted.py diff --git a/swagger_client/models/teachers_response.py b/clever/models/teachers_response.py similarity index 100% rename from swagger_client/models/teachers_response.py rename to clever/models/teachers_response.py diff --git a/swagger_client/models/teachers_updated.py b/clever/models/teachers_updated.py similarity index 100% rename from swagger_client/models/teachers_updated.py rename to clever/models/teachers_updated.py diff --git a/swagger_client/models/term.py b/clever/models/term.py similarity index 100% rename from swagger_client/models/term.py rename to clever/models/term.py diff --git a/swagger_client/rest.py b/clever/rest.py similarity index 100% rename from swagger_client/rest.py rename to clever/rest.py diff --git a/docs/DataApi.md b/docs/DataApi.md index 78c6e46..c128559 100644 --- a/docs/DataApi.md +++ b/docs/DataApi.md @@ -1,4 +1,4 @@ -# swagger_client.DataApi +# clever.DataApi All URIs are relative to *https://api.clever.com/v1.2* @@ -56,15 +56,15 @@ Returns a specific student contact ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -106,15 +106,15 @@ Returns a list of student contacts ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) @@ -160,15 +160,15 @@ Returns the contacts for a student ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | limit = 56 # int | (optional) @@ -212,15 +212,15 @@ Returns a specific district ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -262,15 +262,15 @@ Returns a specific district admin ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -312,15 +312,15 @@ Returns a list of district admins ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) @@ -364,15 +364,15 @@ Returns the district for a school ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -414,15 +414,15 @@ Returns the district for a section ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -464,15 +464,15 @@ Returns the district for a student ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -514,15 +514,15 @@ Returns the district for a student contact ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -564,15 +564,15 @@ Returns the district for a teacher ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -614,15 +614,15 @@ Returns the status of the district ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -664,15 +664,15 @@ Returns a list of districts ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() try: api_response = api_instance.get_districts() @@ -710,15 +710,15 @@ Returns the grade levels for sections a teacher teaches ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -760,15 +760,15 @@ Returns a specific school ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -810,15 +810,15 @@ Returns a specific school admin ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -860,15 +860,15 @@ Returns a list of school admins ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) @@ -914,15 +914,15 @@ Returns the school for a section ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -964,15 +964,15 @@ Returns the primary school for a student ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -1014,15 +1014,15 @@ Retrieves school info for a teacher. ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -1064,15 +1064,15 @@ Returns a list of schools ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) @@ -1118,15 +1118,15 @@ Returns the schools for a school admin ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -1174,15 +1174,15 @@ Returns a specific section ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -1224,15 +1224,15 @@ Returns a list of sections ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) @@ -1278,15 +1278,15 @@ Returns the sections for a school ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -1334,15 +1334,15 @@ Returns the sections for a student ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -1390,15 +1390,15 @@ Returns the sections for a teacher ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -1446,15 +1446,15 @@ Returns a specific student ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -1496,15 +1496,15 @@ Returns the student for a student contact ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -1546,15 +1546,15 @@ Returns a list of students ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) @@ -1600,15 +1600,15 @@ Returns the students for a school ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -1656,15 +1656,15 @@ Returns the students for a section ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -1712,15 +1712,15 @@ Returns the students for a teacher ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -1768,15 +1768,15 @@ Returns a specific teacher ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -1818,15 +1818,15 @@ Returns the primary teacher for a section ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | try: @@ -1868,15 +1868,15 @@ Returns a list of teachers ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) @@ -1922,15 +1922,15 @@ Returns the teachers for a school ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -1978,15 +1978,15 @@ Returns the teachers for a section ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -2034,15 +2034,15 @@ Returns the teachers for a student ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.DataApi() +api_instance = clever.DataApi() id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) diff --git a/docs/EventsApi.md b/docs/EventsApi.md index a255bcf..b956266 100644 --- a/docs/EventsApi.md +++ b/docs/EventsApi.md @@ -1,4 +1,4 @@ -# swagger_client.EventsApi +# clever.EventsApi All URIs are relative to *https://api.clever.com/v1.2* @@ -24,15 +24,15 @@ Returns the specific event ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.EventsApi() +api_instance = clever.EventsApi() id = 'id_example' # str | try: @@ -74,15 +74,15 @@ Returns a list of events ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.EventsApi() +api_instance = clever.EventsApi() limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) @@ -128,15 +128,15 @@ Returns a list of events for a school ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.EventsApi() +api_instance = clever.EventsApi() id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -184,15 +184,15 @@ Returns a list of events for a school admin ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.EventsApi() +api_instance = clever.EventsApi() id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -240,15 +240,15 @@ Returns a list of events for a section ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.EventsApi() +api_instance = clever.EventsApi() id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -296,15 +296,15 @@ Returns a list of events for a student ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.EventsApi() +api_instance = clever.EventsApi() id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -352,15 +352,15 @@ Returns a list of events for a teacher ```python from __future__ import print_function import time -import swagger_client -from swagger_client.rest import ApiException +import clever +from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' +clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = swagger_client.EventsApi() +api_instance = clever.EventsApi() id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) diff --git a/override/override.sh b/override/override.sh new file mode 100755 index 0000000..a967208 --- /dev/null +++ b/override/override.sh @@ -0,0 +1,7 @@ +# Copy autogenerated files into clever directory and rename +cp -R swagger_client/. clever || true +rm -rf swagger_client|| true + +# Rename references of swagger client to Clever +git grep -l 'swagger_client' -- './*' ':(exclude)override/override.sh' | xargs sed -i "" 's/swagger_client/clever/g' +git grep -l 'swagger-client' -- './*' ':(exclude)override/override.sh' | xargs sed -i "" 's/swagger-client/clever-python/g' diff --git a/setup.py b/setup.py index 821aa2d..38360fd 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ import sys from setuptools import setup, find_packages -NAME = "swagger-client" +NAME = "clever-python" VERSION = "1.0.0" # To install the library, run the following # diff --git a/swagger_client/__init__.py b/swagger_client/__init__.py deleted file mode 100644 index e3697e1..0000000 --- a/swagger_client/__init__.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -# import models into sdk package -from .models.bad_request import BadRequest -from .models.credentials import Credentials -from .models.district import District -from .models.district_admin import DistrictAdmin -from .models.district_admin_response import DistrictAdminResponse -from .models.district_admins_response import DistrictAdminsResponse -from .models.district_object import DistrictObject -from .models.district_response import DistrictResponse -from .models.district_status import DistrictStatus -from .models.district_status_response import DistrictStatusResponse -from .models.district_status_responses import DistrictStatusResponses -from .models.districts_response import DistrictsResponse -from .models.event import Event -from .models.event_response import EventResponse -from .models.events_response import EventsResponse -from .models.grade_levels_response import GradeLevelsResponse -from .models.internal_error import InternalError -from .models.location import Location -from .models.name import Name -from .models.not_found import NotFound -from .models.principal import Principal -from .models.school import School -from .models.school_admin import SchoolAdmin -from .models.school_admin_object import SchoolAdminObject -from .models.school_admin_response import SchoolAdminResponse -from .models.school_admins_response import SchoolAdminsResponse -from .models.school_object import SchoolObject -from .models.school_response import SchoolResponse -from .models.schools_response import SchoolsResponse -from .models.section import Section -from .models.section_object import SectionObject -from .models.section_response import SectionResponse -from .models.sections_response import SectionsResponse -from .models.student import Student -from .models.student_contact import StudentContact -from .models.student_contact_object import StudentContactObject -from .models.student_contact_response import StudentContactResponse -from .models.student_contacts_for_student_response import StudentContactsForStudentResponse -from .models.student_contacts_response import StudentContactsResponse -from .models.student_object import StudentObject -from .models.student_response import StudentResponse -from .models.students_response import StudentsResponse -from .models.teacher import Teacher -from .models.teacher_object import TeacherObject -from .models.teacher_response import TeacherResponse -from .models.teachers_response import TeachersResponse -from .models.term import Term -from .models.districts_created import DistrictsCreated -from .models.districts_deleted import DistrictsDeleted -from .models.districts_updated import DistrictsUpdated -from .models.schooladmins_created import SchooladminsCreated -from .models.schooladmins_deleted import SchooladminsDeleted -from .models.schooladmins_updated import SchooladminsUpdated -from .models.schools_created import SchoolsCreated -from .models.schools_deleted import SchoolsDeleted -from .models.schools_updated import SchoolsUpdated -from .models.sections_created import SectionsCreated -from .models.sections_deleted import SectionsDeleted -from .models.sections_updated import SectionsUpdated -from .models.studentcontacts_created import StudentcontactsCreated -from .models.studentcontacts_deleted import StudentcontactsDeleted -from .models.studentcontacts_updated import StudentcontactsUpdated -from .models.students_created import StudentsCreated -from .models.students_deleted import StudentsDeleted -from .models.students_updated import StudentsUpdated -from .models.teachers_created import TeachersCreated -from .models.teachers_deleted import TeachersDeleted -from .models.teachers_updated import TeachersUpdated - -# import apis into sdk package -from .apis.data_api import DataApi -from .apis.events_api import EventsApi - -# import ApiClient -from .api_client import ApiClient - -from .configuration import Configuration - -configuration = Configuration() diff --git a/test/test_bad_request.py b/test/test_bad_request.py index c1715d5..f93fc04 100644 --- a/test/test_bad_request.py +++ b/test/test_bad_request.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.bad_request import BadRequest +import clever +from clever.rest import ApiException +from clever.models.bad_request import BadRequest class TestBadRequest(unittest.TestCase): @@ -36,7 +36,7 @@ def testBadRequest(self): Test BadRequest """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.bad_request.BadRequest() + #model = clever.models.bad_request.BadRequest() pass diff --git a/test/test_credentials.py b/test/test_credentials.py index 888732f..bf5e54b 100644 --- a/test/test_credentials.py +++ b/test/test_credentials.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.credentials import Credentials +import clever +from clever.rest import ApiException +from clever.models.credentials import Credentials class TestCredentials(unittest.TestCase): @@ -36,7 +36,7 @@ def testCredentials(self): Test Credentials """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.credentials.Credentials() + #model = clever.models.credentials.Credentials() pass diff --git a/test/test_data_api.py b/test/test_data_api.py index e34cde7..1518064 100644 --- a/test/test_data_api.py +++ b/test/test_data_api.py @@ -17,16 +17,16 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.apis.data_api import DataApi +import clever +from clever.rest import ApiException +from clever.apis.data_api import DataApi class TestDataApi(unittest.TestCase): """ DataApi unit test stubs """ def setUp(self): - self.api = swagger_client.apis.data_api.DataApi() + self.api = clever.apis.data_api.DataApi() def tearDown(self): pass diff --git a/test/test_district.py b/test/test_district.py index 564a202..0d70e40 100644 --- a/test/test_district.py +++ b/test/test_district.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.district import District +import clever +from clever.rest import ApiException +from clever.models.district import District class TestDistrict(unittest.TestCase): @@ -36,7 +36,7 @@ def testDistrict(self): Test District """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.district.District() + #model = clever.models.district.District() pass diff --git a/test/test_district_admin.py b/test/test_district_admin.py index 9735bda..a206473 100644 --- a/test/test_district_admin.py +++ b/test/test_district_admin.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.district_admin import DistrictAdmin +import clever +from clever.rest import ApiException +from clever.models.district_admin import DistrictAdmin class TestDistrictAdmin(unittest.TestCase): @@ -36,7 +36,7 @@ def testDistrictAdmin(self): Test DistrictAdmin """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.district_admin.DistrictAdmin() + #model = clever.models.district_admin.DistrictAdmin() pass diff --git a/test/test_district_admin_response.py b/test/test_district_admin_response.py index 1d9a7d9..a10749e 100644 --- a/test/test_district_admin_response.py +++ b/test/test_district_admin_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.district_admin_response import DistrictAdminResponse +import clever +from clever.rest import ApiException +from clever.models.district_admin_response import DistrictAdminResponse class TestDistrictAdminResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testDistrictAdminResponse(self): Test DistrictAdminResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.district_admin_response.DistrictAdminResponse() + #model = clever.models.district_admin_response.DistrictAdminResponse() pass diff --git a/test/test_district_admins_response.py b/test/test_district_admins_response.py index 8d5fb70..0adccfd 100644 --- a/test/test_district_admins_response.py +++ b/test/test_district_admins_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.district_admins_response import DistrictAdminsResponse +import clever +from clever.rest import ApiException +from clever.models.district_admins_response import DistrictAdminsResponse class TestDistrictAdminsResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testDistrictAdminsResponse(self): Test DistrictAdminsResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.district_admins_response.DistrictAdminsResponse() + #model = clever.models.district_admins_response.DistrictAdminsResponse() pass diff --git a/test/test_district_object.py b/test/test_district_object.py index 62108c0..637c63f 100644 --- a/test/test_district_object.py +++ b/test/test_district_object.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.district_object import DistrictObject +import clever +from clever.rest import ApiException +from clever.models.district_object import DistrictObject class TestDistrictObject(unittest.TestCase): @@ -36,7 +36,7 @@ def testDistrictObject(self): Test DistrictObject """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.district_object.DistrictObject() + #model = clever.models.district_object.DistrictObject() pass diff --git a/test/test_district_response.py b/test/test_district_response.py index 35e5503..4991d12 100644 --- a/test/test_district_response.py +++ b/test/test_district_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.district_response import DistrictResponse +import clever +from clever.rest import ApiException +from clever.models.district_response import DistrictResponse class TestDistrictResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testDistrictResponse(self): Test DistrictResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.district_response.DistrictResponse() + #model = clever.models.district_response.DistrictResponse() pass diff --git a/test/test_district_status.py b/test/test_district_status.py index 00b3359..35b0d7d 100644 --- a/test/test_district_status.py +++ b/test/test_district_status.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.district_status import DistrictStatus +import clever +from clever.rest import ApiException +from clever.models.district_status import DistrictStatus class TestDistrictStatus(unittest.TestCase): @@ -36,7 +36,7 @@ def testDistrictStatus(self): Test DistrictStatus """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.district_status.DistrictStatus() + #model = clever.models.district_status.DistrictStatus() pass diff --git a/test/test_district_status_response.py b/test/test_district_status_response.py index 231a87a..afafb96 100644 --- a/test/test_district_status_response.py +++ b/test/test_district_status_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.district_status_response import DistrictStatusResponse +import clever +from clever.rest import ApiException +from clever.models.district_status_response import DistrictStatusResponse class TestDistrictStatusResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testDistrictStatusResponse(self): Test DistrictStatusResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.district_status_response.DistrictStatusResponse() + #model = clever.models.district_status_response.DistrictStatusResponse() pass diff --git a/test/test_district_status_responses.py b/test/test_district_status_responses.py index 96523d6..4f0fbb4 100644 --- a/test/test_district_status_responses.py +++ b/test/test_district_status_responses.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.district_status_responses import DistrictStatusResponses +import clever +from clever.rest import ApiException +from clever.models.district_status_responses import DistrictStatusResponses class TestDistrictStatusResponses(unittest.TestCase): @@ -36,7 +36,7 @@ def testDistrictStatusResponses(self): Test DistrictStatusResponses """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.district_status_responses.DistrictStatusResponses() + #model = clever.models.district_status_responses.DistrictStatusResponses() pass diff --git a/test/test_districts_created.py b/test/test_districts_created.py index fa22790..045803c 100644 --- a/test/test_districts_created.py +++ b/test/test_districts_created.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.districts_created import DistrictsCreated +import clever +from clever.rest import ApiException +from clever.models.districts_created import DistrictsCreated class TestDistrictsCreated(unittest.TestCase): @@ -36,7 +36,7 @@ def testDistrictsCreated(self): Test DistrictsCreated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.districts_created.DistrictsCreated() + #model = clever.models.districts_created.DistrictsCreated() pass diff --git a/test/test_districts_deleted.py b/test/test_districts_deleted.py index 6ae89e7..4b448af 100644 --- a/test/test_districts_deleted.py +++ b/test/test_districts_deleted.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.districts_deleted import DistrictsDeleted +import clever +from clever.rest import ApiException +from clever.models.districts_deleted import DistrictsDeleted class TestDistrictsDeleted(unittest.TestCase): @@ -36,7 +36,7 @@ def testDistrictsDeleted(self): Test DistrictsDeleted """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.districts_deleted.DistrictsDeleted() + #model = clever.models.districts_deleted.DistrictsDeleted() pass diff --git a/test/test_districts_response.py b/test/test_districts_response.py index 8bc9382..33a1f3d 100644 --- a/test/test_districts_response.py +++ b/test/test_districts_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.districts_response import DistrictsResponse +import clever +from clever.rest import ApiException +from clever.models.districts_response import DistrictsResponse class TestDistrictsResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testDistrictsResponse(self): Test DistrictsResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.districts_response.DistrictsResponse() + #model = clever.models.districts_response.DistrictsResponse() pass diff --git a/test/test_districts_updated.py b/test/test_districts_updated.py index 558e34b..72b0ec9 100644 --- a/test/test_districts_updated.py +++ b/test/test_districts_updated.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.districts_updated import DistrictsUpdated +import clever +from clever.rest import ApiException +from clever.models.districts_updated import DistrictsUpdated class TestDistrictsUpdated(unittest.TestCase): @@ -36,7 +36,7 @@ def testDistrictsUpdated(self): Test DistrictsUpdated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.districts_updated.DistrictsUpdated() + #model = clever.models.districts_updated.DistrictsUpdated() pass diff --git a/test/test_event.py b/test/test_event.py index 51fbbab..72bbade 100644 --- a/test/test_event.py +++ b/test/test_event.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.event import Event +import clever +from clever.rest import ApiException +from clever.models.event import Event class TestEvent(unittest.TestCase): @@ -36,7 +36,7 @@ def testEvent(self): Test Event """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.event.Event() + #model = clever.models.event.Event() pass diff --git a/test/test_event_response.py b/test/test_event_response.py index c0e6011..73d1dae 100644 --- a/test/test_event_response.py +++ b/test/test_event_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.event_response import EventResponse +import clever +from clever.rest import ApiException +from clever.models.event_response import EventResponse class TestEventResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testEventResponse(self): Test EventResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.event_response.EventResponse() + #model = clever.models.event_response.EventResponse() pass diff --git a/test/test_events_api.py b/test/test_events_api.py index 8a930df..c8b3cfe 100644 --- a/test/test_events_api.py +++ b/test/test_events_api.py @@ -17,16 +17,16 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.apis.events_api import EventsApi +import clever +from clever.rest import ApiException +from clever.apis.events_api import EventsApi class TestEventsApi(unittest.TestCase): """ EventsApi unit test stubs """ def setUp(self): - self.api = swagger_client.apis.events_api.EventsApi() + self.api = clever.apis.events_api.EventsApi() def tearDown(self): pass diff --git a/test/test_events_response.py b/test/test_events_response.py index bc85f01..68405b3 100644 --- a/test/test_events_response.py +++ b/test/test_events_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.events_response import EventsResponse +import clever +from clever.rest import ApiException +from clever.models.events_response import EventsResponse class TestEventsResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testEventsResponse(self): Test EventsResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.events_response.EventsResponse() + #model = clever.models.events_response.EventsResponse() pass diff --git a/test/test_grade_levels_response.py b/test/test_grade_levels_response.py index 9e4e1ae..578d50b 100644 --- a/test/test_grade_levels_response.py +++ b/test/test_grade_levels_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.grade_levels_response import GradeLevelsResponse +import clever +from clever.rest import ApiException +from clever.models.grade_levels_response import GradeLevelsResponse class TestGradeLevelsResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testGradeLevelsResponse(self): Test GradeLevelsResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.grade_levels_response.GradeLevelsResponse() + #model = clever.models.grade_levels_response.GradeLevelsResponse() pass diff --git a/test/test_internal_error.py b/test/test_internal_error.py index 5a47a83..ffc00d7 100644 --- a/test/test_internal_error.py +++ b/test/test_internal_error.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.internal_error import InternalError +import clever +from clever.rest import ApiException +from clever.models.internal_error import InternalError class TestInternalError(unittest.TestCase): @@ -36,7 +36,7 @@ def testInternalError(self): Test InternalError """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.internal_error.InternalError() + #model = clever.models.internal_error.InternalError() pass diff --git a/test/test_location.py b/test/test_location.py index f48bbb4..ec66f50 100644 --- a/test/test_location.py +++ b/test/test_location.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.location import Location +import clever +from clever.rest import ApiException +from clever.models.location import Location class TestLocation(unittest.TestCase): @@ -36,7 +36,7 @@ def testLocation(self): Test Location """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.location.Location() + #model = clever.models.location.Location() pass diff --git a/test/test_name.py b/test/test_name.py index eae2fda..3439889 100644 --- a/test/test_name.py +++ b/test/test_name.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.name import Name +import clever +from clever.rest import ApiException +from clever.models.name import Name class TestName(unittest.TestCase): @@ -36,7 +36,7 @@ def testName(self): Test Name """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.name.Name() + #model = clever.models.name.Name() pass diff --git a/test/test_not_found.py b/test/test_not_found.py index 32b3590..8389659 100644 --- a/test/test_not_found.py +++ b/test/test_not_found.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.not_found import NotFound +import clever +from clever.rest import ApiException +from clever.models.not_found import NotFound class TestNotFound(unittest.TestCase): @@ -36,7 +36,7 @@ def testNotFound(self): Test NotFound """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.not_found.NotFound() + #model = clever.models.not_found.NotFound() pass diff --git a/test/test_principal.py b/test/test_principal.py index 8ef919a..1373600 100644 --- a/test/test_principal.py +++ b/test/test_principal.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.principal import Principal +import clever +from clever.rest import ApiException +from clever.models.principal import Principal class TestPrincipal(unittest.TestCase): @@ -36,7 +36,7 @@ def testPrincipal(self): Test Principal """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.principal.Principal() + #model = clever.models.principal.Principal() pass diff --git a/test/test_school.py b/test/test_school.py index bfe9d44..a7d5acd 100644 --- a/test/test_school.py +++ b/test/test_school.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.school import School +import clever +from clever.rest import ApiException +from clever.models.school import School class TestSchool(unittest.TestCase): @@ -36,7 +36,7 @@ def testSchool(self): Test School """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.school.School() + #model = clever.models.school.School() pass diff --git a/test/test_school_admin.py b/test/test_school_admin.py index 03e7e57..c53e233 100644 --- a/test/test_school_admin.py +++ b/test/test_school_admin.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.school_admin import SchoolAdmin +import clever +from clever.rest import ApiException +from clever.models.school_admin import SchoolAdmin class TestSchoolAdmin(unittest.TestCase): @@ -36,7 +36,7 @@ def testSchoolAdmin(self): Test SchoolAdmin """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.school_admin.SchoolAdmin() + #model = clever.models.school_admin.SchoolAdmin() pass diff --git a/test/test_school_admin_object.py b/test/test_school_admin_object.py index 9195e0b..35ce99d 100644 --- a/test/test_school_admin_object.py +++ b/test/test_school_admin_object.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.school_admin_object import SchoolAdminObject +import clever +from clever.rest import ApiException +from clever.models.school_admin_object import SchoolAdminObject class TestSchoolAdminObject(unittest.TestCase): @@ -36,7 +36,7 @@ def testSchoolAdminObject(self): Test SchoolAdminObject """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.school_admin_object.SchoolAdminObject() + #model = clever.models.school_admin_object.SchoolAdminObject() pass diff --git a/test/test_school_admin_response.py b/test/test_school_admin_response.py index 7b0d02b..d78b3d9 100644 --- a/test/test_school_admin_response.py +++ b/test/test_school_admin_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.school_admin_response import SchoolAdminResponse +import clever +from clever.rest import ApiException +from clever.models.school_admin_response import SchoolAdminResponse class TestSchoolAdminResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testSchoolAdminResponse(self): Test SchoolAdminResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.school_admin_response.SchoolAdminResponse() + #model = clever.models.school_admin_response.SchoolAdminResponse() pass diff --git a/test/test_school_admins_response.py b/test/test_school_admins_response.py index 2c0c538..0373690 100644 --- a/test/test_school_admins_response.py +++ b/test/test_school_admins_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.school_admins_response import SchoolAdminsResponse +import clever +from clever.rest import ApiException +from clever.models.school_admins_response import SchoolAdminsResponse class TestSchoolAdminsResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testSchoolAdminsResponse(self): Test SchoolAdminsResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.school_admins_response.SchoolAdminsResponse() + #model = clever.models.school_admins_response.SchoolAdminsResponse() pass diff --git a/test/test_school_object.py b/test/test_school_object.py index 57be8c0..72b5047 100644 --- a/test/test_school_object.py +++ b/test/test_school_object.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.school_object import SchoolObject +import clever +from clever.rest import ApiException +from clever.models.school_object import SchoolObject class TestSchoolObject(unittest.TestCase): @@ -36,7 +36,7 @@ def testSchoolObject(self): Test SchoolObject """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.school_object.SchoolObject() + #model = clever.models.school_object.SchoolObject() pass diff --git a/test/test_school_response.py b/test/test_school_response.py index 037e137..16ae1c8 100644 --- a/test/test_school_response.py +++ b/test/test_school_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.school_response import SchoolResponse +import clever +from clever.rest import ApiException +from clever.models.school_response import SchoolResponse class TestSchoolResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testSchoolResponse(self): Test SchoolResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.school_response.SchoolResponse() + #model = clever.models.school_response.SchoolResponse() pass diff --git a/test/test_schooladmins_created.py b/test/test_schooladmins_created.py index 8f4db78..13d98f6 100644 --- a/test/test_schooladmins_created.py +++ b/test/test_schooladmins_created.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.schooladmins_created import SchooladminsCreated +import clever +from clever.rest import ApiException +from clever.models.schooladmins_created import SchooladminsCreated class TestSchooladminsCreated(unittest.TestCase): @@ -36,7 +36,7 @@ def testSchooladminsCreated(self): Test SchooladminsCreated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.schooladmins_created.SchooladminsCreated() + #model = clever.models.schooladmins_created.SchooladminsCreated() pass diff --git a/test/test_schooladmins_deleted.py b/test/test_schooladmins_deleted.py index d929037..47a99a3 100644 --- a/test/test_schooladmins_deleted.py +++ b/test/test_schooladmins_deleted.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.schooladmins_deleted import SchooladminsDeleted +import clever +from clever.rest import ApiException +from clever.models.schooladmins_deleted import SchooladminsDeleted class TestSchooladminsDeleted(unittest.TestCase): @@ -36,7 +36,7 @@ def testSchooladminsDeleted(self): Test SchooladminsDeleted """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.schooladmins_deleted.SchooladminsDeleted() + #model = clever.models.schooladmins_deleted.SchooladminsDeleted() pass diff --git a/test/test_schooladmins_updated.py b/test/test_schooladmins_updated.py index 722e66d..c5df417 100644 --- a/test/test_schooladmins_updated.py +++ b/test/test_schooladmins_updated.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.schooladmins_updated import SchooladminsUpdated +import clever +from clever.rest import ApiException +from clever.models.schooladmins_updated import SchooladminsUpdated class TestSchooladminsUpdated(unittest.TestCase): @@ -36,7 +36,7 @@ def testSchooladminsUpdated(self): Test SchooladminsUpdated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.schooladmins_updated.SchooladminsUpdated() + #model = clever.models.schooladmins_updated.SchooladminsUpdated() pass diff --git a/test/test_schools_created.py b/test/test_schools_created.py index 940229b..62e02ec 100644 --- a/test/test_schools_created.py +++ b/test/test_schools_created.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.schools_created import SchoolsCreated +import clever +from clever.rest import ApiException +from clever.models.schools_created import SchoolsCreated class TestSchoolsCreated(unittest.TestCase): @@ -36,7 +36,7 @@ def testSchoolsCreated(self): Test SchoolsCreated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.schools_created.SchoolsCreated() + #model = clever.models.schools_created.SchoolsCreated() pass diff --git a/test/test_schools_deleted.py b/test/test_schools_deleted.py index bac647a..2399813 100644 --- a/test/test_schools_deleted.py +++ b/test/test_schools_deleted.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.schools_deleted import SchoolsDeleted +import clever +from clever.rest import ApiException +from clever.models.schools_deleted import SchoolsDeleted class TestSchoolsDeleted(unittest.TestCase): @@ -36,7 +36,7 @@ def testSchoolsDeleted(self): Test SchoolsDeleted """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.schools_deleted.SchoolsDeleted() + #model = clever.models.schools_deleted.SchoolsDeleted() pass diff --git a/test/test_schools_response.py b/test/test_schools_response.py index b1fe066..7ca680c 100644 --- a/test/test_schools_response.py +++ b/test/test_schools_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.schools_response import SchoolsResponse +import clever +from clever.rest import ApiException +from clever.models.schools_response import SchoolsResponse class TestSchoolsResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testSchoolsResponse(self): Test SchoolsResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.schools_response.SchoolsResponse() + #model = clever.models.schools_response.SchoolsResponse() pass diff --git a/test/test_schools_updated.py b/test/test_schools_updated.py index 6195a79..9b5e046 100644 --- a/test/test_schools_updated.py +++ b/test/test_schools_updated.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.schools_updated import SchoolsUpdated +import clever +from clever.rest import ApiException +from clever.models.schools_updated import SchoolsUpdated class TestSchoolsUpdated(unittest.TestCase): @@ -36,7 +36,7 @@ def testSchoolsUpdated(self): Test SchoolsUpdated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.schools_updated.SchoolsUpdated() + #model = clever.models.schools_updated.SchoolsUpdated() pass diff --git a/test/test_section.py b/test/test_section.py index 581e2ca..facb1d7 100644 --- a/test/test_section.py +++ b/test/test_section.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.section import Section +import clever +from clever.rest import ApiException +from clever.models.section import Section class TestSection(unittest.TestCase): @@ -36,7 +36,7 @@ def testSection(self): Test Section """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.section.Section() + #model = clever.models.section.Section() pass diff --git a/test/test_section_object.py b/test/test_section_object.py index a952190..580cf06 100644 --- a/test/test_section_object.py +++ b/test/test_section_object.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.section_object import SectionObject +import clever +from clever.rest import ApiException +from clever.models.section_object import SectionObject class TestSectionObject(unittest.TestCase): @@ -36,7 +36,7 @@ def testSectionObject(self): Test SectionObject """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.section_object.SectionObject() + #model = clever.models.section_object.SectionObject() pass diff --git a/test/test_section_response.py b/test/test_section_response.py index 4913cc8..e613096 100644 --- a/test/test_section_response.py +++ b/test/test_section_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.section_response import SectionResponse +import clever +from clever.rest import ApiException +from clever.models.section_response import SectionResponse class TestSectionResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testSectionResponse(self): Test SectionResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.section_response.SectionResponse() + #model = clever.models.section_response.SectionResponse() pass diff --git a/test/test_sections_created.py b/test/test_sections_created.py index 0b595c9..6eb84de 100644 --- a/test/test_sections_created.py +++ b/test/test_sections_created.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.sections_created import SectionsCreated +import clever +from clever.rest import ApiException +from clever.models.sections_created import SectionsCreated class TestSectionsCreated(unittest.TestCase): @@ -36,7 +36,7 @@ def testSectionsCreated(self): Test SectionsCreated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.sections_created.SectionsCreated() + #model = clever.models.sections_created.SectionsCreated() pass diff --git a/test/test_sections_deleted.py b/test/test_sections_deleted.py index d4c755a..70d697f 100644 --- a/test/test_sections_deleted.py +++ b/test/test_sections_deleted.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.sections_deleted import SectionsDeleted +import clever +from clever.rest import ApiException +from clever.models.sections_deleted import SectionsDeleted class TestSectionsDeleted(unittest.TestCase): @@ -36,7 +36,7 @@ def testSectionsDeleted(self): Test SectionsDeleted """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.sections_deleted.SectionsDeleted() + #model = clever.models.sections_deleted.SectionsDeleted() pass diff --git a/test/test_sections_response.py b/test/test_sections_response.py index 9fb91a1..565669e 100644 --- a/test/test_sections_response.py +++ b/test/test_sections_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.sections_response import SectionsResponse +import clever +from clever.rest import ApiException +from clever.models.sections_response import SectionsResponse class TestSectionsResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testSectionsResponse(self): Test SectionsResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.sections_response.SectionsResponse() + #model = clever.models.sections_response.SectionsResponse() pass diff --git a/test/test_sections_updated.py b/test/test_sections_updated.py index 8ad7b37..4d468a7 100644 --- a/test/test_sections_updated.py +++ b/test/test_sections_updated.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.sections_updated import SectionsUpdated +import clever +from clever.rest import ApiException +from clever.models.sections_updated import SectionsUpdated class TestSectionsUpdated(unittest.TestCase): @@ -36,7 +36,7 @@ def testSectionsUpdated(self): Test SectionsUpdated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.sections_updated.SectionsUpdated() + #model = clever.models.sections_updated.SectionsUpdated() pass diff --git a/test/test_student.py b/test/test_student.py index fcc1c60..d99235b 100644 --- a/test/test_student.py +++ b/test/test_student.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.student import Student +import clever +from clever.rest import ApiException +from clever.models.student import Student class TestStudent(unittest.TestCase): @@ -36,7 +36,7 @@ def testStudent(self): Test Student """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.student.Student() + #model = clever.models.student.Student() pass diff --git a/test/test_student_contact.py b/test/test_student_contact.py index 361c80e..c1a39dc 100644 --- a/test/test_student_contact.py +++ b/test/test_student_contact.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.student_contact import StudentContact +import clever +from clever.rest import ApiException +from clever.models.student_contact import StudentContact class TestStudentContact(unittest.TestCase): @@ -36,7 +36,7 @@ def testStudentContact(self): Test StudentContact """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.student_contact.StudentContact() + #model = clever.models.student_contact.StudentContact() pass diff --git a/test/test_student_contact_object.py b/test/test_student_contact_object.py index 3c9d57e..63dc41c 100644 --- a/test/test_student_contact_object.py +++ b/test/test_student_contact_object.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.student_contact_object import StudentContactObject +import clever +from clever.rest import ApiException +from clever.models.student_contact_object import StudentContactObject class TestStudentContactObject(unittest.TestCase): @@ -36,7 +36,7 @@ def testStudentContactObject(self): Test StudentContactObject """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.student_contact_object.StudentContactObject() + #model = clever.models.student_contact_object.StudentContactObject() pass diff --git a/test/test_student_contact_response.py b/test/test_student_contact_response.py index 2e918d5..a50ea8f 100644 --- a/test/test_student_contact_response.py +++ b/test/test_student_contact_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.student_contact_response import StudentContactResponse +import clever +from clever.rest import ApiException +from clever.models.student_contact_response import StudentContactResponse class TestStudentContactResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testStudentContactResponse(self): Test StudentContactResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.student_contact_response.StudentContactResponse() + #model = clever.models.student_contact_response.StudentContactResponse() pass diff --git a/test/test_student_contacts_for_student_response.py b/test/test_student_contacts_for_student_response.py index 8d86027..4e94acd 100644 --- a/test/test_student_contacts_for_student_response.py +++ b/test/test_student_contacts_for_student_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.student_contacts_for_student_response import StudentContactsForStudentResponse +import clever +from clever.rest import ApiException +from clever.models.student_contacts_for_student_response import StudentContactsForStudentResponse class TestStudentContactsForStudentResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testStudentContactsForStudentResponse(self): Test StudentContactsForStudentResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.student_contacts_for_student_response.StudentContactsForStudentResponse() + #model = clever.models.student_contacts_for_student_response.StudentContactsForStudentResponse() pass diff --git a/test/test_student_contacts_response.py b/test/test_student_contacts_response.py index 6ff3a43..3935c89 100644 --- a/test/test_student_contacts_response.py +++ b/test/test_student_contacts_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.student_contacts_response import StudentContactsResponse +import clever +from clever.rest import ApiException +from clever.models.student_contacts_response import StudentContactsResponse class TestStudentContactsResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testStudentContactsResponse(self): Test StudentContactsResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.student_contacts_response.StudentContactsResponse() + #model = clever.models.student_contacts_response.StudentContactsResponse() pass diff --git a/test/test_student_object.py b/test/test_student_object.py index 5d7cdc3..561ff4d 100644 --- a/test/test_student_object.py +++ b/test/test_student_object.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.student_object import StudentObject +import clever +from clever.rest import ApiException +from clever.models.student_object import StudentObject class TestStudentObject(unittest.TestCase): @@ -36,7 +36,7 @@ def testStudentObject(self): Test StudentObject """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.student_object.StudentObject() + #model = clever.models.student_object.StudentObject() pass diff --git a/test/test_student_response.py b/test/test_student_response.py index 5eb5d25..a68c9e6 100644 --- a/test/test_student_response.py +++ b/test/test_student_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.student_response import StudentResponse +import clever +from clever.rest import ApiException +from clever.models.student_response import StudentResponse class TestStudentResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testStudentResponse(self): Test StudentResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.student_response.StudentResponse() + #model = clever.models.student_response.StudentResponse() pass diff --git a/test/test_studentcontacts_created.py b/test/test_studentcontacts_created.py index fd14de7..542ba72 100644 --- a/test/test_studentcontacts_created.py +++ b/test/test_studentcontacts_created.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.studentcontacts_created import StudentcontactsCreated +import clever +from clever.rest import ApiException +from clever.models.studentcontacts_created import StudentcontactsCreated class TestStudentcontactsCreated(unittest.TestCase): @@ -36,7 +36,7 @@ def testStudentcontactsCreated(self): Test StudentcontactsCreated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.studentcontacts_created.StudentcontactsCreated() + #model = clever.models.studentcontacts_created.StudentcontactsCreated() pass diff --git a/test/test_studentcontacts_deleted.py b/test/test_studentcontacts_deleted.py index 7914647..1f9d6cd 100644 --- a/test/test_studentcontacts_deleted.py +++ b/test/test_studentcontacts_deleted.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.studentcontacts_deleted import StudentcontactsDeleted +import clever +from clever.rest import ApiException +from clever.models.studentcontacts_deleted import StudentcontactsDeleted class TestStudentcontactsDeleted(unittest.TestCase): @@ -36,7 +36,7 @@ def testStudentcontactsDeleted(self): Test StudentcontactsDeleted """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.studentcontacts_deleted.StudentcontactsDeleted() + #model = clever.models.studentcontacts_deleted.StudentcontactsDeleted() pass diff --git a/test/test_studentcontacts_updated.py b/test/test_studentcontacts_updated.py index 19175d8..2c5f99a 100644 --- a/test/test_studentcontacts_updated.py +++ b/test/test_studentcontacts_updated.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.studentcontacts_updated import StudentcontactsUpdated +import clever +from clever.rest import ApiException +from clever.models.studentcontacts_updated import StudentcontactsUpdated class TestStudentcontactsUpdated(unittest.TestCase): @@ -36,7 +36,7 @@ def testStudentcontactsUpdated(self): Test StudentcontactsUpdated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.studentcontacts_updated.StudentcontactsUpdated() + #model = clever.models.studentcontacts_updated.StudentcontactsUpdated() pass diff --git a/test/test_students_created.py b/test/test_students_created.py index 19e4f47..713bb28 100644 --- a/test/test_students_created.py +++ b/test/test_students_created.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.students_created import StudentsCreated +import clever +from clever.rest import ApiException +from clever.models.students_created import StudentsCreated class TestStudentsCreated(unittest.TestCase): @@ -36,7 +36,7 @@ def testStudentsCreated(self): Test StudentsCreated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.students_created.StudentsCreated() + #model = clever.models.students_created.StudentsCreated() pass diff --git a/test/test_students_deleted.py b/test/test_students_deleted.py index a11a768..94c6424 100644 --- a/test/test_students_deleted.py +++ b/test/test_students_deleted.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.students_deleted import StudentsDeleted +import clever +from clever.rest import ApiException +from clever.models.students_deleted import StudentsDeleted class TestStudentsDeleted(unittest.TestCase): @@ -36,7 +36,7 @@ def testStudentsDeleted(self): Test StudentsDeleted """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.students_deleted.StudentsDeleted() + #model = clever.models.students_deleted.StudentsDeleted() pass diff --git a/test/test_students_response.py b/test/test_students_response.py index cb0ac05..39ca999 100644 --- a/test/test_students_response.py +++ b/test/test_students_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.students_response import StudentsResponse +import clever +from clever.rest import ApiException +from clever.models.students_response import StudentsResponse class TestStudentsResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testStudentsResponse(self): Test StudentsResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.students_response.StudentsResponse() + #model = clever.models.students_response.StudentsResponse() pass diff --git a/test/test_students_updated.py b/test/test_students_updated.py index dc3bbbf..b2b40cc 100644 --- a/test/test_students_updated.py +++ b/test/test_students_updated.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.students_updated import StudentsUpdated +import clever +from clever.rest import ApiException +from clever.models.students_updated import StudentsUpdated class TestStudentsUpdated(unittest.TestCase): @@ -36,7 +36,7 @@ def testStudentsUpdated(self): Test StudentsUpdated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.students_updated.StudentsUpdated() + #model = clever.models.students_updated.StudentsUpdated() pass diff --git a/test/test_teacher.py b/test/test_teacher.py index 4fdce8d..4935903 100644 --- a/test/test_teacher.py +++ b/test/test_teacher.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.teacher import Teacher +import clever +from clever.rest import ApiException +from clever.models.teacher import Teacher class TestTeacher(unittest.TestCase): @@ -36,7 +36,7 @@ def testTeacher(self): Test Teacher """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.teacher.Teacher() + #model = clever.models.teacher.Teacher() pass diff --git a/test/test_teacher_object.py b/test/test_teacher_object.py index 45c72db..80b04f9 100644 --- a/test/test_teacher_object.py +++ b/test/test_teacher_object.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.teacher_object import TeacherObject +import clever +from clever.rest import ApiException +from clever.models.teacher_object import TeacherObject class TestTeacherObject(unittest.TestCase): @@ -36,7 +36,7 @@ def testTeacherObject(self): Test TeacherObject """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.teacher_object.TeacherObject() + #model = clever.models.teacher_object.TeacherObject() pass diff --git a/test/test_teacher_response.py b/test/test_teacher_response.py index 61acdd2..904e40d 100644 --- a/test/test_teacher_response.py +++ b/test/test_teacher_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.teacher_response import TeacherResponse +import clever +from clever.rest import ApiException +from clever.models.teacher_response import TeacherResponse class TestTeacherResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testTeacherResponse(self): Test TeacherResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.teacher_response.TeacherResponse() + #model = clever.models.teacher_response.TeacherResponse() pass diff --git a/test/test_teachers_created.py b/test/test_teachers_created.py index 74cbf8b..4bda808 100644 --- a/test/test_teachers_created.py +++ b/test/test_teachers_created.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.teachers_created import TeachersCreated +import clever +from clever.rest import ApiException +from clever.models.teachers_created import TeachersCreated class TestTeachersCreated(unittest.TestCase): @@ -36,7 +36,7 @@ def testTeachersCreated(self): Test TeachersCreated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.teachers_created.TeachersCreated() + #model = clever.models.teachers_created.TeachersCreated() pass diff --git a/test/test_teachers_deleted.py b/test/test_teachers_deleted.py index da8c238..7ac7331 100644 --- a/test/test_teachers_deleted.py +++ b/test/test_teachers_deleted.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.teachers_deleted import TeachersDeleted +import clever +from clever.rest import ApiException +from clever.models.teachers_deleted import TeachersDeleted class TestTeachersDeleted(unittest.TestCase): @@ -36,7 +36,7 @@ def testTeachersDeleted(self): Test TeachersDeleted """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.teachers_deleted.TeachersDeleted() + #model = clever.models.teachers_deleted.TeachersDeleted() pass diff --git a/test/test_teachers_response.py b/test/test_teachers_response.py index 3c3e78a..5c5a9bb 100644 --- a/test/test_teachers_response.py +++ b/test/test_teachers_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.teachers_response import TeachersResponse +import clever +from clever.rest import ApiException +from clever.models.teachers_response import TeachersResponse class TestTeachersResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testTeachersResponse(self): Test TeachersResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.teachers_response.TeachersResponse() + #model = clever.models.teachers_response.TeachersResponse() pass diff --git a/test/test_teachers_updated.py b/test/test_teachers_updated.py index 091d541..7321e9a 100644 --- a/test/test_teachers_updated.py +++ b/test/test_teachers_updated.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.teachers_updated import TeachersUpdated +import clever +from clever.rest import ApiException +from clever.models.teachers_updated import TeachersUpdated class TestTeachersUpdated(unittest.TestCase): @@ -36,7 +36,7 @@ def testTeachersUpdated(self): Test TeachersUpdated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.teachers_updated.TeachersUpdated() + #model = clever.models.teachers_updated.TeachersUpdated() pass diff --git a/test/test_term.py b/test/test_term.py index d4fc07a..d4a0861 100644 --- a/test/test_term.py +++ b/test/test_term.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.term import Term +import clever +from clever.rest import ApiException +from clever.models.term import Term class TestTerm(unittest.TestCase): @@ -36,7 +36,7 @@ def testTerm(self): Test Term """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.term.Term() + #model = clever.models.term.Term() pass From 96f6fab0163b23f06eb300bdac7e0a17ba405d92 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 19 Sep 2017 21:30:57 +0000 Subject: [PATCH 09/53] Handle events --- clever/api_client.py | 4 ++++ clever/models/districts_created.py | 3 ++- clever/models/districts_deleted.py | 3 ++- clever/models/districts_updated.py | 3 ++- clever/models/schooladmins_created.py | 3 ++- clever/models/schooladmins_deleted.py | 3 ++- clever/models/schooladmins_updated.py | 3 ++- clever/models/schools_created.py | 4 ++-- clever/models/schools_deleted.py | 3 ++- clever/models/schools_updated.py | 3 ++- clever/models/sections_created.py | 3 ++- clever/models/sections_deleted.py | 3 ++- clever/models/sections_updated.py | 3 ++- clever/models/studentcontacts_created.py | 3 ++- clever/models/studentcontacts_deleted.py | 3 ++- clever/models/studentcontacts_updated.py | 3 ++- clever/models/students_created.py | 3 ++- clever/models/students_deleted.py | 3 ++- clever/models/students_updated.py | 3 ++- clever/models/teachers_created.py | 3 ++- clever/models/teachers_deleted.py | 3 ++- clever/models/teachers_updated.py | 3 ++- 22 files changed, 46 insertions(+), 22 deletions(-) diff --git a/clever/api_client.py b/clever/api_client.py index 9605290..bfb63a0 100644 --- a/clever/api_client.py +++ b/clever/api_client.py @@ -261,6 +261,10 @@ def __deserialize(self, data, klass): return {k: self.__deserialize(v, sub_kls) for k, v in iteritems(data)} + if klass == 'Event': + klass = eval('models.'+''.join(data['type'].title().split('.'))) + return self.__deserialize(data,klass) + # convert str to class if klass in self.NATIVE_TYPES_MAPPING: klass = self.NATIVE_TYPES_MAPPING[klass] diff --git a/clever/models/districts_created.py b/clever/models/districts_created.py index 7dfb035..6a35562 100644 --- a/clever/models/districts_created.py +++ b/clever/models/districts_created.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class DistrictsCreated(object): +class DistrictsCreated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/districts_deleted.py b/clever/models/districts_deleted.py index f395682..6c4cb77 100644 --- a/clever/models/districts_deleted.py +++ b/clever/models/districts_deleted.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class DistrictsDeleted(object): +class DistrictsDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/districts_updated.py b/clever/models/districts_updated.py index f118560..ea0f981 100644 --- a/clever/models/districts_updated.py +++ b/clever/models/districts_updated.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class DistrictsUpdated(object): +class DistrictsUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/schooladmins_created.py b/clever/models/schooladmins_created.py index 8be53e9..aa5c419 100644 --- a/clever/models/schooladmins_created.py +++ b/clever/models/schooladmins_created.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class SchooladminsCreated(object): +class SchooladminsCreated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/schooladmins_deleted.py b/clever/models/schooladmins_deleted.py index 8207378..503282e 100644 --- a/clever/models/schooladmins_deleted.py +++ b/clever/models/schooladmins_deleted.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class SchooladminsDeleted(object): +class SchooladminsDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/schooladmins_updated.py b/clever/models/schooladmins_updated.py index f48f3ed..3f2847a 100644 --- a/clever/models/schooladmins_updated.py +++ b/clever/models/schooladmins_updated.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class SchooladminsUpdated(object): +class SchooladminsUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/schools_created.py b/clever/models/schools_created.py index 06d14f3..5ce64bf 100644 --- a/clever/models/schools_created.py +++ b/clever/models/schools_created.py @@ -14,9 +14,9 @@ from pprint import pformat from six import iteritems import re +import event - -class SchoolsCreated(object): +class SchoolsCreated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/schools_deleted.py b/clever/models/schools_deleted.py index e64f820..59570db 100644 --- a/clever/models/schools_deleted.py +++ b/clever/models/schools_deleted.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class SchoolsDeleted(object): +class SchoolsDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/schools_updated.py b/clever/models/schools_updated.py index d30c424..5423629 100644 --- a/clever/models/schools_updated.py +++ b/clever/models/schools_updated.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class SchoolsUpdated(object): +class SchoolsUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/sections_created.py b/clever/models/sections_created.py index a08a5f3..ab1b541 100644 --- a/clever/models/sections_created.py +++ b/clever/models/sections_created.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class SectionsCreated(object): +class SectionsCreated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/sections_deleted.py b/clever/models/sections_deleted.py index 761710d..0b129ca 100644 --- a/clever/models/sections_deleted.py +++ b/clever/models/sections_deleted.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class SectionsDeleted(object): +class SectionsDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/sections_updated.py b/clever/models/sections_updated.py index 7814edf..4b3f68e 100644 --- a/clever/models/sections_updated.py +++ b/clever/models/sections_updated.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class SectionsUpdated(object): +class SectionsUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/studentcontacts_created.py b/clever/models/studentcontacts_created.py index 82c3fd1..d9825c6 100644 --- a/clever/models/studentcontacts_created.py +++ b/clever/models/studentcontacts_created.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class StudentcontactsCreated(object): +class StudentcontactsCreated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/studentcontacts_deleted.py b/clever/models/studentcontacts_deleted.py index 0ebeaf3..6ebefaf 100644 --- a/clever/models/studentcontacts_deleted.py +++ b/clever/models/studentcontacts_deleted.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class StudentcontactsDeleted(object): +class StudentcontactsDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/studentcontacts_updated.py b/clever/models/studentcontacts_updated.py index 1ad8af9..3d9094a 100644 --- a/clever/models/studentcontacts_updated.py +++ b/clever/models/studentcontacts_updated.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class StudentcontactsUpdated(object): +class StudentcontactsUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/students_created.py b/clever/models/students_created.py index e43734c..4ccd654 100644 --- a/clever/models/students_created.py +++ b/clever/models/students_created.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class StudentsCreated(object): +class StudentsCreated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/students_deleted.py b/clever/models/students_deleted.py index 51ee41d..6b16773 100644 --- a/clever/models/students_deleted.py +++ b/clever/models/students_deleted.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class StudentsDeleted(object): +class StudentsDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/students_updated.py b/clever/models/students_updated.py index 2576ac5..8015b49 100644 --- a/clever/models/students_updated.py +++ b/clever/models/students_updated.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class StudentsUpdated(object): +class StudentsUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/teachers_created.py b/clever/models/teachers_created.py index ad71eec..e089c3d 100644 --- a/clever/models/teachers_created.py +++ b/clever/models/teachers_created.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class TeachersCreated(object): +class TeachersCreated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/teachers_deleted.py b/clever/models/teachers_deleted.py index d7cbc8c..9427404 100644 --- a/clever/models/teachers_deleted.py +++ b/clever/models/teachers_deleted.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class TeachersDeleted(object): +class TeachersDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/clever/models/teachers_updated.py b/clever/models/teachers_updated.py index 669f320..78bec45 100644 --- a/clever/models/teachers_updated.py +++ b/clever/models/teachers_updated.py @@ -14,9 +14,10 @@ from pprint import pformat from six import iteritems import re +import event -class TeachersUpdated(object): +class TeachersUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. From d12716ff20a1ec9a9d691c2c42e6e9ae7113cab3 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 19 Sep 2017 22:29:20 +0000 Subject: [PATCH 10/53] Add events overrides --- override/api_client.py | 637 ++++++++++++++++++++++++++++ override/districts_created.py | 203 +++++++++ override/districts_deleted.py | 203 +++++++++ override/districts_updated.py | 203 +++++++++ override/override.sh | 6 + override/schooladmins_created.py | 203 +++++++++ override/schooladmins_deleted.py | 203 +++++++++ override/schooladmins_updated.py | 203 +++++++++ override/schools_created.py | 202 +++++++++ override/schools_deleted.py | 203 +++++++++ override/schools_updated.py | 203 +++++++++ override/sections_created.py | 203 +++++++++ override/sections_deleted.py | 203 +++++++++ override/sections_updated.py | 203 +++++++++ override/studentcontacts_created.py | 203 +++++++++ override/studentcontacts_deleted.py | 203 +++++++++ override/studentcontacts_updated.py | 203 +++++++++ override/students_created.py | 203 +++++++++ override/students_deleted.py | 203 +++++++++ override/students_updated.py | 203 +++++++++ override/teachers_created.py | 203 +++++++++ override/teachers_deleted.py | 203 +++++++++ override/teachers_updated.py | 203 +++++++++ 23 files changed, 4905 insertions(+) create mode 100644 override/api_client.py create mode 100644 override/districts_created.py create mode 100644 override/districts_deleted.py create mode 100644 override/districts_updated.py create mode 100644 override/schooladmins_created.py create mode 100644 override/schooladmins_deleted.py create mode 100644 override/schooladmins_updated.py create mode 100644 override/schools_created.py create mode 100644 override/schools_deleted.py create mode 100644 override/schools_updated.py create mode 100644 override/sections_created.py create mode 100644 override/sections_deleted.py create mode 100644 override/sections_updated.py create mode 100644 override/studentcontacts_created.py create mode 100644 override/studentcontacts_deleted.py create mode 100644 override/studentcontacts_updated.py create mode 100644 override/students_created.py create mode 100644 override/students_deleted.py create mode 100644 override/students_updated.py create mode 100644 override/teachers_created.py create mode 100644 override/teachers_deleted.py create mode 100644 override/teachers_updated.py diff --git a/override/api_client.py b/override/api_client.py new file mode 100644 index 0000000..bfb63a0 --- /dev/null +++ b/override/api_client.py @@ -0,0 +1,637 @@ +# coding: utf-8 +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import os +import re +import json +import mimetypes +import tempfile +import threading + +from datetime import date, datetime + +# python 2 and python 3 compatibility library +from six import PY3, integer_types, iteritems, text_type +from six.moves.urllib.parse import quote + +from . import models +from .configuration import Configuration +from .rest import ApiException, RESTClientObject + + +class ApiClient(object): + """ + Generic API client for Swagger client library builds. + + Swagger generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the Swagger + templates. + + NOTE: This class is auto generated by the swagger code generator program. + Ref: https://github.com/swagger-api/swagger-codegen + Do not edit the class manually. + + :param host: The base path for the server to call. + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to the API. + """ + + PRIMITIVE_TYPES = (float, bool, bytes, text_type) + integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': date, + 'datetime': datetime, + 'object': object, + } + + def __init__(self, host=None, header_name=None, header_value=None, cookie=None): + """ + Constructor of the class. + """ + self.rest_client = RESTClientObject() + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + if host is None: + self.host = Configuration().host + else: + self.host = host + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'Swagger-Codegen/1.0.0/python' + + @property + def user_agent(self): + """ + Gets user agent. + """ + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + """ + Sets user agent. + """ + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + def __call_api(self, resource_path, method, + path_params=None, query_params=None, header_params=None, + body=None, post_params=None, files=None, + response_type=None, auth_settings=None, callback=None, + _return_http_data_only=None, collection_formats=None, _preload_content=True, + _request_timeout=None): + + config = Configuration() + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict(self.parameters_to_tuples(header_params, + collection_formats)) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples(path_params, + collection_formats) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, quote(str(v), safe=config.safe_chars_for_path_param)) + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + query_params = self.parameters_to_tuples(query_params, + collection_formats) + + # post parameters + if post_params or files: + post_params = self.prepare_post_parameters(post_params, files) + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples(post_params, + collection_formats) + + # auth setting + self.update_params_for_auth(header_params, query_params, auth_settings) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # request url + url = self.host + resource_path + + # perform request and return response + response_data = self.request(method, url, + query_params=query_params, + headers=header_params, + post_params=post_params, body=body, + _preload_content=_preload_content, + _request_timeout=_request_timeout) + + self.last_response = response_data + + return_data = response_data + if _preload_content: + # deserialize response data + if response_type: + return_data = self.deserialize(response_data, response_type) + else: + return_data = None + + if callback: + if _return_http_data_only: + callback(return_data) + else: + callback((return_data, response_data.status, response_data.getheaders())) + elif _return_http_data_only: + return (return_data) + else: + return (return_data, response_data.status, response_data.getheaders()) + + def sanitize_for_serialization(self, obj): + """ + Builds a JSON POST object. + + If obj is None, return None. + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is swagger model, return the properties dict. + + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if obj is None: + return None + elif isinstance(obj, self.PRIMITIVE_TYPES): + return obj + elif isinstance(obj, list): + return [self.sanitize_for_serialization(sub_obj) + for sub_obj in obj] + elif isinstance(obj, tuple): + return tuple(self.sanitize_for_serialization(sub_obj) + for sub_obj in obj) + elif isinstance(obj, (datetime, date)): + return obj.isoformat() + + if isinstance(obj, dict): + obj_dict = obj + else: + # Convert model obj to dict except + # attributes `swagger_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) + for attr, _ in iteritems(obj.swagger_types) + if getattr(obj, attr) is not None} + + return {key: self.sanitize_for_serialization(val) + for key, val in iteritems(obj_dict)} + + def deserialize(self, response, response_type): + """ + Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. + + :return: deserialized object. + """ + # handle file downloading + # save response body into a tmp file and return the instance + if response_type == "file": + return self.__deserialize_file(response) + + # fetch data from response object + try: + data = json.loads(response.data) + except ValueError: + data = response.data + + return self.__deserialize(data, response_type) + + def __deserialize(self, data, klass): + """ + Deserializes dict, list, str into an object. + + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. + """ + if data is None: + return None + + if type(klass) == str: + if klass.startswith('list['): + sub_kls = re.match('list\[(.*)\]', klass).group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] + + if klass.startswith('dict('): + sub_kls = re.match('dict\(([^,]*), (.*)\)', klass).group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in iteritems(data)} + + if klass == 'Event': + klass = eval('models.'+''.join(data['type'].title().split('.'))) + return self.__deserialize(data,klass) + + # convert str to class + if klass in self.NATIVE_TYPES_MAPPING: + klass = self.NATIVE_TYPES_MAPPING[klass] + else: + klass = getattr(models, klass) + + if klass in self.PRIMITIVE_TYPES: + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object(data) + elif klass == date: + return self.__deserialize_date(data) + elif klass == datetime: + return self.__deserialize_datatime(data) + else: + return self.__deserialize_model(data, klass) + + def call_api(self, resource_path, method, + path_params=None, query_params=None, header_params=None, + body=None, post_params=None, files=None, + response_type=None, auth_settings=None, callback=None, + _return_http_data_only=None, collection_formats=None, _preload_content=True, + _request_timeout=None): + """ + Makes the HTTP request (synchronous) and return the deserialized data. + To make an async request, define a function for callback. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param response: Response data type. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param callback function: Callback function for asynchronous request. + If provide this parameter, + the request will be called asynchronously. + :param _return_http_data_only: response data without head status code and headers + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without + reading/decoding response data. Default is True. + :param _request_timeout: timeout setting for this request. If one number provided, it will be total request + timeout. It can also be a pair (tuple) of (connection, read) timeouts. + :return: + If provide parameter callback, + the request will be called asynchronously. + The method will return the request thread. + If parameter callback is None, + then the method will return the response directly. + """ + if callback is None: + return self.__call_api(resource_path, method, + path_params, query_params, header_params, + body, post_params, files, + response_type, auth_settings, callback, + _return_http_data_only, collection_formats, _preload_content, _request_timeout) + else: + thread = threading.Thread(target=self.__call_api, + args=(resource_path, method, + path_params, query_params, + header_params, body, + post_params, files, + response_type, auth_settings, + callback, _return_http_data_only, + collection_formats, _preload_content, _request_timeout)) + thread.start() + return thread + + def request(self, method, url, query_params=None, headers=None, + post_params=None, body=None, _preload_content=True, _request_timeout=None): + """ + Makes the HTTP request using RESTClient. + """ + if method == "GET": + return self.rest_client.GET(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "HEAD": + return self.rest_client.HEAD(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "OPTIONS": + return self.rest_client.OPTIONS(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "POST": + return self.rest_client.POST(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PUT": + return self.rest_client.PUT(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PATCH": + return self.rest_client.PATCH(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "DELETE": + return self.rest_client.DELETE(url, + query_params=query_params, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + else: + raise ValueError( + "http method must be `GET`, `HEAD`, `OPTIONS`," + " `POST`, `PATCH`, `PUT` or `DELETE`." + ) + + def parameters_to_tuples(self, params, collection_formats): + """ + Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params = [] + if collection_formats is None: + collection_formats = {} + for k, v in iteritems(params) if isinstance(params, dict) else params: + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + def prepare_post_parameters(self, post_params=None, files=None): + """ + Builds form parameters. + + :param post_params: Normal form parameters. + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + + if post_params: + params = post_params + + if files: + for k, v in iteritems(files): + if not v: + continue + file_names = v if type(v) is list else [v] + for n in file_names: + with open(n, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + mimetype = mimetypes.\ + guess_type(filename)[0] or 'application/octet-stream' + params.append(tuple([k, tuple([filename, filedata, mimetype])])) + + return params + + def select_header_accept(self, accepts): + """ + Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return + + accepts = [x.lower() for x in accepts] + + if 'application/json' in accepts: + return 'application/json' + else: + return ', '.join(accepts) + + def select_header_content_type(self, content_types): + """ + Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return 'application/json' + + content_types = [x.lower() for x in content_types] + + if 'application/json' in content_types or '*/*' in content_types: + return 'application/json' + else: + return content_types[0] + + def update_params_for_auth(self, headers, querys, auth_settings): + """ + Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param querys: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + """ + config = Configuration() + + if not auth_settings: + return + + for auth in auth_settings: + auth_setting = config.auth_settings().get(auth) + if auth_setting: + if not auth_setting['value']: + continue + elif auth_setting['in'] == 'header': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + querys.append((auth_setting['key'], auth_setting['value'])) + else: + raise ValueError( + 'Authentication token must be in `query` or `header`' + ) + + def __deserialize_file(self, response): + """ + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + :param response: RESTResponse. + :return: file path. + """ + config = Configuration() + + fd, path = tempfile.mkstemp(dir=config.temp_folder_path) + os.close(fd) + os.remove(path) + + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + filename = re.\ + search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition).\ + group(1) + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "w") as f: + f.write(response.data) + + return path + + def __deserialize_primitive(self, data, klass): + """ + Deserializes string to primitive type. + + :param data: str. + :param klass: class literal. + + :return: int, long, float, str, bool. + """ + try: + return klass(data) + except UnicodeEncodeError: + return unicode(data) + except TypeError: + return data + + def __deserialize_object(self, value): + """ + Return a original value. + + :return: object. + """ + return value + + def __deserialize_date(self, string): + """ + Deserializes string to date. + + :param string: str. + :return: date. + """ + try: + from dateutil.parser import parse + return parse(string).date() + except ImportError: + return string + except ValueError: + raise ApiException( + status=0, + reason="Failed to parse `{0}` into a date object".format(string) + ) + + def __deserialize_datatime(self, string): + """ + Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. + """ + try: + from dateutil.parser import parse + return parse(string) + except ImportError: + return string + except ValueError: + raise ApiException( + status=0, + reason=( + "Failed to parse `{0}` into a datetime object" + .format(string) + ) + ) + + def __deserialize_model(self, data, klass): + """ + Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ + if not klass.swagger_types: + return data + + kwargs = {} + for attr, attr_type in iteritems(klass.swagger_types): + if data is not None \ + and klass.attribute_map[attr] in data \ + and isinstance(data, (list, dict)): + value = data[klass.attribute_map[attr]] + kwargs[attr] = self.__deserialize(value, attr_type) + + instance = klass(**kwargs) + + return instance diff --git a/override/districts_created.py b/override/districts_created.py new file mode 100644 index 0000000..6a35562 --- /dev/null +++ b/override/districts_created.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class DistrictsCreated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'DistrictObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + DistrictsCreated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this DistrictsCreated. + + :return: The created of this DistrictsCreated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this DistrictsCreated. + + :param created: The created of this DistrictsCreated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this DistrictsCreated. + + :return: The id of this DistrictsCreated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this DistrictsCreated. + + :param id: The id of this DistrictsCreated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this DistrictsCreated. + + :return: The type of this DistrictsCreated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this DistrictsCreated. + + :param type: The type of this DistrictsCreated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this DistrictsCreated. + + :return: The data of this DistrictsCreated. + :rtype: DistrictObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictsCreated. + + :param data: The data of this DistrictsCreated. + :type: DistrictObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/districts_deleted.py b/override/districts_deleted.py new file mode 100644 index 0000000..6c4cb77 --- /dev/null +++ b/override/districts_deleted.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class DistrictsDeleted(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'DistrictObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + DistrictsDeleted - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this DistrictsDeleted. + + :return: The created of this DistrictsDeleted. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this DistrictsDeleted. + + :param created: The created of this DistrictsDeleted. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this DistrictsDeleted. + + :return: The id of this DistrictsDeleted. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this DistrictsDeleted. + + :param id: The id of this DistrictsDeleted. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this DistrictsDeleted. + + :return: The type of this DistrictsDeleted. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this DistrictsDeleted. + + :param type: The type of this DistrictsDeleted. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this DistrictsDeleted. + + :return: The data of this DistrictsDeleted. + :rtype: DistrictObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictsDeleted. + + :param data: The data of this DistrictsDeleted. + :type: DistrictObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/districts_updated.py b/override/districts_updated.py new file mode 100644 index 0000000..ea0f981 --- /dev/null +++ b/override/districts_updated.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class DistrictsUpdated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'DistrictObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + DistrictsUpdated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this DistrictsUpdated. + + :return: The created of this DistrictsUpdated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this DistrictsUpdated. + + :param created: The created of this DistrictsUpdated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this DistrictsUpdated. + + :return: The id of this DistrictsUpdated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this DistrictsUpdated. + + :param id: The id of this DistrictsUpdated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this DistrictsUpdated. + + :return: The type of this DistrictsUpdated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this DistrictsUpdated. + + :param type: The type of this DistrictsUpdated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this DistrictsUpdated. + + :return: The data of this DistrictsUpdated. + :rtype: DistrictObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictsUpdated. + + :param data: The data of this DistrictsUpdated. + :type: DistrictObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/override.sh b/override/override.sh index a967208..d30e278 100755 --- a/override/override.sh +++ b/override/override.sh @@ -5,3 +5,9 @@ rm -rf swagger_client|| true # Rename references of swagger client to Clever git grep -l 'swagger_client' -- './*' ':(exclude)override/override.sh' | xargs sed -i "" 's/swagger_client/clever/g' git grep -l 'swagger-client' -- './*' ':(exclude)override/override.sh' | xargs sed -i "" 's/swagger-client/clever-python/g' + +# Copy override files for events +cp override/api_client.py clever/ +cp override/*_created.py clever/models/ +cp override/*_updated.py clever/models/ +cp override/*_deleted.py clever/models/ diff --git a/override/schooladmins_created.py b/override/schooladmins_created.py new file mode 100644 index 0000000..aa5c419 --- /dev/null +++ b/override/schooladmins_created.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class SchooladminsCreated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SchoolAdminObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SchooladminsCreated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SchooladminsCreated. + + :return: The created of this SchooladminsCreated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SchooladminsCreated. + + :param created: The created of this SchooladminsCreated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SchooladminsCreated. + + :return: The id of this SchooladminsCreated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SchooladminsCreated. + + :param id: The id of this SchooladminsCreated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SchooladminsCreated. + + :return: The type of this SchooladminsCreated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SchooladminsCreated. + + :param type: The type of this SchooladminsCreated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SchooladminsCreated. + + :return: The data of this SchooladminsCreated. + :rtype: SchoolAdminObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SchooladminsCreated. + + :param data: The data of this SchooladminsCreated. + :type: SchoolAdminObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchooladminsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/schooladmins_deleted.py b/override/schooladmins_deleted.py new file mode 100644 index 0000000..503282e --- /dev/null +++ b/override/schooladmins_deleted.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class SchooladminsDeleted(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SchoolAdminObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SchooladminsDeleted - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SchooladminsDeleted. + + :return: The created of this SchooladminsDeleted. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SchooladminsDeleted. + + :param created: The created of this SchooladminsDeleted. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SchooladminsDeleted. + + :return: The id of this SchooladminsDeleted. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SchooladminsDeleted. + + :param id: The id of this SchooladminsDeleted. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SchooladminsDeleted. + + :return: The type of this SchooladminsDeleted. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SchooladminsDeleted. + + :param type: The type of this SchooladminsDeleted. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SchooladminsDeleted. + + :return: The data of this SchooladminsDeleted. + :rtype: SchoolAdminObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SchooladminsDeleted. + + :param data: The data of this SchooladminsDeleted. + :type: SchoolAdminObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchooladminsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/schooladmins_updated.py b/override/schooladmins_updated.py new file mode 100644 index 0000000..3f2847a --- /dev/null +++ b/override/schooladmins_updated.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class SchooladminsUpdated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SchoolAdminObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SchooladminsUpdated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SchooladminsUpdated. + + :return: The created of this SchooladminsUpdated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SchooladminsUpdated. + + :param created: The created of this SchooladminsUpdated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SchooladminsUpdated. + + :return: The id of this SchooladminsUpdated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SchooladminsUpdated. + + :param id: The id of this SchooladminsUpdated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SchooladminsUpdated. + + :return: The type of this SchooladminsUpdated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SchooladminsUpdated. + + :param type: The type of this SchooladminsUpdated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SchooladminsUpdated. + + :return: The data of this SchooladminsUpdated. + :rtype: SchoolAdminObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SchooladminsUpdated. + + :param data: The data of this SchooladminsUpdated. + :type: SchoolAdminObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchooladminsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/schools_created.py b/override/schools_created.py new file mode 100644 index 0000000..5ce64bf --- /dev/null +++ b/override/schools_created.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class SchoolsCreated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SchoolObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SchoolsCreated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SchoolsCreated. + + :return: The created of this SchoolsCreated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SchoolsCreated. + + :param created: The created of this SchoolsCreated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SchoolsCreated. + + :return: The id of this SchoolsCreated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SchoolsCreated. + + :param id: The id of this SchoolsCreated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SchoolsCreated. + + :return: The type of this SchoolsCreated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SchoolsCreated. + + :param type: The type of this SchoolsCreated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SchoolsCreated. + + :return: The data of this SchoolsCreated. + :rtype: SchoolObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SchoolsCreated. + + :param data: The data of this SchoolsCreated. + :type: SchoolObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchoolsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/schools_deleted.py b/override/schools_deleted.py new file mode 100644 index 0000000..59570db --- /dev/null +++ b/override/schools_deleted.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class SchoolsDeleted(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SchoolObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SchoolsDeleted - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SchoolsDeleted. + + :return: The created of this SchoolsDeleted. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SchoolsDeleted. + + :param created: The created of this SchoolsDeleted. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SchoolsDeleted. + + :return: The id of this SchoolsDeleted. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SchoolsDeleted. + + :param id: The id of this SchoolsDeleted. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SchoolsDeleted. + + :return: The type of this SchoolsDeleted. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SchoolsDeleted. + + :param type: The type of this SchoolsDeleted. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SchoolsDeleted. + + :return: The data of this SchoolsDeleted. + :rtype: SchoolObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SchoolsDeleted. + + :param data: The data of this SchoolsDeleted. + :type: SchoolObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchoolsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/schools_updated.py b/override/schools_updated.py new file mode 100644 index 0000000..5423629 --- /dev/null +++ b/override/schools_updated.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class SchoolsUpdated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SchoolObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SchoolsUpdated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SchoolsUpdated. + + :return: The created of this SchoolsUpdated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SchoolsUpdated. + + :param created: The created of this SchoolsUpdated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SchoolsUpdated. + + :return: The id of this SchoolsUpdated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SchoolsUpdated. + + :param id: The id of this SchoolsUpdated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SchoolsUpdated. + + :return: The type of this SchoolsUpdated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SchoolsUpdated. + + :param type: The type of this SchoolsUpdated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SchoolsUpdated. + + :return: The data of this SchoolsUpdated. + :rtype: SchoolObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SchoolsUpdated. + + :param data: The data of this SchoolsUpdated. + :type: SchoolObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SchoolsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/sections_created.py b/override/sections_created.py new file mode 100644 index 0000000..ab1b541 --- /dev/null +++ b/override/sections_created.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class SectionsCreated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SectionObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SectionsCreated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SectionsCreated. + + :return: The created of this SectionsCreated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SectionsCreated. + + :param created: The created of this SectionsCreated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SectionsCreated. + + :return: The id of this SectionsCreated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SectionsCreated. + + :param id: The id of this SectionsCreated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SectionsCreated. + + :return: The type of this SectionsCreated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SectionsCreated. + + :param type: The type of this SectionsCreated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SectionsCreated. + + :return: The data of this SectionsCreated. + :rtype: SectionObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SectionsCreated. + + :param data: The data of this SectionsCreated. + :type: SectionObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SectionsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/sections_deleted.py b/override/sections_deleted.py new file mode 100644 index 0000000..0b129ca --- /dev/null +++ b/override/sections_deleted.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class SectionsDeleted(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SectionObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SectionsDeleted - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SectionsDeleted. + + :return: The created of this SectionsDeleted. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SectionsDeleted. + + :param created: The created of this SectionsDeleted. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SectionsDeleted. + + :return: The id of this SectionsDeleted. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SectionsDeleted. + + :param id: The id of this SectionsDeleted. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SectionsDeleted. + + :return: The type of this SectionsDeleted. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SectionsDeleted. + + :param type: The type of this SectionsDeleted. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SectionsDeleted. + + :return: The data of this SectionsDeleted. + :rtype: SectionObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SectionsDeleted. + + :param data: The data of this SectionsDeleted. + :type: SectionObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SectionsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/sections_updated.py b/override/sections_updated.py new file mode 100644 index 0000000..4b3f68e --- /dev/null +++ b/override/sections_updated.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class SectionsUpdated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'SectionObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + SectionsUpdated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this SectionsUpdated. + + :return: The created of this SectionsUpdated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this SectionsUpdated. + + :param created: The created of this SectionsUpdated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this SectionsUpdated. + + :return: The id of this SectionsUpdated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SectionsUpdated. + + :param id: The id of this SectionsUpdated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this SectionsUpdated. + + :return: The type of this SectionsUpdated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SectionsUpdated. + + :param type: The type of this SectionsUpdated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this SectionsUpdated. + + :return: The data of this SectionsUpdated. + :rtype: SectionObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this SectionsUpdated. + + :param data: The data of this SectionsUpdated. + :type: SectionObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SectionsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/studentcontacts_created.py b/override/studentcontacts_created.py new file mode 100644 index 0000000..d9825c6 --- /dev/null +++ b/override/studentcontacts_created.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class StudentcontactsCreated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'StudentContactObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + StudentcontactsCreated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this StudentcontactsCreated. + + :return: The created of this StudentcontactsCreated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this StudentcontactsCreated. + + :param created: The created of this StudentcontactsCreated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this StudentcontactsCreated. + + :return: The id of this StudentcontactsCreated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this StudentcontactsCreated. + + :param id: The id of this StudentcontactsCreated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this StudentcontactsCreated. + + :return: The type of this StudentcontactsCreated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this StudentcontactsCreated. + + :param type: The type of this StudentcontactsCreated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this StudentcontactsCreated. + + :return: The data of this StudentcontactsCreated. + :rtype: StudentContactObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this StudentcontactsCreated. + + :param data: The data of this StudentcontactsCreated. + :type: StudentContactObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentcontactsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/studentcontacts_deleted.py b/override/studentcontacts_deleted.py new file mode 100644 index 0000000..6ebefaf --- /dev/null +++ b/override/studentcontacts_deleted.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class StudentcontactsDeleted(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'StudentContactObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + StudentcontactsDeleted - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this StudentcontactsDeleted. + + :return: The created of this StudentcontactsDeleted. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this StudentcontactsDeleted. + + :param created: The created of this StudentcontactsDeleted. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this StudentcontactsDeleted. + + :return: The id of this StudentcontactsDeleted. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this StudentcontactsDeleted. + + :param id: The id of this StudentcontactsDeleted. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this StudentcontactsDeleted. + + :return: The type of this StudentcontactsDeleted. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this StudentcontactsDeleted. + + :param type: The type of this StudentcontactsDeleted. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this StudentcontactsDeleted. + + :return: The data of this StudentcontactsDeleted. + :rtype: StudentContactObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this StudentcontactsDeleted. + + :param data: The data of this StudentcontactsDeleted. + :type: StudentContactObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentcontactsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/studentcontacts_updated.py b/override/studentcontacts_updated.py new file mode 100644 index 0000000..3d9094a --- /dev/null +++ b/override/studentcontacts_updated.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class StudentcontactsUpdated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'StudentContactObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + StudentcontactsUpdated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this StudentcontactsUpdated. + + :return: The created of this StudentcontactsUpdated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this StudentcontactsUpdated. + + :param created: The created of this StudentcontactsUpdated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this StudentcontactsUpdated. + + :return: The id of this StudentcontactsUpdated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this StudentcontactsUpdated. + + :param id: The id of this StudentcontactsUpdated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this StudentcontactsUpdated. + + :return: The type of this StudentcontactsUpdated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this StudentcontactsUpdated. + + :param type: The type of this StudentcontactsUpdated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this StudentcontactsUpdated. + + :return: The data of this StudentcontactsUpdated. + :rtype: StudentContactObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this StudentcontactsUpdated. + + :param data: The data of this StudentcontactsUpdated. + :type: StudentContactObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentcontactsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/students_created.py b/override/students_created.py new file mode 100644 index 0000000..4ccd654 --- /dev/null +++ b/override/students_created.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class StudentsCreated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'StudentObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + StudentsCreated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this StudentsCreated. + + :return: The created of this StudentsCreated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this StudentsCreated. + + :param created: The created of this StudentsCreated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this StudentsCreated. + + :return: The id of this StudentsCreated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this StudentsCreated. + + :param id: The id of this StudentsCreated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this StudentsCreated. + + :return: The type of this StudentsCreated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this StudentsCreated. + + :param type: The type of this StudentsCreated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this StudentsCreated. + + :return: The data of this StudentsCreated. + :rtype: StudentObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this StudentsCreated. + + :param data: The data of this StudentsCreated. + :type: StudentObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/students_deleted.py b/override/students_deleted.py new file mode 100644 index 0000000..6b16773 --- /dev/null +++ b/override/students_deleted.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class StudentsDeleted(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'StudentObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + StudentsDeleted - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this StudentsDeleted. + + :return: The created of this StudentsDeleted. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this StudentsDeleted. + + :param created: The created of this StudentsDeleted. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this StudentsDeleted. + + :return: The id of this StudentsDeleted. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this StudentsDeleted. + + :param id: The id of this StudentsDeleted. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this StudentsDeleted. + + :return: The type of this StudentsDeleted. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this StudentsDeleted. + + :param type: The type of this StudentsDeleted. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this StudentsDeleted. + + :return: The data of this StudentsDeleted. + :rtype: StudentObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this StudentsDeleted. + + :param data: The data of this StudentsDeleted. + :type: StudentObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/students_updated.py b/override/students_updated.py new file mode 100644 index 0000000..8015b49 --- /dev/null +++ b/override/students_updated.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class StudentsUpdated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'StudentObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + StudentsUpdated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this StudentsUpdated. + + :return: The created of this StudentsUpdated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this StudentsUpdated. + + :param created: The created of this StudentsUpdated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this StudentsUpdated. + + :return: The id of this StudentsUpdated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this StudentsUpdated. + + :param id: The id of this StudentsUpdated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this StudentsUpdated. + + :return: The type of this StudentsUpdated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this StudentsUpdated. + + :param type: The type of this StudentsUpdated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this StudentsUpdated. + + :return: The data of this StudentsUpdated. + :rtype: StudentObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this StudentsUpdated. + + :param data: The data of this StudentsUpdated. + :type: StudentObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StudentsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/teachers_created.py b/override/teachers_created.py new file mode 100644 index 0000000..e089c3d --- /dev/null +++ b/override/teachers_created.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class TeachersCreated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'TeacherObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + TeachersCreated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this TeachersCreated. + + :return: The created of this TeachersCreated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this TeachersCreated. + + :param created: The created of this TeachersCreated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this TeachersCreated. + + :return: The id of this TeachersCreated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this TeachersCreated. + + :param id: The id of this TeachersCreated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this TeachersCreated. + + :return: The type of this TeachersCreated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this TeachersCreated. + + :param type: The type of this TeachersCreated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this TeachersCreated. + + :return: The data of this TeachersCreated. + :rtype: TeacherObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this TeachersCreated. + + :param data: The data of this TeachersCreated. + :type: TeacherObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TeachersCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/teachers_deleted.py b/override/teachers_deleted.py new file mode 100644 index 0000000..9427404 --- /dev/null +++ b/override/teachers_deleted.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class TeachersDeleted(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'TeacherObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + TeachersDeleted - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this TeachersDeleted. + + :return: The created of this TeachersDeleted. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this TeachersDeleted. + + :param created: The created of this TeachersDeleted. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this TeachersDeleted. + + :return: The id of this TeachersDeleted. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this TeachersDeleted. + + :param id: The id of this TeachersDeleted. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this TeachersDeleted. + + :return: The type of this TeachersDeleted. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this TeachersDeleted. + + :param type: The type of this TeachersDeleted. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this TeachersDeleted. + + :return: The data of this TeachersDeleted. + :rtype: TeacherObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this TeachersDeleted. + + :param data: The data of this TeachersDeleted. + :type: TeacherObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TeachersDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/teachers_updated.py b/override/teachers_updated.py new file mode 100644 index 0000000..78bec45 --- /dev/null +++ b/override/teachers_updated.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + + +class TeachersUpdated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str', + 'data': 'TeacherObject' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type', + 'data': 'data' + } + + def __init__(self, created=None, id=None, type=None, data=None): + """ + TeachersUpdated - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + self._data = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + if data is not None: + self.data = data + + @property + def created(self): + """ + Gets the created of this TeachersUpdated. + + :return: The created of this TeachersUpdated. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this TeachersUpdated. + + :param created: The created of this TeachersUpdated. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this TeachersUpdated. + + :return: The id of this TeachersUpdated. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this TeachersUpdated. + + :param id: The id of this TeachersUpdated. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this TeachersUpdated. + + :return: The type of this TeachersUpdated. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this TeachersUpdated. + + :param type: The type of this TeachersUpdated. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + @property + def data(self): + """ + Gets the data of this TeachersUpdated. + + :return: The data of this TeachersUpdated. + :rtype: TeacherObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this TeachersUpdated. + + :param data: The data of this TeachersUpdated. + :type: TeacherObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TeachersUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other From 116d9fb1da83df186462cb66dc497b43974d323f Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Wed, 20 Sep 2017 05:03:56 +0000 Subject: [PATCH 11/53] Add test for event classes --- test/test_events_api.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/test/test_events_api.py b/test/test_events_api.py index c8b3cfe..0362d7e 100644 --- a/test/test_events_api.py +++ b/test/test_events_api.py @@ -27,6 +27,7 @@ class TestEventsApi(unittest.TestCase): def setUp(self): self.api = clever.apis.events_api.EventsApi() + clever.configuration.access_token = 'DEMO_EVENTS_TOKEN' def tearDown(self): pass @@ -43,15 +44,21 @@ def test_get_events(self): """ Test case for get_events - + """ - pass + + # Check event class is properly set + response = self.api.get_events(limit=1) + event = response.data[0] + event_class = type(event.data).__name__ + self.assertTrue(event_class != 'Event') + self.assertTrue(event_class.endswith('Created') or event_class.endswith('Updated') or event_class.endswith('Deleted')) def test_get_events_for_school(self): """ Test case for get_events_for_school - + """ pass From f306b0ca48a7c0a3951f1d25cbfe3311f320cb0c Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 19 Sep 2017 22:35:27 +0000 Subject: [PATCH 12/53] Swagger codegen ignore gitignore --- .swagger-codegen-ignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.swagger-codegen-ignore b/.swagger-codegen-ignore index c5fa491..f76b65e 100644 --- a/.swagger-codegen-ignore +++ b/.swagger-codegen-ignore @@ -21,3 +21,4 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md +.gitignore From 5765b665d43f39b5869e06bdebf6d83f0fdf4937 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Wed, 20 Sep 2017 04:42:08 +0000 Subject: [PATCH 13/53] Bump version --- clever/configuration.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clever/configuration.py b/clever/configuration.py index 82f276e..df118c6 100644 --- a/clever/configuration.py +++ b/clever/configuration.py @@ -231,5 +231,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.2.0\n"\ - "SDK Package Version: 1.0.0".\ + "SDK Package Version: 3.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/setup.py b/setup.py index 38360fd..f160696 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "clever-python" -VERSION = "1.0.0" +VERSION = "3.0.0" # To install the library, run the following # # python setup.py install From 205a1e6ad0e18534ecd2fa05e5a58ca8ff7013bd Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Wed, 20 Sep 2017 04:44:31 +0000 Subject: [PATCH 14/53] Remove old test files --- test/requirements.txt | 1 - test/test_cert_pinning.py | 28 ------- test/test_clever.py | 164 -------------------------------------- test/test_cli_clever.py | 41 ---------- 4 files changed, 234 deletions(-) delete mode 100644 test/requirements.txt delete mode 100644 test/test_cert_pinning.py delete mode 100644 test/test_clever.py delete mode 100644 test/test_cli_clever.py diff --git a/test/requirements.txt b/test/requirements.txt deleted file mode 100644 index bd00cb4..0000000 --- a/test/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -httmock \ No newline at end of file diff --git a/test/test_cert_pinning.py b/test/test_cert_pinning.py deleted file mode 100644 index b9ec880..0000000 --- a/test/test_cert_pinning.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- - -import os -import sys -import unittest -sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) -import clever -from clever import importer - -class CleverTestCase(unittest.TestCase): - def setUp(self): - super(CleverTestCase, self).setUp() - clever.set_token('DEMO_TOKEN') - -class CertPinning(CleverTestCase): - def test_prod_api(self): - clever.api_base = 'https://api.clever.com/' - district = clever.District.all()[0] - self.assertEqual(district.name, 'Demo District') - - def test_cert_failure(self): - clever.api_base = 'https://httpbin.org/' - self.assertRaises(clever.APIConnectionError, clever.District.all) - -if __name__ == '__main__': - suite = unittest.TestSuite() - suite.addTest(unittest.TestLoader().loadTestsFromTestCase(CertPinning)) - unittest.TextTestRunner(verbosity=2).run(suite) diff --git a/test/test_clever.py b/test/test_clever.py deleted file mode 100644 index be04174..0000000 --- a/test/test_clever.py +++ /dev/null @@ -1,164 +0,0 @@ -# -*- coding: utf-8 -*- -import os -import sys -import unittest -import httmock -import itertools - -sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) -import clever -from clever import importer -json = importer.import_json() - -import requests -from httmock import response, HTTMock - - -def functional_test(auth): - class FunctionalTests(CleverTestCase): - - def setUp(self): - super(FunctionalTests, self).setUp() - clever.api_base = os.environ.get('CLEVER_API_BASE', 'https://api.clever.com/') - if auth.get("token", None): - clever.set_token(auth["token"]) - return FunctionalTests - - -class CleverTestCase(unittest.TestCase): - - def setUp(self): - super(CleverTestCase, self).setUp() - clever.api_base = os.environ.get('CLEVER_API_BASE', 'https://api.clever.com/') - clever.set_token('DEMO_TOKEN') - -#generates httmock responses for test_unicode_receive -def unicode_content(url, request): - return {'status_code': 200, 'content': '{"data": {"name": "Oh haiô"}}'} - -class FunctionalTests(CleverTestCase): - - def test_dns_failure(self): - api_base = clever.api_base - try: - clever.api_base = 'https://my-invalid-domain.ireallywontresolve/v1' - self.assertRaises(clever.APIConnectionError, clever.District.all) - finally: - clever.api_base = api_base - - def test_list_accessors(self): - district = clever.District.all()[0] - self.assertEqual(district['name'], district.name) - - def test_iter(self): - for district in clever.District.iter(): - self.assertTrue(district.id) - - def test_starting_after(self): - allstudents = clever.Student.all() - second_to_last_id = allstudents[len(allstudents)-2]['id'] - students = clever.Student.iter(starting_after=second_to_last_id) - count = len(list(students)) - self.assertTrue(count==1) - - def test_ending_before(self): - allstudents = clever.Student.all() - second_id = allstudents[1]['id'] - students = clever.Student.iter(ending_before=second_id) - count = len(list(students)) - self.assertTrue(count==1) - - def test_iter_count(self): - r = requests.get('https://api.clever.com/v1.1/students?count=true', - headers={'Authorization': 'Bearer DEMO_TOKEN'}) - - req_count = json.loads(r.text)["count"] - iter_count = len([x for x in clever.Student.iter()]) - - self.assertTrue(req_count > clever.Student.ITER_LIMIT) - self.assertEqual(req_count, iter_count) - - def test_unsupported_params(self): - self.assertRaises(clever.CleverError, lambda: clever.District.all(page=2)) - self.assertRaises(clever.CleverError, lambda: clever.District.all(limit=10)) - self.assertRaises(clever.CleverError, lambda: clever.District.all(page=2, limit=10)) - - def test_unicode_send(self): - # Make sure unicode requests can be sent. 404 error is a clever.APIError - self.assertRaises(clever.APIError, clever.District.retrieve, id=u'☃') - - def test_unicode_receive(self): - with HTTMock(unicode_content): - # Make sure unicode responses can be received. - self.assertEqual(u'Oh haiô', clever.District.retrieve('something').name) - - def test_none_values(self): - district = clever.District.all(count=None)[0] - self.assertTrue(district.id) - - def test_missing_id(self): - district = clever.District() - self.assertRaises(clever.InvalidRequestError, district.refresh) - - def test_keys_and_values_methods(self): - clever_object = clever.CleverObject() - self.assertEqual(clever_object.keys(), set()) - self.assertEqual(clever_object.values(), set()) - - def test_empty_list_on_no_data(self): - district = clever.District.all(where=json.dumps({'name': 'asdf'})) - self.assertEqual(district, []) - -class AuthenticationErrorTest(CleverTestCase): - - def test_invalid_credentials(self): - token = clever.get_token() - try: - clever.set_token('invalid') - clever.District.all() - except clever.AuthenticationError, e: - self.assertEqual(401, e.http_status) - self.assertTrue(isinstance(e.http_body, str)) - self.assertTrue(isinstance(e.json_body, dict)) - finally: - clever.set_token(token) - - -class InvalidRequestErrorTest(CleverTestCase): - - def test_nonexistent_object(self): - try: - clever.District.retrieve('invalid') - except clever.APIError, e: - self.assertEqual(404, e.http_status) - self.assertFalse(isinstance(e.json_body, dict)) # 404 does not have a body - self.assertTrue(isinstance(e.http_body, str)) - -#generates httmock responses for TooManyRequestsErrorTest -def too_many_requests_content(url, request): - headers = { - 'X-Ratelimit-Bucket': 'all, none', - 'X-Ratelimit-Limit' : '200, 1200', - 'X-Ratelimit-Reset' : '135136, 31634', - 'X-Ratelimit-Remaining' : '0, 0' - } - return response(429, "", headers, None, 5, None) - -class TooManyRequestsErrorTest(CleverTestCase): - - def test_rate_limiter(self): - with HTTMock(too_many_requests_content): - r = requests.get('https://test.rate.limiting/') - res = {'body': r.content, 'headers': r.headers, 'code': 429} - APIRequestor = clever.APIRequestor() - self.assertRaises(clever.TooManyRequestsError, lambda : APIRequestor.interpret_response(res)) - -if __name__ == '__main__': - suite = unittest.TestSuite() - for TestClass in [ - functional_test({"token": "DEMO_TOKEN"}), - AuthenticationErrorTest, - InvalidRequestErrorTest, - TooManyRequestsErrorTest]: - suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestClass)) - unittest.TextTestRunner(verbosity=2).run(suite) diff --git a/test/test_cli_clever.py b/test/test_cli_clever.py deleted file mode 100644 index 7a73c0c..0000000 --- a/test/test_cli_clever.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- - -import os -import unittest -import subprocess - -CLI_CLEVER = os.path.join(os.path.dirname(__file__), '../bin/clever ') - -class CleverCLITestCase(unittest.TestCase): - - def run_clever(self, args='', env=None): - """ - Runs the cli clever script, passes supplied args. - """ - process = subprocess.Popen(CLI_CLEVER + args, shell=True, env=env, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE) - - out, err = process.communicate() - code = process.returncode - return out, err, code - - def test_help(self): - # Test help on error - out, err, code = self.run_clever() - self.assertEqual(code, 1) - # Test help on option - out, err, code = self.run_clever('-h') - self.assertEqual(code, 0) - - def test_api_token(self): - # Check for error when key is not provided - out, err, code = self.run_clever('district all') - self.assertEqual(code, 2) - # Check for no error when key is provided via -t - out, err, code = self.run_clever('district all -t DEMO_TOKEN') - self.assertEqual(code, 0) - # Check for no error when key is provided via CLEVER_API_TOKEN - env = {'CLEVER_API_TOKEN':'DEMO_TOKEN'} - out, err, code = self.run_clever('district all', env) - self.assertEqual(code, 0) From fbc47c3ee76e69afa28342b7d6d5f0432ab1c0fa Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Wed, 20 Sep 2017 04:44:49 +0000 Subject: [PATCH 15/53] Remove clever cli --- bin/clever | 236 ----------------------------------------------------- 1 file changed, 236 deletions(-) delete mode 100755 bin/clever diff --git a/bin/clever b/bin/clever deleted file mode 100755 index 6555688..0000000 --- a/bin/clever +++ /dev/null @@ -1,236 +0,0 @@ -#!/usr/bin/env python -import logging -import optparse -import os -import re -import subprocess -import sys - -sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) -import clever - -logger = logging.getLogger('') -logger.addHandler(logging.StreamHandler(sys.stderr)) -logger.setLevel(logging.INFO) - -class APIResourceClient(object): - def __init__(self, id=None): - self.id = id - - def to_dict(self, params): - dict = {} - for k, v in params: - dict[k] = v - return dict - - def logged_curl(http://github.com/self,%20method,%20url,%20params): - dict_params = self.to_dict(params) - self.log_request(method, url, params, dict_params) - res, auth = clever.APIRequestor().request_raw(method, url, dict_params) - self.log_result(res['body'], res['code']) - return res['body'], res['code'] - - def log_request(self, method, url, ordered_params, dict_params): - if method.lower() == 'get': - requestor = clever.APIRequestor() - if dict_params: - url = '%s?%s' % (url, clever.APIRequestor().encode(dict_params)) - ordered_params = [] - elif not ordered_params: - ordered_params = ' -X %s' % (method.upper(), ) - - logger.info('Running the equivalent of:') - logger.info('--') - if len(ordered_params): - term = ' \\' - else: - term = '' - api_token = clever.get_token() - curl = ['curl %s%s -H "Authorization: Bearer %s"%s' % - (clever.api_base, url, api_token, term)] - if isinstance(ordered_params, list): - for i, (k, v) in enumerate(ordered_params): - if i == len(ordered_params) - 1: - term = '' - else: - term = ' \\' - curl.append(' -d %s=%s%s' % (k, v, term)) - else: - curl.append(ordered_params) - logger.info('\n'.join(curl)) - logger.info('--') - - def log_result(self, rbody, rcode): - logger.info('Result (HTTP status code %d):' % (rcode, )) - logger.info('--') - logger.info(rbody.rstrip()) - logger.info('--') - - def class_url(http://github.com/self): - return self.client_for.class_url() - - def instance_url(http://github.com/self): - if not self.id: - raise ValueError('ID required. (HINT: provide the script a -i ID)') - return self.client_for(self.id).instance_url() - - def retrieve(self, params): - url = self.instance_url() - self.logged_curl('http://github.com/get',%20url,%20[]) - -class ListableAPIResourceClient(APIResourceClient): - def all(self, params): - url = self.class_url() - self.logged_curl('http://github.com/get',%20url,%20params) - -class CreateableAPIResourceClient(APIResourceClient): - def create(self, params): - url = self.class_url() - self.logged_curl('http://github.com/post',%20url,%20params) - -class UpdateableAPIResourceClient(APIResourceClient): - def update(self, params): - url = self.instance_url() - self.logged_curl('http://github.com/patch',%20url,%20params) - -class DeletableAPIResourceClient(APIResourceClient): - def delete(self, params): - url = self.instance_url() - self.logged_curl('http://github.com/delete',%20url,%20params) - -# API objects -class DistrictClient(ListableAPIResourceClient): - client_for = clever.District - -class DistrictAdminClient(ListableAPIResourceClient): - client_for = clever.DistrictAdmin - -class SchoolClient(ListableAPIResourceClient): - client_for = clever.School - -class SchoolAdminClient(ListableAPIResourceClient): - client_for = clever.SchoolAdmin - -class SectionClient(ListableAPIResourceClient): - client_for = clever.Section - -class StudentClient(ListableAPIResourceClient): - client_for = clever.Student - -class TeacherClient(ListableAPIResourceClient): - client_for = clever.Teacher - -class EventClient(ListableAPIResourceClient): - client_for = clever.Event - -class ContactClient(ListableAPIResourceClient): - client_for = clever.Contact - -def main(): - klasses = { - 'district' : DistrictClient, - 'district_admin' : DistrictAdminClient, - 'school' : SchoolClient, - 'school_admin': SchoolAdminClient, - 'section' : SectionClient, - 'student' : StudentClient, - 'teacher' : TeacherClient, - 'event' : EventClient, - 'contact': ContactClient, - } - klasses_plural = { '{0}s'.format(key) : value for key, value in klasses.iteritems() } - klasses = dict(klasses.items() + klasses_plural.items()) - parser = optparse.OptionParser("""%prog [options] class method [key=value|key ...] - -Valid methods: - -district - all - retrieve - -district_admin - all - retrieve - -school - all - retrieve - -school_admin - all - retrieve - -section - all - retrieve - -student - all - retrieve - -teacher - all - retrieve - -event - all - retrieve - -contact - all - retrieve""") - parser.add_option('-v', '--verbosity', help='Verbosity of debugging output.', - dest='verbosity', action='http://github.com/count', default=0) - parser.add_option('-t', '--api-token', help="API token. Defaults to value of environment variable CLEVER_API_TOKEN", dest='api_token') - parser.add_option('-b', '--api-base', help='API base URL', dest='api_base') - parser.add_option('-i', '--id', help="Object ID", dest='id') - opts, args = parser.parse_args() - if opts.verbosity == 1: - logger.setLevel(logging.INFO) - elif opts.verbosity >= 2: - logger.setLevel(logging.DEBUG) - if len(args) < 2: - parser.print_help() - return 1 - - klass_name = args[0] - method_name = args[1] - api_token = opts.api_token or os.environ.get('CLEVER_API_TOKEN') - if not api_token: - parser.error('No API token provided (use -t option or set the CLEVER_API_TOKEN environment variable') - return 1 - clever.set_token(api_token) - - if opts.api_base: - clever.api_base = opts.api_base - - params = [] - for arg in args[2:]: - try: - key = arg[:arg.index('=')] - value = arg[arg.index('=') + 1:] - except ValueError: - key = arg - value = None - if not value: - value = raw_input('%s= ' % (key, )) - params.append([key, value]) - - try: - klass = klasses[klass_name] - except KeyError: - parser.error('Invalid class %s' % (klass_name, )) - return 1 - else: - dispatch = klass(opts.id) - - try: - method = getattr(dispatch, method_name) - except AttributeError: - parser.error('Invalid method %s of %s' % (method_name, klass_name)) - return 1 - - return method(params) - -if __name__ == '__main__': - sys.exit(main()) From 03723f9eb1aa8ae922a3154624e533075bdfb4d0 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Wed, 20 Sep 2017 04:45:03 +0000 Subject: [PATCH 16/53] Add Makefile --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..24cb415 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +.PHONY: all test override deps publish +SHELL := /bin/bash + +all: deps test + +deps: + pip install -r requirements.txt + +test: + python -m unittest discover test + +override: + ./override/override.sh + +publish: + ./publish.sh From 430af9cd2e3baef31b3c5a6893f26e426b51836e Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Wed, 20 Sep 2017 16:30:37 +0000 Subject: [PATCH 17/53] Handle unicode in/out --- clever/api_client.py | 2 +- override/api_client.py | 2 +- test/test_data_api.py | 29 ++++++++++++++++++++++++++++- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/clever/api_client.py b/clever/api_client.py index bfb63a0..6b2bde0 100644 --- a/clever/api_client.py +++ b/clever/api_client.py @@ -119,7 +119,7 @@ def __call_api(self, resource_path, method, for k, v in path_params: # specified safe chars, encode everything resource_path = resource_path.replace( - '{%s}' % k, quote(str(v), safe=config.safe_chars_for_path_param)) + '{%s}' % k, quote(v.encode('utf-8'), safe=config.safe_chars_for_path_param)) # query parameters if query_params: diff --git a/override/api_client.py b/override/api_client.py index bfb63a0..6b2bde0 100644 --- a/override/api_client.py +++ b/override/api_client.py @@ -119,7 +119,7 @@ def __call_api(self, resource_path, method, for k, v in path_params: # specified safe chars, encode everything resource_path = resource_path.replace( - '{%s}' % k, quote(str(v), safe=config.safe_chars_for_path_param)) + '{%s}' % k, quote(v.encode('utf-8'), safe=config.safe_chars_for_path_param)) # query parameters if query_params: diff --git a/test/test_data_api.py b/test/test_data_api.py index 1518064..f72a77c 100644 --- a/test/test_data_api.py +++ b/test/test_data_api.py @@ -16,26 +16,53 @@ import os import sys import unittest +import urllib3 import clever from clever.rest import ApiException from clever.apis.data_api import DataApi +class MockPoolManager(object): + def __init__(self, tc): + self._tc = tc + self._reqs = [] + + def expect_request(self, *args, **kwargs): + self._reqs.append((args, kwargs)) + + def request(self, *args, **kwargs): + return urllib3.HTTPResponse(status=200, body='{"data": {"name": "Oh haiô"}}') class TestDataApi(unittest.TestCase): """ DataApi unit test stubs """ def setUp(self): self.api = clever.apis.data_api.DataApi() + clever.configuration.access_token = 'DEMO_TOKEN' def tearDown(self): pass + def test_unicode_send(self): + # Make sure unicode requests can be sent. 404 error is an ApiException + self.assertRaises(ApiException, self.api.get_district, u'☃') + + def test_unicode_receive(self): + mock_pool = MockPoolManager(self) + real_pool = self.api.api_client.rest_client.pool_manager + self.api.api_client.rest_client.pool_manager = mock_pool + + mock_pool.expect_request('GET', 'https://api.clever.com/v1.2/districts/something') + # Make sure unicode responses can be received. + self.assertEqual(u'Oh haiô', self.api.get_district('something').data.name) + self.api.api_client.rest_client.pool_manager = real_pool + + def test_get_contact(self): """ Test case for get_contact - + """ pass From 77669a98cd28e601e45403979fbc6284031846e6 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Wed, 20 Sep 2017 23:23:35 +0000 Subject: [PATCH 18/53] Update readme --- README.md | 229 ++++++---------------- docs/BadRequest.md | 2 +- docs/Credentials.md | 2 +- docs/DataApi.md | 156 +++++++-------- docs/District.md | 2 +- docs/DistrictAdmin.md | 2 +- docs/DistrictAdminResponse.md | 2 +- docs/DistrictAdminsResponse.md | 2 +- docs/DistrictObject.md | 2 +- docs/DistrictResponse.md | 2 +- docs/DistrictStatus.md | 2 +- docs/DistrictStatusResponse.md | 2 +- docs/DistrictStatusResponses.md | 2 +- docs/DistrictsCreated.md | 2 +- docs/DistrictsDeleted.md | 2 +- docs/DistrictsResponse.md | 2 +- docs/DistrictsUpdated.md | 2 +- docs/Event.md | 2 +- docs/EventResponse.md | 2 +- docs/EventsApi.md | 28 +-- docs/EventsResponse.md | 2 +- docs/GradeLevelsResponse.md | 2 +- docs/InternalError.md | 2 +- docs/Location.md | 2 +- docs/Name.md | 2 +- docs/NotFound.md | 2 +- docs/Principal.md | 2 +- docs/README.md | 144 ++++++++++++++ docs/School.md | 2 +- docs/SchoolAdmin.md | 2 +- docs/SchoolAdminObject.md | 2 +- docs/SchoolAdminResponse.md | 2 +- docs/SchoolAdminsResponse.md | 2 +- docs/SchoolObject.md | 2 +- docs/SchoolResponse.md | 2 +- docs/SchooladminsCreated.md | 2 +- docs/SchooladminsDeleted.md | 2 +- docs/SchooladminsUpdated.md | 2 +- docs/SchoolsCreated.md | 2 +- docs/SchoolsDeleted.md | 2 +- docs/SchoolsResponse.md | 2 +- docs/SchoolsUpdated.md | 2 +- docs/Section.md | 2 +- docs/SectionObject.md | 2 +- docs/SectionResponse.md | 2 +- docs/SectionsCreated.md | 2 +- docs/SectionsDeleted.md | 2 +- docs/SectionsResponse.md | 2 +- docs/SectionsUpdated.md | 2 +- docs/Student.md | 2 +- docs/StudentContact.md | 2 +- docs/StudentContactObject.md | 2 +- docs/StudentContactResponse.md | 2 +- docs/StudentContactsForStudentResponse.md | 2 +- docs/StudentContactsResponse.md | 2 +- docs/StudentObject.md | 2 +- docs/StudentResponse.md | 2 +- docs/StudentcontactsCreated.md | 2 +- docs/StudentcontactsDeleted.md | 2 +- docs/StudentcontactsUpdated.md | 2 +- docs/StudentsCreated.md | 2 +- docs/StudentsDeleted.md | 2 +- docs/StudentsResponse.md | 2 +- docs/StudentsUpdated.md | 2 +- docs/Teacher.md | 2 +- docs/TeacherObject.md | 2 +- docs/TeacherResponse.md | 2 +- docs/TeachersCreated.md | 2 +- docs/TeachersDeleted.md | 2 +- docs/TeachersResponse.md | 2 +- docs/TeachersUpdated.md | 2 +- docs/Term.md | 2 +- override/README.md | 101 ++++++++++ override/override.sh | 10 + 74 files changed, 476 insertions(+), 328 deletions(-) create mode 100644 docs/README.md create mode 100644 override/README.md diff --git a/README.md b/README.md index 3d07cc3..46256da 100644 --- a/README.md +++ b/README.md @@ -1,39 +1,30 @@ -# clever-python -The Clever API +# Clever - the Python library for the Clever API -This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - -- API version: 1.2.0 -- Package version: 1.0.0 -- Build package: io.swagger.codegen.languages.PythonClientCodegen +## API Documentation +View more detailed documentation [here](docs/README.md) ## Requirements. Python 2.7 and 3.4+ -## Installation & Usage -### pip install - -If the python package is hosted on Github, you can install directly from Github +## Installation +From PyPi: -```sh -pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git +```bash + $ pip install clever ``` -(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) -Then import the package: -```python -import clever -``` +or -### Setuptools +```bash + $ easy_install clever +``` -Install via [Setuptools](http://pypi.python.org/pypi/setuptools). +Or from source: -```sh -python setup.py install --user +```bash + $ python setup.py install ``` -(or `sudo python setup.py install` to install the package for all users) Then import the package: ```python @@ -42,7 +33,7 @@ import clever ## Getting Started -Please follow the [installation procedure](#installation--usage) and then run the following: +Please follow the [installation procedure](#installation) and then run the following: ```python from __future__ import print_function @@ -51,158 +42,60 @@ import clever from clever.rest import ApiException from pprint import pprint -# Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +# Note: This is hard coded for demo purposes only. Keep your access tokens secret! +# https://dev.clever.com/docs/security#section-security-best-practices +clever.configuration.access_token = 'DEMO_TOKEN' # create an instance of the API class api_instance = clever.DataApi() -id = 'id_example' # str | try: - api_response = api_instance.get_contact(id) - pprint(api_response) + api_response = api_instance.get_students() + for student in api_response.data: + pprint(student.data.id) except ApiException as e: - print("Exception when calling DataApi->get_contact: %s\n" % e) + print("Exception when calling DataApi->get_students: %s\n" % e) ``` -## Documentation for API Endpoints - -All URIs are relative to *https://api.clever.com/v1.2* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*DataApi* | [**get_contact**](docs/DataApi.md#get_contact) | **GET** /contacts/{id} | -*DataApi* | [**get_contacts**](docs/DataApi.md#get_contacts) | **GET** /contacts | -*DataApi* | [**get_contacts_for_student**](docs/DataApi.md#get_contacts_for_student) | **GET** /students/{id}/contacts | -*DataApi* | [**get_district**](docs/DataApi.md#get_district) | **GET** /districts/{id} | -*DataApi* | [**get_district_admin**](docs/DataApi.md#get_district_admin) | **GET** /district_admins/{id} | -*DataApi* | [**get_district_admins**](docs/DataApi.md#get_district_admins) | **GET** /district_admins | -*DataApi* | [**get_district_for_school**](docs/DataApi.md#get_district_for_school) | **GET** /schools/{id}/district | -*DataApi* | [**get_district_for_section**](docs/DataApi.md#get_district_for_section) | **GET** /sections/{id}/district | -*DataApi* | [**get_district_for_student**](docs/DataApi.md#get_district_for_student) | **GET** /students/{id}/district | -*DataApi* | [**get_district_for_student_contact**](docs/DataApi.md#get_district_for_student_contact) | **GET** /contacts/{id}/district | -*DataApi* | [**get_district_for_teacher**](docs/DataApi.md#get_district_for_teacher) | **GET** /teachers/{id}/district | -*DataApi* | [**get_district_status**](docs/DataApi.md#get_district_status) | **GET** /districts/{id}/status | -*DataApi* | [**get_districts**](docs/DataApi.md#get_districts) | **GET** /districts | -*DataApi* | [**get_grade_levels_for_teacher**](docs/DataApi.md#get_grade_levels_for_teacher) | **GET** /teachers/{id}/grade_levels | -*DataApi* | [**get_school**](docs/DataApi.md#get_school) | **GET** /schools/{id} | -*DataApi* | [**get_school_admin**](docs/DataApi.md#get_school_admin) | **GET** /school_admins/{id} | -*DataApi* | [**get_school_admins**](docs/DataApi.md#get_school_admins) | **GET** /school_admins | -*DataApi* | [**get_school_for_section**](docs/DataApi.md#get_school_for_section) | **GET** /sections/{id}/school | -*DataApi* | [**get_school_for_student**](docs/DataApi.md#get_school_for_student) | **GET** /students/{id}/school | -*DataApi* | [**get_school_for_teacher**](docs/DataApi.md#get_school_for_teacher) | **GET** /teachers/{id}/school | -*DataApi* | [**get_schools**](docs/DataApi.md#get_schools) | **GET** /schools | -*DataApi* | [**get_schools_for_school_admin**](docs/DataApi.md#get_schools_for_school_admin) | **GET** /school_admins/{id}/schools | -*DataApi* | [**get_section**](docs/DataApi.md#get_section) | **GET** /sections/{id} | -*DataApi* | [**get_sections**](docs/DataApi.md#get_sections) | **GET** /sections | -*DataApi* | [**get_sections_for_school**](docs/DataApi.md#get_sections_for_school) | **GET** /schools/{id}/sections | -*DataApi* | [**get_sections_for_student**](docs/DataApi.md#get_sections_for_student) | **GET** /students/{id}/sections | -*DataApi* | [**get_sections_for_teacher**](docs/DataApi.md#get_sections_for_teacher) | **GET** /teachers/{id}/sections | -*DataApi* | [**get_student**](docs/DataApi.md#get_student) | **GET** /students/{id} | -*DataApi* | [**get_student_for_contact**](docs/DataApi.md#get_student_for_contact) | **GET** /contacts/{id}/student | -*DataApi* | [**get_students**](docs/DataApi.md#get_students) | **GET** /students | -*DataApi* | [**get_students_for_school**](docs/DataApi.md#get_students_for_school) | **GET** /schools/{id}/students | -*DataApi* | [**get_students_for_section**](docs/DataApi.md#get_students_for_section) | **GET** /sections/{id}/students | -*DataApi* | [**get_students_for_teacher**](docs/DataApi.md#get_students_for_teacher) | **GET** /teachers/{id}/students | -*DataApi* | [**get_teacher**](docs/DataApi.md#get_teacher) | **GET** /teachers/{id} | -*DataApi* | [**get_teacher_for_section**](docs/DataApi.md#get_teacher_for_section) | **GET** /sections/{id}/teacher | -*DataApi* | [**get_teachers**](docs/DataApi.md#get_teachers) | **GET** /teachers | -*DataApi* | [**get_teachers_for_school**](docs/DataApi.md#get_teachers_for_school) | **GET** /schools/{id}/teachers | -*DataApi* | [**get_teachers_for_section**](docs/DataApi.md#get_teachers_for_section) | **GET** /sections/{id}/teachers | -*DataApi* | [**get_teachers_for_student**](docs/DataApi.md#get_teachers_for_student) | **GET** /students/{id}/teachers | -*EventsApi* | [**get_event**](docs/EventsApi.md#get_event) | **GET** /events/{id} | -*EventsApi* | [**get_events**](docs/EventsApi.md#get_events) | **GET** /events | -*EventsApi* | [**get_events_for_school**](docs/EventsApi.md#get_events_for_school) | **GET** /schools/{id}/events | -*EventsApi* | [**get_events_for_school_admin**](docs/EventsApi.md#get_events_for_school_admin) | **GET** /school_admins/{id}/events | -*EventsApi* | [**get_events_for_section**](docs/EventsApi.md#get_events_for_section) | **GET** /sections/{id}/events | -*EventsApi* | [**get_events_for_student**](docs/EventsApi.md#get_events_for_student) | **GET** /students/{id}/events | -*EventsApi* | [**get_events_for_teacher**](docs/EventsApi.md#get_events_for_teacher) | **GET** /teachers/{id}/events | - - -## Documentation For Models - - - [BadRequest](docs/BadRequest.md) - - [Credentials](docs/Credentials.md) - - [District](docs/District.md) - - [DistrictAdmin](docs/DistrictAdmin.md) - - [DistrictAdminResponse](docs/DistrictAdminResponse.md) - - [DistrictAdminsResponse](docs/DistrictAdminsResponse.md) - - [DistrictObject](docs/DistrictObject.md) - - [DistrictResponse](docs/DistrictResponse.md) - - [DistrictStatus](docs/DistrictStatus.md) - - [DistrictStatusResponse](docs/DistrictStatusResponse.md) - - [DistrictStatusResponses](docs/DistrictStatusResponses.md) - - [DistrictsResponse](docs/DistrictsResponse.md) - - [Event](docs/Event.md) - - [EventResponse](docs/EventResponse.md) - - [EventsResponse](docs/EventsResponse.md) - - [GradeLevelsResponse](docs/GradeLevelsResponse.md) - - [InternalError](docs/InternalError.md) - - [Location](docs/Location.md) - - [Name](docs/Name.md) - - [NotFound](docs/NotFound.md) - - [Principal](docs/Principal.md) - - [School](docs/School.md) - - [SchoolAdmin](docs/SchoolAdmin.md) - - [SchoolAdminObject](docs/SchoolAdminObject.md) - - [SchoolAdminResponse](docs/SchoolAdminResponse.md) - - [SchoolAdminsResponse](docs/SchoolAdminsResponse.md) - - [SchoolObject](docs/SchoolObject.md) - - [SchoolResponse](docs/SchoolResponse.md) - - [SchoolsResponse](docs/SchoolsResponse.md) - - [Section](docs/Section.md) - - [SectionObject](docs/SectionObject.md) - - [SectionResponse](docs/SectionResponse.md) - - [SectionsResponse](docs/SectionsResponse.md) - - [Student](docs/Student.md) - - [StudentContact](docs/StudentContact.md) - - [StudentContactObject](docs/StudentContactObject.md) - - [StudentContactResponse](docs/StudentContactResponse.md) - - [StudentContactsForStudentResponse](docs/StudentContactsForStudentResponse.md) - - [StudentContactsResponse](docs/StudentContactsResponse.md) - - [StudentObject](docs/StudentObject.md) - - [StudentResponse](docs/StudentResponse.md) - - [StudentsResponse](docs/StudentsResponse.md) - - [Teacher](docs/Teacher.md) - - [TeacherObject](docs/TeacherObject.md) - - [TeacherResponse](docs/TeacherResponse.md) - - [TeachersResponse](docs/TeachersResponse.md) - - [Term](docs/Term.md) - - [DistrictsCreated](docs/DistrictsCreated.md) - - [DistrictsDeleted](docs/DistrictsDeleted.md) - - [DistrictsUpdated](docs/DistrictsUpdated.md) - - [SchooladminsCreated](docs/SchooladminsCreated.md) - - [SchooladminsDeleted](docs/SchooladminsDeleted.md) - - [SchooladminsUpdated](docs/SchooladminsUpdated.md) - - [SchoolsCreated](docs/SchoolsCreated.md) - - [SchoolsDeleted](docs/SchoolsDeleted.md) - - [SchoolsUpdated](docs/SchoolsUpdated.md) - - [SectionsCreated](docs/SectionsCreated.md) - - [SectionsDeleted](docs/SectionsDeleted.md) - - [SectionsUpdated](docs/SectionsUpdated.md) - - [StudentcontactsCreated](docs/StudentcontactsCreated.md) - - [StudentcontactsDeleted](docs/StudentcontactsDeleted.md) - - [StudentcontactsUpdated](docs/StudentcontactsUpdated.md) - - [StudentsCreated](docs/StudentsCreated.md) - - [StudentsDeleted](docs/StudentsDeleted.md) - - [StudentsUpdated](docs/StudentsUpdated.md) - - [TeachersCreated](docs/TeachersCreated.md) - - [TeachersDeleted](docs/TeachersDeleted.md) - - [TeachersUpdated](docs/TeachersUpdated.md) - - -## Documentation For Authorization - - -## oauth - -- **Type**: OAuth -- **Flow**: accessCode -- **Authorization URL**: https://clever.com/oauth/authorize -- **Scopes**: N/A - - -## Author +## Updating the Library + +1. Git clone swagger-codegen (https://github.com/swagger-api/swagger-codegen) + +2. Git clone Clever's swagger-api repo (https://github.com/Clever/swagger-api) + +3. Run this command in the swagger-codegen repo +``` +java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i $PATH_TO_SWAGGER_API_REPO/v1.2-client.yml -c $PATH_TO_THIS_REPO/override/config.json -l python -o $PATH_TO_THIS_REPO --additional-properties packageVersion=$VERSION +``` + +4. Run `make override` to copy over the override files +5. Update the CHANGELOG.md with the changes! +## Development + +### Dependencies + + make deps + +### Testing + + make test + +## Publishing + +Run `make publish` to publish a new version of the library. + +In order to publish to PyPI you will need a `.pypirc` file in your `$HOME` directory with the following contents: +``` +[distutils] +index-servers = + pypi + +[pypi] +username: **** +password: **** +``` + +The username and password are in 1Password for Teams under `PyPI`. diff --git a/docs/BadRequest.md b/docs/BadRequest.md index 559807e..680c873 100644 --- a/docs/BadRequest.md +++ b/docs/BadRequest.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/Credentials.md b/docs/Credentials.md index 52459ef..86ff927 100644 --- a/docs/Credentials.md +++ b/docs/Credentials.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **district_username** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DataApi.md b/docs/DataApi.md index c128559..f462b9a 100644 --- a/docs/DataApi.md +++ b/docs/DataApi.md @@ -86,14 +86,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_contacts** > StudentContactsResponse get_contacts(limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -140,14 +140,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_contacts_for_student** > StudentContactsForStudentResponse get_contacts_for_student(id, limit=limit) @@ -192,14 +192,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_district** > DistrictResponse get_district(id) @@ -242,14 +242,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_district_admin** > DistrictAdminResponse get_district_admin(id) @@ -292,14 +292,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_district_admins** > DistrictAdminsResponse get_district_admins(starting_after=starting_after, ending_before=ending_before) @@ -344,14 +344,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_district_for_school** > DistrictResponse get_district_for_school(id) @@ -394,14 +394,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_district_for_section** > DistrictResponse get_district_for_section(id) @@ -444,14 +444,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_district_for_student** > DistrictResponse get_district_for_student(id) @@ -494,14 +494,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_district_for_student_contact** > DistrictResponse get_district_for_student_contact(id) @@ -544,14 +544,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_district_for_teacher** > DistrictResponse get_district_for_teacher(id) @@ -594,14 +594,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_district_status** > DistrictStatusResponses get_district_status(id) @@ -644,14 +644,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_districts** > DistrictsResponse get_districts() @@ -690,14 +690,14 @@ This endpoint does not need any parameter. ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_grade_levels_for_teacher** > GradeLevelsResponse get_grade_levels_for_teacher(id) @@ -740,14 +740,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_school** > SchoolResponse get_school(id) @@ -790,14 +790,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_school_admin** > SchoolAdminResponse get_school_admin(id) @@ -840,14 +840,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_school_admins** > SchoolAdminsResponse get_school_admins(limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -894,14 +894,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_school_for_section** > SchoolResponse get_school_for_section(id) @@ -944,14 +944,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_school_for_student** > SchoolResponse get_school_for_student(id) @@ -994,14 +994,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_school_for_teacher** > SchoolResponse get_school_for_teacher(id) @@ -1044,14 +1044,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_schools** > SchoolsResponse get_schools(limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -1098,14 +1098,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_schools_for_school_admin** > SchoolsResponse get_schools_for_school_admin(id, limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -1154,14 +1154,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_section** > SectionResponse get_section(id) @@ -1204,14 +1204,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_sections** > SectionsResponse get_sections(limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -1258,14 +1258,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_sections_for_school** > SectionsResponse get_sections_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -1314,14 +1314,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_sections_for_student** > SectionsResponse get_sections_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -1370,14 +1370,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_sections_for_teacher** > SectionsResponse get_sections_for_teacher(id, limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -1426,14 +1426,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_student** > StudentResponse get_student(id) @@ -1476,14 +1476,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_student_for_contact** > StudentResponse get_student_for_contact(id) @@ -1526,14 +1526,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_students** > StudentsResponse get_students(limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -1580,14 +1580,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_students_for_school** > StudentsResponse get_students_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -1636,14 +1636,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_students_for_section** > StudentsResponse get_students_for_section(id, limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -1692,14 +1692,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_students_for_teacher** > StudentsResponse get_students_for_teacher(id, limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -1748,14 +1748,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_teacher** > TeacherResponse get_teacher(id) @@ -1798,14 +1798,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_teacher_for_section** > TeacherResponse get_teacher_for_section(id) @@ -1848,14 +1848,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_teachers** > TeachersResponse get_teachers(limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -1902,14 +1902,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_teachers_for_school** > TeachersResponse get_teachers_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -1958,14 +1958,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_teachers_for_section** > TeachersResponse get_teachers_for_section(id, limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -2014,14 +2014,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_teachers_for_student** > TeachersResponse get_teachers_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -2070,12 +2070,12 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) diff --git a/docs/District.md b/docs/District.md index 62633e6..34f0515 100644 --- a/docs/District.md +++ b/docs/District.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes **mdr_number** | **str** | | [optional] **name** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictAdmin.md b/docs/DistrictAdmin.md index 9f9cb44..795a33c 100644 --- a/docs/DistrictAdmin.md +++ b/docs/DistrictAdmin.md @@ -9,6 +9,6 @@ Name | Type | Description | Notes **name** | [**Name**](Name.md) | | [optional] **title** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictAdminResponse.md b/docs/DistrictAdminResponse.md index 45e83e2..371a0c0 100644 --- a/docs/DistrictAdminResponse.md +++ b/docs/DistrictAdminResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**DistrictAdmin**](DistrictAdmin.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictAdminsResponse.md b/docs/DistrictAdminsResponse.md index 33c93a6..c933d79 100644 --- a/docs/DistrictAdminsResponse.md +++ b/docs/DistrictAdminsResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**list[DistrictAdmin]**](DistrictAdmin.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictObject.md b/docs/DistrictObject.md index 8d71a09..9c4bc46 100644 --- a/docs/DistrictObject.md +++ b/docs/DistrictObject.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **object** | [**District**](District.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictResponse.md b/docs/DistrictResponse.md index 29ead25..dc06322 100644 --- a/docs/DistrictResponse.md +++ b/docs/DistrictResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**District**](District.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictStatus.md b/docs/DistrictStatus.md index 86c673c..f1ee1e3 100644 --- a/docs/DistrictStatus.md +++ b/docs/DistrictStatus.md @@ -12,6 +12,6 @@ Name | Type | Description | Notes **sis_type** | **str** | | [optional] **state** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictStatusResponse.md b/docs/DistrictStatusResponse.md index 2163b3e..e61b44e 100644 --- a/docs/DistrictStatusResponse.md +++ b/docs/DistrictStatusResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**DistrictStatus**](DistrictStatus.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictStatusResponses.md b/docs/DistrictStatusResponses.md index 5d8394f..d29d488 100644 --- a/docs/DistrictStatusResponses.md +++ b/docs/DistrictStatusResponses.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**list[DistrictStatusResponse]**](DistrictStatusResponse.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictsCreated.md b/docs/DistrictsCreated.md index 634ea80..5ab1c62 100644 --- a/docs/DistrictsCreated.md +++ b/docs/DistrictsCreated.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**DistrictObject**](DistrictObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictsDeleted.md b/docs/DistrictsDeleted.md index d9269a6..d76b6f7 100644 --- a/docs/DistrictsDeleted.md +++ b/docs/DistrictsDeleted.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**DistrictObject**](DistrictObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictsResponse.md b/docs/DistrictsResponse.md index 0857e3a..35a7908 100644 --- a/docs/DistrictsResponse.md +++ b/docs/DistrictsResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**list[DistrictResponse]**](DistrictResponse.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictsUpdated.md b/docs/DistrictsUpdated.md index 23cdc4b..ca2ab85 100644 --- a/docs/DistrictsUpdated.md +++ b/docs/DistrictsUpdated.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**DistrictObject**](DistrictObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/Event.md b/docs/Event.md index 6aca0e8..1c375bb 100644 --- a/docs/Event.md +++ b/docs/Event.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes **id** | **str** | | [optional] **type** | **str** | | -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/EventResponse.md b/docs/EventResponse.md index cdcbe03..7e96303 100644 --- a/docs/EventResponse.md +++ b/docs/EventResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Event**](Event.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/EventsApi.md b/docs/EventsApi.md index b956266..00a67f4 100644 --- a/docs/EventsApi.md +++ b/docs/EventsApi.md @@ -54,14 +54,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_events** > EventsResponse get_events(limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -108,14 +108,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_events_for_school** > EventsResponse get_events_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -164,14 +164,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_events_for_school_admin** > EventsResponse get_events_for_school_admin(id, limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -220,14 +220,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_events_for_section** > EventsResponse get_events_for_section(id, limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -276,14 +276,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_events_for_student** > EventsResponse get_events_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -332,14 +332,14 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_events_for_teacher** > EventsResponse get_events_for_teacher(id, limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -388,12 +388,12 @@ Name | Type | Description | Notes ### Authorization -[oauth](../README.md#oauth) +[oauth](README.md#oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) diff --git a/docs/EventsResponse.md b/docs/EventsResponse.md index 0ffdfc3..79c6e86 100644 --- a/docs/EventsResponse.md +++ b/docs/EventsResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**list[EventResponse]**](EventResponse.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/GradeLevelsResponse.md b/docs/GradeLevelsResponse.md index f443417..7dc94e7 100644 --- a/docs/GradeLevelsResponse.md +++ b/docs/GradeLevelsResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **list[str]** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/InternalError.md b/docs/InternalError.md index d4887d8..2eedaa8 100644 --- a/docs/InternalError.md +++ b/docs/InternalError.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/Location.md b/docs/Location.md index d4237f9..172fc7d 100644 --- a/docs/Location.md +++ b/docs/Location.md @@ -10,6 +10,6 @@ Name | Type | Description | Notes **state** | **str** | | [optional] **zip** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/Name.md b/docs/Name.md index cba2535..5298378 100644 --- a/docs/Name.md +++ b/docs/Name.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes **last** | **str** | | [optional] **middle** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/NotFound.md b/docs/NotFound.md index 661e845..4610cc7 100644 --- a/docs/NotFound.md +++ b/docs/NotFound.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/Principal.md b/docs/Principal.md index 2971458..f4d2177 100644 --- a/docs/Principal.md +++ b/docs/Principal.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes **email** | **str** | | [optional] **name** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..7ba0b75 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,144 @@ +# clever-python +The Clever API + +This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: + +- API version: 1.2.0 +- Package version: 3.0.0 +- Build package: io.swagger.codegen.languages.PythonClientCodegen + +## Documentation for API Endpoints + +All URIs are relative to *https://api.clever.com/v1.2* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DataApi* | [**get_contact**](DataApi.md#get_contact) | **GET** /contacts/{id} | +*DataApi* | [**get_contacts**](DataApi.md#get_contacts) | **GET** /contacts | +*DataApi* | [**get_contacts_for_student**](DataApi.md#get_contacts_for_student) | **GET** /students/{id}/contacts | +*DataApi* | [**get_district**](DataApi.md#get_district) | **GET** /districts/{id} | +*DataApi* | [**get_district_admin**](DataApi.md#get_district_admin) | **GET** /district_admins/{id} | +*DataApi* | [**get_district_admins**](DataApi.md#get_district_admins) | **GET** /district_admins | +*DataApi* | [**get_district_for_school**](DataApi.md#get_district_for_school) | **GET** /schools/{id}/district | +*DataApi* | [**get_district_for_section**](DataApi.md#get_district_for_section) | **GET** /sections/{id}/district | +*DataApi* | [**get_district_for_student**](DataApi.md#get_district_for_student) | **GET** /students/{id}/district | +*DataApi* | [**get_district_for_student_contact**](DataApi.md#get_district_for_student_contact) | **GET** /contacts/{id}/district | +*DataApi* | [**get_district_for_teacher**](DataApi.md#get_district_for_teacher) | **GET** /teachers/{id}/district | +*DataApi* | [**get_district_status**](DataApi.md#get_district_status) | **GET** /districts/{id}/status | +*DataApi* | [**get_districts**](DataApi.md#get_districts) | **GET** /districts | +*DataApi* | [**get_grade_levels_for_teacher**](DataApi.md#get_grade_levels_for_teacher) | **GET** /teachers/{id}/grade_levels | +*DataApi* | [**get_school**](DataApi.md#get_school) | **GET** /schools/{id} | +*DataApi* | [**get_school_admin**](DataApi.md#get_school_admin) | **GET** /school_admins/{id} | +*DataApi* | [**get_school_admins**](DataApi.md#get_school_admins) | **GET** /school_admins | +*DataApi* | [**get_school_for_section**](DataApi.md#get_school_for_section) | **GET** /sections/{id}/school | +*DataApi* | [**get_school_for_student**](DataApi.md#get_school_for_student) | **GET** /students/{id}/school | +*DataApi* | [**get_school_for_teacher**](DataApi.md#get_school_for_teacher) | **GET** /teachers/{id}/school | +*DataApi* | [**get_schools**](DataApi.md#get_schools) | **GET** /schools | +*DataApi* | [**get_schools_for_school_admin**](DataApi.md#get_schools_for_school_admin) | **GET** /school_admins/{id}/schools | +*DataApi* | [**get_section**](DataApi.md#get_section) | **GET** /sections/{id} | +*DataApi* | [**get_sections**](DataApi.md#get_sections) | **GET** /sections | +*DataApi* | [**get_sections_for_school**](DataApi.md#get_sections_for_school) | **GET** /schools/{id}/sections | +*DataApi* | [**get_sections_for_student**](DataApi.md#get_sections_for_student) | **GET** /students/{id}/sections | +*DataApi* | [**get_sections_for_teacher**](DataApi.md#get_sections_for_teacher) | **GET** /teachers/{id}/sections | +*DataApi* | [**get_student**](DataApi.md#get_student) | **GET** /students/{id} | +*DataApi* | [**get_student_for_contact**](DataApi.md#get_student_for_contact) | **GET** /contacts/{id}/student | +*DataApi* | [**get_students**](DataApi.md#get_students) | **GET** /students | +*DataApi* | [**get_students_for_school**](DataApi.md#get_students_for_school) | **GET** /schools/{id}/students | +*DataApi* | [**get_students_for_section**](DataApi.md#get_students_for_section) | **GET** /sections/{id}/students | +*DataApi* | [**get_students_for_teacher**](DataApi.md#get_students_for_teacher) | **GET** /teachers/{id}/students | +*DataApi* | [**get_teacher**](DataApi.md#get_teacher) | **GET** /teachers/{id} | +*DataApi* | [**get_teacher_for_section**](DataApi.md#get_teacher_for_section) | **GET** /sections/{id}/teacher | +*DataApi* | [**get_teachers**](DataApi.md#get_teachers) | **GET** /teachers | +*DataApi* | [**get_teachers_for_school**](DataApi.md#get_teachers_for_school) | **GET** /schools/{id}/teachers | +*DataApi* | [**get_teachers_for_section**](DataApi.md#get_teachers_for_section) | **GET** /sections/{id}/teachers | +*DataApi* | [**get_teachers_for_student**](DataApi.md#get_teachers_for_student) | **GET** /students/{id}/teachers | +*EventsApi* | [**get_event**](EventsApi.md#get_event) | **GET** /events/{id} | +*EventsApi* | [**get_events**](EventsApi.md#get_events) | **GET** /events | +*EventsApi* | [**get_events_for_school**](EventsApi.md#get_events_for_school) | **GET** /schools/{id}/events | +*EventsApi* | [**get_events_for_school_admin**](EventsApi.md#get_events_for_school_admin) | **GET** /school_admins/{id}/events | +*EventsApi* | [**get_events_for_section**](EventsApi.md#get_events_for_section) | **GET** /sections/{id}/events | +*EventsApi* | [**get_events_for_student**](EventsApi.md#get_events_for_student) | **GET** /students/{id}/events | +*EventsApi* | [**get_events_for_teacher**](EventsApi.md#get_events_for_teacher) | **GET** /teachers/{id}/events | + + +## Documentation For Models + + - [BadRequest](BadRequest.md) + - [Credentials](Credentials.md) + - [District](District.md) + - [DistrictAdmin](DistrictAdmin.md) + - [DistrictAdminResponse](DistrictAdminResponse.md) + - [DistrictAdminsResponse](DistrictAdminsResponse.md) + - [DistrictObject](DistrictObject.md) + - [DistrictResponse](DistrictResponse.md) + - [DistrictStatus](DistrictStatus.md) + - [DistrictStatusResponse](DistrictStatusResponse.md) + - [DistrictStatusResponses](DistrictStatusResponses.md) + - [DistrictsResponse](DistrictsResponse.md) + - [Event](Event.md) + - [EventResponse](EventResponse.md) + - [EventsResponse](EventsResponse.md) + - [GradeLevelsResponse](GradeLevelsResponse.md) + - [InternalError](InternalError.md) + - [Location](Location.md) + - [Name](Name.md) + - [NotFound](NotFound.md) + - [Principal](Principal.md) + - [School](School.md) + - [SchoolAdmin](SchoolAdmin.md) + - [SchoolAdminObject](SchoolAdminObject.md) + - [SchoolAdminResponse](SchoolAdminResponse.md) + - [SchoolAdminsResponse](SchoolAdminsResponse.md) + - [SchoolObject](SchoolObject.md) + - [SchoolResponse](SchoolResponse.md) + - [SchoolsResponse](SchoolsResponse.md) + - [Section](Section.md) + - [SectionObject](SectionObject.md) + - [SectionResponse](SectionResponse.md) + - [SectionsResponse](SectionsResponse.md) + - [Student](Student.md) + - [StudentContact](StudentContact.md) + - [StudentContactObject](StudentContactObject.md) + - [StudentContactResponse](StudentContactResponse.md) + - [StudentContactsForStudentResponse](StudentContactsForStudentResponse.md) + - [StudentContactsResponse](StudentContactsResponse.md) + - [StudentObject](StudentObject.md) + - [StudentResponse](StudentResponse.md) + - [StudentsResponse](StudentsResponse.md) + - [Teacher](Teacher.md) + - [TeacherObject](TeacherObject.md) + - [TeacherResponse](TeacherResponse.md) + - [TeachersResponse](TeachersResponse.md) + - [Term](Term.md) + - [DistrictsCreated](DistrictsCreated.md) + - [DistrictsDeleted](DistrictsDeleted.md) + - [DistrictsUpdated](DistrictsUpdated.md) + - [SchooladminsCreated](SchooladminsCreated.md) + - [SchooladminsDeleted](SchooladminsDeleted.md) + - [SchooladminsUpdated](SchooladminsUpdated.md) + - [SchoolsCreated](SchoolsCreated.md) + - [SchoolsDeleted](SchoolsDeleted.md) + - [SchoolsUpdated](SchoolsUpdated.md) + - [SectionsCreated](SectionsCreated.md) + - [SectionsDeleted](SectionsDeleted.md) + - [SectionsUpdated](SectionsUpdated.md) + - [StudentcontactsCreated](StudentcontactsCreated.md) + - [StudentcontactsDeleted](StudentcontactsDeleted.md) + - [StudentcontactsUpdated](StudentcontactsUpdated.md) + - [StudentsCreated](StudentsCreated.md) + - [StudentsDeleted](StudentsDeleted.md) + - [StudentsUpdated](StudentsUpdated.md) + - [TeachersCreated](TeachersCreated.md) + - [TeachersDeleted](TeachersDeleted.md) + - [TeachersUpdated](TeachersUpdated.md) + + +## Documentation For Authorization + + +## oauth + +- **Type**: OAuth +- **Flow**: accessCode +- **Authorization URL**: https://clever.com/oauth/authorize +- **Scopes**: N/A diff --git a/docs/School.md b/docs/School.md index f34a3ff..5e648d7 100644 --- a/docs/School.md +++ b/docs/School.md @@ -19,6 +19,6 @@ Name | Type | Description | Notes **sis_id** | **str** | | [optional] **state_id** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchoolAdmin.md b/docs/SchoolAdmin.md index 7216e75..834d378 100644 --- a/docs/SchoolAdmin.md +++ b/docs/SchoolAdmin.md @@ -12,6 +12,6 @@ Name | Type | Description | Notes **staff_id** | **str** | | [optional] **title** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchoolAdminObject.md b/docs/SchoolAdminObject.md index 1ac94a3..b64de43 100644 --- a/docs/SchoolAdminObject.md +++ b/docs/SchoolAdminObject.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **object** | [**SchoolAdmin**](SchoolAdmin.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchoolAdminResponse.md b/docs/SchoolAdminResponse.md index bfa6e46..16e099d 100644 --- a/docs/SchoolAdminResponse.md +++ b/docs/SchoolAdminResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**SchoolAdmin**](SchoolAdmin.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchoolAdminsResponse.md b/docs/SchoolAdminsResponse.md index 2ccad80..c8bc719 100644 --- a/docs/SchoolAdminsResponse.md +++ b/docs/SchoolAdminsResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**list[SchoolAdminResponse]**](SchoolAdminResponse.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchoolObject.md b/docs/SchoolObject.md index 857a9d9..e201586 100644 --- a/docs/SchoolObject.md +++ b/docs/SchoolObject.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **object** | [**School**](School.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchoolResponse.md b/docs/SchoolResponse.md index 5448983..11af862 100644 --- a/docs/SchoolResponse.md +++ b/docs/SchoolResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**School**](School.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchooladminsCreated.md b/docs/SchooladminsCreated.md index 3bce223..8a59b42 100644 --- a/docs/SchooladminsCreated.md +++ b/docs/SchooladminsCreated.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**SchoolAdminObject**](SchoolAdminObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchooladminsDeleted.md b/docs/SchooladminsDeleted.md index 7393031..aa1c016 100644 --- a/docs/SchooladminsDeleted.md +++ b/docs/SchooladminsDeleted.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**SchoolAdminObject**](SchoolAdminObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchooladminsUpdated.md b/docs/SchooladminsUpdated.md index 872bee1..77be0d7 100644 --- a/docs/SchooladminsUpdated.md +++ b/docs/SchooladminsUpdated.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**SchoolAdminObject**](SchoolAdminObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchoolsCreated.md b/docs/SchoolsCreated.md index 46657d8..c0bfc7b 100644 --- a/docs/SchoolsCreated.md +++ b/docs/SchoolsCreated.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**SchoolObject**](SchoolObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchoolsDeleted.md b/docs/SchoolsDeleted.md index 04594f7..52a4b6f 100644 --- a/docs/SchoolsDeleted.md +++ b/docs/SchoolsDeleted.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**SchoolObject**](SchoolObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchoolsResponse.md b/docs/SchoolsResponse.md index 39eae4d..babd987 100644 --- a/docs/SchoolsResponse.md +++ b/docs/SchoolsResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**list[SchoolResponse]**](SchoolResponse.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchoolsUpdated.md b/docs/SchoolsUpdated.md index 723d584..034b901 100644 --- a/docs/SchoolsUpdated.md +++ b/docs/SchoolsUpdated.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**SchoolObject**](SchoolObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/Section.md b/docs/Section.md index 1930056..86a7302 100644 --- a/docs/Section.md +++ b/docs/Section.md @@ -22,6 +22,6 @@ Name | Type | Description | Notes **teachers** | **list[str]** | | [optional] **term** | [**Term**](Term.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SectionObject.md b/docs/SectionObject.md index b48222c..563f2a5 100644 --- a/docs/SectionObject.md +++ b/docs/SectionObject.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **object** | [**Section**](Section.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SectionResponse.md b/docs/SectionResponse.md index 2d45f1e..8bc5ee6 100644 --- a/docs/SectionResponse.md +++ b/docs/SectionResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Section**](Section.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SectionsCreated.md b/docs/SectionsCreated.md index 1d4a526..f7a6d2c 100644 --- a/docs/SectionsCreated.md +++ b/docs/SectionsCreated.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**SectionObject**](SectionObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SectionsDeleted.md b/docs/SectionsDeleted.md index af914d5..3602ae4 100644 --- a/docs/SectionsDeleted.md +++ b/docs/SectionsDeleted.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**SectionObject**](SectionObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SectionsResponse.md b/docs/SectionsResponse.md index f6a8add..f8a6f65 100644 --- a/docs/SectionsResponse.md +++ b/docs/SectionsResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**list[SectionResponse]**](SectionResponse.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SectionsUpdated.md b/docs/SectionsUpdated.md index a58137f..efed927 100644 --- a/docs/SectionsUpdated.md +++ b/docs/SectionsUpdated.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**SectionObject**](SectionObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/Student.md b/docs/Student.md index bb39dcc..23dfd73 100644 --- a/docs/Student.md +++ b/docs/Student.md @@ -28,6 +28,6 @@ Name | Type | Description | Notes **unweighted_gpa** | **str** | | [optional] **weighted_gpa** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/StudentContact.md b/docs/StudentContact.md index b4a7967..d6604d6 100644 --- a/docs/StudentContact.md +++ b/docs/StudentContact.md @@ -14,6 +14,6 @@ Name | Type | Description | Notes **student** | **str** | | [optional] **type** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/StudentContactObject.md b/docs/StudentContactObject.md index bdc8a1c..6757632 100644 --- a/docs/StudentContactObject.md +++ b/docs/StudentContactObject.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **object** | [**StudentContact**](StudentContact.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/StudentContactResponse.md b/docs/StudentContactResponse.md index e4a2054..061f81a 100644 --- a/docs/StudentContactResponse.md +++ b/docs/StudentContactResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**StudentContact**](StudentContact.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/StudentContactsForStudentResponse.md b/docs/StudentContactsForStudentResponse.md index 518ec04..6a388de 100644 --- a/docs/StudentContactsForStudentResponse.md +++ b/docs/StudentContactsForStudentResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**list[StudentContact]**](StudentContact.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/StudentContactsResponse.md b/docs/StudentContactsResponse.md index 2550fb1..fc2122b 100644 --- a/docs/StudentContactsResponse.md +++ b/docs/StudentContactsResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**list[StudentContactResponse]**](StudentContactResponse.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/StudentObject.md b/docs/StudentObject.md index 9a0bdca..6461d93 100644 --- a/docs/StudentObject.md +++ b/docs/StudentObject.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **object** | [**Student**](Student.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/StudentResponse.md b/docs/StudentResponse.md index 464d012..8c90182 100644 --- a/docs/StudentResponse.md +++ b/docs/StudentResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Student**](Student.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/StudentcontactsCreated.md b/docs/StudentcontactsCreated.md index 99a604f..95e36ff 100644 --- a/docs/StudentcontactsCreated.md +++ b/docs/StudentcontactsCreated.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**StudentContactObject**](StudentContactObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/StudentcontactsDeleted.md b/docs/StudentcontactsDeleted.md index 46c60b5..c29d344 100644 --- a/docs/StudentcontactsDeleted.md +++ b/docs/StudentcontactsDeleted.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**StudentContactObject**](StudentContactObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/StudentcontactsUpdated.md b/docs/StudentcontactsUpdated.md index 0b1cc19..91a865d 100644 --- a/docs/StudentcontactsUpdated.md +++ b/docs/StudentcontactsUpdated.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**StudentContactObject**](StudentContactObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/StudentsCreated.md b/docs/StudentsCreated.md index 9b58b80..0480260 100644 --- a/docs/StudentsCreated.md +++ b/docs/StudentsCreated.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**StudentObject**](StudentObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/StudentsDeleted.md b/docs/StudentsDeleted.md index a9f58fb..a83eba4 100644 --- a/docs/StudentsDeleted.md +++ b/docs/StudentsDeleted.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**StudentObject**](StudentObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/StudentsResponse.md b/docs/StudentsResponse.md index c76a297..b25e7ca 100644 --- a/docs/StudentsResponse.md +++ b/docs/StudentsResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**list[StudentResponse]**](StudentResponse.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/StudentsUpdated.md b/docs/StudentsUpdated.md index 537e33c..b1c34f0 100644 --- a/docs/StudentsUpdated.md +++ b/docs/StudentsUpdated.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**StudentObject**](StudentObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/Teacher.md b/docs/Teacher.md index f001b31..9e4eb39 100644 --- a/docs/Teacher.md +++ b/docs/Teacher.md @@ -17,6 +17,6 @@ Name | Type | Description | Notes **teacher_number** | **str** | | [optional] **title** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/TeacherObject.md b/docs/TeacherObject.md index 41fb923..e0a3a1a 100644 --- a/docs/TeacherObject.md +++ b/docs/TeacherObject.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **object** | [**Teacher**](Teacher.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/TeacherResponse.md b/docs/TeacherResponse.md index 8fdb1ed..490dd1a 100644 --- a/docs/TeacherResponse.md +++ b/docs/TeacherResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Teacher**](Teacher.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/TeachersCreated.md b/docs/TeachersCreated.md index 67a845d..153fdc0 100644 --- a/docs/TeachersCreated.md +++ b/docs/TeachersCreated.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**TeacherObject**](TeacherObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/TeachersDeleted.md b/docs/TeachersDeleted.md index 695681d..c570d41 100644 --- a/docs/TeachersDeleted.md +++ b/docs/TeachersDeleted.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**TeacherObject**](TeacherObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/TeachersResponse.md b/docs/TeachersResponse.md index 1e5ad27..8033bec 100644 --- a/docs/TeachersResponse.md +++ b/docs/TeachersResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**list[TeacherResponse]**](TeacherResponse.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/TeachersUpdated.md b/docs/TeachersUpdated.md index e1eefda..280564e 100644 --- a/docs/TeachersUpdated.md +++ b/docs/TeachersUpdated.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | **data** | [**TeacherObject**](TeacherObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/Term.md b/docs/Term.md index 83cddd2..8c00abb 100644 --- a/docs/Term.md +++ b/docs/Term.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes **name** | **str** | | [optional] **start_date** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/override/README.md b/override/README.md new file mode 100644 index 0000000..46256da --- /dev/null +++ b/override/README.md @@ -0,0 +1,101 @@ +# Clever - the Python library for the Clever API + +## API Documentation +View more detailed documentation [here](docs/README.md) + +## Requirements. + +Python 2.7 and 3.4+ + +## Installation +From PyPi: + +```bash + $ pip install clever +``` + +or + +```bash + $ easy_install clever +``` + +Or from source: + +```bash + $ python setup.py install +``` + +Then import the package: +```python +import clever +``` + +## Getting Started + +Please follow the [installation procedure](#installation) and then run the following: + +```python +from __future__ import print_function +import time +import clever +from clever.rest import ApiException +from pprint import pprint + +# Note: This is hard coded for demo purposes only. Keep your access tokens secret! +# https://dev.clever.com/docs/security#section-security-best-practices +clever.configuration.access_token = 'DEMO_TOKEN' +# create an instance of the API class +api_instance = clever.DataApi() + +try: + api_response = api_instance.get_students() + for student in api_response.data: + pprint(student.data.id) +except ApiException as e: + print("Exception when calling DataApi->get_students: %s\n" % e) + +``` + +## Updating the Library + +1. Git clone swagger-codegen (https://github.com/swagger-api/swagger-codegen) + +2. Git clone Clever's swagger-api repo (https://github.com/Clever/swagger-api) + +3. Run this command in the swagger-codegen repo +``` +java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i $PATH_TO_SWAGGER_API_REPO/v1.2-client.yml -c $PATH_TO_THIS_REPO/override/config.json -l python -o $PATH_TO_THIS_REPO --additional-properties packageVersion=$VERSION +``` + +4. Run `make override` to copy over the override files + +5. Update the CHANGELOG.md with the changes! + + +## Development + +### Dependencies + + make deps + +### Testing + + make test + +## Publishing + +Run `make publish` to publish a new version of the library. + +In order to publish to PyPI you will need a `.pypirc` file in your `$HOME` directory with the following contents: +``` +[distutils] +index-servers = + pypi + +[pypi] +username: **** +password: **** +``` + +The username and password are in 1Password for Teams under `PyPI`. diff --git a/override/override.sh b/override/override.sh index d30e278..bdf0543 100755 --- a/override/override.sh +++ b/override/override.sh @@ -6,6 +6,16 @@ rm -rf swagger_client|| true git grep -l 'swagger_client' -- './*' ':(exclude)override/override.sh' | xargs sed -i "" 's/swagger_client/clever/g' git grep -l 'swagger-client' -- './*' ':(exclude)override/override.sh' | xargs sed -i "" 's/swagger-client/clever-python/g' +# Update the README +mv README.md docs/README.md +sed -i "" 's/## Documentation for API Endpoints/\'$'\n## Documentation for API Endpoints/g' docs/README.md +sed -i "" '/## Requirements./,//d' docs/README.md +sed -i "" '/## Author/d' docs/README.md +sed -i "" 's/docs\///g' docs/README.md +git grep -l '../README.md' -- './docs/*' | xargs sed -i "" 's/..\/README.md/README.md/g' +cp override/README.md README.md + + # Copy override files for events cp override/api_client.py clever/ cp override/*_created.py clever/models/ From 8d4c41e77465f24ad2cdb7cc8c4a5451f39a058e Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Wed, 20 Sep 2017 23:18:02 +0000 Subject: [PATCH 19/53] Circle tests --- circle.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/circle.yml b/circle.yml index 441a8fa..0072523 100644 --- a/circle.yml +++ b/circle.yml @@ -5,7 +5,7 @@ machine: - docker test: override: - - pip install -r test/requirements.txt - - python setup.py develop && python setup.py test + - pip install -r test-requirements.txt + - make test post: - $HOME/ci-scripts/circleci/report-card $RC_DOCKER_USER $RC_DOCKER_PASS "$RC_DOCKER_EMAIL" $RC_GITHUB_TOKEN From 6f7232d3869ab7ddc5e8b65a5bfecaa4080ff572 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Mon, 6 Nov 2017 17:28:47 +0000 Subject: [PATCH 20/53] Rename token --- README.md | 2 +- override/README.md | 2 +- test/test_data_api.py | 2 +- test/test_events_api.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 46256da..811cc73 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ from pprint import pprint # Note: This is hard coded for demo purposes only. Keep your access tokens secret! # https://dev.clever.com/docs/security#section-security-best-practices -clever.configuration.access_token = 'DEMO_TOKEN' +clever.configuration.access_token = 'TEST_TOKEN' # create an instance of the API class api_instance = clever.DataApi() diff --git a/override/README.md b/override/README.md index 46256da..811cc73 100644 --- a/override/README.md +++ b/override/README.md @@ -44,7 +44,7 @@ from pprint import pprint # Note: This is hard coded for demo purposes only. Keep your access tokens secret! # https://dev.clever.com/docs/security#section-security-best-practices -clever.configuration.access_token = 'DEMO_TOKEN' +clever.configuration.access_token = 'TEST_TOKEN' # create an instance of the API class api_instance = clever.DataApi() diff --git a/test/test_data_api.py b/test/test_data_api.py index f72a77c..a7d4e77 100644 --- a/test/test_data_api.py +++ b/test/test_data_api.py @@ -38,7 +38,7 @@ class TestDataApi(unittest.TestCase): def setUp(self): self.api = clever.apis.data_api.DataApi() - clever.configuration.access_token = 'DEMO_TOKEN' + clever.configuration.access_token = 'TEST_TOKEN' def tearDown(self): pass diff --git a/test/test_events_api.py b/test/test_events_api.py index 0362d7e..07f52b3 100644 --- a/test/test_events_api.py +++ b/test/test_events_api.py @@ -27,7 +27,7 @@ class TestEventsApi(unittest.TestCase): def setUp(self): self.api = clever.apis.events_api.EventsApi() - clever.configuration.access_token = 'DEMO_EVENTS_TOKEN' + clever.configuration.access_token = 'TEST_TOKEN' def tearDown(self): pass From 0b3b50164c0395945cf6c1274afc4c79348d8b26 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 26 Dec 2017 13:47:15 -0800 Subject: [PATCH 21/53] Update override script to remove old files first --- override/override.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/override/override.sh b/override/override.sh index bdf0543..03059f3 100755 --- a/override/override.sh +++ b/override/override.sh @@ -1,6 +1,7 @@ # Copy autogenerated files into clever directory and rename +rm -rf clever || true # delete existing files cp -R swagger_client/. clever || true -rm -rf swagger_client|| true +rm -rf swagger_client || true # Rename references of swagger client to Clever git grep -l 'swagger_client' -- './*' ':(exclude)override/override.sh' | xargs sed -i "" 's/swagger_client/clever/g' From 873bdf47cf3540f026c78386608b71fe1252e834 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 26 Dec 2017 13:47:42 -0800 Subject: [PATCH 22/53] Update override files for v2.0 --- override/api_client.py | 109 +++++++-------- override/contacts_created.py | 124 +++++++++++++++++ override/contacts_deleted.py | 124 +++++++++++++++++ override/contacts_updated.py | 124 +++++++++++++++++ override/courses_created.py | 124 +++++++++++++++++ override/courses_deleted.py | 124 +++++++++++++++++ override/courses_updated.py | 124 +++++++++++++++++ override/districtadmins_created.py | 124 +++++++++++++++++ override/districtadmins_deleted.py | 124 +++++++++++++++++ override/districtadmins_updated.py | 124 +++++++++++++++++ override/districts_created.py | 87 +----------- override/districts_deleted.py | 87 +----------- override/districts_updated.py | 87 +----------- override/schooladmins_created.py | 87 +----------- override/schooladmins_deleted.py | 87 +----------- override/schooladmins_updated.py | 87 +----------- override/schools_created.py | 86 +----------- override/schools_deleted.py | 87 +----------- override/schools_updated.py | 87 +----------- override/sections_created.py | 87 +----------- override/sections_deleted.py | 87 +----------- override/sections_updated.py | 87 +----------- override/studentcontacts_created.py | 203 ---------------------------- override/studentcontacts_deleted.py | 203 ---------------------------- override/studentcontacts_updated.py | 203 ---------------------------- override/students_created.py | 87 +----------- override/students_deleted.py | 87 +----------- override/students_updated.py | 87 +----------- override/teachers_created.py | 87 +----------- override/teachers_deleted.py | 87 +----------- override/teachers_updated.py | 87 +----------- override/terms_created.py | 124 +++++++++++++++++ override/terms_deleted.py | 124 +++++++++++++++++ override/terms_updated.py | 124 +++++++++++++++++ 34 files changed, 1612 insertions(+), 2159 deletions(-) create mode 100644 override/contacts_created.py create mode 100644 override/contacts_deleted.py create mode 100644 override/contacts_updated.py create mode 100644 override/courses_created.py create mode 100644 override/courses_deleted.py create mode 100644 override/courses_updated.py create mode 100644 override/districtadmins_created.py create mode 100644 override/districtadmins_deleted.py create mode 100644 override/districtadmins_updated.py delete mode 100644 override/studentcontacts_created.py delete mode 100644 override/studentcontacts_deleted.py delete mode 100644 override/studentcontacts_updated.py create mode 100644 override/terms_created.py create mode 100644 override/terms_deleted.py create mode 100644 override/terms_updated.py diff --git a/override/api_client.py b/override/api_client.py index 6b2bde0..d3c213b 100644 --- a/override/api_client.py +++ b/override/api_client.py @@ -4,8 +4,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import json import mimetypes import tempfile -import threading +from multiprocessing.pool import ThreadPool from datetime import date, datetime @@ -59,21 +59,23 @@ class ApiClient(object): 'object': object, } - def __init__(self, host=None, header_name=None, header_value=None, cookie=None): - """ - Constructor of the class. - """ - self.rest_client = RESTClientObject() + def __init__(self, configuration=None, header_name=None, header_value=None, cookie=None): + if configuration is None: + configuration = Configuration() + self.configuration = configuration + + self.pool = ThreadPool() + self.rest_client = RESTClientObject(configuration) self.default_headers = {} if header_name is not None: self.default_headers[header_name] = header_value - if host is None: - self.host = Configuration().host - else: - self.host = host self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.0.0/python' + self.user_agent = 'Swagger-Codegen/3.0.0/python' + + def __del__(self): + self.pool.close() + self.pool.join() @property def user_agent(self): @@ -95,11 +97,11 @@ def set_default_header(self, header_name, header_value): def __call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, post_params=None, files=None, - response_type=None, auth_settings=None, callback=None, + response_type=None, auth_settings=None, _return_http_data_only=None, collection_formats=None, _preload_content=True, _request_timeout=None): - config = Configuration() + config = self.configuration # header parameters header_params = header_params or {} @@ -119,7 +121,7 @@ def __call_api(self, resource_path, method, for k, v in path_params: # specified safe chars, encode everything resource_path = resource_path.replace( - '{%s}' % k, quote(v.encode('utf-8'), safe=config.safe_chars_for_path_param)) + '{%s}' % k, quote(str(v), safe=config.safe_chars_for_path_param)) # query parameters if query_params: @@ -142,7 +144,7 @@ def __call_api(self, resource_path, method, body = self.sanitize_for_serialization(body) # request url - url = self.host + resource_path + url = self.configuration.host + resource_path # perform request and return response response_data = self.request(method, url, @@ -162,12 +164,7 @@ def __call_api(self, resource_path, method, else: return_data = None - if callback: - if _return_http_data_only: - callback(return_data) - else: - callback((return_data, response_data.status, response_data.getheaders())) - elif _return_http_data_only: + if _return_http_data_only: return (return_data) else: return (return_data, response_data.status, response_data.getheaders()) @@ -285,12 +282,12 @@ def __deserialize(self, data, klass): def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, post_params=None, files=None, - response_type=None, auth_settings=None, callback=None, + response_type=None, auth_settings=None, async=None, _return_http_data_only=None, collection_formats=None, _preload_content=True, _request_timeout=None): """ Makes the HTTP request (synchronous) and return the deserialized data. - To make an async request, define a function for callback. + To make an async request, set the async parameter. :param resource_path: Path to method endpoint. :param method: Method to call. @@ -305,9 +302,7 @@ def call_api(self, resource_path, method, :param response: Response data type. :param files dict: key -> filename, value -> filepath, for `multipart/form-data`. - :param callback function: Callback function for asynchronous request. - If provide this parameter, - the request will be called asynchronously. + :param async bool: execute request asynchronously :param _return_http_data_only: response data without head status code and headers :param collection_formats: dict of collection formats for path, query, header, and post parameters. @@ -316,28 +311,26 @@ def call_api(self, resource_path, method, :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: - If provide parameter callback, + If async parameter is True, the request will be called asynchronously. The method will return the request thread. - If parameter callback is None, + If parameter async is False or missing, then the method will return the response directly. """ - if callback is None: + if not async: return self.__call_api(resource_path, method, path_params, query_params, header_params, body, post_params, files, - response_type, auth_settings, callback, + response_type, auth_settings, _return_http_data_only, collection_formats, _preload_content, _request_timeout) else: - thread = threading.Thread(target=self.__call_api, - args=(resource_path, method, - path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - callback, _return_http_data_only, - collection_formats, _preload_content, _request_timeout)) - thread.start() + thread = self.pool.apply_async(self.__call_api, (resource_path, method, + path_params, query_params, + header_params, body, + post_params, files, + response_type, auth_settings, + _return_http_data_only, + collection_formats, _preload_content, _request_timeout)) return thread def request(self, method, url, query_params=None, headers=None, @@ -503,13 +496,11 @@ def update_params_for_auth(self, headers, querys, auth_settings): :param querys: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list. """ - config = Configuration() - if not auth_settings: return for auth in auth_settings: - auth_setting = config.auth_settings().get(auth) + auth_setting = self.configuration.auth_settings().get(auth) if auth_setting: if not auth_setting['value']: continue @@ -530,9 +521,7 @@ def __deserialize_file(self, response): :param response: RESTResponse. :return: file path. """ - config = Configuration() - - fd, path = tempfile.mkstemp(dir=config.temp_folder_path) + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) os.close(fd) os.remove(path) @@ -621,17 +610,23 @@ def __deserialize_model(self, data, klass): :param klass: class literal. :return: model object. """ - if not klass.swagger_types: + + if not klass.swagger_types and not hasattr(klass, 'get_real_child_model'): return data kwargs = {} - for attr, attr_type in iteritems(klass.swagger_types): - if data is not None \ - and klass.attribute_map[attr] in data \ - and isinstance(data, (list, dict)): - value = data[klass.attribute_map[attr]] - kwargs[attr] = self.__deserialize(value, attr_type) - - instance = klass(**kwargs) - + if klass.swagger_types is not None: + for attr, attr_type in iteritems(klass.swagger_types): + if data is not None \ + and klass.attribute_map[attr] in data \ + and isinstance(data, (list, dict)): + value = data[klass.attribute_map[attr]] + kwargs[attr] = self.__deserialize(value, attr_type) + + instance = klass(**kwargs) + + if hasattr(instance, 'get_real_child_model'): + klass_name = instance.get_real_child_model(data) + if klass_name: + instance = self.__deserialize(data, klass_name) return instance diff --git a/override/contacts_created.py b/override/contacts_created.py new file mode 100644 index 0000000..0c073e9 --- /dev/null +++ b/override/contacts_created.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class ContactsCreated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'ContactObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + ContactsCreated - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this ContactsCreated. + + :return: The data of this ContactsCreated. + :rtype: ContactObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this ContactsCreated. + + :param data: The data of this ContactsCreated. + :type: ContactObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ContactsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/contacts_deleted.py b/override/contacts_deleted.py new file mode 100644 index 0000000..807ac14 --- /dev/null +++ b/override/contacts_deleted.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class ContactsDeleted(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'ContactObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + ContactsDeleted - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this ContactsDeleted. + + :return: The data of this ContactsDeleted. + :rtype: ContactObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this ContactsDeleted. + + :param data: The data of this ContactsDeleted. + :type: ContactObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ContactsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/contacts_updated.py b/override/contacts_updated.py new file mode 100644 index 0000000..b2fc235 --- /dev/null +++ b/override/contacts_updated.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class ContactsUpdated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'ContactObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + ContactsUpdated - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this ContactsUpdated. + + :return: The data of this ContactsUpdated. + :rtype: ContactObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this ContactsUpdated. + + :param data: The data of this ContactsUpdated. + :type: ContactObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ContactsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/courses_created.py b/override/courses_created.py new file mode 100644 index 0000000..035cb9e --- /dev/null +++ b/override/courses_created.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class CoursesCreated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'CourseObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + CoursesCreated - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this CoursesCreated. + + :return: The data of this CoursesCreated. + :rtype: CourseObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this CoursesCreated. + + :param data: The data of this CoursesCreated. + :type: CourseObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CoursesCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/courses_deleted.py b/override/courses_deleted.py new file mode 100644 index 0000000..581c37a --- /dev/null +++ b/override/courses_deleted.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class CoursesDeleted(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'CourseObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + CoursesDeleted - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this CoursesDeleted. + + :return: The data of this CoursesDeleted. + :rtype: CourseObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this CoursesDeleted. + + :param data: The data of this CoursesDeleted. + :type: CourseObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CoursesDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/courses_updated.py b/override/courses_updated.py new file mode 100644 index 0000000..e8b8da7 --- /dev/null +++ b/override/courses_updated.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class CoursesUpdated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'CourseObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + CoursesUpdated - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this CoursesUpdated. + + :return: The data of this CoursesUpdated. + :rtype: CourseObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this CoursesUpdated. + + :param data: The data of this CoursesUpdated. + :type: CourseObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CoursesUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/districtadmins_created.py b/override/districtadmins_created.py new file mode 100644 index 0000000..d156cd7 --- /dev/null +++ b/override/districtadmins_created.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class DistrictadminsCreated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'DistrictAdminObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + DistrictadminsCreated - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this DistrictadminsCreated. + + :return: The data of this DistrictadminsCreated. + :rtype: DistrictAdminObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictadminsCreated. + + :param data: The data of this DistrictadminsCreated. + :type: DistrictAdminObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictadminsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/districtadmins_deleted.py b/override/districtadmins_deleted.py new file mode 100644 index 0000000..8760700 --- /dev/null +++ b/override/districtadmins_deleted.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class DistrictadminsDeleted(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'DistrictAdminObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + DistrictadminsDeleted - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this DistrictadminsDeleted. + + :return: The data of this DistrictadminsDeleted. + :rtype: DistrictAdminObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictadminsDeleted. + + :param data: The data of this DistrictadminsDeleted. + :type: DistrictAdminObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictadminsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/districtadmins_updated.py b/override/districtadmins_updated.py new file mode 100644 index 0000000..33a1007 --- /dev/null +++ b/override/districtadmins_updated.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class DistrictadminsUpdated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'DistrictAdminObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + DistrictadminsUpdated - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this DistrictadminsUpdated. + + :return: The data of this DistrictadminsUpdated. + :rtype: DistrictAdminObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictadminsUpdated. + + :param data: The data of this DistrictadminsUpdated. + :type: DistrictAdminObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictadminsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/districts_created.py b/override/districts_created.py index 6a35562..bffa0ca 100644 --- a/override/districts_created.py +++ b/override/districts_created.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class DistrictsCreated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class DistrictsCreated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'DistrictObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ DistrictsCreated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this DistrictsCreated. - - :return: The created of this DistrictsCreated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this DistrictsCreated. - - :param created: The created of this DistrictsCreated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this DistrictsCreated. - - :return: The id of this DistrictsCreated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this DistrictsCreated. - - :param id: The id of this DistrictsCreated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this DistrictsCreated. - - :return: The type of this DistrictsCreated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this DistrictsCreated. - - :param type: The type of this DistrictsCreated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/districts_deleted.py b/override/districts_deleted.py index 6c4cb77..5d1fd95 100644 --- a/override/districts_deleted.py +++ b/override/districts_deleted.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class DistrictsDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class DistrictsDeleted(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'DistrictObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ DistrictsDeleted - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this DistrictsDeleted. - - :return: The created of this DistrictsDeleted. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this DistrictsDeleted. - - :param created: The created of this DistrictsDeleted. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this DistrictsDeleted. - - :return: The id of this DistrictsDeleted. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this DistrictsDeleted. - - :param id: The id of this DistrictsDeleted. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this DistrictsDeleted. - - :return: The type of this DistrictsDeleted. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this DistrictsDeleted. - - :param type: The type of this DistrictsDeleted. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/districts_updated.py b/override/districts_updated.py index ea0f981..0319156 100644 --- a/override/districts_updated.py +++ b/override/districts_updated.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class DistrictsUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class DistrictsUpdated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'DistrictObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ DistrictsUpdated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this DistrictsUpdated. - - :return: The created of this DistrictsUpdated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this DistrictsUpdated. - - :param created: The created of this DistrictsUpdated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this DistrictsUpdated. - - :return: The id of this DistrictsUpdated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this DistrictsUpdated. - - :param id: The id of this DistrictsUpdated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this DistrictsUpdated. - - :return: The type of this DistrictsUpdated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this DistrictsUpdated. - - :param type: The type of this DistrictsUpdated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/schooladmins_created.py b/override/schooladmins_created.py index aa5c419..0bed6c1 100644 --- a/override/schooladmins_created.py +++ b/override/schooladmins_created.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class SchooladminsCreated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class SchooladminsCreated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SchoolAdminObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SchooladminsCreated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SchooladminsCreated. - - :return: The created of this SchooladminsCreated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SchooladminsCreated. - - :param created: The created of this SchooladminsCreated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SchooladminsCreated. - - :return: The id of this SchooladminsCreated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SchooladminsCreated. - - :param id: The id of this SchooladminsCreated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SchooladminsCreated. - - :return: The type of this SchooladminsCreated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SchooladminsCreated. - - :param type: The type of this SchooladminsCreated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/schooladmins_deleted.py b/override/schooladmins_deleted.py index 503282e..38d5997 100644 --- a/override/schooladmins_deleted.py +++ b/override/schooladmins_deleted.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class SchooladminsDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class SchooladminsDeleted(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SchoolAdminObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SchooladminsDeleted - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SchooladminsDeleted. - - :return: The created of this SchooladminsDeleted. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SchooladminsDeleted. - - :param created: The created of this SchooladminsDeleted. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SchooladminsDeleted. - - :return: The id of this SchooladminsDeleted. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SchooladminsDeleted. - - :param id: The id of this SchooladminsDeleted. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SchooladminsDeleted. - - :return: The type of this SchooladminsDeleted. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SchooladminsDeleted. - - :param type: The type of this SchooladminsDeleted. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/schooladmins_updated.py b/override/schooladmins_updated.py index 3f2847a..b505d95 100644 --- a/override/schooladmins_updated.py +++ b/override/schooladmins_updated.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class SchooladminsUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class SchooladminsUpdated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SchoolAdminObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SchooladminsUpdated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SchooladminsUpdated. - - :return: The created of this SchooladminsUpdated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SchooladminsUpdated. - - :param created: The created of this SchooladminsUpdated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SchooladminsUpdated. - - :return: The id of this SchooladminsUpdated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SchooladminsUpdated. - - :param id: The id of this SchooladminsUpdated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SchooladminsUpdated. - - :return: The type of this SchooladminsUpdated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SchooladminsUpdated. - - :param type: The type of this SchooladminsUpdated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/schools_created.py b/override/schools_created.py index 5ce64bf..822818e 100644 --- a/override/schools_created.py +++ b/override/schools_created.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,102 +31,24 @@ class SchoolsCreated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SchoolObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SchoolsCreated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SchoolsCreated. - - :return: The created of this SchoolsCreated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SchoolsCreated. - - :param created: The created of this SchoolsCreated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SchoolsCreated. - - :return: The id of this SchoolsCreated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SchoolsCreated. - - :param id: The id of this SchoolsCreated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SchoolsCreated. - - :return: The type of this SchoolsCreated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SchoolsCreated. - - :param type: The type of this SchoolsCreated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/schools_deleted.py b/override/schools_deleted.py index 59570db..f8343a2 100644 --- a/override/schools_deleted.py +++ b/override/schools_deleted.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class SchoolsDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class SchoolsDeleted(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SchoolObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SchoolsDeleted - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SchoolsDeleted. - - :return: The created of this SchoolsDeleted. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SchoolsDeleted. - - :param created: The created of this SchoolsDeleted. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SchoolsDeleted. - - :return: The id of this SchoolsDeleted. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SchoolsDeleted. - - :param id: The id of this SchoolsDeleted. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SchoolsDeleted. - - :return: The type of this SchoolsDeleted. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SchoolsDeleted. - - :param type: The type of this SchoolsDeleted. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/schools_updated.py b/override/schools_updated.py index 5423629..40b5365 100644 --- a/override/schools_updated.py +++ b/override/schools_updated.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class SchoolsUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class SchoolsUpdated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SchoolObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SchoolsUpdated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SchoolsUpdated. - - :return: The created of this SchoolsUpdated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SchoolsUpdated. - - :param created: The created of this SchoolsUpdated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SchoolsUpdated. - - :return: The id of this SchoolsUpdated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SchoolsUpdated. - - :param id: The id of this SchoolsUpdated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SchoolsUpdated. - - :return: The type of this SchoolsUpdated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SchoolsUpdated. - - :param type: The type of this SchoolsUpdated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/sections_created.py b/override/sections_created.py index ab1b541..35d92e1 100644 --- a/override/sections_created.py +++ b/override/sections_created.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class SectionsCreated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class SectionsCreated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SectionObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SectionsCreated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SectionsCreated. - - :return: The created of this SectionsCreated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SectionsCreated. - - :param created: The created of this SectionsCreated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SectionsCreated. - - :return: The id of this SectionsCreated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SectionsCreated. - - :param id: The id of this SectionsCreated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SectionsCreated. - - :return: The type of this SectionsCreated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SectionsCreated. - - :param type: The type of this SectionsCreated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/sections_deleted.py b/override/sections_deleted.py index 0b129ca..9dc681c 100644 --- a/override/sections_deleted.py +++ b/override/sections_deleted.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class SectionsDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class SectionsDeleted(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SectionObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SectionsDeleted - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SectionsDeleted. - - :return: The created of this SectionsDeleted. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SectionsDeleted. - - :param created: The created of this SectionsDeleted. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SectionsDeleted. - - :return: The id of this SectionsDeleted. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SectionsDeleted. - - :param id: The id of this SectionsDeleted. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SectionsDeleted. - - :return: The type of this SectionsDeleted. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SectionsDeleted. - - :param type: The type of this SectionsDeleted. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/sections_updated.py b/override/sections_updated.py index 4b3f68e..c8ba933 100644 --- a/override/sections_updated.py +++ b/override/sections_updated.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class SectionsUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class SectionsUpdated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SectionObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SectionsUpdated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SectionsUpdated. - - :return: The created of this SectionsUpdated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SectionsUpdated. - - :param created: The created of this SectionsUpdated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SectionsUpdated. - - :return: The id of this SectionsUpdated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SectionsUpdated. - - :param id: The id of this SectionsUpdated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SectionsUpdated. - - :return: The type of this SectionsUpdated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SectionsUpdated. - - :param type: The type of this SectionsUpdated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/studentcontacts_created.py b/override/studentcontacts_created.py deleted file mode 100644 index d9825c6..0000000 --- a/override/studentcontacts_created.py +++ /dev/null @@ -1,203 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re -import event - - -class StudentcontactsCreated(event.Event): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', - 'data': 'StudentContactObject' - } - - attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', - 'data': 'data' - } - - def __init__(self, created=None, id=None, type=None, data=None): - """ - StudentcontactsCreated - a model defined in Swagger - """ - - self._created = None - self._id = None - self._type = None - self._data = None - - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type - if data is not None: - self.data = data - - @property - def created(self): - """ - Gets the created of this StudentcontactsCreated. - - :return: The created of this StudentcontactsCreated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this StudentcontactsCreated. - - :param created: The created of this StudentcontactsCreated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this StudentcontactsCreated. - - :return: The id of this StudentcontactsCreated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this StudentcontactsCreated. - - :param id: The id of this StudentcontactsCreated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this StudentcontactsCreated. - - :return: The type of this StudentcontactsCreated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this StudentcontactsCreated. - - :param type: The type of this StudentcontactsCreated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - - @property - def data(self): - """ - Gets the data of this StudentcontactsCreated. - - :return: The data of this StudentcontactsCreated. - :rtype: StudentContactObject - """ - return self._data - - @data.setter - def data(self, data): - """ - Sets the data of this StudentcontactsCreated. - - :param data: The data of this StudentcontactsCreated. - :type: StudentContactObject - """ - - self._data = data - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, StudentcontactsCreated): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/override/studentcontacts_deleted.py b/override/studentcontacts_deleted.py deleted file mode 100644 index 6ebefaf..0000000 --- a/override/studentcontacts_deleted.py +++ /dev/null @@ -1,203 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re -import event - - -class StudentcontactsDeleted(event.Event): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', - 'data': 'StudentContactObject' - } - - attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', - 'data': 'data' - } - - def __init__(self, created=None, id=None, type=None, data=None): - """ - StudentcontactsDeleted - a model defined in Swagger - """ - - self._created = None - self._id = None - self._type = None - self._data = None - - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type - if data is not None: - self.data = data - - @property - def created(self): - """ - Gets the created of this StudentcontactsDeleted. - - :return: The created of this StudentcontactsDeleted. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this StudentcontactsDeleted. - - :param created: The created of this StudentcontactsDeleted. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this StudentcontactsDeleted. - - :return: The id of this StudentcontactsDeleted. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this StudentcontactsDeleted. - - :param id: The id of this StudentcontactsDeleted. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this StudentcontactsDeleted. - - :return: The type of this StudentcontactsDeleted. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this StudentcontactsDeleted. - - :param type: The type of this StudentcontactsDeleted. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - - @property - def data(self): - """ - Gets the data of this StudentcontactsDeleted. - - :return: The data of this StudentcontactsDeleted. - :rtype: StudentContactObject - """ - return self._data - - @data.setter - def data(self, data): - """ - Sets the data of this StudentcontactsDeleted. - - :param data: The data of this StudentcontactsDeleted. - :type: StudentContactObject - """ - - self._data = data - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, StudentcontactsDeleted): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/override/studentcontacts_updated.py b/override/studentcontacts_updated.py deleted file mode 100644 index 3d9094a..0000000 --- a/override/studentcontacts_updated.py +++ /dev/null @@ -1,203 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re -import event - - -class StudentcontactsUpdated(event.Event): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', - 'data': 'StudentContactObject' - } - - attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', - 'data': 'data' - } - - def __init__(self, created=None, id=None, type=None, data=None): - """ - StudentcontactsUpdated - a model defined in Swagger - """ - - self._created = None - self._id = None - self._type = None - self._data = None - - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type - if data is not None: - self.data = data - - @property - def created(self): - """ - Gets the created of this StudentcontactsUpdated. - - :return: The created of this StudentcontactsUpdated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this StudentcontactsUpdated. - - :param created: The created of this StudentcontactsUpdated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this StudentcontactsUpdated. - - :return: The id of this StudentcontactsUpdated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this StudentcontactsUpdated. - - :param id: The id of this StudentcontactsUpdated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this StudentcontactsUpdated. - - :return: The type of this StudentcontactsUpdated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this StudentcontactsUpdated. - - :param type: The type of this StudentcontactsUpdated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - - @property - def data(self): - """ - Gets the data of this StudentcontactsUpdated. - - :return: The data of this StudentcontactsUpdated. - :rtype: StudentContactObject - """ - return self._data - - @data.setter - def data(self, data): - """ - Sets the data of this StudentcontactsUpdated. - - :param data: The data of this StudentcontactsUpdated. - :type: StudentContactObject - """ - - self._data = data - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, StudentcontactsUpdated): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/override/students_created.py b/override/students_created.py index 4ccd654..2b4b6c5 100644 --- a/override/students_created.py +++ b/override/students_created.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class StudentsCreated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class StudentsCreated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'StudentObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ StudentsCreated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this StudentsCreated. - - :return: The created of this StudentsCreated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this StudentsCreated. - - :param created: The created of this StudentsCreated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this StudentsCreated. - - :return: The id of this StudentsCreated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this StudentsCreated. - - :param id: The id of this StudentsCreated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this StudentsCreated. - - :return: The type of this StudentsCreated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this StudentsCreated. - - :param type: The type of this StudentsCreated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/students_deleted.py b/override/students_deleted.py index 6b16773..6085f1f 100644 --- a/override/students_deleted.py +++ b/override/students_deleted.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class StudentsDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class StudentsDeleted(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'StudentObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ StudentsDeleted - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this StudentsDeleted. - - :return: The created of this StudentsDeleted. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this StudentsDeleted. - - :param created: The created of this StudentsDeleted. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this StudentsDeleted. - - :return: The id of this StudentsDeleted. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this StudentsDeleted. - - :param id: The id of this StudentsDeleted. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this StudentsDeleted. - - :return: The type of this StudentsDeleted. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this StudentsDeleted. - - :param type: The type of this StudentsDeleted. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/students_updated.py b/override/students_updated.py index 8015b49..e6c639b 100644 --- a/override/students_updated.py +++ b/override/students_updated.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class StudentsUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class StudentsUpdated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'StudentObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ StudentsUpdated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this StudentsUpdated. - - :return: The created of this StudentsUpdated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this StudentsUpdated. - - :param created: The created of this StudentsUpdated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this StudentsUpdated. - - :return: The id of this StudentsUpdated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this StudentsUpdated. - - :param id: The id of this StudentsUpdated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this StudentsUpdated. - - :return: The type of this StudentsUpdated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this StudentsUpdated. - - :param type: The type of this StudentsUpdated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/teachers_created.py b/override/teachers_created.py index e089c3d..85a60e5 100644 --- a/override/teachers_created.py +++ b/override/teachers_created.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class TeachersCreated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class TeachersCreated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'TeacherObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ TeachersCreated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this TeachersCreated. - - :return: The created of this TeachersCreated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this TeachersCreated. - - :param created: The created of this TeachersCreated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this TeachersCreated. - - :return: The id of this TeachersCreated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this TeachersCreated. - - :param id: The id of this TeachersCreated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this TeachersCreated. - - :return: The type of this TeachersCreated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this TeachersCreated. - - :param type: The type of this TeachersCreated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/teachers_deleted.py b/override/teachers_deleted.py index 9427404..a8dff4c 100644 --- a/override/teachers_deleted.py +++ b/override/teachers_deleted.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class TeachersDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class TeachersDeleted(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'TeacherObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ TeachersDeleted - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this TeachersDeleted. - - :return: The created of this TeachersDeleted. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this TeachersDeleted. - - :param created: The created of this TeachersDeleted. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this TeachersDeleted. - - :return: The id of this TeachersDeleted. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this TeachersDeleted. - - :param id: The id of this TeachersDeleted. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this TeachersDeleted. - - :return: The type of this TeachersDeleted. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this TeachersDeleted. - - :param type: The type of this TeachersDeleted. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/teachers_updated.py b/override/teachers_updated.py index 78bec45..f2a0930 100644 --- a/override/teachers_updated.py +++ b/override/teachers_updated.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class TeachersUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class TeachersUpdated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'TeacherObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ TeachersUpdated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this TeachersUpdated. - - :return: The created of this TeachersUpdated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this TeachersUpdated. - - :param created: The created of this TeachersUpdated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this TeachersUpdated. - - :return: The id of this TeachersUpdated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this TeachersUpdated. - - :param id: The id of this TeachersUpdated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this TeachersUpdated. - - :return: The type of this TeachersUpdated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this TeachersUpdated. - - :param type: The type of this TeachersUpdated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/override/terms_created.py b/override/terms_created.py new file mode 100644 index 0000000..925d163 --- /dev/null +++ b/override/terms_created.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class TermsCreated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'TermObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + TermsCreated - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this TermsCreated. + + :return: The data of this TermsCreated. + :rtype: TermObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this TermsCreated. + + :param data: The data of this TermsCreated. + :type: TermObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TermsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/terms_deleted.py b/override/terms_deleted.py new file mode 100644 index 0000000..9cf5488 --- /dev/null +++ b/override/terms_deleted.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class TermsDeleted(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'TermObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + TermsDeleted - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this TermsDeleted. + + :return: The data of this TermsDeleted. + :rtype: TermObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this TermsDeleted. + + :param data: The data of this TermsDeleted. + :type: TermObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TermsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/terms_updated.py b/override/terms_updated.py new file mode 100644 index 0000000..b48ddc6 --- /dev/null +++ b/override/terms_updated.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class TermsUpdated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'TermObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + TermsUpdated - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this TermsUpdated. + + :return: The data of this TermsUpdated. + :rtype: TermObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this TermsUpdated. + + :param data: The data of this TermsUpdated. + :type: TermObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TermsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other From 6720ae26676af2071d9c7b6cbf042dc096e9b942 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 26 Dec 2017 13:54:18 -0800 Subject: [PATCH 23/53] Add other files to override - not sure if these are still required? --- override/VERSION | 1 + override/importer.py | 21 +++++++++++++++++++++ override/override.sh | 8 +++++++- override/version.py | 4 ++++ 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 override/VERSION create mode 100644 override/importer.py create mode 100644 override/version.py diff --git a/override/VERSION b/override/VERSION new file mode 100644 index 0000000..197c4d5 --- /dev/null +++ b/override/VERSION @@ -0,0 +1 @@ +2.4.0 diff --git a/override/importer.py b/override/importer.py new file mode 100644 index 0000000..b1de347 --- /dev/null +++ b/override/importer.py @@ -0,0 +1,21 @@ +# Imports needed in setup.py and __init__.py + +def import_json(): + # Python 2.5 and below do not ship with json + _json_loaded = None + try: + import json + if hasattr(json, 'loads'): + return json + _json_loaded = False + except ImportError: + pass + + try: + import simplejson + return simplejson + except ImportError: + if _json_loaded is None: + raise ImportError("Clever requires a JSON library, which you do not appear to have. Please install the simplejson library. HINT: Try installing the python simplejson library via 'pip install simplejson' or 'easy_install simplejson'.") + else: + raise ImportError("Clever requires a JSON library with the same interface as the Python 2.6 'json' library. You appear to have a 'json' library with a different interface. Please install the simplejson library. HINT: Try installing the python simplejson library via 'pip install simplejson' or 'easy_install simplejson'.") diff --git a/override/override.sh b/override/override.sh index 03059f3..d4f4904 100755 --- a/override/override.sh +++ b/override/override.sh @@ -1,5 +1,6 @@ + # delete existing files +rm -rf clever || true # Copy autogenerated files into clever directory and rename -rm -rf clever || true # delete existing files cp -R swagger_client/. clever || true rm -rf swagger_client || true @@ -22,3 +23,8 @@ cp override/api_client.py clever/ cp override/*_created.py clever/models/ cp override/*_updated.py clever/models/ cp override/*_deleted.py clever/models/ + +# Copy other files over +cp override/VERSION clever/ +cp override/version.py clever/ +cp override/importer.py clever/ diff --git a/override/version.py b/override/version.py new file mode 100644 index 0000000..a711738 --- /dev/null +++ b/override/version.py @@ -0,0 +1,4 @@ +import pkg_resources + +version_file = pkg_resources.resource_stream(__name__, "VERSION") +VERSION = version_file.readline().strip().decode() From 978c0f97fbec293d519e428062c2783c464a8aed Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 26 Dec 2017 13:54:44 -0800 Subject: [PATCH 24/53] Fix version --- override/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/override/VERSION b/override/VERSION index 197c4d5..4a36342 100644 --- a/override/VERSION +++ b/override/VERSION @@ -1 +1 @@ -2.4.0 +3.0.0 From 8110f70b5e940e5482f1391d5312d46384c0efff Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 26 Dec 2017 13:56:25 -0800 Subject: [PATCH 25/53] More files in override --- override/clever.com_ca_bundle.crt | 111 ++++++++++++++++++++++++++++++ override/override.sh | 2 + 2 files changed, 113 insertions(+) create mode 100644 override/clever.com_ca_bundle.crt diff --git a/override/clever.com_ca_bundle.crt b/override/clever.com_ca_bundle.crt new file mode 100644 index 0000000..3dbb5e9 --- /dev/null +++ b/override/clever.com_ca_bundle.crt @@ -0,0 +1,111 @@ +-----BEGIN CERTIFICATE----- +MIIG5jCCBc6gAwIBAgIQAze5KDR8YKauxa2xIX84YDANBgkqhkiG9w0BAQUFADBs +MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 +d3cuZGlnaWNlcnQuY29tMSswKQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3VyYW5j +ZSBFViBSb290IENBMB4XDTA3MTEwOTEyMDAwMFoXDTIxMTExMDAwMDAwMFowaTEL +MAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IEluYzEZMBcGA1UECxMQd3d3 +LmRpZ2ljZXJ0LmNvbTEoMCYGA1UEAxMfRGlnaUNlcnQgSGlnaCBBc3N1cmFuY2Ug +RVYgQ0EtMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPOWYth1bhn/ +PzR8SU8xfg0ETpmB4rOFVZEwscCvcLssqOcYqj9495BoUoYBiJfiOwZlkKq9ZXbC +7L4QWzd4g2B1Rca9dKq2n6Q6AVAXxDlpufFP74LByvNK28yeUE9NQKM6kOeGZrzw +PnYoTNF1gJ5qNRQ1A57bDIzCKK1Qss72kaPDpQpYSfZ1RGy6+c7pqzoC4E3zrOJ6 +4GAiBTyC01Li85xH+DvYskuTVkq/cKs+6WjIHY9YHSpNXic9rQpZL1oRIEDZaARo +LfTAhAsKG3jf7RpY3PtBWm1r8u0c7lwytlzs16YDMqbo3rcoJ1mIgP97rYlY1R4U +pPKwcNSgPqcCAwEAAaOCA4UwggOBMA4GA1UdDwEB/wQEAwIBhjA7BgNVHSUENDAy +BggrBgEFBQcDAQYIKwYBBQUHAwIGCCsGAQUFBwMDBggrBgEFBQcDBAYIKwYBBQUH +AwgwggHEBgNVHSAEggG7MIIBtzCCAbMGCWCGSAGG/WwCATCCAaQwOgYIKwYBBQUH +AgEWLmh0dHA6Ly93d3cuZGlnaWNlcnQuY29tL3NzbC1jcHMtcmVwb3NpdG9yeS5o +dG0wggFkBggrBgEFBQcCAjCCAVYeggFSAEEAbgB5ACAAdQBzAGUAIABvAGYAIAB0 +AGgAaQBzACAAQwBlAHIAdABpAGYAaQBjAGEAdABlACAAYwBvAG4AcwB0AGkAdAB1 +AHQAZQBzACAAYQBjAGMAZQBwAHQAYQBuAGMAZQAgAG8AZgAgAHQAaABlACAARABp +AGcAaQBDAGUAcgB0ACAARQBWACAAQwBQAFMAIABhAG4AZAAgAHQAaABlACAAUgBl +AGwAeQBpAG4AZwAgAFAAYQByAHQAeQAgAEEAZwByAGUAZQBtAGUAbgB0ACAAdwBo +AGkAYwBoACAAbABpAG0AaQB0ACAAbABpAGEAYgBpAGwAaQB0AHkAIABhAG4AZAAg +AGEAcgBlACAAaQBuAGMAbwByAHAAbwByAGEAdABlAGQAIABoAGUAcgBlAGkAbgAg +AGIAeQAgAHIAZQBmAGUAcgBlAG4AYwBlAC4wEgYDVR0TAQH/BAgwBgEB/wIBADCB +gwYIKwYBBQUHAQEEdzB1MCQGCCsGAQUFBzABhhhodHRwOi8vb2NzcC5kaWdpY2Vy +dC5jb20wTQYIKwYBBQUHMAKGQWh0dHA6Ly93d3cuZGlnaWNlcnQuY29tL0NBQ2Vy +dHMvRGlnaUNlcnRIaWdoQXNzdXJhbmNlRVZSb290Q0EuY3J0MIGPBgNVHR8EgYcw +gYQwQKA+oDyGOmh0dHA6Ly9jcmwzLmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEhpZ2hB +c3N1cmFuY2VFVlJvb3RDQS5jcmwwQKA+oDyGOmh0dHA6Ly9jcmw0LmRpZ2ljZXJ0 +LmNvbS9EaWdpQ2VydEhpZ2hBc3N1cmFuY2VFVlJvb3RDQS5jcmwwHQYDVR0OBBYE +FExYyyXwQU9S9CjIgUObpqig5pLlMB8GA1UdIwQYMBaAFLE+w2kD+L9HAdSYJhoI +Au9jZCvDMA0GCSqGSIb3DQEBBQUAA4IBAQBMeheHKF0XvLIyc7/NLvVYMR3wsXFU +nNabZ5PbLwM+Fm8eA8lThKNWYB54lBuiqG+jpItSkdfdXJW777UWSemlQk808kf/ +roF/E1S3IMRwFcuBCoHLdFfcnN8kpCkMGPAc5K4HM+zxST5Vz25PDVR708noFUjU +xbvcNRx3RQdIRYW9135TuMAW2ZXNi419yWBP0aKb49Aw1rRzNubS+QOy46T15bg+ +BEkAui6mSnKDcp33C4ypieez12Qf1uNgywPE3IjpnSUBAHHLA7QpYCWP+UbRe3Gu +zVMSW4SOwg/H7ZMZ2cn6j1g0djIvruFQFGHUqFijyDATI+/GJYw2jxyA +-----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBs +MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 +d3cuZGlnaWNlcnQuY29tMSswKQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3VyYW5j +ZSBFViBSb290IENBMB4XDTA2MTExMDAwMDAwMFoXDTMxMTExMDAwMDAwMFowbDEL +MAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IEluYzEZMBcGA1UECxMQd3d3 +LmRpZ2ljZXJ0LmNvbTErMCkGA1UEAxMiRGlnaUNlcnQgSGlnaCBBc3N1cmFuY2Ug +RVYgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMbM5XPm ++9S75S0tMqbf5YE/yc0lSbZxKsPVlDRnogocsF9ppkCxxLeyj9CYpKlBWTrT3JTW +PNt0OKRKzE0lgvdKpVMSOO7zSW1xkX5jtqumX8OkhPhPYlG++MXs2ziS4wblCJEM +xChBVfvLWokVfnHoNb9Ncgk9vjo4UFt3MRuNs8ckRZqnrG0AFFoEt7oT61EKmEFB +Ik5lYYeBQVCmeVyJ3hlKV9Uu5l0cUyx+mM0aBhakaHPQNAQTXKFx01p8VdteZOE3 +hzBWBOURtCmAEvF5OYiiAhF8J2a3iLd48soKqDirCmTCv2ZdlYTBoSUeh10aUAsg +EsxBu24LUTi4S8sCAwEAAaNjMGEwDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQF +MAMBAf8wHQYDVR0OBBYEFLE+w2kD+L9HAdSYJhoIAu9jZCvDMB8GA1UdIwQYMBaA +FLE+w2kD+L9HAdSYJhoIAu9jZCvDMA0GCSqGSIb3DQEBBQUAA4IBAQAcGgaX3Nec +nzyIZgYIVyHbIUf4KmeqvxgydkAQV8GK83rZEWWONfqe/EW1ntlMMUu4kehDLI6z +eM7b41N5cdblIZQB2lWHmiRk9opmzN6cN82oNLFpmyPInngiK3BD41VHMWEZ71jF +hS9OMPagMRYjyOfiZRYzy78aG6A9+MpeizGLYAiJLQwGXFK3xPkKmNEVX58Svnw2 +Yzi9RKR/5CYrCsSXaQ3pjOLAEFe4yHYSkVXySGnYvCoCWw9E1CAx2/S6cCZdkGCe +vEsXCS+0yx5DaMkHJ8HSXPfqIbloEpw8nL+e/IBcm2PN7EeqJSdnoDfzAIJ9VNep ++OkuE6N36B9K +-----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +MIIEjzCCA3egAwIBAgIQBp4dt3/PHfupevXlyaJANzANBgkqhkiG9w0BAQUFADBh +MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 +d3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBD +QTAeFw0xMzAzMDgxMjAwMDBaFw0yMzAzMDgxMjAwMDBaMEgxCzAJBgNVBAYTAlVT +MRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxIjAgBgNVBAMTGURpZ2lDZXJ0IFNlY3Vy +ZSBTZXJ2ZXIgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC7V+Qh +qdWbYDd+jqFhf4HiGsJ1ZNmRUAvkNkQkbjDSm3on+sJqrmpwCTi5IArIZRBKiKwx +8tyS8mOhXYBjWYCSIxzm73ZKUDXJ2HE4ue3w5kKu0zgmeTD5IpTG26Y/QXiQ2N5c +fml9+JAVOtChoL76srIZodgr0c6/a91Jq6OS/rWryME+7gEA2KlEuEJziMNh9atK +gygK0tRJ+mqxzd9XLJTl4sqDX7e6YlwvaKXwwLn9K9HpH9gaYhW9/z2m98vv5ttl +LyU47PvmIGZYljQZ0hXOIdMkzNkUb9j+Vcfnb7YPGoxJvinyulqagSY3JG/XSBJs +Lln1nBi72fZo4t9FAgMBAAGjggFaMIIBVjASBgNVHRMBAf8ECDAGAQH/AgEAMA4G +A1UdDwEB/wQEAwIBhjA0BggrBgEFBQcBAQQoMCYwJAYIKwYBBQUHMAGGGGh0dHA6 +Ly9vY3NwLmRpZ2ljZXJ0LmNvbTB7BgNVHR8EdDByMDegNaAzhjFodHRwOi8vY3Js +My5kaWdpY2VydC5jb20vRGlnaUNlcnRHbG9iYWxSb290Q0EuY3JsMDegNaAzhjFo +dHRwOi8vY3JsNC5kaWdpY2VydC5jb20vRGlnaUNlcnRHbG9iYWxSb290Q0EuY3Js +MD0GA1UdIAQ2MDQwMgYEVR0gADAqMCgGCCsGAQUFBwIBFhxodHRwczovL3d3dy5k +aWdpY2VydC5jb20vQ1BTMB0GA1UdDgQWBBSQcds363PI79zVHhK2NLorWqCmkjAf +BgNVHSMEGDAWgBQD3lA1VtFMu2bwo+IbG8OXsj3RVTANBgkqhkiG9w0BAQUFAAOC +AQEAMM7RlVEArgYLoQ4CwBestn+PIPZAdXQczHixpE/q9NDEnaLegQcmH0CIUfAf +z7dMQJnQ9DxxmHOIlywZ126Ej6QfnFog41FcsMWemWpPyGn3EP9OrRnZyVizM64M +2ZYpnnGycGOjtpkWQh1l8/egHn3F1GUUsmKE1GxcCAzYbJMrtHZZitF//wPYwl24 +LyLWOPD2nGt9RuuZdPfrSg6ppgTre87wXGuYMVqYQOtpxAX0IKjKCDplbDgV9Vws +slXkLGtB8L5cRspKKaBIXiDSRf8F3jSvcEuBOeLKB1d8tjHcISnivpcOd5AUUUDh +v+PMGxmcJcqnBrJT3yOyzxIZow== +-----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +MIIDrzCCApegAwIBAgIQCDvgVpBCRrGhdWrJWZHHSjANBgkqhkiG9w0BAQUFADBh +MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 +d3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBD +QTAeFw0wNjExMTAwMDAwMDBaFw0zMTExMTAwMDAwMDBaMGExCzAJBgNVBAYTAlVT +MRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5j +b20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IENBMIIBIjANBgkqhkiG +9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4jvhEXLeqKTTo1eqUKKPC3eQyaKl7hLOllsB +CSDMAZOnTjC3U/dDxGkAV53ijSLdhwZAAIEJzs4bg7/fzTtxRuLWZscFs3YnFo97 +nh6Vfe63SKMI2tavegw5BmV/Sl0fvBf4q77uKNd0f3p4mVmFaG5cIzJLv07A6Fpt +43C/dxC//AH2hdmoRBBYMql1GNXRor5H4idq9Joz+EkIYIvUX7Q6hL+hqkpMfT7P +T19sdl6gSzeRntwi5m3OFBqOasv+zbMUZBfHWymeMr/y7vrTC0LUq7dBMtoM1O/4 +gdW7jVg/tRvoSSiicNoxBN33shbyTApOB6jtSj1etX+jkMOvJwIDAQABo2MwYTAO +BgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUA95QNVbR +TLtm8KPiGxvDl7I90VUwHwYDVR0jBBgwFoAUA95QNVbRTLtm8KPiGxvDl7I90VUw +DQYJKoZIhvcNAQEFBQADggEBAMucN6pIExIK+t1EnE9SsPTfrgT1eXkIoyQY/Esr +hMAtudXH/vTBH1jLuG2cenTnmCmrEbXjcKChzUyImZOMkXDiqw8cvpOp/2PV5Adg +06O/nVsJ8dWO41P0jmP6P6fbtGbfYmbW0W5BjfIttep3Sp+dWOIrWcBAI+0tKIJF +PnlUkiaY4IBIqDfv8NZ5YBberOgOzW6sRBc4L0na4UU+Krk2U886UAb3LujEV0ls +YSEY1QSteDwsOoBrp+uvFRTp2InBuThs4pFsiv9kuXclVzDAGySj4dzp30d8tbQk +CAUw7C29C79Fv1C5qfPrmAESrciIxpg0X40KPMbp1ZWVbd4= +-----END CERTIFICATE----- diff --git a/override/override.sh b/override/override.sh index d4f4904..11676f4 100755 --- a/override/override.sh +++ b/override/override.sh @@ -28,3 +28,5 @@ cp override/*_deleted.py clever/models/ cp override/VERSION clever/ cp override/version.py clever/ cp override/importer.py clever/ +mkdir -p clever/data +cp override/clever.com_ca_bundle.crt clever/data/ From 8660475823bfe5ed6d13c3a47fb1c4b2633e5181 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 26 Dec 2017 13:58:51 -0800 Subject: [PATCH 26/53] v2.0 --- clever/VERSION | 2 +- clever/__init__.py | 40 +- clever/api_client.py | 109 +- clever/apis/data_api.py | 3043 +++++++++++------ clever/apis/events_api.py | 652 +--- clever/configuration.py | 43 +- clever/models/__init__.py | 38 +- clever/models/bad_request.py | 3 +- .../models/{student_contact.py => contact.py} | 133 +- ...nt_contact_object.py => contact_object.py} | 23 +- ...levels_response.py => contact_response.py} | 23 +- clever/models/contacts_created.py | 124 + clever/models/contacts_deleted.py | 124 + ...atus_responses.py => contacts_response.py} | 23 +- clever/models/contacts_updated.py | 124 + ...acts_for_student_response.py => course.py} | 95 +- clever/models/course_object.py | 124 + ...contact_response.py => course_response.py} | 23 +- clever/models/courses_created.py | 124 + clever/models/courses_deleted.py | 124 + clever/models/courses_response.py | 124 + clever/models/courses_updated.py | 124 + clever/models/credentials.py | 3 +- clever/models/district.py | 225 +- clever/models/district_admin.py | 3 +- clever/models/district_admin_object.py | 124 + clever/models/district_admin_response.py | 3 +- clever/models/district_admins_response.py | 9 +- clever/models/district_object.py | 3 +- clever/models/district_response.py | 3 +- clever/models/district_status.py | 311 -- clever/models/districtadmins_created.py | 124 + clever/models/districtadmins_deleted.py | 124 + clever/models/districtadmins_updated.py | 124 + clever/models/districts_created.py | 87 +- clever/models/districts_deleted.py | 87 +- clever/models/districts_response.py | 3 +- clever/models/districts_updated.py | 87 +- clever/models/event.py | 46 +- clever/models/event_response.py | 3 +- clever/models/events_response.py | 3 +- clever/models/internal_error.py | 3 +- clever/models/location.py | 3 +- clever/models/name.py | 3 +- clever/models/not_found.py | 3 +- clever/models/principal.py | 3 +- clever/models/school.py | 3 +- clever/models/school_admin.py | 3 +- clever/models/school_admin_object.py | 3 +- clever/models/school_admin_response.py | 3 +- clever/models/school_admins_response.py | 3 +- clever/models/school_object.py | 3 +- clever/models/school_response.py | 3 +- clever/models/schooladmins_created.py | 87 +- clever/models/schooladmins_deleted.py | 87 +- clever/models/schooladmins_updated.py | 87 +- clever/models/schools_created.py | 86 +- clever/models/schools_deleted.py | 87 +- clever/models/schools_response.py | 3 +- clever/models/schools_updated.py | 87 +- clever/models/section.py | 119 +- clever/models/section_object.py | 3 +- clever/models/section_response.py | 3 +- clever/models/sections_created.py | 87 +- clever/models/sections_deleted.py | 87 +- clever/models/sections_response.py | 3 +- clever/models/sections_updated.py | 87 +- clever/models/student.py | 3 +- clever/models/student_contacts_response.py | 123 - clever/models/student_object.py | 3 +- clever/models/student_response.py | 3 +- clever/models/studentcontacts_created.py | 203 -- clever/models/studentcontacts_deleted.py | 203 -- clever/models/studentcontacts_updated.py | 203 -- clever/models/students_created.py | 87 +- clever/models/students_deleted.py | 87 +- clever/models/students_response.py | 3 +- clever/models/students_updated.py | 87 +- clever/models/teacher.py | 3 +- clever/models/teacher_object.py | 3 +- clever/models/teacher_response.py | 3 +- clever/models/teachers_created.py | 87 +- clever/models/teachers_deleted.py | 87 +- clever/models/teachers_response.py | 3 +- clever/models/teachers_updated.py | 87 +- clever/models/term.py | 31 +- clever/models/term_object.py | 124 + ...ct_status_response.py => term_response.py} | 23 +- clever/models/terms_created.py | 124 + clever/models/terms_deleted.py | 124 + clever/models/terms_response.py | 124 + clever/models/terms_updated.py | 124 + clever/rest.py | 47 +- docs/Contact.md | 19 + docs/ContactObject.md | 10 + docs/ContactResponse.md | 10 + docs/ContactsCreated.md | 10 + docs/ContactsDeleted.md | 10 + docs/ContactsResponse.md | 10 + docs/ContactsUpdated.md | 10 + docs/Course.md | 12 + docs/CourseObject.md | 10 + docs/CourseResponse.md | 10 + docs/CoursesCreated.md | 10 + docs/CoursesDeleted.md | 10 + docs/CoursesResponse.md | 10 + docs/CoursesUpdated.md | 10 + docs/DataApi.md | 1115 ++++-- docs/District.md | 8 + docs/DistrictAdminObject.md | 10 + docs/DistrictAdminsResponse.md | 2 +- docs/DistrictadminsCreated.md | 10 + docs/DistrictadminsDeleted.md | 10 + docs/DistrictadminsUpdated.md | 10 + docs/DistrictsCreated.md | 3 - docs/DistrictsDeleted.md | 3 - docs/DistrictsUpdated.md | 3 - docs/EventsApi.md | 305 +- docs/README.md | 144 +- docs/SchooladminsCreated.md | 3 - docs/SchooladminsDeleted.md | 3 - docs/SchooladminsUpdated.md | 3 - docs/SchoolsCreated.md | 3 - docs/SchoolsDeleted.md | 3 - docs/SchoolsUpdated.md | 3 - docs/Section.md | 6 +- docs/SectionsCreated.md | 3 - docs/SectionsDeleted.md | 3 - docs/SectionsUpdated.md | 3 - docs/StudentsCreated.md | 3 - docs/StudentsDeleted.md | 3 - docs/StudentsUpdated.md | 3 - docs/TeachersCreated.md | 3 - docs/TeachersDeleted.md | 3 - docs/TeachersUpdated.md | 3 - docs/Term.md | 1 + docs/TermObject.md | 10 + docs/TermResponse.md | 10 + docs/TermsCreated.md | 10 + docs/TermsDeleted.md | 10 + docs/TermsResponse.md | 10 + docs/TermsUpdated.md | 10 + setup.py | 2 +- test/test_contact.py | 44 + test/test_contact_object.py | 44 + test/test_contact_response.py | 44 + test/test_contacts_created.py | 44 + test/test_contacts_deleted.py | 44 + test/test_contacts_response.py | 44 + test/test_contacts_updated.py | 44 + test/test_course.py | 44 + test/test_course_object.py | 44 + test/test_course_response.py | 44 + test/test_courses_created.py | 44 + test/test_courses_deleted.py | 44 + test/test_courses_response.py | 44 + test/test_courses_updated.py | 44 + test/test_district_admin_object.py | 44 + test/test_districtadmins_created.py | 44 + test/test_districtadmins_deleted.py | 44 + test/test_districtadmins_updated.py | 44 + test/test_term_object.py | 44 + test/test_term_response.py | 44 + test/test_terms_created.py | 44 + test/test_terms_deleted.py | 44 + test/test_terms_response.py | 44 + test/test_terms_updated.py | 44 + 167 files changed, 7267 insertions(+), 5239 deletions(-) rename clever/models/{student_contact.py => contact.py} (63%) rename clever/models/{student_contact_object.py => contact_object.py} (82%) rename clever/models/{grade_levels_response.py => contact_response.py} (83%) create mode 100644 clever/models/contacts_created.py create mode 100644 clever/models/contacts_deleted.py rename clever/models/{district_status_responses.py => contacts_response.py} (81%) create mode 100644 clever/models/contacts_updated.py rename clever/models/{student_contacts_for_student_response.py => course.py} (55%) create mode 100644 clever/models/course_object.py rename clever/models/{student_contact_response.py => course_response.py} (82%) create mode 100644 clever/models/courses_created.py create mode 100644 clever/models/courses_deleted.py create mode 100644 clever/models/courses_response.py create mode 100644 clever/models/courses_updated.py create mode 100644 clever/models/district_admin_object.py delete mode 100644 clever/models/district_status.py create mode 100644 clever/models/districtadmins_created.py create mode 100644 clever/models/districtadmins_deleted.py create mode 100644 clever/models/districtadmins_updated.py delete mode 100644 clever/models/student_contacts_response.py delete mode 100644 clever/models/studentcontacts_created.py delete mode 100644 clever/models/studentcontacts_deleted.py delete mode 100644 clever/models/studentcontacts_updated.py create mode 100644 clever/models/term_object.py rename clever/models/{district_status_response.py => term_response.py} (82%) create mode 100644 clever/models/terms_created.py create mode 100644 clever/models/terms_deleted.py create mode 100644 clever/models/terms_response.py create mode 100644 clever/models/terms_updated.py create mode 100644 docs/Contact.md create mode 100644 docs/ContactObject.md create mode 100644 docs/ContactResponse.md create mode 100644 docs/ContactsCreated.md create mode 100644 docs/ContactsDeleted.md create mode 100644 docs/ContactsResponse.md create mode 100644 docs/ContactsUpdated.md create mode 100644 docs/Course.md create mode 100644 docs/CourseObject.md create mode 100644 docs/CourseResponse.md create mode 100644 docs/CoursesCreated.md create mode 100644 docs/CoursesDeleted.md create mode 100644 docs/CoursesResponse.md create mode 100644 docs/CoursesUpdated.md create mode 100644 docs/DistrictAdminObject.md create mode 100644 docs/DistrictadminsCreated.md create mode 100644 docs/DistrictadminsDeleted.md create mode 100644 docs/DistrictadminsUpdated.md create mode 100644 docs/TermObject.md create mode 100644 docs/TermResponse.md create mode 100644 docs/TermsCreated.md create mode 100644 docs/TermsDeleted.md create mode 100644 docs/TermsResponse.md create mode 100644 docs/TermsUpdated.md create mode 100644 test/test_contact.py create mode 100644 test/test_contact_object.py create mode 100644 test/test_contact_response.py create mode 100644 test/test_contacts_created.py create mode 100644 test/test_contacts_deleted.py create mode 100644 test/test_contacts_response.py create mode 100644 test/test_contacts_updated.py create mode 100644 test/test_course.py create mode 100644 test/test_course_object.py create mode 100644 test/test_course_response.py create mode 100644 test/test_courses_created.py create mode 100644 test/test_courses_deleted.py create mode 100644 test/test_courses_response.py create mode 100644 test/test_courses_updated.py create mode 100644 test/test_district_admin_object.py create mode 100644 test/test_districtadmins_created.py create mode 100644 test/test_districtadmins_deleted.py create mode 100644 test/test_districtadmins_updated.py create mode 100644 test/test_term_object.py create mode 100644 test/test_term_response.py create mode 100644 test/test_terms_created.py create mode 100644 test/test_terms_deleted.py create mode 100644 test/test_terms_response.py create mode 100644 test/test_terms_updated.py diff --git a/clever/VERSION b/clever/VERSION index 197c4d5..4a36342 100644 --- a/clever/VERSION +++ b/clever/VERSION @@ -1 +1 @@ -2.4.0 +3.0.0 diff --git a/clever/__init__.py b/clever/__init__.py index e3697e1..e206a95 100644 --- a/clever/__init__.py +++ b/clever/__init__.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -15,21 +15,26 @@ # import models into sdk package from .models.bad_request import BadRequest +from .models.contact import Contact +from .models.contact_object import ContactObject +from .models.contact_response import ContactResponse +from .models.contacts_response import ContactsResponse +from .models.course import Course +from .models.course_object import CourseObject +from .models.course_response import CourseResponse +from .models.courses_response import CoursesResponse from .models.credentials import Credentials from .models.district import District from .models.district_admin import DistrictAdmin +from .models.district_admin_object import DistrictAdminObject from .models.district_admin_response import DistrictAdminResponse from .models.district_admins_response import DistrictAdminsResponse from .models.district_object import DistrictObject from .models.district_response import DistrictResponse -from .models.district_status import DistrictStatus -from .models.district_status_response import DistrictStatusResponse -from .models.district_status_responses import DistrictStatusResponses from .models.districts_response import DistrictsResponse from .models.event import Event from .models.event_response import EventResponse from .models.events_response import EventsResponse -from .models.grade_levels_response import GradeLevelsResponse from .models.internal_error import InternalError from .models.location import Location from .models.name import Name @@ -48,11 +53,6 @@ from .models.section_response import SectionResponse from .models.sections_response import SectionsResponse from .models.student import Student -from .models.student_contact import StudentContact -from .models.student_contact_object import StudentContactObject -from .models.student_contact_response import StudentContactResponse -from .models.student_contacts_for_student_response import StudentContactsForStudentResponse -from .models.student_contacts_response import StudentContactsResponse from .models.student_object import StudentObject from .models.student_response import StudentResponse from .models.students_response import StudentsResponse @@ -61,6 +61,18 @@ from .models.teacher_response import TeacherResponse from .models.teachers_response import TeachersResponse from .models.term import Term +from .models.term_object import TermObject +from .models.term_response import TermResponse +from .models.terms_response import TermsResponse +from .models.contacts_created import ContactsCreated +from .models.contacts_deleted import ContactsDeleted +from .models.contacts_updated import ContactsUpdated +from .models.courses_created import CoursesCreated +from .models.courses_deleted import CoursesDeleted +from .models.courses_updated import CoursesUpdated +from .models.districtadmins_created import DistrictadminsCreated +from .models.districtadmins_deleted import DistrictadminsDeleted +from .models.districtadmins_updated import DistrictadminsUpdated from .models.districts_created import DistrictsCreated from .models.districts_deleted import DistrictsDeleted from .models.districts_updated import DistrictsUpdated @@ -73,15 +85,15 @@ from .models.sections_created import SectionsCreated from .models.sections_deleted import SectionsDeleted from .models.sections_updated import SectionsUpdated -from .models.studentcontacts_created import StudentcontactsCreated -from .models.studentcontacts_deleted import StudentcontactsDeleted -from .models.studentcontacts_updated import StudentcontactsUpdated from .models.students_created import StudentsCreated from .models.students_deleted import StudentsDeleted from .models.students_updated import StudentsUpdated from .models.teachers_created import TeachersCreated from .models.teachers_deleted import TeachersDeleted from .models.teachers_updated import TeachersUpdated +from .models.terms_created import TermsCreated +from .models.terms_deleted import TermsDeleted +from .models.terms_updated import TermsUpdated # import apis into sdk package from .apis.data_api import DataApi @@ -91,5 +103,3 @@ from .api_client import ApiClient from .configuration import Configuration - -configuration = Configuration() diff --git a/clever/api_client.py b/clever/api_client.py index 6b2bde0..d3c213b 100644 --- a/clever/api_client.py +++ b/clever/api_client.py @@ -4,8 +4,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import json import mimetypes import tempfile -import threading +from multiprocessing.pool import ThreadPool from datetime import date, datetime @@ -59,21 +59,23 @@ class ApiClient(object): 'object': object, } - def __init__(self, host=None, header_name=None, header_value=None, cookie=None): - """ - Constructor of the class. - """ - self.rest_client = RESTClientObject() + def __init__(self, configuration=None, header_name=None, header_value=None, cookie=None): + if configuration is None: + configuration = Configuration() + self.configuration = configuration + + self.pool = ThreadPool() + self.rest_client = RESTClientObject(configuration) self.default_headers = {} if header_name is not None: self.default_headers[header_name] = header_value - if host is None: - self.host = Configuration().host - else: - self.host = host self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.0.0/python' + self.user_agent = 'Swagger-Codegen/3.0.0/python' + + def __del__(self): + self.pool.close() + self.pool.join() @property def user_agent(self): @@ -95,11 +97,11 @@ def set_default_header(self, header_name, header_value): def __call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, post_params=None, files=None, - response_type=None, auth_settings=None, callback=None, + response_type=None, auth_settings=None, _return_http_data_only=None, collection_formats=None, _preload_content=True, _request_timeout=None): - config = Configuration() + config = self.configuration # header parameters header_params = header_params or {} @@ -119,7 +121,7 @@ def __call_api(self, resource_path, method, for k, v in path_params: # specified safe chars, encode everything resource_path = resource_path.replace( - '{%s}' % k, quote(v.encode('utf-8'), safe=config.safe_chars_for_path_param)) + '{%s}' % k, quote(str(v), safe=config.safe_chars_for_path_param)) # query parameters if query_params: @@ -142,7 +144,7 @@ def __call_api(self, resource_path, method, body = self.sanitize_for_serialization(body) # request url - url = self.host + resource_path + url = self.configuration.host + resource_path # perform request and return response response_data = self.request(method, url, @@ -162,12 +164,7 @@ def __call_api(self, resource_path, method, else: return_data = None - if callback: - if _return_http_data_only: - callback(return_data) - else: - callback((return_data, response_data.status, response_data.getheaders())) - elif _return_http_data_only: + if _return_http_data_only: return (return_data) else: return (return_data, response_data.status, response_data.getheaders()) @@ -285,12 +282,12 @@ def __deserialize(self, data, klass): def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, post_params=None, files=None, - response_type=None, auth_settings=None, callback=None, + response_type=None, auth_settings=None, async=None, _return_http_data_only=None, collection_formats=None, _preload_content=True, _request_timeout=None): """ Makes the HTTP request (synchronous) and return the deserialized data. - To make an async request, define a function for callback. + To make an async request, set the async parameter. :param resource_path: Path to method endpoint. :param method: Method to call. @@ -305,9 +302,7 @@ def call_api(self, resource_path, method, :param response: Response data type. :param files dict: key -> filename, value -> filepath, for `multipart/form-data`. - :param callback function: Callback function for asynchronous request. - If provide this parameter, - the request will be called asynchronously. + :param async bool: execute request asynchronously :param _return_http_data_only: response data without head status code and headers :param collection_formats: dict of collection formats for path, query, header, and post parameters. @@ -316,28 +311,26 @@ def call_api(self, resource_path, method, :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: - If provide parameter callback, + If async parameter is True, the request will be called asynchronously. The method will return the request thread. - If parameter callback is None, + If parameter async is False or missing, then the method will return the response directly. """ - if callback is None: + if not async: return self.__call_api(resource_path, method, path_params, query_params, header_params, body, post_params, files, - response_type, auth_settings, callback, + response_type, auth_settings, _return_http_data_only, collection_formats, _preload_content, _request_timeout) else: - thread = threading.Thread(target=self.__call_api, - args=(resource_path, method, - path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - callback, _return_http_data_only, - collection_formats, _preload_content, _request_timeout)) - thread.start() + thread = self.pool.apply_async(self.__call_api, (resource_path, method, + path_params, query_params, + header_params, body, + post_params, files, + response_type, auth_settings, + _return_http_data_only, + collection_formats, _preload_content, _request_timeout)) return thread def request(self, method, url, query_params=None, headers=None, @@ -503,13 +496,11 @@ def update_params_for_auth(self, headers, querys, auth_settings): :param querys: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list. """ - config = Configuration() - if not auth_settings: return for auth in auth_settings: - auth_setting = config.auth_settings().get(auth) + auth_setting = self.configuration.auth_settings().get(auth) if auth_setting: if not auth_setting['value']: continue @@ -530,9 +521,7 @@ def __deserialize_file(self, response): :param response: RESTResponse. :return: file path. """ - config = Configuration() - - fd, path = tempfile.mkstemp(dir=config.temp_folder_path) + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) os.close(fd) os.remove(path) @@ -621,17 +610,23 @@ def __deserialize_model(self, data, klass): :param klass: class literal. :return: model object. """ - if not klass.swagger_types: + + if not klass.swagger_types and not hasattr(klass, 'get_real_child_model'): return data kwargs = {} - for attr, attr_type in iteritems(klass.swagger_types): - if data is not None \ - and klass.attribute_map[attr] in data \ - and isinstance(data, (list, dict)): - value = data[klass.attribute_map[attr]] - kwargs[attr] = self.__deserialize(value, attr_type) - - instance = klass(**kwargs) - + if klass.swagger_types is not None: + for attr, attr_type in iteritems(klass.swagger_types): + if data is not None \ + and klass.attribute_map[attr] in data \ + and isinstance(data, (list, dict)): + value = data[klass.attribute_map[attr]] + kwargs[attr] = self.__deserialize(value, attr_type) + + instance = klass(**kwargs) + + if hasattr(instance, 'get_real_child_model'): + klass_name = instance.get_real_child_model(data) + if klass_name: + instance = self.__deserialize(data, klass_name) return instance diff --git a/clever/apis/data_api.py b/clever/apis/data_api.py index dcead60..70ff24a 100644 --- a/clever/apis/data_api.py +++ b/clever/apis/data_api.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -20,7 +20,6 @@ # python 2 and python 3 compatibility library from six import iteritems -from ..configuration import Configuration from ..api_client import ApiClient @@ -32,34 +31,26 @@ class DataApi(object): """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client def get_contact(self, id, **kwargs): """ Returns a specific student contact This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_contact(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_contact(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: StudentContactResponse + :return: ContactResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_contact_with_http_info(id, **kwargs) else: (data) = self.get_contact_with_http_info(id, **kwargs) @@ -69,23 +60,19 @@ def get_contact_with_http_info(self, id, **kwargs): """ Returns a specific student contact This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_contact_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_contact_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: StudentContactResponse + :return: ContactResponse If the method is called asynchronously, returns the request thread. """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -132,9 +119,9 @@ def get_contact_with_http_info(self, id, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='StudentContactResponse', + response_type='ContactResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -144,24 +131,20 @@ def get_contacts(self, **kwargs): """ Returns a list of student contacts This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_contacts(callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_contacts(async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param int limit: :param str starting_after: :param str ending_before: - :return: StudentContactsResponse + :return: ContactsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_contacts_with_http_info(**kwargs) else: (data) = self.get_contacts_with_http_info(**kwargs) @@ -171,25 +154,21 @@ def get_contacts_with_http_info(self, **kwargs): """ Returns a list of student contacts This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_contacts_with_http_info(callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_contacts_with_http_info(async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param int limit: :param str starting_after: :param str ending_before: - :return: StudentContactsResponse + :return: ContactsResponse If the method is called asynchronously, returns the request thread. """ all_params = ['limit', 'starting_after', 'ending_before'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -237,9 +216,9 @@ def get_contacts_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='StudentContactsResponse', + response_type='ContactsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -249,23 +228,21 @@ def get_contacts_for_student(self, id, **kwargs): """ Returns the contacts for a student This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_contacts_for_student(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_contacts_for_student(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: - :return: StudentContactsForStudentResponse + :param str starting_after: + :param str ending_before: + :return: ContactsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_contacts_for_student_with_http_info(id, **kwargs) else: (data) = self.get_contacts_for_student_with_http_info(id, **kwargs) @@ -275,24 +252,22 @@ def get_contacts_for_student_with_http_info(self, id, **kwargs): """ Returns the contacts for a student This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_contacts_for_student_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_contacts_for_student_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: - :return: StudentContactsForStudentResponse + :param str starting_after: + :param str ending_before: + :return: ContactsResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'limit'] - all_params.append('callback') + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -320,6 +295,10 @@ def get_contacts_for_student_with_http_info(self, id, **kwargs): query_params = [] if 'limit' in params: query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) header_params = {} @@ -341,60 +320,52 @@ def get_contacts_for_student_with_http_info(self, id, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='StudentContactsForStudentResponse', + response_type='ContactsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_district(self, id, **kwargs): + def get_course(self, id, **kwargs): """ - Returns a specific district + Returns a specific course This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_course(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: DistrictResponse + :return: CourseResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_district_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_course_with_http_info(id, **kwargs) else: - (data) = self.get_district_with_http_info(id, **kwargs) + (data) = self.get_course_with_http_info(id, **kwargs) return data - def get_district_with_http_info(self, id, **kwargs): + def get_course_with_http_info(self, id, **kwargs): """ - Returns a specific district + Returns a specific course This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_course_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: DistrictResponse + :return: CourseResponse If the method is called asynchronously, returns the request thread. """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -404,13 +375,13 @@ def get_district_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_district" % key + " to method get_course" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_district`") + raise ValueError("Missing the required parameter `id` when calling `get_course`") collection_formats = {} @@ -434,67 +405,59 @@ def get_district_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/districts/{id}', 'GET', + return self.api_client.call_api('/courses/{id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DistrictResponse', + response_type='CourseResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_district_admin(self, id, **kwargs): + def get_course_for_section(self, id, **kwargs): """ - Returns a specific district admin + Returns the course for a section This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district_admin(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_course_for_section(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: DistrictAdminResponse + :return: CourseResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_district_admin_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_course_for_section_with_http_info(id, **kwargs) else: - (data) = self.get_district_admin_with_http_info(id, **kwargs) + (data) = self.get_course_for_section_with_http_info(id, **kwargs) return data - def get_district_admin_with_http_info(self, id, **kwargs): + def get_course_for_section_with_http_info(self, id, **kwargs): """ - Returns a specific district admin + Returns the course for a section This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district_admin_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_course_for_section_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: DistrictAdminResponse + :return: CourseResponse If the method is called asynchronously, returns the request thread. """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -504,13 +467,13 @@ def get_district_admin_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_district_admin" % key + " to method get_course_for_section" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_district_admin`") + raise ValueError("Missing the required parameter `id` when calling `get_course_for_section`") collection_formats = {} @@ -534,69 +497,63 @@ def get_district_admin_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/district_admins/{id}', 'GET', + return self.api_client.call_api('/sections/{id}/course', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DistrictAdminResponse', + response_type='CourseResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_district_admins(self, **kwargs): + def get_courses(self, **kwargs): """ - Returns a list of district admins + Returns a list of courses This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district_admins(callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_courses(async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool + :param int limit: :param str starting_after: :param str ending_before: - :return: DistrictAdminsResponse + :return: CoursesResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_district_admins_with_http_info(**kwargs) + if kwargs.get('async'): + return self.get_courses_with_http_info(**kwargs) else: - (data) = self.get_district_admins_with_http_info(**kwargs) + (data) = self.get_courses_with_http_info(**kwargs) return data - def get_district_admins_with_http_info(self, **kwargs): + def get_courses_with_http_info(self, **kwargs): """ - Returns a list of district admins + Returns a list of courses This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district_admins_with_http_info(callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_courses_with_http_info(async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool + :param int limit: :param str starting_after: :param str ending_before: - :return: DistrictAdminsResponse + :return: CoursesResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['starting_after', 'ending_before'] - all_params.append('callback') + all_params = ['limit', 'starting_after', 'ending_before'] + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -606,7 +563,7 @@ def get_district_admins_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_district_admins" % key + " to method get_courses" % key ) params[key] = val del params['kwargs'] @@ -617,6 +574,8 @@ def get_district_admins_with_http_info(self, **kwargs): path_params = {} query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) if 'starting_after' in params: query_params.append(('starting_after', params['starting_after'])) if 'ending_before' in params: @@ -635,59 +594,51 @@ def get_district_admins_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/district_admins', 'GET', + return self.api_client.call_api('/courses', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DistrictAdminsResponse', + response_type='CoursesResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_district_for_school(self, id, **kwargs): + def get_district(self, id, **kwargs): """ - Returns the district for a school + Returns a specific district This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district_for_school(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :return: DistrictResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_district_for_school_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_district_with_http_info(id, **kwargs) else: - (data) = self.get_district_for_school_with_http_info(id, **kwargs) + (data) = self.get_district_with_http_info(id, **kwargs) return data - def get_district_for_school_with_http_info(self, id, **kwargs): + def get_district_with_http_info(self, id, **kwargs): """ - Returns the district for a school + Returns a specific district This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district_for_school_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :return: DistrictResponse If the method is called asynchronously, @@ -695,7 +646,7 @@ def get_district_for_school_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -705,13 +656,13 @@ def get_district_for_school_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_district_for_school" % key + " to method get_district" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_district_for_school`") + raise ValueError("Missing the required parameter `id` when calling `get_district`") collection_formats = {} @@ -735,7 +686,7 @@ def get_district_for_school_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/schools/{id}/district', 'GET', + return self.api_client.call_api('/districts/{id}', 'GET', path_params, query_params, header_params, @@ -744,58 +695,50 @@ def get_district_for_school_with_http_info(self, id, **kwargs): files=local_var_files, response_type='DistrictResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_district_for_section(self, id, **kwargs): + def get_district_admin(self, id, **kwargs): """ - Returns the district for a section + Returns a specific district admin This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district_for_section(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_admin(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: DistrictResponse + :return: DistrictAdminResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_district_for_section_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_district_admin_with_http_info(id, **kwargs) else: - (data) = self.get_district_for_section_with_http_info(id, **kwargs) + (data) = self.get_district_admin_with_http_info(id, **kwargs) return data - def get_district_for_section_with_http_info(self, id, **kwargs): + def get_district_admin_with_http_info(self, id, **kwargs): """ - Returns the district for a section + Returns a specific district admin This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district_for_section_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_admin_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: DistrictResponse + :return: DistrictAdminResponse If the method is called asynchronously, returns the request thread. """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -805,13 +748,13 @@ def get_district_for_section_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_district_for_section" % key + " to method get_district_admin" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_district_for_section`") + raise ValueError("Missing the required parameter `id` when calling `get_district_admin`") collection_formats = {} @@ -835,67 +778,63 @@ def get_district_for_section_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/sections/{id}/district', 'GET', + return self.api_client.call_api('/district_admins/{id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DistrictResponse', + response_type='DistrictAdminResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_district_for_student(self, id, **kwargs): + def get_district_admins(self, **kwargs): """ - Returns the district for a student + Returns a list of district admins This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district_for_student(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_admins(async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :return: DistrictResponse + :param async bool + :param int limit: + :param str starting_after: + :param str ending_before: + :return: DistrictAdminsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_district_for_student_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_district_admins_with_http_info(**kwargs) else: - (data) = self.get_district_for_student_with_http_info(id, **kwargs) + (data) = self.get_district_admins_with_http_info(**kwargs) return data - def get_district_for_student_with_http_info(self, id, **kwargs): + def get_district_admins_with_http_info(self, **kwargs): """ - Returns the district for a student + Returns a list of district admins This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district_for_student_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_admins_with_http_info(async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :return: DistrictResponse + :param async bool + :param int limit: + :param str starting_after: + :param str ending_before: + :return: DistrictAdminsResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] - all_params.append('callback') + all_params = ['limit', 'starting_after', 'ending_before'] + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -905,22 +844,23 @@ def get_district_for_student_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_district_for_student" % key + " to method get_district_admins" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_district_for_student`") collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) header_params = {} @@ -935,59 +875,51 @@ def get_district_for_student_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/students/{id}/district', 'GET', + return self.api_client.call_api('/district_admins', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DistrictResponse', + response_type='DistrictAdminsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_district_for_student_contact(self, id, **kwargs): + def get_district_for_contact(self, id, **kwargs): """ Returns the district for a student contact This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district_for_student_contact(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_contact(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :return: DistrictResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_district_for_student_contact_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_district_for_contact_with_http_info(id, **kwargs) else: - (data) = self.get_district_for_student_contact_with_http_info(id, **kwargs) + (data) = self.get_district_for_contact_with_http_info(id, **kwargs) return data - def get_district_for_student_contact_with_http_info(self, id, **kwargs): + def get_district_for_contact_with_http_info(self, id, **kwargs): """ Returns the district for a student contact This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district_for_student_contact_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_contact_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :return: DistrictResponse If the method is called asynchronously, @@ -995,7 +927,7 @@ def get_district_for_student_contact_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1005,13 +937,13 @@ def get_district_for_student_contact_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_district_for_student_contact" % key + " to method get_district_for_contact" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_district_for_student_contact`") + raise ValueError("Missing the required parameter `id` when calling `get_district_for_contact`") collection_formats = {} @@ -1044,50 +976,42 @@ def get_district_for_student_contact_with_http_info(self, id, **kwargs): files=local_var_files, response_type='DistrictResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_district_for_teacher(self, id, **kwargs): + def get_district_for_course(self, id, **kwargs): """ - Returns the district for a teacher + Returns the district for a course This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district_for_teacher(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_course(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :return: DistrictResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_district_for_teacher_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_district_for_course_with_http_info(id, **kwargs) else: - (data) = self.get_district_for_teacher_with_http_info(id, **kwargs) + (data) = self.get_district_for_course_with_http_info(id, **kwargs) return data - def get_district_for_teacher_with_http_info(self, id, **kwargs): + def get_district_for_course_with_http_info(self, id, **kwargs): """ - Returns the district for a teacher + Returns the district for a course This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district_for_teacher_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_course_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :return: DistrictResponse If the method is called asynchronously, @@ -1095,7 +1019,7 @@ def get_district_for_teacher_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1105,13 +1029,13 @@ def get_district_for_teacher_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_district_for_teacher" % key + " to method get_district_for_course" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_district_for_teacher`") + raise ValueError("Missing the required parameter `id` when calling `get_district_for_course`") collection_formats = {} @@ -1135,7 +1059,7 @@ def get_district_for_teacher_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/teachers/{id}/district', 'GET', + return self.api_client.call_api('/courses/{id}/district', 'GET', path_params, query_params, header_params, @@ -1144,58 +1068,50 @@ def get_district_for_teacher_with_http_info(self, id, **kwargs): files=local_var_files, response_type='DistrictResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_district_status(self, id, **kwargs): + def get_district_for_district_admin(self, id, **kwargs): """ - Returns the status of the district + Returns the district for a district admin This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district_status(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_district_admin(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: DistrictStatusResponses + :return: DistrictResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_district_status_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_district_for_district_admin_with_http_info(id, **kwargs) else: - (data) = self.get_district_status_with_http_info(id, **kwargs) + (data) = self.get_district_for_district_admin_with_http_info(id, **kwargs) return data - def get_district_status_with_http_info(self, id, **kwargs): + def get_district_for_district_admin_with_http_info(self, id, **kwargs): """ - Returns the status of the district + Returns the district for a district admin This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_district_status_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_district_admin_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: DistrictStatusResponses + :return: DistrictResponse If the method is called asynchronously, returns the request thread. """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1205,13 +1121,13 @@ def get_district_status_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_district_status" % key + " to method get_district_for_district_admin" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_district_status`") + raise ValueError("Missing the required parameter `id` when calling `get_district_for_district_admin`") collection_formats = {} @@ -1235,65 +1151,59 @@ def get_district_status_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/districts/{id}/status', 'GET', + return self.api_client.call_api('/district_admins/{id}/district', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DistrictStatusResponses', + response_type='DistrictResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_districts(self, **kwargs): + def get_district_for_school(self, id, **kwargs): """ - Returns a list of districts + Returns the district for a school This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_districts(callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_school(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) - :return: DistrictsResponse + :param async bool + :param str id: (required) + :return: DistrictResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_districts_with_http_info(**kwargs) + if kwargs.get('async'): + return self.get_district_for_school_with_http_info(id, **kwargs) else: - (data) = self.get_districts_with_http_info(**kwargs) + (data) = self.get_district_for_school_with_http_info(id, **kwargs) return data - def get_districts_with_http_info(self, **kwargs): + def get_district_for_school_with_http_info(self, id, **kwargs): """ - Returns a list of districts + Returns the district for a school This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_districts_with_http_info(callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_school_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) - :return: DistrictsResponse + :param async bool + :param str id: (required) + :return: DistrictResponse If the method is called asynchronously, returns the request thread. """ - all_params = [] - all_params.append('callback') + all_params = ['id'] + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1303,14 +1213,20 @@ def get_districts_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_districts" % key + " to method get_district_for_school" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_district_for_school`") + collection_formats = {} path_params = {} + if 'id' in params: + path_params['id'] = params['id'] query_params = [] @@ -1327,67 +1243,59 @@ def get_districts_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/districts', 'GET', + return self.api_client.call_api('/schools/{id}/district', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DistrictsResponse', + response_type='DistrictResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_grade_levels_for_teacher(self, id, **kwargs): + def get_district_for_school_admin(self, id, **kwargs): """ - Returns the grade levels for sections a teacher teaches + Returns the district for a school admin This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_grade_levels_for_teacher(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_school_admin(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: GradeLevelsResponse + :return: DistrictResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_grade_levels_for_teacher_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_district_for_school_admin_with_http_info(id, **kwargs) else: - (data) = self.get_grade_levels_for_teacher_with_http_info(id, **kwargs) + (data) = self.get_district_for_school_admin_with_http_info(id, **kwargs) return data - def get_grade_levels_for_teacher_with_http_info(self, id, **kwargs): + def get_district_for_school_admin_with_http_info(self, id, **kwargs): """ - Returns the grade levels for sections a teacher teaches + Returns the district for a school admin This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_grade_levels_for_teacher_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_school_admin_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: GradeLevelsResponse + :return: DistrictResponse If the method is called asynchronously, returns the request thread. """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1397,13 +1305,13 @@ def get_grade_levels_for_teacher_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_grade_levels_for_teacher" % key + " to method get_district_for_school_admin" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_grade_levels_for_teacher`") + raise ValueError("Missing the required parameter `id` when calling `get_district_for_school_admin`") collection_formats = {} @@ -1427,67 +1335,59 @@ def get_grade_levels_for_teacher_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/teachers/{id}/grade_levels', 'GET', + return self.api_client.call_api('/school_admins/{id}/district', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='GradeLevelsResponse', + response_type='DistrictResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_school(self, id, **kwargs): + def get_district_for_section(self, id, **kwargs): """ - Returns a specific school + Returns the district for a section This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_school(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_section(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: SchoolResponse + :return: DistrictResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_school_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_district_for_section_with_http_info(id, **kwargs) else: - (data) = self.get_school_with_http_info(id, **kwargs) + (data) = self.get_district_for_section_with_http_info(id, **kwargs) return data - def get_school_with_http_info(self, id, **kwargs): + def get_district_for_section_with_http_info(self, id, **kwargs): """ - Returns a specific school + Returns the district for a section This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_school_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_section_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: SchoolResponse + :return: DistrictResponse If the method is called asynchronously, returns the request thread. """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1497,13 +1397,13 @@ def get_school_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_school" % key + " to method get_district_for_section" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_school`") + raise ValueError("Missing the required parameter `id` when calling `get_district_for_section`") collection_formats = {} @@ -1527,67 +1427,59 @@ def get_school_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/schools/{id}', 'GET', + return self.api_client.call_api('/sections/{id}/district', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='SchoolResponse', + response_type='DistrictResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_school_admin(self, id, **kwargs): + def get_district_for_student(self, id, **kwargs): """ - Returns a specific school admin + Returns the district for a student This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_school_admin(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_student(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: SchoolAdminResponse + :return: DistrictResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_school_admin_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_district_for_student_with_http_info(id, **kwargs) else: - (data) = self.get_school_admin_with_http_info(id, **kwargs) + (data) = self.get_district_for_student_with_http_info(id, **kwargs) return data - def get_school_admin_with_http_info(self, id, **kwargs): + def get_district_for_student_with_http_info(self, id, **kwargs): """ - Returns a specific school admin + Returns the district for a student This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_school_admin_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_student_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: SchoolAdminResponse + :return: DistrictResponse If the method is called asynchronously, returns the request thread. """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1597,13 +1489,13 @@ def get_school_admin_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_school_admin" % key + " to method get_district_for_student" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_school_admin`") + raise ValueError("Missing the required parameter `id` when calling `get_district_for_student`") collection_formats = {} @@ -1627,71 +1519,515 @@ def get_school_admin_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/school_admins/{id}', 'GET', + return self.api_client.call_api('/students/{id}/district', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='SchoolAdminResponse', + response_type='DistrictResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_school_admins(self, **kwargs): + def get_district_for_teacher(self, id, **kwargs): """ - Returns a list of school admins + Returns the district for a teacher This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_school_admins(callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_teacher(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) - :param int limit: - :param str starting_after: - :param str ending_before: - :return: SchoolAdminsResponse + :param async bool + :param str id: (required) + :return: DistrictResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_school_admins_with_http_info(**kwargs) + if kwargs.get('async'): + return self.get_district_for_teacher_with_http_info(id, **kwargs) else: - (data) = self.get_school_admins_with_http_info(**kwargs) + (data) = self.get_district_for_teacher_with_http_info(id, **kwargs) return data - def get_school_admins_with_http_info(self, **kwargs): + def get_district_for_teacher_with_http_info(self, id, **kwargs): """ - Returns a list of school admins + Returns the district for a teacher This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_school_admins_with_http_info(callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_teacher_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) - :param int limit: - :param str starting_after: - :param str ending_before: - :return: SchoolAdminsResponse + :param async bool + :param str id: (required) + :return: DistrictResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['limit', 'starting_after', 'ending_before'] - all_params.append('callback') + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_district_for_teacher" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_district_for_teacher`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/teachers/{id}/district', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DistrictResponse', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_district_for_term(self, id, **kwargs): + """ + Returns the district for a term + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_term(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: DistrictResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_district_for_term_with_http_info(id, **kwargs) + else: + (data) = self.get_district_for_term_with_http_info(id, **kwargs) + return data + + def get_district_for_term_with_http_info(self, id, **kwargs): + """ + Returns the district for a term + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_district_for_term_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: DistrictResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_district_for_term" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_district_for_term`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/terms/{id}/district', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DistrictResponse', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_districts(self, **kwargs): + """ + Returns a list of districts + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_districts(async=True) + >>> result = thread.get() + + :param async bool + :return: DistrictsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_districts_with_http_info(**kwargs) + else: + (data) = self.get_districts_with_http_info(**kwargs) + return data + + def get_districts_with_http_info(self, **kwargs): + """ + Returns a list of districts + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_districts_with_http_info(async=True) + >>> result = thread.get() + + :param async bool + :return: DistrictsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_districts" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/districts', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DistrictsResponse', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_school(self, id, **kwargs): + """ + Returns a specific school + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_school(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: SchoolResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_school_with_http_info(id, **kwargs) + else: + (data) = self.get_school_with_http_info(id, **kwargs) + return data + + def get_school_with_http_info(self, id, **kwargs): + """ + Returns a specific school + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_school_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: SchoolResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_school" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_school`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/schools/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SchoolResponse', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_school_admin(self, id, **kwargs): + """ + Returns a specific school admin + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_school_admin(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: SchoolAdminResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_school_admin_with_http_info(id, **kwargs) + else: + (data) = self.get_school_admin_with_http_info(id, **kwargs) + return data + + def get_school_admin_with_http_info(self, id, **kwargs): + """ + Returns a specific school admin + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_school_admin_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: SchoolAdminResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_school_admin" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_school_admin`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/school_admins/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SchoolAdminResponse', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_school_admins(self, **kwargs): + """ + Returns a list of school admins + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_school_admins(async=True) + >>> result = thread.get() + + :param async bool + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SchoolAdminsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_school_admins_with_http_info(**kwargs) + else: + (data) = self.get_school_admins_with_http_info(**kwargs) + return data + + def get_school_admins_with_http_info(self, **kwargs): + """ + Returns a list of school admins + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_school_admins_with_http_info(async=True) + >>> result = thread.get() + + :param async bool + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SchoolAdminsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['limit', 'starting_after', 'ending_before'] + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1732,67 +2068,438 @@ def get_school_admins_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/school_admins', 'GET', + return self.api_client.call_api('/school_admins', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SchoolAdminsResponse', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_school_for_section(self, id, **kwargs): + """ + Returns the school for a section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_school_for_section(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: SchoolResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_school_for_section_with_http_info(id, **kwargs) + else: + (data) = self.get_school_for_section_with_http_info(id, **kwargs) + return data + + def get_school_for_section_with_http_info(self, id, **kwargs): + """ + Returns the school for a section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_school_for_section_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: SchoolResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_school_for_section" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_school_for_section`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/sections/{id}/school', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SchoolResponse', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_school_for_student(self, id, **kwargs): + """ + Returns the primary school for a student + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_school_for_student(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: SchoolResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_school_for_student_with_http_info(id, **kwargs) + else: + (data) = self.get_school_for_student_with_http_info(id, **kwargs) + return data + + def get_school_for_student_with_http_info(self, id, **kwargs): + """ + Returns the primary school for a student + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_school_for_student_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: SchoolResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_school_for_student" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_school_for_student`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/students/{id}/school', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SchoolResponse', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_school_for_teacher(self, id, **kwargs): + """ + Retrieves school info for a teacher. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_school_for_teacher(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: SchoolResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_school_for_teacher_with_http_info(id, **kwargs) + else: + (data) = self.get_school_for_teacher_with_http_info(id, **kwargs) + return data + + def get_school_for_teacher_with_http_info(self, id, **kwargs): + """ + Retrieves school info for a teacher. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_school_for_teacher_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: SchoolResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_school_for_teacher" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_school_for_teacher`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/teachers/{id}/school', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SchoolResponse', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_schools(self, **kwargs): + """ + Returns a list of schools + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_schools(async=True) + >>> result = thread.get() + + :param async bool + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SchoolsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_schools_with_http_info(**kwargs) + else: + (data) = self.get_schools_with_http_info(**kwargs) + return data + + def get_schools_with_http_info(self, **kwargs): + """ + Returns a list of schools + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_schools_with_http_info(async=True) + >>> result = thread.get() + + :param async bool + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SchoolsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['limit', 'starting_after', 'ending_before'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_schools" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/schools', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='SchoolAdminsResponse', + response_type='SchoolsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_school_for_section(self, id, **kwargs): + def get_schools_for_school_admin(self, id, **kwargs): """ - Returns the school for a section + Returns the schools for a school admin This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_school_for_section(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_schools_for_school_admin(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: SchoolResponse + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SchoolsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_school_for_section_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_schools_for_school_admin_with_http_info(id, **kwargs) else: - (data) = self.get_school_for_section_with_http_info(id, **kwargs) + (data) = self.get_schools_for_school_admin_with_http_info(id, **kwargs) return data - def get_school_for_section_with_http_info(self, id, **kwargs): + def get_schools_for_school_admin_with_http_info(self, id, **kwargs): """ - Returns the school for a section + Returns the schools for a school admin This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_school_for_section_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_schools_for_school_admin_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: SchoolResponse + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SchoolsResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] - all_params.append('callback') + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1802,13 +2509,13 @@ def get_school_for_section_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_school_for_section" % key + " to method get_schools_for_school_admin" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_school_for_section`") + raise ValueError("Missing the required parameter `id` when calling `get_schools_for_school_admin`") collection_formats = {} @@ -1818,6 +2525,12 @@ def get_school_for_section_with_http_info(self, id, **kwargs): path_params['id'] = params['id'] query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) header_params = {} @@ -1832,67 +2545,65 @@ def get_school_for_section_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/sections/{id}/school', 'GET', + return self.api_client.call_api('/school_admins/{id}/schools', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='SchoolResponse', + response_type='SchoolsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_school_for_student(self, id, **kwargs): + def get_schools_for_student(self, id, **kwargs): """ - Returns the primary school for a student + Returns the schools for a student This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_school_for_student(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_schools_for_student(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: SchoolResponse + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SchoolsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_school_for_student_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_schools_for_student_with_http_info(id, **kwargs) else: - (data) = self.get_school_for_student_with_http_info(id, **kwargs) + (data) = self.get_schools_for_student_with_http_info(id, **kwargs) return data - def get_school_for_student_with_http_info(self, id, **kwargs): + def get_schools_for_student_with_http_info(self, id, **kwargs): """ - Returns the primary school for a student + Returns the schools for a student This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_school_for_student_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_schools_for_student_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: SchoolResponse + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SchoolsResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] - all_params.append('callback') + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1902,13 +2613,13 @@ def get_school_for_student_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_school_for_student" % key + " to method get_schools_for_student" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_school_for_student`") + raise ValueError("Missing the required parameter `id` when calling `get_schools_for_student`") collection_formats = {} @@ -1918,6 +2629,12 @@ def get_school_for_student_with_http_info(self, id, **kwargs): path_params['id'] = params['id'] query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) header_params = {} @@ -1932,67 +2649,65 @@ def get_school_for_student_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/students/{id}/school', 'GET', + return self.api_client.call_api('/students/{id}/schools', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='SchoolResponse', + response_type='SchoolsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_school_for_teacher(self, id, **kwargs): + def get_schools_for_teacher(self, id, **kwargs): """ - Retrieves school info for a teacher. + Returns the schools for a teacher This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_school_for_teacher(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_schools_for_teacher(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: SchoolResponse + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SchoolsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_school_for_teacher_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_schools_for_teacher_with_http_info(id, **kwargs) else: - (data) = self.get_school_for_teacher_with_http_info(id, **kwargs) + (data) = self.get_schools_for_teacher_with_http_info(id, **kwargs) return data - def get_school_for_teacher_with_http_info(self, id, **kwargs): + def get_schools_for_teacher_with_http_info(self, id, **kwargs): """ - Retrieves school info for a teacher. + Returns the schools for a teacher This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_school_for_teacher_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_schools_for_teacher_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: SchoolResponse + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SchoolsResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] - all_params.append('callback') + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2002,13 +2717,13 @@ def get_school_for_teacher_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_school_for_teacher" % key + " to method get_schools_for_teacher" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_school_for_teacher`") + raise ValueError("Missing the required parameter `id` when calling `get_schools_for_teacher`") collection_formats = {} @@ -2018,6 +2733,12 @@ def get_school_for_teacher_with_http_info(self, id, **kwargs): path_params['id'] = params['id'] query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) header_params = {} @@ -2032,71 +2753,59 @@ def get_school_for_teacher_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/teachers/{id}/school', 'GET', + return self.api_client.call_api('/teachers/{id}/schools', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='SchoolResponse', + response_type='SchoolsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_schools(self, **kwargs): + def get_section(self, id, **kwargs): """ - Returns a list of schools + Returns a specific section This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_schools(callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_section(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) - :param int limit: - :param str starting_after: - :param str ending_before: - :return: SchoolsResponse + :param async bool + :param str id: (required) + :return: SectionResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_schools_with_http_info(**kwargs) + if kwargs.get('async'): + return self.get_section_with_http_info(id, **kwargs) else: - (data) = self.get_schools_with_http_info(**kwargs) + (data) = self.get_section_with_http_info(id, **kwargs) return data - def get_schools_with_http_info(self, **kwargs): + def get_section_with_http_info(self, id, **kwargs): """ - Returns a list of schools + Returns a specific section This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_schools_with_http_info(callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_section_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) - :param int limit: - :param str starting_after: - :param str ending_before: - :return: SchoolsResponse + :param async bool + :param str id: (required) + :return: SectionResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['limit', 'starting_after', 'ending_before'] - all_params.append('callback') + all_params = ['id'] + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2106,23 +2815,22 @@ def get_schools_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_schools" % key + " to method get_section" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_section`") collection_formats = {} path_params = {} + if 'id' in params: + path_params['id'] = params['id'] query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'starting_after' in params: - query_params.append(('starting_after', params['starting_after'])) - if 'ending_before' in params: - query_params.append(('ending_before', params['ending_before'])) header_params = {} @@ -2137,73 +2845,63 @@ def get_schools_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/schools', 'GET', + return self.api_client.call_api('/sections/{id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='SchoolsResponse', + response_type='SectionResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_schools_for_school_admin(self, id, **kwargs): + def get_sections(self, **kwargs): """ - Returns the schools for a school admin + Returns a list of sections This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_schools_for_school_admin(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_sections(async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) + :param async bool :param int limit: :param str starting_after: :param str ending_before: - :return: SchoolsResponse + :return: SectionsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_schools_for_school_admin_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_sections_with_http_info(**kwargs) else: - (data) = self.get_schools_for_school_admin_with_http_info(id, **kwargs) + (data) = self.get_sections_with_http_info(**kwargs) return data - def get_schools_for_school_admin_with_http_info(self, id, **kwargs): + def get_sections_with_http_info(self, **kwargs): """ - Returns the schools for a school admin + Returns a list of sections This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_schools_for_school_admin_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_sections_with_http_info(async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) + :param async bool :param int limit: :param str starting_after: :param str ending_before: - :return: SchoolsResponse + :return: SectionsResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('callback') + all_params = ['limit', 'starting_after', 'ending_before'] + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2213,20 +2911,15 @@ def get_schools_for_school_admin_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_schools_for_school_admin" % key + " to method get_sections" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_schools_for_school_admin`") collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] query_params = [] if 'limit' in params: @@ -2249,67 +2942,65 @@ def get_schools_for_school_admin_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/school_admins/{id}/schools', 'GET', + return self.api_client.call_api('/sections', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='SchoolsResponse', + response_type='SectionsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_section(self, id, **kwargs): + def get_sections_for_course(self, id, **kwargs): """ - Returns a specific section + Returns the sections for a Courses This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_section(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_sections_for_course(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: SectionResponse + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SectionsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_section_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_sections_for_course_with_http_info(id, **kwargs) else: - (data) = self.get_section_with_http_info(id, **kwargs) + (data) = self.get_sections_for_course_with_http_info(id, **kwargs) return data - def get_section_with_http_info(self, id, **kwargs): + def get_sections_for_course_with_http_info(self, id, **kwargs): """ - Returns a specific section + Returns the sections for a Courses This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_section_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_sections_for_course_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) - :return: SectionResponse + :param int limit: + :param str starting_after: + :param str ending_before: + :return: SectionsResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] - all_params.append('callback') + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2319,13 +3010,13 @@ def get_section_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_section" % key + " to method get_sections_for_course" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_section`") + raise ValueError("Missing the required parameter `id` when calling `get_sections_for_course`") collection_formats = {} @@ -2335,6 +3026,12 @@ def get_section_with_http_info(self, id, **kwargs): path_params['id'] = params['id'] query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) header_params = {} @@ -2349,34 +3046,31 @@ def get_section_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/sections/{id}', 'GET', + return self.api_client.call_api('/courses/{id}/sections', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='SectionResponse', + response_type='SectionsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_sections(self, **kwargs): + def get_sections_for_school(self, id, **kwargs): """ - Returns a list of sections + Returns the sections for a school This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_sections(callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_sections_for_school(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool + :param str id: (required) :param int limit: :param str starting_after: :param str ending_before: @@ -2385,25 +3079,22 @@ def get_sections(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_sections_with_http_info(**kwargs) + if kwargs.get('async'): + return self.get_sections_for_school_with_http_info(id, **kwargs) else: - (data) = self.get_sections_with_http_info(**kwargs) + (data) = self.get_sections_for_school_with_http_info(id, **kwargs) return data - def get_sections_with_http_info(self, **kwargs): + def get_sections_for_school_with_http_info(self, id, **kwargs): """ - Returns a list of sections + Returns the sections for a school This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_sections_with_http_info(callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_sections_for_school_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool + :param str id: (required) :param int limit: :param str starting_after: :param str ending_before: @@ -2412,8 +3103,8 @@ def get_sections_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['limit', 'starting_after', 'ending_before'] - all_params.append('callback') + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2423,15 +3114,20 @@ def get_sections_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_sections" % key + " to method get_sections_for_school" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_sections_for_school`") collection_formats = {} path_params = {} + if 'id' in params: + path_params['id'] = params['id'] query_params = [] if 'limit' in params: @@ -2454,7 +3150,7 @@ def get_sections_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/sections', 'GET', + return self.api_client.call_api('/schools/{id}/sections', 'GET', path_params, query_params, header_params, @@ -2463,25 +3159,21 @@ def get_sections_with_http_info(self, **kwargs): files=local_var_files, response_type='SectionsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_sections_for_school(self, id, **kwargs): + def get_sections_for_student(self, id, **kwargs): """ - Returns the sections for a school + Returns the sections for a student This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_sections_for_school(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_sections_for_student(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -2491,25 +3183,21 @@ def get_sections_for_school(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_sections_for_school_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_sections_for_student_with_http_info(id, **kwargs) else: - (data) = self.get_sections_for_school_with_http_info(id, **kwargs) + (data) = self.get_sections_for_student_with_http_info(id, **kwargs) return data - def get_sections_for_school_with_http_info(self, id, **kwargs): + def get_sections_for_student_with_http_info(self, id, **kwargs): """ - Returns the sections for a school + Returns the sections for a student This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_sections_for_school_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_sections_for_student_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -2520,7 +3208,7 @@ def get_sections_for_school_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2530,13 +3218,13 @@ def get_sections_for_school_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_sections_for_school" % key + " to method get_sections_for_student" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_sections_for_school`") + raise ValueError("Missing the required parameter `id` when calling `get_sections_for_student`") collection_formats = {} @@ -2566,7 +3254,7 @@ def get_sections_for_school_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/schools/{id}/sections', 'GET', + return self.api_client.call_api('/students/{id}/sections', 'GET', path_params, query_params, header_params, @@ -2575,25 +3263,21 @@ def get_sections_for_school_with_http_info(self, id, **kwargs): files=local_var_files, response_type='SectionsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_sections_for_student(self, id, **kwargs): + def get_sections_for_teacher(self, id, **kwargs): """ - Returns the sections for a student + Returns the sections for a teacher This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_sections_for_student(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_sections_for_teacher(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -2603,25 +3287,21 @@ def get_sections_for_student(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_sections_for_student_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_sections_for_teacher_with_http_info(id, **kwargs) else: - (data) = self.get_sections_for_student_with_http_info(id, **kwargs) + (data) = self.get_sections_for_teacher_with_http_info(id, **kwargs) return data - def get_sections_for_student_with_http_info(self, id, **kwargs): + def get_sections_for_teacher_with_http_info(self, id, **kwargs): """ - Returns the sections for a student + Returns the sections for a teacher This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_sections_for_student_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_sections_for_teacher_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -2632,7 +3312,7 @@ def get_sections_for_student_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2642,13 +3322,13 @@ def get_sections_for_student_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_sections_for_student" % key + " to method get_sections_for_teacher" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_sections_for_student`") + raise ValueError("Missing the required parameter `id` when calling `get_sections_for_teacher`") collection_formats = {} @@ -2678,7 +3358,7 @@ def get_sections_for_student_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/students/{id}/sections', 'GET', + return self.api_client.call_api('/teachers/{id}/sections', 'GET', path_params, query_params, header_params, @@ -2687,25 +3367,21 @@ def get_sections_for_student_with_http_info(self, id, **kwargs): files=local_var_files, response_type='SectionsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_sections_for_teacher(self, id, **kwargs): + def get_sections_for_term(self, id, **kwargs): """ - Returns the sections for a teacher + Returns the sections for a term This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_sections_for_teacher(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_sections_for_term(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -2715,25 +3391,21 @@ def get_sections_for_teacher(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_sections_for_teacher_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_sections_for_term_with_http_info(id, **kwargs) else: - (data) = self.get_sections_for_teacher_with_http_info(id, **kwargs) + (data) = self.get_sections_for_term_with_http_info(id, **kwargs) return data - def get_sections_for_teacher_with_http_info(self, id, **kwargs): + def get_sections_for_term_with_http_info(self, id, **kwargs): """ - Returns the sections for a teacher + Returns the sections for a term This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_sections_for_teacher_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_sections_for_term_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -2744,7 +3416,7 @@ def get_sections_for_teacher_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2754,13 +3426,13 @@ def get_sections_for_teacher_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_sections_for_teacher" % key + " to method get_sections_for_term" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_sections_for_teacher`") + raise ValueError("Missing the required parameter `id` when calling `get_sections_for_term`") collection_formats = {} @@ -2790,7 +3462,7 @@ def get_sections_for_teacher_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/teachers/{id}/sections', 'GET', + return self.api_client.call_api('/terms/{id}/sections', 'GET', path_params, query_params, header_params, @@ -2799,7 +3471,7 @@ def get_sections_for_teacher_with_http_info(self, id, **kwargs): files=local_var_files, response_type='SectionsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2809,22 +3481,18 @@ def get_student(self, id, **kwargs): """ Returns a specific student This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_student(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_student(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :return: StudentResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_student_with_http_info(id, **kwargs) else: (data) = self.get_student_with_http_info(id, **kwargs) @@ -2834,15 +3502,11 @@ def get_student_with_http_info(self, id, **kwargs): """ Returns a specific student This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_student_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_student_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :return: StudentResponse If the method is called asynchronously, @@ -2850,7 +3514,7 @@ def get_student_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2899,58 +3563,54 @@ def get_student_with_http_info(self, id, **kwargs): files=local_var_files, response_type='StudentResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_student_for_contact(self, id, **kwargs): + def get_students(self, **kwargs): """ - Returns the student for a student contact + Returns a list of students This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_student_for_contact(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_students(async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :return: StudentResponse + :param async bool + :param int limit: + :param str starting_after: + :param str ending_before: + :return: StudentsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_student_for_contact_with_http_info(id, **kwargs) + if kwargs.get('async'): + return self.get_students_with_http_info(**kwargs) else: - (data) = self.get_student_for_contact_with_http_info(id, **kwargs) + (data) = self.get_students_with_http_info(**kwargs) return data - def get_student_for_contact_with_http_info(self, id, **kwargs): + def get_students_with_http_info(self, **kwargs): """ - Returns the student for a student contact + Returns a list of students This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_student_for_contact_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_students_with_http_info(async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :return: StudentResponse + :param async bool + :param int limit: + :param str starting_after: + :param str ending_before: + :return: StudentsResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] - all_params.append('callback') + all_params = ['limit', 'starting_after', 'ending_before'] + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2960,22 +3620,23 @@ def get_student_for_contact_with_http_info(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_student_for_contact" % key + " to method get_students" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_student_for_contact`") collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) header_params = {} @@ -2990,34 +3651,31 @@ def get_student_for_contact_with_http_info(self, id, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/contacts/{id}/student', 'GET', + return self.api_client.call_api('/students', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='StudentResponse', + response_type='StudentsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_students(self, **kwargs): + def get_students_for_contact(self, id, **kwargs): """ - Returns a list of students + Returns the students for a student contact This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_students(callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_students_for_contact(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool + :param str id: (required) :param int limit: :param str starting_after: :param str ending_before: @@ -3026,25 +3684,22 @@ def get_students(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_students_with_http_info(**kwargs) + if kwargs.get('async'): + return self.get_students_for_contact_with_http_info(id, **kwargs) else: - (data) = self.get_students_with_http_info(**kwargs) + (data) = self.get_students_for_contact_with_http_info(id, **kwargs) return data - def get_students_with_http_info(self, **kwargs): + def get_students_for_contact_with_http_info(self, id, **kwargs): """ - Returns a list of students + Returns the students for a student contact This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_students_with_http_info(callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_students_for_contact_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool + :param str id: (required) :param int limit: :param str starting_after: :param str ending_before: @@ -3053,8 +3708,8 @@ def get_students_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['limit', 'starting_after', 'ending_before'] - all_params.append('callback') + all_params = ['id', 'limit', 'starting_after', 'ending_before'] + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3064,15 +3719,20 @@ def get_students_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_students" % key + " to method get_students_for_contact" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_students_for_contact`") collection_formats = {} path_params = {} + if 'id' in params: + path_params['id'] = params['id'] query_params = [] if 'limit' in params: @@ -3095,7 +3755,7 @@ def get_students_with_http_info(self, **kwargs): # Authentication setting auth_settings = ['oauth'] - return self.api_client.call_api('/students', 'GET', + return self.api_client.call_api('/contacts/{id}/students', 'GET', path_params, query_params, header_params, @@ -3104,7 +3764,7 @@ def get_students_with_http_info(self, **kwargs): files=local_var_files, response_type='StudentsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3114,15 +3774,11 @@ def get_students_for_school(self, id, **kwargs): """ Returns the students for a school This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_students_for_school(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_students_for_school(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -3132,7 +3788,7 @@ def get_students_for_school(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_students_for_school_with_http_info(id, **kwargs) else: (data) = self.get_students_for_school_with_http_info(id, **kwargs) @@ -3142,15 +3798,11 @@ def get_students_for_school_with_http_info(self, id, **kwargs): """ Returns the students for a school This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_students_for_school_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_students_for_school_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -3161,7 +3813,7 @@ def get_students_for_school_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3216,7 +3868,7 @@ def get_students_for_school_with_http_info(self, id, **kwargs): files=local_var_files, response_type='StudentsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3226,15 +3878,11 @@ def get_students_for_section(self, id, **kwargs): """ Returns the students for a section This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_students_for_section(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_students_for_section(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -3244,7 +3892,7 @@ def get_students_for_section(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_students_for_section_with_http_info(id, **kwargs) else: (data) = self.get_students_for_section_with_http_info(id, **kwargs) @@ -3254,15 +3902,11 @@ def get_students_for_section_with_http_info(self, id, **kwargs): """ Returns the students for a section This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_students_for_section_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_students_for_section_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -3273,7 +3917,7 @@ def get_students_for_section_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3328,7 +3972,7 @@ def get_students_for_section_with_http_info(self, id, **kwargs): files=local_var_files, response_type='StudentsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3338,15 +3982,11 @@ def get_students_for_teacher(self, id, **kwargs): """ Returns the students for a teacher This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_students_for_teacher(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_students_for_teacher(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -3356,7 +3996,7 @@ def get_students_for_teacher(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_students_for_teacher_with_http_info(id, **kwargs) else: (data) = self.get_students_for_teacher_with_http_info(id, **kwargs) @@ -3366,15 +4006,11 @@ def get_students_for_teacher_with_http_info(self, id, **kwargs): """ Returns the students for a teacher This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_students_for_teacher_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_students_for_teacher_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -3385,7 +4021,7 @@ def get_students_for_teacher_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3440,7 +4076,7 @@ def get_students_for_teacher_with_http_info(self, id, **kwargs): files=local_var_files, response_type='StudentsResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3450,22 +4086,18 @@ def get_teacher(self, id, **kwargs): """ Returns a specific teacher This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_teacher(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_teacher(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :return: TeacherResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_teacher_with_http_info(id, **kwargs) else: (data) = self.get_teacher_with_http_info(id, **kwargs) @@ -3475,15 +4107,11 @@ def get_teacher_with_http_info(self, id, **kwargs): """ Returns a specific teacher This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_teacher_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_teacher_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :return: TeacherResponse If the method is called asynchronously, @@ -3491,7 +4119,7 @@ def get_teacher_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3540,7 +4168,7 @@ def get_teacher_with_http_info(self, id, **kwargs): files=local_var_files, response_type='TeacherResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3550,22 +4178,18 @@ def get_teacher_for_section(self, id, **kwargs): """ Returns the primary teacher for a section This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_teacher_for_section(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_teacher_for_section(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :return: TeacherResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_teacher_for_section_with_http_info(id, **kwargs) else: (data) = self.get_teacher_for_section_with_http_info(id, **kwargs) @@ -3575,15 +4199,11 @@ def get_teacher_for_section_with_http_info(self, id, **kwargs): """ Returns the primary teacher for a section This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_teacher_for_section_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_teacher_for_section_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :return: TeacherResponse If the method is called asynchronously, @@ -3591,7 +4211,7 @@ def get_teacher_for_section_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3640,7 +4260,7 @@ def get_teacher_for_section_with_http_info(self, id, **kwargs): files=local_var_files, response_type='TeacherResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3650,15 +4270,11 @@ def get_teachers(self, **kwargs): """ Returns a list of teachers This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_teachers(callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_teachers(async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param int limit: :param str starting_after: :param str ending_before: @@ -3667,7 +4283,7 @@ def get_teachers(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_teachers_with_http_info(**kwargs) else: (data) = self.get_teachers_with_http_info(**kwargs) @@ -3677,15 +4293,11 @@ def get_teachers_with_http_info(self, **kwargs): """ Returns a list of teachers This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_teachers_with_http_info(callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_teachers_with_http_info(async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param int limit: :param str starting_after: :param str ending_before: @@ -3695,7 +4307,7 @@ def get_teachers_with_http_info(self, **kwargs): """ all_params = ['limit', 'starting_after', 'ending_before'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3745,7 +4357,7 @@ def get_teachers_with_http_info(self, **kwargs): files=local_var_files, response_type='TeachersResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3755,15 +4367,11 @@ def get_teachers_for_school(self, id, **kwargs): """ Returns the teachers for a school This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_teachers_for_school(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_teachers_for_school(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -3773,7 +4381,7 @@ def get_teachers_for_school(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_teachers_for_school_with_http_info(id, **kwargs) else: (data) = self.get_teachers_for_school_with_http_info(id, **kwargs) @@ -3783,15 +4391,11 @@ def get_teachers_for_school_with_http_info(self, id, **kwargs): """ Returns the teachers for a school This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_teachers_for_school_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_teachers_for_school_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -3802,7 +4406,7 @@ def get_teachers_for_school_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3857,7 +4461,7 @@ def get_teachers_for_school_with_http_info(self, id, **kwargs): files=local_var_files, response_type='TeachersResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3867,15 +4471,11 @@ def get_teachers_for_section(self, id, **kwargs): """ Returns the teachers for a section This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_teachers_for_section(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_teachers_for_section(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -3885,7 +4485,7 @@ def get_teachers_for_section(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_teachers_for_section_with_http_info(id, **kwargs) else: (data) = self.get_teachers_for_section_with_http_info(id, **kwargs) @@ -3895,15 +4495,11 @@ def get_teachers_for_section_with_http_info(self, id, **kwargs): """ Returns the teachers for a section This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_teachers_for_section_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_teachers_for_section_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -3914,7 +4510,7 @@ def get_teachers_for_section_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3969,7 +4565,7 @@ def get_teachers_for_section_with_http_info(self, id, **kwargs): files=local_var_files, response_type='TeachersResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3979,15 +4575,11 @@ def get_teachers_for_student(self, id, **kwargs): """ Returns the teachers for a student This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_teachers_for_student(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_teachers_for_student(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -3997,7 +4589,7 @@ def get_teachers_for_student(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_teachers_for_student_with_http_info(id, **kwargs) else: (data) = self.get_teachers_for_student_with_http_info(id, **kwargs) @@ -4007,15 +4599,11 @@ def get_teachers_for_student_with_http_info(self, id, **kwargs): """ Returns the teachers for a student This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_teachers_for_student_with_http_info(id, callback=callback_function) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_teachers_for_student_with_http_info(id, async=True) + >>> result = thread.get() - :param callback function: The callback function - for asynchronous request. (optional) + :param async bool :param str id: (required) :param int limit: :param str starting_after: @@ -4026,7 +4614,7 @@ def get_teachers_for_student_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4081,7 +4669,288 @@ def get_teachers_for_student_with_http_info(self, id, **kwargs): files=local_var_files, response_type='TeachersResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_term(self, id, **kwargs): + """ + Returns a specific term + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_term(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: TermResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_term_with_http_info(id, **kwargs) + else: + (data) = self.get_term_with_http_info(id, **kwargs) + return data + + def get_term_with_http_info(self, id, **kwargs): + """ + Returns a specific term + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_term_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: TermResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_term" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_term`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/terms/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TermResponse', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_term_for_section(self, id, **kwargs): + """ + Returns the term for a section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_term_for_section(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: TermResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_term_for_section_with_http_info(id, **kwargs) + else: + (data) = self.get_term_for_section_with_http_info(id, **kwargs) + return data + + def get_term_for_section_with_http_info(self, id, **kwargs): + """ + Returns the term for a section + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_term_for_section_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool + :param str id: (required) + :return: TermResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_term_for_section" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_term_for_section`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/sections/{id}/term', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TermResponse', + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_terms(self, **kwargs): + """ + Returns a list of terms + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_terms(async=True) + >>> result = thread.get() + + :param async bool + :param int limit: + :param str starting_after: + :param str ending_before: + :return: TermsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_terms_with_http_info(**kwargs) + else: + (data) = self.get_terms_with_http_info(**kwargs) + return data + + def get_terms_with_http_info(self, **kwargs): + """ + Returns a list of terms + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_terms_with_http_info(async=True) + >>> result = thread.get() + + :param async bool + :param int limit: + :param str starting_after: + :param str ending_before: + :return: TermsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['limit', 'starting_after', 'ending_before'] + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_terms" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'starting_after' in params: + query_params.append(('starting_after', params['starting_after'])) + if 'ending_before' in params: + query_params.append(('ending_before', params['ending_before'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = ['oauth'] + + return self.api_client.call_api('/terms', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TermsResponse', + auth_settings=auth_settings, + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/clever/apis/events_api.py b/clever/apis/events_api.py index cc6acb8..9b23c61 100644 --- a/clever/apis/events_api.py +++ b/clever/apis/events_api.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -20,7 +20,6 @@ # python 2 and python 3 compatibility library from six import iteritems -from ..configuration import Configuration from ..api_client import ApiClient @@ -32,34 +31,26 @@ class EventsApi(object): """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client def get_event(self, id, **kwargs): """ Returns the specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_event(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_event(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: EventResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_event_with_http_info(id, **kwargs) else: (data) = self.get_event_with_http_info(id, **kwargs) @@ -69,15 +60,11 @@ def get_event_with_http_info(self, id, **kwargs): """ Returns the specific event This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_event_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_event_with_http_info(id, async=True) + >>> result = thread.get() + + :param async bool :param str id: (required) :return: EventResponse If the method is called asynchronously, @@ -85,7 +72,7 @@ def get_event_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('callback') + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -134,7 +121,7 @@ def get_event_with_http_info(self, id, **kwargs): files=local_var_files, response_type='EventResponse', auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -144,24 +131,22 @@ def get_events(self, **kwargs): """ Returns a list of events This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_events(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_events(async=True) + >>> result = thread.get() + + :param async bool :param int limit: :param str starting_after: :param str ending_before: + :param str school: + :param list[str] record_type: :return: EventsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): + if kwargs.get('async'): return self.get_events_with_http_info(**kwargs) else: (data) = self.get_events_with_http_info(**kwargs) @@ -171,25 +156,23 @@ def get_events_with_http_info(self, **kwargs): """ Returns a list of events This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_events_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async=True + >>> thread = api.get_events_with_http_info(async=True) + >>> result = thread.get() + + :param async bool :param int limit: :param str starting_after: :param str ending_before: + :param str school: + :param list[str] record_type: :return: EventsResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['limit', 'starting_after', 'ending_before'] - all_params.append('callback') + all_params = ['limit', 'starting_after', 'ending_before', 'school', 'record_type'] + all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -216,6 +199,11 @@ def get_events_with_http_info(self, **kwargs): query_params.append(('starting_after', params['starting_after'])) if 'ending_before' in params: query_params.append(('ending_before', params['ending_before'])) + if 'school' in params: + query_params.append(('school', params['school'])) + if 'record_type' in params: + query_params.append(('record_type', params['record_type'])) + collection_formats['record_type'] = 'multi' header_params = {} @@ -239,567 +227,7 @@ def get_events_with_http_info(self, **kwargs): files=local_var_files, response_type='EventsResponse', auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_events_for_school(self, id, **kwargs): - """ - Returns a list of events for a school - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_events_for_school(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :param int limit: - :param str starting_after: - :param str ending_before: - :return: EventsResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_events_for_school_with_http_info(id, **kwargs) - else: - (data) = self.get_events_for_school_with_http_info(id, **kwargs) - return data - - def get_events_for_school_with_http_info(self, id, **kwargs): - """ - Returns a list of events for a school - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_events_for_school_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :param int limit: - :param str starting_after: - :param str ending_before: - :return: EventsResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_events_for_school" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_events_for_school`") - - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] - - query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'starting_after' in params: - query_params.append(('starting_after', params['starting_after'])) - if 'ending_before' in params: - query_params.append(('ending_before', params['ending_before'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # Authentication setting - auth_settings = ['oauth'] - - return self.api_client.call_api('/schools/{id}/events', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='EventsResponse', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_events_for_school_admin(self, id, **kwargs): - """ - Returns a list of events for a school admin - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_events_for_school_admin(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :param int limit: - :param str starting_after: - :param str ending_before: - :return: EventsResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_events_for_school_admin_with_http_info(id, **kwargs) - else: - (data) = self.get_events_for_school_admin_with_http_info(id, **kwargs) - return data - - def get_events_for_school_admin_with_http_info(self, id, **kwargs): - """ - Returns a list of events for a school admin - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_events_for_school_admin_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :param int limit: - :param str starting_after: - :param str ending_before: - :return: EventsResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_events_for_school_admin" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_events_for_school_admin`") - - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] - - query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'starting_after' in params: - query_params.append(('starting_after', params['starting_after'])) - if 'ending_before' in params: - query_params.append(('ending_before', params['ending_before'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # Authentication setting - auth_settings = ['oauth'] - - return self.api_client.call_api('/school_admins/{id}/events', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='EventsResponse', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_events_for_section(self, id, **kwargs): - """ - Returns a list of events for a section - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_events_for_section(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :param int limit: - :param str starting_after: - :param str ending_before: - :return: EventsResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_events_for_section_with_http_info(id, **kwargs) - else: - (data) = self.get_events_for_section_with_http_info(id, **kwargs) - return data - - def get_events_for_section_with_http_info(self, id, **kwargs): - """ - Returns a list of events for a section - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_events_for_section_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :param int limit: - :param str starting_after: - :param str ending_before: - :return: EventsResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_events_for_section" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_events_for_section`") - - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] - - query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'starting_after' in params: - query_params.append(('starting_after', params['starting_after'])) - if 'ending_before' in params: - query_params.append(('ending_before', params['ending_before'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # Authentication setting - auth_settings = ['oauth'] - - return self.api_client.call_api('/sections/{id}/events', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='EventsResponse', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_events_for_student(self, id, **kwargs): - """ - Returns a list of events for a student - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_events_for_student(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :param int limit: - :param str starting_after: - :param str ending_before: - :return: EventsResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_events_for_student_with_http_info(id, **kwargs) - else: - (data) = self.get_events_for_student_with_http_info(id, **kwargs) - return data - - def get_events_for_student_with_http_info(self, id, **kwargs): - """ - Returns a list of events for a student - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_events_for_student_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :param int limit: - :param str starting_after: - :param str ending_before: - :return: EventsResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_events_for_student" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_events_for_student`") - - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] - - query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'starting_after' in params: - query_params.append(('starting_after', params['starting_after'])) - if 'ending_before' in params: - query_params.append(('ending_before', params['ending_before'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # Authentication setting - auth_settings = ['oauth'] - - return self.api_client.call_api('/students/{id}/events', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='EventsResponse', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_events_for_teacher(self, id, **kwargs): - """ - Returns a list of events for a teacher - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_events_for_teacher(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :param int limit: - :param str starting_after: - :param str ending_before: - :return: EventsResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_events_for_teacher_with_http_info(id, **kwargs) - else: - (data) = self.get_events_for_teacher_with_http_info(id, **kwargs) - return data - - def get_events_for_teacher_with_http_info(self, id, **kwargs): - """ - Returns a list of events for a teacher - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_events_for_teacher_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :param int limit: - :param str starting_after: - :param str ending_before: - :return: EventsResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_events_for_teacher" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_events_for_teacher`") - - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] - - query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'starting_after' in params: - query_params.append(('starting_after', params['starting_after'])) - if 'ending_before' in params: - query_params.append(('ending_before', params['ending_before'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # Authentication setting - auth_settings = ['oauth'] - - return self.api_client.call_api('/teachers/{id}/events', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='EventsResponse', - auth_settings=auth_settings, - callback=params.get('callback'), + async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/clever/configuration.py b/clever/configuration.py index df118c6..967d912 100644 --- a/clever/configuration.py +++ b/clever/configuration.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -15,25 +15,30 @@ import urllib3 -import sys +import copy import logging +import multiprocessing +import sys from six import iteritems +from six import with_metaclass from six.moves import http_client as httplib +class TypeWithDefault(type): + def __init__(cls, name, bases, dct): + super(TypeWithDefault, cls).__init__(name, bases, dct) + cls._default = None -def singleton(cls, *args, **kw): - instances = {} + def __call__(cls): + if cls._default == None: + cls._default = type.__call__(cls) + return copy.copy(cls._default) - def _singleton(): - if cls not in instances: - instances[cls] = cls(*args, **kw) - return instances[cls] - return _singleton + def set_default(cls, default): + cls._default = copy.copy(default) -@singleton -class Configuration(object): +class Configuration(with_metaclass(TypeWithDefault, object)): """ NOTE: This class is auto generated by the swagger code generator program. Ref: https://github.com/swagger-api/swagger-codegen @@ -45,9 +50,7 @@ def __init__(self): Constructor """ # Default Base url - self.host = "https://api.clever.com/v1.2" - # Default api client - self.api_client = None + self.host = "https://api.clever.com/v2.0" # Temp file folder for downloading files self.temp_folder_path = None @@ -88,6 +91,16 @@ def __init__(self): self.cert_file = None # client key file self.key_file = None + # Set this to True/False to enable/disable SSL hostname verification. + self.assert_hostname = None + + # urllib3 connection pool's maximum number of connections saved + # per pool. urllib3 uses 1 connection as default value, but this is + # not the best value when you are making a lot of possibly parallel + # requests to the same host, which is often the case here. + # cpu_count * 5 is used as default value to increase performance. + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + # Proxy URL self.proxy = None @@ -230,6 +243,6 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.2.0\n"\ + "Version of the API: 2.0.0\n"\ "SDK Package Version: 3.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/clever/models/__init__.py b/clever/models/__init__.py index 68df31d..a911f26 100644 --- a/clever/models/__init__.py +++ b/clever/models/__init__.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -15,21 +15,26 @@ # import models into model package from .bad_request import BadRequest +from .contact import Contact +from .contact_object import ContactObject +from .contact_response import ContactResponse +from .contacts_response import ContactsResponse +from .course import Course +from .course_object import CourseObject +from .course_response import CourseResponse +from .courses_response import CoursesResponse from .credentials import Credentials from .district import District from .district_admin import DistrictAdmin +from .district_admin_object import DistrictAdminObject from .district_admin_response import DistrictAdminResponse from .district_admins_response import DistrictAdminsResponse from .district_object import DistrictObject from .district_response import DistrictResponse -from .district_status import DistrictStatus -from .district_status_response import DistrictStatusResponse -from .district_status_responses import DistrictStatusResponses from .districts_response import DistrictsResponse from .event import Event from .event_response import EventResponse from .events_response import EventsResponse -from .grade_levels_response import GradeLevelsResponse from .internal_error import InternalError from .location import Location from .name import Name @@ -48,11 +53,6 @@ from .section_response import SectionResponse from .sections_response import SectionsResponse from .student import Student -from .student_contact import StudentContact -from .student_contact_object import StudentContactObject -from .student_contact_response import StudentContactResponse -from .student_contacts_for_student_response import StudentContactsForStudentResponse -from .student_contacts_response import StudentContactsResponse from .student_object import StudentObject from .student_response import StudentResponse from .students_response import StudentsResponse @@ -61,6 +61,18 @@ from .teacher_response import TeacherResponse from .teachers_response import TeachersResponse from .term import Term +from .term_object import TermObject +from .term_response import TermResponse +from .terms_response import TermsResponse +from .contacts_created import ContactsCreated +from .contacts_deleted import ContactsDeleted +from .contacts_updated import ContactsUpdated +from .courses_created import CoursesCreated +from .courses_deleted import CoursesDeleted +from .courses_updated import CoursesUpdated +from .districtadmins_created import DistrictadminsCreated +from .districtadmins_deleted import DistrictadminsDeleted +from .districtadmins_updated import DistrictadminsUpdated from .districts_created import DistrictsCreated from .districts_deleted import DistrictsDeleted from .districts_updated import DistrictsUpdated @@ -73,12 +85,12 @@ from .sections_created import SectionsCreated from .sections_deleted import SectionsDeleted from .sections_updated import SectionsUpdated -from .studentcontacts_created import StudentcontactsCreated -from .studentcontacts_deleted import StudentcontactsDeleted -from .studentcontacts_updated import StudentcontactsUpdated from .students_created import StudentsCreated from .students_deleted import StudentsDeleted from .students_updated import StudentsUpdated from .teachers_created import TeachersCreated from .teachers_deleted import TeachersDeleted from .teachers_updated import TeachersUpdated +from .terms_created import TermsCreated +from .terms_deleted import TermsDeleted +from .terms_updated import TermsUpdated diff --git a/clever/models/bad_request.py b/clever/models/bad_request.py index cf5366b..8a45f0a 100644 --- a/clever/models/bad_request.py +++ b/clever/models/bad_request.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, message=None): """ self._message = None + self.discriminator = None if message is not None: self.message = message diff --git a/clever/models/student_contact.py b/clever/models/contact.py similarity index 63% rename from clever/models/student_contact.py rename to clever/models/contact.py index 5fbeda0..1e5d91e 100644 --- a/clever/models/student_contact.py +++ b/clever/models/contact.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class StudentContact(object): +class Contact(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -39,7 +39,7 @@ class StudentContact(object): 'phone_type': 'str', 'relationship': 'str', 'sis_id': 'str', - 'student': 'str', + 'students': 'list[str]', 'type': 'str' } @@ -52,13 +52,13 @@ class StudentContact(object): 'phone_type': 'phone_type', 'relationship': 'relationship', 'sis_id': 'sis_id', - 'student': 'student', + 'students': 'students', 'type': 'type' } - def __init__(self, district=None, email=None, id=None, name=None, phone=None, phone_type=None, relationship=None, sis_id=None, student=None, type=None): + def __init__(self, district=None, email=None, id=None, name=None, phone=None, phone_type=None, relationship=None, sis_id=None, students=None, type=None): """ - StudentContact - a model defined in Swagger + Contact - a model defined in Swagger """ self._district = None @@ -69,8 +69,9 @@ def __init__(self, district=None, email=None, id=None, name=None, phone=None, ph self._phone_type = None self._relationship = None self._sis_id = None - self._student = None + self._students = None self._type = None + self.discriminator = None if district is not None: self.district = district @@ -88,17 +89,17 @@ def __init__(self, district=None, email=None, id=None, name=None, phone=None, ph self.relationship = relationship if sis_id is not None: self.sis_id = sis_id - if student is not None: - self.student = student + if students is not None: + self.students = students if type is not None: self.type = type @property def district(self): """ - Gets the district of this StudentContact. + Gets the district of this Contact. - :return: The district of this StudentContact. + :return: The district of this Contact. :rtype: str """ return self._district @@ -106,9 +107,9 @@ def district(self): @district.setter def district(self, district): """ - Sets the district of this StudentContact. + Sets the district of this Contact. - :param district: The district of this StudentContact. + :param district: The district of this Contact. :type: str """ @@ -117,9 +118,9 @@ def district(self, district): @property def email(self): """ - Gets the email of this StudentContact. + Gets the email of this Contact. - :return: The email of this StudentContact. + :return: The email of this Contact. :rtype: str """ return self._email @@ -127,9 +128,9 @@ def email(self): @email.setter def email(self, email): """ - Sets the email of this StudentContact. + Sets the email of this Contact. - :param email: The email of this StudentContact. + :param email: The email of this Contact. :type: str """ @@ -138,9 +139,9 @@ def email(self, email): @property def id(self): """ - Gets the id of this StudentContact. + Gets the id of this Contact. - :return: The id of this StudentContact. + :return: The id of this Contact. :rtype: str """ return self._id @@ -148,9 +149,9 @@ def id(self): @id.setter def id(self, id): """ - Sets the id of this StudentContact. + Sets the id of this Contact. - :param id: The id of this StudentContact. + :param id: The id of this Contact. :type: str """ @@ -159,9 +160,9 @@ def id(self, id): @property def name(self): """ - Gets the name of this StudentContact. + Gets the name of this Contact. - :return: The name of this StudentContact. + :return: The name of this Contact. :rtype: str """ return self._name @@ -169,9 +170,9 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this StudentContact. + Sets the name of this Contact. - :param name: The name of this StudentContact. + :param name: The name of this Contact. :type: str """ @@ -180,9 +181,9 @@ def name(self, name): @property def phone(self): """ - Gets the phone of this StudentContact. + Gets the phone of this Contact. - :return: The phone of this StudentContact. + :return: The phone of this Contact. :rtype: str """ return self._phone @@ -190,9 +191,9 @@ def phone(self): @phone.setter def phone(self, phone): """ - Sets the phone of this StudentContact. + Sets the phone of this Contact. - :param phone: The phone of this StudentContact. + :param phone: The phone of this Contact. :type: str """ @@ -201,9 +202,9 @@ def phone(self, phone): @property def phone_type(self): """ - Gets the phone_type of this StudentContact. + Gets the phone_type of this Contact. - :return: The phone_type of this StudentContact. + :return: The phone_type of this Contact. :rtype: str """ return self._phone_type @@ -211,20 +212,26 @@ def phone_type(self): @phone_type.setter def phone_type(self, phone_type): """ - Sets the phone_type of this StudentContact. + Sets the phone_type of this Contact. - :param phone_type: The phone_type of this StudentContact. + :param phone_type: The phone_type of this Contact. :type: str """ + allowed_values = ["Cell", "Home", "Work", "Other", ""] + if phone_type not in allowed_values: + raise ValueError( + "Invalid value for `phone_type` ({0}), must be one of {1}" + .format(phone_type, allowed_values) + ) self._phone_type = phone_type @property def relationship(self): """ - Gets the relationship of this StudentContact. + Gets the relationship of this Contact. - :return: The relationship of this StudentContact. + :return: The relationship of this Contact. :rtype: str """ return self._relationship @@ -232,20 +239,26 @@ def relationship(self): @relationship.setter def relationship(self, relationship): """ - Sets the relationship of this StudentContact. + Sets the relationship of this Contact. - :param relationship: The relationship of this StudentContact. + :param relationship: The relationship of this Contact. :type: str """ + allowed_values = ["Parent", "Grandparent", "Self", "Aunt/Uncle", "Sibling", "Other", ""] + if relationship not in allowed_values: + raise ValueError( + "Invalid value for `relationship` ({0}), must be one of {1}" + .format(relationship, allowed_values) + ) self._relationship = relationship @property def sis_id(self): """ - Gets the sis_id of this StudentContact. + Gets the sis_id of this Contact. - :return: The sis_id of this StudentContact. + :return: The sis_id of this Contact. :rtype: str """ return self._sis_id @@ -253,41 +266,41 @@ def sis_id(self): @sis_id.setter def sis_id(self, sis_id): """ - Sets the sis_id of this StudentContact. + Sets the sis_id of this Contact. - :param sis_id: The sis_id of this StudentContact. + :param sis_id: The sis_id of this Contact. :type: str """ self._sis_id = sis_id @property - def student(self): + def students(self): """ - Gets the student of this StudentContact. + Gets the students of this Contact. - :return: The student of this StudentContact. - :rtype: str + :return: The students of this Contact. + :rtype: list[str] """ - return self._student + return self._students - @student.setter - def student(self, student): + @students.setter + def students(self, students): """ - Sets the student of this StudentContact. + Sets the students of this Contact. - :param student: The student of this StudentContact. - :type: str + :param students: The students of this Contact. + :type: list[str] """ - self._student = student + self._students = students @property def type(self): """ - Gets the type of this StudentContact. + Gets the type of this Contact. - :return: The type of this StudentContact. + :return: The type of this Contact. :rtype: str """ return self._type @@ -295,11 +308,17 @@ def type(self): @type.setter def type(self, type): """ - Sets the type of this StudentContact. + Sets the type of this Contact. - :param type: The type of this StudentContact. + :param type: The type of this Contact. :type: str """ + allowed_values = ["Parent/Guardian", "Emergency", "Primary", "Secondary", "Family", "Other", ""] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" + .format(type, allowed_values) + ) self._type = type @@ -345,7 +364,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, StudentContact): + if not isinstance(other, Contact): return False return self.__dict__ == other.__dict__ diff --git a/clever/models/student_contact_object.py b/clever/models/contact_object.py similarity index 82% rename from clever/models/student_contact_object.py rename to clever/models/contact_object.py index a6c3aa5..c55486f 100644 --- a/clever/models/student_contact_object.py +++ b/clever/models/contact_object.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class StudentContactObject(object): +class ContactObject(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class StudentContactObject(object): and the value is json key in definition. """ swagger_types = { - 'object': 'StudentContact' + 'object': 'Contact' } attribute_map = { @@ -40,10 +40,11 @@ class StudentContactObject(object): def __init__(self, object=None): """ - StudentContactObject - a model defined in Swagger + ContactObject - a model defined in Swagger """ self._object = None + self.discriminator = None if object is not None: self.object = object @@ -51,20 +52,20 @@ def __init__(self, object=None): @property def object(self): """ - Gets the object of this StudentContactObject. + Gets the object of this ContactObject. - :return: The object of this StudentContactObject. - :rtype: StudentContact + :return: The object of this ContactObject. + :rtype: Contact """ return self._object @object.setter def object(self, object): """ - Sets the object of this StudentContactObject. + Sets the object of this ContactObject. - :param object: The object of this StudentContactObject. - :type: StudentContact + :param object: The object of this ContactObject. + :type: Contact """ self._object = object @@ -111,7 +112,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, StudentContactObject): + if not isinstance(other, ContactObject): return False return self.__dict__ == other.__dict__ diff --git a/clever/models/grade_levels_response.py b/clever/models/contact_response.py similarity index 83% rename from clever/models/grade_levels_response.py rename to clever/models/contact_response.py index 32fce55..6478f6c 100644 --- a/clever/models/grade_levels_response.py +++ b/clever/models/contact_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class GradeLevelsResponse(object): +class ContactResponse(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class GradeLevelsResponse(object): and the value is json key in definition. """ swagger_types = { - 'data': 'list[str]' + 'data': 'Contact' } attribute_map = { @@ -40,10 +40,11 @@ class GradeLevelsResponse(object): def __init__(self, data=None): """ - GradeLevelsResponse - a model defined in Swagger + ContactResponse - a model defined in Swagger """ self._data = None + self.discriminator = None if data is not None: self.data = data @@ -51,20 +52,20 @@ def __init__(self, data=None): @property def data(self): """ - Gets the data of this GradeLevelsResponse. + Gets the data of this ContactResponse. - :return: The data of this GradeLevelsResponse. - :rtype: list[str] + :return: The data of this ContactResponse. + :rtype: Contact """ return self._data @data.setter def data(self, data): """ - Sets the data of this GradeLevelsResponse. + Sets the data of this ContactResponse. - :param data: The data of this GradeLevelsResponse. - :type: list[str] + :param data: The data of this ContactResponse. + :type: Contact """ self._data = data @@ -111,7 +112,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, GradeLevelsResponse): + if not isinstance(other, ContactResponse): return False return self.__dict__ == other.__dict__ diff --git a/clever/models/contacts_created.py b/clever/models/contacts_created.py new file mode 100644 index 0000000..0c073e9 --- /dev/null +++ b/clever/models/contacts_created.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class ContactsCreated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'ContactObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + ContactsCreated - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this ContactsCreated. + + :return: The data of this ContactsCreated. + :rtype: ContactObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this ContactsCreated. + + :param data: The data of this ContactsCreated. + :type: ContactObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ContactsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/clever/models/contacts_deleted.py b/clever/models/contacts_deleted.py new file mode 100644 index 0000000..807ac14 --- /dev/null +++ b/clever/models/contacts_deleted.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class ContactsDeleted(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'ContactObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + ContactsDeleted - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this ContactsDeleted. + + :return: The data of this ContactsDeleted. + :rtype: ContactObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this ContactsDeleted. + + :param data: The data of this ContactsDeleted. + :type: ContactObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ContactsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/clever/models/district_status_responses.py b/clever/models/contacts_response.py similarity index 81% rename from clever/models/district_status_responses.py rename to clever/models/contacts_response.py index c3207b0..fdc4acf 100644 --- a/clever/models/district_status_responses.py +++ b/clever/models/contacts_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class DistrictStatusResponses(object): +class ContactsResponse(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class DistrictStatusResponses(object): and the value is json key in definition. """ swagger_types = { - 'data': 'list[DistrictStatusResponse]' + 'data': 'list[ContactResponse]' } attribute_map = { @@ -40,10 +40,11 @@ class DistrictStatusResponses(object): def __init__(self, data=None): """ - DistrictStatusResponses - a model defined in Swagger + ContactsResponse - a model defined in Swagger """ self._data = None + self.discriminator = None if data is not None: self.data = data @@ -51,20 +52,20 @@ def __init__(self, data=None): @property def data(self): """ - Gets the data of this DistrictStatusResponses. + Gets the data of this ContactsResponse. - :return: The data of this DistrictStatusResponses. - :rtype: list[DistrictStatusResponse] + :return: The data of this ContactsResponse. + :rtype: list[ContactResponse] """ return self._data @data.setter def data(self, data): """ - Sets the data of this DistrictStatusResponses. + Sets the data of this ContactsResponse. - :param data: The data of this DistrictStatusResponses. - :type: list[DistrictStatusResponse] + :param data: The data of this ContactsResponse. + :type: list[ContactResponse] """ self._data = data @@ -111,7 +112,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, DistrictStatusResponses): + if not isinstance(other, ContactsResponse): return False return self.__dict__ == other.__dict__ diff --git a/clever/models/contacts_updated.py b/clever/models/contacts_updated.py new file mode 100644 index 0000000..b2fc235 --- /dev/null +++ b/clever/models/contacts_updated.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class ContactsUpdated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'ContactObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + ContactsUpdated - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this ContactsUpdated. + + :return: The data of this ContactsUpdated. + :rtype: ContactObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this ContactsUpdated. + + :param data: The data of this ContactsUpdated. + :type: ContactObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ContactsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/clever/models/student_contacts_for_student_response.py b/clever/models/course.py similarity index 55% rename from clever/models/student_contacts_for_student_response.py rename to clever/models/course.py index b7f232b..30b6794 100644 --- a/clever/models/student_contacts_for_student_response.py +++ b/clever/models/course.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class StudentContactsForStudentResponse(object): +class Course(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,43 +31,96 @@ class StudentContactsForStudentResponse(object): and the value is json key in definition. """ swagger_types = { - 'data': 'list[StudentContact]' + 'id': 'str', + 'name': 'str', + 'number': 'str' } attribute_map = { - 'data': 'data' + 'id': 'id', + 'name': 'name', + 'number': 'number' } - def __init__(self, data=None): + def __init__(self, id=None, name=None, number=None): """ - StudentContactsForStudentResponse - a model defined in Swagger + Course - a model defined in Swagger """ - self._data = None + self._id = None + self._name = None + self._number = None + self.discriminator = None - if data is not None: - self.data = data + if id is not None: + self.id = id + if name is not None: + self.name = name + if number is not None: + self.number = number @property - def data(self): + def id(self): """ - Gets the data of this StudentContactsForStudentResponse. + Gets the id of this Course. - :return: The data of this StudentContactsForStudentResponse. - :rtype: list[StudentContact] + :return: The id of this Course. + :rtype: str """ - return self._data + return self._id - @data.setter - def data(self, data): + @id.setter + def id(self, id): """ - Sets the data of this StudentContactsForStudentResponse. + Sets the id of this Course. - :param data: The data of this StudentContactsForStudentResponse. - :type: list[StudentContact] + :param id: The id of this Course. + :type: str """ - self._data = data + self._id = id + + @property + def name(self): + """ + Gets the name of this Course. + + :return: The name of this Course. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this Course. + + :param name: The name of this Course. + :type: str + """ + + self._name = name + + @property + def number(self): + """ + Gets the number of this Course. + + :return: The number of this Course. + :rtype: str + """ + return self._number + + @number.setter + def number(self, number): + """ + Sets the number of this Course. + + :param number: The number of this Course. + :type: str + """ + + self._number = number def to_dict(self): """ @@ -111,7 +164,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, StudentContactsForStudentResponse): + if not isinstance(other, Course): return False return self.__dict__ == other.__dict__ diff --git a/clever/models/course_object.py b/clever/models/course_object.py new file mode 100644 index 0000000..d923aa1 --- /dev/null +++ b/clever/models/course_object.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CourseObject(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'object': 'Course' + } + + attribute_map = { + 'object': 'object' + } + + def __init__(self, object=None): + """ + CourseObject - a model defined in Swagger + """ + + self._object = None + self.discriminator = None + + if object is not None: + self.object = object + + @property + def object(self): + """ + Gets the object of this CourseObject. + + :return: The object of this CourseObject. + :rtype: Course + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this CourseObject. + + :param object: The object of this CourseObject. + :type: Course + """ + + self._object = object + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CourseObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/clever/models/student_contact_response.py b/clever/models/course_response.py similarity index 82% rename from clever/models/student_contact_response.py rename to clever/models/course_response.py index 062bf96..83af89b 100644 --- a/clever/models/student_contact_response.py +++ b/clever/models/course_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class StudentContactResponse(object): +class CourseResponse(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class StudentContactResponse(object): and the value is json key in definition. """ swagger_types = { - 'data': 'StudentContact' + 'data': 'Course' } attribute_map = { @@ -40,10 +40,11 @@ class StudentContactResponse(object): def __init__(self, data=None): """ - StudentContactResponse - a model defined in Swagger + CourseResponse - a model defined in Swagger """ self._data = None + self.discriminator = None if data is not None: self.data = data @@ -51,20 +52,20 @@ def __init__(self, data=None): @property def data(self): """ - Gets the data of this StudentContactResponse. + Gets the data of this CourseResponse. - :return: The data of this StudentContactResponse. - :rtype: StudentContact + :return: The data of this CourseResponse. + :rtype: Course """ return self._data @data.setter def data(self, data): """ - Sets the data of this StudentContactResponse. + Sets the data of this CourseResponse. - :param data: The data of this StudentContactResponse. - :type: StudentContact + :param data: The data of this CourseResponse. + :type: Course """ self._data = data @@ -111,7 +112,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, StudentContactResponse): + if not isinstance(other, CourseResponse): return False return self.__dict__ == other.__dict__ diff --git a/clever/models/courses_created.py b/clever/models/courses_created.py new file mode 100644 index 0000000..035cb9e --- /dev/null +++ b/clever/models/courses_created.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class CoursesCreated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'CourseObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + CoursesCreated - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this CoursesCreated. + + :return: The data of this CoursesCreated. + :rtype: CourseObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this CoursesCreated. + + :param data: The data of this CoursesCreated. + :type: CourseObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CoursesCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/clever/models/courses_deleted.py b/clever/models/courses_deleted.py new file mode 100644 index 0000000..581c37a --- /dev/null +++ b/clever/models/courses_deleted.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class CoursesDeleted(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'CourseObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + CoursesDeleted - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this CoursesDeleted. + + :return: The data of this CoursesDeleted. + :rtype: CourseObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this CoursesDeleted. + + :param data: The data of this CoursesDeleted. + :type: CourseObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CoursesDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/clever/models/courses_response.py b/clever/models/courses_response.py new file mode 100644 index 0000000..c1a1562 --- /dev/null +++ b/clever/models/courses_response.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CoursesResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'list[CourseResponse]' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + CoursesResponse - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this CoursesResponse. + + :return: The data of this CoursesResponse. + :rtype: list[CourseResponse] + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this CoursesResponse. + + :param data: The data of this CoursesResponse. + :type: list[CourseResponse] + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CoursesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/clever/models/courses_updated.py b/clever/models/courses_updated.py new file mode 100644 index 0000000..e8b8da7 --- /dev/null +++ b/clever/models/courses_updated.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class CoursesUpdated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'CourseObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + CoursesUpdated - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this CoursesUpdated. + + :return: The data of this CoursesUpdated. + :rtype: CourseObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this CoursesUpdated. + + :param data: The data of this CoursesUpdated. + :type: CourseObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CoursesUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/clever/models/credentials.py b/clever/models/credentials.py index 0d62efb..5566354 100644 --- a/clever/models/credentials.py +++ b/clever/models/credentials.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, district_username=None): """ self._district_username = None + self.discriminator = None if district_username is not None: self.district_username = district_username diff --git a/clever/models/district.py b/clever/models/district.py index fdf1769..400760e 100644 --- a/clever/models/district.py +++ b/clever/models/district.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,32 +31,94 @@ class District(object): and the value is json key in definition. """ swagger_types = { + 'error': 'str', 'id': 'str', + 'last_sync': 'str', + 'launch_date': 'str', 'mdr_number': 'str', - 'name': 'str' + 'name': 'str', + 'nces_id': 'str', + 'pause_end': 'str', + 'pause_start': 'str', + 'sis_type': 'str', + 'state': 'str' } attribute_map = { + 'error': 'error', 'id': 'id', + 'last_sync': 'last_sync', + 'launch_date': 'launch_date', 'mdr_number': 'mdr_number', - 'name': 'name' + 'name': 'name', + 'nces_id': 'nces_id', + 'pause_end': 'pause_end', + 'pause_start': 'pause_start', + 'sis_type': 'sis_type', + 'state': 'state' } - def __init__(self, id=None, mdr_number=None, name=None): + def __init__(self, error=None, id=None, last_sync=None, launch_date=None, mdr_number=None, name=None, nces_id=None, pause_end=None, pause_start=None, sis_type=None, state=None): """ District - a model defined in Swagger """ + self._error = None self._id = None + self._last_sync = None + self._launch_date = None self._mdr_number = None self._name = None - + self._nces_id = None + self._pause_end = None + self._pause_start = None + self._sis_type = None + self._state = None + self.discriminator = None + + if error is not None: + self.error = error if id is not None: self.id = id + if last_sync is not None: + self.last_sync = last_sync + if launch_date is not None: + self.launch_date = launch_date if mdr_number is not None: self.mdr_number = mdr_number if name is not None: self.name = name + if nces_id is not None: + self.nces_id = nces_id + if pause_end is not None: + self.pause_end = pause_end + if pause_start is not None: + self.pause_start = pause_start + if sis_type is not None: + self.sis_type = sis_type + if state is not None: + self.state = state + + @property + def error(self): + """ + Gets the error of this District. + + :return: The error of this District. + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """ + Sets the error of this District. + + :param error: The error of this District. + :type: str + """ + + self._error = error @property def id(self): @@ -79,6 +141,48 @@ def id(self, id): self._id = id + @property + def last_sync(self): + """ + Gets the last_sync of this District. + + :return: The last_sync of this District. + :rtype: str + """ + return self._last_sync + + @last_sync.setter + def last_sync(self, last_sync): + """ + Sets the last_sync of this District. + + :param last_sync: The last_sync of this District. + :type: str + """ + + self._last_sync = last_sync + + @property + def launch_date(self): + """ + Gets the launch_date of this District. + + :return: The launch_date of this District. + :rtype: str + """ + return self._launch_date + + @launch_date.setter + def launch_date(self, launch_date): + """ + Sets the launch_date of this District. + + :param launch_date: The launch_date of this District. + :type: str + """ + + self._launch_date = launch_date + @property def mdr_number(self): """ @@ -121,6 +225,117 @@ def name(self, name): self._name = name + @property + def nces_id(self): + """ + Gets the nces_id of this District. + + :return: The nces_id of this District. + :rtype: str + """ + return self._nces_id + + @nces_id.setter + def nces_id(self, nces_id): + """ + Sets the nces_id of this District. + + :param nces_id: The nces_id of this District. + :type: str + """ + + self._nces_id = nces_id + + @property + def pause_end(self): + """ + Gets the pause_end of this District. + + :return: The pause_end of this District. + :rtype: str + """ + return self._pause_end + + @pause_end.setter + def pause_end(self, pause_end): + """ + Sets the pause_end of this District. + + :param pause_end: The pause_end of this District. + :type: str + """ + + self._pause_end = pause_end + + @property + def pause_start(self): + """ + Gets the pause_start of this District. + + :return: The pause_start of this District. + :rtype: str + """ + return self._pause_start + + @pause_start.setter + def pause_start(self, pause_start): + """ + Sets the pause_start of this District. + + :param pause_start: The pause_start of this District. + :type: str + """ + + self._pause_start = pause_start + + @property + def sis_type(self): + """ + Gets the sis_type of this District. + + :return: The sis_type of this District. + :rtype: str + """ + return self._sis_type + + @sis_type.setter + def sis_type(self, sis_type): + """ + Sets the sis_type of this District. + + :param sis_type: The sis_type of this District. + :type: str + """ + + self._sis_type = sis_type + + @property + def state(self): + """ + Gets the state of this District. + + :return: The state of this District. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this District. + + :param state: The state of this District. + :type: str + """ + allowed_values = ["running", "pending", "error", "paused"] + if state not in allowed_values: + raise ValueError( + "Invalid value for `state` ({0}), must be one of {1}" + .format(state, allowed_values) + ) + + self._state = state + def to_dict(self): """ Returns the model properties as a dict diff --git a/clever/models/district_admin.py b/clever/models/district_admin.py index 4da6dfe..28d07e5 100644 --- a/clever/models/district_admin.py +++ b/clever/models/district_admin.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -56,6 +56,7 @@ def __init__(self, district=None, email=None, id=None, name=None, title=None): self._id = None self._name = None self._title = None + self.discriminator = None if district is not None: self.district = district diff --git a/clever/models/district_admin_object.py b/clever/models/district_admin_object.py new file mode 100644 index 0000000..1d277c1 --- /dev/null +++ b/clever/models/district_admin_object.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DistrictAdminObject(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'object': 'DistrictAdmin' + } + + attribute_map = { + 'object': 'object' + } + + def __init__(self, object=None): + """ + DistrictAdminObject - a model defined in Swagger + """ + + self._object = None + self.discriminator = None + + if object is not None: + self.object = object + + @property + def object(self): + """ + Gets the object of this DistrictAdminObject. + + :return: The object of this DistrictAdminObject. + :rtype: DistrictAdmin + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this DistrictAdminObject. + + :param object: The object of this DistrictAdminObject. + :type: DistrictAdmin + """ + + self._object = object + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictAdminObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/clever/models/district_admin_response.py b/clever/models/district_admin_response.py index bac70a8..f355d62 100644 --- a/clever/models/district_admin_response.py +++ b/clever/models/district_admin_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, data=None): """ self._data = None + self.discriminator = None if data is not None: self.data = data diff --git a/clever/models/district_admins_response.py b/clever/models/district_admins_response.py index e71e0b0..5b2e12b 100644 --- a/clever/models/district_admins_response.py +++ b/clever/models/district_admins_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,7 +31,7 @@ class DistrictAdminsResponse(object): and the value is json key in definition. """ swagger_types = { - 'data': 'list[DistrictAdmin]' + 'data': 'list[DistrictAdminResponse]' } attribute_map = { @@ -44,6 +44,7 @@ def __init__(self, data=None): """ self._data = None + self.discriminator = None if data is not None: self.data = data @@ -54,7 +55,7 @@ def data(self): Gets the data of this DistrictAdminsResponse. :return: The data of this DistrictAdminsResponse. - :rtype: list[DistrictAdmin] + :rtype: list[DistrictAdminResponse] """ return self._data @@ -64,7 +65,7 @@ def data(self, data): Sets the data of this DistrictAdminsResponse. :param data: The data of this DistrictAdminsResponse. - :type: list[DistrictAdmin] + :type: list[DistrictAdminResponse] """ self._data = data diff --git a/clever/models/district_object.py b/clever/models/district_object.py index 6d34b96..5f021da 100644 --- a/clever/models/district_object.py +++ b/clever/models/district_object.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, object=None): """ self._object = None + self.discriminator = None if object is not None: self.object = object diff --git a/clever/models/district_response.py b/clever/models/district_response.py index 8eb3bb5..8503634 100644 --- a/clever/models/district_response.py +++ b/clever/models/district_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, data=None): """ self._data = None + self.discriminator = None if data is not None: self.data = data diff --git a/clever/models/district_status.py b/clever/models/district_status.py deleted file mode 100644 index c38aa83..0000000 --- a/clever/models/district_status.py +++ /dev/null @@ -1,311 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class DistrictStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'error': 'str', - 'id': 'str', - 'last_sync': 'str', - 'launch_date': 'str', - 'pause_end': 'str', - 'pause_start': 'str', - 'sis_type': 'str', - 'state': 'str' - } - - attribute_map = { - 'error': 'error', - 'id': 'id', - 'last_sync': 'last_sync', - 'launch_date': 'launch_date', - 'pause_end': 'pause_end', - 'pause_start': 'pause_start', - 'sis_type': 'sis_type', - 'state': 'state' - } - - def __init__(self, error=None, id=None, last_sync=None, launch_date=None, pause_end=None, pause_start=None, sis_type=None, state=None): - """ - DistrictStatus - a model defined in Swagger - """ - - self._error = None - self._id = None - self._last_sync = None - self._launch_date = None - self._pause_end = None - self._pause_start = None - self._sis_type = None - self._state = None - - if error is not None: - self.error = error - if id is not None: - self.id = id - if last_sync is not None: - self.last_sync = last_sync - if launch_date is not None: - self.launch_date = launch_date - if pause_end is not None: - self.pause_end = pause_end - if pause_start is not None: - self.pause_start = pause_start - if sis_type is not None: - self.sis_type = sis_type - if state is not None: - self.state = state - - @property - def error(self): - """ - Gets the error of this DistrictStatus. - - :return: The error of this DistrictStatus. - :rtype: str - """ - return self._error - - @error.setter - def error(self, error): - """ - Sets the error of this DistrictStatus. - - :param error: The error of this DistrictStatus. - :type: str - """ - - self._error = error - - @property - def id(self): - """ - Gets the id of this DistrictStatus. - - :return: The id of this DistrictStatus. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this DistrictStatus. - - :param id: The id of this DistrictStatus. - :type: str - """ - - self._id = id - - @property - def last_sync(self): - """ - Gets the last_sync of this DistrictStatus. - - :return: The last_sync of this DistrictStatus. - :rtype: str - """ - return self._last_sync - - @last_sync.setter - def last_sync(self, last_sync): - """ - Sets the last_sync of this DistrictStatus. - - :param last_sync: The last_sync of this DistrictStatus. - :type: str - """ - - self._last_sync = last_sync - - @property - def launch_date(self): - """ - Gets the launch_date of this DistrictStatus. - - :return: The launch_date of this DistrictStatus. - :rtype: str - """ - return self._launch_date - - @launch_date.setter - def launch_date(self, launch_date): - """ - Sets the launch_date of this DistrictStatus. - - :param launch_date: The launch_date of this DistrictStatus. - :type: str - """ - - self._launch_date = launch_date - - @property - def pause_end(self): - """ - Gets the pause_end of this DistrictStatus. - - :return: The pause_end of this DistrictStatus. - :rtype: str - """ - return self._pause_end - - @pause_end.setter - def pause_end(self, pause_end): - """ - Sets the pause_end of this DistrictStatus. - - :param pause_end: The pause_end of this DistrictStatus. - :type: str - """ - - self._pause_end = pause_end - - @property - def pause_start(self): - """ - Gets the pause_start of this DistrictStatus. - - :return: The pause_start of this DistrictStatus. - :rtype: str - """ - return self._pause_start - - @pause_start.setter - def pause_start(self, pause_start): - """ - Sets the pause_start of this DistrictStatus. - - :param pause_start: The pause_start of this DistrictStatus. - :type: str - """ - - self._pause_start = pause_start - - @property - def sis_type(self): - """ - Gets the sis_type of this DistrictStatus. - - :return: The sis_type of this DistrictStatus. - :rtype: str - """ - return self._sis_type - - @sis_type.setter - def sis_type(self, sis_type): - """ - Sets the sis_type of this DistrictStatus. - - :param sis_type: The sis_type of this DistrictStatus. - :type: str - """ - - self._sis_type = sis_type - - @property - def state(self): - """ - Gets the state of this DistrictStatus. - - :return: The state of this DistrictStatus. - :rtype: str - """ - return self._state - - @state.setter - def state(self, state): - """ - Sets the state of this DistrictStatus. - - :param state: The state of this DistrictStatus. - :type: str - """ - allowed_values = ["running", "pending", "error", "paused"] - if state not in allowed_values: - raise ValueError( - "Invalid value for `state` ({0}), must be one of {1}" - .format(state, allowed_values) - ) - - self._state = state - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, DistrictStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/clever/models/districtadmins_created.py b/clever/models/districtadmins_created.py new file mode 100644 index 0000000..d156cd7 --- /dev/null +++ b/clever/models/districtadmins_created.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class DistrictadminsCreated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'DistrictAdminObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + DistrictadminsCreated - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this DistrictadminsCreated. + + :return: The data of this DistrictadminsCreated. + :rtype: DistrictAdminObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictadminsCreated. + + :param data: The data of this DistrictadminsCreated. + :type: DistrictAdminObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictadminsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/clever/models/districtadmins_deleted.py b/clever/models/districtadmins_deleted.py new file mode 100644 index 0000000..8760700 --- /dev/null +++ b/clever/models/districtadmins_deleted.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class DistrictadminsDeleted(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'DistrictAdminObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + DistrictadminsDeleted - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this DistrictadminsDeleted. + + :return: The data of this DistrictadminsDeleted. + :rtype: DistrictAdminObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictadminsDeleted. + + :param data: The data of this DistrictadminsDeleted. + :type: DistrictAdminObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictadminsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/clever/models/districtadmins_updated.py b/clever/models/districtadmins_updated.py new file mode 100644 index 0000000..33a1007 --- /dev/null +++ b/clever/models/districtadmins_updated.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class DistrictadminsUpdated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'DistrictAdminObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + DistrictadminsUpdated - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this DistrictadminsUpdated. + + :return: The data of this DistrictadminsUpdated. + :rtype: DistrictAdminObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this DistrictadminsUpdated. + + :param data: The data of this DistrictadminsUpdated. + :type: DistrictAdminObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DistrictadminsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/clever/models/districts_created.py b/clever/models/districts_created.py index 6a35562..bffa0ca 100644 --- a/clever/models/districts_created.py +++ b/clever/models/districts_created.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class DistrictsCreated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class DistrictsCreated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'DistrictObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ DistrictsCreated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this DistrictsCreated. - - :return: The created of this DistrictsCreated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this DistrictsCreated. - - :param created: The created of this DistrictsCreated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this DistrictsCreated. - - :return: The id of this DistrictsCreated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this DistrictsCreated. - - :param id: The id of this DistrictsCreated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this DistrictsCreated. - - :return: The type of this DistrictsCreated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this DistrictsCreated. - - :param type: The type of this DistrictsCreated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/districts_deleted.py b/clever/models/districts_deleted.py index 6c4cb77..5d1fd95 100644 --- a/clever/models/districts_deleted.py +++ b/clever/models/districts_deleted.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class DistrictsDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class DistrictsDeleted(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'DistrictObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ DistrictsDeleted - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this DistrictsDeleted. - - :return: The created of this DistrictsDeleted. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this DistrictsDeleted. - - :param created: The created of this DistrictsDeleted. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this DistrictsDeleted. - - :return: The id of this DistrictsDeleted. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this DistrictsDeleted. - - :param id: The id of this DistrictsDeleted. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this DistrictsDeleted. - - :return: The type of this DistrictsDeleted. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this DistrictsDeleted. - - :param type: The type of this DistrictsDeleted. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/districts_response.py b/clever/models/districts_response.py index c2e3e43..87bc697 100644 --- a/clever/models/districts_response.py +++ b/clever/models/districts_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, data=None): """ self._data = None + self.discriminator = None if data is not None: self.data = data diff --git a/clever/models/districts_updated.py b/clever/models/districts_updated.py index ea0f981..0319156 100644 --- a/clever/models/districts_updated.py +++ b/clever/models/districts_updated.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class DistrictsUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class DistrictsUpdated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'DistrictObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ DistrictsUpdated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this DistrictsUpdated. - - :return: The created of this DistrictsUpdated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this DistrictsUpdated. - - :param created: The created of this DistrictsUpdated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this DistrictsUpdated. - - :return: The id of this DistrictsUpdated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this DistrictsUpdated. - - :param id: The id of this DistrictsUpdated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this DistrictsUpdated. - - :return: The type of this DistrictsUpdated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this DistrictsUpdated. - - :param type: The type of this DistrictsUpdated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/event.py b/clever/models/event.py index 5479e4c..f62812d 100644 --- a/clever/models/event.py +++ b/clever/models/event.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,6 +42,39 @@ class Event(object): 'type': 'type' } + discriminator_value_class_map = { + '': 'DistrictsUpdated', + '': 'TermsCreated', + '': 'DistrictsDeleted', + '': 'SchooladminsCreated', + '': 'TeachersUpdated', + '': 'ContactsUpdated', + '': 'TermsDeleted', + '': 'TeachersDeleted', + '': 'TermsUpdated', + '': 'ContactsDeleted', + '': 'DistrictsCreated', + '': 'DistrictadminsDeleted', + '': 'SectionsCreated', + '': 'SchooladminsDeleted', + '': 'CoursesCreated', + '': 'StudentsDeleted', + '': 'SchoolsCreated', + '': 'CoursesDeleted', + '': 'CoursesUpdated', + '': 'DistrictadminsCreated', + '': 'SectionsDeleted', + '': 'SectionsUpdated', + '': 'SchoolsDeleted', + '': 'ContactsCreated', + '': 'TeachersCreated', + '': 'SchoolsUpdated', + '': 'StudentsCreated', + '': 'SchooladminsUpdated', + '': 'StudentsUpdated', + '': 'DistrictadminsUpdated' + } + def __init__(self, created=None, id=None, type=None): """ Event - a model defined in Swagger @@ -50,6 +83,7 @@ def __init__(self, created=None, id=None, type=None): self._created = None self._id = None self._type = None + self.discriminator = 'type' if created is not None: self.created = created @@ -122,6 +156,16 @@ def type(self, type): self._type = type + def get_real_child_model(self, data): + """ + Returns the real base class specified by the discriminator + """ + discriminator_value = data[self.discriminator].lower() + if self.discriminator_value_class_map.has_key(discriminator_value): + return self.discriminator_value_class_map[discriminator_value] + else: + return None + def to_dict(self): """ Returns the model properties as a dict diff --git a/clever/models/event_response.py b/clever/models/event_response.py index a92b279..921739d 100644 --- a/clever/models/event_response.py +++ b/clever/models/event_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, data=None): """ self._data = None + self.discriminator = None if data is not None: self.data = data diff --git a/clever/models/events_response.py b/clever/models/events_response.py index 62c2f9a..08d1062 100644 --- a/clever/models/events_response.py +++ b/clever/models/events_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, data=None): """ self._data = None + self.discriminator = None if data is not None: self.data = data diff --git a/clever/models/internal_error.py b/clever/models/internal_error.py index 0f323c7..bc33fe2 100644 --- a/clever/models/internal_error.py +++ b/clever/models/internal_error.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, message=None): """ self._message = None + self.discriminator = None if message is not None: self.message = message diff --git a/clever/models/location.py b/clever/models/location.py index 8c96bd1..e96a61f 100644 --- a/clever/models/location.py +++ b/clever/models/location.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -59,6 +59,7 @@ def __init__(self, address=None, city=None, lat=None, lon=None, state=None, zip= self._lon = None self._state = None self._zip = None + self.discriminator = None if address is not None: self.address = address diff --git a/clever/models/name.py b/clever/models/name.py index 941e24b..a691791 100644 --- a/clever/models/name.py +++ b/clever/models/name.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -50,6 +50,7 @@ def __init__(self, first=None, last=None, middle=None): self._first = None self._last = None self._middle = None + self.discriminator = None if first is not None: self.first = first diff --git a/clever/models/not_found.py b/clever/models/not_found.py index 9955de7..5b4df50 100644 --- a/clever/models/not_found.py +++ b/clever/models/not_found.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, message=None): """ self._message = None + self.discriminator = None if message is not None: self.message = message diff --git a/clever/models/principal.py b/clever/models/principal.py index 6b6f5c8..c09c8d7 100644 --- a/clever/models/principal.py +++ b/clever/models/principal.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -47,6 +47,7 @@ def __init__(self, email=None, name=None): self._email = None self._name = None + self.discriminator = None if email is not None: self.email = email diff --git a/clever/models/school.py b/clever/models/school.py index c992e3f..b373a0c 100644 --- a/clever/models/school.py +++ b/clever/models/school.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -86,6 +86,7 @@ def __init__(self, created=None, district=None, high_grade=None, id=None, last_m self._school_number = None self._sis_id = None self._state_id = None + self.discriminator = None if created is not None: self.created = created diff --git a/clever/models/school_admin.py b/clever/models/school_admin.py index d75310d..1a6a48f 100644 --- a/clever/models/school_admin.py +++ b/clever/models/school_admin.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -65,6 +65,7 @@ def __init__(self, credentials=None, district=None, email=None, id=None, name=No self._schools = None self._staff_id = None self._title = None + self.discriminator = None if credentials is not None: self.credentials = credentials diff --git a/clever/models/school_admin_object.py b/clever/models/school_admin_object.py index 721d7d8..c20690d 100644 --- a/clever/models/school_admin_object.py +++ b/clever/models/school_admin_object.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, object=None): """ self._object = None + self.discriminator = None if object is not None: self.object = object diff --git a/clever/models/school_admin_response.py b/clever/models/school_admin_response.py index 2941d50..201b256 100644 --- a/clever/models/school_admin_response.py +++ b/clever/models/school_admin_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, data=None): """ self._data = None + self.discriminator = None if data is not None: self.data = data diff --git a/clever/models/school_admins_response.py b/clever/models/school_admins_response.py index a2fc434..f510dab 100644 --- a/clever/models/school_admins_response.py +++ b/clever/models/school_admins_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, data=None): """ self._data = None + self.discriminator = None if data is not None: self.data = data diff --git a/clever/models/school_object.py b/clever/models/school_object.py index 737f711..8ef8696 100644 --- a/clever/models/school_object.py +++ b/clever/models/school_object.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, object=None): """ self._object = None + self.discriminator = None if object is not None: self.object = object diff --git a/clever/models/school_response.py b/clever/models/school_response.py index f0aa0a2..ab154d5 100644 --- a/clever/models/school_response.py +++ b/clever/models/school_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, data=None): """ self._data = None + self.discriminator = None if data is not None: self.data = data diff --git a/clever/models/schooladmins_created.py b/clever/models/schooladmins_created.py index aa5c419..0bed6c1 100644 --- a/clever/models/schooladmins_created.py +++ b/clever/models/schooladmins_created.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class SchooladminsCreated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class SchooladminsCreated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SchoolAdminObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SchooladminsCreated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SchooladminsCreated. - - :return: The created of this SchooladminsCreated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SchooladminsCreated. - - :param created: The created of this SchooladminsCreated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SchooladminsCreated. - - :return: The id of this SchooladminsCreated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SchooladminsCreated. - - :param id: The id of this SchooladminsCreated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SchooladminsCreated. - - :return: The type of this SchooladminsCreated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SchooladminsCreated. - - :param type: The type of this SchooladminsCreated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/schooladmins_deleted.py b/clever/models/schooladmins_deleted.py index 503282e..38d5997 100644 --- a/clever/models/schooladmins_deleted.py +++ b/clever/models/schooladmins_deleted.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class SchooladminsDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class SchooladminsDeleted(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SchoolAdminObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SchooladminsDeleted - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SchooladminsDeleted. - - :return: The created of this SchooladminsDeleted. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SchooladminsDeleted. - - :param created: The created of this SchooladminsDeleted. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SchooladminsDeleted. - - :return: The id of this SchooladminsDeleted. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SchooladminsDeleted. - - :param id: The id of this SchooladminsDeleted. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SchooladminsDeleted. - - :return: The type of this SchooladminsDeleted. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SchooladminsDeleted. - - :param type: The type of this SchooladminsDeleted. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/schooladmins_updated.py b/clever/models/schooladmins_updated.py index 3f2847a..b505d95 100644 --- a/clever/models/schooladmins_updated.py +++ b/clever/models/schooladmins_updated.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class SchooladminsUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class SchooladminsUpdated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SchoolAdminObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SchooladminsUpdated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SchooladminsUpdated. - - :return: The created of this SchooladminsUpdated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SchooladminsUpdated. - - :param created: The created of this SchooladminsUpdated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SchooladminsUpdated. - - :return: The id of this SchooladminsUpdated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SchooladminsUpdated. - - :param id: The id of this SchooladminsUpdated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SchooladminsUpdated. - - :return: The type of this SchooladminsUpdated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SchooladminsUpdated. - - :param type: The type of this SchooladminsUpdated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/schools_created.py b/clever/models/schools_created.py index 5ce64bf..822818e 100644 --- a/clever/models/schools_created.py +++ b/clever/models/schools_created.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,102 +31,24 @@ class SchoolsCreated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SchoolObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SchoolsCreated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SchoolsCreated. - - :return: The created of this SchoolsCreated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SchoolsCreated. - - :param created: The created of this SchoolsCreated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SchoolsCreated. - - :return: The id of this SchoolsCreated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SchoolsCreated. - - :param id: The id of this SchoolsCreated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SchoolsCreated. - - :return: The type of this SchoolsCreated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SchoolsCreated. - - :param type: The type of this SchoolsCreated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/schools_deleted.py b/clever/models/schools_deleted.py index 59570db..f8343a2 100644 --- a/clever/models/schools_deleted.py +++ b/clever/models/schools_deleted.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class SchoolsDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class SchoolsDeleted(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SchoolObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SchoolsDeleted - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SchoolsDeleted. - - :return: The created of this SchoolsDeleted. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SchoolsDeleted. - - :param created: The created of this SchoolsDeleted. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SchoolsDeleted. - - :return: The id of this SchoolsDeleted. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SchoolsDeleted. - - :param id: The id of this SchoolsDeleted. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SchoolsDeleted. - - :return: The type of this SchoolsDeleted. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SchoolsDeleted. - - :param type: The type of this SchoolsDeleted. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/schools_response.py b/clever/models/schools_response.py index d2a553f..3f0a1e0 100644 --- a/clever/models/schools_response.py +++ b/clever/models/schools_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, data=None): """ self._data = None + self.discriminator = None if data is not None: self.data = data diff --git a/clever/models/schools_updated.py b/clever/models/schools_updated.py index 5423629..40b5365 100644 --- a/clever/models/schools_updated.py +++ b/clever/models/schools_updated.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class SchoolsUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class SchoolsUpdated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SchoolObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SchoolsUpdated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SchoolsUpdated. - - :return: The created of this SchoolsUpdated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SchoolsUpdated. - - :param created: The created of this SchoolsUpdated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SchoolsUpdated. - - :return: The id of this SchoolsUpdated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SchoolsUpdated. - - :param id: The id of this SchoolsUpdated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SchoolsUpdated. - - :return: The type of this SchoolsUpdated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SchoolsUpdated. - - :param type: The type of this SchoolsUpdated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/section.py b/clever/models/section.py index 0658e8b..53ec25e 100644 --- a/clever/models/section.py +++ b/clever/models/section.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,9 +31,7 @@ class Section(object): and the value is json key in definition. """ swagger_types = { - 'course_description': 'str', - 'course_name': 'str', - 'course_number': 'str', + 'course': 'str', 'created': 'str', 'district': 'str', 'grade': 'str', @@ -48,13 +46,11 @@ class Section(object): 'subject': 'str', 'teacher': 'str', 'teachers': 'list[str]', - 'term': 'Term' + 'term_id': 'str' } attribute_map = { - 'course_description': 'course_description', - 'course_name': 'course_name', - 'course_number': 'course_number', + 'course': 'course', 'created': 'created', 'district': 'district', 'grade': 'grade', @@ -69,17 +65,15 @@ class Section(object): 'subject': 'subject', 'teacher': 'teacher', 'teachers': 'teachers', - 'term': 'term' + 'term_id': 'term_id' } - def __init__(self, course_description=None, course_name=None, course_number=None, created=None, district=None, grade=None, id=None, last_modified=None, name=None, period=None, school=None, section_number=None, sis_id=None, students=None, subject=None, teacher=None, teachers=None, term=None): + def __init__(self, course=None, created=None, district=None, grade=None, id=None, last_modified=None, name=None, period=None, school=None, section_number=None, sis_id=None, students=None, subject=None, teacher=None, teachers=None, term_id=None): """ Section - a model defined in Swagger """ - self._course_description = None - self._course_name = None - self._course_number = None + self._course = None self._created = None self._district = None self._grade = None @@ -94,14 +88,11 @@ def __init__(self, course_description=None, course_name=None, course_number=None self._subject = None self._teacher = None self._teachers = None - self._term = None - - if course_description is not None: - self.course_description = course_description - if course_name is not None: - self.course_name = course_name - if course_number is not None: - self.course_number = course_number + self._term_id = None + self.discriminator = None + + if course is not None: + self.course = course if created is not None: self.created = created if district is not None: @@ -130,71 +121,29 @@ def __init__(self, course_description=None, course_name=None, course_number=None self.teacher = teacher if teachers is not None: self.teachers = teachers - if term is not None: - self.term = term - - @property - def course_description(self): - """ - Gets the course_description of this Section. - - :return: The course_description of this Section. - :rtype: str - """ - return self._course_description - - @course_description.setter - def course_description(self, course_description): - """ - Sets the course_description of this Section. - - :param course_description: The course_description of this Section. - :type: str - """ - - self._course_description = course_description + if term_id is not None: + self.term_id = term_id @property - def course_name(self): + def course(self): """ - Gets the course_name of this Section. + Gets the course of this Section. - :return: The course_name of this Section. + :return: The course of this Section. :rtype: str """ - return self._course_name + return self._course - @course_name.setter - def course_name(self, course_name): + @course.setter + def course(self, course): """ - Sets the course_name of this Section. + Sets the course of this Section. - :param course_name: The course_name of this Section. + :param course: The course of this Section. :type: str """ - self._course_name = course_name - - @property - def course_number(self): - """ - Gets the course_number of this Section. - - :return: The course_number of this Section. - :rtype: str - """ - return self._course_number - - @course_number.setter - def course_number(self, course_number): - """ - Sets the course_number of this Section. - - :param course_number: The course_number of this Section. - :type: str - """ - - self._course_number = course_number + self._course = course @property def created(self): @@ -503,25 +452,25 @@ def teachers(self, teachers): self._teachers = teachers @property - def term(self): + def term_id(self): """ - Gets the term of this Section. + Gets the term_id of this Section. - :return: The term of this Section. - :rtype: Term + :return: The term_id of this Section. + :rtype: str """ - return self._term + return self._term_id - @term.setter - def term(self, term): + @term_id.setter + def term_id(self, term_id): """ - Sets the term of this Section. + Sets the term_id of this Section. - :param term: The term of this Section. - :type: Term + :param term_id: The term_id of this Section. + :type: str """ - self._term = term + self._term_id = term_id def to_dict(self): """ diff --git a/clever/models/section_object.py b/clever/models/section_object.py index d322e7b..cb0999d 100644 --- a/clever/models/section_object.py +++ b/clever/models/section_object.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, object=None): """ self._object = None + self.discriminator = None if object is not None: self.object = object diff --git a/clever/models/section_response.py b/clever/models/section_response.py index f80d675..2be7a34 100644 --- a/clever/models/section_response.py +++ b/clever/models/section_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, data=None): """ self._data = None + self.discriminator = None if data is not None: self.data = data diff --git a/clever/models/sections_created.py b/clever/models/sections_created.py index ab1b541..35d92e1 100644 --- a/clever/models/sections_created.py +++ b/clever/models/sections_created.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class SectionsCreated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class SectionsCreated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SectionObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SectionsCreated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SectionsCreated. - - :return: The created of this SectionsCreated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SectionsCreated. - - :param created: The created of this SectionsCreated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SectionsCreated. - - :return: The id of this SectionsCreated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SectionsCreated. - - :param id: The id of this SectionsCreated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SectionsCreated. - - :return: The type of this SectionsCreated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SectionsCreated. - - :param type: The type of this SectionsCreated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/sections_deleted.py b/clever/models/sections_deleted.py index 0b129ca..9dc681c 100644 --- a/clever/models/sections_deleted.py +++ b/clever/models/sections_deleted.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class SectionsDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class SectionsDeleted(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SectionObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SectionsDeleted - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SectionsDeleted. - - :return: The created of this SectionsDeleted. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SectionsDeleted. - - :param created: The created of this SectionsDeleted. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SectionsDeleted. - - :return: The id of this SectionsDeleted. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SectionsDeleted. - - :param id: The id of this SectionsDeleted. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SectionsDeleted. - - :return: The type of this SectionsDeleted. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SectionsDeleted. - - :param type: The type of this SectionsDeleted. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/sections_response.py b/clever/models/sections_response.py index 93050cd..e7a4647 100644 --- a/clever/models/sections_response.py +++ b/clever/models/sections_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, data=None): """ self._data = None + self.discriminator = None if data is not None: self.data = data diff --git a/clever/models/sections_updated.py b/clever/models/sections_updated.py index 4b3f68e..c8ba933 100644 --- a/clever/models/sections_updated.py +++ b/clever/models/sections_updated.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class SectionsUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class SectionsUpdated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'SectionObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ SectionsUpdated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this SectionsUpdated. - - :return: The created of this SectionsUpdated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this SectionsUpdated. - - :param created: The created of this SectionsUpdated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this SectionsUpdated. - - :return: The id of this SectionsUpdated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SectionsUpdated. - - :param id: The id of this SectionsUpdated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this SectionsUpdated. - - :return: The type of this SectionsUpdated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this SectionsUpdated. - - :param type: The type of this SectionsUpdated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/student.py b/clever/models/student.py index ff1e579..85af09c 100644 --- a/clever/models/student.py +++ b/clever/models/student.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -113,6 +113,7 @@ def __init__(self, created=None, credentials=None, district=None, dob=None, ell_ self._student_number = None self._unweighted_gpa = None self._weighted_gpa = None + self.discriminator = None if created is not None: self.created = created diff --git a/clever/models/student_contacts_response.py b/clever/models/student_contacts_response.py deleted file mode 100644 index 7ce9141..0000000 --- a/clever/models/student_contacts_response.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class StudentContactsResponse(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'data': 'list[StudentContactResponse]' - } - - attribute_map = { - 'data': 'data' - } - - def __init__(self, data=None): - """ - StudentContactsResponse - a model defined in Swagger - """ - - self._data = None - - if data is not None: - self.data = data - - @property - def data(self): - """ - Gets the data of this StudentContactsResponse. - - :return: The data of this StudentContactsResponse. - :rtype: list[StudentContactResponse] - """ - return self._data - - @data.setter - def data(self, data): - """ - Sets the data of this StudentContactsResponse. - - :param data: The data of this StudentContactsResponse. - :type: list[StudentContactResponse] - """ - - self._data = data - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, StudentContactsResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/clever/models/student_object.py b/clever/models/student_object.py index b72d73e..f2971b9 100644 --- a/clever/models/student_object.py +++ b/clever/models/student_object.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, object=None): """ self._object = None + self.discriminator = None if object is not None: self.object = object diff --git a/clever/models/student_response.py b/clever/models/student_response.py index 635b9ed..b706431 100644 --- a/clever/models/student_response.py +++ b/clever/models/student_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, data=None): """ self._data = None + self.discriminator = None if data is not None: self.data = data diff --git a/clever/models/studentcontacts_created.py b/clever/models/studentcontacts_created.py deleted file mode 100644 index d9825c6..0000000 --- a/clever/models/studentcontacts_created.py +++ /dev/null @@ -1,203 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re -import event - - -class StudentcontactsCreated(event.Event): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', - 'data': 'StudentContactObject' - } - - attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', - 'data': 'data' - } - - def __init__(self, created=None, id=None, type=None, data=None): - """ - StudentcontactsCreated - a model defined in Swagger - """ - - self._created = None - self._id = None - self._type = None - self._data = None - - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type - if data is not None: - self.data = data - - @property - def created(self): - """ - Gets the created of this StudentcontactsCreated. - - :return: The created of this StudentcontactsCreated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this StudentcontactsCreated. - - :param created: The created of this StudentcontactsCreated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this StudentcontactsCreated. - - :return: The id of this StudentcontactsCreated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this StudentcontactsCreated. - - :param id: The id of this StudentcontactsCreated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this StudentcontactsCreated. - - :return: The type of this StudentcontactsCreated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this StudentcontactsCreated. - - :param type: The type of this StudentcontactsCreated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - - @property - def data(self): - """ - Gets the data of this StudentcontactsCreated. - - :return: The data of this StudentcontactsCreated. - :rtype: StudentContactObject - """ - return self._data - - @data.setter - def data(self, data): - """ - Sets the data of this StudentcontactsCreated. - - :param data: The data of this StudentcontactsCreated. - :type: StudentContactObject - """ - - self._data = data - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, StudentcontactsCreated): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/clever/models/studentcontacts_deleted.py b/clever/models/studentcontacts_deleted.py deleted file mode 100644 index 6ebefaf..0000000 --- a/clever/models/studentcontacts_deleted.py +++ /dev/null @@ -1,203 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re -import event - - -class StudentcontactsDeleted(event.Event): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', - 'data': 'StudentContactObject' - } - - attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', - 'data': 'data' - } - - def __init__(self, created=None, id=None, type=None, data=None): - """ - StudentcontactsDeleted - a model defined in Swagger - """ - - self._created = None - self._id = None - self._type = None - self._data = None - - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type - if data is not None: - self.data = data - - @property - def created(self): - """ - Gets the created of this StudentcontactsDeleted. - - :return: The created of this StudentcontactsDeleted. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this StudentcontactsDeleted. - - :param created: The created of this StudentcontactsDeleted. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this StudentcontactsDeleted. - - :return: The id of this StudentcontactsDeleted. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this StudentcontactsDeleted. - - :param id: The id of this StudentcontactsDeleted. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this StudentcontactsDeleted. - - :return: The type of this StudentcontactsDeleted. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this StudentcontactsDeleted. - - :param type: The type of this StudentcontactsDeleted. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - - @property - def data(self): - """ - Gets the data of this StudentcontactsDeleted. - - :return: The data of this StudentcontactsDeleted. - :rtype: StudentContactObject - """ - return self._data - - @data.setter - def data(self, data): - """ - Sets the data of this StudentcontactsDeleted. - - :param data: The data of this StudentcontactsDeleted. - :type: StudentContactObject - """ - - self._data = data - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, StudentcontactsDeleted): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/clever/models/studentcontacts_updated.py b/clever/models/studentcontacts_updated.py deleted file mode 100644 index 3d9094a..0000000 --- a/clever/models/studentcontacts_updated.py +++ /dev/null @@ -1,203 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re -import event - - -class StudentcontactsUpdated(event.Event): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', - 'data': 'StudentContactObject' - } - - attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', - 'data': 'data' - } - - def __init__(self, created=None, id=None, type=None, data=None): - """ - StudentcontactsUpdated - a model defined in Swagger - """ - - self._created = None - self._id = None - self._type = None - self._data = None - - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type - if data is not None: - self.data = data - - @property - def created(self): - """ - Gets the created of this StudentcontactsUpdated. - - :return: The created of this StudentcontactsUpdated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this StudentcontactsUpdated. - - :param created: The created of this StudentcontactsUpdated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this StudentcontactsUpdated. - - :return: The id of this StudentcontactsUpdated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this StudentcontactsUpdated. - - :param id: The id of this StudentcontactsUpdated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this StudentcontactsUpdated. - - :return: The type of this StudentcontactsUpdated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this StudentcontactsUpdated. - - :param type: The type of this StudentcontactsUpdated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - - @property - def data(self): - """ - Gets the data of this StudentcontactsUpdated. - - :return: The data of this StudentcontactsUpdated. - :rtype: StudentContactObject - """ - return self._data - - @data.setter - def data(self, data): - """ - Sets the data of this StudentcontactsUpdated. - - :param data: The data of this StudentcontactsUpdated. - :type: StudentContactObject - """ - - self._data = data - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, StudentcontactsUpdated): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/clever/models/students_created.py b/clever/models/students_created.py index 4ccd654..2b4b6c5 100644 --- a/clever/models/students_created.py +++ b/clever/models/students_created.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class StudentsCreated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class StudentsCreated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'StudentObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ StudentsCreated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this StudentsCreated. - - :return: The created of this StudentsCreated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this StudentsCreated. - - :param created: The created of this StudentsCreated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this StudentsCreated. - - :return: The id of this StudentsCreated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this StudentsCreated. - - :param id: The id of this StudentsCreated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this StudentsCreated. - - :return: The type of this StudentsCreated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this StudentsCreated. - - :param type: The type of this StudentsCreated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/students_deleted.py b/clever/models/students_deleted.py index 6b16773..6085f1f 100644 --- a/clever/models/students_deleted.py +++ b/clever/models/students_deleted.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class StudentsDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class StudentsDeleted(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'StudentObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ StudentsDeleted - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this StudentsDeleted. - - :return: The created of this StudentsDeleted. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this StudentsDeleted. - - :param created: The created of this StudentsDeleted. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this StudentsDeleted. - - :return: The id of this StudentsDeleted. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this StudentsDeleted. - - :param id: The id of this StudentsDeleted. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this StudentsDeleted. - - :return: The type of this StudentsDeleted. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this StudentsDeleted. - - :param type: The type of this StudentsDeleted. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/students_response.py b/clever/models/students_response.py index 35ae878..c06e4d5 100644 --- a/clever/models/students_response.py +++ b/clever/models/students_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, data=None): """ self._data = None + self.discriminator = None if data is not None: self.data = data diff --git a/clever/models/students_updated.py b/clever/models/students_updated.py index 8015b49..e6c639b 100644 --- a/clever/models/students_updated.py +++ b/clever/models/students_updated.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class StudentsUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class StudentsUpdated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'StudentObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ StudentsUpdated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this StudentsUpdated. - - :return: The created of this StudentsUpdated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this StudentsUpdated. - - :param created: The created of this StudentsUpdated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this StudentsUpdated. - - :return: The id of this StudentsUpdated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this StudentsUpdated. - - :param id: The id of this StudentsUpdated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this StudentsUpdated. - - :return: The type of this StudentsUpdated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this StudentsUpdated. - - :param type: The type of this StudentsUpdated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/teacher.py b/clever/models/teacher.py index 7f6bea2..a93781a 100644 --- a/clever/models/teacher.py +++ b/clever/models/teacher.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -80,6 +80,7 @@ def __init__(self, created=None, credentials=None, district=None, email=None, id self._state_id = None self._teacher_number = None self._title = None + self.discriminator = None if created is not None: self.created = created diff --git a/clever/models/teacher_object.py b/clever/models/teacher_object.py index e78d1d1..3edcd61 100644 --- a/clever/models/teacher_object.py +++ b/clever/models/teacher_object.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, object=None): """ self._object = None + self.discriminator = None if object is not None: self.object = object diff --git a/clever/models/teacher_response.py b/clever/models/teacher_response.py index 2aa07bf..59530a2 100644 --- a/clever/models/teacher_response.py +++ b/clever/models/teacher_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, data=None): """ self._data = None + self.discriminator = None if data is not None: self.data = data diff --git a/clever/models/teachers_created.py b/clever/models/teachers_created.py index e089c3d..85a60e5 100644 --- a/clever/models/teachers_created.py +++ b/clever/models/teachers_created.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class TeachersCreated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class TeachersCreated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'TeacherObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ TeachersCreated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this TeachersCreated. - - :return: The created of this TeachersCreated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this TeachersCreated. - - :param created: The created of this TeachersCreated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this TeachersCreated. - - :return: The id of this TeachersCreated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this TeachersCreated. - - :param id: The id of this TeachersCreated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this TeachersCreated. - - :return: The type of this TeachersCreated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this TeachersCreated. - - :param type: The type of this TeachersCreated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/teachers_deleted.py b/clever/models/teachers_deleted.py index 9427404..a8dff4c 100644 --- a/clever/models/teachers_deleted.py +++ b/clever/models/teachers_deleted.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class TeachersDeleted(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class TeachersDeleted(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'TeacherObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ TeachersDeleted - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this TeachersDeleted. - - :return: The created of this TeachersDeleted. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this TeachersDeleted. - - :param created: The created of this TeachersDeleted. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this TeachersDeleted. - - :return: The id of this TeachersDeleted. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this TeachersDeleted. - - :param id: The id of this TeachersDeleted. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this TeachersDeleted. - - :return: The type of this TeachersDeleted. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this TeachersDeleted. - - :param type: The type of this TeachersDeleted. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/teachers_response.py b/clever/models/teachers_response.py index 41601c7..bcf98d4 100644 --- a/clever/models/teachers_response.py +++ b/clever/models/teachers_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -44,6 +44,7 @@ def __init__(self, data=None): """ self._data = None + self.discriminator = None if data is not None: self.data = data diff --git a/clever/models/teachers_updated.py b/clever/models/teachers_updated.py index 78bec45..f2a0930 100644 --- a/clever/models/teachers_updated.py +++ b/clever/models/teachers_updated.py @@ -5,8 +5,8 @@ The Clever API - OpenAPI spec version: 1.2.0 - + OpenAPI spec version: 2.0.0 + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,6 @@ import re import event - class TeachersUpdated(event.Event): """ NOTE: This class is auto generated by the swagger code generator program. @@ -32,102 +31,24 @@ class TeachersUpdated(event.Event): and the value is json key in definition. """ swagger_types = { - 'created': 'str', - 'id': 'str', - 'type': 'str', 'data': 'TeacherObject' } attribute_map = { - 'created': 'created', - 'id': 'id', - 'type': 'type', 'data': 'data' } - def __init__(self, created=None, id=None, type=None, data=None): + def __init__(self, data=None): """ TeachersUpdated - a model defined in Swagger """ - self._created = None - self._id = None - self._type = None self._data = None + self.discriminator = None - if created is not None: - self.created = created - if id is not None: - self.id = id - self.type = type if data is not None: self.data = data - @property - def created(self): - """ - Gets the created of this TeachersUpdated. - - :return: The created of this TeachersUpdated. - :rtype: str - """ - return self._created - - @created.setter - def created(self, created): - """ - Sets the created of this TeachersUpdated. - - :param created: The created of this TeachersUpdated. - :type: str - """ - - self._created = created - - @property - def id(self): - """ - Gets the id of this TeachersUpdated. - - :return: The id of this TeachersUpdated. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this TeachersUpdated. - - :param id: The id of this TeachersUpdated. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this TeachersUpdated. - - :return: The type of this TeachersUpdated. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this TeachersUpdated. - - :param type: The type of this TeachersUpdated. - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") - - self._type = type - @property def data(self): """ diff --git a/clever/models/term.py b/clever/models/term.py index 166f4c1..b82c839 100644 --- a/clever/models/term.py +++ b/clever/models/term.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,27 +32,33 @@ class Term(object): """ swagger_types = { 'end_date': 'str', + 'id': 'str', 'name': 'str', 'start_date': 'str' } attribute_map = { 'end_date': 'end_date', + 'id': 'id', 'name': 'name', 'start_date': 'start_date' } - def __init__(self, end_date=None, name=None, start_date=None): + def __init__(self, end_date=None, id=None, name=None, start_date=None): """ Term - a model defined in Swagger """ self._end_date = None + self._id = None self._name = None self._start_date = None + self.discriminator = None if end_date is not None: self.end_date = end_date + if id is not None: + self.id = id if name is not None: self.name = name if start_date is not None: @@ -79,6 +85,27 @@ def end_date(self, end_date): self._end_date = end_date + @property + def id(self): + """ + Gets the id of this Term. + + :return: The id of this Term. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this Term. + + :param id: The id of this Term. + :type: str + """ + + self._id = id + @property def name(self): """ diff --git a/clever/models/term_object.py b/clever/models/term_object.py new file mode 100644 index 0000000..6db7319 --- /dev/null +++ b/clever/models/term_object.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TermObject(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'object': 'Term' + } + + attribute_map = { + 'object': 'object' + } + + def __init__(self, object=None): + """ + TermObject - a model defined in Swagger + """ + + self._object = None + self.discriminator = None + + if object is not None: + self.object = object + + @property + def object(self): + """ + Gets the object of this TermObject. + + :return: The object of this TermObject. + :rtype: Term + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this TermObject. + + :param object: The object of this TermObject. + :type: Term + """ + + self._object = object + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TermObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/clever/models/district_status_response.py b/clever/models/term_response.py similarity index 82% rename from clever/models/district_status_response.py rename to clever/models/term_response.py index ccd0414..3dbb27d 100644 --- a/clever/models/district_status_response.py +++ b/clever/models/term_response.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class DistrictStatusResponse(object): +class TermResponse(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class DistrictStatusResponse(object): and the value is json key in definition. """ swagger_types = { - 'data': 'DistrictStatus' + 'data': 'Term' } attribute_map = { @@ -40,10 +40,11 @@ class DistrictStatusResponse(object): def __init__(self, data=None): """ - DistrictStatusResponse - a model defined in Swagger + TermResponse - a model defined in Swagger """ self._data = None + self.discriminator = None if data is not None: self.data = data @@ -51,20 +52,20 @@ def __init__(self, data=None): @property def data(self): """ - Gets the data of this DistrictStatusResponse. + Gets the data of this TermResponse. - :return: The data of this DistrictStatusResponse. - :rtype: DistrictStatus + :return: The data of this TermResponse. + :rtype: Term """ return self._data @data.setter def data(self, data): """ - Sets the data of this DistrictStatusResponse. + Sets the data of this TermResponse. - :param data: The data of this DistrictStatusResponse. - :type: DistrictStatus + :param data: The data of this TermResponse. + :type: Term """ self._data = data @@ -111,7 +112,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, DistrictStatusResponse): + if not isinstance(other, TermResponse): return False return self.__dict__ == other.__dict__ diff --git a/clever/models/terms_created.py b/clever/models/terms_created.py new file mode 100644 index 0000000..925d163 --- /dev/null +++ b/clever/models/terms_created.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class TermsCreated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'TermObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + TermsCreated - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this TermsCreated. + + :return: The data of this TermsCreated. + :rtype: TermObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this TermsCreated. + + :param data: The data of this TermsCreated. + :type: TermObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TermsCreated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/clever/models/terms_deleted.py b/clever/models/terms_deleted.py new file mode 100644 index 0000000..9cf5488 --- /dev/null +++ b/clever/models/terms_deleted.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class TermsDeleted(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'TermObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + TermsDeleted - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this TermsDeleted. + + :return: The data of this TermsDeleted. + :rtype: TermObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this TermsDeleted. + + :param data: The data of this TermsDeleted. + :type: TermObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TermsDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/clever/models/terms_response.py b/clever/models/terms_response.py new file mode 100644 index 0000000..078053f --- /dev/null +++ b/clever/models/terms_response.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TermsResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'list[TermResponse]' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + TermsResponse - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this TermsResponse. + + :return: The data of this TermsResponse. + :rtype: list[TermResponse] + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this TermsResponse. + + :param data: The data of this TermsResponse. + :type: list[TermResponse] + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TermsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/clever/models/terms_updated.py b/clever/models/terms_updated.py new file mode 100644 index 0000000..b48ddc6 --- /dev/null +++ b/clever/models/terms_updated.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re +import event + +class TermsUpdated(event.Event): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'TermObject' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + TermsUpdated - a model defined in Swagger + """ + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this TermsUpdated. + + :return: The data of this TermsUpdated. + :rtype: TermObject + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this TermsUpdated. + + :param data: The data of this TermsUpdated. + :type: TermObject + """ + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TermsUpdated): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/clever/rest.py b/clever/rest.py index 0fadb57..e84b148 100644 --- a/clever/rest.py +++ b/clever/rest.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -24,8 +24,6 @@ from six import PY3 from six.moves.urllib.parse import urlencode -from .configuration import Configuration - try: import urllib3 except ImportError: @@ -58,46 +56,47 @@ def getheader(self, name, default=None): class RESTClientObject(object): - def __init__(self, pools_size=4, maxsize=4): + def __init__(self, configuration, pools_size=4, maxsize=None): # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # maxsize is the number of requests to host that are allowed in parallel - # ca_certs vs cert_file vs key_file - # http://stackoverflow.com/a/23957365/2985775 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # cert_reqs - if Configuration().verify_ssl: + if configuration.verify_ssl: cert_reqs = ssl.CERT_REQUIRED else: cert_reqs = ssl.CERT_NONE # ca_certs - if Configuration().ssl_ca_cert: - ca_certs = Configuration().ssl_ca_cert + if configuration.ssl_ca_cert: + ca_certs = configuration.ssl_ca_cert else: # if not set certificate file, use Mozilla's root certificates. ca_certs = certifi.where() - # cert_file - cert_file = Configuration().cert_file - - # key file - key_file = Configuration().key_file + addition_pool_args = {} + if configuration.assert_hostname is not None: + addition_pool_args['assert_hostname'] = configuration.assert_hostname - # proxy - proxy = Configuration().proxy + if maxsize is None: + if configuration.connection_pool_maxsize is not None: + maxsize = configuration.connection_pool_maxsize + else: + maxsize = 4 # https pool manager - if proxy: + if configuration.proxy: self.pool_manager = urllib3.ProxyManager( num_pools=pools_size, maxsize=maxsize, cert_reqs=cert_reqs, ca_certs=ca_certs, - cert_file=cert_file, - key_file=key_file, - proxy_url=proxy + cert_file=configuration.cert_file, + key_file=configuration.key_file, + proxy_url=configuration.proxy, + **addition_pool_args ) else: self.pool_manager = urllib3.PoolManager( @@ -105,11 +104,11 @@ def __init__(self, pools_size=4, maxsize=4): maxsize=maxsize, cert_reqs=cert_reqs, ca_certs=ca_certs, - cert_file=cert_file, - key_file=key_file + cert_file=configuration.cert_file, + key_file=configuration.key_file, + **addition_pool_args ) - def request(self, method, url, query_params=None, headers=None, body=None, post_params=None, _preload_content=True, _request_timeout=None): """ @@ -154,7 +153,7 @@ def request(self, method, url, query_params=None, headers=None, url += '?' + urlencode(query_params) if re.search('json', headers['Content-Type'], re.IGNORECASE): request_body = None - if body: + if body is not None: request_body = json.dumps(body) r = self.pool_manager.request(method, url, body=request_body, diff --git a/docs/Contact.md b/docs/Contact.md new file mode 100644 index 0000000..9b561eb --- /dev/null +++ b/docs/Contact.md @@ -0,0 +1,19 @@ +# Contact + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**district** | **str** | | [optional] +**email** | **str** | | [optional] +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**phone** | **str** | | [optional] +**phone_type** | **str** | | [optional] +**relationship** | **str** | | [optional] +**sis_id** | **str** | | [optional] +**students** | **list[str]** | | [optional] +**type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContactObject.md b/docs/ContactObject.md new file mode 100644 index 0000000..5fea4d8 --- /dev/null +++ b/docs/ContactObject.md @@ -0,0 +1,10 @@ +# ContactObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object** | [**Contact**](Contact.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContactResponse.md b/docs/ContactResponse.md new file mode 100644 index 0000000..4e33c71 --- /dev/null +++ b/docs/ContactResponse.md @@ -0,0 +1,10 @@ +# ContactResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**Contact**](Contact.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContactsCreated.md b/docs/ContactsCreated.md new file mode 100644 index 0000000..c4880fe --- /dev/null +++ b/docs/ContactsCreated.md @@ -0,0 +1,10 @@ +# ContactsCreated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ContactObject**](ContactObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContactsDeleted.md b/docs/ContactsDeleted.md new file mode 100644 index 0000000..467f4b1 --- /dev/null +++ b/docs/ContactsDeleted.md @@ -0,0 +1,10 @@ +# ContactsDeleted + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ContactObject**](ContactObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContactsResponse.md b/docs/ContactsResponse.md new file mode 100644 index 0000000..a05e13c --- /dev/null +++ b/docs/ContactsResponse.md @@ -0,0 +1,10 @@ +# ContactsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[ContactResponse]**](ContactResponse.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContactsUpdated.md b/docs/ContactsUpdated.md new file mode 100644 index 0000000..a06cec2 --- /dev/null +++ b/docs/ContactsUpdated.md @@ -0,0 +1,10 @@ +# ContactsUpdated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ContactObject**](ContactObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Course.md b/docs/Course.md new file mode 100644 index 0000000..7fd0c51 --- /dev/null +++ b/docs/Course.md @@ -0,0 +1,12 @@ +# Course + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**number** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CourseObject.md b/docs/CourseObject.md new file mode 100644 index 0000000..dc3794c --- /dev/null +++ b/docs/CourseObject.md @@ -0,0 +1,10 @@ +# CourseObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object** | [**Course**](Course.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CourseResponse.md b/docs/CourseResponse.md new file mode 100644 index 0000000..251347b --- /dev/null +++ b/docs/CourseResponse.md @@ -0,0 +1,10 @@ +# CourseResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**Course**](Course.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CoursesCreated.md b/docs/CoursesCreated.md new file mode 100644 index 0000000..8256be2 --- /dev/null +++ b/docs/CoursesCreated.md @@ -0,0 +1,10 @@ +# CoursesCreated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CourseObject**](CourseObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CoursesDeleted.md b/docs/CoursesDeleted.md new file mode 100644 index 0000000..b136f62 --- /dev/null +++ b/docs/CoursesDeleted.md @@ -0,0 +1,10 @@ +# CoursesDeleted + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CourseObject**](CourseObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CoursesResponse.md b/docs/CoursesResponse.md new file mode 100644 index 0000000..deed05b --- /dev/null +++ b/docs/CoursesResponse.md @@ -0,0 +1,10 @@ +# CoursesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[CourseResponse]**](CourseResponse.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CoursesUpdated.md b/docs/CoursesUpdated.md new file mode 100644 index 0000000..887ae0c --- /dev/null +++ b/docs/CoursesUpdated.md @@ -0,0 +1,10 @@ +# CoursesUpdated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CourseObject**](CourseObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DataApi.md b/docs/DataApi.md index f462b9a..e0f904d 100644 --- a/docs/DataApi.md +++ b/docs/DataApi.md @@ -1,23 +1,28 @@ # clever.DataApi -All URIs are relative to *https://api.clever.com/v1.2* +All URIs are relative to *https://api.clever.com/v2.0* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_contact**](DataApi.md#get_contact) | **GET** /contacts/{id} | [**get_contacts**](DataApi.md#get_contacts) | **GET** /contacts | [**get_contacts_for_student**](DataApi.md#get_contacts_for_student) | **GET** /students/{id}/contacts | +[**get_course**](DataApi.md#get_course) | **GET** /courses/{id} | +[**get_course_for_section**](DataApi.md#get_course_for_section) | **GET** /sections/{id}/course | +[**get_courses**](DataApi.md#get_courses) | **GET** /courses | [**get_district**](DataApi.md#get_district) | **GET** /districts/{id} | [**get_district_admin**](DataApi.md#get_district_admin) | **GET** /district_admins/{id} | [**get_district_admins**](DataApi.md#get_district_admins) | **GET** /district_admins | +[**get_district_for_contact**](DataApi.md#get_district_for_contact) | **GET** /contacts/{id}/district | +[**get_district_for_course**](DataApi.md#get_district_for_course) | **GET** /courses/{id}/district | +[**get_district_for_district_admin**](DataApi.md#get_district_for_district_admin) | **GET** /district_admins/{id}/district | [**get_district_for_school**](DataApi.md#get_district_for_school) | **GET** /schools/{id}/district | +[**get_district_for_school_admin**](DataApi.md#get_district_for_school_admin) | **GET** /school_admins/{id}/district | [**get_district_for_section**](DataApi.md#get_district_for_section) | **GET** /sections/{id}/district | [**get_district_for_student**](DataApi.md#get_district_for_student) | **GET** /students/{id}/district | -[**get_district_for_student_contact**](DataApi.md#get_district_for_student_contact) | **GET** /contacts/{id}/district | [**get_district_for_teacher**](DataApi.md#get_district_for_teacher) | **GET** /teachers/{id}/district | -[**get_district_status**](DataApi.md#get_district_status) | **GET** /districts/{id}/status | +[**get_district_for_term**](DataApi.md#get_district_for_term) | **GET** /terms/{id}/district | [**get_districts**](DataApi.md#get_districts) | **GET** /districts | -[**get_grade_levels_for_teacher**](DataApi.md#get_grade_levels_for_teacher) | **GET** /teachers/{id}/grade_levels | [**get_school**](DataApi.md#get_school) | **GET** /schools/{id} | [**get_school_admin**](DataApi.md#get_school_admin) | **GET** /school_admins/{id} | [**get_school_admins**](DataApi.md#get_school_admins) | **GET** /school_admins | @@ -26,14 +31,18 @@ Method | HTTP request | Description [**get_school_for_teacher**](DataApi.md#get_school_for_teacher) | **GET** /teachers/{id}/school | [**get_schools**](DataApi.md#get_schools) | **GET** /schools | [**get_schools_for_school_admin**](DataApi.md#get_schools_for_school_admin) | **GET** /school_admins/{id}/schools | +[**get_schools_for_student**](DataApi.md#get_schools_for_student) | **GET** /students/{id}/schools | +[**get_schools_for_teacher**](DataApi.md#get_schools_for_teacher) | **GET** /teachers/{id}/schools | [**get_section**](DataApi.md#get_section) | **GET** /sections/{id} | [**get_sections**](DataApi.md#get_sections) | **GET** /sections | +[**get_sections_for_course**](DataApi.md#get_sections_for_course) | **GET** /courses/{id}/sections | [**get_sections_for_school**](DataApi.md#get_sections_for_school) | **GET** /schools/{id}/sections | [**get_sections_for_student**](DataApi.md#get_sections_for_student) | **GET** /students/{id}/sections | [**get_sections_for_teacher**](DataApi.md#get_sections_for_teacher) | **GET** /teachers/{id}/sections | +[**get_sections_for_term**](DataApi.md#get_sections_for_term) | **GET** /terms/{id}/sections | [**get_student**](DataApi.md#get_student) | **GET** /students/{id} | -[**get_student_for_contact**](DataApi.md#get_student_for_contact) | **GET** /contacts/{id}/student | [**get_students**](DataApi.md#get_students) | **GET** /students | +[**get_students_for_contact**](DataApi.md#get_students_for_contact) | **GET** /contacts/{id}/students | [**get_students_for_school**](DataApi.md#get_students_for_school) | **GET** /schools/{id}/students | [**get_students_for_section**](DataApi.md#get_students_for_section) | **GET** /sections/{id}/students | [**get_students_for_teacher**](DataApi.md#get_students_for_teacher) | **GET** /teachers/{id}/students | @@ -43,10 +52,13 @@ Method | HTTP request | Description [**get_teachers_for_school**](DataApi.md#get_teachers_for_school) | **GET** /schools/{id}/teachers | [**get_teachers_for_section**](DataApi.md#get_teachers_for_section) | **GET** /sections/{id}/teachers | [**get_teachers_for_student**](DataApi.md#get_teachers_for_student) | **GET** /students/{id}/teachers | +[**get_term**](DataApi.md#get_term) | **GET** /terms/{id} | +[**get_term_for_section**](DataApi.md#get_term_for_section) | **GET** /sections/{id}/term | +[**get_terms**](DataApi.md#get_terms) | **GET** /terms | # **get_contact** -> StudentContactResponse get_contact(id) +> ContactResponse get_contact(id) @@ -61,10 +73,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: @@ -82,7 +95,7 @@ Name | Type | Description | Notes ### Return type -[**StudentContactResponse**](StudentContactResponse.md) +[**ContactResponse**](ContactResponse.md) ### Authorization @@ -96,7 +109,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_contacts** -> StudentContactsResponse get_contacts(limit=limit, starting_after=starting_after, ending_before=ending_before) +> ContactsResponse get_contacts(limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -111,10 +124,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) @@ -136,7 +150,7 @@ Name | Type | Description | Notes ### Return type -[**StudentContactsResponse**](StudentContactsResponse.md) +[**ContactsResponse**](ContactsResponse.md) ### Authorization @@ -150,7 +164,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_contacts_for_student** -> StudentContactsForStudentResponse get_contacts_for_student(id, limit=limit) +> ContactsResponse get_contacts_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -165,15 +179,18 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) try: - api_response = api_instance.get_contacts_for_student(id, limit=limit) + api_response = api_instance.get_contacts_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) pprint(api_response) except ApiException as e: print("Exception when calling DataApi->get_contacts_for_student: %s\n" % e) @@ -185,10 +202,169 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| | **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] ### Return type -[**StudentContactsForStudentResponse**](StudentContactsForStudentResponse.md) +[**ContactsResponse**](ContactsResponse.md) + +### Authorization + +[oauth](README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **get_course** +> CourseResponse get_course(id) + + + +Returns a specific course + +### Example +```python +from __future__ import print_function +import time +import clever +from clever.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = clever.DataApi(clever.ApiClient(configuration)) +id = 'id_example' # str | + +try: + api_response = api_instance.get_course(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_course: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**CourseResponse**](CourseResponse.md) + +### Authorization + +[oauth](README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **get_course_for_section** +> CourseResponse get_course_for_section(id) + + + +Returns the course for a section + +### Example +```python +from __future__ import print_function +import time +import clever +from clever.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = clever.DataApi(clever.ApiClient(configuration)) +id = 'id_example' # str | + +try: + api_response = api_instance.get_course_for_section(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_course_for_section: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**CourseResponse**](CourseResponse.md) + +### Authorization + +[oauth](README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **get_courses** +> CoursesResponse get_courses(limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns a list of courses + +### Example +```python +from __future__ import print_function +import time +import clever +from clever.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = clever.DataApi(clever.ApiClient(configuration)) +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_courses(limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_courses: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**CoursesResponse**](CoursesResponse.md) ### Authorization @@ -217,10 +393,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: @@ -267,10 +444,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: @@ -302,7 +480,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_district_admins** -> DistrictAdminsResponse get_district_admins(starting_after=starting_after, ending_before=ending_before) +> DistrictAdminsResponse get_district_admins(limit=limit, starting_after=starting_after, ending_before=ending_before) @@ -317,15 +495,17 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) +limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) try: - api_response = api_instance.get_district_admins(starting_after=starting_after, ending_before=ending_before) + api_response = api_instance.get_district_admins(limit=limit, starting_after=starting_after, ending_before=ending_before) pprint(api_response) except ApiException as e: print("Exception when calling DataApi->get_district_admins: %s\n" % e) @@ -335,6 +515,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **limit** | **int**| | [optional] **starting_after** | **str**| | [optional] **ending_before** | **str**| | [optional] @@ -353,12 +534,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_district_for_school** -> DistrictResponse get_district_for_school(id) +# **get_district_for_contact** +> DistrictResponse get_district_for_contact(id) -Returns the district for a school +Returns the district for a student contact ### Example ```python @@ -369,17 +550,18 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: - api_response = api_instance.get_district_for_school(id) + api_response = api_instance.get_district_for_contact(id) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_district_for_school: %s\n" % e) + print("Exception when calling DataApi->get_district_for_contact: %s\n" % e) ``` ### Parameters @@ -403,12 +585,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_district_for_section** -> DistrictResponse get_district_for_section(id) +# **get_district_for_course** +> DistrictResponse get_district_for_course(id) -Returns the district for a section +Returns the district for a course ### Example ```python @@ -419,17 +601,18 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: - api_response = api_instance.get_district_for_section(id) + api_response = api_instance.get_district_for_course(id) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_district_for_section: %s\n" % e) + print("Exception when calling DataApi->get_district_for_course: %s\n" % e) ``` ### Parameters @@ -453,12 +636,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_district_for_student** -> DistrictResponse get_district_for_student(id) +# **get_district_for_district_admin** +> DistrictResponse get_district_for_district_admin(id) -Returns the district for a student +Returns the district for a district admin ### Example ```python @@ -469,17 +652,18 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: - api_response = api_instance.get_district_for_student(id) + api_response = api_instance.get_district_for_district_admin(id) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_district_for_student: %s\n" % e) + print("Exception when calling DataApi->get_district_for_district_admin: %s\n" % e) ``` ### Parameters @@ -503,12 +687,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_district_for_student_contact** -> DistrictResponse get_district_for_student_contact(id) +# **get_district_for_school** +> DistrictResponse get_district_for_school(id) -Returns the district for a student contact +Returns the district for a school ### Example ```python @@ -519,17 +703,18 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: - api_response = api_instance.get_district_for_student_contact(id) + api_response = api_instance.get_district_for_school(id) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_district_for_student_contact: %s\n" % e) + print("Exception when calling DataApi->get_district_for_school: %s\n" % e) ``` ### Parameters @@ -553,12 +738,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_district_for_teacher** -> DistrictResponse get_district_for_teacher(id) +# **get_district_for_school_admin** +> DistrictResponse get_district_for_school_admin(id) -Returns the district for a teacher +Returns the district for a school admin ### Example ```python @@ -569,17 +754,18 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: - api_response = api_instance.get_district_for_teacher(id) + api_response = api_instance.get_district_for_school_admin(id) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_district_for_teacher: %s\n" % e) + print("Exception when calling DataApi->get_district_for_school_admin: %s\n" % e) ``` ### Parameters @@ -603,12 +789,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_district_status** -> DistrictStatusResponses get_district_status(id) +# **get_district_for_section** +> DistrictResponse get_district_for_section(id) -Returns the status of the district +Returns the district for a section ### Example ```python @@ -619,17 +805,18 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: - api_response = api_instance.get_district_status(id) + api_response = api_instance.get_district_for_section(id) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_district_status: %s\n" % e) + print("Exception when calling DataApi->get_district_for_section: %s\n" % e) ``` ### Parameters @@ -640,7 +827,7 @@ Name | Type | Description | Notes ### Return type -[**DistrictStatusResponses**](DistrictStatusResponses.md) +[**DistrictResponse**](DistrictResponse.md) ### Authorization @@ -653,12 +840,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_districts** -> DistrictsResponse get_districts() +# **get_district_for_student** +> DistrictResponse get_district_for_student(id) -Returns a list of districts +Returns the district for a student ### Example ```python @@ -669,24 +856,80 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) +id = 'id_example' # str | try: - api_response = api_instance.get_districts() + api_response = api_instance.get_district_for_student(id) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_districts: %s\n" % e) + print("Exception when calling DataApi->get_district_for_student: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | ### Return type -[**DistrictsResponse**](DistrictsResponse.md) +[**DistrictResponse**](DistrictResponse.md) + +### Authorization + +[oauth](README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **get_district_for_teacher** +> DistrictResponse get_district_for_teacher(id) + + + +Returns the district for a teacher + +### Example +```python +from __future__ import print_function +import time +import clever +from clever.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = clever.DataApi(clever.ApiClient(configuration)) +id = 'id_example' # str | + +try: + api_response = api_instance.get_district_for_teacher(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_district_for_teacher: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**DistrictResponse**](DistrictResponse.md) ### Authorization @@ -699,12 +942,12 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_grade_levels_for_teacher** -> GradeLevelsResponse get_grade_levels_for_teacher(id) +# **get_district_for_term** +> DistrictResponse get_district_for_term(id) -Returns the grade levels for sections a teacher teaches +Returns the district for a term ### Example ```python @@ -715,17 +958,18 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: - api_response = api_instance.get_grade_levels_for_teacher(id) + api_response = api_instance.get_district_for_term(id) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_grade_levels_for_teacher: %s\n" % e) + print("Exception when calling DataApi->get_district_for_term: %s\n" % e) ``` ### Parameters @@ -736,7 +980,54 @@ Name | Type | Description | Notes ### Return type -[**GradeLevelsResponse**](GradeLevelsResponse.md) +[**DistrictResponse**](DistrictResponse.md) + +### Authorization + +[oauth](README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **get_districts** +> DistrictsResponse get_districts() + + + +Returns a list of districts + +### Example +```python +from __future__ import print_function +import time +import clever +from clever.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = clever.DataApi(clever.ApiClient(configuration)) + +try: + api_response = api_instance.get_districts() + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_districts: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**DistrictsResponse**](DistrictsResponse.md) ### Authorization @@ -765,10 +1056,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: @@ -815,10 +1107,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: @@ -865,10 +1158,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) @@ -919,10 +1213,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: @@ -969,17 +1264,235 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: - api_response = api_instance.get_school_for_student(id) + api_response = api_instance.get_school_for_student(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_school_for_student: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**SchoolResponse**](SchoolResponse.md) + +### Authorization + +[oauth](README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **get_school_for_teacher** +> SchoolResponse get_school_for_teacher(id) + + + +Retrieves school info for a teacher. + +### Example +```python +from __future__ import print_function +import time +import clever +from clever.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = clever.DataApi(clever.ApiClient(configuration)) +id = 'id_example' # str | + +try: + api_response = api_instance.get_school_for_teacher(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_school_for_teacher: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**SchoolResponse**](SchoolResponse.md) + +### Authorization + +[oauth](README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **get_schools** +> SchoolsResponse get_schools(limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns a list of schools + +### Example +```python +from __future__ import print_function +import time +import clever +from clever.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = clever.DataApi(clever.ApiClient(configuration)) +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_schools(limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_schools: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**SchoolsResponse**](SchoolsResponse.md) + +### Authorization + +[oauth](README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **get_schools_for_school_admin** +> SchoolsResponse get_schools_for_school_admin(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns the schools for a school admin + +### Example +```python +from __future__ import print_function +import time +import clever +from clever.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = clever.DataApi(clever.ApiClient(configuration)) +id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_schools_for_school_admin(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_schools_for_school_admin: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**SchoolsResponse**](SchoolsResponse.md) + +### Authorization + +[oauth](README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **get_schools_for_student** +> SchoolsResponse get_schools_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns the schools for a student + +### Example +```python +from __future__ import print_function +import time +import clever +from clever.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = clever.DataApi(clever.ApiClient(configuration)) +id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_schools_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_school_for_student: %s\n" % e) + print("Exception when calling DataApi->get_schools_for_student: %s\n" % e) ``` ### Parameters @@ -987,10 +1500,13 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] ### Return type -[**SchoolResponse**](SchoolResponse.md) +[**SchoolsResponse**](SchoolsResponse.md) ### Authorization @@ -1003,12 +1519,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_school_for_teacher** -> SchoolResponse get_school_for_teacher(id) +# **get_schools_for_teacher** +> SchoolsResponse get_schools_for_teacher(id, limit=limit, starting_after=starting_after, ending_before=ending_before) -Retrieves school info for a teacher. +Returns the schools for a teacher ### Example ```python @@ -1019,17 +1535,21 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) try: - api_response = api_instance.get_school_for_teacher(id) + api_response = api_instance.get_schools_for_teacher(id, limit=limit, starting_after=starting_after, ending_before=ending_before) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_school_for_teacher: %s\n" % e) + print("Exception when calling DataApi->get_schools_for_teacher: %s\n" % e) ``` ### Parameters @@ -1037,10 +1557,13 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] ### Return type -[**SchoolResponse**](SchoolResponse.md) +[**SchoolsResponse**](SchoolsResponse.md) ### Authorization @@ -1053,12 +1576,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_schools** -> SchoolsResponse get_schools(limit=limit, starting_after=starting_after, ending_before=ending_before) +# **get_section** +> SectionResponse get_section(id) -Returns a list of schools +Returns a specific section ### Example ```python @@ -1069,32 +1592,29 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() -limit = 56 # int | (optional) -starting_after = 'starting_after_example' # str | (optional) -ending_before = 'ending_before_example' # str | (optional) +api_instance = clever.DataApi(clever.ApiClient(configuration)) +id = 'id_example' # str | try: - api_response = api_instance.get_schools(limit=limit, starting_after=starting_after, ending_before=ending_before) + api_response = api_instance.get_section(id) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_schools: %s\n" % e) + print("Exception when calling DataApi->get_section: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **int**| | [optional] - **starting_after** | **str**| | [optional] - **ending_before** | **str**| | [optional] + **id** | **str**| | ### Return type -[**SchoolsResponse**](SchoolsResponse.md) +[**SectionResponse**](SectionResponse.md) ### Authorization @@ -1107,12 +1627,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_schools_for_school_admin** -> SchoolsResponse get_schools_for_school_admin(id, limit=limit, starting_after=starting_after, ending_before=ending_before) +# **get_sections** +> SectionsResponse get_sections(limit=limit, starting_after=starting_after, ending_before=ending_before) -Returns the schools for a school admin +Returns a list of sections ### Example ```python @@ -1123,34 +1643,33 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() -id = 'id_example' # str | +api_instance = clever.DataApi(clever.ApiClient(configuration)) limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) try: - api_response = api_instance.get_schools_for_school_admin(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + api_response = api_instance.get_sections(limit=limit, starting_after=starting_after, ending_before=ending_before) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_schools_for_school_admin: %s\n" % e) + print("Exception when calling DataApi->get_sections: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| | **limit** | **int**| | [optional] **starting_after** | **str**| | [optional] **ending_before** | **str**| | [optional] ### Return type -[**SchoolsResponse**](SchoolsResponse.md) +[**SectionsResponse**](SectionsResponse.md) ### Authorization @@ -1163,12 +1682,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_section** -> SectionResponse get_section(id) +# **get_sections_for_course** +> SectionsResponse get_sections_for_course(id, limit=limit, starting_after=starting_after, ending_before=ending_before) -Returns a specific section +Returns the sections for a Courses ### Example ```python @@ -1179,17 +1698,21 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) try: - api_response = api_instance.get_section(id) + api_response = api_instance.get_sections_for_course(id, limit=limit, starting_after=starting_after, ending_before=ending_before) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_section: %s\n" % e) + print("Exception when calling DataApi->get_sections_for_course: %s\n" % e) ``` ### Parameters @@ -1197,10 +1720,13 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] ### Return type -[**SectionResponse**](SectionResponse.md) +[**SectionsResponse**](SectionsResponse.md) ### Authorization @@ -1213,12 +1739,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_sections** -> SectionsResponse get_sections(limit=limit, starting_after=starting_after, ending_before=ending_before) +# **get_sections_for_school** +> SectionsResponse get_sections_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) -Returns a list of sections +Returns the sections for a school ### Example ```python @@ -1229,25 +1755,28 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) +id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) try: - api_response = api_instance.get_sections(limit=limit, starting_after=starting_after, ending_before=ending_before) + api_response = api_instance.get_sections_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_sections: %s\n" % e) + print("Exception when calling DataApi->get_sections_for_school: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **id** | **str**| | **limit** | **int**| | [optional] **starting_after** | **str**| | [optional] **ending_before** | **str**| | [optional] @@ -1267,12 +1796,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_sections_for_school** -> SectionsResponse get_sections_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) +# **get_sections_for_student** +> SectionsResponse get_sections_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) -Returns the sections for a school +Returns the sections for a student ### Example ```python @@ -1283,20 +1812,21 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) try: - api_response = api_instance.get_sections_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + api_response = api_instance.get_sections_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_sections_for_school: %s\n" % e) + print("Exception when calling DataApi->get_sections_for_student: %s\n" % e) ``` ### Parameters @@ -1323,12 +1853,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_sections_for_student** -> SectionsResponse get_sections_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) +# **get_sections_for_teacher** +> SectionsResponse get_sections_for_teacher(id, limit=limit, starting_after=starting_after, ending_before=ending_before) -Returns the sections for a student +Returns the sections for a teacher ### Example ```python @@ -1339,20 +1869,21 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) try: - api_response = api_instance.get_sections_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + api_response = api_instance.get_sections_for_teacher(id, limit=limit, starting_after=starting_after, ending_before=ending_before) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_sections_for_student: %s\n" % e) + print("Exception when calling DataApi->get_sections_for_teacher: %s\n" % e) ``` ### Parameters @@ -1379,12 +1910,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_sections_for_teacher** -> SectionsResponse get_sections_for_teacher(id, limit=limit, starting_after=starting_after, ending_before=ending_before) +# **get_sections_for_term** +> SectionsResponse get_sections_for_term(id, limit=limit, starting_after=starting_after, ending_before=ending_before) -Returns the sections for a teacher +Returns the sections for a term ### Example ```python @@ -1395,20 +1926,21 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) try: - api_response = api_instance.get_sections_for_teacher(id, limit=limit, starting_after=starting_after, ending_before=ending_before) + api_response = api_instance.get_sections_for_term(id, limit=limit, starting_after=starting_after, ending_before=ending_before) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_sections_for_teacher: %s\n" % e) + print("Exception when calling DataApi->get_sections_for_term: %s\n" % e) ``` ### Parameters @@ -1451,10 +1983,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: @@ -1485,12 +2018,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_student_for_contact** -> StudentResponse get_student_for_contact(id) +# **get_students** +> StudentsResponse get_students(limit=limit, starting_after=starting_after, ending_before=ending_before) -Returns the student for a student contact +Returns a list of students ### Example ```python @@ -1501,28 +2034,33 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() -id = 'id_example' # str | +api_instance = clever.DataApi(clever.ApiClient(configuration)) +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) try: - api_response = api_instance.get_student_for_contact(id) + api_response = api_instance.get_students(limit=limit, starting_after=starting_after, ending_before=ending_before) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_student_for_contact: %s\n" % e) + print("Exception when calling DataApi->get_students: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| | + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] ### Return type -[**StudentResponse**](StudentResponse.md) +[**StudentsResponse**](StudentsResponse.md) ### Authorization @@ -1535,12 +2073,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **get_students** -> StudentsResponse get_students(limit=limit, starting_after=starting_after, ending_before=ending_before) +# **get_students_for_contact** +> StudentsResponse get_students_for_contact(id, limit=limit, starting_after=starting_after, ending_before=ending_before) -Returns a list of students +Returns the students for a student contact ### Example ```python @@ -1551,25 +2089,28 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) +id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) try: - api_response = api_instance.get_students(limit=limit, starting_after=starting_after, ending_before=ending_before) + api_response = api_instance.get_students_for_contact(id, limit=limit, starting_after=starting_after, ending_before=ending_before) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->get_students: %s\n" % e) + print("Exception when calling DataApi->get_students_for_contact: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **id** | **str**| | **limit** | **int**| | [optional] **starting_after** | **str**| | [optional] **ending_before** | **str**| | [optional] @@ -1605,10 +2146,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -1661,10 +2203,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -1717,10 +2260,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -1773,10 +2317,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: @@ -1823,10 +2368,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: @@ -1873,10 +2419,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) @@ -1927,10 +2474,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -1983,10 +2531,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -2039,10 +2588,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) id = 'id_example' # str | limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) @@ -2079,3 +2629,160 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) +# **get_term** +> TermResponse get_term(id) + + + +Returns a specific term + +### Example +```python +from __future__ import print_function +import time +import clever +from clever.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = clever.DataApi(clever.ApiClient(configuration)) +id = 'id_example' # str | + +try: + api_response = api_instance.get_term(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_term: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**TermResponse**](TermResponse.md) + +### Authorization + +[oauth](README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **get_term_for_section** +> TermResponse get_term_for_section(id) + + + +Returns the term for a section + +### Example +```python +from __future__ import print_function +import time +import clever +from clever.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = clever.DataApi(clever.ApiClient(configuration)) +id = 'id_example' # str | + +try: + api_response = api_instance.get_term_for_section(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_term_for_section: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**TermResponse**](TermResponse.md) + +### Authorization + +[oauth](README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **get_terms** +> TermsResponse get_terms(limit=limit, starting_after=starting_after, ending_before=ending_before) + + + +Returns a list of terms + +### Example +```python +from __future__ import print_function +import time +import clever +from clever.rest import ApiException +from pprint import pprint + +# Configure OAuth2 access token for authorization: oauth +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# create an instance of the API class +api_instance = clever.DataApi(clever.ApiClient(configuration)) +limit = 56 # int | (optional) +starting_after = 'starting_after_example' # str | (optional) +ending_before = 'ending_before_example' # str | (optional) + +try: + api_response = api_instance.get_terms(limit=limit, starting_after=starting_after, ending_before=ending_before) + pprint(api_response) +except ApiException as e: + print("Exception when calling DataApi->get_terms: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| | [optional] + **starting_after** | **str**| | [optional] + **ending_before** | **str**| | [optional] + +### Return type + +[**TermsResponse**](TermsResponse.md) + +### Authorization + +[oauth](README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + diff --git a/docs/District.md b/docs/District.md index 34f0515..44e0a70 100644 --- a/docs/District.md +++ b/docs/District.md @@ -3,9 +3,17 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**error** | **str** | | [optional] **id** | **str** | | [optional] +**last_sync** | **str** | | [optional] +**launch_date** | **str** | | [optional] **mdr_number** | **str** | | [optional] **name** | **str** | | [optional] +**nces_id** | **str** | | [optional] +**pause_end** | **str** | | [optional] +**pause_start** | **str** | | [optional] +**sis_type** | **str** | | [optional] +**state** | **str** | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictAdminObject.md b/docs/DistrictAdminObject.md new file mode 100644 index 0000000..5a81ae9 --- /dev/null +++ b/docs/DistrictAdminObject.md @@ -0,0 +1,10 @@ +# DistrictAdminObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object** | [**DistrictAdmin**](DistrictAdmin.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DistrictAdminsResponse.md b/docs/DistrictAdminsResponse.md index c933d79..d3e6b3a 100644 --- a/docs/DistrictAdminsResponse.md +++ b/docs/DistrictAdminsResponse.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**list[DistrictAdmin]**](DistrictAdmin.md) | | [optional] +**data** | [**list[DistrictAdminResponse]**](DistrictAdminResponse.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictadminsCreated.md b/docs/DistrictadminsCreated.md new file mode 100644 index 0000000..bcbada7 --- /dev/null +++ b/docs/DistrictadminsCreated.md @@ -0,0 +1,10 @@ +# DistrictadminsCreated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**DistrictAdminObject**](DistrictAdminObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DistrictadminsDeleted.md b/docs/DistrictadminsDeleted.md new file mode 100644 index 0000000..506db19 --- /dev/null +++ b/docs/DistrictadminsDeleted.md @@ -0,0 +1,10 @@ +# DistrictadminsDeleted + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**DistrictAdminObject**](DistrictAdminObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DistrictadminsUpdated.md b/docs/DistrictadminsUpdated.md new file mode 100644 index 0000000..fe303a4 --- /dev/null +++ b/docs/DistrictadminsUpdated.md @@ -0,0 +1,10 @@ +# DistrictadminsUpdated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**DistrictAdminObject**](DistrictAdminObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DistrictsCreated.md b/docs/DistrictsCreated.md index 5ab1c62..fe6213d 100644 --- a/docs/DistrictsCreated.md +++ b/docs/DistrictsCreated.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**DistrictObject**](DistrictObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictsDeleted.md b/docs/DistrictsDeleted.md index d76b6f7..cedd6ea 100644 --- a/docs/DistrictsDeleted.md +++ b/docs/DistrictsDeleted.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**DistrictObject**](DistrictObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictsUpdated.md b/docs/DistrictsUpdated.md index ca2ab85..ac30914 100644 --- a/docs/DistrictsUpdated.md +++ b/docs/DistrictsUpdated.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**DistrictObject**](DistrictObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/EventsApi.md b/docs/EventsApi.md index 00a67f4..49b2d89 100644 --- a/docs/EventsApi.md +++ b/docs/EventsApi.md @@ -1,16 +1,11 @@ # clever.EventsApi -All URIs are relative to *https://api.clever.com/v1.2* +All URIs are relative to *https://api.clever.com/v2.0* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_event**](EventsApi.md#get_event) | **GET** /events/{id} | [**get_events**](EventsApi.md#get_events) | **GET** /events | -[**get_events_for_school**](EventsApi.md#get_events_for_school) | **GET** /schools/{id}/events | -[**get_events_for_school_admin**](EventsApi.md#get_events_for_school_admin) | **GET** /school_admins/{id}/events | -[**get_events_for_section**](EventsApi.md#get_events_for_section) | **GET** /sections/{id}/events | -[**get_events_for_student**](EventsApi.md#get_events_for_student) | **GET** /students/{id}/events | -[**get_events_for_teacher**](EventsApi.md#get_events_for_teacher) | **GET** /teachers/{id}/events | # **get_event** @@ -29,10 +24,11 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.EventsApi() +api_instance = clever.EventsApi(clever.ApiClient(configuration)) id = 'id_example' # str | try: @@ -64,7 +60,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) # **get_events** -> EventsResponse get_events(limit=limit, starting_after=starting_after, ending_before=ending_before) +> EventsResponse get_events(limit=limit, starting_after=starting_after, ending_before=ending_before, school=school, record_type=record_type) @@ -79,16 +75,19 @@ from clever.rest import ApiException from pprint import pprint # Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' # create an instance of the API class -api_instance = clever.EventsApi() +api_instance = clever.EventsApi(clever.ApiClient(configuration)) limit = 56 # int | (optional) starting_after = 'starting_after_example' # str | (optional) ending_before = 'ending_before_example' # str | (optional) +school = 'school_example' # str | (optional) +record_type = ['record_type_example'] # list[str] | (optional) try: - api_response = api_instance.get_events(limit=limit, starting_after=starting_after, ending_before=ending_before) + api_response = api_instance.get_events(limit=limit, starting_after=starting_after, ending_before=ending_before, school=school, record_type=record_type) pprint(api_response) except ApiException as e: print("Exception when calling EventsApi->get_events: %s\n" % e) @@ -101,286 +100,8 @@ Name | Type | Description | Notes **limit** | **int**| | [optional] **starting_after** | **str**| | [optional] **ending_before** | **str**| | [optional] - -### Return type - -[**EventsResponse**](EventsResponse.md) - -### Authorization - -[oauth](README.md#oauth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **get_events_for_school** -> EventsResponse get_events_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) - - - -Returns a list of events for a school - -### Example -```python -from __future__ import print_function -import time -import clever -from clever.rest import ApiException -from pprint import pprint - -# Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# create an instance of the API class -api_instance = clever.EventsApi() -id = 'id_example' # str | -limit = 56 # int | (optional) -starting_after = 'starting_after_example' # str | (optional) -ending_before = 'ending_before_example' # str | (optional) - -try: - api_response = api_instance.get_events_for_school(id, limit=limit, starting_after=starting_after, ending_before=ending_before) - pprint(api_response) -except ApiException as e: - print("Exception when calling EventsApi->get_events_for_school: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| | - **limit** | **int**| | [optional] - **starting_after** | **str**| | [optional] - **ending_before** | **str**| | [optional] - -### Return type - -[**EventsResponse**](EventsResponse.md) - -### Authorization - -[oauth](README.md#oauth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **get_events_for_school_admin** -> EventsResponse get_events_for_school_admin(id, limit=limit, starting_after=starting_after, ending_before=ending_before) - - - -Returns a list of events for a school admin - -### Example -```python -from __future__ import print_function -import time -import clever -from clever.rest import ApiException -from pprint import pprint - -# Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# create an instance of the API class -api_instance = clever.EventsApi() -id = 'id_example' # str | -limit = 56 # int | (optional) -starting_after = 'starting_after_example' # str | (optional) -ending_before = 'ending_before_example' # str | (optional) - -try: - api_response = api_instance.get_events_for_school_admin(id, limit=limit, starting_after=starting_after, ending_before=ending_before) - pprint(api_response) -except ApiException as e: - print("Exception when calling EventsApi->get_events_for_school_admin: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| | - **limit** | **int**| | [optional] - **starting_after** | **str**| | [optional] - **ending_before** | **str**| | [optional] - -### Return type - -[**EventsResponse**](EventsResponse.md) - -### Authorization - -[oauth](README.md#oauth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **get_events_for_section** -> EventsResponse get_events_for_section(id, limit=limit, starting_after=starting_after, ending_before=ending_before) - - - -Returns a list of events for a section - -### Example -```python -from __future__ import print_function -import time -import clever -from clever.rest import ApiException -from pprint import pprint - -# Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# create an instance of the API class -api_instance = clever.EventsApi() -id = 'id_example' # str | -limit = 56 # int | (optional) -starting_after = 'starting_after_example' # str | (optional) -ending_before = 'ending_before_example' # str | (optional) - -try: - api_response = api_instance.get_events_for_section(id, limit=limit, starting_after=starting_after, ending_before=ending_before) - pprint(api_response) -except ApiException as e: - print("Exception when calling EventsApi->get_events_for_section: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| | - **limit** | **int**| | [optional] - **starting_after** | **str**| | [optional] - **ending_before** | **str**| | [optional] - -### Return type - -[**EventsResponse**](EventsResponse.md) - -### Authorization - -[oauth](README.md#oauth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **get_events_for_student** -> EventsResponse get_events_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) - - - -Returns a list of events for a student - -### Example -```python -from __future__ import print_function -import time -import clever -from clever.rest import ApiException -from pprint import pprint - -# Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# create an instance of the API class -api_instance = clever.EventsApi() -id = 'id_example' # str | -limit = 56 # int | (optional) -starting_after = 'starting_after_example' # str | (optional) -ending_before = 'ending_before_example' # str | (optional) - -try: - api_response = api_instance.get_events_for_student(id, limit=limit, starting_after=starting_after, ending_before=ending_before) - pprint(api_response) -except ApiException as e: - print("Exception when calling EventsApi->get_events_for_student: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| | - **limit** | **int**| | [optional] - **starting_after** | **str**| | [optional] - **ending_before** | **str**| | [optional] - -### Return type - -[**EventsResponse**](EventsResponse.md) - -### Authorization - -[oauth](README.md#oauth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **get_events_for_teacher** -> EventsResponse get_events_for_teacher(id, limit=limit, starting_after=starting_after, ending_before=ending_before) - - - -Returns a list of events for a teacher - -### Example -```python -from __future__ import print_function -import time -import clever -from clever.rest import ApiException -from pprint import pprint - -# Configure OAuth2 access token for authorization: oauth -clever.configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# create an instance of the API class -api_instance = clever.EventsApi() -id = 'id_example' # str | -limit = 56 # int | (optional) -starting_after = 'starting_after_example' # str | (optional) -ending_before = 'ending_before_example' # str | (optional) - -try: - api_response = api_instance.get_events_for_teacher(id, limit=limit, starting_after=starting_after, ending_before=ending_before) - pprint(api_response) -except ApiException as e: - print("Exception when calling EventsApi->get_events_for_teacher: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| | - **limit** | **int**| | [optional] - **starting_after** | **str**| | [optional] - **ending_before** | **str**| | [optional] + **school** | **str**| | [optional] + **record_type** | [**list[str]**](str.md)| | [optional] ### Return type diff --git a/docs/README.md b/docs/README.md index 7ba0b75..6b820c6 100644 --- a/docs/README.md +++ b/docs/README.md @@ -3,82 +3,94 @@ The Clever API This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: -- API version: 1.2.0 +- API version: 2.0.0 - Package version: 3.0.0 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Documentation for API Endpoints -All URIs are relative to *https://api.clever.com/v1.2* +All URIs are relative to *https://api.clever.com/v2.0* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*DataApi* | [**get_contact**](DataApi.md#get_contact) | **GET** /contacts/{id} | -*DataApi* | [**get_contacts**](DataApi.md#get_contacts) | **GET** /contacts | -*DataApi* | [**get_contacts_for_student**](DataApi.md#get_contacts_for_student) | **GET** /students/{id}/contacts | -*DataApi* | [**get_district**](DataApi.md#get_district) | **GET** /districts/{id} | -*DataApi* | [**get_district_admin**](DataApi.md#get_district_admin) | **GET** /district_admins/{id} | -*DataApi* | [**get_district_admins**](DataApi.md#get_district_admins) | **GET** /district_admins | -*DataApi* | [**get_district_for_school**](DataApi.md#get_district_for_school) | **GET** /schools/{id}/district | -*DataApi* | [**get_district_for_section**](DataApi.md#get_district_for_section) | **GET** /sections/{id}/district | -*DataApi* | [**get_district_for_student**](DataApi.md#get_district_for_student) | **GET** /students/{id}/district | -*DataApi* | [**get_district_for_student_contact**](DataApi.md#get_district_for_student_contact) | **GET** /contacts/{id}/district | -*DataApi* | [**get_district_for_teacher**](DataApi.md#get_district_for_teacher) | **GET** /teachers/{id}/district | -*DataApi* | [**get_district_status**](DataApi.md#get_district_status) | **GET** /districts/{id}/status | -*DataApi* | [**get_districts**](DataApi.md#get_districts) | **GET** /districts | -*DataApi* | [**get_grade_levels_for_teacher**](DataApi.md#get_grade_levels_for_teacher) | **GET** /teachers/{id}/grade_levels | -*DataApi* | [**get_school**](DataApi.md#get_school) | **GET** /schools/{id} | -*DataApi* | [**get_school_admin**](DataApi.md#get_school_admin) | **GET** /school_admins/{id} | -*DataApi* | [**get_school_admins**](DataApi.md#get_school_admins) | **GET** /school_admins | -*DataApi* | [**get_school_for_section**](DataApi.md#get_school_for_section) | **GET** /sections/{id}/school | -*DataApi* | [**get_school_for_student**](DataApi.md#get_school_for_student) | **GET** /students/{id}/school | -*DataApi* | [**get_school_for_teacher**](DataApi.md#get_school_for_teacher) | **GET** /teachers/{id}/school | -*DataApi* | [**get_schools**](DataApi.md#get_schools) | **GET** /schools | -*DataApi* | [**get_schools_for_school_admin**](DataApi.md#get_schools_for_school_admin) | **GET** /school_admins/{id}/schools | -*DataApi* | [**get_section**](DataApi.md#get_section) | **GET** /sections/{id} | -*DataApi* | [**get_sections**](DataApi.md#get_sections) | **GET** /sections | -*DataApi* | [**get_sections_for_school**](DataApi.md#get_sections_for_school) | **GET** /schools/{id}/sections | -*DataApi* | [**get_sections_for_student**](DataApi.md#get_sections_for_student) | **GET** /students/{id}/sections | -*DataApi* | [**get_sections_for_teacher**](DataApi.md#get_sections_for_teacher) | **GET** /teachers/{id}/sections | -*DataApi* | [**get_student**](DataApi.md#get_student) | **GET** /students/{id} | -*DataApi* | [**get_student_for_contact**](DataApi.md#get_student_for_contact) | **GET** /contacts/{id}/student | -*DataApi* | [**get_students**](DataApi.md#get_students) | **GET** /students | -*DataApi* | [**get_students_for_school**](DataApi.md#get_students_for_school) | **GET** /schools/{id}/students | -*DataApi* | [**get_students_for_section**](DataApi.md#get_students_for_section) | **GET** /sections/{id}/students | -*DataApi* | [**get_students_for_teacher**](DataApi.md#get_students_for_teacher) | **GET** /teachers/{id}/students | -*DataApi* | [**get_teacher**](DataApi.md#get_teacher) | **GET** /teachers/{id} | -*DataApi* | [**get_teacher_for_section**](DataApi.md#get_teacher_for_section) | **GET** /sections/{id}/teacher | -*DataApi* | [**get_teachers**](DataApi.md#get_teachers) | **GET** /teachers | -*DataApi* | [**get_teachers_for_school**](DataApi.md#get_teachers_for_school) | **GET** /schools/{id}/teachers | -*DataApi* | [**get_teachers_for_section**](DataApi.md#get_teachers_for_section) | **GET** /sections/{id}/teachers | -*DataApi* | [**get_teachers_for_student**](DataApi.md#get_teachers_for_student) | **GET** /students/{id}/teachers | -*EventsApi* | [**get_event**](EventsApi.md#get_event) | **GET** /events/{id} | -*EventsApi* | [**get_events**](EventsApi.md#get_events) | **GET** /events | -*EventsApi* | [**get_events_for_school**](EventsApi.md#get_events_for_school) | **GET** /schools/{id}/events | -*EventsApi* | [**get_events_for_school_admin**](EventsApi.md#get_events_for_school_admin) | **GET** /school_admins/{id}/events | -*EventsApi* | [**get_events_for_section**](EventsApi.md#get_events_for_section) | **GET** /sections/{id}/events | -*EventsApi* | [**get_events_for_student**](EventsApi.md#get_events_for_student) | **GET** /students/{id}/events | -*EventsApi* | [**get_events_for_teacher**](EventsApi.md#get_events_for_teacher) | **GET** /teachers/{id}/events | +*DataApi* | [**get_contact**](DataApi.md#get_contact) | **GET** /contacts/{id} | +*DataApi* | [**get_contacts**](DataApi.md#get_contacts) | **GET** /contacts | +*DataApi* | [**get_contacts_for_student**](DataApi.md#get_contacts_for_student) | **GET** /students/{id}/contacts | +*DataApi* | [**get_course**](DataApi.md#get_course) | **GET** /courses/{id} | +*DataApi* | [**get_course_for_section**](DataApi.md#get_course_for_section) | **GET** /sections/{id}/course | +*DataApi* | [**get_courses**](DataApi.md#get_courses) | **GET** /courses | +*DataApi* | [**get_district**](DataApi.md#get_district) | **GET** /districts/{id} | +*DataApi* | [**get_district_admin**](DataApi.md#get_district_admin) | **GET** /district_admins/{id} | +*DataApi* | [**get_district_admins**](DataApi.md#get_district_admins) | **GET** /district_admins | +*DataApi* | [**get_district_for_contact**](DataApi.md#get_district_for_contact) | **GET** /contacts/{id}/district | +*DataApi* | [**get_district_for_course**](DataApi.md#get_district_for_course) | **GET** /courses/{id}/district | +*DataApi* | [**get_district_for_district_admin**](DataApi.md#get_district_for_district_admin) | **GET** /district_admins/{id}/district | +*DataApi* | [**get_district_for_school**](DataApi.md#get_district_for_school) | **GET** /schools/{id}/district | +*DataApi* | [**get_district_for_school_admin**](DataApi.md#get_district_for_school_admin) | **GET** /school_admins/{id}/district | +*DataApi* | [**get_district_for_section**](DataApi.md#get_district_for_section) | **GET** /sections/{id}/district | +*DataApi* | [**get_district_for_student**](DataApi.md#get_district_for_student) | **GET** /students/{id}/district | +*DataApi* | [**get_district_for_teacher**](DataApi.md#get_district_for_teacher) | **GET** /teachers/{id}/district | +*DataApi* | [**get_district_for_term**](DataApi.md#get_district_for_term) | **GET** /terms/{id}/district | +*DataApi* | [**get_districts**](DataApi.md#get_districts) | **GET** /districts | +*DataApi* | [**get_school**](DataApi.md#get_school) | **GET** /schools/{id} | +*DataApi* | [**get_school_admin**](DataApi.md#get_school_admin) | **GET** /school_admins/{id} | +*DataApi* | [**get_school_admins**](DataApi.md#get_school_admins) | **GET** /school_admins | +*DataApi* | [**get_school_for_section**](DataApi.md#get_school_for_section) | **GET** /sections/{id}/school | +*DataApi* | [**get_school_for_student**](DataApi.md#get_school_for_student) | **GET** /students/{id}/school | +*DataApi* | [**get_school_for_teacher**](DataApi.md#get_school_for_teacher) | **GET** /teachers/{id}/school | +*DataApi* | [**get_schools**](DataApi.md#get_schools) | **GET** /schools | +*DataApi* | [**get_schools_for_school_admin**](DataApi.md#get_schools_for_school_admin) | **GET** /school_admins/{id}/schools | +*DataApi* | [**get_schools_for_student**](DataApi.md#get_schools_for_student) | **GET** /students/{id}/schools | +*DataApi* | [**get_schools_for_teacher**](DataApi.md#get_schools_for_teacher) | **GET** /teachers/{id}/schools | +*DataApi* | [**get_section**](DataApi.md#get_section) | **GET** /sections/{id} | +*DataApi* | [**get_sections**](DataApi.md#get_sections) | **GET** /sections | +*DataApi* | [**get_sections_for_course**](DataApi.md#get_sections_for_course) | **GET** /courses/{id}/sections | +*DataApi* | [**get_sections_for_school**](DataApi.md#get_sections_for_school) | **GET** /schools/{id}/sections | +*DataApi* | [**get_sections_for_student**](DataApi.md#get_sections_for_student) | **GET** /students/{id}/sections | +*DataApi* | [**get_sections_for_teacher**](DataApi.md#get_sections_for_teacher) | **GET** /teachers/{id}/sections | +*DataApi* | [**get_sections_for_term**](DataApi.md#get_sections_for_term) | **GET** /terms/{id}/sections | +*DataApi* | [**get_student**](DataApi.md#get_student) | **GET** /students/{id} | +*DataApi* | [**get_students**](DataApi.md#get_students) | **GET** /students | +*DataApi* | [**get_students_for_contact**](DataApi.md#get_students_for_contact) | **GET** /contacts/{id}/students | +*DataApi* | [**get_students_for_school**](DataApi.md#get_students_for_school) | **GET** /schools/{id}/students | +*DataApi* | [**get_students_for_section**](DataApi.md#get_students_for_section) | **GET** /sections/{id}/students | +*DataApi* | [**get_students_for_teacher**](DataApi.md#get_students_for_teacher) | **GET** /teachers/{id}/students | +*DataApi* | [**get_teacher**](DataApi.md#get_teacher) | **GET** /teachers/{id} | +*DataApi* | [**get_teacher_for_section**](DataApi.md#get_teacher_for_section) | **GET** /sections/{id}/teacher | +*DataApi* | [**get_teachers**](DataApi.md#get_teachers) | **GET** /teachers | +*DataApi* | [**get_teachers_for_school**](DataApi.md#get_teachers_for_school) | **GET** /schools/{id}/teachers | +*DataApi* | [**get_teachers_for_section**](DataApi.md#get_teachers_for_section) | **GET** /sections/{id}/teachers | +*DataApi* | [**get_teachers_for_student**](DataApi.md#get_teachers_for_student) | **GET** /students/{id}/teachers | +*DataApi* | [**get_term**](DataApi.md#get_term) | **GET** /terms/{id} | +*DataApi* | [**get_term_for_section**](DataApi.md#get_term_for_section) | **GET** /sections/{id}/term | +*DataApi* | [**get_terms**](DataApi.md#get_terms) | **GET** /terms | +*EventsApi* | [**get_event**](EventsApi.md#get_event) | **GET** /events/{id} | +*EventsApi* | [**get_events**](EventsApi.md#get_events) | **GET** /events | ## Documentation For Models - [BadRequest](BadRequest.md) + - [Contact](Contact.md) + - [ContactObject](ContactObject.md) + - [ContactResponse](ContactResponse.md) + - [ContactsResponse](ContactsResponse.md) + - [Course](Course.md) + - [CourseObject](CourseObject.md) + - [CourseResponse](CourseResponse.md) + - [CoursesResponse](CoursesResponse.md) - [Credentials](Credentials.md) - [District](District.md) - [DistrictAdmin](DistrictAdmin.md) + - [DistrictAdminObject](DistrictAdminObject.md) - [DistrictAdminResponse](DistrictAdminResponse.md) - [DistrictAdminsResponse](DistrictAdminsResponse.md) - [DistrictObject](DistrictObject.md) - [DistrictResponse](DistrictResponse.md) - - [DistrictStatus](DistrictStatus.md) - - [DistrictStatusResponse](DistrictStatusResponse.md) - - [DistrictStatusResponses](DistrictStatusResponses.md) - [DistrictsResponse](DistrictsResponse.md) - [Event](Event.md) - [EventResponse](EventResponse.md) - [EventsResponse](EventsResponse.md) - - [GradeLevelsResponse](GradeLevelsResponse.md) - [InternalError](InternalError.md) - [Location](Location.md) - [Name](Name.md) @@ -97,11 +109,6 @@ Class | Method | HTTP request | Description - [SectionResponse](SectionResponse.md) - [SectionsResponse](SectionsResponse.md) - [Student](Student.md) - - [StudentContact](StudentContact.md) - - [StudentContactObject](StudentContactObject.md) - - [StudentContactResponse](StudentContactResponse.md) - - [StudentContactsForStudentResponse](StudentContactsForStudentResponse.md) - - [StudentContactsResponse](StudentContactsResponse.md) - [StudentObject](StudentObject.md) - [StudentResponse](StudentResponse.md) - [StudentsResponse](StudentsResponse.md) @@ -110,6 +117,18 @@ Class | Method | HTTP request | Description - [TeacherResponse](TeacherResponse.md) - [TeachersResponse](TeachersResponse.md) - [Term](Term.md) + - [TermObject](TermObject.md) + - [TermResponse](TermResponse.md) + - [TermsResponse](TermsResponse.md) + - [ContactsCreated](ContactsCreated.md) + - [ContactsDeleted](ContactsDeleted.md) + - [ContactsUpdated](ContactsUpdated.md) + - [CoursesCreated](CoursesCreated.md) + - [CoursesDeleted](CoursesDeleted.md) + - [CoursesUpdated](CoursesUpdated.md) + - [DistrictadminsCreated](DistrictadminsCreated.md) + - [DistrictadminsDeleted](DistrictadminsDeleted.md) + - [DistrictadminsUpdated](DistrictadminsUpdated.md) - [DistrictsCreated](DistrictsCreated.md) - [DistrictsDeleted](DistrictsDeleted.md) - [DistrictsUpdated](DistrictsUpdated.md) @@ -122,15 +141,15 @@ Class | Method | HTTP request | Description - [SectionsCreated](SectionsCreated.md) - [SectionsDeleted](SectionsDeleted.md) - [SectionsUpdated](SectionsUpdated.md) - - [StudentcontactsCreated](StudentcontactsCreated.md) - - [StudentcontactsDeleted](StudentcontactsDeleted.md) - - [StudentcontactsUpdated](StudentcontactsUpdated.md) - [StudentsCreated](StudentsCreated.md) - [StudentsDeleted](StudentsDeleted.md) - [StudentsUpdated](StudentsUpdated.md) - [TeachersCreated](TeachersCreated.md) - [TeachersDeleted](TeachersDeleted.md) - [TeachersUpdated](TeachersUpdated.md) + - [TermsCreated](TermsCreated.md) + - [TermsDeleted](TermsDeleted.md) + - [TermsUpdated](TermsUpdated.md) ## Documentation For Authorization @@ -142,3 +161,8 @@ Class | Method | HTTP request | Description - **Flow**: accessCode - **Authorization URL**: https://clever.com/oauth/authorize - **Scopes**: N/A + + + + + diff --git a/docs/SchooladminsCreated.md b/docs/SchooladminsCreated.md index 8a59b42..6fa55db 100644 --- a/docs/SchooladminsCreated.md +++ b/docs/SchooladminsCreated.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**SchoolAdminObject**](SchoolAdminObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchooladminsDeleted.md b/docs/SchooladminsDeleted.md index aa1c016..bc8b06e 100644 --- a/docs/SchooladminsDeleted.md +++ b/docs/SchooladminsDeleted.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**SchoolAdminObject**](SchoolAdminObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchooladminsUpdated.md b/docs/SchooladminsUpdated.md index 77be0d7..98e80b8 100644 --- a/docs/SchooladminsUpdated.md +++ b/docs/SchooladminsUpdated.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**SchoolAdminObject**](SchoolAdminObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchoolsCreated.md b/docs/SchoolsCreated.md index c0bfc7b..29ceb8c 100644 --- a/docs/SchoolsCreated.md +++ b/docs/SchoolsCreated.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**SchoolObject**](SchoolObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchoolsDeleted.md b/docs/SchoolsDeleted.md index 52a4b6f..0d3556b 100644 --- a/docs/SchoolsDeleted.md +++ b/docs/SchoolsDeleted.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**SchoolObject**](SchoolObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SchoolsUpdated.md b/docs/SchoolsUpdated.md index 034b901..c679c48 100644 --- a/docs/SchoolsUpdated.md +++ b/docs/SchoolsUpdated.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**SchoolObject**](SchoolObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/Section.md b/docs/Section.md index 86a7302..2d4f990 100644 --- a/docs/Section.md +++ b/docs/Section.md @@ -3,9 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**course_description** | **str** | | [optional] -**course_name** | **str** | | [optional] -**course_number** | **str** | | [optional] +**course** | **str** | | [optional] **created** | **str** | | [optional] **district** | **str** | | [optional] **grade** | **str** | | [optional] @@ -20,7 +18,7 @@ Name | Type | Description | Notes **subject** | **str** | | [optional] **teacher** | **str** | | [optional] **teachers** | **list[str]** | | [optional] -**term** | [**Term**](Term.md) | | [optional] +**term_id** | **str** | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SectionsCreated.md b/docs/SectionsCreated.md index f7a6d2c..a14cf32 100644 --- a/docs/SectionsCreated.md +++ b/docs/SectionsCreated.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**SectionObject**](SectionObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SectionsDeleted.md b/docs/SectionsDeleted.md index 3602ae4..97f42c8 100644 --- a/docs/SectionsDeleted.md +++ b/docs/SectionsDeleted.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**SectionObject**](SectionObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/SectionsUpdated.md b/docs/SectionsUpdated.md index efed927..ff5b927 100644 --- a/docs/SectionsUpdated.md +++ b/docs/SectionsUpdated.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**SectionObject**](SectionObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/StudentsCreated.md b/docs/StudentsCreated.md index 0480260..a74f45c 100644 --- a/docs/StudentsCreated.md +++ b/docs/StudentsCreated.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**StudentObject**](StudentObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/StudentsDeleted.md b/docs/StudentsDeleted.md index a83eba4..ad44860 100644 --- a/docs/StudentsDeleted.md +++ b/docs/StudentsDeleted.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**StudentObject**](StudentObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/StudentsUpdated.md b/docs/StudentsUpdated.md index b1c34f0..a298c82 100644 --- a/docs/StudentsUpdated.md +++ b/docs/StudentsUpdated.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**StudentObject**](StudentObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/TeachersCreated.md b/docs/TeachersCreated.md index 153fdc0..4388cd2 100644 --- a/docs/TeachersCreated.md +++ b/docs/TeachersCreated.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**TeacherObject**](TeacherObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/TeachersDeleted.md b/docs/TeachersDeleted.md index c570d41..1a66858 100644 --- a/docs/TeachersDeleted.md +++ b/docs/TeachersDeleted.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**TeacherObject**](TeacherObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/TeachersUpdated.md b/docs/TeachersUpdated.md index 280564e..c6fcfe1 100644 --- a/docs/TeachersUpdated.md +++ b/docs/TeachersUpdated.md @@ -3,9 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**created** | **str** | | [optional] -**id** | **str** | | [optional] -**type** | **str** | | **data** | [**TeacherObject**](TeacherObject.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/Term.md b/docs/Term.md index 8c00abb..d1b29f4 100644 --- a/docs/Term.md +++ b/docs/Term.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **end_date** | **str** | | [optional] +**id** | **str** | | [optional] **name** | **str** | | [optional] **start_date** | **str** | | [optional] diff --git a/docs/TermObject.md b/docs/TermObject.md new file mode 100644 index 0000000..fe4f198 --- /dev/null +++ b/docs/TermObject.md @@ -0,0 +1,10 @@ +# TermObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object** | [**Term**](Term.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TermResponse.md b/docs/TermResponse.md new file mode 100644 index 0000000..0af469b --- /dev/null +++ b/docs/TermResponse.md @@ -0,0 +1,10 @@ +# TermResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**Term**](Term.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TermsCreated.md b/docs/TermsCreated.md new file mode 100644 index 0000000..aeccee5 --- /dev/null +++ b/docs/TermsCreated.md @@ -0,0 +1,10 @@ +# TermsCreated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**TermObject**](TermObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TermsDeleted.md b/docs/TermsDeleted.md new file mode 100644 index 0000000..b5001e6 --- /dev/null +++ b/docs/TermsDeleted.md @@ -0,0 +1,10 @@ +# TermsDeleted + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**TermObject**](TermObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TermsResponse.md b/docs/TermsResponse.md new file mode 100644 index 0000000..c755f04 --- /dev/null +++ b/docs/TermsResponse.md @@ -0,0 +1,10 @@ +# TermsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[TermResponse]**](TermResponse.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TermsUpdated.md b/docs/TermsUpdated.md new file mode 100644 index 0000000..39dc4f1 --- /dev/null +++ b/docs/TermsUpdated.md @@ -0,0 +1,10 @@ +# TermsUpdated + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**TermObject**](TermObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/setup.py b/setup.py index f160696..b07ee33 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ The Clever API - OpenAPI spec version: 1.2.0 + OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/test/test_contact.py b/test/test_contact.py new file mode 100644 index 0000000..d10c635 --- /dev/null +++ b/test/test_contact.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.contact import Contact + + +class TestContact(unittest.TestCase): + """ Contact unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContact(self): + """ + Test Contact + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.contact.Contact() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_contact_object.py b/test/test_contact_object.py new file mode 100644 index 0000000..90067e8 --- /dev/null +++ b/test/test_contact_object.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.contact_object import ContactObject + + +class TestContactObject(unittest.TestCase): + """ ContactObject unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContactObject(self): + """ + Test ContactObject + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.contact_object.ContactObject() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_contact_response.py b/test/test_contact_response.py new file mode 100644 index 0000000..3f0b114 --- /dev/null +++ b/test/test_contact_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.contact_response import ContactResponse + + +class TestContactResponse(unittest.TestCase): + """ ContactResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContactResponse(self): + """ + Test ContactResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.contact_response.ContactResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_contacts_created.py b/test/test_contacts_created.py new file mode 100644 index 0000000..c71051c --- /dev/null +++ b/test/test_contacts_created.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.contacts_created import ContactsCreated + + +class TestContactsCreated(unittest.TestCase): + """ ContactsCreated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContactsCreated(self): + """ + Test ContactsCreated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.contacts_created.ContactsCreated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_contacts_deleted.py b/test/test_contacts_deleted.py new file mode 100644 index 0000000..ae32fac --- /dev/null +++ b/test/test_contacts_deleted.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.contacts_deleted import ContactsDeleted + + +class TestContactsDeleted(unittest.TestCase): + """ ContactsDeleted unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContactsDeleted(self): + """ + Test ContactsDeleted + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.contacts_deleted.ContactsDeleted() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_contacts_response.py b/test/test_contacts_response.py new file mode 100644 index 0000000..2d94377 --- /dev/null +++ b/test/test_contacts_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.contacts_response import ContactsResponse + + +class TestContactsResponse(unittest.TestCase): + """ ContactsResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContactsResponse(self): + """ + Test ContactsResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.contacts_response.ContactsResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_contacts_updated.py b/test/test_contacts_updated.py new file mode 100644 index 0000000..91bff6f --- /dev/null +++ b/test/test_contacts_updated.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.contacts_updated import ContactsUpdated + + +class TestContactsUpdated(unittest.TestCase): + """ ContactsUpdated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContactsUpdated(self): + """ + Test ContactsUpdated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.contacts_updated.ContactsUpdated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_course.py b/test/test_course.py new file mode 100644 index 0000000..a660a7f --- /dev/null +++ b/test/test_course.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.course import Course + + +class TestCourse(unittest.TestCase): + """ Course unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCourse(self): + """ + Test Course + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.course.Course() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_course_object.py b/test/test_course_object.py new file mode 100644 index 0000000..fb54810 --- /dev/null +++ b/test/test_course_object.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.course_object import CourseObject + + +class TestCourseObject(unittest.TestCase): + """ CourseObject unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCourseObject(self): + """ + Test CourseObject + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.course_object.CourseObject() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_course_response.py b/test/test_course_response.py new file mode 100644 index 0000000..12b5ebc --- /dev/null +++ b/test/test_course_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.course_response import CourseResponse + + +class TestCourseResponse(unittest.TestCase): + """ CourseResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCourseResponse(self): + """ + Test CourseResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.course_response.CourseResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_courses_created.py b/test/test_courses_created.py new file mode 100644 index 0000000..6e736e3 --- /dev/null +++ b/test/test_courses_created.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.courses_created import CoursesCreated + + +class TestCoursesCreated(unittest.TestCase): + """ CoursesCreated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoursesCreated(self): + """ + Test CoursesCreated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.courses_created.CoursesCreated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_courses_deleted.py b/test/test_courses_deleted.py new file mode 100644 index 0000000..2c9e10b --- /dev/null +++ b/test/test_courses_deleted.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.courses_deleted import CoursesDeleted + + +class TestCoursesDeleted(unittest.TestCase): + """ CoursesDeleted unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoursesDeleted(self): + """ + Test CoursesDeleted + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.courses_deleted.CoursesDeleted() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_courses_response.py b/test/test_courses_response.py new file mode 100644 index 0000000..afd4597 --- /dev/null +++ b/test/test_courses_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.courses_response import CoursesResponse + + +class TestCoursesResponse(unittest.TestCase): + """ CoursesResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoursesResponse(self): + """ + Test CoursesResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.courses_response.CoursesResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_courses_updated.py b/test/test_courses_updated.py new file mode 100644 index 0000000..51d2248 --- /dev/null +++ b/test/test_courses_updated.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.courses_updated import CoursesUpdated + + +class TestCoursesUpdated(unittest.TestCase): + """ CoursesUpdated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoursesUpdated(self): + """ + Test CoursesUpdated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.courses_updated.CoursesUpdated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_district_admin_object.py b/test/test_district_admin_object.py new file mode 100644 index 0000000..364e1aa --- /dev/null +++ b/test/test_district_admin_object.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.district_admin_object import DistrictAdminObject + + +class TestDistrictAdminObject(unittest.TestCase): + """ DistrictAdminObject unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDistrictAdminObject(self): + """ + Test DistrictAdminObject + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.district_admin_object.DistrictAdminObject() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_districtadmins_created.py b/test/test_districtadmins_created.py new file mode 100644 index 0000000..1d6b9c9 --- /dev/null +++ b/test/test_districtadmins_created.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.districtadmins_created import DistrictadminsCreated + + +class TestDistrictadminsCreated(unittest.TestCase): + """ DistrictadminsCreated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDistrictadminsCreated(self): + """ + Test DistrictadminsCreated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.districtadmins_created.DistrictadminsCreated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_districtadmins_deleted.py b/test/test_districtadmins_deleted.py new file mode 100644 index 0000000..7bf4157 --- /dev/null +++ b/test/test_districtadmins_deleted.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.districtadmins_deleted import DistrictadminsDeleted + + +class TestDistrictadminsDeleted(unittest.TestCase): + """ DistrictadminsDeleted unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDistrictadminsDeleted(self): + """ + Test DistrictadminsDeleted + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.districtadmins_deleted.DistrictadminsDeleted() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_districtadmins_updated.py b/test/test_districtadmins_updated.py new file mode 100644 index 0000000..7e0ea8c --- /dev/null +++ b/test/test_districtadmins_updated.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.districtadmins_updated import DistrictadminsUpdated + + +class TestDistrictadminsUpdated(unittest.TestCase): + """ DistrictadminsUpdated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDistrictadminsUpdated(self): + """ + Test DistrictadminsUpdated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.districtadmins_updated.DistrictadminsUpdated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_term_object.py b/test/test_term_object.py new file mode 100644 index 0000000..ce93ae4 --- /dev/null +++ b/test/test_term_object.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.term_object import TermObject + + +class TestTermObject(unittest.TestCase): + """ TermObject unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTermObject(self): + """ + Test TermObject + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.term_object.TermObject() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_term_response.py b/test/test_term_response.py new file mode 100644 index 0000000..8c252d7 --- /dev/null +++ b/test/test_term_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.term_response import TermResponse + + +class TestTermResponse(unittest.TestCase): + """ TermResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTermResponse(self): + """ + Test TermResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.term_response.TermResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_terms_created.py b/test/test_terms_created.py new file mode 100644 index 0000000..fe3ba58 --- /dev/null +++ b/test/test_terms_created.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.terms_created import TermsCreated + + +class TestTermsCreated(unittest.TestCase): + """ TermsCreated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTermsCreated(self): + """ + Test TermsCreated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.terms_created.TermsCreated() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_terms_deleted.py b/test/test_terms_deleted.py new file mode 100644 index 0000000..ff18e25 --- /dev/null +++ b/test/test_terms_deleted.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.terms_deleted import TermsDeleted + + +class TestTermsDeleted(unittest.TestCase): + """ TermsDeleted unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTermsDeleted(self): + """ + Test TermsDeleted + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.terms_deleted.TermsDeleted() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_terms_response.py b/test/test_terms_response.py new file mode 100644 index 0000000..b14d4a3 --- /dev/null +++ b/test/test_terms_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.terms_response import TermsResponse + + +class TestTermsResponse(unittest.TestCase): + """ TermsResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTermsResponse(self): + """ + Test TermsResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.terms_response.TermsResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_terms_updated.py b/test/test_terms_updated.py new file mode 100644 index 0000000..4ba2ada --- /dev/null +++ b/test/test_terms_updated.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.terms_updated import TermsUpdated + + +class TestTermsUpdated(unittest.TestCase): + """ TermsUpdated unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTermsUpdated(self): + """ + Test TermsUpdated + """ + # FIXME: construct object with mandatory attributes with example values + #model = swagger_client.models.terms_updated.TermsUpdated() + pass + + +if __name__ == '__main__': + unittest.main() From 3a4df6645cb65bd6bd09a777c762f4db3a9c5503 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 26 Dec 2017 16:30:00 -0800 Subject: [PATCH 27/53] Remove old tests --- test/test_district_status.py | 44 ------------------- test/test_district_status_response.py | 44 ------------------- test/test_district_status_responses.py | 44 ------------------- test/test_grade_levels_response.py | 44 ------------------- test/test_student_contact.py | 44 ------------------- test/test_student_contact_object.py | 44 ------------------- test/test_student_contact_response.py | 44 ------------------- ...t_student_contacts_for_student_response.py | 44 ------------------- test/test_student_contacts_response.py | 44 ------------------- test/test_studentcontacts_created.py | 44 ------------------- test/test_studentcontacts_deleted.py | 44 ------------------- test/test_studentcontacts_updated.py | 44 ------------------- 12 files changed, 528 deletions(-) delete mode 100644 test/test_district_status.py delete mode 100644 test/test_district_status_response.py delete mode 100644 test/test_district_status_responses.py delete mode 100644 test/test_grade_levels_response.py delete mode 100644 test/test_student_contact.py delete mode 100644 test/test_student_contact_object.py delete mode 100644 test/test_student_contact_response.py delete mode 100644 test/test_student_contacts_for_student_response.py delete mode 100644 test/test_student_contacts_response.py delete mode 100644 test/test_studentcontacts_created.py delete mode 100644 test/test_studentcontacts_deleted.py delete mode 100644 test/test_studentcontacts_updated.py diff --git a/test/test_district_status.py b/test/test_district_status.py deleted file mode 100644 index 35b0d7d..0000000 --- a/test/test_district_status.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import clever -from clever.rest import ApiException -from clever.models.district_status import DistrictStatus - - -class TestDistrictStatus(unittest.TestCase): - """ DistrictStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDistrictStatus(self): - """ - Test DistrictStatus - """ - # FIXME: construct object with mandatory attributes with example values - #model = clever.models.district_status.DistrictStatus() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_district_status_response.py b/test/test_district_status_response.py deleted file mode 100644 index afafb96..0000000 --- a/test/test_district_status_response.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import clever -from clever.rest import ApiException -from clever.models.district_status_response import DistrictStatusResponse - - -class TestDistrictStatusResponse(unittest.TestCase): - """ DistrictStatusResponse unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDistrictStatusResponse(self): - """ - Test DistrictStatusResponse - """ - # FIXME: construct object with mandatory attributes with example values - #model = clever.models.district_status_response.DistrictStatusResponse() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_district_status_responses.py b/test/test_district_status_responses.py deleted file mode 100644 index 4f0fbb4..0000000 --- a/test/test_district_status_responses.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import clever -from clever.rest import ApiException -from clever.models.district_status_responses import DistrictStatusResponses - - -class TestDistrictStatusResponses(unittest.TestCase): - """ DistrictStatusResponses unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDistrictStatusResponses(self): - """ - Test DistrictStatusResponses - """ - # FIXME: construct object with mandatory attributes with example values - #model = clever.models.district_status_responses.DistrictStatusResponses() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_grade_levels_response.py b/test/test_grade_levels_response.py deleted file mode 100644 index 578d50b..0000000 --- a/test/test_grade_levels_response.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import clever -from clever.rest import ApiException -from clever.models.grade_levels_response import GradeLevelsResponse - - -class TestGradeLevelsResponse(unittest.TestCase): - """ GradeLevelsResponse unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGradeLevelsResponse(self): - """ - Test GradeLevelsResponse - """ - # FIXME: construct object with mandatory attributes with example values - #model = clever.models.grade_levels_response.GradeLevelsResponse() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_student_contact.py b/test/test_student_contact.py deleted file mode 100644 index c1a39dc..0000000 --- a/test/test_student_contact.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import clever -from clever.rest import ApiException -from clever.models.student_contact import StudentContact - - -class TestStudentContact(unittest.TestCase): - """ StudentContact unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStudentContact(self): - """ - Test StudentContact - """ - # FIXME: construct object with mandatory attributes with example values - #model = clever.models.student_contact.StudentContact() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_student_contact_object.py b/test/test_student_contact_object.py deleted file mode 100644 index 63dc41c..0000000 --- a/test/test_student_contact_object.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import clever -from clever.rest import ApiException -from clever.models.student_contact_object import StudentContactObject - - -class TestStudentContactObject(unittest.TestCase): - """ StudentContactObject unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStudentContactObject(self): - """ - Test StudentContactObject - """ - # FIXME: construct object with mandatory attributes with example values - #model = clever.models.student_contact_object.StudentContactObject() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_student_contact_response.py b/test/test_student_contact_response.py deleted file mode 100644 index a50ea8f..0000000 --- a/test/test_student_contact_response.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import clever -from clever.rest import ApiException -from clever.models.student_contact_response import StudentContactResponse - - -class TestStudentContactResponse(unittest.TestCase): - """ StudentContactResponse unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStudentContactResponse(self): - """ - Test StudentContactResponse - """ - # FIXME: construct object with mandatory attributes with example values - #model = clever.models.student_contact_response.StudentContactResponse() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_student_contacts_for_student_response.py b/test/test_student_contacts_for_student_response.py deleted file mode 100644 index 4e94acd..0000000 --- a/test/test_student_contacts_for_student_response.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import clever -from clever.rest import ApiException -from clever.models.student_contacts_for_student_response import StudentContactsForStudentResponse - - -class TestStudentContactsForStudentResponse(unittest.TestCase): - """ StudentContactsForStudentResponse unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStudentContactsForStudentResponse(self): - """ - Test StudentContactsForStudentResponse - """ - # FIXME: construct object with mandatory attributes with example values - #model = clever.models.student_contacts_for_student_response.StudentContactsForStudentResponse() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_student_contacts_response.py b/test/test_student_contacts_response.py deleted file mode 100644 index 3935c89..0000000 --- a/test/test_student_contacts_response.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import clever -from clever.rest import ApiException -from clever.models.student_contacts_response import StudentContactsResponse - - -class TestStudentContactsResponse(unittest.TestCase): - """ StudentContactsResponse unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStudentContactsResponse(self): - """ - Test StudentContactsResponse - """ - # FIXME: construct object with mandatory attributes with example values - #model = clever.models.student_contacts_response.StudentContactsResponse() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_studentcontacts_created.py b/test/test_studentcontacts_created.py deleted file mode 100644 index 542ba72..0000000 --- a/test/test_studentcontacts_created.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import clever -from clever.rest import ApiException -from clever.models.studentcontacts_created import StudentcontactsCreated - - -class TestStudentcontactsCreated(unittest.TestCase): - """ StudentcontactsCreated unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStudentcontactsCreated(self): - """ - Test StudentcontactsCreated - """ - # FIXME: construct object with mandatory attributes with example values - #model = clever.models.studentcontacts_created.StudentcontactsCreated() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_studentcontacts_deleted.py b/test/test_studentcontacts_deleted.py deleted file mode 100644 index 1f9d6cd..0000000 --- a/test/test_studentcontacts_deleted.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import clever -from clever.rest import ApiException -from clever.models.studentcontacts_deleted import StudentcontactsDeleted - - -class TestStudentcontactsDeleted(unittest.TestCase): - """ StudentcontactsDeleted unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStudentcontactsDeleted(self): - """ - Test StudentcontactsDeleted - """ - # FIXME: construct object with mandatory attributes with example values - #model = clever.models.studentcontacts_deleted.StudentcontactsDeleted() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_studentcontacts_updated.py b/test/test_studentcontacts_updated.py deleted file mode 100644 index 2c5f99a..0000000 --- a/test/test_studentcontacts_updated.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Clever API - - The Clever API - - OpenAPI spec version: 1.2.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import clever -from clever.rest import ApiException -from clever.models.studentcontacts_updated import StudentcontactsUpdated - - -class TestStudentcontactsUpdated(unittest.TestCase): - """ StudentcontactsUpdated unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStudentcontactsUpdated(self): - """ - Test StudentcontactsUpdated - """ - # FIXME: construct object with mandatory attributes with example values - #model = clever.models.studentcontacts_updated.StudentcontactsUpdated() - pass - - -if __name__ == '__main__': - unittest.main() From c8418300e2d1ddf293f6093afb4a69dbb72e19e6 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 26 Dec 2017 16:30:11 -0800 Subject: [PATCH 28/53] Fix unicode handling again --- clever/api_client.py | 2 +- override/api_client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clever/api_client.py b/clever/api_client.py index d3c213b..c3c560c 100644 --- a/clever/api_client.py +++ b/clever/api_client.py @@ -121,7 +121,7 @@ def __call_api(self, resource_path, method, for k, v in path_params: # specified safe chars, encode everything resource_path = resource_path.replace( - '{%s}' % k, quote(str(v), safe=config.safe_chars_for_path_param)) + '{%s}' % k, quote(v.encode('utf-8'), safe=config.safe_chars_for_path_param)) # query parameters if query_params: diff --git a/override/api_client.py b/override/api_client.py index d3c213b..c3c560c 100644 --- a/override/api_client.py +++ b/override/api_client.py @@ -121,7 +121,7 @@ def __call_api(self, resource_path, method, for k, v in path_params: # specified safe chars, encode everything resource_path = resource_path.replace( - '{%s}' % k, quote(str(v), safe=config.safe_chars_for_path_param)) + '{%s}' % k, quote(v.encode('utf-8'), safe=config.safe_chars_for_path_param)) # query parameters if query_params: From 5d5b6f7995d6c4284fe3b4d187887215623d7902 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 26 Dec 2017 16:24:46 -0800 Subject: [PATCH 29/53] Rename swagger_client in tests --- test/test_contact.py | 8 ++++---- test/test_contact_object.py | 8 ++++---- test/test_contact_response.py | 8 ++++---- test/test_contacts_created.py | 8 ++++---- test/test_contacts_deleted.py | 8 ++++---- test/test_contacts_response.py | 8 ++++---- test/test_contacts_updated.py | 8 ++++---- test/test_course.py | 8 ++++---- test/test_course_object.py | 8 ++++---- test/test_course_response.py | 8 ++++---- test/test_courses_created.py | 8 ++++---- test/test_courses_deleted.py | 8 ++++---- test/test_courses_response.py | 8 ++++---- test/test_courses_updated.py | 8 ++++---- test/test_district_admin_object.py | 8 ++++---- test/test_districtadmins_created.py | 8 ++++---- test/test_districtadmins_deleted.py | 8 ++++---- test/test_districtadmins_updated.py | 8 ++++---- test/test_term_object.py | 8 ++++---- test/test_term_response.py | 8 ++++---- test/test_terms_created.py | 8 ++++---- test/test_terms_deleted.py | 8 ++++---- test/test_terms_response.py | 8 ++++---- test/test_terms_updated.py | 8 ++++---- 24 files changed, 96 insertions(+), 96 deletions(-) diff --git a/test/test_contact.py b/test/test_contact.py index d10c635..5ad7cce 100644 --- a/test/test_contact.py +++ b/test/test_contact.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.contact import Contact +import clever +from clever.rest import ApiException +from clever.models.contact import Contact class TestContact(unittest.TestCase): @@ -36,7 +36,7 @@ def testContact(self): Test Contact """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.contact.Contact() + #model = clever.models.contact.Contact() pass diff --git a/test/test_contact_object.py b/test/test_contact_object.py index 90067e8..57668e7 100644 --- a/test/test_contact_object.py +++ b/test/test_contact_object.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.contact_object import ContactObject +import clever +from clever.rest import ApiException +from clever.models.contact_object import ContactObject class TestContactObject(unittest.TestCase): @@ -36,7 +36,7 @@ def testContactObject(self): Test ContactObject """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.contact_object.ContactObject() + #model = clever.models.contact_object.ContactObject() pass diff --git a/test/test_contact_response.py b/test/test_contact_response.py index 3f0b114..a92dc9b 100644 --- a/test/test_contact_response.py +++ b/test/test_contact_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.contact_response import ContactResponse +import clever +from clever.rest import ApiException +from clever.models.contact_response import ContactResponse class TestContactResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testContactResponse(self): Test ContactResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.contact_response.ContactResponse() + #model = clever.models.contact_response.ContactResponse() pass diff --git a/test/test_contacts_created.py b/test/test_contacts_created.py index c71051c..1109203 100644 --- a/test/test_contacts_created.py +++ b/test/test_contacts_created.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.contacts_created import ContactsCreated +import clever +from clever.rest import ApiException +from clever.models.contacts_created import ContactsCreated class TestContactsCreated(unittest.TestCase): @@ -36,7 +36,7 @@ def testContactsCreated(self): Test ContactsCreated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.contacts_created.ContactsCreated() + #model = clever.models.contacts_created.ContactsCreated() pass diff --git a/test/test_contacts_deleted.py b/test/test_contacts_deleted.py index ae32fac..507653d 100644 --- a/test/test_contacts_deleted.py +++ b/test/test_contacts_deleted.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.contacts_deleted import ContactsDeleted +import clever +from clever.rest import ApiException +from clever.models.contacts_deleted import ContactsDeleted class TestContactsDeleted(unittest.TestCase): @@ -36,7 +36,7 @@ def testContactsDeleted(self): Test ContactsDeleted """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.contacts_deleted.ContactsDeleted() + #model = clever.models.contacts_deleted.ContactsDeleted() pass diff --git a/test/test_contacts_response.py b/test/test_contacts_response.py index 2d94377..c2c9580 100644 --- a/test/test_contacts_response.py +++ b/test/test_contacts_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.contacts_response import ContactsResponse +import clever +from clever.rest import ApiException +from clever.models.contacts_response import ContactsResponse class TestContactsResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testContactsResponse(self): Test ContactsResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.contacts_response.ContactsResponse() + #model = clever.models.contacts_response.ContactsResponse() pass diff --git a/test/test_contacts_updated.py b/test/test_contacts_updated.py index 91bff6f..427855c 100644 --- a/test/test_contacts_updated.py +++ b/test/test_contacts_updated.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.contacts_updated import ContactsUpdated +import clever +from clever.rest import ApiException +from clever.models.contacts_updated import ContactsUpdated class TestContactsUpdated(unittest.TestCase): @@ -36,7 +36,7 @@ def testContactsUpdated(self): Test ContactsUpdated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.contacts_updated.ContactsUpdated() + #model = clever.models.contacts_updated.ContactsUpdated() pass diff --git a/test/test_course.py b/test/test_course.py index a660a7f..a595329 100644 --- a/test/test_course.py +++ b/test/test_course.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.course import Course +import clever +from clever.rest import ApiException +from clever.models.course import Course class TestCourse(unittest.TestCase): @@ -36,7 +36,7 @@ def testCourse(self): Test Course """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.course.Course() + #model = clever.models.course.Course() pass diff --git a/test/test_course_object.py b/test/test_course_object.py index fb54810..28d9201 100644 --- a/test/test_course_object.py +++ b/test/test_course_object.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.course_object import CourseObject +import clever +from clever.rest import ApiException +from clever.models.course_object import CourseObject class TestCourseObject(unittest.TestCase): @@ -36,7 +36,7 @@ def testCourseObject(self): Test CourseObject """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.course_object.CourseObject() + #model = clever.models.course_object.CourseObject() pass diff --git a/test/test_course_response.py b/test/test_course_response.py index 12b5ebc..05207f7 100644 --- a/test/test_course_response.py +++ b/test/test_course_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.course_response import CourseResponse +import clever +from clever.rest import ApiException +from clever.models.course_response import CourseResponse class TestCourseResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testCourseResponse(self): Test CourseResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.course_response.CourseResponse() + #model = clever.models.course_response.CourseResponse() pass diff --git a/test/test_courses_created.py b/test/test_courses_created.py index 6e736e3..142c397 100644 --- a/test/test_courses_created.py +++ b/test/test_courses_created.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.courses_created import CoursesCreated +import clever +from clever.rest import ApiException +from clever.models.courses_created import CoursesCreated class TestCoursesCreated(unittest.TestCase): @@ -36,7 +36,7 @@ def testCoursesCreated(self): Test CoursesCreated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.courses_created.CoursesCreated() + #model = clever.models.courses_created.CoursesCreated() pass diff --git a/test/test_courses_deleted.py b/test/test_courses_deleted.py index 2c9e10b..564bdf1 100644 --- a/test/test_courses_deleted.py +++ b/test/test_courses_deleted.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.courses_deleted import CoursesDeleted +import clever +from clever.rest import ApiException +from clever.models.courses_deleted import CoursesDeleted class TestCoursesDeleted(unittest.TestCase): @@ -36,7 +36,7 @@ def testCoursesDeleted(self): Test CoursesDeleted """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.courses_deleted.CoursesDeleted() + #model = clever.models.courses_deleted.CoursesDeleted() pass diff --git a/test/test_courses_response.py b/test/test_courses_response.py index afd4597..383dc1c 100644 --- a/test/test_courses_response.py +++ b/test/test_courses_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.courses_response import CoursesResponse +import clever +from clever.rest import ApiException +from clever.models.courses_response import CoursesResponse class TestCoursesResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testCoursesResponse(self): Test CoursesResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.courses_response.CoursesResponse() + #model = clever.models.courses_response.CoursesResponse() pass diff --git a/test/test_courses_updated.py b/test/test_courses_updated.py index 51d2248..7d27dc6 100644 --- a/test/test_courses_updated.py +++ b/test/test_courses_updated.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.courses_updated import CoursesUpdated +import clever +from clever.rest import ApiException +from clever.models.courses_updated import CoursesUpdated class TestCoursesUpdated(unittest.TestCase): @@ -36,7 +36,7 @@ def testCoursesUpdated(self): Test CoursesUpdated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.courses_updated.CoursesUpdated() + #model = clever.models.courses_updated.CoursesUpdated() pass diff --git a/test/test_district_admin_object.py b/test/test_district_admin_object.py index 364e1aa..2a4d88e 100644 --- a/test/test_district_admin_object.py +++ b/test/test_district_admin_object.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.district_admin_object import DistrictAdminObject +import clever +from clever.rest import ApiException +from clever.models.district_admin_object import DistrictAdminObject class TestDistrictAdminObject(unittest.TestCase): @@ -36,7 +36,7 @@ def testDistrictAdminObject(self): Test DistrictAdminObject """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.district_admin_object.DistrictAdminObject() + #model = clever.models.district_admin_object.DistrictAdminObject() pass diff --git a/test/test_districtadmins_created.py b/test/test_districtadmins_created.py index 1d6b9c9..012378e 100644 --- a/test/test_districtadmins_created.py +++ b/test/test_districtadmins_created.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.districtadmins_created import DistrictadminsCreated +import clever +from clever.rest import ApiException +from clever.models.districtadmins_created import DistrictadminsCreated class TestDistrictadminsCreated(unittest.TestCase): @@ -36,7 +36,7 @@ def testDistrictadminsCreated(self): Test DistrictadminsCreated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.districtadmins_created.DistrictadminsCreated() + #model = clever.models.districtadmins_created.DistrictadminsCreated() pass diff --git a/test/test_districtadmins_deleted.py b/test/test_districtadmins_deleted.py index 7bf4157..63bb484 100644 --- a/test/test_districtadmins_deleted.py +++ b/test/test_districtadmins_deleted.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.districtadmins_deleted import DistrictadminsDeleted +import clever +from clever.rest import ApiException +from clever.models.districtadmins_deleted import DistrictadminsDeleted class TestDistrictadminsDeleted(unittest.TestCase): @@ -36,7 +36,7 @@ def testDistrictadminsDeleted(self): Test DistrictadminsDeleted """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.districtadmins_deleted.DistrictadminsDeleted() + #model = clever.models.districtadmins_deleted.DistrictadminsDeleted() pass diff --git a/test/test_districtadmins_updated.py b/test/test_districtadmins_updated.py index 7e0ea8c..cbd840f 100644 --- a/test/test_districtadmins_updated.py +++ b/test/test_districtadmins_updated.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.districtadmins_updated import DistrictadminsUpdated +import clever +from clever.rest import ApiException +from clever.models.districtadmins_updated import DistrictadminsUpdated class TestDistrictadminsUpdated(unittest.TestCase): @@ -36,7 +36,7 @@ def testDistrictadminsUpdated(self): Test DistrictadminsUpdated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.districtadmins_updated.DistrictadminsUpdated() + #model = clever.models.districtadmins_updated.DistrictadminsUpdated() pass diff --git a/test/test_term_object.py b/test/test_term_object.py index ce93ae4..d1fddec 100644 --- a/test/test_term_object.py +++ b/test/test_term_object.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.term_object import TermObject +import clever +from clever.rest import ApiException +from clever.models.term_object import TermObject class TestTermObject(unittest.TestCase): @@ -36,7 +36,7 @@ def testTermObject(self): Test TermObject """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.term_object.TermObject() + #model = clever.models.term_object.TermObject() pass diff --git a/test/test_term_response.py b/test/test_term_response.py index 8c252d7..083fc0c 100644 --- a/test/test_term_response.py +++ b/test/test_term_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.term_response import TermResponse +import clever +from clever.rest import ApiException +from clever.models.term_response import TermResponse class TestTermResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testTermResponse(self): Test TermResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.term_response.TermResponse() + #model = clever.models.term_response.TermResponse() pass diff --git a/test/test_terms_created.py b/test/test_terms_created.py index fe3ba58..fc73295 100644 --- a/test/test_terms_created.py +++ b/test/test_terms_created.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.terms_created import TermsCreated +import clever +from clever.rest import ApiException +from clever.models.terms_created import TermsCreated class TestTermsCreated(unittest.TestCase): @@ -36,7 +36,7 @@ def testTermsCreated(self): Test TermsCreated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.terms_created.TermsCreated() + #model = clever.models.terms_created.TermsCreated() pass diff --git a/test/test_terms_deleted.py b/test/test_terms_deleted.py index ff18e25..84e737e 100644 --- a/test/test_terms_deleted.py +++ b/test/test_terms_deleted.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.terms_deleted import TermsDeleted +import clever +from clever.rest import ApiException +from clever.models.terms_deleted import TermsDeleted class TestTermsDeleted(unittest.TestCase): @@ -36,7 +36,7 @@ def testTermsDeleted(self): Test TermsDeleted """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.terms_deleted.TermsDeleted() + #model = clever.models.terms_deleted.TermsDeleted() pass diff --git a/test/test_terms_response.py b/test/test_terms_response.py index b14d4a3..223c220 100644 --- a/test/test_terms_response.py +++ b/test/test_terms_response.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.terms_response import TermsResponse +import clever +from clever.rest import ApiException +from clever.models.terms_response import TermsResponse class TestTermsResponse(unittest.TestCase): @@ -36,7 +36,7 @@ def testTermsResponse(self): Test TermsResponse """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.terms_response.TermsResponse() + #model = clever.models.terms_response.TermsResponse() pass diff --git a/test/test_terms_updated.py b/test/test_terms_updated.py index 4ba2ada..3e0eea0 100644 --- a/test/test_terms_updated.py +++ b/test/test_terms_updated.py @@ -17,9 +17,9 @@ import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.terms_updated import TermsUpdated +import clever +from clever.rest import ApiException +from clever.models.terms_updated import TermsUpdated class TestTermsUpdated(unittest.TestCase): @@ -36,7 +36,7 @@ def testTermsUpdated(self): Test TermsUpdated """ # FIXME: construct object with mandatory attributes with example values - #model = swagger_client.models.terms_updated.TermsUpdated() + #model = clever.models.terms_updated.TermsUpdated() pass From e94e4e26e61bd2d6e72569b8aba9908dcf7f992a Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 26 Dec 2017 16:25:37 -0800 Subject: [PATCH 30/53] Fix tests --- clever/models/event.py | 44 ----------------------------------------- test/test_data_api.py | 4 ++-- test/test_events_api.py | 2 +- 3 files changed, 3 insertions(+), 47 deletions(-) diff --git a/clever/models/event.py b/clever/models/event.py index f62812d..f13fbfd 100644 --- a/clever/models/event.py +++ b/clever/models/event.py @@ -42,39 +42,6 @@ class Event(object): 'type': 'type' } - discriminator_value_class_map = { - '': 'DistrictsUpdated', - '': 'TermsCreated', - '': 'DistrictsDeleted', - '': 'SchooladminsCreated', - '': 'TeachersUpdated', - '': 'ContactsUpdated', - '': 'TermsDeleted', - '': 'TeachersDeleted', - '': 'TermsUpdated', - '': 'ContactsDeleted', - '': 'DistrictsCreated', - '': 'DistrictadminsDeleted', - '': 'SectionsCreated', - '': 'SchooladminsDeleted', - '': 'CoursesCreated', - '': 'StudentsDeleted', - '': 'SchoolsCreated', - '': 'CoursesDeleted', - '': 'CoursesUpdated', - '': 'DistrictadminsCreated', - '': 'SectionsDeleted', - '': 'SectionsUpdated', - '': 'SchoolsDeleted', - '': 'ContactsCreated', - '': 'TeachersCreated', - '': 'SchoolsUpdated', - '': 'StudentsCreated', - '': 'SchooladminsUpdated', - '': 'StudentsUpdated', - '': 'DistrictadminsUpdated' - } - def __init__(self, created=None, id=None, type=None): """ Event - a model defined in Swagger @@ -83,7 +50,6 @@ def __init__(self, created=None, id=None, type=None): self._created = None self._id = None self._type = None - self.discriminator = 'type' if created is not None: self.created = created @@ -156,16 +122,6 @@ def type(self, type): self._type = type - def get_real_child_model(self, data): - """ - Returns the real base class specified by the discriminator - """ - discriminator_value = data[self.discriminator].lower() - if self.discriminator_value_class_map.has_key(discriminator_value): - return self.discriminator_value_class_map[discriminator_value] - else: - return None - def to_dict(self): """ Returns the model properties as a dict diff --git a/test/test_data_api.py b/test/test_data_api.py index a7d4e77..1f4980d 100644 --- a/test/test_data_api.py +++ b/test/test_data_api.py @@ -38,7 +38,7 @@ class TestDataApi(unittest.TestCase): def setUp(self): self.api = clever.apis.data_api.DataApi() - clever.configuration.access_token = 'TEST_TOKEN' + self.api.api_client.configuration.access_token = 'TEST_TOKEN' def tearDown(self): pass @@ -52,7 +52,7 @@ def test_unicode_receive(self): real_pool = self.api.api_client.rest_client.pool_manager self.api.api_client.rest_client.pool_manager = mock_pool - mock_pool.expect_request('GET', 'https://api.clever.com/v1.2/districts/something') + mock_pool.expect_request('GET', 'https://api.clever.com/v2.0/districts/something') # Make sure unicode responses can be received. self.assertEqual(u'Oh haiô', self.api.get_district('something').data.name) self.api.api_client.rest_client.pool_manager = real_pool diff --git a/test/test_events_api.py b/test/test_events_api.py index 07f52b3..5e247e8 100644 --- a/test/test_events_api.py +++ b/test/test_events_api.py @@ -27,7 +27,7 @@ class TestEventsApi(unittest.TestCase): def setUp(self): self.api = clever.apis.events_api.EventsApi() - clever.configuration.access_token = 'TEST_TOKEN' + self.api.api_client.configuration.access_token = 'TEST_TOKEN' def tearDown(self): pass From c622b7c0e596bc8a8b7f0733860e64fa476b381d Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 26 Dec 2017 16:29:11 -0800 Subject: [PATCH 31/53] Add test overrides and event.py override --- override/event.py | 176 +++++++++++++++++ override/override.sh | 5 + override/test_data_api.py | 375 ++++++++++++++++++++++++++++++++++++ override/test_events_api.py | 99 ++++++++++ 4 files changed, 655 insertions(+) create mode 100644 override/event.py create mode 100644 override/test_data_api.py create mode 100644 override/test_events_api.py diff --git a/override/event.py b/override/event.py new file mode 100644 index 0000000..897bfb8 --- /dev/null +++ b/override/event.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 2.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Event(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created': 'str', + 'id': 'str', + 'type': 'str' + } + + attribute_map = { + 'created': 'created', + 'id': 'id', + 'type': 'type' + } + + def __init__(self, created=None, id=None, type=None): + """ + Event - a model defined in Swagger + """ + + self._created = None + self._id = None + self._type = None + + if created is not None: + self.created = created + if id is not None: + self.id = id + self.type = type + + @property + def created(self): + """ + Gets the created of this Event. + + :return: The created of this Event. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """ + Sets the created of this Event. + + :param created: The created of this Event. + :type: str + """ + + self._created = created + + @property + def id(self): + """ + Gets the id of this Event. + + :return: The id of this Event. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this Event. + + :param id: The id of this Event. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this Event. + + :return: The type of this Event. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this Event. + + :param type: The type of this Event. + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Event): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/override/override.sh b/override/override.sh index 11676f4..733c97b 100755 --- a/override/override.sh +++ b/override/override.sh @@ -1,5 +1,6 @@ # delete existing files rm -rf clever || true +rm -rf test || true # Copy autogenerated files into clever directory and rename cp -R swagger_client/. clever || true rm -rf swagger_client || true @@ -23,6 +24,10 @@ cp override/api_client.py clever/ cp override/*_created.py clever/models/ cp override/*_updated.py clever/models/ cp override/*_deleted.py clever/models/ +cp override/event.py clever/models/ # The autogenerated deserialization ends up in a loop so remove it + +# Copy over tests +cp override/test_* test/ # Copy other files over cp override/VERSION clever/ diff --git a/override/test_data_api.py b/override/test_data_api.py new file mode 100644 index 0000000..1d5bcfa --- /dev/null +++ b/override/test_data_api.py @@ -0,0 +1,375 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest +import urllib3 + +import clever +from clever.rest import ApiException +from clever.apis.data_api import DataApi + +class MockPoolManager(object): + def __init__(self, tc): + self._tc = tc + self._reqs = [] + + def expect_request(self, *args, **kwargs): + self._reqs.append((args, kwargs)) + + def request(self, *args, **kwargs): + return urllib3.HTTPResponse(status=200, body='{"data": {"name": "Oh haiô"}}') + +class TestDataApi(unittest.TestCase): + """ DataApi unit test stubs """ + + def setUp(self): + self.api = clever.apis.data_api.DataApi() + self.api.api_client.configuration.access_token = 'TEST_TOKEN' + + def tearDown(self): + pass + + def test_unicode_send(self): + # Make sure unicode requests can be sent. 404 error is an ApiException + self.assertRaises(ApiException, self.api.get_district, u'☃') + + def test_unicode_receive(self): + mock_pool = MockPoolManager(self) + real_pool = self.api.api_client.rest_client.pool_manager + self.api.api_client.rest_client.pool_manager = mock_pool + + mock_pool.expect_request('GET', 'https://api.clever.com/v2.0/districts/something') + # Make sure unicode responses can be received. + self.assertEqual(u'Oh haiô', self.api.get_district('something').data.name) + self.api.api_client.rest_client.pool_manager = real_pool + + + def test_get_contact(self): + """ + Test case for get_contact + + + """ + pass + + def test_get_contacts(self): + """ + Test case for get_contacts + + + """ + pass + + def test_get_contacts_for_student(self): + """ + Test case for get_contacts_for_student + + + """ + pass + + def test_get_district(self): + """ + Test case for get_district + + + """ + pass + + def test_get_district_admin(self): + """ + Test case for get_district_admin + + + """ + pass + + def test_get_district_admins(self): + """ + Test case for get_district_admins + + + """ + pass + + def test_get_district_for_school(self): + """ + Test case for get_district_for_school + + + """ + pass + + def test_get_district_for_section(self): + """ + Test case for get_district_for_section + + + """ + pass + + def test_get_district_for_student(self): + """ + Test case for get_district_for_student + + + """ + pass + + def test_get_district_for_student_contact(self): + """ + Test case for get_district_for_student_contact + + + """ + pass + + def test_get_district_for_teacher(self): + """ + Test case for get_district_for_teacher + + + """ + pass + + def test_get_district_status(self): + """ + Test case for get_district_status + + + """ + pass + + def test_get_districts(self): + """ + Test case for get_districts + + + """ + pass + + def test_get_grade_levels_for_teacher(self): + """ + Test case for get_grade_levels_for_teacher + + + """ + pass + + def test_get_school(self): + """ + Test case for get_school + + + """ + pass + + def test_get_school_admin(self): + """ + Test case for get_school_admin + + + """ + pass + + def test_get_school_admins(self): + """ + Test case for get_school_admins + + + """ + pass + + def test_get_school_for_section(self): + """ + Test case for get_school_for_section + + + """ + pass + + def test_get_school_for_student(self): + """ + Test case for get_school_for_student + + + """ + pass + + def test_get_school_for_teacher(self): + """ + Test case for get_school_for_teacher + + + """ + pass + + def test_get_schools(self): + """ + Test case for get_schools + + + """ + pass + + def test_get_schools_for_school_admin(self): + """ + Test case for get_schools_for_school_admin + + + """ + pass + + def test_get_section(self): + """ + Test case for get_section + + + """ + pass + + def test_get_sections(self): + """ + Test case for get_sections + + + """ + pass + + def test_get_sections_for_school(self): + """ + Test case for get_sections_for_school + + + """ + pass + + def test_get_sections_for_student(self): + """ + Test case for get_sections_for_student + + + """ + pass + + def test_get_sections_for_teacher(self): + """ + Test case for get_sections_for_teacher + + + """ + pass + + def test_get_student(self): + """ + Test case for get_student + + + """ + pass + + def test_get_student_for_contact(self): + """ + Test case for get_student_for_contact + + + """ + pass + + def test_get_students(self): + """ + Test case for get_students + + + """ + pass + + def test_get_students_for_school(self): + """ + Test case for get_students_for_school + + + """ + pass + + def test_get_students_for_section(self): + """ + Test case for get_students_for_section + + + """ + pass + + def test_get_students_for_teacher(self): + """ + Test case for get_students_for_teacher + + + """ + pass + + def test_get_teacher(self): + """ + Test case for get_teacher + + + """ + pass + + def test_get_teacher_for_section(self): + """ + Test case for get_teacher_for_section + + + """ + pass + + def test_get_teachers(self): + """ + Test case for get_teachers + + + """ + pass + + def test_get_teachers_for_school(self): + """ + Test case for get_teachers_for_school + + + """ + pass + + def test_get_teachers_for_section(self): + """ + Test case for get_teachers_for_section + + + """ + pass + + def test_get_teachers_for_student(self): + """ + Test case for get_teachers_for_student + + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/override/test_events_api.py b/override/test_events_api.py new file mode 100644 index 0000000..b5c33b9 --- /dev/null +++ b/override/test_events_api.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Clever API + + The Clever API + + OpenAPI spec version: 1.2.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import clever +from clever.rest import ApiException +from clever.apis.events_api import EventsApi + + +class TestEventsApi(unittest.TestCase): + """ EventsApi unit test stubs """ + + def setUp(self): + self.api = clever.apis.events_api.EventsApi() + self.api.api_client.configuration.access_token = 'TEST_TOKEN' + + def tearDown(self): + pass + + def test_get_event(self): + """ + Test case for get_event + + + """ + pass + + def test_get_events(self): + """ + Test case for get_events + + + """ + + # Check event class is properly set + response = self.api.get_events(limit=1) + event = response.data[0] + event_class = type(event.data).__name__ + self.assertTrue(event_class != 'Event') + self.assertTrue(event_class.endswith('Created') or event_class.endswith('Updated') or event_class.endswith('Deleted')) + + def test_get_events_for_school(self): + """ + Test case for get_events_for_school + + + """ + pass + + def test_get_events_for_school_admin(self): + """ + Test case for get_events_for_school_admin + + + """ + pass + + def test_get_events_for_section(self): + """ + Test case for get_events_for_section + + + """ + pass + + def test_get_events_for_student(self): + """ + Test case for get_events_for_student + + + """ + pass + + def test_get_events_for_teacher(self): + """ + Test case for get_events_for_teacher + + + """ + pass + + +if __name__ == '__main__': + unittest.main() From d710ad329837ba5a228657cfb486e449b6353405 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 26 Dec 2017 16:34:23 -0800 Subject: [PATCH 32/53] Don't delete tests as part of override - you'll have to manually remove old tests --- override/override.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/override/override.sh b/override/override.sh index 733c97b..be4ca9a 100755 --- a/override/override.sh +++ b/override/override.sh @@ -1,6 +1,5 @@ # delete existing files rm -rf clever || true -rm -rf test || true # Copy autogenerated files into clever directory and rename cp -R swagger_client/. clever || true rm -rf swagger_client || true From 7f40b1f5dcb57e38735c7a10a9f8d68453f2e4a9 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 26 Dec 2017 16:34:56 -0800 Subject: [PATCH 33/53] Docs override --- docs/Contact.md | 2 +- docs/ContactObject.md | 2 +- docs/ContactResponse.md | 2 +- docs/ContactsCreated.md | 2 +- docs/ContactsDeleted.md | 2 +- docs/ContactsResponse.md | 2 +- docs/ContactsUpdated.md | 2 +- docs/Course.md | 2 +- docs/CourseObject.md | 2 +- docs/CourseResponse.md | 2 +- docs/CoursesCreated.md | 2 +- docs/CoursesDeleted.md | 2 +- docs/CoursesResponse.md | 2 +- docs/CoursesUpdated.md | 2 +- docs/DistrictAdminObject.md | 2 +- docs/DistrictadminsCreated.md | 2 +- docs/DistrictadminsDeleted.md | 2 +- docs/DistrictadminsUpdated.md | 2 +- docs/TermObject.md | 2 +- docs/TermResponse.md | 2 +- docs/TermsCreated.md | 2 +- docs/TermsDeleted.md | 2 +- docs/TermsResponse.md | 2 +- docs/TermsUpdated.md | 2 +- 24 files changed, 24 insertions(+), 24 deletions(-) diff --git a/docs/Contact.md b/docs/Contact.md index 9b561eb..2972e78 100644 --- a/docs/Contact.md +++ b/docs/Contact.md @@ -14,6 +14,6 @@ Name | Type | Description | Notes **students** | **list[str]** | | [optional] **type** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/ContactObject.md b/docs/ContactObject.md index 5fea4d8..37c70dc 100644 --- a/docs/ContactObject.md +++ b/docs/ContactObject.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **object** | [**Contact**](Contact.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/ContactResponse.md b/docs/ContactResponse.md index 4e33c71..b173502 100644 --- a/docs/ContactResponse.md +++ b/docs/ContactResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Contact**](Contact.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/ContactsCreated.md b/docs/ContactsCreated.md index c4880fe..27cd0c7 100644 --- a/docs/ContactsCreated.md +++ b/docs/ContactsCreated.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ContactObject**](ContactObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/ContactsDeleted.md b/docs/ContactsDeleted.md index 467f4b1..5e6166c 100644 --- a/docs/ContactsDeleted.md +++ b/docs/ContactsDeleted.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ContactObject**](ContactObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/ContactsResponse.md b/docs/ContactsResponse.md index a05e13c..049b308 100644 --- a/docs/ContactsResponse.md +++ b/docs/ContactsResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**list[ContactResponse]**](ContactResponse.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/ContactsUpdated.md b/docs/ContactsUpdated.md index a06cec2..09fa051 100644 --- a/docs/ContactsUpdated.md +++ b/docs/ContactsUpdated.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ContactObject**](ContactObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/Course.md b/docs/Course.md index 7fd0c51..ed054a6 100644 --- a/docs/Course.md +++ b/docs/Course.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes **name** | **str** | | [optional] **number** | **str** | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/CourseObject.md b/docs/CourseObject.md index dc3794c..983b8d1 100644 --- a/docs/CourseObject.md +++ b/docs/CourseObject.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **object** | [**Course**](Course.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/CourseResponse.md b/docs/CourseResponse.md index 251347b..230fcfe 100644 --- a/docs/CourseResponse.md +++ b/docs/CourseResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Course**](Course.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/CoursesCreated.md b/docs/CoursesCreated.md index 8256be2..dbaf9dc 100644 --- a/docs/CoursesCreated.md +++ b/docs/CoursesCreated.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**CourseObject**](CourseObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/CoursesDeleted.md b/docs/CoursesDeleted.md index b136f62..9012ebd 100644 --- a/docs/CoursesDeleted.md +++ b/docs/CoursesDeleted.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**CourseObject**](CourseObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/CoursesResponse.md b/docs/CoursesResponse.md index deed05b..7342963 100644 --- a/docs/CoursesResponse.md +++ b/docs/CoursesResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**list[CourseResponse]**](CourseResponse.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/CoursesUpdated.md b/docs/CoursesUpdated.md index 887ae0c..ff6b0ec 100644 --- a/docs/CoursesUpdated.md +++ b/docs/CoursesUpdated.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**CourseObject**](CourseObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictAdminObject.md b/docs/DistrictAdminObject.md index 5a81ae9..0cecb6c 100644 --- a/docs/DistrictAdminObject.md +++ b/docs/DistrictAdminObject.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **object** | [**DistrictAdmin**](DistrictAdmin.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictadminsCreated.md b/docs/DistrictadminsCreated.md index bcbada7..1d9c34d 100644 --- a/docs/DistrictadminsCreated.md +++ b/docs/DistrictadminsCreated.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**DistrictAdminObject**](DistrictAdminObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictadminsDeleted.md b/docs/DistrictadminsDeleted.md index 506db19..42c3720 100644 --- a/docs/DistrictadminsDeleted.md +++ b/docs/DistrictadminsDeleted.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**DistrictAdminObject**](DistrictAdminObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/DistrictadminsUpdated.md b/docs/DistrictadminsUpdated.md index fe303a4..892b7d0 100644 --- a/docs/DistrictadminsUpdated.md +++ b/docs/DistrictadminsUpdated.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**DistrictAdminObject**](DistrictAdminObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/TermObject.md b/docs/TermObject.md index fe4f198..96fa3ca 100644 --- a/docs/TermObject.md +++ b/docs/TermObject.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **object** | [**Term**](Term.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/TermResponse.md b/docs/TermResponse.md index 0af469b..5228eac 100644 --- a/docs/TermResponse.md +++ b/docs/TermResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**Term**](Term.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/TermsCreated.md b/docs/TermsCreated.md index aeccee5..33f7587 100644 --- a/docs/TermsCreated.md +++ b/docs/TermsCreated.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**TermObject**](TermObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/TermsDeleted.md b/docs/TermsDeleted.md index b5001e6..a244b6e 100644 --- a/docs/TermsDeleted.md +++ b/docs/TermsDeleted.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**TermObject**](TermObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/TermsResponse.md b/docs/TermsResponse.md index c755f04..fc1a177 100644 --- a/docs/TermsResponse.md +++ b/docs/TermsResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**list[TermResponse]**](TermResponse.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/docs/TermsUpdated.md b/docs/TermsUpdated.md index 39dc4f1..191efde 100644 --- a/docs/TermsUpdated.md +++ b/docs/TermsUpdated.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**TermObject**](TermObject.md) | | [optional] -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) From bd0a4220fadac067391d13c6ac877d755b5b3d67 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 26 Dec 2017 16:35:38 -0800 Subject: [PATCH 34/53] Whitespace changes --- clever/models/event.py | 2 +- test/test_data_api.py | 78 ++++++++++++++++++++--------------------- test/test_events_api.py | 12 +++---- 3 files changed, 46 insertions(+), 46 deletions(-) diff --git a/clever/models/event.py b/clever/models/event.py index f13fbfd..897bfb8 100644 --- a/clever/models/event.py +++ b/clever/models/event.py @@ -6,7 +6,7 @@ The Clever API OpenAPI spec version: 2.0.0 - + Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/test/test_data_api.py b/test/test_data_api.py index 1f4980d..1d5bcfa 100644 --- a/test/test_data_api.py +++ b/test/test_data_api.py @@ -6,7 +6,7 @@ The Clever API OpenAPI spec version: 1.2.0 - + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -70,7 +70,7 @@ def test_get_contacts(self): """ Test case for get_contacts - + """ pass @@ -78,7 +78,7 @@ def test_get_contacts_for_student(self): """ Test case for get_contacts_for_student - + """ pass @@ -86,7 +86,7 @@ def test_get_district(self): """ Test case for get_district - + """ pass @@ -94,7 +94,7 @@ def test_get_district_admin(self): """ Test case for get_district_admin - + """ pass @@ -102,7 +102,7 @@ def test_get_district_admins(self): """ Test case for get_district_admins - + """ pass @@ -110,7 +110,7 @@ def test_get_district_for_school(self): """ Test case for get_district_for_school - + """ pass @@ -118,7 +118,7 @@ def test_get_district_for_section(self): """ Test case for get_district_for_section - + """ pass @@ -126,7 +126,7 @@ def test_get_district_for_student(self): """ Test case for get_district_for_student - + """ pass @@ -134,7 +134,7 @@ def test_get_district_for_student_contact(self): """ Test case for get_district_for_student_contact - + """ pass @@ -142,7 +142,7 @@ def test_get_district_for_teacher(self): """ Test case for get_district_for_teacher - + """ pass @@ -150,7 +150,7 @@ def test_get_district_status(self): """ Test case for get_district_status - + """ pass @@ -158,7 +158,7 @@ def test_get_districts(self): """ Test case for get_districts - + """ pass @@ -166,7 +166,7 @@ def test_get_grade_levels_for_teacher(self): """ Test case for get_grade_levels_for_teacher - + """ pass @@ -174,7 +174,7 @@ def test_get_school(self): """ Test case for get_school - + """ pass @@ -182,7 +182,7 @@ def test_get_school_admin(self): """ Test case for get_school_admin - + """ pass @@ -190,7 +190,7 @@ def test_get_school_admins(self): """ Test case for get_school_admins - + """ pass @@ -198,7 +198,7 @@ def test_get_school_for_section(self): """ Test case for get_school_for_section - + """ pass @@ -206,7 +206,7 @@ def test_get_school_for_student(self): """ Test case for get_school_for_student - + """ pass @@ -214,7 +214,7 @@ def test_get_school_for_teacher(self): """ Test case for get_school_for_teacher - + """ pass @@ -222,7 +222,7 @@ def test_get_schools(self): """ Test case for get_schools - + """ pass @@ -230,7 +230,7 @@ def test_get_schools_for_school_admin(self): """ Test case for get_schools_for_school_admin - + """ pass @@ -238,7 +238,7 @@ def test_get_section(self): """ Test case for get_section - + """ pass @@ -246,7 +246,7 @@ def test_get_sections(self): """ Test case for get_sections - + """ pass @@ -254,7 +254,7 @@ def test_get_sections_for_school(self): """ Test case for get_sections_for_school - + """ pass @@ -262,7 +262,7 @@ def test_get_sections_for_student(self): """ Test case for get_sections_for_student - + """ pass @@ -270,7 +270,7 @@ def test_get_sections_for_teacher(self): """ Test case for get_sections_for_teacher - + """ pass @@ -278,7 +278,7 @@ def test_get_student(self): """ Test case for get_student - + """ pass @@ -286,7 +286,7 @@ def test_get_student_for_contact(self): """ Test case for get_student_for_contact - + """ pass @@ -294,7 +294,7 @@ def test_get_students(self): """ Test case for get_students - + """ pass @@ -302,7 +302,7 @@ def test_get_students_for_school(self): """ Test case for get_students_for_school - + """ pass @@ -310,7 +310,7 @@ def test_get_students_for_section(self): """ Test case for get_students_for_section - + """ pass @@ -318,7 +318,7 @@ def test_get_students_for_teacher(self): """ Test case for get_students_for_teacher - + """ pass @@ -326,7 +326,7 @@ def test_get_teacher(self): """ Test case for get_teacher - + """ pass @@ -334,7 +334,7 @@ def test_get_teacher_for_section(self): """ Test case for get_teacher_for_section - + """ pass @@ -342,7 +342,7 @@ def test_get_teachers(self): """ Test case for get_teachers - + """ pass @@ -350,7 +350,7 @@ def test_get_teachers_for_school(self): """ Test case for get_teachers_for_school - + """ pass @@ -358,7 +358,7 @@ def test_get_teachers_for_section(self): """ Test case for get_teachers_for_section - + """ pass @@ -366,7 +366,7 @@ def test_get_teachers_for_student(self): """ Test case for get_teachers_for_student - + """ pass diff --git a/test/test_events_api.py b/test/test_events_api.py index 5e247e8..b5c33b9 100644 --- a/test/test_events_api.py +++ b/test/test_events_api.py @@ -6,7 +6,7 @@ The Clever API OpenAPI spec version: 1.2.0 - + Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -36,7 +36,7 @@ def test_get_event(self): """ Test case for get_event - + """ pass @@ -66,7 +66,7 @@ def test_get_events_for_school_admin(self): """ Test case for get_events_for_school_admin - + """ pass @@ -74,7 +74,7 @@ def test_get_events_for_section(self): """ Test case for get_events_for_section - + """ pass @@ -82,7 +82,7 @@ def test_get_events_for_student(self): """ Test case for get_events_for_student - + """ pass @@ -90,7 +90,7 @@ def test_get_events_for_teacher(self): """ Test case for get_events_for_teacher - + """ pass From 5b2f337ae5df558695764adf0248b87494db3c36 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 2 Jan 2018 13:39:01 -0800 Subject: [PATCH 35/53] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79a7075..00cd3e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 3.0.0 (2018-01-02) + * Use API v2.0, generated by swagger-codegen. This is a major, breaking change for the library. + ## 2.4.0 (2017-09-18) * Use API v1.2 From ee08cade60b4d369c79fc02827808cecf45cfde4 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Thu, 29 Mar 2018 09:48:37 -0700 Subject: [PATCH 36/53] Update readme to correctly show how to set the token --- README.md | 8 ++++++-- override/README.md | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 811cc73..e50b61b 100644 --- a/README.md +++ b/README.md @@ -44,9 +44,13 @@ from pprint import pprint # Note: This is hard coded for demo purposes only. Keep your access tokens secret! # https://dev.clever.com/docs/security#section-security-best-practices -clever.configuration.access_token = 'TEST_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) try: api_response = api_instance.get_students() diff --git a/override/README.md b/override/README.md index 811cc73..e50b61b 100644 --- a/override/README.md +++ b/override/README.md @@ -44,9 +44,13 @@ from pprint import pprint # Note: This is hard coded for demo purposes only. Keep your access tokens secret! # https://dev.clever.com/docs/security#section-security-best-practices -clever.configuration.access_token = 'TEST_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = clever.Configuration() +configuration.access_token = 'YOUR_ACCESS_TOKEN' + # create an instance of the API class -api_instance = clever.DataApi() +api_instance = clever.DataApi(clever.ApiClient(configuration)) try: api_response = api_instance.get_students() From 460d2b1eca6c73e3ca3b6057f7d32f39e70ea2b6 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 15 May 2018 20:03:57 -0700 Subject: [PATCH 37/53] Generate and override --- clever/configuration.py | 2 +- clever/models/student.py | 2 +- docs/README.md | 2 +- setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clever/configuration.py b/clever/configuration.py index 967d912..4e7b66a 100644 --- a/clever/configuration.py +++ b/clever/configuration.py @@ -244,5 +244,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2.0.0\n"\ - "SDK Package Version: 3.0.0".\ + "SDK Package Version: 3.0.1".\ format(env=sys.platform, pyversion=sys.version) diff --git a/clever/models/student.py b/clever/models/student.py index 85af09c..cd04ec7 100644 --- a/clever/models/student.py +++ b/clever/models/student.py @@ -416,7 +416,7 @@ def home_language(self, home_language): :param home_language: The home_language of this Student. :type: str """ - allowed_values = ["English", "Albanian", "Amharic", "Arabic", "Bengali", "Bosnian", "Burmese", "Cantonese", "Chinese", "Dutch", "Farsi", "French", "German", "Hebrew", "Hindi", "Hmong", "Ilocano", "Japanese", "Javanese", "Karen", "Khmer", "Korean", "Laotian", "Latvian", "Malay", "Mandarin", "Nepali", "Oromo", "Polish", "Portuguese", "Punjabi", "Romanian", "Russian", "Samoan", "Serbian", "Somali", "Spanish", "Swahili", "Tagalog", "Tamil", "Telegu", "Thai", "Tigrinya", "Turkish", "Ukrainian", "Urdu", "Vietnamese"] + allowed_values = ["English", "Albanian", "Amharic", "Arabic", "Bengali", "Bosnian", "Burmese", "Cantonese", "Chinese", "Dutch", "Farsi", "French", "German", "Hebrew", "Hindi", "Hmong", "Ilocano", "Japanese", "Javanese", "Karen", "Khmer", "Korean", "Laotian", "Latvian", "Malay", "Mandarin", "Nepali", "Oromo", "Polish", "Portuguese", "Punjabi", "Romanian", "Russian", "Samoan", "Serbian", "Somali", "Spanish", "Swahili", "Tagalog", "Tamil", "Telugu", "Thai", "Tigrinya", "Turkish", "Ukrainian", "Urdu", "Vietnamese"] if home_language not in allowed_values: raise ValueError( "Invalid value for `home_language` ({0}), must be one of {1}" diff --git a/docs/README.md b/docs/README.md index 6b820c6..48a2d43 100644 --- a/docs/README.md +++ b/docs/README.md @@ -4,7 +4,7 @@ The Clever API This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 2.0.0 -- Package version: 3.0.0 +- Package version: 3.0.1 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Documentation for API Endpoints diff --git a/setup.py b/setup.py index b07ee33..f4609e6 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "clever-python" -VERSION = "3.0.0" +VERSION = "3.0.1" # To install the library, run the following # # python setup.py install From 990dcdfe3c96990c70057d32f2e61f7b1db56516 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Tue, 15 May 2018 20:04:59 -0700 Subject: [PATCH 38/53] Update CHANGELOG --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00cd3e2..1b8945f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 3.0.1 (2018-05-15) +* Change students home_language 'Telegu' to 'Telugu' + ## 3.0.0 (2018-01-02) * Use API v2.0, generated by swagger-codegen. This is a major, breaking change for the library. From 788a2e6ebe5d2fb62468c795a2615e09015e0422 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Thu, 5 Jul 2018 14:37:06 -0700 Subject: [PATCH 39/53] Bump VERSION --- clever/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clever/VERSION b/clever/VERSION index 4a36342..cb2b00e 100644 --- a/clever/VERSION +++ b/clever/VERSION @@ -1 +1 @@ -3.0.0 +3.0.1 From e22975de89f4e036a3c7da58380b944ae4114128 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Thu, 5 Jul 2018 14:50:47 -0700 Subject: [PATCH 40/53] Fix publish script --- publish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publish.sh b/publish.sh index 52b034d..106dfb3 100755 --- a/publish.sh +++ b/publish.sh @@ -17,7 +17,7 @@ fi read -p "Publish and tag as v$version? " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]]; then # publish to pypi - python setup.py sdist upload + python setup.py sdist upload -r https://upload.pypi.org/legacy/ # create git tags git tag -a v$version -m "version $version" From 90509803ec9dadb097b661c5e29316d7ba76cf99 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Thu, 5 Jul 2018 14:51:49 -0700 Subject: [PATCH 41/53] Update setup to publish to both clever and clever-python --- setup.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/setup.py b/setup.py index f4609e6..985d534 100644 --- a/setup.py +++ b/setup.py @@ -39,3 +39,19 @@ The Clever API """ ) + +# We publish to both 'clever' and 'clever-python' +setup( + name=clever, + version=VERSION, + description="Clever API", + author_email="", + url="", + keywords=["Swagger", "Clever API"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + The Clever API + """ +) From 23f5e9ebcf3f42d82a39e9d9d6938cf13cfcfd94 Mon Sep 17 00:00:00 2001 From: Dan Kurtz Date: Mon, 16 Jul 2018 09:33:31 -0700 Subject: [PATCH 42/53] Fix typo in setup script --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 985d534..078bbb8 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ # We publish to both 'clever' and 'clever-python' setup( - name=clever, + name="clever", version=VERSION, description="Clever API", author_email="", From 69893e4916d4ef86f8a7f4c09b6af9d2d018a925 Mon Sep 17 00:00:00 2001 From: Dan Kurtz Date: Mon, 16 Jul 2018 09:36:29 -0700 Subject: [PATCH 43/53] Fix for https://github.com/Clever/clever-python/issues/53 --- clever/models/contacts_created.py | 2 +- clever/models/contacts_deleted.py | 2 +- clever/models/contacts_updated.py | 2 +- clever/models/courses_created.py | 2 +- clever/models/courses_deleted.py | 2 +- clever/models/courses_updated.py | 2 +- clever/models/districtadmins_created.py | 2 +- clever/models/districtadmins_deleted.py | 2 +- clever/models/districtadmins_updated.py | 2 +- clever/models/districts_created.py | 2 +- clever/models/districts_deleted.py | 2 +- clever/models/districts_updated.py | 2 +- clever/models/schooladmins_created.py | 2 +- clever/models/schooladmins_deleted.py | 2 +- clever/models/schooladmins_updated.py | 2 +- clever/models/schools_created.py | 2 +- clever/models/schools_deleted.py | 2 +- clever/models/schools_updated.py | 2 +- clever/models/sections_created.py | 2 +- clever/models/sections_deleted.py | 2 +- clever/models/sections_updated.py | 2 +- clever/models/students_created.py | 2 +- clever/models/students_deleted.py | 2 +- clever/models/students_updated.py | 2 +- clever/models/teachers_created.py | 2 +- clever/models/teachers_deleted.py | 2 +- clever/models/teachers_updated.py | 2 +- clever/models/terms_created.py | 2 +- clever/models/terms_deleted.py | 2 +- clever/models/terms_updated.py | 2 +- override/contacts_created.py | 2 +- override/contacts_deleted.py | 2 +- override/contacts_updated.py | 2 +- override/courses_created.py | 2 +- override/courses_deleted.py | 2 +- override/courses_updated.py | 2 +- override/districtadmins_created.py | 2 +- override/districtadmins_deleted.py | 2 +- override/districtadmins_updated.py | 2 +- override/districts_created.py | 2 +- override/districts_deleted.py | 2 +- override/districts_updated.py | 2 +- override/schooladmins_created.py | 2 +- override/schooladmins_deleted.py | 2 +- override/schooladmins_updated.py | 2 +- override/schools_created.py | 2 +- override/schools_deleted.py | 2 +- override/schools_updated.py | 2 +- override/sections_created.py | 2 +- override/sections_deleted.py | 2 +- override/sections_updated.py | 2 +- override/students_created.py | 2 +- override/students_deleted.py | 2 +- override/students_updated.py | 2 +- override/teachers_created.py | 2 +- override/teachers_deleted.py | 2 +- override/teachers_updated.py | 2 +- override/terms_created.py | 2 +- override/terms_deleted.py | 2 +- override/terms_updated.py | 2 +- 60 files changed, 60 insertions(+), 60 deletions(-) diff --git a/clever/models/contacts_created.py b/clever/models/contacts_created.py index 0c073e9..7ce361f 100644 --- a/clever/models/contacts_created.py +++ b/clever/models/contacts_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class ContactsCreated(event.Event): """ diff --git a/clever/models/contacts_deleted.py b/clever/models/contacts_deleted.py index 807ac14..c4ba020 100644 --- a/clever/models/contacts_deleted.py +++ b/clever/models/contacts_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class ContactsDeleted(event.Event): """ diff --git a/clever/models/contacts_updated.py b/clever/models/contacts_updated.py index b2fc235..e4ec27d 100644 --- a/clever/models/contacts_updated.py +++ b/clever/models/contacts_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class ContactsUpdated(event.Event): """ diff --git a/clever/models/courses_created.py b/clever/models/courses_created.py index 035cb9e..bfb1846 100644 --- a/clever/models/courses_created.py +++ b/clever/models/courses_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class CoursesCreated(event.Event): """ diff --git a/clever/models/courses_deleted.py b/clever/models/courses_deleted.py index 581c37a..84eb363 100644 --- a/clever/models/courses_deleted.py +++ b/clever/models/courses_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class CoursesDeleted(event.Event): """ diff --git a/clever/models/courses_updated.py b/clever/models/courses_updated.py index e8b8da7..a6960f7 100644 --- a/clever/models/courses_updated.py +++ b/clever/models/courses_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class CoursesUpdated(event.Event): """ diff --git a/clever/models/districtadmins_created.py b/clever/models/districtadmins_created.py index d156cd7..7c2226a 100644 --- a/clever/models/districtadmins_created.py +++ b/clever/models/districtadmins_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class DistrictadminsCreated(event.Event): """ diff --git a/clever/models/districtadmins_deleted.py b/clever/models/districtadmins_deleted.py index 8760700..56a9419 100644 --- a/clever/models/districtadmins_deleted.py +++ b/clever/models/districtadmins_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class DistrictadminsDeleted(event.Event): """ diff --git a/clever/models/districtadmins_updated.py b/clever/models/districtadmins_updated.py index 33a1007..bd3e765 100644 --- a/clever/models/districtadmins_updated.py +++ b/clever/models/districtadmins_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class DistrictadminsUpdated(event.Event): """ diff --git a/clever/models/districts_created.py b/clever/models/districts_created.py index bffa0ca..6215970 100644 --- a/clever/models/districts_created.py +++ b/clever/models/districts_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class DistrictsCreated(event.Event): """ diff --git a/clever/models/districts_deleted.py b/clever/models/districts_deleted.py index 5d1fd95..cd17f37 100644 --- a/clever/models/districts_deleted.py +++ b/clever/models/districts_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class DistrictsDeleted(event.Event): """ diff --git a/clever/models/districts_updated.py b/clever/models/districts_updated.py index 0319156..e4e3e57 100644 --- a/clever/models/districts_updated.py +++ b/clever/models/districts_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class DistrictsUpdated(event.Event): """ diff --git a/clever/models/schooladmins_created.py b/clever/models/schooladmins_created.py index 0bed6c1..2f567a9 100644 --- a/clever/models/schooladmins_created.py +++ b/clever/models/schooladmins_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SchooladminsCreated(event.Event): """ diff --git a/clever/models/schooladmins_deleted.py b/clever/models/schooladmins_deleted.py index 38d5997..31f3fe4 100644 --- a/clever/models/schooladmins_deleted.py +++ b/clever/models/schooladmins_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SchooladminsDeleted(event.Event): """ diff --git a/clever/models/schooladmins_updated.py b/clever/models/schooladmins_updated.py index b505d95..de89a4f 100644 --- a/clever/models/schooladmins_updated.py +++ b/clever/models/schooladmins_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SchooladminsUpdated(event.Event): """ diff --git a/clever/models/schools_created.py b/clever/models/schools_created.py index 822818e..0bdffd1 100644 --- a/clever/models/schools_created.py +++ b/clever/models/schools_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SchoolsCreated(event.Event): """ diff --git a/clever/models/schools_deleted.py b/clever/models/schools_deleted.py index f8343a2..99a7123 100644 --- a/clever/models/schools_deleted.py +++ b/clever/models/schools_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SchoolsDeleted(event.Event): """ diff --git a/clever/models/schools_updated.py b/clever/models/schools_updated.py index 40b5365..46ce732 100644 --- a/clever/models/schools_updated.py +++ b/clever/models/schools_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SchoolsUpdated(event.Event): """ diff --git a/clever/models/sections_created.py b/clever/models/sections_created.py index 35d92e1..a7d4356 100644 --- a/clever/models/sections_created.py +++ b/clever/models/sections_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SectionsCreated(event.Event): """ diff --git a/clever/models/sections_deleted.py b/clever/models/sections_deleted.py index 9dc681c..343b1ca 100644 --- a/clever/models/sections_deleted.py +++ b/clever/models/sections_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SectionsDeleted(event.Event): """ diff --git a/clever/models/sections_updated.py b/clever/models/sections_updated.py index c8ba933..dfbca8b 100644 --- a/clever/models/sections_updated.py +++ b/clever/models/sections_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SectionsUpdated(event.Event): """ diff --git a/clever/models/students_created.py b/clever/models/students_created.py index 2b4b6c5..536b798 100644 --- a/clever/models/students_created.py +++ b/clever/models/students_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class StudentsCreated(event.Event): """ diff --git a/clever/models/students_deleted.py b/clever/models/students_deleted.py index 6085f1f..bfef358 100644 --- a/clever/models/students_deleted.py +++ b/clever/models/students_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class StudentsDeleted(event.Event): """ diff --git a/clever/models/students_updated.py b/clever/models/students_updated.py index e6c639b..fdc80a3 100644 --- a/clever/models/students_updated.py +++ b/clever/models/students_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class StudentsUpdated(event.Event): """ diff --git a/clever/models/teachers_created.py b/clever/models/teachers_created.py index 85a60e5..729454b 100644 --- a/clever/models/teachers_created.py +++ b/clever/models/teachers_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class TeachersCreated(event.Event): """ diff --git a/clever/models/teachers_deleted.py b/clever/models/teachers_deleted.py index a8dff4c..1043ac0 100644 --- a/clever/models/teachers_deleted.py +++ b/clever/models/teachers_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class TeachersDeleted(event.Event): """ diff --git a/clever/models/teachers_updated.py b/clever/models/teachers_updated.py index f2a0930..4ad0458 100644 --- a/clever/models/teachers_updated.py +++ b/clever/models/teachers_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class TeachersUpdated(event.Event): """ diff --git a/clever/models/terms_created.py b/clever/models/terms_created.py index 925d163..7dac9d1 100644 --- a/clever/models/terms_created.py +++ b/clever/models/terms_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class TermsCreated(event.Event): """ diff --git a/clever/models/terms_deleted.py b/clever/models/terms_deleted.py index 9cf5488..7edd24d 100644 --- a/clever/models/terms_deleted.py +++ b/clever/models/terms_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class TermsDeleted(event.Event): """ diff --git a/clever/models/terms_updated.py b/clever/models/terms_updated.py index b48ddc6..55dc58f 100644 --- a/clever/models/terms_updated.py +++ b/clever/models/terms_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class TermsUpdated(event.Event): """ diff --git a/override/contacts_created.py b/override/contacts_created.py index 0c073e9..7ce361f 100644 --- a/override/contacts_created.py +++ b/override/contacts_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class ContactsCreated(event.Event): """ diff --git a/override/contacts_deleted.py b/override/contacts_deleted.py index 807ac14..c4ba020 100644 --- a/override/contacts_deleted.py +++ b/override/contacts_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class ContactsDeleted(event.Event): """ diff --git a/override/contacts_updated.py b/override/contacts_updated.py index b2fc235..e4ec27d 100644 --- a/override/contacts_updated.py +++ b/override/contacts_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class ContactsUpdated(event.Event): """ diff --git a/override/courses_created.py b/override/courses_created.py index 035cb9e..bfb1846 100644 --- a/override/courses_created.py +++ b/override/courses_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class CoursesCreated(event.Event): """ diff --git a/override/courses_deleted.py b/override/courses_deleted.py index 581c37a..84eb363 100644 --- a/override/courses_deleted.py +++ b/override/courses_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class CoursesDeleted(event.Event): """ diff --git a/override/courses_updated.py b/override/courses_updated.py index e8b8da7..a6960f7 100644 --- a/override/courses_updated.py +++ b/override/courses_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class CoursesUpdated(event.Event): """ diff --git a/override/districtadmins_created.py b/override/districtadmins_created.py index d156cd7..7c2226a 100644 --- a/override/districtadmins_created.py +++ b/override/districtadmins_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class DistrictadminsCreated(event.Event): """ diff --git a/override/districtadmins_deleted.py b/override/districtadmins_deleted.py index 8760700..56a9419 100644 --- a/override/districtadmins_deleted.py +++ b/override/districtadmins_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class DistrictadminsDeleted(event.Event): """ diff --git a/override/districtadmins_updated.py b/override/districtadmins_updated.py index 33a1007..bd3e765 100644 --- a/override/districtadmins_updated.py +++ b/override/districtadmins_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class DistrictadminsUpdated(event.Event): """ diff --git a/override/districts_created.py b/override/districts_created.py index bffa0ca..6215970 100644 --- a/override/districts_created.py +++ b/override/districts_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class DistrictsCreated(event.Event): """ diff --git a/override/districts_deleted.py b/override/districts_deleted.py index 5d1fd95..cd17f37 100644 --- a/override/districts_deleted.py +++ b/override/districts_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class DistrictsDeleted(event.Event): """ diff --git a/override/districts_updated.py b/override/districts_updated.py index 0319156..e4e3e57 100644 --- a/override/districts_updated.py +++ b/override/districts_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class DistrictsUpdated(event.Event): """ diff --git a/override/schooladmins_created.py b/override/schooladmins_created.py index 0bed6c1..2f567a9 100644 --- a/override/schooladmins_created.py +++ b/override/schooladmins_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SchooladminsCreated(event.Event): """ diff --git a/override/schooladmins_deleted.py b/override/schooladmins_deleted.py index 38d5997..31f3fe4 100644 --- a/override/schooladmins_deleted.py +++ b/override/schooladmins_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SchooladminsDeleted(event.Event): """ diff --git a/override/schooladmins_updated.py b/override/schooladmins_updated.py index b505d95..de89a4f 100644 --- a/override/schooladmins_updated.py +++ b/override/schooladmins_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SchooladminsUpdated(event.Event): """ diff --git a/override/schools_created.py b/override/schools_created.py index 822818e..0bdffd1 100644 --- a/override/schools_created.py +++ b/override/schools_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SchoolsCreated(event.Event): """ diff --git a/override/schools_deleted.py b/override/schools_deleted.py index f8343a2..99a7123 100644 --- a/override/schools_deleted.py +++ b/override/schools_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SchoolsDeleted(event.Event): """ diff --git a/override/schools_updated.py b/override/schools_updated.py index 40b5365..46ce732 100644 --- a/override/schools_updated.py +++ b/override/schools_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SchoolsUpdated(event.Event): """ diff --git a/override/sections_created.py b/override/sections_created.py index 35d92e1..a7d4356 100644 --- a/override/sections_created.py +++ b/override/sections_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SectionsCreated(event.Event): """ diff --git a/override/sections_deleted.py b/override/sections_deleted.py index 9dc681c..343b1ca 100644 --- a/override/sections_deleted.py +++ b/override/sections_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SectionsDeleted(event.Event): """ diff --git a/override/sections_updated.py b/override/sections_updated.py index c8ba933..dfbca8b 100644 --- a/override/sections_updated.py +++ b/override/sections_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class SectionsUpdated(event.Event): """ diff --git a/override/students_created.py b/override/students_created.py index 2b4b6c5..536b798 100644 --- a/override/students_created.py +++ b/override/students_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class StudentsCreated(event.Event): """ diff --git a/override/students_deleted.py b/override/students_deleted.py index 6085f1f..bfef358 100644 --- a/override/students_deleted.py +++ b/override/students_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class StudentsDeleted(event.Event): """ diff --git a/override/students_updated.py b/override/students_updated.py index e6c639b..fdc80a3 100644 --- a/override/students_updated.py +++ b/override/students_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class StudentsUpdated(event.Event): """ diff --git a/override/teachers_created.py b/override/teachers_created.py index 85a60e5..729454b 100644 --- a/override/teachers_created.py +++ b/override/teachers_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class TeachersCreated(event.Event): """ diff --git a/override/teachers_deleted.py b/override/teachers_deleted.py index a8dff4c..1043ac0 100644 --- a/override/teachers_deleted.py +++ b/override/teachers_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class TeachersDeleted(event.Event): """ diff --git a/override/teachers_updated.py b/override/teachers_updated.py index f2a0930..4ad0458 100644 --- a/override/teachers_updated.py +++ b/override/teachers_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class TeachersUpdated(event.Event): """ diff --git a/override/terms_created.py b/override/terms_created.py index 925d163..7dac9d1 100644 --- a/override/terms_created.py +++ b/override/terms_created.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class TermsCreated(event.Event): """ diff --git a/override/terms_deleted.py b/override/terms_deleted.py index 9cf5488..7edd24d 100644 --- a/override/terms_deleted.py +++ b/override/terms_deleted.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class TermsDeleted(event.Event): """ diff --git a/override/terms_updated.py b/override/terms_updated.py index b48ddc6..55dc58f 100644 --- a/override/terms_updated.py +++ b/override/terms_updated.py @@ -14,7 +14,7 @@ from pprint import pformat from six import iteritems import re -import event +from . import event class TermsUpdated(event.Event): """ From 22419ceb42a453959b2ee2bc5e5a6ea48b6a9fe9 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Mon, 16 Jul 2018 22:04:53 -0700 Subject: [PATCH 44/53] Bump version --- CHANGELOG.md | 3 +++ clever/VERSION | 2 +- override/VERSION | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b8945f..a197739 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 3.0.2 (2018-07-16) +* Removes implicit relative imports which are not supported in Python 3 + ## 3.0.1 (2018-05-15) * Change students home_language 'Telegu' to 'Telugu' diff --git a/clever/VERSION b/clever/VERSION index cb2b00e..b502146 100644 --- a/clever/VERSION +++ b/clever/VERSION @@ -1 +1 @@ -3.0.1 +3.0.2 diff --git a/override/VERSION b/override/VERSION index 4a36342..b502146 100644 --- a/override/VERSION +++ b/override/VERSION @@ -1 +1 @@ -3.0.0 +3.0.2 From 7106af5fd30fb254e5a8072f7c84318ca6c3b317 Mon Sep 17 00:00:00 2001 From: Brianna Veenstra Date: Thu, 23 Aug 2018 18:05:06 -0700 Subject: [PATCH 45/53] [INFRA-3175] autotranslate CircleCI 1.0 -> 2.0 --- .circleci/config.yml | 30 ++++++++++++++++++++++++++++++ circle.yml | 11 ----------- 2 files changed, 30 insertions(+), 11 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 circle.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..14c9ca6 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,30 @@ +version: 2 +jobs: + build: + working_directory: ~/Clever/clever-python + docker: + - image: circleci/python:2.7.15 + environment: + CIRCLE_ARTIFACTS: /tmp/circleci-artifacts + CIRCLE_TEST_REPORTS: /tmp/circleci-test-results + steps: + - run: + command: cd $HOME && git clone --depth 1 -v https://github.com/Clever/ci-scripts.git && cd ci-scripts && git show --oneline -s + name: Clone ci-scripts + - checkout + - setup_remote_docker + - run: + command: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS + name: Set up CircleCI artifacts directories + - run: pip install -r test-requirements.txt + - run: make test + - run: $HOME/ci-scripts/circleci/report-card $RC_DOCKER_USER $RC_DOCKER_PASS "$RC_DOCKER_EMAIL" $RC_GITHUB_TOKEN + - run: + command: |- + rm -rf ~/.local + cd /tmp/ && wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py + sudo apt-get update + sudo apt-get install python-dev + sudo pip install --upgrade awscli + aws --version + name: Install awscli for ECR publish diff --git a/circle.yml b/circle.yml deleted file mode 100644 index 0072523..0000000 --- a/circle.yml +++ /dev/null @@ -1,11 +0,0 @@ -machine: - post: - - cd $HOME && git clone --depth 1 -v git@github.com:clever/ci-scripts.git && cd ci-scripts && git show --oneline -s - services: - - docker -test: - override: - - pip install -r test-requirements.txt - - make test - post: - - $HOME/ci-scripts/circleci/report-card $RC_DOCKER_USER $RC_DOCKER_PASS "$RC_DOCKER_EMAIL" $RC_GITHUB_TOKEN From 42e9569ea90434902f625009b8fd6920c8b404ab Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Sun, 26 Aug 2018 10:06:23 -0700 Subject: [PATCH 46/53] sudo pip install --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 14c9ca6..603b8c7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,7 +16,7 @@ jobs: - run: command: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS name: Set up CircleCI artifacts directories - - run: pip install -r test-requirements.txt + - run: sudo pip install -r test-requirements.txt - run: make test - run: $HOME/ci-scripts/circleci/report-card $RC_DOCKER_USER $RC_DOCKER_PASS "$RC_DOCKER_EMAIL" $RC_GITHUB_TOKEN - run: From 96f6336e14ae320eec568b6cffc26ad2cb0f6e9e Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Sun, 26 Aug 2018 10:07:28 -0700 Subject: [PATCH 47/53] sudo make test --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 603b8c7..cc02656 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,7 +17,7 @@ jobs: command: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS name: Set up CircleCI artifacts directories - run: sudo pip install -r test-requirements.txt - - run: make test + - run: sudo make test - run: $HOME/ci-scripts/circleci/report-card $RC_DOCKER_USER $RC_DOCKER_PASS "$RC_DOCKER_EMAIL" $RC_GITHUB_TOKEN - run: command: |- From e87162458fed8d327625de850ecb18f69c37b0ff Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Sun, 26 Aug 2018 10:07:46 -0700 Subject: [PATCH 48/53] Remove unused ecr publish step --- .circleci/config.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index cc02656..2a20c91 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,12 +19,3 @@ jobs: - run: sudo pip install -r test-requirements.txt - run: sudo make test - run: $HOME/ci-scripts/circleci/report-card $RC_DOCKER_USER $RC_DOCKER_PASS "$RC_DOCKER_EMAIL" $RC_GITHUB_TOKEN - - run: - command: |- - rm -rf ~/.local - cd /tmp/ && wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py - sudo apt-get update - sudo apt-get install python-dev - sudo pip install --upgrade awscli - aws --version - name: Install awscli for ECR publish From 8a2866e93dfcea7a0adcfca3ac8b212703b20a14 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Sun, 26 Aug 2018 10:09:29 -0700 Subject: [PATCH 49/53] install everything --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2a20c91..d219d21 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,5 +17,6 @@ jobs: command: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS name: Set up CircleCI artifacts directories - run: sudo pip install -r test-requirements.txt - - run: sudo make test + - run: sudo pip install -r requirements.txt + - run: make test - run: $HOME/ci-scripts/circleci/report-card $RC_DOCKER_USER $RC_DOCKER_PASS "$RC_DOCKER_EMAIL" $RC_GITHUB_TOKEN From 62de25fe8d4644f0154c67a107b313f0cf890d43 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Fri, 16 Nov 2018 13:59:59 -0800 Subject: [PATCH 50/53] Bump version --- clever/configuration.py | 2 +- docs/README.md | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clever/configuration.py b/clever/configuration.py index 4e7b66a..0c9994c 100644 --- a/clever/configuration.py +++ b/clever/configuration.py @@ -244,5 +244,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2.0.0\n"\ - "SDK Package Version: 3.0.1".\ + "SDK Package Version: 3.0.2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/docs/README.md b/docs/README.md index 48a2d43..35a8d21 100644 --- a/docs/README.md +++ b/docs/README.md @@ -4,7 +4,7 @@ The Clever API This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 2.0.0 -- Package version: 3.0.1 +- Package version: 3.0.2 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Documentation for API Endpoints diff --git a/setup.py b/setup.py index 078bbb8..6799947 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "clever-python" -VERSION = "3.0.1" +VERSION = "3.0.2" # To install the library, run the following # # python setup.py install From 3ce79753454d065ebc2302d48eda6a1b3a0433a2 Mon Sep 17 00:00:00 2001 From: Amelia Jones Date: Wed, 10 Jul 2019 15:32:01 -0700 Subject: [PATCH 51/53] Update swagger-codegen command --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e50b61b..231adce 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ except ApiException as e: 3. Run this command in the swagger-codegen repo ``` -java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i $PATH_TO_SWAGGER_API_REPO/v1.2-client.yml -c $PATH_TO_THIS_REPO/override/config.json -l python -o $PATH_TO_THIS_REPO --additional-properties packageVersion=$VERSION +java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i $PATH_TO_SWAGGER_API_REPO/v2.1-client.yml -l python -o $PATH_TO_THIS_REPO --additional-properties packageVersion=$VERSION ``` 4. Run `make override` to copy over the override files From 16874bd24c9000759e98ca52454bfdb1ac5e05c4 Mon Sep 17 00:00:00 2001 From: nbhatia823 Date: Tue, 29 Mar 2022 15:12:12 -0700 Subject: [PATCH 52/53] Microplane: add Github Action workflow for ci-notify --- .github/workflows/notify-ci-status.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/notify-ci-status.yml diff --git a/.github/workflows/notify-ci-status.yml b/.github/workflows/notify-ci-status.yml new file mode 100644 index 0000000..416559e --- /dev/null +++ b/.github/workflows/notify-ci-status.yml @@ -0,0 +1,15 @@ +name: Notify CI status + +on: status + +jobs: + call-workflow: + if: >- + github.event.branches[0].name == 'master' && + (github.event.state == 'error' || github.event.state == 'failure') + uses: Clever/ci-scripts/.github/workflows/reusable-notify-ci-status.yml@master + secrets: + CIRCLE_CI_INTEGRATIONS_URL: ${{ secrets.CIRCLE_CI_INTEGRATIONS_URL }} + CIRCLE_CI_INTEGRATIONS_USERNAME: ${{ secrets.CIRCLE_CI_INTEGRATIONS_USERNAME }} + CIRCLE_CI_INTEGRATIONS_PASSWORD: ${{ secrets.CIRCLE_CI_INTEGRATIONS_PASSWORD }} + SLACK_BOT_TOKEN: ${{ secrets.DAPPLE_BOT_TOKEN }} From c123d339f9af16aa32405cdf4051ad4afbdc5bd2 Mon Sep 17 00:00:00 2001 From: Mark Cabanero <4522043+mcab@users.noreply.github.com> Date: Thu, 23 Jun 2022 18:38:24 -0700 Subject: [PATCH 53/53] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 231adce..b2f1711 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +# Notice + +This repo is no longer maintained by Clever. We provide the Swagger definitions at https://github.com/Clever/swagger-api. + # Clever - the Python library for the Clever API ## API Documentation