strongmind-oneroster-client 2.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- strongmind-oneroster-client-2.0.2/PKG-INFO +14 -0
- strongmind-oneroster-client-2.0.2/README.md +233 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/__init__.py +90 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api/__init__.py +21 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api/academic_sessions_management_api.py +244 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api/categories_management_api.py +446 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api/classes_management_api.py +988 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api/courses_management_api.py +368 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api/demographics_management_api.py +244 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api/enrollments_management_api.py +500 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api/grading_periods_management_api.py +368 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api/line_items_management_api.py +570 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api/orgs_management_api.py +244 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api/resources_management_api.py +492 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api/results_management_api.py +834 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api/schools_management_api.py +244 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api/students_management_api.py +624 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api/teachers_management_api.py +624 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api/terms_management_api.py +368 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api/users_management_api.py +244 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/api_client.py +607 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/configuration.py +253 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/__init__.py +69 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/academic_session_type.py +291 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/academic_session_type_all_of.py +285 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/base_type.py +203 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/categories_type.py +110 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/category_type.py +119 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/category_type_all_of.py +113 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/class_type.py +424 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/class_type_all_of.py +418 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/classes_type.py +110 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/course_type.py +308 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/course_type_all_of.py +302 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/courses_type.py +110 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/demographic_type.py +458 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/demographic_type_all_of.py +452 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/demographics_type.py +110 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/enrollment_type.py +288 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/enrollment_type_all_of.py +282 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/enrollments_type.py +110 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/guid_ref_type.py +175 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/guid_type.py +84 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/identifier_type.py +84 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/imsx_code_minor_field_type.py +146 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/imsx_code_minor_type.py +111 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/imsx_status_info_type.py +261 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/line_item_type.py +341 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/line_item_type_all_of.py +335 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/line_items_type.py +110 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/metadata_type.py +84 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/multiple_academic_sessions_type.py +110 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/org_type.py +233 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/org_type_all_of.py +227 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/orgs_type.py +110 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/resource_type.py +267 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/resource_type_all_of.py +261 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/resources_type.py +110 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/result_type.py +263 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/result_type_all_of.py +257 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/results_type.py +110 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/single_academic_session_type.py +111 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/single_category_type.py +111 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/single_class_type.py +111 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/single_course_type.py +111 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/single_demographics_type.py +111 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/single_enrollment_type.py +111 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/single_line_item_type.py +111 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/single_org_type.py +111 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/single_resource_type.py +111 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/single_result_type.py +111 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/single_user_type.py +111 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/user_id_type.py +141 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/user_type.py +513 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/user_type_all_of.py +507 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/models/users_type.py +110 -0
- strongmind-oneroster-client-2.0.2/oneroster_client/rest.py +322 -0
- strongmind-oneroster-client-2.0.2/setup.cfg +4 -0
- strongmind-oneroster-client-2.0.2/setup.py +40 -0
- strongmind-oneroster-client-2.0.2/strongmind_oneroster_client.egg-info/PKG-INFO +14 -0
- strongmind-oneroster-client-2.0.2/strongmind_oneroster_client.egg-info/SOURCES.txt +153 -0
- strongmind-oneroster-client-2.0.2/strongmind_oneroster_client.egg-info/dependency_links.txt +1 -0
- strongmind-oneroster-client-2.0.2/strongmind_oneroster_client.egg-info/requires.txt +4 -0
- strongmind-oneroster-client-2.0.2/strongmind_oneroster_client.egg-info/top_level.txt +2 -0
- strongmind-oneroster-client-2.0.2/test/__init__.py +0 -0
- strongmind-oneroster-client-2.0.2/test/fake_response.py +8 -0
- strongmind-oneroster-client-2.0.2/test/test_academic_session_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_academic_session_type_all_of.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_academic_sessions_management_api.py +47 -0
- strongmind-oneroster-client-2.0.2/test/test_base_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_categories_management_api.py +61 -0
- strongmind-oneroster-client-2.0.2/test/test_categories_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_category_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_category_type_all_of.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_class_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_class_type_all_of.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_classes_management_api.py +89 -0
- strongmind-oneroster-client-2.0.2/test/test_classes_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_course_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_course_type_all_of.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_courses_management_api.py +54 -0
- strongmind-oneroster-client-2.0.2/test/test_courses_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_demographic_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_demographic_type_all_of.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_demographics_management_api.py +47 -0
- strongmind-oneroster-client-2.0.2/test/test_demographics_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_enrollment_type.py +145 -0
- strongmind-oneroster-client-2.0.2/test/test_enrollment_type_all_of.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_enrollments_management_api.py +61 -0
- strongmind-oneroster-client-2.0.2/test/test_enrollments_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_grading_periods_management_api.py +54 -0
- strongmind-oneroster-client-2.0.2/test/test_guid_ref_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_guid_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_identifier_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_imsx_code_minor_field_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_imsx_code_minor_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_imsx_status_info_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_line_item_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_line_item_type_all_of.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_line_items_management_api.py +121 -0
- strongmind-oneroster-client-2.0.2/test/test_line_items_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_metadata_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_multiple_academic_sessions_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_org_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_org_type_all_of.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_orgs_management_api.py +47 -0
- strongmind-oneroster-client-2.0.2/test/test_orgs_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_resource_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_resource_type_all_of.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_resources_management_api.py +61 -0
- strongmind-oneroster-client-2.0.2/test/test_resources_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_result_type.py +74 -0
- strongmind-oneroster-client-2.0.2/test/test_result_type_all_of.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_results_management_api.py +82 -0
- strongmind-oneroster-client-2.0.2/test/test_results_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_schools_management_api.py +47 -0
- strongmind-oneroster-client-2.0.2/test/test_single_academic_session_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_single_category_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_single_class_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_single_course_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_single_demographics_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_single_enrollment_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_single_line_item_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_single_org_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_single_resource_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_single_result_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_single_user_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_students_management_api.py +68 -0
- strongmind-oneroster-client-2.0.2/test/test_teachers_management_api.py +68 -0
- strongmind-oneroster-client-2.0.2/test/test_terms_management_api.py +54 -0
- strongmind-oneroster-client-2.0.2/test/test_user_id_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_user_type.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_user_type_all_of.py +39 -0
- strongmind-oneroster-client-2.0.2/test/test_users_management_api.py +127 -0
- strongmind-oneroster-client-2.0.2/test/test_users_type.py +39 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: strongmind-oneroster-client
|
|
3
|
+
Version: 2.0.2
|
|
4
|
+
Summary: OneRoster Client
|
|
5
|
+
Home-page: UNKNOWN
|
|
6
|
+
Author: Team Platform
|
|
7
|
+
Author-email: platform@strongmind.com
|
|
8
|
+
License: UNKNOWN
|
|
9
|
+
Keywords: Swagger,OneRoster OpenAPI (JSON) Definition
|
|
10
|
+
Platform: UNKNOWN
|
|
11
|
+
|
|
12
|
+
The OneRoster service binding is available in WSDL/XSD and REST/JSON. The model is based upon the IMS PSM modelling approach. # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
# oneroster_client
|
|
2
|
+
The OneRoster service binding is available in WSDL/XSD and REST/JSON. The model is based upon the IMS PSM modelling approach.
|
|
3
|
+
|
|
4
|
+
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
|
5
|
+
|
|
6
|
+
- API version: 1.1
|
|
7
|
+
- Package version: 1.0.0
|
|
8
|
+
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
|
|
9
|
+
For more information, please visit [http://www.imsglobal.org](http://www.imsglobal.org)
|
|
10
|
+
|
|
11
|
+
## Requirements.
|
|
12
|
+
|
|
13
|
+
Python 2.7 and 3.4+
|
|
14
|
+
|
|
15
|
+
## Installation & Usage
|
|
16
|
+
|
|
17
|
+
### Install Azure artifacts keyring to get access to StrongMind pip packages
|
|
18
|
+
`pip install twine keyring artifacts-keyring`
|
|
19
|
+
|
|
20
|
+
### pip install
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
pip install oneroster_client --extra-index-url https://pkgs.dev.azure.com/strongmind/Strongmind/_packaging/StrongMindPackages/pypi/simple/
|
|
24
|
+
```
|
|
25
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
|
|
26
|
+
|
|
27
|
+
Then import the package:
|
|
28
|
+
```python
|
|
29
|
+
import oneroster_client
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Setuptools
|
|
33
|
+
|
|
34
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
python setup.py install --user
|
|
38
|
+
```
|
|
39
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
40
|
+
|
|
41
|
+
Then import the package:
|
|
42
|
+
|
|
43
|
+
```python
|
|
44
|
+
import oneroster_client
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Getting Started
|
|
48
|
+
|
|
49
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
50
|
+
|
|
51
|
+
```python
|
|
52
|
+
from __future__ import print_function
|
|
53
|
+
import time
|
|
54
|
+
import oneroster_client
|
|
55
|
+
from oneroster_client.rest import ApiException
|
|
56
|
+
from pprint import pprint
|
|
57
|
+
|
|
58
|
+
# Configure OAuth2 access token for authorization: OAuth2Security
|
|
59
|
+
configuration = oneroster_client.Configuration()
|
|
60
|
+
configuration.access_token = 'YOUR_ACCESS_TOKEN'
|
|
61
|
+
|
|
62
|
+
# create an instance of the API class
|
|
63
|
+
api_instance = oneroster_client.AcademicSessionsManagementApi(oneroster_client.ApiClient(configuration))
|
|
64
|
+
sourced_id = 'sourced_id_example' # str | The unique identifier for this academic session.
|
|
65
|
+
|
|
66
|
+
try:
|
|
67
|
+
# The REST read request message for the getAcademicSession() API call.
|
|
68
|
+
api_response = api_instance.get_academic_session(sourced_id)
|
|
69
|
+
pprint(api_response)
|
|
70
|
+
except ApiException as e:
|
|
71
|
+
print("Exception when calling AcademicSessionsManagementApi->get_academic_session: %s\n" % e)
|
|
72
|
+
|
|
73
|
+
# Configure OAuth2 access token for authorization: OAuth2Security
|
|
74
|
+
configuration = oneroster_client.Configuration()
|
|
75
|
+
configuration.access_token = 'YOUR_ACCESS_TOKEN'
|
|
76
|
+
|
|
77
|
+
# create an instance of the API class
|
|
78
|
+
api_instance = oneroster_client.AcademicSessionsManagementApi(oneroster_client.ApiClient(configuration))
|
|
79
|
+
limit = 100 # int | To define the download segmentation value i.e. the maximum number of records to be contained in the response. (optional) (default to 100)
|
|
80
|
+
offset = 0 # int | The number of the first record to be supplied in the segmented response message. (optional) (default to 0)
|
|
81
|
+
continuation_token = 'continuation_token_example' # str | Allows the client to resume retrieving results from where the previous page left off (optional)
|
|
82
|
+
sort = 'sort_example' # str | Identifies the sort criteria to be used for the records in the response message. Use with the orderBy parameter. (optional)
|
|
83
|
+
order_by = 'order_by_example' # str | The form of ordering for response to the sorted request i.e. ascending (asc) or descending (desc). (optional)
|
|
84
|
+
filter = 'filter_example' # str | The filtering rules to be applied when identifying the records to be supplied in the response message. (optional)
|
|
85
|
+
fields = ['fields_example'] # list[str] | To identify the range of fields that should be supplied in the response message. (optional)
|
|
86
|
+
|
|
87
|
+
try:
|
|
88
|
+
# The REST read request message for the getAcademicSessions() API call.
|
|
89
|
+
api_response = api_instance.get_academic_sessions(limit=limit, offset=offset, continuation_token=continuation_token, sort=sort, order_by=order_by, filter=filter, fields=fields)
|
|
90
|
+
pprint(api_response)
|
|
91
|
+
except ApiException as e:
|
|
92
|
+
print("Exception when calling AcademicSessionsManagementApi->get_academic_sessions: %s\n" % e)
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Documentation for API Endpoints
|
|
96
|
+
|
|
97
|
+
All URIs are relative to */*
|
|
98
|
+
|
|
99
|
+
Class | Method | HTTP request | Description
|
|
100
|
+
------------ | ------------- | ------------- | -------------
|
|
101
|
+
*AcademicSessionsManagementApi* | [**get_academic_session**](docs/AcademicSessionsManagementApi.md#get_academic_session) | **GET** /academicSessions/{sourcedId} | The REST read request message for the getAcademicSession() API call.
|
|
102
|
+
*AcademicSessionsManagementApi* | [**get_academic_sessions**](docs/AcademicSessionsManagementApi.md#get_academic_sessions) | **GET** /academicSessions | The REST read request message for the getAcademicSessions() API call.
|
|
103
|
+
*CategoriesManagementApi* | [**delete_category**](docs/CategoriesManagementApi.md#delete_category) | **DELETE** /categories/{sourcedId} | The REST delete request message for the deleteCategory() API call.
|
|
104
|
+
*CategoriesManagementApi* | [**get_categories**](docs/CategoriesManagementApi.md#get_categories) | **GET** /categories | The REST read request message for the getCategories() API call.
|
|
105
|
+
*CategoriesManagementApi* | [**get_category**](docs/CategoriesManagementApi.md#get_category) | **GET** /categories/{sourcedId} | The REST read request message for the getCategory() API call.
|
|
106
|
+
*CategoriesManagementApi* | [**put_category**](docs/CategoriesManagementApi.md#put_category) | **PUT** /categories/{sourcedId} | The REST create request message for the putCategory() API call.
|
|
107
|
+
*ClassesManagementApi* | [**get_class**](docs/ClassesManagementApi.md#get_class) | **GET** /classes/{sourcedId} | The REST read request message for the getClass() API call.
|
|
108
|
+
*ClassesManagementApi* | [**get_classes**](docs/ClassesManagementApi.md#get_classes) | **GET** /classes | The REST read request message for the getClasses() API call.
|
|
109
|
+
*ClassesManagementApi* | [**get_classes_for_course**](docs/ClassesManagementApi.md#get_classes_for_course) | **GET** /courses/{courseSourcedId}/classes | The REST read request message for the getClassesForCourse() API call.
|
|
110
|
+
*ClassesManagementApi* | [**get_classes_for_school**](docs/ClassesManagementApi.md#get_classes_for_school) | **GET** /schools/{schoolSourcedId}/classes | The REST read request message for the getClassesForSchool() API call.
|
|
111
|
+
*ClassesManagementApi* | [**get_classes_for_student**](docs/ClassesManagementApi.md#get_classes_for_student) | **GET** /students/{studentSourcedId}/classes | The REST read request message for the getClassesForStudent() API call.
|
|
112
|
+
*ClassesManagementApi* | [**get_classes_for_teacher**](docs/ClassesManagementApi.md#get_classes_for_teacher) | **GET** /teachers/{teacherSourcedId}/classes | The REST read request message for the getClassesForTeacher() API call.
|
|
113
|
+
*ClassesManagementApi* | [**get_classes_for_term**](docs/ClassesManagementApi.md#get_classes_for_term) | **GET** /terms/{termSourcedId}/classes | The REST read request message for the getClassesForTerm() API call.
|
|
114
|
+
*ClassesManagementApi* | [**get_classes_for_user**](docs/ClassesManagementApi.md#get_classes_for_user) | **GET** /users/{userSourcedId}/classes | The REST read request message for the getClassesForUser() API call.
|
|
115
|
+
*CoursesManagementApi* | [**get_course**](docs/CoursesManagementApi.md#get_course) | **GET** /courses/{sourcedId} | The REST read request message for the getCourse() API call.
|
|
116
|
+
*CoursesManagementApi* | [**get_courses**](docs/CoursesManagementApi.md#get_courses) | **GET** /courses | The REST read request message for the getCourses() API call.
|
|
117
|
+
*CoursesManagementApi* | [**get_courses_for_school**](docs/CoursesManagementApi.md#get_courses_for_school) | **GET** /schools/{schoolSourcedId}/courses | The REST read request message for the getCoursesForSchool() API call.
|
|
118
|
+
*DemographicsManagementApi* | [**get_demographic**](docs/DemographicsManagementApi.md#get_demographic) | **GET** /demographics/{sourcedId} | The REST read request message for the getDemographic() API call.
|
|
119
|
+
*DemographicsManagementApi* | [**get_demographics**](docs/DemographicsManagementApi.md#get_demographics) | **GET** /demographics | The REST read request message for the getDemographics() API call.
|
|
120
|
+
*EnrollmentsManagementApi* | [**get_enrollment**](docs/EnrollmentsManagementApi.md#get_enrollment) | **GET** /enrollments/{sourcedId} | The REST read request message for the getEnrollment() API call.
|
|
121
|
+
*EnrollmentsManagementApi* | [**get_enrollments**](docs/EnrollmentsManagementApi.md#get_enrollments) | **GET** /enrollments | The REST read request message for the getEnrollments() API call.
|
|
122
|
+
*EnrollmentsManagementApi* | [**get_enrollments_for_class_in_school**](docs/EnrollmentsManagementApi.md#get_enrollments_for_class_in_school) | **GET** /schools/{schoolSourcedId}/classes/{classSourcedId}/enrollments | The REST read request message for the getEnrollmentsForClassInSchool() API call.
|
|
123
|
+
*EnrollmentsManagementApi* | [**get_enrollments_for_school**](docs/EnrollmentsManagementApi.md#get_enrollments_for_school) | **GET** /schools/{schoolSourcedId}/enrollments | The REST read request message for the getEnrollmentsForSchool() API call.
|
|
124
|
+
*GradingPeriodsManagementApi* | [**get_grading_period**](docs/GradingPeriodsManagementApi.md#get_grading_period) | **GET** /gradingPeriods/{sourcedId} | The REST read request message for the getGradingPeriod() API call.
|
|
125
|
+
*GradingPeriodsManagementApi* | [**get_grading_periods**](docs/GradingPeriodsManagementApi.md#get_grading_periods) | **GET** /gradingPeriods | The REST read request message for the getGradingPeriods() API call.
|
|
126
|
+
*GradingPeriodsManagementApi* | [**get_grading_periods_for_term**](docs/GradingPeriodsManagementApi.md#get_grading_periods_for_term) | **GET** /terms/{termSourcedId}/gradingPeriods | The REST read request message for the getGradingPeriodsForTerm() API call.
|
|
127
|
+
*LineItemsManagementApi* | [**delete_line_item**](docs/LineItemsManagementApi.md#delete_line_item) | **DELETE** /lineItems/{sourcedId} | The REST delete request message for the deleteLineItem() API call.
|
|
128
|
+
*LineItemsManagementApi* | [**get_line_item**](docs/LineItemsManagementApi.md#get_line_item) | **GET** /lineItems/{sourcedId} | The REST read request message for the getLineItem() API call.
|
|
129
|
+
*LineItemsManagementApi* | [**get_line_items**](docs/LineItemsManagementApi.md#get_line_items) | **GET** /lineItems | The REST read request message for the getLineItems() API call.
|
|
130
|
+
*LineItemsManagementApi* | [**get_line_items_for_class**](docs/LineItemsManagementApi.md#get_line_items_for_class) | **GET** /classes/{classSourcedId}/lineitems | The REST read request message for the getLineItemsForClass() API call.
|
|
131
|
+
*LineItemsManagementApi* | [**put_line_item**](docs/LineItemsManagementApi.md#put_line_item) | **PUT** /lineItems/{sourcedId} | The REST create request message for the putLineItem() API call.
|
|
132
|
+
*OrgsManagementApi* | [**get_org**](docs/OrgsManagementApi.md#get_org) | **GET** /orgs/{sourcedId} | The REST read request message for the getOrg() API call.
|
|
133
|
+
*OrgsManagementApi* | [**get_orgs**](docs/OrgsManagementApi.md#get_orgs) | **GET** /orgs | The REST read request message for the getOrgs() API call.
|
|
134
|
+
*ResourcesManagementApi* | [**get_resource**](docs/ResourcesManagementApi.md#get_resource) | **GET** /resources/{sourcedId} | The REST read request message for the getResource() API call.
|
|
135
|
+
*ResourcesManagementApi* | [**get_resources**](docs/ResourcesManagementApi.md#get_resources) | **GET** /resources | The REST read request message for the getResources() API call.
|
|
136
|
+
*ResourcesManagementApi* | [**get_resources_for_class**](docs/ResourcesManagementApi.md#get_resources_for_class) | **GET** /classes/{classSourcedId}/resources | The REST read request message for the getResourcesForClass() API call.
|
|
137
|
+
*ResourcesManagementApi* | [**get_resources_for_course**](docs/ResourcesManagementApi.md#get_resources_for_course) | **GET** /courses/{courseSourcedId}/resources | The REST read request message for the getResourcesForCourse() API call.
|
|
138
|
+
*ResultsManagementApi* | [**delete_result**](docs/ResultsManagementApi.md#delete_result) | **DELETE** /results/{sourcedId} | The REST delete request message for the deleteResult() API call.
|
|
139
|
+
*ResultsManagementApi* | [**get_result**](docs/ResultsManagementApi.md#get_result) | **GET** /results/{sourcedId} | The REST read request message for the getResult() API call.
|
|
140
|
+
*ResultsManagementApi* | [**get_results**](docs/ResultsManagementApi.md#get_results) | **GET** /results | The REST read request message for the getResults() API call.
|
|
141
|
+
*ResultsManagementApi* | [**get_results_for_class**](docs/ResultsManagementApi.md#get_results_for_class) | **GET** /classes/{classSourcedId}/results | The REST read request message for the getResultsForClass() API call.
|
|
142
|
+
*ResultsManagementApi* | [**get_results_for_line_item_for_class**](docs/ResultsManagementApi.md#get_results_for_line_item_for_class) | **GET** /classes/{classSourcedId}/lineItems/{lineItemSourcedId}/results | The REST read request message for the getResultsForLineItemForClass() API call.
|
|
143
|
+
*ResultsManagementApi* | [**get_results_for_student_for_class**](docs/ResultsManagementApi.md#get_results_for_student_for_class) | **GET** /classes/{classSourcedId}/students/{studentSourcedId}/results | The REST read request message for the getResultsForStudentForClass() API call.
|
|
144
|
+
*ResultsManagementApi* | [**put_result**](docs/ResultsManagementApi.md#put_result) | **PUT** /results/{sourcedId} | The REST create request message for the putResult() API call.
|
|
145
|
+
*SchoolsManagementApi* | [**get_school**](docs/SchoolsManagementApi.md#get_school) | **GET** /schools/{sourcedId} | The REST read request message for the getSchool() API call.
|
|
146
|
+
*SchoolsManagementApi* | [**get_schools**](docs/SchoolsManagementApi.md#get_schools) | **GET** /schools | The REST read request message for the getSchools() API call.
|
|
147
|
+
*StudentsManagementApi* | [**get_student**](docs/StudentsManagementApi.md#get_student) | **GET** /students/{sourcedId} | The REST read request message for the getStudent() API call.
|
|
148
|
+
*StudentsManagementApi* | [**get_students**](docs/StudentsManagementApi.md#get_students) | **GET** /students | The REST read request message for the getStudents() API call.
|
|
149
|
+
*StudentsManagementApi* | [**get_students_for_class**](docs/StudentsManagementApi.md#get_students_for_class) | **GET** /classes/{classSourcedId}/students | The REST read request message for the getStudentsForClass() API call.
|
|
150
|
+
*StudentsManagementApi* | [**get_students_for_class_in_school**](docs/StudentsManagementApi.md#get_students_for_class_in_school) | **GET** /schools/{schoolSourcedId}/classes/{classSourcedId}/students | The REST read request message for the getStudentsForClassInSchool() API call.
|
|
151
|
+
*StudentsManagementApi* | [**get_students_for_school**](docs/StudentsManagementApi.md#get_students_for_school) | **GET** /schools/{schoolSourcedId}/students | The REST read request message for the getStudentsForSchool() API call.
|
|
152
|
+
*TeachersManagementApi* | [**get_teacher**](docs/TeachersManagementApi.md#get_teacher) | **GET** /teachers/{sourcedId} | The REST read request message for the getTeacher() API call.
|
|
153
|
+
*TeachersManagementApi* | [**get_teachers**](docs/TeachersManagementApi.md#get_teachers) | **GET** /teachers | The REST read request message for the getTeachers() API call.
|
|
154
|
+
*TeachersManagementApi* | [**get_teachers_for_class**](docs/TeachersManagementApi.md#get_teachers_for_class) | **GET** /classes/{classSourcedId}/teachers | The REST read request message for the getTeachersForClass() API call.
|
|
155
|
+
*TeachersManagementApi* | [**get_teachers_for_class_in_school**](docs/TeachersManagementApi.md#get_teachers_for_class_in_school) | **GET** /schools/{schoolSourcedId}/classes/{classSourcedId}/teachers | The REST read request message for the getTeachersForClassInSchool() API call.
|
|
156
|
+
*TeachersManagementApi* | [**get_teachers_for_school**](docs/TeachersManagementApi.md#get_teachers_for_school) | **GET** /schools/{schoolSourcedId}/teachers | The REST read request message for the getTeachersForSchool() API call.
|
|
157
|
+
*TermsManagementApi* | [**get_term**](docs/TermsManagementApi.md#get_term) | **GET** /terms/{sourcedId} | The REST read request message for the getTerm() API call.
|
|
158
|
+
*TermsManagementApi* | [**get_terms**](docs/TermsManagementApi.md#get_terms) | **GET** /terms | The REST read request message for the getTerms() API call.
|
|
159
|
+
*TermsManagementApi* | [**get_terms_for_school**](docs/TermsManagementApi.md#get_terms_for_school) | **GET** /schools/{schoolSourcedId}/terms | The REST read request message for the getTermsForSchool() API call.
|
|
160
|
+
*UsersManagementApi* | [**get_user**](docs/UsersManagementApi.md#get_user) | **GET** /users/{sourcedId} | The REST read request message for the getUser() API call.
|
|
161
|
+
*UsersManagementApi* | [**get_users**](docs/UsersManagementApi.md#get_users) | **GET** /users | The REST read request message for the getUsers() API call.
|
|
162
|
+
|
|
163
|
+
## Documentation For Models
|
|
164
|
+
|
|
165
|
+
- [AcademicSessionType](docs/AcademicSessionType.md)
|
|
166
|
+
- [AcademicSessionTypeAllOf](docs/AcademicSessionTypeAllOf.md)
|
|
167
|
+
- [BaseType](docs/BaseType.md)
|
|
168
|
+
- [CategoriesType](docs/CategoriesType.md)
|
|
169
|
+
- [CategoryType](docs/CategoryType.md)
|
|
170
|
+
- [CategoryTypeAllOf](docs/CategoryTypeAllOf.md)
|
|
171
|
+
- [ClassType](docs/ClassType.md)
|
|
172
|
+
- [ClassTypeAllOf](docs/ClassTypeAllOf.md)
|
|
173
|
+
- [ClassesType](docs/ClassesType.md)
|
|
174
|
+
- [CourseType](docs/CourseType.md)
|
|
175
|
+
- [CourseTypeAllOf](docs/CourseTypeAllOf.md)
|
|
176
|
+
- [CoursesType](docs/CoursesType.md)
|
|
177
|
+
- [DemographicType](docs/DemographicType.md)
|
|
178
|
+
- [DemographicTypeAllOf](docs/DemographicTypeAllOf.md)
|
|
179
|
+
- [DemographicsType](docs/DemographicsType.md)
|
|
180
|
+
- [EnrollmentType](docs/EnrollmentType.md)
|
|
181
|
+
- [EnrollmentTypeAllOf](docs/EnrollmentTypeAllOf.md)
|
|
182
|
+
- [EnrollmentsType](docs/EnrollmentsType.md)
|
|
183
|
+
- [GUIDRefType](docs/GUIDRefType.md)
|
|
184
|
+
- [GUIDType](docs/GUIDType.md)
|
|
185
|
+
- [IdentifierType](docs/IdentifierType.md)
|
|
186
|
+
- [ImsxCodeMinorFieldType](docs/ImsxCodeMinorFieldType.md)
|
|
187
|
+
- [ImsxCodeMinorType](docs/ImsxCodeMinorType.md)
|
|
188
|
+
- [ImsxStatusInfoType](docs/ImsxStatusInfoType.md)
|
|
189
|
+
- [LineItemType](docs/LineItemType.md)
|
|
190
|
+
- [LineItemTypeAllOf](docs/LineItemTypeAllOf.md)
|
|
191
|
+
- [LineItemsType](docs/LineItemsType.md)
|
|
192
|
+
- [MetadataType](docs/MetadataType.md)
|
|
193
|
+
- [MultipleAcademicSessionsType](docs/MultipleAcademicSessionsType.md)
|
|
194
|
+
- [OrgType](docs/OrgType.md)
|
|
195
|
+
- [OrgTypeAllOf](docs/OrgTypeAllOf.md)
|
|
196
|
+
- [OrgsType](docs/OrgsType.md)
|
|
197
|
+
- [ResourceType](docs/ResourceType.md)
|
|
198
|
+
- [ResourceTypeAllOf](docs/ResourceTypeAllOf.md)
|
|
199
|
+
- [ResourcesType](docs/ResourcesType.md)
|
|
200
|
+
- [ResultType](docs/ResultType.md)
|
|
201
|
+
- [ResultTypeAllOf](docs/ResultTypeAllOf.md)
|
|
202
|
+
- [ResultsType](docs/ResultsType.md)
|
|
203
|
+
- [SingleAcademicSessionType](docs/SingleAcademicSessionType.md)
|
|
204
|
+
- [SingleCategoryType](docs/SingleCategoryType.md)
|
|
205
|
+
- [SingleClassType](docs/SingleClassType.md)
|
|
206
|
+
- [SingleCourseType](docs/SingleCourseType.md)
|
|
207
|
+
- [SingleDemographicsType](docs/SingleDemographicsType.md)
|
|
208
|
+
- [SingleEnrollmentType](docs/SingleEnrollmentType.md)
|
|
209
|
+
- [SingleLineItemType](docs/SingleLineItemType.md)
|
|
210
|
+
- [SingleOrgType](docs/SingleOrgType.md)
|
|
211
|
+
- [SingleResourceType](docs/SingleResourceType.md)
|
|
212
|
+
- [SingleResultType](docs/SingleResultType.md)
|
|
213
|
+
- [SingleUserType](docs/SingleUserType.md)
|
|
214
|
+
- [UserIdType](docs/UserIdType.md)
|
|
215
|
+
- [UserType](docs/UserType.md)
|
|
216
|
+
- [UserTypeAllOf](docs/UserTypeAllOf.md)
|
|
217
|
+
- [UsersType](docs/UsersType.md)
|
|
218
|
+
|
|
219
|
+
## Documentation For Authorization
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
## OAuth2Security
|
|
223
|
+
|
|
224
|
+
- **Type**: OAuth
|
|
225
|
+
- **Flow**: application
|
|
226
|
+
- **Authorization URL**:
|
|
227
|
+
- **Scopes**:
|
|
228
|
+
- **StrongMind.Platform.OneRoster.Read**: Read access to OneRoster resources
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
## Author
|
|
232
|
+
|
|
233
|
+
platform@strongmind.com
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
OneRoster OpenAPI (JSON) Definition
|
|
7
|
+
|
|
8
|
+
The OneRoster service binding is available in WSDL/XSD and REST/JSON. The model is based upon the IMS PSM modelling approach. # noqa: E501
|
|
9
|
+
|
|
10
|
+
OpenAPI spec version: 1.1
|
|
11
|
+
Contact: lmattson@imsglobal.org
|
|
12
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from __future__ import absolute_import
|
|
16
|
+
|
|
17
|
+
# import apis into sdk package
|
|
18
|
+
from oneroster_client.api.academic_sessions_management_api import AcademicSessionsManagementApi
|
|
19
|
+
from oneroster_client.api.categories_management_api import CategoriesManagementApi
|
|
20
|
+
from oneroster_client.api.classes_management_api import ClassesManagementApi
|
|
21
|
+
from oneroster_client.api.courses_management_api import CoursesManagementApi
|
|
22
|
+
from oneroster_client.api.demographics_management_api import DemographicsManagementApi
|
|
23
|
+
from oneroster_client.api.enrollments_management_api import EnrollmentsManagementApi
|
|
24
|
+
from oneroster_client.api.grading_periods_management_api import GradingPeriodsManagementApi
|
|
25
|
+
from oneroster_client.api.line_items_management_api import LineItemsManagementApi
|
|
26
|
+
from oneroster_client.api.orgs_management_api import OrgsManagementApi
|
|
27
|
+
from oneroster_client.api.resources_management_api import ResourcesManagementApi
|
|
28
|
+
from oneroster_client.api.results_management_api import ResultsManagementApi
|
|
29
|
+
from oneroster_client.api.schools_management_api import SchoolsManagementApi
|
|
30
|
+
from oneroster_client.api.students_management_api import StudentsManagementApi
|
|
31
|
+
from oneroster_client.api.teachers_management_api import TeachersManagementApi
|
|
32
|
+
from oneroster_client.api.terms_management_api import TermsManagementApi
|
|
33
|
+
from oneroster_client.api.users_management_api import UsersManagementApi
|
|
34
|
+
# import ApiClient
|
|
35
|
+
from oneroster_client.api_client import ApiClient
|
|
36
|
+
from oneroster_client.configuration import Configuration
|
|
37
|
+
# import models into sdk package
|
|
38
|
+
from oneroster_client.models.academic_session_type import AcademicSessionType
|
|
39
|
+
from oneroster_client.models.academic_session_type_all_of import AcademicSessionTypeAllOf
|
|
40
|
+
from oneroster_client.models.base_type import BaseType
|
|
41
|
+
from oneroster_client.models.categories_type import CategoriesType
|
|
42
|
+
from oneroster_client.models.category_type import CategoryType
|
|
43
|
+
from oneroster_client.models.category_type_all_of import CategoryTypeAllOf
|
|
44
|
+
from oneroster_client.models.class_type import ClassType
|
|
45
|
+
from oneroster_client.models.class_type_all_of import ClassTypeAllOf
|
|
46
|
+
from oneroster_client.models.classes_type import ClassesType
|
|
47
|
+
from oneroster_client.models.course_type import CourseType
|
|
48
|
+
from oneroster_client.models.course_type_all_of import CourseTypeAllOf
|
|
49
|
+
from oneroster_client.models.courses_type import CoursesType
|
|
50
|
+
from oneroster_client.models.demographic_type import DemographicType
|
|
51
|
+
from oneroster_client.models.demographic_type_all_of import DemographicTypeAllOf
|
|
52
|
+
from oneroster_client.models.demographics_type import DemographicsType
|
|
53
|
+
from oneroster_client.models.enrollment_type import EnrollmentType
|
|
54
|
+
from oneroster_client.models.enrollment_type_all_of import EnrollmentTypeAllOf
|
|
55
|
+
from oneroster_client.models.enrollments_type import EnrollmentsType
|
|
56
|
+
from oneroster_client.models.guid_ref_type import GUIDRefType
|
|
57
|
+
from oneroster_client.models.guid_type import GUIDType
|
|
58
|
+
from oneroster_client.models.identifier_type import IdentifierType
|
|
59
|
+
from oneroster_client.models.imsx_code_minor_field_type import ImsxCodeMinorFieldType
|
|
60
|
+
from oneroster_client.models.imsx_code_minor_type import ImsxCodeMinorType
|
|
61
|
+
from oneroster_client.models.imsx_status_info_type import ImsxStatusInfoType
|
|
62
|
+
from oneroster_client.models.line_item_type import LineItemType
|
|
63
|
+
from oneroster_client.models.line_item_type_all_of import LineItemTypeAllOf
|
|
64
|
+
from oneroster_client.models.line_items_type import LineItemsType
|
|
65
|
+
from oneroster_client.models.metadata_type import MetadataType
|
|
66
|
+
from oneroster_client.models.multiple_academic_sessions_type import MultipleAcademicSessionsType
|
|
67
|
+
from oneroster_client.models.org_type import OrgType
|
|
68
|
+
from oneroster_client.models.org_type_all_of import OrgTypeAllOf
|
|
69
|
+
from oneroster_client.models.orgs_type import OrgsType
|
|
70
|
+
from oneroster_client.models.resource_type import ResourceType
|
|
71
|
+
from oneroster_client.models.resource_type_all_of import ResourceTypeAllOf
|
|
72
|
+
from oneroster_client.models.resources_type import ResourcesType
|
|
73
|
+
from oneroster_client.models.result_type import ResultType
|
|
74
|
+
from oneroster_client.models.result_type_all_of import ResultTypeAllOf
|
|
75
|
+
from oneroster_client.models.results_type import ResultsType
|
|
76
|
+
from oneroster_client.models.single_academic_session_type import SingleAcademicSessionType
|
|
77
|
+
from oneroster_client.models.single_category_type import SingleCategoryType
|
|
78
|
+
from oneroster_client.models.single_class_type import SingleClassType
|
|
79
|
+
from oneroster_client.models.single_course_type import SingleCourseType
|
|
80
|
+
from oneroster_client.models.single_demographics_type import SingleDemographicsType
|
|
81
|
+
from oneroster_client.models.single_enrollment_type import SingleEnrollmentType
|
|
82
|
+
from oneroster_client.models.single_line_item_type import SingleLineItemType
|
|
83
|
+
from oneroster_client.models.single_org_type import SingleOrgType
|
|
84
|
+
from oneroster_client.models.single_resource_type import SingleResourceType
|
|
85
|
+
from oneroster_client.models.single_result_type import SingleResultType
|
|
86
|
+
from oneroster_client.models.single_user_type import SingleUserType
|
|
87
|
+
from oneroster_client.models.user_id_type import UserIdType
|
|
88
|
+
from oneroster_client.models.user_type import UserType
|
|
89
|
+
from oneroster_client.models.user_type_all_of import UserTypeAllOf
|
|
90
|
+
from oneroster_client.models.users_type import UsersType
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from __future__ import absolute_import
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
# import apis into api package
|
|
6
|
+
from oneroster_client.api.academic_sessions_management_api import AcademicSessionsManagementApi
|
|
7
|
+
from oneroster_client.api.categories_management_api import CategoriesManagementApi
|
|
8
|
+
from oneroster_client.api.classes_management_api import ClassesManagementApi
|
|
9
|
+
from oneroster_client.api.courses_management_api import CoursesManagementApi
|
|
10
|
+
from oneroster_client.api.demographics_management_api import DemographicsManagementApi
|
|
11
|
+
from oneroster_client.api.enrollments_management_api import EnrollmentsManagementApi
|
|
12
|
+
from oneroster_client.api.grading_periods_management_api import GradingPeriodsManagementApi
|
|
13
|
+
from oneroster_client.api.line_items_management_api import LineItemsManagementApi
|
|
14
|
+
from oneroster_client.api.orgs_management_api import OrgsManagementApi
|
|
15
|
+
from oneroster_client.api.resources_management_api import ResourcesManagementApi
|
|
16
|
+
from oneroster_client.api.results_management_api import ResultsManagementApi
|
|
17
|
+
from oneroster_client.api.schools_management_api import SchoolsManagementApi
|
|
18
|
+
from oneroster_client.api.students_management_api import StudentsManagementApi
|
|
19
|
+
from oneroster_client.api.teachers_management_api import TeachersManagementApi
|
|
20
|
+
from oneroster_client.api.terms_management_api import TermsManagementApi
|
|
21
|
+
from oneroster_client.api.users_management_api import UsersManagementApi
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
OneRoster OpenAPI (JSON) Definition
|
|
5
|
+
|
|
6
|
+
The OneRoster service binding is available in WSDL/XSD and REST/JSON. The model is based upon the IMS PSM modelling approach. # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 1.1
|
|
9
|
+
Contact: lmattson@imsglobal.org
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from __future__ import absolute_import
|
|
14
|
+
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
# python 2 and python 3 compatibility library
|
|
18
|
+
import six
|
|
19
|
+
|
|
20
|
+
from oneroster_client.api_client import ApiClient
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class AcademicSessionsManagementApi(object):
|
|
24
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
25
|
+
|
|
26
|
+
Do not edit the class manually.
|
|
27
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
def __init__(self, api_client=None):
|
|
31
|
+
if api_client is None:
|
|
32
|
+
api_client = ApiClient()
|
|
33
|
+
self.api_client = api_client
|
|
34
|
+
|
|
35
|
+
def get_academic_session(self, sourced_id, **kwargs): # noqa: E501
|
|
36
|
+
"""The REST read request message for the getAcademicSession() API call. # noqa: E501
|
|
37
|
+
|
|
38
|
+
To read, get, a specific academic session. # noqa: E501
|
|
39
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
40
|
+
asynchronous HTTP request, please pass async_req=True
|
|
41
|
+
>>> thread = api.get_academic_session(sourced_id, async_req=True)
|
|
42
|
+
>>> result = thread.get()
|
|
43
|
+
|
|
44
|
+
:param async_req bool
|
|
45
|
+
:param str sourced_id: The unique identifier for this academic session. (required)
|
|
46
|
+
:return: SingleAcademicSessionType
|
|
47
|
+
If the method is called asynchronously,
|
|
48
|
+
returns the request thread.
|
|
49
|
+
"""
|
|
50
|
+
kwargs['_return_http_data_only'] = True
|
|
51
|
+
if kwargs.get('async_req'):
|
|
52
|
+
return self.get_academic_session_with_http_info(sourced_id, **kwargs) # noqa: E501
|
|
53
|
+
else:
|
|
54
|
+
(data) = self.get_academic_session_with_http_info(sourced_id, **kwargs) # noqa: E501
|
|
55
|
+
return data
|
|
56
|
+
|
|
57
|
+
def get_academic_session_with_http_info(self, sourced_id, **kwargs): # noqa: E501
|
|
58
|
+
"""The REST read request message for the getAcademicSession() API call. # noqa: E501
|
|
59
|
+
|
|
60
|
+
To read, get, a specific academic session. # noqa: E501
|
|
61
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
62
|
+
asynchronous HTTP request, please pass async_req=True
|
|
63
|
+
>>> thread = api.get_academic_session_with_http_info(sourced_id, async_req=True)
|
|
64
|
+
>>> result = thread.get()
|
|
65
|
+
|
|
66
|
+
:param async_req bool
|
|
67
|
+
:param str sourced_id: The unique identifier for this academic session. (required)
|
|
68
|
+
:return: SingleAcademicSessionType
|
|
69
|
+
If the method is called asynchronously,
|
|
70
|
+
returns the request thread.
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
all_params = ['sourced_id'] # noqa: E501
|
|
74
|
+
all_params.append('async_req')
|
|
75
|
+
all_params.append('_return_http_data_only')
|
|
76
|
+
all_params.append('_preload_content')
|
|
77
|
+
all_params.append('_request_timeout')
|
|
78
|
+
|
|
79
|
+
params = locals()
|
|
80
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
81
|
+
if key not in all_params:
|
|
82
|
+
raise TypeError(
|
|
83
|
+
"Got an unexpected keyword argument '%s'"
|
|
84
|
+
" to method get_academic_session" % key
|
|
85
|
+
)
|
|
86
|
+
params[key] = val
|
|
87
|
+
del params['kwargs']
|
|
88
|
+
# verify the required parameter 'sourced_id' is set
|
|
89
|
+
if ('sourced_id' not in params or
|
|
90
|
+
params['sourced_id'] is None):
|
|
91
|
+
raise ValueError("Missing the required parameter `sourced_id` when calling `get_academic_session`") # noqa: E501
|
|
92
|
+
|
|
93
|
+
collection_formats = {}
|
|
94
|
+
|
|
95
|
+
path_params = {}
|
|
96
|
+
if 'sourced_id' in params:
|
|
97
|
+
path_params['sourcedId'] = params['sourced_id'] # noqa: E501
|
|
98
|
+
|
|
99
|
+
query_params = []
|
|
100
|
+
|
|
101
|
+
header_params = {}
|
|
102
|
+
|
|
103
|
+
form_params = []
|
|
104
|
+
local_var_files = {}
|
|
105
|
+
|
|
106
|
+
body_params = None
|
|
107
|
+
# HTTP header `Accept`
|
|
108
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
109
|
+
['application/json']) # noqa: E501
|
|
110
|
+
|
|
111
|
+
# Authentication setting
|
|
112
|
+
auth_settings = ['OAuth2Security'] # noqa: E501
|
|
113
|
+
|
|
114
|
+
return self.api_client.call_api(
|
|
115
|
+
'/academicSessions/{sourcedId}', 'GET',
|
|
116
|
+
path_params,
|
|
117
|
+
query_params,
|
|
118
|
+
header_params,
|
|
119
|
+
body=body_params,
|
|
120
|
+
post_params=form_params,
|
|
121
|
+
files=local_var_files,
|
|
122
|
+
response_type='SingleAcademicSessionType', # noqa: E501
|
|
123
|
+
auth_settings=auth_settings,
|
|
124
|
+
async_req=params.get('async_req'),
|
|
125
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
126
|
+
_preload_content=params.get('_preload_content', True),
|
|
127
|
+
_request_timeout=params.get('_request_timeout'),
|
|
128
|
+
collection_formats=collection_formats)
|
|
129
|
+
|
|
130
|
+
def get_academic_sessions(self, **kwargs): # noqa: E501
|
|
131
|
+
"""The REST read request message for the getAcademicSessions() API call. # noqa: E501
|
|
132
|
+
|
|
133
|
+
To read, get, a collection of academic sessions i.e. all academic sessions. # noqa: E501
|
|
134
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
135
|
+
asynchronous HTTP request, please pass async_req=True
|
|
136
|
+
>>> thread = api.get_academic_sessions(async_req=True)
|
|
137
|
+
>>> result = thread.get()
|
|
138
|
+
|
|
139
|
+
:param async_req bool
|
|
140
|
+
:param int limit: To define the download segmentation value i.e. the maximum number of records to be contained in the response.
|
|
141
|
+
:param int offset: The number of the first record to be supplied in the segmented response message.
|
|
142
|
+
:param str continuation_token: Allows the client to resume retrieving results from where the previous page left off
|
|
143
|
+
:param str sort: Identifies the sort criteria to be used for the records in the response message. Use with the orderBy parameter.
|
|
144
|
+
:param str order_by: The form of ordering for response to the sorted request i.e. ascending (asc) or descending (desc).
|
|
145
|
+
:param str filter: The filtering rules to be applied when identifying the records to be supplied in the response message.
|
|
146
|
+
:param list[str] fields: To identify the range of fields that should be supplied in the response message.
|
|
147
|
+
:return: MultipleAcademicSessionsType
|
|
148
|
+
If the method is called asynchronously,
|
|
149
|
+
returns the request thread.
|
|
150
|
+
"""
|
|
151
|
+
kwargs['_return_http_data_only'] = True
|
|
152
|
+
if kwargs.get('async_req'):
|
|
153
|
+
return self.get_academic_sessions_with_http_info(**kwargs) # noqa: E501
|
|
154
|
+
else:
|
|
155
|
+
(data) = self.get_academic_sessions_with_http_info(**kwargs) # noqa: E501
|
|
156
|
+
return data
|
|
157
|
+
|
|
158
|
+
def get_academic_sessions_with_http_info(self, **kwargs): # noqa: E501
|
|
159
|
+
"""The REST read request message for the getAcademicSessions() API call. # noqa: E501
|
|
160
|
+
|
|
161
|
+
To read, get, a collection of academic sessions i.e. all academic sessions. # noqa: E501
|
|
162
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
163
|
+
asynchronous HTTP request, please pass async_req=True
|
|
164
|
+
>>> thread = api.get_academic_sessions_with_http_info(async_req=True)
|
|
165
|
+
>>> result = thread.get()
|
|
166
|
+
|
|
167
|
+
:param async_req bool
|
|
168
|
+
:param int limit: To define the download segmentation value i.e. the maximum number of records to be contained in the response.
|
|
169
|
+
:param int offset: The number of the first record to be supplied in the segmented response message.
|
|
170
|
+
:param str continuation_token: Allows the client to resume retrieving results from where the previous page left off
|
|
171
|
+
:param str sort: Identifies the sort criteria to be used for the records in the response message. Use with the orderBy parameter.
|
|
172
|
+
:param str order_by: The form of ordering for response to the sorted request i.e. ascending (asc) or descending (desc).
|
|
173
|
+
:param str filter: The filtering rules to be applied when identifying the records to be supplied in the response message.
|
|
174
|
+
:param list[str] fields: To identify the range of fields that should be supplied in the response message.
|
|
175
|
+
:return: MultipleAcademicSessionsType
|
|
176
|
+
If the method is called asynchronously,
|
|
177
|
+
returns the request thread.
|
|
178
|
+
"""
|
|
179
|
+
|
|
180
|
+
all_params = ['limit', 'offset', 'continuation_token', 'sort', 'order_by', 'filter', 'fields'] # noqa: E501
|
|
181
|
+
all_params.append('async_req')
|
|
182
|
+
all_params.append('_return_http_data_only')
|
|
183
|
+
all_params.append('_preload_content')
|
|
184
|
+
all_params.append('_request_timeout')
|
|
185
|
+
|
|
186
|
+
params = locals()
|
|
187
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
188
|
+
if key not in all_params:
|
|
189
|
+
raise TypeError(
|
|
190
|
+
"Got an unexpected keyword argument '%s'"
|
|
191
|
+
" to method get_academic_sessions" % key
|
|
192
|
+
)
|
|
193
|
+
params[key] = val
|
|
194
|
+
del params['kwargs']
|
|
195
|
+
|
|
196
|
+
collection_formats = {}
|
|
197
|
+
|
|
198
|
+
path_params = {}
|
|
199
|
+
|
|
200
|
+
query_params = []
|
|
201
|
+
if 'limit' in params:
|
|
202
|
+
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
203
|
+
if 'offset' in params:
|
|
204
|
+
query_params.append(('offset', params['offset'])) # noqa: E501
|
|
205
|
+
if 'continuation_token' in params:
|
|
206
|
+
query_params.append(('continuationToken', params['continuation_token'])) # noqa: E501
|
|
207
|
+
if 'sort' in params:
|
|
208
|
+
query_params.append(('sort', params['sort'])) # noqa: E501
|
|
209
|
+
if 'order_by' in params:
|
|
210
|
+
query_params.append(('orderBy', params['order_by'])) # noqa: E501
|
|
211
|
+
if 'filter' in params:
|
|
212
|
+
query_params.append(('filter', params['filter'])) # noqa: E501
|
|
213
|
+
if 'fields' in params:
|
|
214
|
+
query_params.append(('fields', params['fields'])) # noqa: E501
|
|
215
|
+
collection_formats['fields'] = 'csv' # noqa: E501
|
|
216
|
+
|
|
217
|
+
header_params = {}
|
|
218
|
+
|
|
219
|
+
form_params = []
|
|
220
|
+
local_var_files = {}
|
|
221
|
+
|
|
222
|
+
body_params = None
|
|
223
|
+
# HTTP header `Accept`
|
|
224
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
225
|
+
['application/json']) # noqa: E501
|
|
226
|
+
|
|
227
|
+
# Authentication setting
|
|
228
|
+
auth_settings = ['OAuth2Security'] # noqa: E501
|
|
229
|
+
|
|
230
|
+
return self.api_client.call_api(
|
|
231
|
+
'/academicSessions', 'GET',
|
|
232
|
+
path_params,
|
|
233
|
+
query_params,
|
|
234
|
+
header_params,
|
|
235
|
+
body=body_params,
|
|
236
|
+
post_params=form_params,
|
|
237
|
+
files=local_var_files,
|
|
238
|
+
response_type='MultipleAcademicSessionsType', # noqa: E501
|
|
239
|
+
auth_settings=auth_settings,
|
|
240
|
+
async_req=params.get('async_req'),
|
|
241
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
242
|
+
_preload_content=params.get('_preload_content', True),
|
|
243
|
+
_request_timeout=params.get('_request_timeout'),
|
|
244
|
+
collection_formats=collection_formats)
|