diff --git a/README.md b/README.md index b024e40..7e5eebf 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ REST API used for SCORM Cloud integrations. This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 2.0 -- Package version: 4.0.0 +- Package version: 5.0.0 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. @@ -111,7 +111,7 @@ def main(): # Show the launch link print(OUTPUT_BORDER) - print(f"Launck Link: {launch_link}") + print(f"Launch Link: {launch_link}") print("Navigate to the url above to take the course. Hit enter once complete.") input() diff --git a/requirements.txt b/requirements.txt index 7ea34fe..70f8484 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ -certifi >= 14.05.14 -six >= 1.10 -python_dateutil >= 2.5.3 +certifi >= 2024.2.28 +python_dateutil >= 2.8.2 setuptools >= 21.0.0 -urllib3 >= 1.15.1 +urllib3 >= 2.0.0 Deprecated >= 1.2.13 diff --git a/rustici_software_cloud_v2/__init__.py b/rustici_software_cloud_v2/__init__.py index f7f925c..c3d74c7 100644 --- a/rustici_software_cloud_v2/__init__.py +++ b/rustici_software_cloud_v2/__init__.py @@ -28,7 +28,6 @@ from rustici_software_cloud_v2.api.registration_api import RegistrationApi from rustici_software_cloud_v2.api.reporting_api import ReportingApi from rustici_software_cloud_v2.api.xapi_api import XapiApi -from rustici_software_cloud_v2.api.zoomi_api import ZoomiApi # import ApiClient from rustici_software_cloud_v2.api_client import ApiClient @@ -87,6 +86,7 @@ from rustici_software_cloud_v2.models.import_result_schema import ImportResultSchema from rustici_software_cloud_v2.models.integer_result_schema import IntegerResultSchema from rustici_software_cloud_v2.models.invitation_email_schema import InvitationEmailSchema +from rustici_software_cloud_v2.models.invitation_email_update_schema import InvitationEmailUpdateSchema from rustici_software_cloud_v2.models.invitation_job_status_schema import InvitationJobStatusSchema from rustici_software_cloud_v2.models.invitation_summary_list import InvitationSummaryList from rustici_software_cloud_v2.models.invitation_summary_schema import InvitationSummarySchema @@ -172,5 +172,3 @@ from rustici_software_cloud_v2.models.xapi_statement_reference import XapiStatementReference from rustici_software_cloud_v2.models.xapi_statement_result import XapiStatementResult from rustici_software_cloud_v2.models.xapi_verb import XapiVerb -from rustici_software_cloud_v2.models.zoomi_company_id import ZoomiCompanyId -from rustici_software_cloud_v2.models.zoomi_course_options_schema import ZoomiCourseOptionsSchema diff --git a/rustici_software_cloud_v2/api/__init__.py b/rustici_software_cloud_v2/api/__init__.py index 53c69a2..25bcae0 100644 --- a/rustici_software_cloud_v2/api/__init__.py +++ b/rustici_software_cloud_v2/api/__init__.py @@ -15,4 +15,3 @@ from rustici_software_cloud_v2.api.registration_api import RegistrationApi from rustici_software_cloud_v2.api.reporting_api import ReportingApi from rustici_software_cloud_v2.api.xapi_api import XapiApi -from rustici_software_cloud_v2.api.zoomi_api import ZoomiApi diff --git a/rustici_software_cloud_v2/api/about_api.py b/rustici_software_cloud_v2/api/about_api.py index 09037a6..8da3006 100644 --- a/rustici_software_cloud_v2/api/about_api.py +++ b/rustici_software_cloud_v2/api/about_api.py @@ -16,9 +16,6 @@ import re # noqa: F401 -# python 2 and python 3 compatibility library -import six - from rustici_software_cloud_v2.api_client import ApiClient @@ -77,7 +74,7 @@ def get_about_with_http_info(self, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" diff --git a/rustici_software_cloud_v2/api/application_management_api.py b/rustici_software_cloud_v2/api/application_management_api.py index 8e51c90..88b37b8 100644 --- a/rustici_software_cloud_v2/api/application_management_api.py +++ b/rustici_software_cloud_v2/api/application_management_api.py @@ -16,9 +16,6 @@ import re # noqa: F401 -# python 2 and python 3 compatibility library -import six - from rustici_software_cloud_v2.api_client import ApiClient @@ -79,7 +76,7 @@ def create_application_with_http_info(self, application_request, **kwargs): # n all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -180,7 +177,7 @@ def create_credential_with_http_info(self, child_app_id, credential_request, **k all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -285,7 +282,7 @@ def create_token_with_http_info(self, token_request, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -321,7 +318,7 @@ def create_token_with_http_info(self, token_request, **kwargs): # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['APP_NORMAL'] # noqa: E501 + auth_settings = ['APP_MANAGEMENT', 'APP_NORMAL'] # noqa: E501 return self.api_client.call_api( '/appManagement/token', 'POST', @@ -384,7 +381,7 @@ def delete_application_with_http_info(self, child_app_id, **kwargs): # noqa: E5 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -487,7 +484,7 @@ def delete_application_configuration_setting_with_http_info(self, setting_id, ** all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -592,7 +589,7 @@ def delete_credential_with_http_info(self, child_app_id, credential_id, **kwargs all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -701,7 +698,7 @@ def get_application_configuration_with_http_info(self, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -804,7 +801,7 @@ def get_application_info_with_http_info(self, child_app_id, **kwargs): # noqa: all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -907,7 +904,7 @@ def get_application_list_with_http_info(self, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1018,7 +1015,7 @@ def get_applications_with_http_info(self, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1131,7 +1128,7 @@ def get_credentials_with_http_info(self, child_app_id, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1234,7 +1231,7 @@ def set_application_configuration_with_http_info(self, configuration_settings, * all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1339,7 +1336,7 @@ def update_application_with_http_info(self, child_app_id, application_properties all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1448,7 +1445,7 @@ def update_credential_with_http_info(self, child_app_id, credential_id, credenti all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" diff --git a/rustici_software_cloud_v2/api/authentication_api.py b/rustici_software_cloud_v2/api/authentication_api.py index 54c30af..5ffb1c9 100644 --- a/rustici_software_cloud_v2/api/authentication_api.py +++ b/rustici_software_cloud_v2/api/authentication_api.py @@ -16,9 +16,6 @@ import re # noqa: F401 -# python 2 and python 3 compatibility library -import six - from rustici_software_cloud_v2.api_client import ApiClient @@ -81,7 +78,7 @@ def get_app_token_with_http_info(self, scope, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -119,7 +116,7 @@ def get_app_token_with_http_info(self, scope, **kwargs): # noqa: E501 ['application/x-www-form-urlencoded']) # noqa: E501 # Authentication setting - auth_settings = ['APP_NORMAL'] # noqa: E501 + auth_settings = ['APP_MANAGEMENT', 'APP_NORMAL'] # noqa: E501 return self.api_client.call_api( '/oauth/authenticate/application/token', 'POST', diff --git a/rustici_software_cloud_v2/api/content_connectors_api.py b/rustici_software_cloud_v2/api/content_connectors_api.py index e05cf96..515d58e 100644 --- a/rustici_software_cloud_v2/api/content_connectors_api.py +++ b/rustici_software_cloud_v2/api/content_connectors_api.py @@ -16,9 +16,6 @@ import re # noqa: F401 -# python 2 and python 3 compatibility library -import six - from rustici_software_cloud_v2.api_client import ApiClient @@ -79,7 +76,7 @@ def create_connector_with_http_info(self, connector, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -178,7 +175,7 @@ def delete_connector_with_http_info(self, connector_id, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -277,7 +274,7 @@ def get_connectors_list_with_http_info(self, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -374,7 +371,7 @@ def update_connector_with_http_info(self, connector_id, connector, **kwargs): # all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" diff --git a/rustici_software_cloud_v2/api/course_api.py b/rustici_software_cloud_v2/api/course_api.py index 3e4babd..accf366 100644 --- a/rustici_software_cloud_v2/api/course_api.py +++ b/rustici_software_cloud_v2/api/course_api.py @@ -16,9 +16,6 @@ import re # noqa: F401 -# python 2 and python 3 compatibility library -import six - from rustici_software_cloud_v2.api_client import ApiClient @@ -81,7 +78,7 @@ def build_course_preview_launch_link_with_http_info(self, course_id, launch_link all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -190,7 +187,7 @@ def build_course_preview_launch_link_with_version_with_http_info(self, course_id all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -270,6 +267,7 @@ def create_fetch_and_import_course_job(self, course_id, import_request, **kwargs :param ImportFetchRequestSchema import_request: (required) :param bool may_create_new_version: Is it OK to create a new version of this course? If this is set to false and the course already exists, the upload will fail. If true and the course already exists then a new version will be created. No effect if the course doesn't already exist. :param str postback_url: An optional parameter that specifies a URL to send a postback to when the course has finished uploading. + :param list[str] tags: A list of tags to apply, allowing for more refined filtering of resources :return: StringResultSchema If the method is called asynchronously, returns the request thread. @@ -295,19 +293,20 @@ def create_fetch_and_import_course_job_with_http_info(self, course_id, import_re :param ImportFetchRequestSchema import_request: (required) :param bool may_create_new_version: Is it OK to create a new version of this course? If this is set to false and the course already exists, the upload will fail. If true and the course already exists then a new version will be created. No effect if the course doesn't already exist. :param str postback_url: An optional parameter that specifies a URL to send a postback to when the course has finished uploading. + :param list[str] tags: A list of tags to apply, allowing for more refined filtering of resources :return: StringResultSchema If the method is called asynchronously, returns the request thread. """ - all_params = ['course_id', 'import_request', 'may_create_new_version', 'postback_url'] # noqa: E501 + all_params = ['course_id', 'import_request', 'may_create_new_version', 'postback_url', 'tags'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -335,6 +334,9 @@ def create_fetch_and_import_course_job_with_http_info(self, course_id, import_re query_params.append(('mayCreateNewVersion', params['may_create_new_version'])) # noqa: E501 if 'postback_url' in params: query_params.append(('postbackUrl', params['postback_url'])) # noqa: E501 + if 'tags' in params: + query_params.append(('tags', params['tags'])) # noqa: E501 + collection_formats['tags'] = 'csv' # noqa: E501 header_params = {} @@ -385,6 +387,7 @@ def create_no_upload_and_import_course_job(self, course_id, import_request, **kw :param ImportRequestSchema import_request: (required) :param bool may_create_new_version: Is it OK to create a new version of this course? If this is set to false and the course already exists, the upload will fail. If true and the course already exists then a new version will be created. No effect if the course doesn't already exist. :param str postback_url: An optional parameter that specifies a URL to send a postback to when the course has finished uploading. + :param list[str] tags: A list of tags to apply, allowing for more refined filtering of resources :return: StringResultSchema If the method is called asynchronously, returns the request thread. @@ -410,19 +413,20 @@ def create_no_upload_and_import_course_job_with_http_info(self, course_id, impor :param ImportRequestSchema import_request: (required) :param bool may_create_new_version: Is it OK to create a new version of this course? If this is set to false and the course already exists, the upload will fail. If true and the course already exists then a new version will be created. No effect if the course doesn't already exist. :param str postback_url: An optional parameter that specifies a URL to send a postback to when the course has finished uploading. + :param list[str] tags: A list of tags to apply, allowing for more refined filtering of resources :return: StringResultSchema If the method is called asynchronously, returns the request thread. """ - all_params = ['course_id', 'import_request', 'may_create_new_version', 'postback_url'] # noqa: E501 + all_params = ['course_id', 'import_request', 'may_create_new_version', 'postback_url', 'tags'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -450,6 +454,9 @@ def create_no_upload_and_import_course_job_with_http_info(self, course_id, impor query_params.append(('mayCreateNewVersion', params['may_create_new_version'])) # noqa: E501 if 'postback_url' in params: query_params.append(('postbackUrl', params['postback_url'])) # noqa: E501 + if 'tags' in params: + query_params.append(('tags', params['tags'])) # noqa: E501 + collection_formats['tags'] = 'csv' # noqa: E501 header_params = {} @@ -499,6 +506,7 @@ def create_upload_and_import_course_job(self, course_id, **kwargs): # noqa: E50 :param str course_id: A unique identifier your application will use to identify the course after import. Your application is responsible both for generating this unique ID and for keeping track of the ID for later use. (required) :param bool may_create_new_version: Is it OK to create a new version of this course? If this is set to false and the course already exists, the upload will fail. If true and the course already exists then a new version will be created. No effect if the course doesn't already exist. :param str postback_url: An optional parameter that specifies a URL to send a postback to when the course has finished uploading. + :param list[str] tags: A list of tags to apply, allowing for more refined filtering of resources :param str uploaded_content_type: The MIME type identifier for the content to be uploaded. This is required if uploading a media file (.pdf, .mp3, or .mp4). :param str content_metadata: Serialized 'mediaFileMetadata' schema. :param file file: The zip file of the course contents to import. @@ -526,6 +534,7 @@ def create_upload_and_import_course_job_with_http_info(self, course_id, **kwargs :param str course_id: A unique identifier your application will use to identify the course after import. Your application is responsible both for generating this unique ID and for keeping track of the ID for later use. (required) :param bool may_create_new_version: Is it OK to create a new version of this course? If this is set to false and the course already exists, the upload will fail. If true and the course already exists then a new version will be created. No effect if the course doesn't already exist. :param str postback_url: An optional parameter that specifies a URL to send a postback to when the course has finished uploading. + :param list[str] tags: A list of tags to apply, allowing for more refined filtering of resources :param str uploaded_content_type: The MIME type identifier for the content to be uploaded. This is required if uploading a media file (.pdf, .mp3, or .mp4). :param str content_metadata: Serialized 'mediaFileMetadata' schema. :param file file: The zip file of the course contents to import. @@ -534,14 +543,14 @@ def create_upload_and_import_course_job_with_http_info(self, course_id, **kwargs returns the request thread. """ - all_params = ['course_id', 'may_create_new_version', 'postback_url', 'uploaded_content_type', 'content_metadata', 'file'] # noqa: E501 + all_params = ['course_id', 'may_create_new_version', 'postback_url', 'tags', 'uploaded_content_type', 'content_metadata', 'file'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -565,6 +574,9 @@ def create_upload_and_import_course_job_with_http_info(self, course_id, **kwargs query_params.append(('mayCreateNewVersion', params['may_create_new_version'])) # noqa: E501 if 'postback_url' in params: query_params.append(('postbackUrl', params['postback_url'])) # noqa: E501 + if 'tags' in params: + query_params.append(('tags', params['tags'])) # noqa: E501 + collection_formats['tags'] = 'csv' # noqa: E501 header_params = {} if 'uploaded_content_type' in params: @@ -650,7 +662,7 @@ def delete_course_with_http_info(self, course_id, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -751,7 +763,7 @@ def delete_course_asset_with_http_info(self, course_id, relative_path, **kwargs) all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -858,7 +870,7 @@ def delete_course_configuration_setting_with_http_info(self, course_id, setting_ all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -965,7 +977,7 @@ def delete_course_tags_with_http_info(self, course_id, tags, **kwargs): # noqa: all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1072,7 +1084,7 @@ def delete_course_version_with_http_info(self, course_id, version_id, **kwargs): all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1181,7 +1193,7 @@ def delete_course_version_asset_with_http_info(self, course_id, version_id, rela all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1296,7 +1308,7 @@ def delete_course_version_configuration_setting_with_http_info(self, course_id, all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1411,7 +1423,7 @@ def get_course_with_http_info(self, course_id, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1516,7 +1528,7 @@ def get_course_asset_with_http_info(self, course_id, relative_path, **kwargs): all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1623,7 +1635,7 @@ def get_course_configuration_with_http_info(self, course_id, **kwargs): # noqa: all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1724,7 +1736,7 @@ def get_course_file_list_with_http_info(self, course_id, **kwargs): # noqa: E50 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1831,7 +1843,7 @@ def get_course_statements_with_http_info(self, course_id, **kwargs): # noqa: E5 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1938,7 +1950,7 @@ def get_course_tags_with_http_info(self, course_id, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2041,7 +2053,7 @@ def get_course_version_asset_with_http_info(self, course_id, version_id, relativ all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2156,7 +2168,7 @@ def get_course_version_configuration_with_http_info(self, course_id, version_id, all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2265,7 +2277,7 @@ def get_course_version_file_list_with_http_info(self, course_id, version_id, **k all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2376,7 +2388,7 @@ def get_course_version_info_with_http_info(self, course_id, version_id, **kwargs all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2495,7 +2507,7 @@ def get_course_version_statements_with_http_info(self, course_id, version_id, ** all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2616,7 +2628,7 @@ def get_course_versions_with_http_info(self, course_id, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2723,7 +2735,7 @@ def get_course_zip_with_http_info(self, course_id, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2842,7 +2854,7 @@ def get_courses_with_http_info(self, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2958,7 +2970,7 @@ def get_import_job_status_with_http_info(self, import_job_id, **kwargs): # noqa all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3059,7 +3071,7 @@ def get_versioned_course_zip_with_http_info(self, course_id, version_id, **kwarg all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3168,7 +3180,7 @@ def import_course_asset_file_with_http_info(self, course_id, asset_schema, **kwa all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3281,7 +3293,7 @@ def import_course_version_asset_file_with_http_info(self, course_id, version_id, all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3396,7 +3408,7 @@ def put_course_tags_with_http_info(self, course_id, tags, **kwargs): # noqa: E5 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3501,7 +3513,7 @@ def put_course_tags_batch_with_http_info(self, batch, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3602,7 +3614,7 @@ def set_course_configuration_with_http_info(self, course_id, configuration_setti all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3709,7 +3721,7 @@ def set_course_title_with_http_info(self, course_id, title, **kwargs): # noqa: all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3818,7 +3830,7 @@ def set_course_version_configuration_with_http_info(self, course_id, version_id, all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3935,7 +3947,7 @@ def upload_course_asset_file_with_http_info(self, course_id, destination, **kwar all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -4052,7 +4064,7 @@ def upload_course_version_asset_file_with_http_info(self, course_id, version_id, all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" diff --git a/rustici_software_cloud_v2/api/dispatch_api.py b/rustici_software_cloud_v2/api/dispatch_api.py index 2f6fe37..8f7cfa4 100644 --- a/rustici_software_cloud_v2/api/dispatch_api.py +++ b/rustici_software_cloud_v2/api/dispatch_api.py @@ -16,9 +16,6 @@ import re # noqa: F401 -# python 2 and python 3 compatibility library -import six - from rustici_software_cloud_v2.api_client import ApiClient @@ -79,7 +76,7 @@ def create_destinations_with_http_info(self, destinations_list, **kwargs): # no all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -178,7 +175,7 @@ def create_dispatches_with_http_info(self, dispatch_list, **kwargs): # noqa: E5 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -277,7 +274,7 @@ def delete_destination_with_http_info(self, destination_id, **kwargs): # noqa: all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -376,7 +373,7 @@ def delete_destination_dispatches_with_http_info(self, destination_id, **kwargs) all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -477,7 +474,7 @@ def delete_destination_tags_with_http_info(self, destination_id, tags, **kwargs) all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -582,7 +579,7 @@ def delete_dispatch_with_http_info(self, dispatch_id, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -681,7 +678,7 @@ def delete_dispatch_postback_info_with_http_info(self, dispatch_id, **kwargs): all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -782,7 +779,7 @@ def delete_dispatch_tags_with_http_info(self, dispatch_id, tags, **kwargs): # n all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -899,7 +896,7 @@ def delete_dispatches_with_http_info(self, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1009,7 +1006,7 @@ def enable_registration_instancing_with_http_info(self, destination_id, enabled, all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1116,7 +1113,7 @@ def get_destination_with_http_info(self, destination_id, **kwargs): # noqa: E50 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1217,7 +1214,7 @@ def get_destination_dispatch_registration_count_with_http_info(self, destination all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1322,7 +1319,7 @@ def get_destination_dispatch_zip_with_http_info(self, destination_id, **kwargs): all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1395,6 +1392,7 @@ def get_destination_dispatches(self, destination_id, **kwargs): # noqa: E501 :param async_req bool :param str destination_id: Identifier for the destination (required) :param str course_id: Only retrieve resources having `courseId` + :param bool is_enabled: Optional boolean parameter used to filter the list of dispatches so that only enabled or disabled dispatches are retrieved. :param datetime since: Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) :param datetime until: Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) :param str datetime_filter: Specifies field that `since` and `until` parameters are applied against @@ -1427,6 +1425,7 @@ def get_destination_dispatches_with_http_info(self, destination_id, **kwargs): :param async_req bool :param str destination_id: Identifier for the destination (required) :param str course_id: Only retrieve resources having `courseId` + :param bool is_enabled: Optional boolean parameter used to filter the list of dispatches so that only enabled or disabled dispatches are retrieved. :param datetime since: Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) :param datetime until: Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) :param str datetime_filter: Specifies field that `since` and `until` parameters are applied against @@ -1441,14 +1440,14 @@ def get_destination_dispatches_with_http_info(self, destination_id, **kwargs): returns the request thread. """ - all_params = ['destination_id', 'course_id', 'since', 'until', 'datetime_filter', 'tags', 'filter', 'filter_by', 'order_by', 'more', 'include_total_count'] # noqa: E501 + all_params = ['destination_id', 'course_id', 'is_enabled', 'since', 'until', 'datetime_filter', 'tags', 'filter', 'filter_by', 'order_by', 'more', 'include_total_count'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1470,6 +1469,8 @@ def get_destination_dispatches_with_http_info(self, destination_id, **kwargs): query_params = [] if 'course_id' in params: query_params.append(('courseId', params['course_id'])) # noqa: E501 + if 'is_enabled' in params: + query_params.append(('isEnabled', params['is_enabled'])) # noqa: E501 if 'since' in params: query_params.append(('since', params['since'])) # noqa: E501 if 'until' in params: @@ -1568,7 +1569,7 @@ def get_destination_hash_user_info_with_http_info(self, destination_id, **kwargs all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1667,7 +1668,7 @@ def get_destination_tags_with_http_info(self, destination_id, **kwargs): # noqa all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1786,7 +1787,7 @@ def get_destinations_with_http_info(self, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1902,7 +1903,7 @@ def get_dispatch_with_http_info(self, dispatch_id, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2001,7 +2002,7 @@ def get_dispatch_enabled_with_http_info(self, dispatch_id, **kwargs): # noqa: E all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2100,7 +2101,7 @@ def get_dispatch_hash_user_info_with_http_info(self, dispatch_id, **kwargs): # all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2199,7 +2200,7 @@ def get_dispatch_registration_count_with_http_info(self, dispatch_id, **kwargs): all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2298,7 +2299,7 @@ def get_dispatch_tags_with_http_info(self, dispatch_id, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2401,7 +2402,7 @@ def get_dispatch_zip_with_http_info(self, dispatch_id, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2470,6 +2471,7 @@ def get_dispatches(self, **kwargs): # noqa: E501 :param async_req bool :param str course_id: Only retrieve resources having `courseId` + :param bool is_enabled: Optional boolean parameter used to filter the list of dispatches so that only enabled or disabled dispatches are retrieved. :param datetime since: Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) :param datetime until: Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) :param str datetime_filter: Specifies field that `since` and `until` parameters are applied against @@ -2501,6 +2503,7 @@ def get_dispatches_with_http_info(self, **kwargs): # noqa: E501 :param async_req bool :param str course_id: Only retrieve resources having `courseId` + :param bool is_enabled: Optional boolean parameter used to filter the list of dispatches so that only enabled or disabled dispatches are retrieved. :param datetime since: Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) :param datetime until: Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) :param str datetime_filter: Specifies field that `since` and `until` parameters are applied against @@ -2515,14 +2518,14 @@ def get_dispatches_with_http_info(self, **kwargs): # noqa: E501 returns the request thread. """ - all_params = ['course_id', 'since', 'until', 'datetime_filter', 'tags', 'filter', 'filter_by', 'order_by', 'more', 'include_total_count'] # noqa: E501 + all_params = ['course_id', 'is_enabled', 'since', 'until', 'datetime_filter', 'tags', 'filter', 'filter_by', 'order_by', 'more', 'include_total_count'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2538,6 +2541,8 @@ def get_dispatches_with_http_info(self, **kwargs): # noqa: E501 query_params = [] if 'course_id' in params: query_params.append(('courseId', params['course_id'])) # noqa: E501 + if 'is_enabled' in params: + query_params.append(('isEnabled', params['is_enabled'])) # noqa: E501 if 'since' in params: query_params.append(('since', params['since'])) # noqa: E501 if 'until' in params: @@ -2636,7 +2641,7 @@ def get_lti13_dispatch_with_http_info(self, dispatch_id, **kwargs): # noqa: E50 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2739,7 +2744,7 @@ def get_lti13_dispatch_launch_with_http_info(self, dispatch_id, external_config, all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2848,7 +2853,7 @@ def get_lti13_tool_configuration_schema_with_http_info(self, destination_id, **k all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2947,7 +2952,7 @@ def get_lti_dispatch_with_http_info(self, dispatch_id, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3048,7 +3053,7 @@ def put_destination_tags_with_http_info(self, destination_id, tags, **kwargs): all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3153,7 +3158,7 @@ def put_destination_tags_batch_with_http_info(self, batch, **kwargs): # noqa: E all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3254,7 +3259,7 @@ def put_dispatch_tags_with_http_info(self, dispatch_id, tags, **kwargs): # noqa all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3359,7 +3364,7 @@ def put_dispatch_tags_batch_with_http_info(self, batch, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3458,7 +3463,7 @@ def reset_destination_dispatch_registration_count_with_http_info(self, destinati all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3557,7 +3562,7 @@ def reset_dispatch_registration_count_with_http_info(self, dispatch_id, **kwargs all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3658,7 +3663,7 @@ def set_destination_with_http_info(self, destination_id, destination, **kwargs): all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3765,7 +3770,7 @@ def set_destination_dispatch_enabled_with_http_info(self, destination_id, enable all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3872,7 +3877,7 @@ def set_dispatch_enabled_with_http_info(self, dispatch_id, enabled, **kwargs): all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -3979,7 +3984,7 @@ def update_destination_hash_user_info_with_http_info(self, destination_id, enabl all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -4086,7 +4091,7 @@ def update_dispatch_with_http_info(self, dispatch_id, dispatch_properties, **kwa all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -4193,7 +4198,7 @@ def update_dispatch_hash_user_info_with_http_info(self, dispatch_id, enabled, ** all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -4312,7 +4317,7 @@ def update_dispatches_with_http_info(self, dispatch_properties, **kwargs): # no all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" diff --git a/rustici_software_cloud_v2/api/invitations_api.py b/rustici_software_cloud_v2/api/invitations_api.py index 076fbac..11feeec 100644 --- a/rustici_software_cloud_v2/api/invitations_api.py +++ b/rustici_software_cloud_v2/api/invitations_api.py @@ -16,9 +16,6 @@ import re # noqa: F401 -# python 2 and python 3 compatibility library -import six - from rustici_software_cloud_v2.api_client import ApiClient @@ -79,7 +76,7 @@ def create_private_invitation_with_http_info(self, private_invitation_request, * all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -178,7 +175,7 @@ def create_public_invitation_with_http_info(self, public_invitation_request, **k all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -279,7 +276,7 @@ def delete_invitation_tags_with_http_info(self, invitation_id, tags, **kwargs): all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -402,7 +399,7 @@ def get_all_invitations_with_http_info(self, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -516,7 +513,7 @@ def get_invitation_tags_with_http_info(self, invitation_id, **kwargs): # noqa: all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -617,7 +614,7 @@ def get_private_invitation_with_http_info(self, invitation_id, **kwargs): # noq all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -718,7 +715,7 @@ def get_private_invitation_job_status_with_http_info(self, invitation_id, **kwar all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -775,7 +772,7 @@ def get_private_invitation_job_status_with_http_info(self, invitation_id, **kwar def get_private_invitations(self, **kwargs): # noqa: E501 """Get a list of Private Invitations # noqa: E501 - Returns a list of private invitations. Can be filtered using the request parameters to provide a subset of results. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. # noqa: E501 + Returns a list of private invitations. Can be filtered using the request parameters to provide a subset of results. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. >**Info:** >This endpoint caches the launched registration count and total registration count of all private invitations for 24 hours if the `includeRegistrationCount` parameter is set to `true`. Since these values are cached for an extended period, any changes made to the number of launched registrations for a private invitation will not be reflected in the results of this endpoint until the caching period has passed. >If you want to get up-to-date values of the launched or total registration counts for a single private invitation within the caching period, use the GetPrivateInvitation endpoint with `includeRegistrationCount` set to `true`. GetPrivateInvitation *always* gathers the most up-to-date values and overwrites them in the cache, resetting the caching period for that private invitation. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_private_invitations(async_req=True) @@ -791,6 +788,7 @@ def get_private_invitations(self, **kwargs): # noqa: E501 :param str filter_by: Optional enum parameter for specifying the field on which to run the filter. :param str order_by: Optional enum parameter for specifying the field and order by which to sort the results. :param str more: Pagination token returned as `more` property of multi page list requests + :param bool include_registration_count: Include the registration count in the results :param bool include_total_count: Include the total count of results matching the provided filters as a header on the initial request. The header will not be present on subsequent requests resulting from passing the `more` token. :return: PrivateInvitationList If the method is called asynchronously, @@ -806,7 +804,7 @@ def get_private_invitations(self, **kwargs): # noqa: E501 def get_private_invitations_with_http_info(self, **kwargs): # noqa: E501 """Get a list of Private Invitations # noqa: E501 - Returns a list of private invitations. Can be filtered using the request parameters to provide a subset of results. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. # noqa: E501 + Returns a list of private invitations. Can be filtered using the request parameters to provide a subset of results. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. >**Info:** >This endpoint caches the launched registration count and total registration count of all private invitations for 24 hours if the `includeRegistrationCount` parameter is set to `true`. Since these values are cached for an extended period, any changes made to the number of launched registrations for a private invitation will not be reflected in the results of this endpoint until the caching period has passed. >If you want to get up-to-date values of the launched or total registration counts for a single private invitation within the caching period, use the GetPrivateInvitation endpoint with `includeRegistrationCount` set to `true`. GetPrivateInvitation *always* gathers the most up-to-date values and overwrites them in the cache, resetting the caching period for that private invitation. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_private_invitations_with_http_info(async_req=True) @@ -822,20 +820,21 @@ def get_private_invitations_with_http_info(self, **kwargs): # noqa: E501 :param str filter_by: Optional enum parameter for specifying the field on which to run the filter. :param str order_by: Optional enum parameter for specifying the field and order by which to sort the results. :param str more: Pagination token returned as `more` property of multi page list requests + :param bool include_registration_count: Include the registration count in the results :param bool include_total_count: Include the total count of results matching the provided filters as a header on the initial request. The header will not be present on subsequent requests resulting from passing the `more` token. :return: PrivateInvitationList If the method is called asynchronously, returns the request thread. """ - all_params = ['course_id', 'since', 'until', 'datetime_filter', 'tags', 'filter', 'filter_by', 'order_by', 'more', 'include_total_count'] # noqa: E501 + all_params = ['course_id', 'since', 'until', 'datetime_filter', 'tags', 'filter', 'filter_by', 'order_by', 'more', 'include_registration_count', 'include_total_count'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -868,6 +867,8 @@ def get_private_invitations_with_http_info(self, **kwargs): # noqa: E501 query_params.append(('orderBy', params['order_by'])) # noqa: E501 if 'more' in params: query_params.append(('more', params['more'])) # noqa: E501 + if 'include_registration_count' in params: + query_params.append(('includeRegistrationCount', params['include_registration_count'])) # noqa: E501 if 'include_total_count' in params: query_params.append(('includeTotalCount', params['include_total_count'])) # noqa: E501 @@ -967,7 +968,7 @@ def get_private_user_invitations_with_http_info(self, invitation_id, **kwargs): all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1086,7 +1087,7 @@ def get_public_invitation_with_http_info(self, invitation_id, **kwargs): # noqa all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1145,7 +1146,7 @@ def get_public_invitation_with_http_info(self, invitation_id, **kwargs): # noqa def get_public_invitations(self, **kwargs): # noqa: E501 """Get a list of Public Invitations # noqa: E501 - Returns a list of public invitations. Can be filtered using the request parameters to provide a subset of results. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. # noqa: E501 + Returns a list of public invitations. Can be filtered using the request parameters to provide a subset of results. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. >**Info:** >This endpoint caches the registration count of all public invitations for 24 hours if the `includeRegistrationCount` parameter is set to `true`. Since this value is cached for an extended period, any changes made to the number of registrations for a public invitation will not be reflected in the results of this endpoint until the caching period has passed. >If you want to get an up-to-date value of the registration count for a single public invitation within the caching period, use the GetPublicInvitation endpoint with `includeRegistrationCount` set to `true`. GetPublicInvitation *always* gathers the most up-to-date values and overwrites them in the cache, resetting the caching period for that public invitation. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_public_invitations(async_req=True) @@ -1161,6 +1162,7 @@ def get_public_invitations(self, **kwargs): # noqa: E501 :param str filter_by: Optional enum parameter for specifying the field on which to run the filter. :param str order_by: Optional enum parameter for specifying the field and order by which to sort the results. :param str more: Pagination token returned as `more` property of multi page list requests + :param bool include_registration_count: Include the registration count in the results :param bool include_total_count: Include the total count of results matching the provided filters as a header on the initial request. The header will not be present on subsequent requests resulting from passing the `more` token. :return: PublicInvitationList If the method is called asynchronously, @@ -1176,7 +1178,7 @@ def get_public_invitations(self, **kwargs): # noqa: E501 def get_public_invitations_with_http_info(self, **kwargs): # noqa: E501 """Get a list of Public Invitations # noqa: E501 - Returns a list of public invitations. Can be filtered using the request parameters to provide a subset of results. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. # noqa: E501 + Returns a list of public invitations. Can be filtered using the request parameters to provide a subset of results. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. >**Info:** >This endpoint caches the registration count of all public invitations for 24 hours if the `includeRegistrationCount` parameter is set to `true`. Since this value is cached for an extended period, any changes made to the number of registrations for a public invitation will not be reflected in the results of this endpoint until the caching period has passed. >If you want to get an up-to-date value of the registration count for a single public invitation within the caching period, use the GetPublicInvitation endpoint with `includeRegistrationCount` set to `true`. GetPublicInvitation *always* gathers the most up-to-date values and overwrites them in the cache, resetting the caching period for that public invitation. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_public_invitations_with_http_info(async_req=True) @@ -1192,20 +1194,21 @@ def get_public_invitations_with_http_info(self, **kwargs): # noqa: E501 :param str filter_by: Optional enum parameter for specifying the field on which to run the filter. :param str order_by: Optional enum parameter for specifying the field and order by which to sort the results. :param str more: Pagination token returned as `more` property of multi page list requests + :param bool include_registration_count: Include the registration count in the results :param bool include_total_count: Include the total count of results matching the provided filters as a header on the initial request. The header will not be present on subsequent requests resulting from passing the `more` token. :return: PublicInvitationList If the method is called asynchronously, returns the request thread. """ - all_params = ['course_id', 'since', 'until', 'datetime_filter', 'tags', 'filter', 'filter_by', 'order_by', 'more', 'include_total_count'] # noqa: E501 + all_params = ['course_id', 'since', 'until', 'datetime_filter', 'tags', 'filter', 'filter_by', 'order_by', 'more', 'include_registration_count', 'include_total_count'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1238,6 +1241,8 @@ def get_public_invitations_with_http_info(self, **kwargs): # noqa: E501 query_params.append(('orderBy', params['order_by'])) # noqa: E501 if 'more' in params: query_params.append(('more', params['more'])) # noqa: E501 + if 'include_registration_count' in params: + query_params.append(('includeRegistrationCount', params['include_registration_count'])) # noqa: E501 if 'include_total_count' in params: query_params.append(('includeTotalCount', params['include_total_count'])) # noqa: E501 @@ -1337,7 +1342,7 @@ def get_public_user_invitations_with_http_info(self, invitation_id, **kwargs): all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1456,7 +1461,7 @@ def put_invitation_tags_with_http_info(self, invitation_id, tags, **kwargs): # all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1561,7 +1566,7 @@ def put_invitation_tags_batch_with_http_info(self, batch, **kwargs): # noqa: E5 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1662,7 +1667,7 @@ def update_private_invitation_with_http_info(self, invitation_id, invitation_upd all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1769,7 +1774,7 @@ def update_public_invitation_with_http_info(self, invitation_id, invitation_upda all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" diff --git a/rustici_software_cloud_v2/api/learner_api.py b/rustici_software_cloud_v2/api/learner_api.py index 75b5671..1b00e8a 100644 --- a/rustici_software_cloud_v2/api/learner_api.py +++ b/rustici_software_cloud_v2/api/learner_api.py @@ -16,9 +16,6 @@ import re # noqa: F401 -# python 2 and python 3 compatibility library -import six - from rustici_software_cloud_v2.api_client import ApiClient @@ -81,7 +78,7 @@ def delete_all_learner_data_with_http_info(self, learner_id, user_email, **kwarg all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -188,7 +185,7 @@ def delete_learner_tags_with_http_info(self, learner_id, tags, **kwargs): # noq all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -293,7 +290,7 @@ def get_learner_tags_with_http_info(self, learner_id, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -394,7 +391,7 @@ def put_learner_tags_with_http_info(self, learner_id, tags, **kwargs): # noqa: all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -499,7 +496,7 @@ def put_learner_tags_batch_with_http_info(self, batch, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -600,7 +597,7 @@ def update_learner_info_with_http_info(self, learner_id, learner_info, **kwargs) all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" diff --git a/rustici_software_cloud_v2/api/ping_api.py b/rustici_software_cloud_v2/api/ping_api.py index 763b174..948fa7c 100644 --- a/rustici_software_cloud_v2/api/ping_api.py +++ b/rustici_software_cloud_v2/api/ping_api.py @@ -16,9 +16,6 @@ import re # noqa: F401 -# python 2 and python 3 compatibility library -import six - from rustici_software_cloud_v2.api_client import ApiClient @@ -77,7 +74,7 @@ def ping_app_id_with_http_info(self, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" diff --git a/rustici_software_cloud_v2/api/registration_api.py b/rustici_software_cloud_v2/api/registration_api.py index c172530..c2f733e 100644 --- a/rustici_software_cloud_v2/api/registration_api.py +++ b/rustici_software_cloud_v2/api/registration_api.py @@ -16,9 +16,6 @@ import re # noqa: F401 -# python 2 and python 3 compatibility library -import six - from rustici_software_cloud_v2.api_client import ApiClient @@ -81,7 +78,7 @@ def build_registration_launch_link_with_http_info(self, registration_id, launch_ all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -186,7 +183,7 @@ def create_new_registration_instance_with_http_info(self, registration_id, **kwa all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -287,7 +284,7 @@ def create_registration_with_http_info(self, registration, **kwargs): # noqa: E all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -388,7 +385,7 @@ def delete_registration_with_http_info(self, registration_id, **kwargs): # noqa all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -489,7 +486,7 @@ def delete_registration_configuration_setting_with_http_info(self, registration_ all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -594,7 +591,7 @@ def delete_registration_global_data_with_http_info(self, registration_id, **kwar all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -695,7 +692,7 @@ def delete_registration_instance_with_http_info(self, registration_id, instance_ all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -804,7 +801,7 @@ def delete_registration_instance_configuration_setting_with_http_info(self, regi all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -915,7 +912,7 @@ def delete_registration_progress_with_http_info(self, registration_id, **kwargs) all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1016,7 +1013,7 @@ def delete_registration_tags_with_http_info(self, registration_id, tags, **kwarg all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1121,7 +1118,7 @@ def get_registration_with_http_info(self, registration_id, **kwargs): # noqa: E all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1222,7 +1219,7 @@ def get_registration_configuration_with_http_info(self, registration_id, **kwarg all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1327,7 +1324,7 @@ def get_registration_instance_configuration_with_http_info(self, registration_id all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1438,7 +1435,7 @@ def get_registration_instance_launch_history_with_http_info(self, registration_i all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1553,7 +1550,7 @@ def get_registration_instance_progress_with_http_info(self, registration_id, ins all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1672,7 +1669,7 @@ def get_registration_instance_statements_with_http_info(self, registration_id, i all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1795,7 +1792,7 @@ def get_registration_instances_with_http_info(self, registration_id, **kwargs): all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -1908,7 +1905,7 @@ def get_registration_launch_history_with_http_info(self, registration_id, **kwar all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2015,7 +2012,7 @@ def get_registration_progress_with_http_info(self, registration_id, **kwargs): all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2126,7 +2123,7 @@ def get_registration_statements_with_http_info(self, registration_id, **kwargs): all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2231,7 +2228,7 @@ def get_registration_tags_with_http_info(self, registration_id, **kwargs): # no all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2356,7 +2353,7 @@ def get_registrations_with_http_info(self, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2480,7 +2477,7 @@ def put_registration_tags_with_http_info(self, registration_id, tags, **kwargs): all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2585,7 +2582,7 @@ def put_registration_tags_batch_with_http_info(self, batch, **kwargs): # noqa: all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2686,7 +2683,7 @@ def set_registration_configuration_with_http_info(self, registration_id, configu all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2795,7 +2792,7 @@ def set_registration_instance_configuration_with_http_info(self, registration_id all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -2906,7 +2903,7 @@ def test_registration_postback_with_http_info(self, post_back, **kwargs): # noq all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" diff --git a/rustici_software_cloud_v2/api/reporting_api.py b/rustici_software_cloud_v2/api/reporting_api.py index 8e6d502..65fb4e3 100644 --- a/rustici_software_cloud_v2/api/reporting_api.py +++ b/rustici_software_cloud_v2/api/reporting_api.py @@ -16,9 +16,6 @@ import re # noqa: F401 -# python 2 and python 3 compatibility library -import six - from rustici_software_cloud_v2.api_client import ApiClient @@ -77,7 +74,7 @@ def get_account_info_with_http_info(self, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -172,7 +169,7 @@ def get_reportage_auth_token_with_http_info(self, nav_permission, **kwargs): # all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -275,7 +272,7 @@ def get_reportage_link_with_http_info(self, auth, report_url, **kwargs): # noqa all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" diff --git a/rustici_software_cloud_v2/api/xapi_api.py b/rustici_software_cloud_v2/api/xapi_api.py index 321d326..b0e691f 100644 --- a/rustici_software_cloud_v2/api/xapi_api.py +++ b/rustici_software_cloud_v2/api/xapi_api.py @@ -16,9 +16,6 @@ import re # noqa: F401 -# python 2 and python 3 compatibility library -import six - from rustici_software_cloud_v2.api_client import ApiClient @@ -79,7 +76,7 @@ def create_statement_pipe_with_http_info(self, xapi_statement_pipe, **kwargs): all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -178,7 +175,7 @@ def create_xapi_credential_with_http_info(self, xapi_credential, **kwargs): # n all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -277,7 +274,7 @@ def delete_statement_pipe_with_http_info(self, statement_pipe_id, **kwargs): # all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -376,7 +373,7 @@ def delete_xapi_credential_with_http_info(self, xapi_credential_id, **kwargs): all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -475,7 +472,7 @@ def get_statement_pipe_with_http_info(self, statement_pipe_id, **kwargs): # noq all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -572,7 +569,7 @@ def get_statement_pipes_with_http_info(self, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -665,7 +662,7 @@ def get_xapi_credential_with_http_info(self, xapi_credential_id, **kwargs): # n all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -778,7 +775,7 @@ def get_xapi_credentials_with_http_info(self, **kwargs): # noqa: E501 all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -889,7 +886,7 @@ def set_statement_pipe_with_http_info(self, statement_pipe_id, xapi_statement_pi all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -996,7 +993,7 @@ def set_xapi_credential_with_http_info(self, xapi_credential_id, xapi_credential all_params.append('_request_timeout') params = locals() - for key, val in six.iteritems(params['kwargs']): + for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" diff --git a/rustici_software_cloud_v2/api/zoomi_api.py b/rustici_software_cloud_v2/api/zoomi_api.py deleted file mode 100644 index 783aaed..0000000 --- a/rustici_software_cloud_v2/api/zoomi_api.py +++ /dev/null @@ -1,958 +0,0 @@ -# coding: utf-8 - -""" - SCORM Cloud Rest API - - REST API used for SCORM Cloud integrations. # noqa: E501 - - OpenAPI spec version: 2.0 - Contact: systems@rusticisoftware.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import -from deprecated import deprecated - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from rustici_software_cloud_v2.api_client import ApiClient - - -class ZoomiApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def delete_application_zoomi_keys(self, **kwargs): # noqa: E501 - """Delete the Zoomi keys for an Application # noqa: E501 - - Deletes the Zoomi keys for an application. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_application_zoomi_keys(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_application_zoomi_keys_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_application_zoomi_keys_with_http_info(**kwargs) # noqa: E501 - return data - - def delete_application_zoomi_keys_with_http_info(self, **kwargs): # noqa: E501 - """Delete the Zoomi keys for an Application # noqa: E501 - - Deletes the Zoomi keys for an application. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_application_zoomi_keys_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_application_zoomi_keys" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['APP_NORMAL', 'OAUTH'] # noqa: E501 - - return self.api_client.call_api( - '/zoomi/key', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_zoomi_course(self, course_id, version_id, **kwargs): # noqa: E501 - """Delete the Course from Zoomi # noqa: E501 - - Deletes the course from Zoomi, but the course will remain in SCORM Cloud. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_zoomi_course(course_id, version_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str course_id: (required) - :param int version_id: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_zoomi_course_with_http_info(course_id, version_id, **kwargs) # noqa: E501 - else: - (data) = self.delete_zoomi_course_with_http_info(course_id, version_id, **kwargs) # noqa: E501 - return data - - def delete_zoomi_course_with_http_info(self, course_id, version_id, **kwargs): # noqa: E501 - """Delete the Course from Zoomi # noqa: E501 - - Deletes the course from Zoomi, but the course will remain in SCORM Cloud. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_zoomi_course_with_http_info(course_id, version_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str course_id: (required) - :param int version_id: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['course_id', 'version_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_zoomi_course" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'course_id' is set - if ('course_id' not in params or - params['course_id'] is None): - raise ValueError("Missing the required parameter `course_id` when calling `delete_zoomi_course`") # noqa: E501 - # verify the required parameter 'version_id' is set - if ('version_id' not in params or - params['version_id'] is None): - raise ValueError("Missing the required parameter `version_id` when calling `delete_zoomi_course`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'course_id' in params: - path_params['courseId'] = params['course_id'] # noqa: E501 - if 'version_id' in params: - path_params['versionId'] = params['version_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['APP_NORMAL', 'OAUTH'] # noqa: E501 - - return self.api_client.call_api( - '/zoomi/course/{courseId}/version/{versionId}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_application_zoomi_company_id(self, **kwargs): # noqa: E501 - """Get the Zoomi company ID of an Application # noqa: E501 - - Returns the Zoomi company ID of an application. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_application_zoomi_company_id(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: StringResultSchema - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_application_zoomi_company_id_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_application_zoomi_company_id_with_http_info(**kwargs) # noqa: E501 - return data - - def get_application_zoomi_company_id_with_http_info(self, **kwargs): # noqa: E501 - """Get the Zoomi company ID of an Application # noqa: E501 - - Returns the Zoomi company ID of an application. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_application_zoomi_company_id_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: StringResultSchema - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_application_zoomi_company_id" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['APP_NORMAL', 'OAUTH'] # noqa: E501 - - return self.api_client.call_api( - '/zoomi', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='StringResultSchema', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_application_zoomi_public_key(self, **kwargs): # noqa: E501 - """Get the Zoomi public key for an Application # noqa: E501 - - Returns the Zoomi public key for an application. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_application_zoomi_public_key(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: StringResultSchema - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_application_zoomi_public_key_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_application_zoomi_public_key_with_http_info(**kwargs) # noqa: E501 - return data - - def get_application_zoomi_public_key_with_http_info(self, **kwargs): # noqa: E501 - """Get the Zoomi public key for an Application # noqa: E501 - - Returns the Zoomi public key for an application. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_application_zoomi_public_key_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: StringResultSchema - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_application_zoomi_public_key" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['APP_NORMAL', 'OAUTH'] # noqa: E501 - - return self.api_client.call_api( - '/zoomi/key', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='StringResultSchema', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_course_zoomi_enabled(self, course_id, version_id, **kwargs): # noqa: E501 - """Get the Zoomi enabled value of a Course Version # noqa: E501 - - Returns the Zoomi enabled value of a course version. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_course_zoomi_enabled(course_id, version_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str course_id: (required) - :param int version_id: (required) - :return: EnabledSchema - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_course_zoomi_enabled_with_http_info(course_id, version_id, **kwargs) # noqa: E501 - else: - (data) = self.get_course_zoomi_enabled_with_http_info(course_id, version_id, **kwargs) # noqa: E501 - return data - - def get_course_zoomi_enabled_with_http_info(self, course_id, version_id, **kwargs): # noqa: E501 - """Get the Zoomi enabled value of a Course Version # noqa: E501 - - Returns the Zoomi enabled value of a course version. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_course_zoomi_enabled_with_http_info(course_id, version_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str course_id: (required) - :param int version_id: (required) - :return: EnabledSchema - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['course_id', 'version_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_course_zoomi_enabled" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'course_id' is set - if ('course_id' not in params or - params['course_id'] is None): - raise ValueError("Missing the required parameter `course_id` when calling `get_course_zoomi_enabled`") # noqa: E501 - # verify the required parameter 'version_id' is set - if ('version_id' not in params or - params['version_id'] is None): - raise ValueError("Missing the required parameter `version_id` when calling `get_course_zoomi_enabled`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'course_id' in params: - path_params['courseId'] = params['course_id'] # noqa: E501 - if 'version_id' in params: - path_params['versionId'] = params['version_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['APP_NORMAL', 'OAUTH'] # noqa: E501 - - return self.api_client.call_api( - '/zoomi/course/{courseId}/version/{versionId}/enabled', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='EnabledSchema', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_zoomi_course_status(self, course_id, version_id, **kwargs): # noqa: E501 - """Get the status for a Course from Zoomi # noqa: E501 - - Returns the status for a course and starts the upload process to Zoomi if not started. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_zoomi_course_status(course_id, version_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str course_id: (required) - :param int version_id: (required) - :return: StringResultSchema - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_zoomi_course_status_with_http_info(course_id, version_id, **kwargs) # noqa: E501 - else: - (data) = self.get_zoomi_course_status_with_http_info(course_id, version_id, **kwargs) # noqa: E501 - return data - - def get_zoomi_course_status_with_http_info(self, course_id, version_id, **kwargs): # noqa: E501 - """Get the status for a Course from Zoomi # noqa: E501 - - Returns the status for a course and starts the upload process to Zoomi if not started. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_zoomi_course_status_with_http_info(course_id, version_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str course_id: (required) - :param int version_id: (required) - :return: StringResultSchema - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['course_id', 'version_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_zoomi_course_status" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'course_id' is set - if ('course_id' not in params or - params['course_id'] is None): - raise ValueError("Missing the required parameter `course_id` when calling `get_zoomi_course_status`") # noqa: E501 - # verify the required parameter 'version_id' is set - if ('version_id' not in params or - params['version_id'] is None): - raise ValueError("Missing the required parameter `version_id` when calling `get_zoomi_course_status`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'course_id' in params: - path_params['courseId'] = params['course_id'] # noqa: E501 - if 'version_id' in params: - path_params['versionId'] = params['version_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['APP_NORMAL', 'OAUTH'] # noqa: E501 - - return self.api_client.call_api( - '/zoomi/course/{courseId}/version/{versionId}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='StringResultSchema', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def import_course_version_to_zoomi(self, course_id, version_id, zoomi_course_options, **kwargs): # noqa: E501 - """Begin the import process with Zoomi # noqa: E501 - - Begins the import process with Zoomi. Must be followed up by a status call. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.import_course_version_to_zoomi(course_id, version_id, zoomi_course_options, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str course_id: (required) - :param int version_id: (required) - :param ZoomiCourseOptionsSchema zoomi_course_options: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.import_course_version_to_zoomi_with_http_info(course_id, version_id, zoomi_course_options, **kwargs) # noqa: E501 - else: - (data) = self.import_course_version_to_zoomi_with_http_info(course_id, version_id, zoomi_course_options, **kwargs) # noqa: E501 - return data - - def import_course_version_to_zoomi_with_http_info(self, course_id, version_id, zoomi_course_options, **kwargs): # noqa: E501 - """Begin the import process with Zoomi # noqa: E501 - - Begins the import process with Zoomi. Must be followed up by a status call. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.import_course_version_to_zoomi_with_http_info(course_id, version_id, zoomi_course_options, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str course_id: (required) - :param int version_id: (required) - :param ZoomiCourseOptionsSchema zoomi_course_options: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['course_id', 'version_id', 'zoomi_course_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method import_course_version_to_zoomi" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'course_id' is set - if ('course_id' not in params or - params['course_id'] is None): - raise ValueError("Missing the required parameter `course_id` when calling `import_course_version_to_zoomi`") # noqa: E501 - # verify the required parameter 'version_id' is set - if ('version_id' not in params or - params['version_id'] is None): - raise ValueError("Missing the required parameter `version_id` when calling `import_course_version_to_zoomi`") # noqa: E501 - # verify the required parameter 'zoomi_course_options' is set - if ('zoomi_course_options' not in params or - params['zoomi_course_options'] is None): - raise ValueError("Missing the required parameter `zoomi_course_options` when calling `import_course_version_to_zoomi`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'course_id' in params: - path_params['courseId'] = params['course_id'] # noqa: E501 - if 'version_id' in params: - path_params['versionId'] = params['version_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'zoomi_course_options' in params: - body_params = params['zoomi_course_options'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['APP_NORMAL', 'OAUTH'] # noqa: E501 - - return self.api_client.call_api( - '/zoomi/course/{courseId}/version/{versionId}/import', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def set_application_zoomi_company_id(self, zoomi_company_id, **kwargs): # noqa: E501 - """Set the Zoomi company ID of an Application # noqa: E501 - - Sets the Zoomi company ID value of an application. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.set_application_zoomi_company_id(zoomi_company_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ZoomiCompanyId zoomi_company_id: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.set_application_zoomi_company_id_with_http_info(zoomi_company_id, **kwargs) # noqa: E501 - else: - (data) = self.set_application_zoomi_company_id_with_http_info(zoomi_company_id, **kwargs) # noqa: E501 - return data - - def set_application_zoomi_company_id_with_http_info(self, zoomi_company_id, **kwargs): # noqa: E501 - """Set the Zoomi company ID of an Application # noqa: E501 - - Sets the Zoomi company ID value of an application. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.set_application_zoomi_company_id_with_http_info(zoomi_company_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ZoomiCompanyId zoomi_company_id: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['zoomi_company_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method set_application_zoomi_company_id" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'zoomi_company_id' is set - if ('zoomi_company_id' not in params or - params['zoomi_company_id'] is None): - raise ValueError("Missing the required parameter `zoomi_company_id` when calling `set_application_zoomi_company_id`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'zoomi_company_id' in params: - body_params = params['zoomi_company_id'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['APP_NORMAL', 'OAUTH'] # noqa: E501 - - return self.api_client.call_api( - '/zoomi', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def set_course_zoomi_enabled(self, course_id, version_id, enabled, **kwargs): # noqa: E501 - """Set the Zoomi enabled value of a Course Version # noqa: E501 - - Sets the Zoomi enabled value of a course version. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.set_course_zoomi_enabled(course_id, version_id, enabled, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str course_id: (required) - :param int version_id: (required) - :param EnabledSchema enabled: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.set_course_zoomi_enabled_with_http_info(course_id, version_id, enabled, **kwargs) # noqa: E501 - else: - (data) = self.set_course_zoomi_enabled_with_http_info(course_id, version_id, enabled, **kwargs) # noqa: E501 - return data - - def set_course_zoomi_enabled_with_http_info(self, course_id, version_id, enabled, **kwargs): # noqa: E501 - """Set the Zoomi enabled value of a Course Version # noqa: E501 - - Sets the Zoomi enabled value of a course version. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.set_course_zoomi_enabled_with_http_info(course_id, version_id, enabled, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str course_id: (required) - :param int version_id: (required) - :param EnabledSchema enabled: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['course_id', 'version_id', 'enabled'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method set_course_zoomi_enabled" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'course_id' is set - if ('course_id' not in params or - params['course_id'] is None): - raise ValueError("Missing the required parameter `course_id` when calling `set_course_zoomi_enabled`") # noqa: E501 - # verify the required parameter 'version_id' is set - if ('version_id' not in params or - params['version_id'] is None): - raise ValueError("Missing the required parameter `version_id` when calling `set_course_zoomi_enabled`") # noqa: E501 - # verify the required parameter 'enabled' is set - if ('enabled' not in params or - params['enabled'] is None): - raise ValueError("Missing the required parameter `enabled` when calling `set_course_zoomi_enabled`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'course_id' in params: - path_params['courseId'] = params['course_id'] # noqa: E501 - if 'version_id' in params: - path_params['versionId'] = params['version_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'enabled' in params: - body_params = params['enabled'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['APP_NORMAL', 'OAUTH'] # noqa: E501 - - return self.api_client.call_api( - '/zoomi/course/{courseId}/version/{versionId}/enabled', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/rustici_software_cloud_v2/api_client.py b/rustici_software_cloud_v2/api_client.py index e37050f..f4edc1a 100644 --- a/rustici_software_cloud_v2/api_client.py +++ b/rustici_software_cloud_v2/api_client.py @@ -19,9 +19,7 @@ import re import tempfile -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import quote +from urllib.parse import quote from rustici_software_cloud_v2.configuration import Configuration import rustici_software_cloud_v2.models @@ -48,10 +46,10 @@ class ApiClient(object): to the API """ - PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + PRIMITIVE_TYPES = (float, bool, bytes, str, int) NATIVE_TYPES_MAPPING = { 'int': int, - 'long': int if six.PY3 else long, # noqa: F821 + 'long': int, 'float': float, 'str': str, 'bool': bool, @@ -74,7 +72,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/4.0.0/python' + self.user_agent = 'Swagger-Codegen/5.0.0/python' def __del__(self): if self._pool is not None: @@ -212,11 +210,11 @@ def sanitize_for_serialization(self, obj): # Convert attribute name to json key in # model definition for request. obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) - for attr, _ in six.iteritems(obj.swagger_types) + for attr, _ in obj.swagger_types.items() if getattr(obj, attr) is not None} return {key: self.sanitize_for_serialization(val) - for key, val in six.iteritems(obj_dict)} + for key, val in obj_dict.items()} def deserialize(self, response, response_type): """Deserializes response into an object. @@ -260,7 +258,7 @@ def __deserialize(self, data, klass): if klass.startswith('dict('): sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) return {k: self.__deserialize(v, sub_kls) - for k, v in six.iteritems(data)} + for k, v in data.items()} # convert str to class if klass in self.NATIVE_TYPES_MAPPING: @@ -410,7 +408,7 @@ def parameters_to_tuples(self, params, collection_formats): new_params = [] if collection_formats is None: collection_formats = {} - for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 + for k, v in (params.items() if isinstance(params, dict) else params): # noqa: E501 if k in collection_formats: collection_format = collection_formats[k] if collection_format == 'multi': @@ -443,7 +441,7 @@ def prepare_post_parameters(self, post_params=None, files=None): params = post_params if files: - for k, v in six.iteritems(files): + for k, v in files.items(): if not v: continue file_names = v if type(v) is list else [v] @@ -555,7 +553,7 @@ def __deserialize_primitive(self, data, klass): try: return klass(data) except UnicodeEncodeError: - return six.text_type(data) + return str(data) except TypeError: return data @@ -622,7 +620,7 @@ def __deserialize_model(self, data, klass): kwargs = {} if klass.swagger_types is not None: - for attr, attr_type in six.iteritems(klass.swagger_types): + for attr, attr_type in klass.swagger_types.items(): if (data is not None and klass.attribute_map[attr] in data and isinstance(data, (list, dict))): diff --git a/rustici_software_cloud_v2/configuration.py b/rustici_software_cloud_v2/configuration.py index 2151444..247a95f 100644 --- a/rustici_software_cloud_v2/configuration.py +++ b/rustici_software_cloud_v2/configuration.py @@ -19,8 +19,7 @@ import sys import urllib3 -import six -from six.moves import http_client as httplib +import http.client as httplib class Configuration(object): @@ -131,7 +130,7 @@ def logger_file(self, value): # then add file handler and remove stream handler. self.logger_file_handler = logging.FileHandler(self.__logger_file) self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): + for _, logger in self.logger.items(): logger.addHandler(self.logger_file_handler) if self.logger_stream_handler: logger.removeHandler(self.logger_stream_handler) @@ -140,7 +139,7 @@ def logger_file(self, value): # then add stream handler and remove file handler. self.logger_stream_handler = logging.StreamHandler() self.logger_stream_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): + for _, logger in self.logger.items(): logger.addHandler(self.logger_stream_handler) if self.logger_file_handler: logger.removeHandler(self.logger_file_handler) @@ -164,14 +163,14 @@ def debug(self, value): self.__debug = value if self.__debug: # if debug status is True, turn on debug logging - for _, logger in six.iteritems(self.logger): + for _, logger in self.logger.items(): logger.setLevel(logging.DEBUG) # turn on httplib debug httplib.HTTPConnection.debuglevel = 1 else: # if debug status is False, turn off debug logging, # setting log level to default `logging.WARNING` - for _, logger in six.iteritems(self.logger): + for _, logger in self.logger.items(): logger.setLevel(logging.WARNING) # turn off httplib debug httplib.HTTPConnection.debuglevel = 0 @@ -266,5 +265,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2.0\n"\ - "SDK Package Version: 4.0.0".\ + "SDK Package Version: 5.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/rustici_software_cloud_v2/models/__init__.py b/rustici_software_cloud_v2/models/__init__.py index 3fc45e9..40bdf9f 100644 --- a/rustici_software_cloud_v2/models/__init__.py +++ b/rustici_software_cloud_v2/models/__init__.py @@ -68,6 +68,7 @@ from rustici_software_cloud_v2.models.import_result_schema import ImportResultSchema from rustici_software_cloud_v2.models.integer_result_schema import IntegerResultSchema from rustici_software_cloud_v2.models.invitation_email_schema import InvitationEmailSchema +from rustici_software_cloud_v2.models.invitation_email_update_schema import InvitationEmailUpdateSchema from rustici_software_cloud_v2.models.invitation_job_status_schema import InvitationJobStatusSchema from rustici_software_cloud_v2.models.invitation_summary_list import InvitationSummaryList from rustici_software_cloud_v2.models.invitation_summary_schema import InvitationSummarySchema @@ -153,5 +154,3 @@ from rustici_software_cloud_v2.models.xapi_statement_reference import XapiStatementReference from rustici_software_cloud_v2.models.xapi_statement_result import XapiStatementResult from rustici_software_cloud_v2.models.xapi_verb import XapiVerb -from rustici_software_cloud_v2.models.zoomi_company_id import ZoomiCompanyId -from rustici_software_cloud_v2.models.zoomi_course_options_schema import ZoomiCourseOptionsSchema diff --git a/rustici_software_cloud_v2/models/about_schema.py b/rustici_software_cloud_v2/models/about_schema.py index e19da7d..e9fe8f8 100644 --- a/rustici_software_cloud_v2/models/about_schema.py +++ b/rustici_software_cloud_v2/models/about_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class AboutSchema(object): @@ -94,7 +93,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/activity_result_schema.py b/rustici_software_cloud_v2/models/activity_result_schema.py index b5c316c..afae2ff 100644 --- a/rustici_software_cloud_v2/models/activity_result_schema.py +++ b/rustici_software_cloud_v2/models/activity_result_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ActivityResultSchema(object): @@ -366,7 +365,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/application_info_list_schema.py b/rustici_software_cloud_v2/models/application_info_list_schema.py index 671c057..ed863e5 100644 --- a/rustici_software_cloud_v2/models/application_info_list_schema.py +++ b/rustici_software_cloud_v2/models/application_info_list_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ApplicationInfoListSchema(object): @@ -98,7 +97,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/application_info_schema.py b/rustici_software_cloud_v2/models/application_info_schema.py index 5351c34..ab6a49c 100644 --- a/rustici_software_cloud_v2/models/application_info_schema.py +++ b/rustici_software_cloud_v2/models/application_info_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ApplicationInfoSchema(object): @@ -234,7 +233,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/application_list_schema.py b/rustici_software_cloud_v2/models/application_list_schema.py index 066e0c0..d3d9fa8 100644 --- a/rustici_software_cloud_v2/models/application_list_schema.py +++ b/rustici_software_cloud_v2/models/application_list_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ApplicationListSchema(object): @@ -70,7 +69,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/application_request_schema.py b/rustici_software_cloud_v2/models/application_request_schema.py index d193b45..662852b 100644 --- a/rustici_software_cloud_v2/models/application_request_schema.py +++ b/rustici_software_cloud_v2/models/application_request_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ApplicationRequestSchema(object): @@ -74,7 +73,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/application_schema.py b/rustici_software_cloud_v2/models/application_schema.py index 1b48cc7..f5aee33 100644 --- a/rustici_software_cloud_v2/models/application_schema.py +++ b/rustici_software_cloud_v2/models/application_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ApplicationSchema(object): @@ -102,7 +101,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/application_token.py b/rustici_software_cloud_v2/models/application_token.py index 6f977c6..58b1acc 100644 --- a/rustici_software_cloud_v2/models/application_token.py +++ b/rustici_software_cloud_v2/models/application_token.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ApplicationToken(object): @@ -118,7 +117,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/asset_file_schema.py b/rustici_software_cloud_v2/models/asset_file_schema.py index 5f03708..efa89bf 100644 --- a/rustici_software_cloud_v2/models/asset_file_schema.py +++ b/rustici_software_cloud_v2/models/asset_file_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class AssetFileSchema(object): @@ -94,7 +93,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/batch_tags_schema.py b/rustici_software_cloud_v2/models/batch_tags_schema.py index 4df6f36..7726190 100644 --- a/rustici_software_cloud_v2/models/batch_tags_schema.py +++ b/rustici_software_cloud_v2/models/batch_tags_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class BatchTagsSchema(object): @@ -96,7 +95,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/comment_schema.py b/rustici_software_cloud_v2/models/comment_schema.py index e4fc273..b3fe47b 100644 --- a/rustici_software_cloud_v2/models/comment_schema.py +++ b/rustici_software_cloud_v2/models/comment_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class CommentSchema(object): @@ -118,7 +117,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/completion_amount_schema.py b/rustici_software_cloud_v2/models/completion_amount_schema.py index 0222f3c..bc80edf 100644 --- a/rustici_software_cloud_v2/models/completion_amount_schema.py +++ b/rustici_software_cloud_v2/models/completion_amount_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class CompletionAmountSchema(object): @@ -74,7 +73,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/connector_list_schema.py b/rustici_software_cloud_v2/models/connector_list_schema.py index f184335..674f716 100644 --- a/rustici_software_cloud_v2/models/connector_list_schema.py +++ b/rustici_software_cloud_v2/models/connector_list_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ConnectorListSchema(object): @@ -70,7 +69,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/connector_schema.py b/rustici_software_cloud_v2/models/connector_schema.py index d3e5edc..786b2c4 100644 --- a/rustici_software_cloud_v2/models/connector_schema.py +++ b/rustici_software_cloud_v2/models/connector_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ConnectorSchema(object): @@ -182,7 +181,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/course_activity_schema.py b/rustici_software_cloud_v2/models/course_activity_schema.py index b1b62c9..7f86ba4 100644 --- a/rustici_software_cloud_v2/models/course_activity_schema.py +++ b/rustici_software_cloud_v2/models/course_activity_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class CourseActivitySchema(object): @@ -270,7 +269,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/course_list_non_paged_schema.py b/rustici_software_cloud_v2/models/course_list_non_paged_schema.py index d9cb92b..d39cb78 100644 --- a/rustici_software_cloud_v2/models/course_list_non_paged_schema.py +++ b/rustici_software_cloud_v2/models/course_list_non_paged_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class CourseListNonPagedSchema(object): @@ -70,7 +69,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/course_list_schema.py b/rustici_software_cloud_v2/models/course_list_schema.py index ea298f3..ac0cb73 100644 --- a/rustici_software_cloud_v2/models/course_list_schema.py +++ b/rustici_software_cloud_v2/models/course_list_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class CourseListSchema(object): @@ -98,7 +97,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/course_reference_schema.py b/rustici_software_cloud_v2/models/course_reference_schema.py index e7ed093..90b00eb 100644 --- a/rustici_software_cloud_v2/models/course_reference_schema.py +++ b/rustici_software_cloud_v2/models/course_reference_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class CourseReferenceSchema(object): @@ -118,7 +117,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/course_schema.py b/rustici_software_cloud_v2/models/course_schema.py index 7cb2ef2..2001712 100644 --- a/rustici_software_cloud_v2/models/course_schema.py +++ b/rustici_software_cloud_v2/models/course_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class CourseSchema(object): @@ -366,7 +365,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/create_connector_schema.py b/rustici_software_cloud_v2/models/create_connector_schema.py index a98d5bf..2a90adf 100644 --- a/rustici_software_cloud_v2/models/create_connector_schema.py +++ b/rustici_software_cloud_v2/models/create_connector_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class CreateConnectorSchema(object): @@ -132,7 +131,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/create_dispatch_id_schema.py b/rustici_software_cloud_v2/models/create_dispatch_id_schema.py index 157045c..683ab31 100644 --- a/rustici_software_cloud_v2/models/create_dispatch_id_schema.py +++ b/rustici_software_cloud_v2/models/create_dispatch_id_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class CreateDispatchIdSchema(object): @@ -96,7 +95,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/create_dispatch_list_schema.py b/rustici_software_cloud_v2/models/create_dispatch_list_schema.py index 2b79e5e..28a69c6 100644 --- a/rustici_software_cloud_v2/models/create_dispatch_list_schema.py +++ b/rustici_software_cloud_v2/models/create_dispatch_list_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class CreateDispatchListSchema(object): @@ -70,7 +69,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/create_dispatch_schema.py b/rustici_software_cloud_v2/models/create_dispatch_schema.py index 0db416a..8d3e87a 100644 --- a/rustici_software_cloud_v2/models/create_dispatch_schema.py +++ b/rustici_software_cloud_v2/models/create_dispatch_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class CreateDispatchSchema(object): @@ -356,7 +355,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/create_private_invitation_schema.py b/rustici_software_cloud_v2/models/create_private_invitation_schema.py index 3403003..e740f25 100644 --- a/rustici_software_cloud_v2/models/create_private_invitation_schema.py +++ b/rustici_software_cloud_v2/models/create_private_invitation_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class CreatePrivateInvitationSchema(object): @@ -245,7 +244,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/create_public_invitation_schema.py b/rustici_software_cloud_v2/models/create_public_invitation_schema.py index 5682e39..1bc3363 100644 --- a/rustici_software_cloud_v2/models/create_public_invitation_schema.py +++ b/rustici_software_cloud_v2/models/create_public_invitation_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class CreatePublicInvitationSchema(object): @@ -216,7 +215,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/create_registration_schema.py b/rustici_software_cloud_v2/models/create_registration_schema.py index 58f1a91..ab824df 100644 --- a/rustici_software_cloud_v2/models/create_registration_schema.py +++ b/rustici_software_cloud_v2/models/create_registration_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class CreateRegistrationSchema(object): @@ -297,7 +296,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/credential_list_schema.py b/rustici_software_cloud_v2/models/credential_list_schema.py index 0af6db3..310dc22 100644 --- a/rustici_software_cloud_v2/models/credential_list_schema.py +++ b/rustici_software_cloud_v2/models/credential_list_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class CredentialListSchema(object): @@ -70,7 +69,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/credential_request_schema.py b/rustici_software_cloud_v2/models/credential_request_schema.py index 07fff6a..00af327 100644 --- a/rustici_software_cloud_v2/models/credential_request_schema.py +++ b/rustici_software_cloud_v2/models/credential_request_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class CredentialRequestSchema(object): @@ -102,7 +101,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/credential_schema.py b/rustici_software_cloud_v2/models/credential_schema.py index dcd378a..b38b3da 100644 --- a/rustici_software_cloud_v2/models/credential_schema.py +++ b/rustici_software_cloud_v2/models/credential_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class CredentialSchema(object): @@ -238,7 +237,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/destination_id_schema.py b/rustici_software_cloud_v2/models/destination_id_schema.py index 6070b82..c246463 100644 --- a/rustici_software_cloud_v2/models/destination_id_schema.py +++ b/rustici_software_cloud_v2/models/destination_id_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class DestinationIdSchema(object): @@ -98,7 +97,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/destination_info_id_schema.py b/rustici_software_cloud_v2/models/destination_info_id_schema.py index 7f2feca..92130e5 100644 --- a/rustici_software_cloud_v2/models/destination_info_id_schema.py +++ b/rustici_software_cloud_v2/models/destination_info_id_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class DestinationInfoIdSchema(object): @@ -98,7 +97,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/destination_info_list_schema.py b/rustici_software_cloud_v2/models/destination_info_list_schema.py index 2cf4be1..786d008 100644 --- a/rustici_software_cloud_v2/models/destination_info_list_schema.py +++ b/rustici_software_cloud_v2/models/destination_info_list_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class DestinationInfoListSchema(object): @@ -102,7 +101,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/destination_info_schema.py b/rustici_software_cloud_v2/models/destination_info_schema.py index 128c1b7..e99e528 100644 --- a/rustici_software_cloud_v2/models/destination_info_schema.py +++ b/rustici_software_cloud_v2/models/destination_info_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class DestinationInfoSchema(object): @@ -278,7 +277,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/destination_list_schema.py b/rustici_software_cloud_v2/models/destination_list_schema.py index 4f2c966..1bae046 100644 --- a/rustici_software_cloud_v2/models/destination_list_schema.py +++ b/rustici_software_cloud_v2/models/destination_list_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class DestinationListSchema(object): @@ -74,7 +73,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/destination_schema.py b/rustici_software_cloud_v2/models/destination_schema.py index cf979a7..a729521 100644 --- a/rustici_software_cloud_v2/models/destination_schema.py +++ b/rustici_software_cloud_v2/models/destination_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class DestinationSchema(object): @@ -254,7 +253,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/dispatch_id_schema.py b/rustici_software_cloud_v2/models/dispatch_id_schema.py index f238e38..cff8377 100644 --- a/rustici_software_cloud_v2/models/dispatch_id_schema.py +++ b/rustici_software_cloud_v2/models/dispatch_id_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class DispatchIdSchema(object): @@ -94,7 +93,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/dispatch_list_schema.py b/rustici_software_cloud_v2/models/dispatch_list_schema.py index 7aad191..9688887 100644 --- a/rustici_software_cloud_v2/models/dispatch_list_schema.py +++ b/rustici_software_cloud_v2/models/dispatch_list_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class DispatchListSchema(object): @@ -98,7 +97,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/dispatch_lti13_info_schema.py b/rustici_software_cloud_v2/models/dispatch_lti13_info_schema.py index ec5bb4a..37f86d3 100644 --- a/rustici_software_cloud_v2/models/dispatch_lti13_info_schema.py +++ b/rustici_software_cloud_v2/models/dispatch_lti13_info_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class DispatchLti13InfoSchema(object): @@ -74,7 +73,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/dispatch_lti_info_schema.py b/rustici_software_cloud_v2/models/dispatch_lti_info_schema.py index 88d811e..01bb659 100644 --- a/rustici_software_cloud_v2/models/dispatch_lti_info_schema.py +++ b/rustici_software_cloud_v2/models/dispatch_lti_info_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class DispatchLtiInfoSchema(object): @@ -133,7 +132,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/dispatch_registration_count_schema.py b/rustici_software_cloud_v2/models/dispatch_registration_count_schema.py index 3e559b2..988d7f5 100644 --- a/rustici_software_cloud_v2/models/dispatch_registration_count_schema.py +++ b/rustici_software_cloud_v2/models/dispatch_registration_count_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class DispatchRegistrationCountSchema(object): @@ -75,6 +74,8 @@ def registration_count(self, registration_count): def last_reset_date(self): """Gets the last_reset_date of this DispatchRegistrationCountSchema. # noqa: E501 + The ISO 8601 TimeStamp (defaults to UTC) at which the registration count for this dispatch was reset. # noqa: E501 + :return: The last_reset_date of this DispatchRegistrationCountSchema. # noqa: E501 :rtype: datetime """ @@ -84,6 +85,8 @@ def last_reset_date(self): def last_reset_date(self, last_reset_date): """Sets the last_reset_date of this DispatchRegistrationCountSchema. + The ISO 8601 TimeStamp (defaults to UTC) at which the registration count for this dispatch was reset. # noqa: E501 + :param last_reset_date: The last_reset_date of this DispatchRegistrationCountSchema. # noqa: E501 :type: datetime """ @@ -94,7 +97,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/dispatch_schema.py b/rustici_software_cloud_v2/models/dispatch_schema.py index 0c288da..82cbdf6 100644 --- a/rustici_software_cloud_v2/models/dispatch_schema.py +++ b/rustici_software_cloud_v2/models/dispatch_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class DispatchSchema(object): @@ -42,6 +41,7 @@ class DispatchSchema(object): 'instanced': 'bool', 'registration_cap': 'int', 'registration_count': 'int', + 'registration_reset_date': 'datetime', 'expiration_date': 'datetime', 'tags': 'list[str]', 'email': 'str', @@ -60,13 +60,14 @@ class DispatchSchema(object): 'instanced': 'instanced', 'registration_cap': 'registrationCap', 'registration_count': 'registrationCount', + 'registration_reset_date': 'registrationResetDate', 'expiration_date': 'expirationDate', 'tags': 'tags', 'email': 'email', 'notes': 'notes' } - def __init__(self, destination_id=None, destination_name=None, course_id=None, course_title=None, updated=None, created=None, allow_new_registrations=None, enabled=None, instanced=None, registration_cap=None, registration_count=None, expiration_date=None, tags=None, email=None, notes=None): # noqa: E501 + def __init__(self, destination_id=None, destination_name=None, course_id=None, course_title=None, updated=None, created=None, allow_new_registrations=None, enabled=None, instanced=None, registration_cap=None, registration_count=None, registration_reset_date=None, expiration_date=None, tags=None, email=None, notes=None): # noqa: E501 """DispatchSchema - a model defined in Swagger""" # noqa: E501 self._destination_id = None @@ -80,6 +81,7 @@ def __init__(self, destination_id=None, destination_name=None, course_id=None, c self._instanced = None self._registration_cap = None self._registration_count = None + self._registration_reset_date = None self._expiration_date = None self._tags = None self._email = None @@ -108,6 +110,8 @@ def __init__(self, destination_id=None, destination_name=None, course_id=None, c self.registration_cap = registration_cap if registration_count is not None: self.registration_count = registration_count + if registration_reset_date is not None: + self.registration_reset_date = registration_reset_date if expiration_date is not None: self.expiration_date = expiration_date if tags is not None: @@ -362,6 +366,29 @@ def registration_count(self, registration_count): self._registration_count = registration_count + @property + def registration_reset_date(self): + """Gets the registration_reset_date of this DispatchSchema. # noqa: E501 + + The ISO 8601 TimeStamp (defaults to UTC) at which the registration count for this dispatch was reset. # noqa: E501 + + :return: The registration_reset_date of this DispatchSchema. # noqa: E501 + :rtype: datetime + """ + return self._registration_reset_date + + @registration_reset_date.setter + def registration_reset_date(self, registration_reset_date): + """Sets the registration_reset_date of this DispatchSchema. + + The ISO 8601 TimeStamp (defaults to UTC) at which the registration count for this dispatch was reset. # noqa: E501 + + :param registration_reset_date: The registration_reset_date of this DispatchSchema. # noqa: E501 + :type: datetime + """ + + self._registration_reset_date = registration_reset_date + @property def expiration_date(self): """Gets the expiration_date of this DispatchSchema. # noqa: E501 @@ -458,7 +485,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/enabled_schema.py b/rustici_software_cloud_v2/models/enabled_schema.py index b16fb33..c465c18 100644 --- a/rustici_software_cloud_v2/models/enabled_schema.py +++ b/rustici_software_cloud_v2/models/enabled_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class EnabledSchema(object): @@ -70,7 +69,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/file_list_item_schema.py b/rustici_software_cloud_v2/models/file_list_item_schema.py index 628097f..174ac6e 100644 --- a/rustici_software_cloud_v2/models/file_list_item_schema.py +++ b/rustici_software_cloud_v2/models/file_list_item_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class FileListItemSchema(object): @@ -126,7 +125,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/file_list_schema.py b/rustici_software_cloud_v2/models/file_list_schema.py index 8bed355..d0b797a 100644 --- a/rustici_software_cloud_v2/models/file_list_schema.py +++ b/rustici_software_cloud_v2/models/file_list_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class FileListSchema(object): @@ -70,7 +69,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/import_asset_request_schema.py b/rustici_software_cloud_v2/models/import_asset_request_schema.py index a134ee7..df222ec 100644 --- a/rustici_software_cloud_v2/models/import_asset_request_schema.py +++ b/rustici_software_cloud_v2/models/import_asset_request_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ImportAssetRequestSchema(object): @@ -104,7 +103,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/import_connector_request_schema.py b/rustici_software_cloud_v2/models/import_connector_request_schema.py index 7b875e1..9bc37e4 100644 --- a/rustici_software_cloud_v2/models/import_connector_request_schema.py +++ b/rustici_software_cloud_v2/models/import_connector_request_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ImportConnectorRequestSchema(object): @@ -130,7 +129,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/import_fetch_request_schema.py b/rustici_software_cloud_v2/models/import_fetch_request_schema.py index 7a4a859..d059c36 100644 --- a/rustici_software_cloud_v2/models/import_fetch_request_schema.py +++ b/rustici_software_cloud_v2/models/import_fetch_request_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ImportFetchRequestSchema(object): @@ -127,7 +126,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/import_job_result_schema.py b/rustici_software_cloud_v2/models/import_job_result_schema.py index da20fff..93fcbe1 100644 --- a/rustici_software_cloud_v2/models/import_job_result_schema.py +++ b/rustici_software_cloud_v2/models/import_job_result_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ImportJobResultSchema(object): @@ -146,7 +145,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.py b/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.py index 8479e03..753c265 100644 --- a/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.py +++ b/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ImportMediaFileReferenceRequestSchema(object): @@ -128,7 +127,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/import_request_schema.py b/rustici_software_cloud_v2/models/import_request_schema.py index 69e53d0..e1a6172 100644 --- a/rustici_software_cloud_v2/models/import_request_schema.py +++ b/rustici_software_cloud_v2/models/import_request_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ImportRequestSchema(object): @@ -118,7 +117,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/import_result_schema.py b/rustici_software_cloud_v2/models/import_result_schema.py index d24a202..bba45e6 100644 --- a/rustici_software_cloud_v2/models/import_result_schema.py +++ b/rustici_software_cloud_v2/models/import_result_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ImportResultSchema(object): @@ -146,7 +145,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/integer_result_schema.py b/rustici_software_cloud_v2/models/integer_result_schema.py index dcf6b53..4b37264 100644 --- a/rustici_software_cloud_v2/models/integer_result_schema.py +++ b/rustici_software_cloud_v2/models/integer_result_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class IntegerResultSchema(object): @@ -71,7 +70,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/invitation_email_schema.py b/rustici_software_cloud_v2/models/invitation_email_schema.py index 1cb7f70..950e008 100644 --- a/rustici_software_cloud_v2/models/invitation_email_schema.py +++ b/rustici_software_cloud_v2/models/invitation_email_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class InvitationEmailSchema(object): @@ -131,7 +130,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/zoomi_course_options_schema.py b/rustici_software_cloud_v2/models/invitation_email_update_schema.py similarity index 57% rename from rustici_software_cloud_v2/models/zoomi_course_options_schema.py rename to rustici_software_cloud_v2/models/invitation_email_update_schema.py index c1e8929..1ed16bc 100644 --- a/rustici_software_cloud_v2/models/zoomi_course_options_schema.py +++ b/rustici_software_cloud_v2/models/invitation_email_update_schema.py @@ -14,10 +14,9 @@ import pprint import re # noqa: F401 -import six -class ZoomiCourseOptionsSchema(object): +class InvitationEmailUpdateSchema(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,72 +30,78 @@ class ZoomiCourseOptionsSchema(object): and the value is json key in definition. """ swagger_types = { - 'nti': 'str', - 'cta': 'str' + 'subject': 'str', + 'body': 'str' } attribute_map = { - 'nti': 'nti', - 'cta': 'cta' + 'subject': 'subject', + 'body': 'body' } - def __init__(self, nti=None, cta=None): # noqa: E501 - """ZoomiCourseOptionsSchema - a model defined in Swagger""" # noqa: E501 + def __init__(self, subject=None, body=None): # noqa: E501 + """InvitationEmailUpdateSchema - a model defined in Swagger""" # noqa: E501 - self._nti = None - self._cta = None + self._subject = None + self._body = None self.discriminator = None - self.nti = nti - self.cta = cta + if subject is not None: + self.subject = subject + if body is not None: + self.body = body @property - def nti(self): - """Gets the nti of this ZoomiCourseOptionsSchema. # noqa: E501 + def subject(self): + """Gets the subject of this InvitationEmailUpdateSchema. # noqa: E501 - :return: The nti of this ZoomiCourseOptionsSchema. # noqa: E501 + The subject line for the email. # noqa: E501 + + :return: The subject of this InvitationEmailUpdateSchema. # noqa: E501 :rtype: str """ - return self._nti + return self._subject + + @subject.setter + def subject(self, subject): + """Sets the subject of this InvitationEmailUpdateSchema. - @nti.setter - def nti(self, nti): - """Sets the nti of this ZoomiCourseOptionsSchema. + The subject line for the email. # noqa: E501 - :param nti: The nti of this ZoomiCourseOptionsSchema. # noqa: E501 + :param subject: The subject of this InvitationEmailUpdateSchema. # noqa: E501 :type: str """ - if nti is None: - raise ValueError("Invalid value for `nti`, must not be `None`") # noqa: E501 - self._nti = nti + self._subject = subject @property - def cta(self): - """Gets the cta of this ZoomiCourseOptionsSchema. # noqa: E501 + def body(self): + """Gets the body of this InvitationEmailUpdateSchema. # noqa: E501 - :return: The cta of this ZoomiCourseOptionsSchema. # noqa: E501 + The body of the email. # noqa: E501 + + :return: The body of this InvitationEmailUpdateSchema. # noqa: E501 :rtype: str """ - return self._cta + return self._body + + @body.setter + def body(self, body): + """Sets the body of this InvitationEmailUpdateSchema. - @cta.setter - def cta(self, cta): - """Sets the cta of this ZoomiCourseOptionsSchema. + The body of the email. # noqa: E501 - :param cta: The cta of this ZoomiCourseOptionsSchema. # noqa: E501 + :param body: The body of this InvitationEmailUpdateSchema. # noqa: E501 :type: str """ - if cta is None: - raise ValueError("Invalid value for `cta`, must not be `None`") # noqa: E501 - self._cta = cta + self._body = body def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -113,7 +118,7 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ZoomiCourseOptionsSchema, dict): + if issubclass(InvitationEmailUpdateSchema, dict): for key, value in self.items(): result[key] = value @@ -129,7 +134,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ZoomiCourseOptionsSchema): + if not isinstance(other, InvitationEmailUpdateSchema): return False return self.__dict__ == other.__dict__ diff --git a/rustici_software_cloud_v2/models/invitation_job_status_schema.py b/rustici_software_cloud_v2/models/invitation_job_status_schema.py index cd27af0..bab7fc9 100644 --- a/rustici_software_cloud_v2/models/invitation_job_status_schema.py +++ b/rustici_software_cloud_v2/models/invitation_job_status_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class InvitationJobStatusSchema(object): @@ -162,7 +161,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/invitation_summary_list.py b/rustici_software_cloud_v2/models/invitation_summary_list.py index 9b46751..8bd8737 100644 --- a/rustici_software_cloud_v2/models/invitation_summary_list.py +++ b/rustici_software_cloud_v2/models/invitation_summary_list.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six from rustici_software_cloud_v2.models.paginated_list import PaginatedList # noqa: F401,E501 @@ -79,7 +78,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/invitation_summary_schema.py b/rustici_software_cloud_v2/models/invitation_summary_schema.py index 22b8a45..ef8674d 100644 --- a/rustici_software_cloud_v2/models/invitation_summary_schema.py +++ b/rustici_software_cloud_v2/models/invitation_summary_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class InvitationSummarySchema(object): @@ -182,7 +181,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/item_value_pair_schema.py b/rustici_software_cloud_v2/models/item_value_pair_schema.py index 516196f..6a84c03 100644 --- a/rustici_software_cloud_v2/models/item_value_pair_schema.py +++ b/rustici_software_cloud_v2/models/item_value_pair_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ItemValuePairSchema(object): @@ -94,7 +93,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/launch_auth_options_schema.py b/rustici_software_cloud_v2/models/launch_auth_options_schema.py index 55e1c3f..22474c7 100644 --- a/rustici_software_cloud_v2/models/launch_auth_options_schema.py +++ b/rustici_software_cloud_v2/models/launch_auth_options_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class LaunchAuthOptionsSchema(object): @@ -142,7 +141,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/launch_auth_schema.py b/rustici_software_cloud_v2/models/launch_auth_schema.py index 86274ae..dc13d90 100644 --- a/rustici_software_cloud_v2/models/launch_auth_schema.py +++ b/rustici_software_cloud_v2/models/launch_auth_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class LaunchAuthSchema(object): @@ -98,7 +97,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/launch_history_list_schema.py b/rustici_software_cloud_v2/models/launch_history_list_schema.py index 415037a..8cc09b6 100644 --- a/rustici_software_cloud_v2/models/launch_history_list_schema.py +++ b/rustici_software_cloud_v2/models/launch_history_list_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class LaunchHistoryListSchema(object): @@ -70,7 +69,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/launch_history_schema.py b/rustici_software_cloud_v2/models/launch_history_schema.py index d6470c6..5178b1d 100644 --- a/rustici_software_cloud_v2/models/launch_history_schema.py +++ b/rustici_software_cloud_v2/models/launch_history_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class LaunchHistorySchema(object): @@ -338,7 +337,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/launch_link_request_schema.py b/rustici_software_cloud_v2/models/launch_link_request_schema.py index e3da7f9..abed4c1 100644 --- a/rustici_software_cloud_v2/models/launch_link_request_schema.py +++ b/rustici_software_cloud_v2/models/launch_link_request_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class LaunchLinkRequestSchema(object): @@ -335,7 +334,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/launch_link_schema.py b/rustici_software_cloud_v2/models/launch_link_schema.py index 1a57092..35af7b2 100644 --- a/rustici_software_cloud_v2/models/launch_link_schema.py +++ b/rustici_software_cloud_v2/models/launch_link_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class LaunchLinkSchema(object): @@ -71,7 +70,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/learner_preference_schema.py b/rustici_software_cloud_v2/models/learner_preference_schema.py index 1a37e39..330f41f 100644 --- a/rustici_software_cloud_v2/models/learner_preference_schema.py +++ b/rustici_software_cloud_v2/models/learner_preference_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class LearnerPreferenceSchema(object): @@ -142,7 +141,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/learner_schema.py b/rustici_software_cloud_v2/models/learner_schema.py index f25de68..c70c301 100644 --- a/rustici_software_cloud_v2/models/learner_schema.py +++ b/rustici_software_cloud_v2/models/learner_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class LearnerSchema(object): @@ -147,7 +146,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/lti13_platform_configuration_schema.py b/rustici_software_cloud_v2/models/lti13_platform_configuration_schema.py index b88d149..34548da 100644 --- a/rustici_software_cloud_v2/models/lti13_platform_configuration_schema.py +++ b/rustici_software_cloud_v2/models/lti13_platform_configuration_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class Lti13PlatformConfigurationSchema(object): @@ -219,7 +218,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/lti13_tool_configuration_schema.py b/rustici_software_cloud_v2/models/lti13_tool_configuration_schema.py index 89a45e3..9105fe1 100644 --- a/rustici_software_cloud_v2/models/lti13_tool_configuration_schema.py +++ b/rustici_software_cloud_v2/models/lti13_tool_configuration_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class Lti13ToolConfigurationSchema(object): @@ -162,7 +161,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/media_file_metadata_schema.py b/rustici_software_cloud_v2/models/media_file_metadata_schema.py index 1ebf03b..4af8c9c 100644 --- a/rustici_software_cloud_v2/models/media_file_metadata_schema.py +++ b/rustici_software_cloud_v2/models/media_file_metadata_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class MediaFileMetadataSchema(object): @@ -142,7 +141,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/message_schema.py b/rustici_software_cloud_v2/models/message_schema.py index e0abc7c..da1f182 100644 --- a/rustici_software_cloud_v2/models/message_schema.py +++ b/rustici_software_cloud_v2/models/message_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class MessageSchema(object): @@ -71,7 +70,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/metadata_schema.py b/rustici_software_cloud_v2/models/metadata_schema.py index ce80563..1b05c16 100644 --- a/rustici_software_cloud_v2/models/metadata_schema.py +++ b/rustici_software_cloud_v2/models/metadata_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class MetadataSchema(object): @@ -214,7 +213,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/objective_schema.py b/rustici_software_cloud_v2/models/objective_schema.py index d148c6f..9cfbf70 100644 --- a/rustici_software_cloud_v2/models/objective_schema.py +++ b/rustici_software_cloud_v2/models/objective_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ObjectiveSchema(object): @@ -370,7 +369,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/paginated_list.py b/rustici_software_cloud_v2/models/paginated_list.py index 46f1b35..68a79bc 100644 --- a/rustici_software_cloud_v2/models/paginated_list.py +++ b/rustici_software_cloud_v2/models/paginated_list.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class PaginatedList(object): @@ -74,7 +73,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/permissions_schema.py b/rustici_software_cloud_v2/models/permissions_schema.py index e9dc686..683cd1e 100644 --- a/rustici_software_cloud_v2/models/permissions_schema.py +++ b/rustici_software_cloud_v2/models/permissions_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class PermissionsSchema(object): @@ -98,7 +97,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/ping_schema.py b/rustici_software_cloud_v2/models/ping_schema.py index 5cc8e4a..ff1ea2c 100644 --- a/rustici_software_cloud_v2/models/ping_schema.py +++ b/rustici_software_cloud_v2/models/ping_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class PingSchema(object): @@ -94,7 +93,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/post_back_schema.py b/rustici_software_cloud_v2/models/post_back_schema.py index fee2592..6024535 100644 --- a/rustici_software_cloud_v2/models/post_back_schema.py +++ b/rustici_software_cloud_v2/models/post_back_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class PostBackSchema(object): @@ -218,7 +217,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/preview_launch_link_request_schema.py b/rustici_software_cloud_v2/models/preview_launch_link_request_schema.py index f1bb84a..267146b 100644 --- a/rustici_software_cloud_v2/models/preview_launch_link_request_schema.py +++ b/rustici_software_cloud_v2/models/preview_launch_link_request_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class PreviewLaunchLinkRequestSchema(object): @@ -210,7 +209,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/private_invitation_list.py b/rustici_software_cloud_v2/models/private_invitation_list.py index c7768aa..c7f5062 100644 --- a/rustici_software_cloud_v2/models/private_invitation_list.py +++ b/rustici_software_cloud_v2/models/private_invitation_list.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six from rustici_software_cloud_v2.models.paginated_list import PaginatedList # noqa: F401,E501 @@ -79,7 +78,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/private_invitation_schema.py b/rustici_software_cloud_v2/models/private_invitation_schema.py index 3b2f96b..4ffa343 100644 --- a/rustici_software_cloud_v2/models/private_invitation_schema.py +++ b/rustici_software_cloud_v2/models/private_invitation_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class PrivateInvitationSchema(object): @@ -33,32 +32,37 @@ class PrivateInvitationSchema(object): swagger_types = { 'id': 'str', 'course_id': 'str', + 'course_title': 'str', 'allow_launch': 'bool', 'invitation_email': 'InvitationEmailSchema', 'create_date': 'datetime', 'updated': 'datetime', 'post_back': 'PostBackSchema', 'expiration_date': 'datetime', - 'registration_count': 'int' + 'registration_count': 'int', + 'launched_registration_count': 'int' } attribute_map = { 'id': 'id', 'course_id': 'courseId', + 'course_title': 'courseTitle', 'allow_launch': 'allowLaunch', 'invitation_email': 'invitationEmail', 'create_date': 'createDate', 'updated': 'updated', 'post_back': 'postBack', 'expiration_date': 'expirationDate', - 'registration_count': 'registrationCount' + 'registration_count': 'registrationCount', + 'launched_registration_count': 'launchedRegistrationCount' } - def __init__(self, id=None, course_id=None, allow_launch=None, invitation_email=None, create_date=None, updated=None, post_back=None, expiration_date=None, registration_count=None): # noqa: E501 + def __init__(self, id=None, course_id=None, course_title=None, allow_launch=None, invitation_email=None, create_date=None, updated=None, post_back=None, expiration_date=None, registration_count=None, launched_registration_count=None): # noqa: E501 """PrivateInvitationSchema - a model defined in Swagger""" # noqa: E501 self._id = None self._course_id = None + self._course_title = None self._allow_launch = None self._invitation_email = None self._create_date = None @@ -66,12 +70,15 @@ def __init__(self, id=None, course_id=None, allow_launch=None, invitation_email= self._post_back = None self._expiration_date = None self._registration_count = None + self._launched_registration_count = None self.discriminator = None if id is not None: self.id = id if course_id is not None: self.course_id = course_id + if course_title is not None: + self.course_title = course_title if allow_launch is not None: self.allow_launch = allow_launch if invitation_email is not None: @@ -86,6 +93,8 @@ def __init__(self, id=None, course_id=None, allow_launch=None, invitation_email= self.expiration_date = expiration_date if registration_count is not None: self.registration_count = registration_count + if launched_registration_count is not None: + self.launched_registration_count = launched_registration_count @property def id(self): @@ -133,6 +142,29 @@ def course_id(self, course_id): self._course_id = course_id + @property + def course_title(self): + """Gets the course_title of this PrivateInvitationSchema. # noqa: E501 + + Title of the course associated with this invitation. # noqa: E501 + + :return: The course_title of this PrivateInvitationSchema. # noqa: E501 + :rtype: str + """ + return self._course_title + + @course_title.setter + def course_title(self, course_title): + """Sets the course_title of this PrivateInvitationSchema. + + Title of the course associated with this invitation. # noqa: E501 + + :param course_title: The course_title of this PrivateInvitationSchema. # noqa: E501 + :type: str + """ + + self._course_title = course_title + @property def allow_launch(self): """Gets the allow_launch of this PrivateInvitationSchema. # noqa: E501 @@ -286,11 +318,34 @@ def registration_count(self, registration_count): self._registration_count = registration_count + @property + def launched_registration_count(self): + """Gets the launched_registration_count of this PrivateInvitationSchema. # noqa: E501 + + The count of launched registrations for this invitation # noqa: E501 + + :return: The launched_registration_count of this PrivateInvitationSchema. # noqa: E501 + :rtype: int + """ + return self._launched_registration_count + + @launched_registration_count.setter + def launched_registration_count(self, launched_registration_count): + """Sets the launched_registration_count of this PrivateInvitationSchema. + + The count of launched registrations for this invitation # noqa: E501 + + :param launched_registration_count: The launched_registration_count of this PrivateInvitationSchema. # noqa: E501 + :type: int + """ + + self._launched_registration_count = launched_registration_count + def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/private_invitation_update_schema.py b/rustici_software_cloud_v2/models/private_invitation_update_schema.py index bb9226f..19d6d47 100644 --- a/rustici_software_cloud_v2/models/private_invitation_update_schema.py +++ b/rustici_software_cloud_v2/models/private_invitation_update_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class PrivateInvitationUpdateSchema(object): @@ -32,7 +31,7 @@ class PrivateInvitationUpdateSchema(object): """ swagger_types = { 'allow_launch': 'bool', - 'invitation_email': 'InvitationEmailSchema', + 'invitation_email': 'InvitationEmailUpdateSchema', 'post_back': 'PostBackSchema', 'expiration_date': 'datetime' } @@ -90,7 +89,7 @@ def invitation_email(self): """Gets the invitation_email of this PrivateInvitationUpdateSchema. # noqa: E501 :return: The invitation_email of this PrivateInvitationUpdateSchema. # noqa: E501 - :rtype: InvitationEmailSchema + :rtype: InvitationEmailUpdateSchema """ return self._invitation_email @@ -99,7 +98,7 @@ def invitation_email(self, invitation_email): """Sets the invitation_email of this PrivateInvitationUpdateSchema. :param invitation_email: The invitation_email of this PrivateInvitationUpdateSchema. # noqa: E501 - :type: InvitationEmailSchema + :type: InvitationEmailUpdateSchema """ self._invitation_email = invitation_email @@ -154,7 +153,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/public_invitation_list.py b/rustici_software_cloud_v2/models/public_invitation_list.py index e8efd9f..1852b9c 100644 --- a/rustici_software_cloud_v2/models/public_invitation_list.py +++ b/rustici_software_cloud_v2/models/public_invitation_list.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six from rustici_software_cloud_v2.models.paginated_list import PaginatedList # noqa: F401,E501 @@ -79,7 +78,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/public_invitation_schema.py b/rustici_software_cloud_v2/models/public_invitation_schema.py index 04f3dec..a4ad78f 100644 --- a/rustici_software_cloud_v2/models/public_invitation_schema.py +++ b/rustici_software_cloud_v2/models/public_invitation_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class PublicInvitationSchema(object): @@ -33,8 +32,8 @@ class PublicInvitationSchema(object): swagger_types = { 'id': 'str', 'course_id': 'str', + 'course_title': 'str', 'allow_launch': 'bool', - 'invitation_email': 'InvitationEmailSchema', 'allow_new_registrations': 'bool', 'url': 'str', 'create_date': 'datetime', @@ -48,8 +47,8 @@ class PublicInvitationSchema(object): attribute_map = { 'id': 'id', 'course_id': 'courseId', + 'course_title': 'courseTitle', 'allow_launch': 'allowLaunch', - 'invitation_email': 'invitationEmail', 'allow_new_registrations': 'allowNewRegistrations', 'url': 'url', 'create_date': 'createDate', @@ -60,13 +59,13 @@ class PublicInvitationSchema(object): 'registration_count': 'registrationCount' } - def __init__(self, id=None, course_id=None, allow_launch=None, invitation_email=None, allow_new_registrations=None, url=None, create_date=None, updated=None, post_back=None, expiration_date=None, registration_cap=0, registration_count=None): # noqa: E501 + def __init__(self, id=None, course_id=None, course_title=None, allow_launch=None, allow_new_registrations=None, url=None, create_date=None, updated=None, post_back=None, expiration_date=None, registration_cap=None, registration_count=None): # noqa: E501 """PublicInvitationSchema - a model defined in Swagger""" # noqa: E501 self._id = None self._course_id = None + self._course_title = None self._allow_launch = None - self._invitation_email = None self._allow_new_registrations = None self._url = None self._create_date = None @@ -81,10 +80,10 @@ def __init__(self, id=None, course_id=None, allow_launch=None, invitation_email= self.id = id if course_id is not None: self.course_id = course_id + if course_title is not None: + self.course_title = course_title if allow_launch is not None: self.allow_launch = allow_launch - if invitation_email is not None: - self.invitation_email = invitation_email if allow_new_registrations is not None: self.allow_new_registrations = allow_new_registrations if url is not None: @@ -148,6 +147,29 @@ def course_id(self, course_id): self._course_id = course_id + @property + def course_title(self): + """Gets the course_title of this PublicInvitationSchema. # noqa: E501 + + Title of the course associated with this invitation. # noqa: E501 + + :return: The course_title of this PublicInvitationSchema. # noqa: E501 + :rtype: str + """ + return self._course_title + + @course_title.setter + def course_title(self, course_title): + """Sets the course_title of this PublicInvitationSchema. + + Title of the course associated with this invitation. # noqa: E501 + + :param course_title: The course_title of this PublicInvitationSchema. # noqa: E501 + :type: str + """ + + self._course_title = course_title + @property def allow_launch(self): """Gets the allow_launch of this PublicInvitationSchema. # noqa: E501 @@ -171,25 +193,6 @@ def allow_launch(self, allow_launch): self._allow_launch = allow_launch - @property - def invitation_email(self): - """Gets the invitation_email of this PublicInvitationSchema. # noqa: E501 - - :return: The invitation_email of this PublicInvitationSchema. # noqa: E501 - :rtype: InvitationEmailSchema - """ - return self._invitation_email - - @invitation_email.setter - def invitation_email(self, invitation_email): - """Sets the invitation_email of this PublicInvitationSchema. - - :param invitation_email: The invitation_email of this PublicInvitationSchema. # noqa: E501 - :type: InvitationEmailSchema - """ - - self._invitation_email = invitation_email - @property def allow_new_registrations(self): """Gets the allow_new_registrations of this PublicInvitationSchema. # noqa: E501 @@ -374,7 +377,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/public_invitation_update_schema.py b/rustici_software_cloud_v2/models/public_invitation_update_schema.py index e4a1065..819dda4 100644 --- a/rustici_software_cloud_v2/models/public_invitation_update_schema.py +++ b/rustici_software_cloud_v2/models/public_invitation_update_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class PublicInvitationUpdateSchema(object): @@ -46,7 +45,7 @@ class PublicInvitationUpdateSchema(object): 'registration_cap': 'registrationCap' } - def __init__(self, allow_launch=None, allow_new_registrations=None, post_back=None, expiration_date=None, registration_cap=0): # noqa: E501 + def __init__(self, allow_launch=None, allow_new_registrations=None, post_back=None, expiration_date=None, registration_cap=None): # noqa: E501 """PublicInvitationUpdateSchema - a model defined in Swagger""" # noqa: E501 self._allow_launch = None @@ -186,7 +185,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/registration_completion.py b/rustici_software_cloud_v2/models/registration_completion.py index 1d7d01a..2762142 100644 --- a/rustici_software_cloud_v2/models/registration_completion.py +++ b/rustici_software_cloud_v2/models/registration_completion.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class RegistrationCompletion(object): @@ -51,7 +50,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/registration_list_schema.py b/rustici_software_cloud_v2/models/registration_list_schema.py index 92cdae4..9e207df 100644 --- a/rustici_software_cloud_v2/models/registration_list_schema.py +++ b/rustici_software_cloud_v2/models/registration_list_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class RegistrationListSchema(object): @@ -99,7 +98,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/registration_schema.py b/rustici_software_cloud_v2/models/registration_schema.py index dc531f9..33f7766 100644 --- a/rustici_software_cloud_v2/models/registration_schema.py +++ b/rustici_software_cloud_v2/models/registration_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class RegistrationSchema(object): @@ -558,7 +557,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/registration_success.py b/rustici_software_cloud_v2/models/registration_success.py index 1dbc805..5fbf352 100644 --- a/rustici_software_cloud_v2/models/registration_success.py +++ b/rustici_software_cloud_v2/models/registration_success.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class RegistrationSuccess(object): @@ -51,7 +50,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/reportage_account_info_schema.py b/rustici_software_cloud_v2/models/reportage_account_info_schema.py index b47b51d..53e128f 100644 --- a/rustici_software_cloud_v2/models/reportage_account_info_schema.py +++ b/rustici_software_cloud_v2/models/reportage_account_info_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ReportageAccountInfoSchema(object): @@ -262,7 +261,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.py b/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.py index 8345a63..99a7855 100644 --- a/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.py +++ b/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ReportageAccountInfoUsageSchema(object): @@ -142,7 +141,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/reportage_auth_token_schema.py b/rustici_software_cloud_v2/models/reportage_auth_token_schema.py index 595347c..d396e53 100644 --- a/rustici_software_cloud_v2/models/reportage_auth_token_schema.py +++ b/rustici_software_cloud_v2/models/reportage_auth_token_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ReportageAuthTokenSchema(object): @@ -94,7 +93,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/reportage_link_schema.py b/rustici_software_cloud_v2/models/reportage_link_schema.py index d88752c..51c4ab9 100644 --- a/rustici_software_cloud_v2/models/reportage_link_schema.py +++ b/rustici_software_cloud_v2/models/reportage_link_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ReportageLinkSchema(object): @@ -70,7 +69,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/response_error.py b/rustici_software_cloud_v2/models/response_error.py index 324c7d3..4fce7bc 100644 --- a/rustici_software_cloud_v2/models/response_error.py +++ b/rustici_software_cloud_v2/models/response_error.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ResponseError(object): @@ -71,7 +70,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/runtime_interaction_schema.py b/rustici_software_cloud_v2/models/runtime_interaction_schema.py index ca34be3..88317d8 100644 --- a/rustici_software_cloud_v2/models/runtime_interaction_schema.py +++ b/rustici_software_cloud_v2/models/runtime_interaction_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class RuntimeInteractionSchema(object): @@ -314,7 +313,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/runtime_objective_schema.py b/rustici_software_cloud_v2/models/runtime_objective_schema.py index 2cf7e8b..bc3681e 100644 --- a/rustici_software_cloud_v2/models/runtime_objective_schema.py +++ b/rustici_software_cloud_v2/models/runtime_objective_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class RuntimeObjectiveSchema(object): @@ -270,7 +269,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/runtime_schema.py b/rustici_software_cloud_v2/models/runtime_schema.py index eb96cf0..7b846bb 100644 --- a/rustici_software_cloud_v2/models/runtime_schema.py +++ b/rustici_software_cloud_v2/models/runtime_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class RuntimeSchema(object): @@ -530,7 +529,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/score_schema.py b/rustici_software_cloud_v2/models/score_schema.py index 64fcf51..b73bf4c 100644 --- a/rustici_software_cloud_v2/models/score_schema.py +++ b/rustici_software_cloud_v2/models/score_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class ScoreSchema(object): @@ -74,7 +73,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/setting_item.py b/rustici_software_cloud_v2/models/setting_item.py index 10bfcdd..fac7d3b 100644 --- a/rustici_software_cloud_v2/models/setting_item.py +++ b/rustici_software_cloud_v2/models/setting_item.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class SettingItem(object): @@ -182,7 +181,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/setting_list_schema.py b/rustici_software_cloud_v2/models/setting_list_schema.py index 2a0d505..d902863 100644 --- a/rustici_software_cloud_v2/models/setting_list_schema.py +++ b/rustici_software_cloud_v2/models/setting_list_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class SettingListSchema(object): @@ -71,7 +70,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/setting_metadata.py b/rustici_software_cloud_v2/models/setting_metadata.py index 5baf881..e6760d9 100644 --- a/rustici_software_cloud_v2/models/setting_metadata.py +++ b/rustici_software_cloud_v2/models/setting_metadata.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class SettingMetadata(object): @@ -274,7 +273,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/setting_valid_value.py b/rustici_software_cloud_v2/models/setting_valid_value.py index bdab031..0cbfd17 100644 --- a/rustici_software_cloud_v2/models/setting_valid_value.py +++ b/rustici_software_cloud_v2/models/setting_valid_value.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class SettingValidValue(object): @@ -98,7 +97,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/settings_individual_schema.py b/rustici_software_cloud_v2/models/settings_individual_schema.py index b265218..4e03c76 100644 --- a/rustici_software_cloud_v2/models/settings_individual_schema.py +++ b/rustici_software_cloud_v2/models/settings_individual_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class SettingsIndividualSchema(object): @@ -118,7 +117,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/settings_post_schema.py b/rustici_software_cloud_v2/models/settings_post_schema.py index e703eff..261e651 100644 --- a/rustici_software_cloud_v2/models/settings_post_schema.py +++ b/rustici_software_cloud_v2/models/settings_post_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class SettingsPostSchema(object): @@ -70,7 +69,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/shared_data_entry_schema.py b/rustici_software_cloud_v2/models/shared_data_entry_schema.py index 137a798..5c7cfb7 100644 --- a/rustici_software_cloud_v2/models/shared_data_entry_schema.py +++ b/rustici_software_cloud_v2/models/shared_data_entry_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class SharedDataEntrySchema(object): @@ -94,7 +93,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/static_properties_schema.py b/rustici_software_cloud_v2/models/static_properties_schema.py index 9a7a2f6..11ad179 100644 --- a/rustici_software_cloud_v2/models/static_properties_schema.py +++ b/rustici_software_cloud_v2/models/static_properties_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class StaticPropertiesSchema(object): @@ -190,7 +189,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/string_result_schema.py b/rustici_software_cloud_v2/models/string_result_schema.py index 38ff52f..b094b65 100644 --- a/rustici_software_cloud_v2/models/string_result_schema.py +++ b/rustici_software_cloud_v2/models/string_result_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class StringResultSchema(object): @@ -71,7 +70,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/tag_list_schema.py b/rustici_software_cloud_v2/models/tag_list_schema.py index 4da8ded..98bf1bc 100644 --- a/rustici_software_cloud_v2/models/tag_list_schema.py +++ b/rustici_software_cloud_v2/models/tag_list_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class TagListSchema(object): @@ -70,7 +69,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/title_schema.py b/rustici_software_cloud_v2/models/title_schema.py index 4660e1b..7f448b1 100644 --- a/rustici_software_cloud_v2/models/title_schema.py +++ b/rustici_software_cloud_v2/models/title_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class TitleSchema(object): @@ -70,7 +69,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/token_request_schema.py b/rustici_software_cloud_v2/models/token_request_schema.py index 01fc6df..dc77dc6 100644 --- a/rustici_software_cloud_v2/models/token_request_schema.py +++ b/rustici_software_cloud_v2/models/token_request_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class TokenRequestSchema(object): @@ -100,7 +99,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/update_application_schema.py b/rustici_software_cloud_v2/models/update_application_schema.py index 787d69d..b2fbcb8 100644 --- a/rustici_software_cloud_v2/models/update_application_schema.py +++ b/rustici_software_cloud_v2/models/update_application_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class UpdateApplicationSchema(object): @@ -102,7 +101,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/update_connector_schema.py b/rustici_software_cloud_v2/models/update_connector_schema.py index d0a4ec3..4481528 100644 --- a/rustici_software_cloud_v2/models/update_connector_schema.py +++ b/rustici_software_cloud_v2/models/update_connector_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class UpdateConnectorSchema(object): @@ -102,7 +101,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/update_dispatch_schema.py b/rustici_software_cloud_v2/models/update_dispatch_schema.py index 9232316..04a2ccd 100644 --- a/rustici_software_cloud_v2/models/update_dispatch_schema.py +++ b/rustici_software_cloud_v2/models/update_dispatch_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class UpdateDispatchSchema(object): @@ -298,7 +297,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/user_invitation_list.py b/rustici_software_cloud_v2/models/user_invitation_list.py index 77ff12a..6747d88 100644 --- a/rustici_software_cloud_v2/models/user_invitation_list.py +++ b/rustici_software_cloud_v2/models/user_invitation_list.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six from rustici_software_cloud_v2.models.paginated_list import PaginatedList # noqa: F401,E501 @@ -79,7 +78,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/user_invitation_schema.py b/rustici_software_cloud_v2/models/user_invitation_schema.py index f76d1b7..fb285b0 100644 --- a/rustici_software_cloud_v2/models/user_invitation_schema.py +++ b/rustici_software_cloud_v2/models/user_invitation_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class UserInvitationSchema(object): @@ -206,7 +205,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.py b/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.py index 8a71848..db4a14a 100644 --- a/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.py +++ b/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class UserInvitationSchemaRegistrationReport(object): @@ -142,7 +141,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_account.py b/rustici_software_cloud_v2/models/xapi_account.py index db121a9..0c8a59b 100644 --- a/rustici_software_cloud_v2/models/xapi_account.py +++ b/rustici_software_cloud_v2/models/xapi_account.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiAccount(object): @@ -96,7 +95,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_activity.py b/rustici_software_cloud_v2/models/xapi_activity.py index fbf00cd..f566a7b 100644 --- a/rustici_software_cloud_v2/models/xapi_activity.py +++ b/rustici_software_cloud_v2/models/xapi_activity.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiActivity(object): @@ -119,7 +118,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_activity_definition.py b/rustici_software_cloud_v2/models/xapi_activity_definition.py index 2cce08f..d8453d4 100644 --- a/rustici_software_cloud_v2/models/xapi_activity_definition.py +++ b/rustici_software_cloud_v2/models/xapi_activity_definition.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiActivityDefinition(object): @@ -334,7 +333,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_agent_group.py b/rustici_software_cloud_v2/models/xapi_agent_group.py index 5c5b21f..034c9a7 100644 --- a/rustici_software_cloud_v2/models/xapi_agent_group.py +++ b/rustici_software_cloud_v2/models/xapi_agent_group.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiAgentGroup(object): @@ -219,7 +218,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_attachment.py b/rustici_software_cloud_v2/models/xapi_attachment.py index effb03c..0b724c0 100644 --- a/rustici_software_cloud_v2/models/xapi_attachment.py +++ b/rustici_software_cloud_v2/models/xapi_attachment.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiAttachment(object): @@ -219,7 +218,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_context.py b/rustici_software_cloud_v2/models/xapi_context.py index cb00748..229fe29 100644 --- a/rustici_software_cloud_v2/models/xapi_context.py +++ b/rustici_software_cloud_v2/models/xapi_context.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiContext(object): @@ -262,7 +261,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_context_activity.py b/rustici_software_cloud_v2/models/xapi_context_activity.py index 37e8a08..7be7bdb 100644 --- a/rustici_software_cloud_v2/models/xapi_context_activity.py +++ b/rustici_software_cloud_v2/models/xapi_context_activity.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiContextActivity(object): @@ -142,7 +141,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.py b/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.py index 6ee86a5..534f83f 100644 --- a/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.py +++ b/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiCredentialAuthTypeSchema(object): @@ -74,7 +73,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.py b/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.py index abd6879..7b8134f 100644 --- a/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.py +++ b/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiCredentialPermissionsLevelSchema(object): @@ -74,7 +73,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_credential_post_schema.py b/rustici_software_cloud_v2/models/xapi_credential_post_schema.py index 06b3f6c..a1512a8 100644 --- a/rustici_software_cloud_v2/models/xapi_credential_post_schema.py +++ b/rustici_software_cloud_v2/models/xapi_credential_post_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiCredentialPostSchema(object): @@ -195,7 +194,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_credential_put_schema.py b/rustici_software_cloud_v2/models/xapi_credential_put_schema.py index 3796a78..9fc3516 100644 --- a/rustici_software_cloud_v2/models/xapi_credential_put_schema.py +++ b/rustici_software_cloud_v2/models/xapi_credential_put_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiCredentialPutSchema(object): @@ -214,7 +213,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_credential_schema.py b/rustici_software_cloud_v2/models/xapi_credential_schema.py index f918efd..112b4ff 100644 --- a/rustici_software_cloud_v2/models/xapi_credential_schema.py +++ b/rustici_software_cloud_v2/models/xapi_credential_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiCredentialSchema(object): @@ -219,7 +218,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_credentials_list_schema.py b/rustici_software_cloud_v2/models/xapi_credentials_list_schema.py index 8dfa6cc..3a08d39 100644 --- a/rustici_software_cloud_v2/models/xapi_credentials_list_schema.py +++ b/rustici_software_cloud_v2/models/xapi_credentials_list_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiCredentialsListSchema(object): @@ -99,7 +98,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_endpoint_schema.py b/rustici_software_cloud_v2/models/xapi_endpoint_schema.py index 8ab0622..cf1c65f 100644 --- a/rustici_software_cloud_v2/models/xapi_endpoint_schema.py +++ b/rustici_software_cloud_v2/models/xapi_endpoint_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiEndpointSchema(object): @@ -118,7 +117,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_interaction_component.py b/rustici_software_cloud_v2/models/xapi_interaction_component.py index 541e2b8..dd785c3 100644 --- a/rustici_software_cloud_v2/models/xapi_interaction_component.py +++ b/rustici_software_cloud_v2/models/xapi_interaction_component.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiInteractionComponent(object): @@ -95,7 +94,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_result.py b/rustici_software_cloud_v2/models/xapi_result.py index a29f3e7..398e535 100644 --- a/rustici_software_cloud_v2/models/xapi_result.py +++ b/rustici_software_cloud_v2/models/xapi_result.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiResult(object): @@ -190,7 +189,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_score.py b/rustici_software_cloud_v2/models/xapi_score.py index e9631a0..a8df083 100644 --- a/rustici_software_cloud_v2/models/xapi_score.py +++ b/rustici_software_cloud_v2/models/xapi_score.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiScore(object): @@ -142,7 +141,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_statement.py b/rustici_software_cloud_v2/models/xapi_statement.py index 51a24ee..69695ce 100644 --- a/rustici_software_cloud_v2/models/xapi_statement.py +++ b/rustici_software_cloud_v2/models/xapi_statement.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiStatement(object): @@ -358,7 +357,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.py b/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.py index 442f037..839a607 100644 --- a/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.py +++ b/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiStatementPipeListSchema(object): @@ -71,7 +70,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.py b/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.py index 4ca52c6..df65439 100644 --- a/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.py +++ b/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiStatementPipePostSchema(object): @@ -95,7 +94,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.py b/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.py index 940a59e..de7569c 100644 --- a/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.py +++ b/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiStatementPipePutSchema(object): @@ -94,7 +93,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.py b/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.py index 4eac433..785a1ee 100644 --- a/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.py +++ b/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiStatementPipeSchema(object): @@ -214,7 +213,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_statement_reference.py b/rustici_software_cloud_v2/models/xapi_statement_reference.py index 6011a46..9f698b1 100644 --- a/rustici_software_cloud_v2/models/xapi_statement_reference.py +++ b/rustici_software_cloud_v2/models/xapi_statement_reference.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiStatementReference(object): @@ -96,7 +95,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_statement_result.py b/rustici_software_cloud_v2/models/xapi_statement_result.py index e8c9c15..8fc6a57 100644 --- a/rustici_software_cloud_v2/models/xapi_statement_result.py +++ b/rustici_software_cloud_v2/models/xapi_statement_result.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiStatementResult(object): @@ -95,7 +94,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/xapi_verb.py b/rustici_software_cloud_v2/models/xapi_verb.py index a6dfd9f..670527a 100644 --- a/rustici_software_cloud_v2/models/xapi_verb.py +++ b/rustici_software_cloud_v2/models/xapi_verb.py @@ -14,7 +14,6 @@ import pprint import re # noqa: F401 -import six class XapiVerb(object): @@ -95,7 +94,7 @@ def to_dict(self): """Returns the model properties as a dict""" result = {} - for attr, _ in six.iteritems(self.swagger_types): + for attr, _ in self.swagger_types.items(): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( diff --git a/rustici_software_cloud_v2/models/zoomi_company_id.py b/rustici_software_cloud_v2/models/zoomi_company_id.py deleted file mode 100644 index 4a6884b..0000000 --- a/rustici_software_cloud_v2/models/zoomi_company_id.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - SCORM Cloud Rest API - - REST API used for SCORM Cloud integrations. # noqa: E501 - - OpenAPI spec version: 2.0 - Contact: systems@rusticisoftware.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ZoomiCompanyId(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'zoomi_company_id': 'str' - } - - attribute_map = { - 'zoomi_company_id': 'zoomi_company_id' - } - - def __init__(self, zoomi_company_id=None): # noqa: E501 - """ZoomiCompanyId - a model defined in Swagger""" # noqa: E501 - - self._zoomi_company_id = None - self.discriminator = None - - if zoomi_company_id is not None: - self.zoomi_company_id = zoomi_company_id - - @property - def zoomi_company_id(self): - """Gets the zoomi_company_id of this ZoomiCompanyId. # noqa: E501 - - :return: The zoomi_company_id of this ZoomiCompanyId. # noqa: E501 - :rtype: str - """ - return self._zoomi_company_id - - @zoomi_company_id.setter - def zoomi_company_id(self, zoomi_company_id): - """Sets the zoomi_company_id of this ZoomiCompanyId. - - :param zoomi_company_id: The zoomi_company_id of this ZoomiCompanyId. # noqa: E501 - :type: str - """ - - self._zoomi_company_id = zoomi_company_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ZoomiCompanyId, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ZoomiCompanyId): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/rustici_software_cloud_v2/rest.py b/rustici_software_cloud_v2/rest.py index 7534506..503f7b3 100644 --- a/rustici_software_cloud_v2/rest.py +++ b/rustici_software_cloud_v2/rest.py @@ -20,9 +20,7 @@ import ssl import certifi -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import urlencode +from urllib.parse import urlencode try: import urllib3 @@ -43,11 +41,11 @@ def __init__(self, resp): def getheaders(self): """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() + return self.urllib3_response.headers def getheader(self, name, default=None): """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) + return self.urllib3_response.headers.get(name, default) class RESTClientObject(object): @@ -140,7 +138,7 @@ def request(self, method, url, query_params=None, headers=None, timeout = None if _request_timeout: - if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 + if isinstance(_request_timeout, int): timeout = urllib3.Timeout(total=_request_timeout) elif (isinstance(_request_timeout, tuple) and len(_request_timeout) == 2): @@ -216,10 +214,9 @@ def request(self, method, url, query_params=None, headers=None, if _preload_content: r = RESTResponse(r) - # In the python 3, the response.data is bytes. - # we need to decode it to string, unless it's a zip file + # response.data is bytes; decode to str unless it's a zip file content_type = r.getheader("Content-Type") - if six.PY3 and content_type != "application/zip": + if content_type != "application/zip": r.data = r.data.decode('utf8') # log response body diff --git a/setup.py b/setup.py index b5b06c4..97ccc61 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "rustici_software_cloud_v2" -VERSION = "4.0.0" +VERSION = "5.0.0" # To install the library, run the following # # python setup.py install @@ -23,16 +23,16 @@ # http://pypi.python.org/pypi/setuptools REQUIRES = [ - "certifi>=2017.4.17", - "python-dateutil>=2.1", - "six>=1.10", - "urllib3>=1.23", + "certifi>=2024.2.28", + "python-dateutil>=2.8.2", + "urllib3>=2.0.0", "Deprecated>=1.2.13" ] setup( name=NAME, version=VERSION, + python_requires=">=3.10", description="SCORM Cloud Rest API", author_email="systems@rusticisoftware.com", url="https://github.com/RusticiSoftware/scormcloud-api-v2-client-python",