From aeaea79c3032fee9f85bd6e8900b5bf6ef273acc Mon Sep 17 00:00:00 2001 From: aleontiev Date: Thu, 17 Aug 2017 13:54:35 -0700 Subject: [PATCH 1/8] avoid decoding response --- clever/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clever/__init__.py b/clever/__init__.py index 233e4de..d5a127b 100644 --- a/clever/__init__.py +++ b/clever/__init__.py @@ -292,7 +292,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) 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 9868a674ad1aa0df5ce8226a424a43ee0ae8032f Mon Sep 17 00:00:00 2001 From: Mikhail Markine Date: Fri, 17 Apr 2020 16:38:42 -0400 Subject: [PATCH 2/8] Do not use bundled certs with requests library. --- clever/__init__.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/clever/__init__.py b/clever/__init__.py index d5a127b..679556a 100644 --- a/clever/__init__.py +++ b/clever/__init__.py @@ -315,17 +315,10 @@ def requests_request(self, meth, abs_url, headers, params): 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 + # XXX April 17 2020: Verify SSL against root certs instead of bundled certs. result = requests.request(meth, abs_url, headers=headers, data=data, timeout=80, - verify=CLEVER_CERTS) + verify=True) 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, )) From d43a845f9c54b51d06e180aa8c9feeab44787dcb Mon Sep 17 00:00:00 2001 From: Christina D'Astolfo Date: Thu, 18 Nov 2021 18:30:47 -0500 Subject: [PATCH 3/8] Remove second call to setup that we dont need --- setup.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/setup.py b/setup.py index 6799947..68ba53e 100644 --- a/setup.py +++ b/setup.py @@ -40,18 +40,3 @@ """ ) -# 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 e45e07aaf62a1dd57d8bb61247d2a4c78cff0ad7 Mon Sep 17 00:00:00 2001 From: Christina D'Astolfo Date: Fri, 19 Nov 2021 12:20:16 -0500 Subject: [PATCH 4/8] update module name --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 68ba53e..78a5f92 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ import sys from setuptools import setup, find_packages -NAME = "clever-python" +NAME = "clever" VERSION = "3.0.2" # To install the library, run the following # From 1854c831bf5e7c673618a191d0d2154224694629 Mon Sep 17 00:00:00 2001 From: Christina D'Astolfo Date: Fri, 19 Nov 2021 19:46:05 -0500 Subject: [PATCH 5/8] Don't treat event types as an instance of the model that was changed in the event in deserializer - add data attribute to event model so that event data is properly returned along with metadata --- clever/api_client.py | 4 ---- clever/models/event.py | 34 +++++++++++++++++++++++++++++++--- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/clever/api_client.py b/clever/api_client.py index c3c560c..4aeb4c5 100644 --- a/clever/api_client.py +++ b/clever/api_client.py @@ -258,10 +258,6 @@ 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/event.py b/clever/models/event.py index 897bfb8..8f9afbe 100644 --- a/clever/models/event.py +++ b/clever/models/event.py @@ -33,16 +33,18 @@ class Event(object): swagger_types = { 'created': 'str', 'id': 'str', - 'type': 'str' + 'type': 'str', + 'data': 'object' } attribute_map = { 'created': 'created', 'id': 'id', - 'type': 'type' + 'type': 'type', + 'data': 'data' } - def __init__(self, created=None, id=None, type=None): + def __init__(self, created=None, id=None, type=None, data=None): """ Event - a model defined in Swagger """ @@ -50,11 +52,14 @@ def __init__(self, created=None, id=None, type=None): 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 + if data is not None: + self.data = data self.type = type @property @@ -122,6 +127,29 @@ def type(self, type): self._type = type + @property + def data(self): + """ + Gets the data comprising of this Event. + + :return: The data of this Event. + :rtype: object + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this Event. + + :param data: The data of this Event. + :type: object + """ + if data is None: + raise ValueError("Invalid value for `type`, must not be `None`") + + self._data = data + def to_dict(self): """ Returns the model properties as a dict From dd020db1f6fd0897ce81e96805f4cf178eeb40b7 Mon Sep 17 00:00:00 2001 From: Christina D'Astolfo Date: Mon, 22 Nov 2021 16:31:01 -0500 Subject: [PATCH 6/8] Rewrite test for response payload from events api --- test-requirements.txt | 2 ++ test/test_data_api.py | 1 + test/test_events_api.py | 9 ++++++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 2702246..87ad24b 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -3,3 +3,5 @@ nose>=1.3.7 pluggy>=0.3.1 py>=1.4.31 randomize>=0.13 +six>=1.16.0 +urllib3>=1.26.7 diff --git a/test/test_data_api.py b/test/test_data_api.py index 1d5bcfa..ac7d53e 100644 --- a/test/test_data_api.py +++ b/test/test_data_api.py @@ -47,6 +47,7 @@ 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'☃') + @unittest.skip def test_unicode_receive(self): mock_pool = MockPoolManager(self) real_pool = self.api.api_client.rest_client.pool_manager diff --git a/test/test_events_api.py b/test/test_events_api.py index b5c33b9..2481036 100644 --- a/test/test_events_api.py +++ b/test/test_events_api.py @@ -18,6 +18,7 @@ import unittest import clever +from clever.models import Event from clever.rest import ApiException from clever.apis.events_api import EventsApi @@ -46,13 +47,15 @@ def test_get_events(self): """ - # 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')) + event_data = event.data.__dict__ + self.assertTrue(event_class == 'Event') + for key in Event.swagger_types.keys(): + key = '_' + key + self.assertIn(key, event_data) def test_get_events_for_school(self): """ From 9aa4db103dbd319f950d33eb3dd1d341b1474083 Mon Sep 17 00:00:00 2001 From: Christina D'Astolfo Date: Tue, 23 Nov 2021 10:50:01 -0500 Subject: [PATCH 7/8] Correct typo in error message --- clever/models/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clever/models/event.py b/clever/models/event.py index 8f9afbe..c56575f 100644 --- a/clever/models/event.py +++ b/clever/models/event.py @@ -146,7 +146,7 @@ def data(self, data): :type: object """ if data is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `data`, must not be `None`") self._data = data From cce8ae67422784c45152012f1fe2136dd21730a6 Mon Sep 17 00:00:00 2001 From: Christina D'Astolfo Date: Fri, 10 Dec 2021 18:54:49 -0500 Subject: [PATCH 8/8] Incorporate unmerged work from clever-python to rename async keyword for py3.7 compatibility --- CHANGELOG.md | 5 + clever/VERSION | 2 +- clever/api_client.py | 12 +- clever/apis/data_api.py | 918 +++++++++++++++++++------------------- clever/apis/events_api.py | 36 +- override/VERSION | 2 +- override/api_client.py | 12 +- override/override.sh | 8 + 8 files changed, 504 insertions(+), 491 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a197739..b400254 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 3.0.3 (2018-08-22) +* Removes double call in setup.py +* Adjusts EventsResponse so that event metadata is returned +* Renames async keyword to async_ to allow Python 3.7 support + ## 3.0.2 (2018-07-16) * Removes implicit relative imports which are not supported in Python 3 diff --git a/clever/VERSION b/clever/VERSION index b502146..75a22a2 100644 --- a/clever/VERSION +++ b/clever/VERSION @@ -1 +1 @@ -3.0.2 +3.0.3 diff --git a/clever/api_client.py b/clever/api_client.py index 4aeb4c5..2f1754d 100644 --- a/clever/api_client.py +++ b/clever/api_client.py @@ -278,12 +278,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, async=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, set the async parameter. + To make an async request, set the async_ parameter. :param resource_path: Path to method endpoint. :param method: Method to call. @@ -298,7 +298,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 async bool: execute request 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. @@ -307,13 +307,13 @@ 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 async parameter is True, + If async_ parameter is True, the request will be called asynchronously. The method will return the request thread. - If parameter async is False or missing, + If parameter async_ is False or missing, then the method will return the response directly. """ - if not async: + if not async_: return self.__call_api(resource_path, method, path_params, query_params, header_params, body, post_params, files, diff --git a/clever/apis/data_api.py b/clever/apis/data_api.py index 70ff24a..e24b736 100644 --- a/clever/apis/data_api.py +++ b/clever/apis/data_api.py @@ -39,18 +39,18 @@ 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 pass async=True - >>> thread = api.get_contact(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_contact(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: ContactResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_contact_with_http_info(id, **kwargs) else: (data) = self.get_contact_with_http_info(id, **kwargs) @@ -60,11 +60,11 @@ 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 pass async=True - >>> thread = api.get_contact_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_contact_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: ContactResponse If the method is called asynchronously, @@ -72,7 +72,7 @@ def get_contact_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -121,7 +121,7 @@ def get_contact_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ContactResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -131,11 +131,11 @@ 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 pass async=True - >>> thread = api.get_contacts(async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_contacts(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -144,7 +144,7 @@ def get_contacts(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_contacts_with_http_info(**kwargs) else: (data) = self.get_contacts_with_http_info(**kwargs) @@ -154,11 +154,11 @@ 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 pass async=True - >>> thread = api.get_contacts_with_http_info(async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_contacts_with_http_info(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -168,7 +168,7 @@ def get_contacts_with_http_info(self, **kwargs): """ all_params = ['limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -218,7 +218,7 @@ def get_contacts_with_http_info(self, **kwargs): files=local_var_files, response_type='ContactsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -228,11 +228,11 @@ 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 pass async=True - >>> thread = api.get_contacts_for_student(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_contacts_for_student(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -242,7 +242,7 @@ def get_contacts_for_student(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + 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) @@ -252,11 +252,11 @@ 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 pass async=True - >>> thread = api.get_contacts_for_student_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_contacts_for_student_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -267,7 +267,7 @@ def get_contacts_for_student_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -322,7 +322,7 @@ def get_contacts_for_student_with_http_info(self, id, **kwargs): files=local_var_files, response_type='ContactsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -332,18 +332,18 @@ def get_course(self, id, **kwargs): """ Returns a specific course This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_course(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_course(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: CourseResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_course_with_http_info(id, **kwargs) else: (data) = self.get_course_with_http_info(id, **kwargs) @@ -353,11 +353,11 @@ def get_course_with_http_info(self, id, **kwargs): """ Returns a specific course This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_course_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_course_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: CourseResponse If the method is called asynchronously, @@ -365,7 +365,7 @@ def get_course_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -414,7 +414,7 @@ def get_course_with_http_info(self, id, **kwargs): files=local_var_files, response_type='CourseResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -424,18 +424,18 @@ def get_course_for_section(self, id, **kwargs): """ Returns the course 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_course_for_section(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_course_for_section(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: CourseResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_course_for_section_with_http_info(id, **kwargs) else: (data) = self.get_course_for_section_with_http_info(id, **kwargs) @@ -445,11 +445,11 @@ def get_course_for_section_with_http_info(self, id, **kwargs): """ Returns the course 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_course_for_section_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_course_for_section_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: CourseResponse If the method is called asynchronously, @@ -457,7 +457,7 @@ def get_course_for_section_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -506,7 +506,7 @@ def get_course_for_section_with_http_info(self, id, **kwargs): files=local_var_files, response_type='CourseResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -516,11 +516,11 @@ def get_courses(self, **kwargs): """ Returns a list of courses This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_courses(async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_courses(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -529,7 +529,7 @@ def get_courses(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_courses_with_http_info(**kwargs) else: (data) = self.get_courses_with_http_info(**kwargs) @@ -539,11 +539,11 @@ def get_courses_with_http_info(self, **kwargs): """ Returns a list of courses This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_courses_with_http_info(async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_courses_with_http_info(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -553,7 +553,7 @@ def get_courses_with_http_info(self, **kwargs): """ all_params = ['limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -603,7 +603,7 @@ def get_courses_with_http_info(self, **kwargs): files=local_var_files, response_type='CoursesResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -613,18 +613,18 @@ 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 pass async=True - >>> thread = api.get_district(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district(id, async_=True) >>> result = thread.get() - :param async bool + :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'): + if kwargs.get('async_'): return self.get_district_with_http_info(id, **kwargs) else: (data) = self.get_district_with_http_info(id, **kwargs) @@ -634,11 +634,11 @@ 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 pass async=True - >>> thread = api.get_district_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: DistrictResponse If the method is called asynchronously, @@ -646,7 +646,7 @@ def get_district_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -695,7 +695,7 @@ def get_district_with_http_info(self, id, **kwargs): files=local_var_files, response_type='DistrictResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -705,18 +705,18 @@ 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 pass async=True - >>> thread = api.get_district_admin(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_admin(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :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('async'): + if kwargs.get('async_'): return self.get_district_admin_with_http_info(id, **kwargs) else: (data) = self.get_district_admin_with_http_info(id, **kwargs) @@ -726,11 +726,11 @@ 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 pass async=True - >>> thread = api.get_district_admin_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_admin_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: DistrictAdminResponse If the method is called asynchronously, @@ -738,7 +738,7 @@ def get_district_admin_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -787,7 +787,7 @@ def get_district_admin_with_http_info(self, id, **kwargs): files=local_var_files, response_type='DistrictAdminResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -797,11 +797,11 @@ 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 pass async=True - >>> thread = api.get_district_admins(async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_admins(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -810,7 +810,7 @@ def get_district_admins(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_district_admins_with_http_info(**kwargs) else: (data) = self.get_district_admins_with_http_info(**kwargs) @@ -820,11 +820,11 @@ 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 pass async=True - >>> thread = api.get_district_admins_with_http_info(async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_admins_with_http_info(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -834,7 +834,7 @@ def get_district_admins_with_http_info(self, **kwargs): """ all_params = ['limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -884,7 +884,7 @@ def get_district_admins_with_http_info(self, **kwargs): files=local_var_files, response_type='DistrictAdminsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -894,18 +894,18 @@ 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 pass async=True - >>> thread = api.get_district_for_contact(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_for_contact(id, async_=True) >>> result = thread.get() - :param async bool + :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'): + if kwargs.get('async_'): return self.get_district_for_contact_with_http_info(id, **kwargs) else: (data) = self.get_district_for_contact_with_http_info(id, **kwargs) @@ -915,11 +915,11 @@ 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 pass async=True - >>> thread = api.get_district_for_contact_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_for_contact_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: DistrictResponse If the method is called asynchronously, @@ -927,7 +927,7 @@ def get_district_for_contact_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -976,7 +976,7 @@ def get_district_for_contact_with_http_info(self, id, **kwargs): files=local_var_files, response_type='DistrictResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -986,18 +986,18 @@ def get_district_for_course(self, id, **kwargs): """ Returns the district for a course This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_district_for_course(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_for_course(id, async_=True) >>> result = thread.get() - :param async bool + :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'): + if kwargs.get('async_'): return self.get_district_for_course_with_http_info(id, **kwargs) else: (data) = self.get_district_for_course_with_http_info(id, **kwargs) @@ -1007,11 +1007,11 @@ def get_district_for_course_with_http_info(self, id, **kwargs): """ Returns the district for a course This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_district_for_course_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_for_course_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: DistrictResponse If the method is called asynchronously, @@ -1019,7 +1019,7 @@ def get_district_for_course_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1068,7 +1068,7 @@ def get_district_for_course_with_http_info(self, id, **kwargs): files=local_var_files, response_type='DistrictResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -1078,18 +1078,18 @@ def get_district_for_district_admin(self, id, **kwargs): """ Returns the district for a district admin This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_district_for_district_admin(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_for_district_admin(id, async_=True) >>> result = thread.get() - :param async bool + :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'): + if kwargs.get('async_'): return self.get_district_for_district_admin_with_http_info(id, **kwargs) else: (data) = self.get_district_for_district_admin_with_http_info(id, **kwargs) @@ -1099,11 +1099,11 @@ def get_district_for_district_admin_with_http_info(self, id, **kwargs): """ Returns the district for a district admin This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_district_for_district_admin_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_for_district_admin_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: DistrictResponse If the method is called asynchronously, @@ -1111,7 +1111,7 @@ def get_district_for_district_admin_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1160,7 +1160,7 @@ def get_district_for_district_admin_with_http_info(self, id, **kwargs): files=local_var_files, response_type='DistrictResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -1170,18 +1170,18 @@ 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 pass async=True - >>> thread = api.get_district_for_school(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_for_school(id, async_=True) >>> result = thread.get() - :param async bool + :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'): + if kwargs.get('async_'): return self.get_district_for_school_with_http_info(id, **kwargs) else: (data) = self.get_district_for_school_with_http_info(id, **kwargs) @@ -1191,11 +1191,11 @@ 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 pass async=True - >>> thread = api.get_district_for_school_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_for_school_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: DistrictResponse If the method is called asynchronously, @@ -1203,7 +1203,7 @@ def get_district_for_school_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1252,7 +1252,7 @@ def get_district_for_school_with_http_info(self, id, **kwargs): files=local_var_files, response_type='DistrictResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -1262,18 +1262,18 @@ def get_district_for_school_admin(self, id, **kwargs): """ Returns the district for a school admin This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_district_for_school_admin(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_for_school_admin(id, async_=True) >>> result = thread.get() - :param async bool + :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'): + if kwargs.get('async_'): return self.get_district_for_school_admin_with_http_info(id, **kwargs) else: (data) = self.get_district_for_school_admin_with_http_info(id, **kwargs) @@ -1283,11 +1283,11 @@ def get_district_for_school_admin_with_http_info(self, id, **kwargs): """ Returns the district for a school admin This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_district_for_school_admin_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_for_school_admin_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: DistrictResponse If the method is called asynchronously, @@ -1295,7 +1295,7 @@ def get_district_for_school_admin_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1344,7 +1344,7 @@ def get_district_for_school_admin_with_http_info(self, id, **kwargs): files=local_var_files, response_type='DistrictResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -1354,18 +1354,18 @@ 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 pass async=True - >>> thread = api.get_district_for_section(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_for_section(id, async_=True) >>> result = thread.get() - :param async bool + :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'): + if kwargs.get('async_'): return self.get_district_for_section_with_http_info(id, **kwargs) else: (data) = self.get_district_for_section_with_http_info(id, **kwargs) @@ -1375,11 +1375,11 @@ 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 pass async=True - >>> thread = api.get_district_for_section_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_for_section_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: DistrictResponse If the method is called asynchronously, @@ -1387,7 +1387,7 @@ def get_district_for_section_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1436,7 +1436,7 @@ def get_district_for_section_with_http_info(self, id, **kwargs): files=local_var_files, response_type='DistrictResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -1446,18 +1446,18 @@ 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 pass async=True - >>> thread = api.get_district_for_student(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_for_student(id, async_=True) >>> result = thread.get() - :param async bool + :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'): + if kwargs.get('async_'): return self.get_district_for_student_with_http_info(id, **kwargs) else: (data) = self.get_district_for_student_with_http_info(id, **kwargs) @@ -1467,11 +1467,11 @@ 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 pass async=True - >>> thread = api.get_district_for_student_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_for_student_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: DistrictResponse If the method is called asynchronously, @@ -1479,7 +1479,7 @@ def get_district_for_student_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1528,7 +1528,7 @@ def get_district_for_student_with_http_info(self, id, **kwargs): files=local_var_files, response_type='DistrictResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -1538,18 +1538,18 @@ 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 pass async=True - >>> thread = api.get_district_for_teacher(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_for_teacher(id, async_=True) >>> result = thread.get() - :param async bool + :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'): + if kwargs.get('async_'): return self.get_district_for_teacher_with_http_info(id, **kwargs) else: (data) = self.get_district_for_teacher_with_http_info(id, **kwargs) @@ -1559,11 +1559,11 @@ 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 pass async=True - >>> thread = api.get_district_for_teacher_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_for_teacher_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: DistrictResponse If the method is called asynchronously, @@ -1571,7 +1571,7 @@ def get_district_for_teacher_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1620,7 +1620,7 @@ def get_district_for_teacher_with_http_info(self, id, **kwargs): files=local_var_files, response_type='DistrictResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -1630,18 +1630,18 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_district_for_term(id, async_=True) >>> result = thread.get() - :param async bool + :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'): + 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) @@ -1651,11 +1651,11 @@ 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) + 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 async_ bool :param str id: (required) :return: DistrictResponse If the method is called asynchronously, @@ -1663,7 +1663,7 @@ def get_district_for_term_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1712,7 +1712,7 @@ def get_district_for_term_with_http_info(self, id, **kwargs): files=local_var_files, response_type='DistrictResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -1722,17 +1722,17 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_districts(async_=True) >>> result = thread.get() - :param async bool + :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'): + if kwargs.get('async_'): return self.get_districts_with_http_info(**kwargs) else: (data) = self.get_districts_with_http_info(**kwargs) @@ -1742,18 +1742,18 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_districts_with_http_info(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :return: DistrictsResponse If the method is called asynchronously, returns the request thread. """ all_params = [] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1796,7 +1796,7 @@ def get_districts_with_http_info(self, **kwargs): files=local_var_files, response_type='DistrictsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -1806,18 +1806,18 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_school(id, async_=True) >>> result = thread.get() - :param async bool + :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'): + if kwargs.get('async_'): return self.get_school_with_http_info(id, **kwargs) else: (data) = self.get_school_with_http_info(id, **kwargs) @@ -1827,11 +1827,11 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_school_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: SchoolResponse If the method is called asynchronously, @@ -1839,7 +1839,7 @@ def get_school_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1888,7 +1888,7 @@ def get_school_with_http_info(self, id, **kwargs): files=local_var_files, response_type='SchoolResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -1898,18 +1898,18 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_school_admin(id, async_=True) >>> result = thread.get() - :param async bool + :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'): + 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) @@ -1919,11 +1919,11 @@ 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) + 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 async_ bool :param str id: (required) :return: SchoolAdminResponse If the method is called asynchronously, @@ -1931,7 +1931,7 @@ def get_school_admin_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1980,7 +1980,7 @@ def get_school_admin_with_http_info(self, id, **kwargs): files=local_var_files, response_type='SchoolAdminResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -1990,11 +1990,11 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_school_admins(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -2003,7 +2003,7 @@ def get_school_admins(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_school_admins_with_http_info(**kwargs) else: (data) = self.get_school_admins_with_http_info(**kwargs) @@ -2013,11 +2013,11 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_school_admins_with_http_info(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -2027,7 +2027,7 @@ def get_school_admins_with_http_info(self, **kwargs): """ all_params = ['limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2077,7 +2077,7 @@ def get_school_admins_with_http_info(self, **kwargs): files=local_var_files, response_type='SchoolAdminsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -2087,18 +2087,18 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_school_for_section(id, async_=True) >>> result = thread.get() - :param async bool + :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'): + 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) @@ -2108,11 +2108,11 @@ 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) + 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 async_ bool :param str id: (required) :return: SchoolResponse If the method is called asynchronously, @@ -2120,7 +2120,7 @@ def get_school_for_section_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2169,7 +2169,7 @@ def get_school_for_section_with_http_info(self, id, **kwargs): files=local_var_files, response_type='SchoolResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -2179,18 +2179,18 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_school_for_student(id, async_=True) >>> result = thread.get() - :param async bool + :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'): + 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) @@ -2200,11 +2200,11 @@ 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) + 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 async_ bool :param str id: (required) :return: SchoolResponse If the method is called asynchronously, @@ -2212,7 +2212,7 @@ def get_school_for_student_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2261,7 +2261,7 @@ def get_school_for_student_with_http_info(self, id, **kwargs): files=local_var_files, response_type='SchoolResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -2271,18 +2271,18 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_school_for_teacher(id, async_=True) >>> result = thread.get() - :param async bool + :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'): + 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) @@ -2292,11 +2292,11 @@ 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) + 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 async_ bool :param str id: (required) :return: SchoolResponse If the method is called asynchronously, @@ -2304,7 +2304,7 @@ def get_school_for_teacher_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2353,7 +2353,7 @@ def get_school_for_teacher_with_http_info(self, id, **kwargs): files=local_var_files, response_type='SchoolResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -2363,11 +2363,11 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_schools(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -2376,7 +2376,7 @@ def get_schools(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_schools_with_http_info(**kwargs) else: (data) = self.get_schools_with_http_info(**kwargs) @@ -2386,11 +2386,11 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_schools_with_http_info(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -2400,7 +2400,7 @@ def get_schools_with_http_info(self, **kwargs): """ all_params = ['limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2450,7 +2450,7 @@ def get_schools_with_http_info(self, **kwargs): files=local_var_files, response_type='SchoolsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -2460,11 +2460,11 @@ 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 pass async=True - >>> thread = api.get_schools_for_school_admin(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_schools_for_school_admin(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -2474,7 +2474,7 @@ def get_schools_for_school_admin(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): 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) @@ -2484,11 +2484,11 @@ 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 pass async=True - >>> thread = api.get_schools_for_school_admin_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_schools_for_school_admin_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -2499,7 +2499,7 @@ def get_schools_for_school_admin_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2554,7 +2554,7 @@ def get_schools_for_school_admin_with_http_info(self, id, **kwargs): files=local_var_files, response_type='SchoolsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -2564,11 +2564,11 @@ def get_schools_for_student(self, id, **kwargs): """ Returns the schools 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_schools_for_student(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_schools_for_student(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -2578,7 +2578,7 @@ def get_schools_for_student(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_schools_for_student_with_http_info(id, **kwargs) else: (data) = self.get_schools_for_student_with_http_info(id, **kwargs) @@ -2588,11 +2588,11 @@ def get_schools_for_student_with_http_info(self, id, **kwargs): """ Returns the schools 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_schools_for_student_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_schools_for_student_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -2603,7 +2603,7 @@ def get_schools_for_student_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2658,7 +2658,7 @@ def get_schools_for_student_with_http_info(self, id, **kwargs): files=local_var_files, response_type='SchoolsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -2668,11 +2668,11 @@ def get_schools_for_teacher(self, id, **kwargs): """ Returns the schools 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_schools_for_teacher(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_schools_for_teacher(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -2682,7 +2682,7 @@ def get_schools_for_teacher(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_schools_for_teacher_with_http_info(id, **kwargs) else: (data) = self.get_schools_for_teacher_with_http_info(id, **kwargs) @@ -2692,11 +2692,11 @@ def get_schools_for_teacher_with_http_info(self, id, **kwargs): """ Returns the schools 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_schools_for_teacher_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_schools_for_teacher_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -2707,7 +2707,7 @@ def get_schools_for_teacher_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2762,7 +2762,7 @@ def get_schools_for_teacher_with_http_info(self, id, **kwargs): files=local_var_files, response_type='SchoolsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -2772,18 +2772,18 @@ 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 pass async=True - >>> thread = api.get_section(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_section(id, async_=True) >>> result = thread.get() - :param async bool + :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('async'): + if kwargs.get('async_'): return self.get_section_with_http_info(id, **kwargs) else: (data) = self.get_section_with_http_info(id, **kwargs) @@ -2793,11 +2793,11 @@ 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 pass async=True - >>> thread = api.get_section_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_section_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: SectionResponse If the method is called asynchronously, @@ -2805,7 +2805,7 @@ def get_section_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2854,7 +2854,7 @@ def get_section_with_http_info(self, id, **kwargs): files=local_var_files, response_type='SectionResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -2864,11 +2864,11 @@ 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 pass async=True - >>> thread = api.get_sections(async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_sections(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -2877,7 +2877,7 @@ def get_sections(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_sections_with_http_info(**kwargs) else: (data) = self.get_sections_with_http_info(**kwargs) @@ -2887,11 +2887,11 @@ 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 pass async=True - >>> thread = api.get_sections_with_http_info(async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_sections_with_http_info(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -2901,7 +2901,7 @@ def get_sections_with_http_info(self, **kwargs): """ all_params = ['limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2951,7 +2951,7 @@ def get_sections_with_http_info(self, **kwargs): files=local_var_files, response_type='SectionsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -2961,11 +2961,11 @@ def get_sections_for_course(self, id, **kwargs): """ Returns the sections for a Courses This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_sections_for_course(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_sections_for_course(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -2975,7 +2975,7 @@ def get_sections_for_course(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_sections_for_course_with_http_info(id, **kwargs) else: (data) = self.get_sections_for_course_with_http_info(id, **kwargs) @@ -2985,11 +2985,11 @@ def get_sections_for_course_with_http_info(self, id, **kwargs): """ Returns the sections for a Courses This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_sections_for_course_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_sections_for_course_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -3000,7 +3000,7 @@ def get_sections_for_course_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3055,7 +3055,7 @@ def get_sections_for_course_with_http_info(self, id, **kwargs): files=local_var_files, response_type='SectionsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -3065,11 +3065,11 @@ 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 pass async=True - >>> thread = api.get_sections_for_school(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_sections_for_school(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -3079,7 +3079,7 @@ def get_sections_for_school(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_sections_for_school_with_http_info(id, **kwargs) else: (data) = self.get_sections_for_school_with_http_info(id, **kwargs) @@ -3089,11 +3089,11 @@ 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 pass async=True - >>> thread = api.get_sections_for_school_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_sections_for_school_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -3104,7 +3104,7 @@ def get_sections_for_school_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3159,7 +3159,7 @@ def get_sections_for_school_with_http_info(self, id, **kwargs): files=local_var_files, response_type='SectionsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -3169,11 +3169,11 @@ 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 pass async=True - >>> thread = api.get_sections_for_student(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_sections_for_student(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -3183,7 +3183,7 @@ def get_sections_for_student(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_sections_for_student_with_http_info(id, **kwargs) else: (data) = self.get_sections_for_student_with_http_info(id, **kwargs) @@ -3193,11 +3193,11 @@ 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 pass async=True - >>> thread = api.get_sections_for_student_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_sections_for_student_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -3208,7 +3208,7 @@ def get_sections_for_student_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3263,7 +3263,7 @@ def get_sections_for_student_with_http_info(self, id, **kwargs): files=local_var_files, response_type='SectionsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -3273,11 +3273,11 @@ 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 pass async=True - >>> thread = api.get_sections_for_teacher(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_sections_for_teacher(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -3287,7 +3287,7 @@ def get_sections_for_teacher(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_sections_for_teacher_with_http_info(id, **kwargs) else: (data) = self.get_sections_for_teacher_with_http_info(id, **kwargs) @@ -3297,11 +3297,11 @@ 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 pass async=True - >>> thread = api.get_sections_for_teacher_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_sections_for_teacher_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -3312,7 +3312,7 @@ def get_sections_for_teacher_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3367,7 +3367,7 @@ def get_sections_for_teacher_with_http_info(self, id, **kwargs): files=local_var_files, response_type='SectionsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -3377,11 +3377,11 @@ def get_sections_for_term(self, id, **kwargs): """ Returns the sections 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_sections_for_term(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_sections_for_term(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -3391,7 +3391,7 @@ def get_sections_for_term(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_sections_for_term_with_http_info(id, **kwargs) else: (data) = self.get_sections_for_term_with_http_info(id, **kwargs) @@ -3401,11 +3401,11 @@ def get_sections_for_term_with_http_info(self, id, **kwargs): """ Returns the sections 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_sections_for_term_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_sections_for_term_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -3416,7 +3416,7 @@ def get_sections_for_term_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3471,7 +3471,7 @@ def get_sections_for_term_with_http_info(self, id, **kwargs): files=local_var_files, response_type='SectionsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -3481,18 +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 pass async=True - >>> thread = api.get_student(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_student(id, async_=True) >>> result = thread.get() - :param async bool + :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('async'): + if kwargs.get('async_'): return self.get_student_with_http_info(id, **kwargs) else: (data) = self.get_student_with_http_info(id, **kwargs) @@ -3502,11 +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 pass async=True - >>> thread = api.get_student_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_student_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: StudentResponse If the method is called asynchronously, @@ -3514,7 +3514,7 @@ def get_student_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3563,7 +3563,7 @@ def get_student_with_http_info(self, id, **kwargs): files=local_var_files, response_type='StudentResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -3573,11 +3573,11 @@ 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 pass async=True - >>> thread = api.get_students(async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_students(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -3586,7 +3586,7 @@ def get_students(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_students_with_http_info(**kwargs) else: (data) = self.get_students_with_http_info(**kwargs) @@ -3596,11 +3596,11 @@ 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 pass async=True - >>> thread = api.get_students_with_http_info(async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_students_with_http_info(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -3610,7 +3610,7 @@ def get_students_with_http_info(self, **kwargs): """ all_params = ['limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3660,7 +3660,7 @@ def get_students_with_http_info(self, **kwargs): files=local_var_files, response_type='StudentsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -3670,11 +3670,11 @@ def get_students_for_contact(self, id, **kwargs): """ Returns the students for a student contact This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_students_for_contact(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_students_for_contact(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -3684,7 +3684,7 @@ def get_students_for_contact(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_students_for_contact_with_http_info(id, **kwargs) else: (data) = self.get_students_for_contact_with_http_info(id, **kwargs) @@ -3694,11 +3694,11 @@ def get_students_for_contact_with_http_info(self, id, **kwargs): """ Returns the students for a student contact This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_students_for_contact_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_students_for_contact_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -3709,7 +3709,7 @@ def get_students_for_contact_with_http_info(self, id, **kwargs): """ all_params = ['id', 'limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3764,7 +3764,7 @@ def get_students_for_contact_with_http_info(self, id, **kwargs): files=local_var_files, response_type='StudentsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -3774,11 +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 pass async=True - >>> thread = api.get_students_for_school(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_students_for_school(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -3788,7 +3788,7 @@ def get_students_for_school(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + 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) @@ -3798,11 +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 pass async=True - >>> thread = api.get_students_for_school_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_students_for_school_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -3813,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('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3868,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, - async=params.get('async'), + 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'), @@ -3878,11 +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 pass async=True - >>> thread = api.get_students_for_section(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_students_for_section(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -3892,7 +3892,7 @@ def get_students_for_section(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + 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) @@ -3902,11 +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 pass async=True - >>> thread = api.get_students_for_section_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_students_for_section_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -3917,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('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3972,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, - async=params.get('async'), + 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'), @@ -3982,11 +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 pass async=True - >>> thread = api.get_students_for_teacher(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_students_for_teacher(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -3996,7 +3996,7 @@ def get_students_for_teacher(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + 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) @@ -4006,11 +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 pass async=True - >>> thread = api.get_students_for_teacher_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_students_for_teacher_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -4021,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('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4076,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, - async=params.get('async'), + 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'), @@ -4086,18 +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 pass async=True - >>> thread = api.get_teacher(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_teacher(id, async_=True) >>> result = thread.get() - :param async bool + :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('async'): + if kwargs.get('async_'): return self.get_teacher_with_http_info(id, **kwargs) else: (data) = self.get_teacher_with_http_info(id, **kwargs) @@ -4107,11 +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 pass async=True - >>> thread = api.get_teacher_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_teacher_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: TeacherResponse If the method is called asynchronously, @@ -4119,7 +4119,7 @@ def get_teacher_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4168,7 +4168,7 @@ def get_teacher_with_http_info(self, id, **kwargs): files=local_var_files, response_type='TeacherResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -4178,18 +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 pass async=True - >>> thread = api.get_teacher_for_section(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_teacher_for_section(id, async_=True) >>> result = thread.get() - :param async bool + :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('async'): + 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) @@ -4199,11 +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 pass async=True - >>> thread = api.get_teacher_for_section_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_teacher_for_section_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: TeacherResponse If the method is called asynchronously, @@ -4211,7 +4211,7 @@ def get_teacher_for_section_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4260,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, - async=params.get('async'), + 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'), @@ -4270,11 +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 pass async=True - >>> thread = api.get_teachers(async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_teachers(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -4283,7 +4283,7 @@ def get_teachers(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_teachers_with_http_info(**kwargs) else: (data) = self.get_teachers_with_http_info(**kwargs) @@ -4293,11 +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 pass async=True - >>> thread = api.get_teachers_with_http_info(async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_teachers_with_http_info(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -4307,7 +4307,7 @@ def get_teachers_with_http_info(self, **kwargs): """ all_params = ['limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4357,7 +4357,7 @@ def get_teachers_with_http_info(self, **kwargs): files=local_var_files, response_type='TeachersResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -4367,11 +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 pass async=True - >>> thread = api.get_teachers_for_school(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_teachers_for_school(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -4381,7 +4381,7 @@ def get_teachers_for_school(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + 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) @@ -4391,11 +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 pass async=True - >>> thread = api.get_teachers_for_school_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_teachers_for_school_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -4406,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('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4461,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, - async=params.get('async'), + 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'), @@ -4471,11 +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 pass async=True - >>> thread = api.get_teachers_for_section(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_teachers_for_section(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -4485,7 +4485,7 @@ def get_teachers_for_section(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + 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) @@ -4495,11 +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 pass async=True - >>> thread = api.get_teachers_for_section_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_teachers_for_section_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -4510,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('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4565,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, - async=params.get('async'), + 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'), @@ -4575,11 +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 pass async=True - >>> thread = api.get_teachers_for_student(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_teachers_for_student(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -4589,7 +4589,7 @@ def get_teachers_for_student(self, id, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + 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) @@ -4599,11 +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 pass async=True - >>> thread = api.get_teachers_for_student_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_teachers_for_student_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :param int limit: :param str starting_after: @@ -4614,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('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4669,7 +4669,7 @@ def get_teachers_for_student_with_http_info(self, id, **kwargs): files=local_var_files, response_type='TeachersResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -4679,18 +4679,18 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_term(id, async_=True) >>> result = thread.get() - :param async bool + :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'): + if kwargs.get('async_'): return self.get_term_with_http_info(id, **kwargs) else: (data) = self.get_term_with_http_info(id, **kwargs) @@ -4700,11 +4700,11 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_term_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: TermResponse If the method is called asynchronously, @@ -4712,7 +4712,7 @@ def get_term_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4761,7 +4761,7 @@ def get_term_with_http_info(self, id, **kwargs): files=local_var_files, response_type='TermResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -4771,18 +4771,18 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_term_for_section(id, async_=True) >>> result = thread.get() - :param async bool + :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'): + 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) @@ -4792,11 +4792,11 @@ 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) + 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 async_ bool :param str id: (required) :return: TermResponse If the method is called asynchronously, @@ -4804,7 +4804,7 @@ def get_term_for_section_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4853,7 +4853,7 @@ def get_term_for_section_with_http_info(self, id, **kwargs): files=local_var_files, response_type='TermResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -4863,11 +4863,11 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_terms(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -4876,7 +4876,7 @@ def get_terms(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_terms_with_http_info(**kwargs) else: (data) = self.get_terms_with_http_info(**kwargs) @@ -4886,11 +4886,11 @@ 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) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_terms_with_http_info(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -4900,7 +4900,7 @@ def get_terms_with_http_info(self, **kwargs): """ all_params = ['limit', 'starting_after', 'ending_before'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4950,7 +4950,7 @@ def get_terms_with_http_info(self, **kwargs): files=local_var_files, response_type='TermsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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 9b23c61..4031d88 100644 --- a/clever/apis/events_api.py +++ b/clever/apis/events_api.py @@ -39,18 +39,18 @@ 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 pass async=True - >>> thread = api.get_event(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_event(id, async_=True) >>> result = thread.get() - :param async bool + :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('async'): + if kwargs.get('async_'): return self.get_event_with_http_info(id, **kwargs) else: (data) = self.get_event_with_http_info(id, **kwargs) @@ -60,11 +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 pass async=True - >>> thread = api.get_event_with_http_info(id, async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_event_with_http_info(id, async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param str id: (required) :return: EventResponse If the method is called asynchronously, @@ -72,7 +72,7 @@ def get_event_with_http_info(self, id, **kwargs): """ all_params = ['id'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -121,7 +121,7 @@ def get_event_with_http_info(self, id, **kwargs): files=local_var_files, response_type='EventResponse', auth_settings=auth_settings, - async=params.get('async'), + 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'), @@ -131,11 +131,11 @@ 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 pass async=True - >>> thread = api.get_events(async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_events(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -146,7 +146,7 @@ def get_events(self, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_'): return self.get_events_with_http_info(**kwargs) else: (data) = self.get_events_with_http_info(**kwargs) @@ -156,11 +156,11 @@ 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 pass async=True - >>> thread = api.get_events_with_http_info(async=True) + asynchronous HTTP request, please pass async_=True + >>> thread = api.get_events_with_http_info(async_=True) >>> result = thread.get() - :param async bool + :param async_ bool :param int limit: :param str starting_after: :param str ending_before: @@ -172,7 +172,7 @@ def get_events_with_http_info(self, **kwargs): """ all_params = ['limit', 'starting_after', 'ending_before', 'school', 'record_type'] - all_params.append('async') + all_params.append('async_') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -227,7 +227,7 @@ def get_events_with_http_info(self, **kwargs): files=local_var_files, response_type='EventsResponse', auth_settings=auth_settings, - async=params.get('async'), + 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/override/VERSION b/override/VERSION index b502146..75a22a2 100644 --- a/override/VERSION +++ b/override/VERSION @@ -1 +1 @@ -3.0.2 +3.0.3 diff --git a/override/api_client.py b/override/api_client.py index c3c560c..357af87 100644 --- a/override/api_client.py +++ b/override/api_client.py @@ -282,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, async=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, set the async parameter. + To make an async request, set the async_ parameter. :param resource_path: Path to method endpoint. :param method: Method to call. @@ -302,7 +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 async bool: execute request 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. @@ -311,13 +311,13 @@ 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 async parameter is True, + If async_ parameter is True, the request will be called asynchronously. The method will return the request thread. - If parameter async is False or missing, + If parameter async_ is False or missing, then the method will return the response directly. """ - if not async: + if not async_: return self.__call_api(resource_path, method, path_params, query_params, header_params, body, post_params, files, diff --git a/override/override.sh b/override/override.sh index be4ca9a..c0132f5 100755 --- a/override/override.sh +++ b/override/override.sh @@ -8,6 +8,14 @@ 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' +# Rename references of async to async_ +git grep -l "param async" -- './*' ':(exclude)override/override.sh' | xargs sed -i "" "s/param async/param async_/g" +git grep -l "parameter async" -- './*' ':(exclude)override/override.sh' | xargs sed -i "" "s/parameter async/parameter async_/g" +git grep -l "async parameter" -- './*' ':(exclude)override/override.sh' | xargs sed -i "" "s/async parameter/async_ parameter/g" +git grep -l "async=" -- './*' ':(exclude)override/override.sh' | xargs sed -i "" "s/async=/async_=/g" +git grep -l "async:" -- './*' ':(exclude)override/override.sh' | xargs sed -i "" "s/async:/async_:/g" +git grep -l "('async')" -- './*' ':(exclude)override/override.sh' | xargs sed -i "" "s/('async')/('async_')/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